/* ============================================================
   flagman692j.buzz — Flagman / Флагман казино · Nautical Flagship Design
   Concept: Адмиралтейство и флагманский флот — «Морская сталь и адмиральское золото»
   Palette «Ocean Flagship»: Deep Navy #0b1320 · Secondary #111c2e · Panel #172438
   CTA Cyan #0284c7 (hover #0369a1 / light #38bdf8)
   Gold Accent #d97706 (light #fbbf24)
   Fonts: Montserrat (Headers/Logo) + Inter (Body) + JetBrains Mono (Technical)
   ============================================================ */

:root {
  --bg: #0b1320;
  --bg2: #111c2e;
  --panel: #172438;
  --panel2: #1e2d45;
  --ink: #e2e8f0;
  --mut: #94a3b8;
  --line: rgba(226, 232, 240, 0.14);
  --line2: rgba(226, 232, 240, 0.08);
  --acc: #0284c7;       /* Cyan CTA */
  --acc-d: #0369a1;
  --acc-l: #38bdf8;
  --acc2: #d97706;      /* Gold Accent */
  --acc2-l: #fbbf24;
  --onacc: #ffffff;
  --star: #f59e0b;
  --serif: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --logo: 'Montserrat', sans-serif;
  --wrap: 1180px;
  --rad: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--acc); color: var(--onacc);
  padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 100; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- BUTTONS / CTA ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: 12px; transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap;
  border: none;
}
.cta--sm { padding: 10px 20px; font-size: 14.5px; background: var(--acc); color: var(--onacc); }
.cta--sm:hover { background: var(--acc-d); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4); }
.cta--lg { padding: 16px 32px; font-size: 17px; }
.cta--hot {
  background: linear-gradient(135deg, var(--acc), #026496); color: var(--onacc);
  box-shadow: 0 10px 25px -8px rgba(2, 132, 199, 0.7);
}
.cta--hot:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(2, 132, 199, 0.85); }
.cta--ghost {
  background: rgba(255, 255, 255, 0.03); color: var(--ink); border: 1px solid var(--line); padding: 15px 30px;
}
.cta--ghost:hover { border-color: var(--acc-l); color: #fff; background: rgba(56, 189, 248, 0.08); }

/* ---------- HEADER ---------- */
.top {
  position: sticky; top: 0; z-index: 80; display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 44px); background: rgba(11, 19, 32, 0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mk { width: 42px; height: 42px; flex: none; }
.brand__t { font-family: var(--logo); font-size: 22px; font-weight: 800; line-height: 1; color: #fff; display: flex; flex-direction: column; gap: 3px; letter-spacing: -0.02em; }
.brand__sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc2-l); font-weight: 500; }
.menu { margin-left: auto; display: flex; gap: 26px; }
.menu a { font-size: 15px; font-weight: 500; color: var(--mut); text-decoration: none; transition: color 0.15s; }
.menu a:hover { color: #fff; }

/* ---------- LAYOUT ---------- */
main { display: block; }
section { max-width: var(--wrap); margin: 0 auto; padding: clamp(44px, 6vw, 80px) clamp(16px, 4vw, 40px); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: #fff; margin: 0; }
p { margin: 0 0 16px; }
.lead { color: #cbd5e1; max-width: none; font-size: 17.5px; line-height: 1.68; }

/* Section Header Badge */
.hoop { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hoop::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--acc2), rgba(217, 119, 6, 0.1)); }
.hoop__o { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bg); background: var(--acc2-l); padding: 4px 10px; border-radius: 6px; font-weight: 800; }
.hoop__t { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut); }

