/* layout.css - каркас Stake India: токены, шрифты, шапка, меню, крошки, футер, кнопки.
   Концепт "табло крикетного матча": тёмный navy, зелёный pitch для действий, шафран для цифр и меток. */

/* ===================== Fonts (self-hosted, latin) ===================== */
@font-face{ font-family:"Barlow"; font-style:normal; font-weight:400; font-display:swap; src:url("fonts/barlow-400.woff2") format("woff2"); }
@font-face{ font-family:"Barlow"; font-style:normal; font-weight:500; font-display:swap; src:url("fonts/barlow-500.woff2") format("woff2"); }
@font-face{ font-family:"Barlow"; font-style:normal; font-weight:600; font-display:swap; src:url("fonts/barlow-600.woff2") format("woff2"); }
@font-face{ font-family:"Barlow Condensed"; font-style:normal; font-weight:600; font-display:swap; src:url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face{ font-family:"Barlow Condensed"; font-style:normal; font-weight:700; font-display:swap; src:url("fonts/barlow-condensed-700.woff2") format("woff2"); }

/* ===================== Design tokens ===================== */
:root{
  --stk-bg:#0B1A24;
  --stk-bg-deep:#071219;
  --stk-surface:#13262F;
  --stk-surface-2:#1B3340;
  --stk-line:#28434F;
  --stk-text:#E8F0F2;
  --stk-muted:#9FB3BC;
  --stk-pitch:#3DDC84;
  --stk-pitch-hover:#5BE89A;
  --stk-on-pitch:#0B1A24;
  --stk-saffron:#F5B83D;
  --stk-link:#6CC4FF;
  --stk-danger:#FF6B6B;

  --stk-font-body:"Barlow", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --stk-font-head:"Barlow Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;

  --stk-radius:12px;
  --stk-radius-sm:8px;
  --stk-header-h:64px;
  --stk-wrap:1240px;
  --stk-gutter:16px;
  --stk-ease:cubic-bezier(.2,.7,.3,1);
  --stk-shadow:0 18px 40px -18px rgba(0,0,0,.6);
}
@media (min-width:768px){ :root{ --stk-gutter:24px; --stk-header-h:72px; } }

/* ===================== Reset ===================== */
*, *::before, *::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--stk-header-h) + 16px); }
html, body{ margin:0; padding:0; }
body{
  background:var(--stk-bg); color:var(--stk-text);
  font-family:var(--stk-font-body); font-size:1.0625rem; line-height:1.65;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ max-width:100%; height:auto; display:block; }
ul, ol{ margin:0; padding:0; }
a{ color:inherit; text-decoration:none; }
h1, h2, h3, h4{ font-family:var(--stk-font-head); line-height:1.1; margin:0; text-wrap:balance; }
p{ margin:0; }
:focus-visible{ outline:3px solid var(--stk-pitch); outline-offset:3px; border-radius:4px; }
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ transition-duration:.01ms !important; animation-duration:.01ms !important; }
}

