/* flagman7040.top — премиум-лендинг Flagman / Флагман. ШАБЛОН «Ходовой мостик / control-bridge dashboard» (уникальный DOM, НЕ up-x178: липкий левый рейл + палубы-панели с угловыми засечками, круговой тахометр возврата, слоты таблицей-рэком). Тема: «Гребной винт и валопровод» (клуб держит ход; запасная линия вала = рабочее зеркало). Палитра «Сталь и бронза винта»: gunmetal ink #080b0e/#10151b/#1a222c + стальной приборный CTA #1785cf (h≈204) + бронзово-латунный акцент #cf9a3a (h≈39). Шрифты: JetBrains Mono (дисплей/лого/числа/лейблы) + системный кириллический sans (body, 0 webfont). Depth /ru ×19. */

:root {
  --bg: #080b0e;
  --bg-2: #10151b;
  --bg-3: #1a222c;
  --line: #2a333d;
  --line-2: #3b4854;
  --txt: #eaf1f6;
  --txt-d: #a6b4c0;
  --txt-dd: #6f7d89;
  --acc: #1785cf;
  --acc-2: #cf9a3a;
  --acc-2-d: #a87d2c;
  --hot: #29a3e6;
  --good: #3fc4a0;
  --ink: #0b141c;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  --sys: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 12px;
  --r-s: 8px;
  --rail-w: 244px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font: 16px/1.62 var(--sys);
  color: var(--txt);
  background:
    radial-gradient(1100px 620px at 100% -8%, rgba(23, 133, 207, .14) 0%, transparent 60%),
    radial-gradient(760px 520px at 0% 68%, rgba(207, 154, 58, .06) 0%, transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto }
a { color: var(--acc); text-decoration: none }
a:hover { color: var(--hot) }
h1, h2, h3, h4 { font-family: var(--mono); font-weight: 700; letter-spacing: -.2px; line-height: 1.22; margin: 0 }
p { margin: 0 0 12px }
.em { color: var(--acc); font-weight: 600 }
.dim { color: var(--txt-dd) }

.skip { position: absolute; left: -999px; top: 0; background: var(--acc); color: var(--ink); padding: 10px 14px; z-index: 50 }
.skip:focus { left: 8px; top: 8px }

/* ============ SHELL: rail + deck ============ */
.wrap { display: flex; align-items: flex-start; min-height: 100vh }

.rail {
  position: sticky; top: 0; align-self: flex-start;
  width: var(--rail-w); flex: 0 0 var(--rail-w);
  height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-2), #0b0f14);
  border-right: 1px solid var(--line);
  padding: 22px 18px; display: flex; flex-direction: column; gap: 22px;
}
.brandmark { display: flex; align-items: center; gap: 10px }
.brandmark svg { width: 40px; height: 40px; flex: 0 0 40px }
.brandmark__t { font-family: var(--mono); font-weight: 800; font-size: 18px; color: var(--txt); line-height: 1.05 }
.brandmark__sub { display: block; font-family: var(--sys); font-weight: 400; font-size: 10.5px; color: var(--txt-dd); letter-spacing: .2px; margin-top: 3px }

.rail__nav { display: flex; flex-direction: column; gap: 2px }
.rail__nav a {
  font-family: var(--mono); font-size: 13px; color: var(--txt-d);
  padding: 9px 11px; border-radius: var(--r-s); border: 1px solid transparent;
  display: flex; align-items: center; gap: 9px; transition: .15s;
}
.rail__nav a::before { content: "›"; color: var(--acc); font-weight: 700 }
.rail__nav a:hover { background: var(--bg-3); color: var(--txt); border-color: var(--line) }

.rail__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px }
.lic {
  border: 1px solid var(--line); border-radius: var(--r-s); padding: 11px 12px;
  background: var(--bg); font-family: var(--mono); font-size: 11px; color: var(--txt-d);
}
.lic .k { color: var(--acc-2); font-weight: 600 }
.lic__row { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px }
.lic__row:first-child { margin-top: 0 }

.deck { flex: 1 1 auto; min-width: 0; padding: 26px clamp(16px, 3.2vw, 44px) 60px; max-width: 1160px }

/* ============ buttons ============ */
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 13.5px; letter-spacing: -.1px;
  padding: 12px 22px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.act:hover { transform: translateY(-1px) }
.act--go { background: linear-gradient(120deg, var(--acc) 0%, var(--acc-2) 100%); color: var(--ink); box-shadow: 0 12px 30px -12px rgba(23, 133, 207, .8) }
.act--go:hover { box-shadow: 0 16px 40px -12px rgba(23, 133, 207, .95); color: var(--ink) }
.act--ghost { background: transparent; color: var(--txt); border-color: var(--line-2) }
.act--ghost:hover { border-color: var(--acc); color: var(--acc) }
.act--sm { padding: 9px 16px; font-size: 12.5px }
.act--wide { width: 100%; margin-top: 4px }