/* ---------- HERO ---------- */
.hero { display: block; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.hero__chip {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--acc-l); background: rgba(2, 132, 199, 0.12); border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px; border-radius: 20px; margin: 0 0 22px; font-weight: 500;
}
.hero h1 { font-size: clamp(28px, 4.2vw, 48px); letter-spacing: -0.02em; margin-bottom: 22px; line-height: 1.18; }
.hero h1 .acc { color: var(--acc2-l); font-style: normal; font-weight: 800; }
.brandmark { color: var(--acc-l); }
.hero__lead { color: #cbd5e1; font-size: 18px; max-width: none; margin-bottom: 28px; line-height: 1.7; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- QUICK STATS ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.qc {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 24px 22px;
  border-top: 4px solid var(--acc2); transition: transform 0.15s ease;
}
.qc:hover { transform: translateY(-2px); }
.qc__k { font-family: var(--serif); font-size: 28px; color: #fff; font-weight: 800; }
.qc__t { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc-l); margin: 6px 0 10px; font-weight: 600; }
.qc__d { font-size: 14px; color: var(--mut); line-height: 1.5; }

/* ---------- TALLY STRIP ---------- */
.tally { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: repeat(5, 1fr); }
.tally__c {
  padding: 22px 18px; border: 1px solid var(--line2); border-left: none; background: var(--bg2);
  display: flex; flex-direction: column; gap: 6px; text-align: center;
}
.tally__c:first-child { border-left: 1px solid var(--line2); border-radius: var(--rad) 0 0 var(--rad); }
.tally__c:last-child { border-radius: 0 var(--rad) var(--rad) 0; }
.tally__n { font-family: var(--serif); font-size: 23px; font-weight: 800; color: var(--acc2-l); }
.tally__l { font-size: 12.5px; color: var(--mut); line-height: 1.4; }

/* ---------- SHARED H2 ---------- */
h2 { font-size: clamp(22px, 3vw, 34px); margin-bottom: 20px; letter-spacing: -0.01em; }