.stk-wrap{ width:100%; max-width:var(--stk-wrap); margin-inline:auto; padding-inline:var(--stk-gutter); }
.stk-visually-hidden{ position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.stk-skip{
  position:absolute; left:var(--stk-gutter); top:-100px; z-index:100;
  background:var(--stk-pitch); color:var(--stk-on-pitch); font-weight:600; padding:10px 16px; border-radius:var(--stk-radius-sm);
}
.stk-skip:focus{ top:12px; }

/* ===================== CTA ===================== */
.stk-cta{
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  min-height:44px; padding:10px 20px; border-radius:var(--stk-radius-sm); border:2px solid transparent;
  font-family:var(--stk-font-head); font-weight:700; font-size:1.0625rem; letter-spacing:.04em; text-transform:uppercase; line-height:1.1;
  text-align:center; cursor:pointer; touch-action:manipulation;
  transition:background-color .18s var(--stk-ease), border-color .18s var(--stk-ease), color .18s var(--stk-ease), transform .18s var(--stk-ease);
}
.stk-cta:active{ transform:translateY(1px); }
.stk-cta--primary{ background:var(--stk-pitch); color:var(--stk-on-pitch); }
.stk-cta--primary:hover{ background:var(--stk-pitch-hover); }
.stk-cta--ghost{ border-color:var(--stk-line); color:var(--stk-text); }
.stk-cta--ghost:hover{ border-color:var(--stk-pitch); color:var(--stk-pitch); }
.stk-cta--lg{ min-height:60px; padding:12px 28px; font-size:1.25rem; }
.stk-cta__sub{
  font-family:var(--stk-font-body); font-weight:500; font-size:.8125rem; letter-spacing:0; text-transform:none; opacity:.85;
}

/* ===================== Header ===================== */
.stk-site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(7,18,25,.92); border-bottom:1px solid var(--stk-line);
  -webkit-backdrop-filter:saturate(1.4) blur(10px); backdrop-filter:saturate(1.4) blur(10px);
}
.stk-header-inner{ display:flex; align-items:center; gap:12px; height:var(--stk-header-h); }
.stk-logo{ display:flex; align-items:center; flex-shrink:0; padding:6px 0; }
.stk-logo__img{ width:auto; height:34px; }
.stk-header-actions{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.stk-header-actions .stk-cta{ min-height:40px; padding:8px 16px; font-size:1rem; }
.stk-header-actions .stk-cta--ghost{ display:none; }
@media (min-width:768px){
  .stk-logo__img{ height:40px; }
  .stk-header-actions .stk-cta--ghost{ display:inline-flex; }
}

/* ===================== Nav + бургер (CSS-only) ===================== */
.stk-nav{ order:3; position:relative; }
.stk-nav__checkbox{
  position:absolute; inset:0; width:44px; height:44px; margin:0; opacity:0; cursor:pointer; z-index:2;
}
.stk-nav__toggle{
  display:flex; flex-direction:column; justify-content:center; gap:5px;
  width:44px; height:44px; padding:0 11px; border:1px solid var(--stk-line); border-radius:var(--stk-radius-sm);
}
.stk-nav__bar{ display:block; height:2px; background:var(--stk-text); border-radius:2px; transition:transform .2s var(--stk-ease), opacity .2s var(--stk-ease); }
.stk-nav__checkbox:focus-visible + .stk-nav__toggle{ outline:3px solid var(--stk-pitch); outline-offset:2px; }
.stk-nav__checkbox:checked + .stk-nav__toggle .stk-nav__bar:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.stk-nav__checkbox:checked + .stk-nav__toggle .stk-nav__bar:nth-child(2){ opacity:0; }
.stk-nav__checkbox:checked + .stk-nav__toggle .stk-nav__bar:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.stk-nav__list{
  display:none; list-style:none;
  position:fixed; left:0; right:0; top:var(--stk-header-h);
  max-height:calc(100dvh - var(--stk-header-h)); overflow-y:auto;
  background:var(--stk-bg-deep); border-bottom:1px solid var(--stk-line);
  padding:8px var(--stk-gutter) 20px;
}
.stk-nav__checkbox:checked ~ .stk-nav__list{ display:block; }
.stk-nav__link{
  display:flex; align-items:center; min-height:52px; padding:0 4px;
  font-family:var(--stk-font-head); font-weight:600; font-size:1.25rem; letter-spacing:.03em; text-transform:uppercase;
  border-bottom:1px solid var(--stk-line); transition:color .18s var(--stk-ease);
}
.stk-nav__link:hover{ color:var(--stk-pitch); }
.stk-nav__link[aria-current="page"]{ color:var(--stk-pitch); }

@media (min-width:1100px){
  .stk-nav{ order:0; margin-left:24px; }
  .stk-nav__checkbox, .stk-nav__toggle{ display:none; }
  .stk-nav__list{
    display:flex; position:static; max-height:none; overflow:visible; gap:4px;
    background:none; border:0; padding:0;
  }
  .stk-nav__item--mobile{ display:none; }
  .stk-nav__link{
    position:relative; min-height:var(--stk-header-h); padding:0 12px; border:0; font-size:1.0625rem;
  }
  .stk-nav__link::after{
    content:""; position:absolute; left:12px; right:12px; bottom:0; height:3px; border-radius:3px 3px 0 0;
    background:var(--stk-pitch); transform:scaleX(0); transition:transform .2s var(--stk-ease);
  }
  .stk-nav__link:hover::after, .stk-nav__link[aria-current="page"]::after{ transform:scaleX(1); }
}

/* ===================== Breadcrumbs ===================== */
.stk-crumbs{ position:relative; z-index:1; height:44px; padding-top:18px; font-size:.875rem; color:var(--stk-muted); }
/* крошки вне <main>: фон hero подтягиваем под них, чтобы не было шва */
.stk-crumbs + main > .stk-hero:first-child{ margin-top:-44px; padding-top:44px; }
.stk-crumbs ol{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; list-style:none; }
.stk-crumbs li + li::before{
  content:""; display:inline-block; width:6px; height:6px; margin-right:8px; vertical-align:middle;
  border-right:1.5px solid currentColor; border-top:1.5px solid currentColor; transform:rotate(45deg);
}
.stk-crumbs a{ color:var(--stk-text); text-decoration:underline; text-decoration-color:var(--stk-line); text-underline-offset:3px; }
.stk-crumbs a:hover{ color:var(--stk-pitch); text-decoration-color:currentColor; }

/* ===================== Footer ===================== */
.stk-site-footer{ margin-top:72px; background:var(--stk-bg-deep); border-top:1px solid var(--stk-line); font-size:.9375rem; }
.stk-footer-top{
  display:grid; gap:20px; padding-block:40px 32px; border-bottom:1px solid var(--stk-line);
}
.stk-footer-top__logo{ width:auto; height:40px; }
.stk-footer-top p{ color:var(--stk-muted); max-width:46ch; }
.stk-footer-ctas{ display:flex; flex-wrap:wrap; gap:12px; }
.stk-footer-nav{
  display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:28px 20px; padding-block:32px;
}
.stk-footer-nav__title{
  font-size:.9375rem; letter-spacing:.08em; text-transform:uppercase; color:var(--stk-saffron); margin-bottom:12px;
}
.stk-footer-nav ul{ list-style:none; display:grid; gap:2px; }
.stk-footer-nav a{ display:inline-flex; align-items:center; min-height:36px; color:var(--stk-text); transition:color .18s var(--stk-ease); }
.stk-footer-nav a:hover, .stk-footer-nav a[aria-current="page"]{ color:var(--stk-pitch); }
.stk-footer-bottom{
  display:grid; gap:14px; padding-block:24px 32px; border-top:1px solid var(--stk-line); color:var(--stk-muted); font-size:.875rem;
}
.stk-footer-warn{ display:flex; gap:14px; align-items:flex-start; }
.stk-age{
  flex-shrink:0; display:grid; place-items:center; width:44px; height:44px; border-radius:50%;
  border:2px solid var(--stk-danger); color:var(--stk-text); font-family:var(--stk-font-head); font-weight:700; font-size:1rem;
}
.stk-footer-bottom address{ font-style:normal; }
@media (min-width:768px){
  .stk-footer-top{ grid-template-columns:auto 1fr auto; align-items:center; gap:32px; }
  .stk-footer-nav{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
  .stk-footer-bottom{ grid-template-columns:1fr auto; align-items:center; }
}

/* пиксель Яндекс.Метрики для браузеров без JS */
.stk-ym-pixel{ position:absolute; left:-9999px; }