/* ============ panel (section) ============ */
.panel { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px clamp(16px, 2.4vw, 30px); margin: 18px 0 }
.panel::before, .panel::after {
  content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--acc); opacity: .6;
}
.panel::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0 }
.panel::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0 }
.lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--acc-2); margin-bottom: 10px }
.panel > h2 { font-size: clamp(20px, 2.4vw, 27px); margin-bottom: 8px }
.lead { color: var(--txt-d); font-size: 15.5px; max-width: 74ch; margin: 8px 0 0 }

/* ============ hero ============ */
.hero { display: grid; grid-template-columns: 1.35fr .9fr; gap: 26px; align-items: center; padding: 30px clamp(16px, 2.4vw, 34px) }
.chip { display: inline-block; font-family: var(--mono); font-size: 11.5px; color: var(--acc-2); border: 1px solid var(--line-2); border-radius: 100px; padding: 5px 12px; letter-spacing: .5px; margin-bottom: 16px }
.hero h1 { font-size: clamp(23px, 3.1vw, 37px); line-height: 1.16 }
.hero__sub { color: var(--txt-d); font-size: 15.5px; margin: 16px 0 20px }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px }
.hero__kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px }
.kpi { border: 1px solid var(--line); border-radius: var(--r-s); padding: 11px 12px; background: var(--bg) }
.kpi .v { display: block; font-family: var(--mono); font-size: 20px; color: var(--txt); font-weight: 700 }
.kpi span { font-size: 11.5px; color: var(--txt-dd) }

/* ============ gauge (tachometer) ============ */
.gauge { display: grid; place-items: center }
.gauge svg { width: 100%; max-width: 330px; height: auto }
.gauge__cap { font-family: var(--mono); font-size: 12px; color: var(--txt-dd); text-align: center; margin-top: 8px }

/* ============ stat strip (aggregate) ============ */
.stat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 18px 0 }
.stat__cell { background: var(--bg-2); padding: 15px 14px }
.stat__num { font-family: var(--mono); font-size: 21px; font-weight: 700; color: var(--acc) }
.stat__lbl { display: block; font-size: 11.5px; color: var(--txt-dd); margin-top: 3px }

/* ============ berth (welcome deposits) ============ */
.berth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px }
.berth__card { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg); padding: 16px; position: relative; overflow: hidden }
.berth__card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--acc), var(--acc-2)) }
.berth__step { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-dd) }
.berth__pct { font-family: var(--mono); font-size: 30px; font-weight: 800; color: var(--acc); margin: 4px 0 8px }
.berth__title { font-family: var(--mono); font-weight: 700; font-size: 14.5px; margin-bottom: 6px; color: var(--txt) }
.berth__sub { font-size: 13px; color: var(--txt-d) }

/* ============ steps ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px }
.step { border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px; background: var(--bg) }
.step__n { font-family: var(--mono); font-weight: 800; font-size: 15px; color: var(--ink); background: linear-gradient(120deg, var(--acc), var(--acc-2)); width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; margin-bottom: 10px }
.step__h { font-family: var(--mono); font-weight: 700; margin-bottom: 6px }
.step p { font-size: 13.5px; color: var(--txt-d); margin: 0 }

/* ============ rack (slots + live as rows) ============ */
.rack { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 16px }
.rack__row { display: grid; grid-template-columns: 1.6fr 1.5fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-2); transition: background .15s }
.rack__row:first-child { border-top: 0 }
.rack__row:hover { background: var(--bg-3) }
.rack__head { background: var(--bg); border-top: 0 }
.rack__head span { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-dd) }
.rack__name { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--txt) }
.rack__meta { font-size: 12.5px; color: var(--txt-d); font-family: var(--mono) }
.rack__meta .em { color: var(--acc-2) }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--good); border: 1px solid var(--good); border-radius: 4px; padding: 2px 6px; margin-left: 8px }
.mono-num { font-family: var(--mono); color: var(--acc-2); font-weight: 600 }

/* ============ chips (providers / mechanics) ============ */
.chips { margin-top: 14px }
.chips__t { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-dd); margin-bottom: 8px }
.chips__list { display: flex; flex-wrap: wrap; gap: 7px }
.chips__list span { font-family: var(--mono); font-size: 12px; color: var(--txt-d); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; background: var(--bg) }

/* ============ rungs (VIP ladder) ============ */
.rungs { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 16px }
.rung { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-2) }
.rung:first-child { border-top: 0 }
.rung__i { font-family: var(--mono); font-size: 12px; color: var(--txt-dd) }
.rung__name { font-family: var(--mono); font-weight: 700; font-size: 14px }
.rung__bar { height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--acc), var(--acc-2)); margin-top: 6px }
.rung__cb { font-family: var(--mono); font-weight: 700; color: var(--acc-2); font-size: 14px; white-space: nowrap }
.rung--top { background: linear-gradient(90deg, rgba(23,133,207,.14), rgba(207,154,58,.1)) }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px }
.card2 { border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px; background: var(--bg) }
.card2 h4 { font-family: var(--mono); font-size: 14px; color: var(--acc-2); margin-bottom: 8px }
.card2 p { font-size: 13.5px; color: var(--txt-d); margin: 0 }