/* ---------- CATALOGUE ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.sl {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden;
  display: flex; flex-direction: column; transition: all 0.15s ease;
}
.sl:hover { transform: translateY(-4px); border-color: var(--acc-l); box-shadow: 0 12px 28px rgba(0,0,0,0.4); }
.sl__cv {
  height: 100px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--serif); font-weight: 800; font-size: 16px; color: #fff; padding: 10px; line-height: 1.2;
}
.sl h3 { font-size: 16px; margin: 14px 16px 4px; color: #fff; font-weight: 700; }
.sl p { font-family: var(--mono); font-size: 11.5px; color: var(--mut); margin: 0 16px 14px; }
.sl__b {
  margin: auto 16px 16px; padding: 9px; text-align: center; text-decoration: none; font-size: 13.5px; font-weight: 700;
  color: var(--acc-l); border: 1px solid var(--line); border-radius: 10px; transition: all 0.15s ease;
}
.sl__b:hover { background: var(--acc); color: var(--onacc); border-color: var(--acc); }

/* Card Gradients */
.c1 { background: linear-gradient(135deg, #0284c7, #0f172a); }
.c2 { background: linear-gradient(135deg, #3b82f6, #1e1b4b); }
.c3 { background: linear-gradient(135deg, #d97706, #451a03); }
.c4 { background: linear-gradient(135deg, #8b5cf6, #311042); }
.c5 { background: linear-gradient(135deg, #0284c7, #134e4a); }
.c6 { background: linear-gradient(135deg, #ec4899, #500724); }
.c7 { background: linear-gradient(135deg, #0d9488, #022c22); }
.c8 { background: linear-gradient(135deg, #f59e0b, #78350f); }
.c9 { background: linear-gradient(135deg, #2563eb, #172554); }
.c10 { background: linear-gradient(135deg, #10b981, #064e3b); }
.c11 { background: linear-gradient(135deg, #a855f7, #3b0764); }
.c12 { background: linear-gradient(135deg, #b45309, #291e07); }

.chips { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--rad); padding: 20px 22px; margin-top: 16px; }
.chips__t { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc2-l); margin-bottom: 14px; font-weight: 600; }
.chips__l { display: flex; flex-wrap: wrap; gap: 9px; }
.chips__l span { font-size: 13.5px; color: #cbd5e1; background: var(--panel); border: 1px solid var(--line); padding: 6px 14px; border-radius: 20px; }

/* ---------- WELCOME ---------- */
.welc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.wb {
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--rad); padding: 22px; position: relative; overflow: hidden;
}
.wb::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.wb__step { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); font-weight: 600; }
.wb__pct { font-family: var(--serif); font-size: 34px; font-weight: 800; color: var(--acc-l); margin: 6px 0; }
.wb__title { font-family: var(--serif); font-size: 17px; color: #fff; line-height: 1.35; margin-bottom: 10px; font-weight: 700; }
.wb__sub { font-size: 13.5px; color: var(--mut); line-height: 1.52; }

/* ---------- REGISTRATION ---------- */
.reg__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.rc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 22px; }
.rc__h { font-family: var(--serif); font-size: 19px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.rc__d { font-size: 14.5px; color: var(--mut); line-height: 1.58; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ticks li { position: relative; padding: 14px 18px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; font-size: 14.5px; color: #cbd5e1; }
.ticks__k { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc2-l); margin-bottom: 4px; font-weight: 700; }

/* ---------- MIRROR ---------- */
.mir__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.mir__box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 24px; border-left: 4px solid var(--acc); }
.mir__box h3 { font-size: 19px; margin-bottom: 12px; color: #fff; }
.mir__box p { font-size: 14.5px; color: var(--mut); line-height: 1.6; margin: 0; }

/* ---------- THREE STEPS ---------- */
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.st { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 26px 24px; position: relative; }
.st__n { font-family: var(--serif); font-size: 42px; font-weight: 800; color: var(--acc); line-height: 1; opacity: 0.9; }
.st__h { font-family: var(--serif); font-size: 20px; color: #fff; margin: 10px 0 12px; }
.st p { font-size: 14.5px; color: var(--mut); line-height: 1.58; margin: 0; }

/* ---------- LIVE ---------- */
.live__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lv { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; }
.lv__cv { height: 72px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 800; font-size: 24px; color: #fff; letter-spacing: 0.05em; }
.l1 { background: linear-gradient(135deg, #8b5cf6, #311042); }
.l2 { background: linear-gradient(135deg, #0284c7, #1e293b); }
.l3 { background: linear-gradient(135deg, #2563eb, #0f172a); }
.l4 { background: linear-gradient(135deg, #ec4899, #500724); }
.l5 { background: linear-gradient(135deg, #d97706, #451a03); }
.l6 { background: linear-gradient(135deg, #3b82f6, #1e1b4b); }
.l7 { background: linear-gradient(135deg, #f59e0b, #78350f); }
.l8 { background: linear-gradient(135deg, #0d9488, #022c22); }
.lv__b { padding: 15px 16px; }
.lv__t { font-family: var(--serif); font-size: 16px; color: #fff; font-weight: 700; }
.lv__s { font-family: var(--mono); font-size: 11px; color: var(--mut); margin: 3px 0 8px; }
.lv__m { font-size: 13px; color: var(--acc2-l); font-weight: 600; }

/* ---------- LOYALTY ---------- */
.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 26px; }
.lg {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px; text-align: center;
  position: relative; border-top: 4px solid var(--acc2);
}
.lg:last-child { border-top-color: var(--acc); }
.lg__lv { font-family: var(--mono); font-size: 12px; color: var(--mut); font-weight: 600; }
.lg__nm { display: block; font-family: var(--serif); font-size: 18px; font-weight: 800; color: #fff; margin: 8px 0 6px; }
.lg__cb { font-size: 13px; color: var(--acc2-l); font-weight: 700; }
.lg:last-child .lg__cb { color: var(--acc-l); }
.loy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.lb { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--rad); padding: 22px; }
.lb__h { font-family: var(--serif); font-size: 18px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.lb p { font-size: 14.5px; color: var(--mut); line-height: 1.58; margin: 0; }

/* ---------- TOURNAMENT ---------- */
.tour__kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 24px 0; }
.tour__kpi div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 22px; text-align: center; }
.tour__kpi span:first-child { font-family: var(--serif); font-size: 32px; font-weight: 800; color: var(--acc-l); display: block; }
.tour__kpi .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); display: block; margin: 6px 0 4px; font-weight: 600; }
.tour__kpi i { font-size: 13px; color: var(--acc2-l); font-style: normal; font-weight: 500; }
.tour__btns { display: flex; justify-content: center; margin-top: 10px; }

/* ---------- ABOUT ---------- */
.about h3 { font-size: 20px; color: #fff; margin: 28px 0 10px; font-weight: 700; }
.about p { color: #cbd5e1; font-size: 16px; max-width: none; line-height: 1.68; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.bdg { font-family: var(--mono); font-size: 12.5px; color: #cbd5e1; background: var(--bg2); border: 1px solid var(--line); padding: 8px 16px; border-radius: 10px; font-weight: 500; }

/* ---------- CASHIER ---------- */
.cash__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--rad); margin-bottom: 16px; }
.cash table { width: 100%; border-collapse: collapse; min-width: 540px; }
.cash th { background: var(--panel2); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc2-l); text-align: left; padding: 14px 18px; font-weight: 700; }
.cash td { padding: 14px 18px; border-top: 1px solid var(--line2); font-size: 14.5px; color: #cbd5e1; }
.cash__nm { color: #fff; font-weight: 700; }
.cash__v { color: var(--acc-l); font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.cash__note { font-size: 14px; color: var(--mut); }

/* ---------- REVIEWS ---------- */
.rev__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rb { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 24px; }
.rb__st { color: var(--star); letter-spacing: 0.12em; font-size: 16px; margin-bottom: 12px; }
.rb__st--4 .star-off { color: #475569; }
.rb__q { font-size: 14.5px; color: #cbd5e1; line-height: 1.62; margin-bottom: 16px; }
.rb__m { font-size: 13.5px; color: var(--mut); display: flex; align-items: center; gap: 10px; }
.rb__a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--acc); color: var(--onacc); font-weight: 700; font-size: 13.5px; }

/* ---------- FINAL CTA ---------- */
.final {
  text-align: center; background: linear-gradient(135deg, var(--panel2), var(--bg2));
  border: 1px solid var(--line); border-radius: 24px; max-width: calc(var(--wrap) - 40px); margin: 24px auto;
  padding: clamp(36px, 5vw, 60px) 24px;
}
.final h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.final p { color: var(--mut); max-width: none; margin: 0 0 24px; font-size: 17px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-bottom: 12px; overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--serif); font-size: 17px; color: #fff;
  list-style: none; position: relative; padding-right: 48px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 24px; color: var(--acc-l); transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line2); }
.faq details p { padding: 16px 22px 20px; margin: 0; font-size: 15px; color: var(--mut); line-height: 1.65; }

/* ---------- AUTHOR NOTE ---------- */
.note p { color: var(--mut); font-size: 15px; max-width: none; line-height: 1.65; }

/* ---------- FOOTER ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.foot__top { max-width: var(--wrap); margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 30px; display: grid; grid-template-columns: 1.3fr 2fr; gap: 44px; }
.foot__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot__bn { font-family: var(--logo); font-size: 15px; color: var(--mut); display: flex; flex-direction: column; gap: 3px; font-weight: 600; }
.foot__bn .k { font-size: 21px; color: #fff; font-weight: 800; }
.foot__legal { font-size: 13.5px; color: var(--mut); line-height: 1.65; max-width: none; }
.foot__legal .k { color: #cbd5e1; font-weight: 700; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.foot__col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc2-l); margin-bottom: 14px; font-weight: 700; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot__col li { font-size: 14px; color: var(--mut); }
.foot__bot { max-width: var(--wrap); margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line2); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13px; color: var(--mut); }
.foot__bot span:last-child { max-width: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .quick, .welc__grid, .grid, .live__grid { grid-template-columns: repeat(2, 1fr); }
  .reg__cards, .mir__grid, .steps__grid, .rev__grid, .tour__kpi { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .tally { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tally__c, .tally__c:first-child, .tally__c:last-child { border: 1px solid var(--line2); border-radius: 12px; }
  .loy__grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 580px) {
  body { font-size: 15.5px; }
  .menu { display: none; }
  .quick, .welc__grid, .grid, .live__grid { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .foot__cols { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
}