/* ============ tournament kpi ============ */
.tkpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px }
.tkpi div { border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px; background: var(--bg) }
.tkpi .v { display: block; font-family: var(--mono); font-size: 24px; color: var(--acc); font-weight: 800 }
.tkpi .t { font-family: var(--mono); font-size: 12.5px; color: var(--txt); margin: 4px 0 2px }
.tkpi i { font-style: normal; font-size: 11.5px; color: var(--txt-dd) }

/* ============ brand briefs ============ */
.brief h3 { font-family: var(--mono); font-size: 16px; color: var(--txt); margin: 20px 0 8px; padding-left: 12px; border-left: 3px solid var(--acc) }
.brief p { font-size: 14.5px; color: var(--txt-d) }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px }
.badges span { font-family: var(--mono); font-size: 11.5px; color: var(--txt-d); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; background: var(--bg) }

/* ============ crew (reviews) ============ */
.crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px }
.crew__card { border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px; background: var(--bg) }
.crew__stars { color: var(--acc-2); letter-spacing: 2px; margin-bottom: 8px }
.crew__q { font-size: 13.5px; color: var(--txt-d); margin: 0 0 12px }
.crew__m { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--txt-dd); font-family: var(--mono) }
.crew__a { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(120deg, var(--acc), var(--acc-2)); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-family: var(--mono) }

/* ============ till (payments) ============ */
.till { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px }
.till__c { border: 1px solid var(--line); border-radius: var(--r-s); padding: 13px 14px; background: var(--bg) }
.till__k { display: block; font-family: var(--mono); font-weight: 700; color: var(--txt); font-size: 15px }
.till__c i { font-style: normal; font-size: 11.5px; color: var(--txt-dd) }
.till__times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px }
.till__times div { border: 1px dashed var(--line-2); border-radius: var(--r-s); padding: 12px }
.till__times .v { font-family: var(--mono); color: var(--acc); font-size: 15px }
.till__times span { display: block; font-size: 12px; color: var(--txt-dd); margin-top: 3px }

/* ============ hail (final CTA) ============ */
.hail { border: 1px solid var(--line-2); border-radius: var(--r); padding: 30px; margin: 18px 0; text-align: center; background: linear-gradient(120deg, rgba(23,133,207,.12), rgba(207,154,58,.08)) }
.hail h2 { font-size: clamp(21px, 2.6vw, 28px); margin-bottom: 8px }
.hail p { color: var(--txt-d); margin-bottom: 18px }

/* ============ qa (faq) ============ */
.qa { margin-top: 12px }
.qa details { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg-2); margin-top: 8px; overflow: hidden }
.qa summary { cursor: pointer; padding: 14px 16px; font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--txt); list-style: none; display: flex; gap: 10px }
.qa summary::-webkit-details-marker { display: none }
.qa summary::before { content: "▸"; color: var(--acc) }
.qa details[open] summary::before { content: "▾" }
.qa details p { padding: 0 16px 14px; margin: 0; font-size: 13.5px; color: var(--txt-d) }

/* ============ keel (footer) ============ */
.keel { border-top: 1px solid var(--line); background: var(--bg-2); padding: 30px clamp(16px, 3.2vw, 44px) }
.keel__top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 26px }
.keel__brand svg { width: 26px; height: 26px }
.keel__logo { display: flex; align-items: center; gap: 9px; margin-bottom: 10px }
.keel__logo .em { font-family: var(--mono); font-weight: 700; color: var(--txt) }
.keel__legal { font-size: 12.5px; color: var(--txt-dd); line-height: 1.6 }
.keel__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
.keel__cols h4 { font-family: var(--mono); font-size: 13px; color: var(--acc-2); margin-bottom: 8px }
.keel__cols ul { list-style: none; padding: 0; margin: 0 }
.keel__cols li { font-size: 12.5px; color: var(--txt-d); padding: 3px 0 }
.keel__bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--txt-dd); flex-wrap: wrap }
.keel__bottom span:first-child { font-family: var(--mono) }

/* ============ responsive ============ */
@media (max-width: 980px) {
  .wrap { display: block }
  .rail { position: static; width: auto; height: auto; flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; border-right: 0; border-bottom: 1px solid var(--line) }
  .rail__nav { flex-direction: row; flex-wrap: wrap; gap: 4px }
  .rail__foot { margin: 0; width: 100%; flex-direction: row }
  .lic { flex: 1 1 auto }
  .hero { grid-template-columns: 1fr }
  .gauge { order: -1; max-width: 300px; margin: 0 auto }
}
@media (max-width: 720px) {
  .hero__kpi, .berth, .steps, .crew, .till, .till__times, .tkpi { grid-template-columns: 1fr 1fr }
  .stat { grid-template-columns: 1fr 1fr }
  .grid2, .keel__top { grid-template-columns: 1fr }
  .rack__row { grid-template-columns: 1fr auto }
  .rack__meta { grid-column: 1 / -1 }
  .rail__nav a:nth-child(n+4) { display: none }
}
@media (max-width: 460px) {
  .hero__kpi, .berth, .steps, .crew, .till, .tkpi, .stat { grid-template-columns: 1fr }
}
