/* ===== Fonts (local TTF) ===== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: bold;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Root tokens ===== */
:root{
  --bg: #0b0d12;
  --surface: #10141e;
  --text: #e7ecf7;
  --muted: #a7b1c6;
  --accent: #c7ff3d;       /* уникальный лаймово-неоновый оттенок */
  --accent-2: #7d5cff;     /* фиолетовый для глубины */
  --ring: rgba(199,255,61,0.35);
--header-h: 64px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --container: 1120px;

  --t-fast: .18s;
  --t-base: .28s;
  --t-slow: .5s;
  --ease: cubic-bezier(.2,.8,.2,1);
}
@media (max-width: 575px){
  :root{ --header-h: 56px; } /* mobile */
}
/* ===== Reset / Base ===== */
*,
*::before,
*::after{ box-sizing: border-box; }

html,body{ height: 100%; }

html{
  scroll-behavior: smooth;
  background: var(--bg);
}

body{
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(125,92,255,.20), transparent 60%),
    radial-gradient(900px 600px at 120% 10%, rgba(199,255,61,.12), transparent 55%),
    linear-gradient(180deg, #0b0d12 0%, #0a0e16 100%);
}

img{ max-width: 100%; height: auto; display: block; }
.img-compact{ width: 100%; max-width: 350px; border-radius: 14px; }

/* ===== Containers & utilities ===== */
.container{
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.visually-hidden{
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

.skip-link{
  position: absolute;
  left: 8px; top: -40px;
  background: var(--accent-2);
  color: white; padding: 8px 12px; border-radius: 8px;
  transition: transform var(--t-fast) var(--ease), top var(--t-fast) var(--ease);
}
.skip-link:focus{ top: 8px; outline: 2px solid var(--accent); }

/* ===== Header ===== */
/* FIXED HEADER */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;                      /* поверх любых подсветок секций */
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(16,20,30,.9), rgba(16,20,30,.75));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(199,255,61,.12);
}
.header-inner{
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.brand{
  font-family: Sora, Inter, sans-serif;
  font-weight: 700; letter-spacing: .5px; text-decoration: none;
  font-size: 1.15rem;
  color: var(--text);
}
.brand::after{
  content: ""; display: inline-block; width: .6em; height: .6em; margin-left: .4em;
  background: radial-gradient(circle at 30% 30%, var(--accent) 0 55%, transparent 56%);
  border-radius: 50%;
  filter: drop-shadow(0 0 8px var(--ring));
}

.nav-list{
  display: flex; gap: 16px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav a{
  color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.nav a:hover,
.nav a:focus-visible{ color: var(--text); background: rgba(199,255,61,.08); outline: none; }
.btn-ghost{
  border: 1px solid rgba(199,255,61,.35);
}
.btn-ghost:hover{ transform: translateY(-1px); }

/* ===== Sections ===== */
.section{ position: relative; padding: 72px 0; }

/* Reveal animation (via IntersectionObserver) */
.reveal{ opacity: 0; transform: translateY(24px) scale(.98); will-change: opacity, transform; }
.reveal.is-visible{ opacity: 1; transform: none; transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }

/* ===== Buttons ===== */
.btn-primary{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px;
  color: #0b0d12; background: var(--accent);
  text-decoration: none; font-weight: 700;
  box-shadow: 0 8px 24px rgba(199,255,61,.25);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), filter var(--t-base) var(--ease);
}
.btn-primary:hover,
.btn-primary:focus-visible{
  transform: translateY(-2px) rotate(-.3deg);
  box-shadow: 0 14px 36px rgba(199,255,61,.35);
  outline: 2px solid var(--ring);
}
.btn-link{
  color: var(--text); text-decoration: none; margin-left: 16px;
  border-bottom: 1px dashed rgba(199,255,61,.5);
  padding-bottom: 2px;
}
.btn-link:hover,
.btn-link:focus-visible{ color: var(--accent); outline: none; }

/* Micro tilt on hover */
.tilt{ transform: perspective(600px) rotateX(0) rotateY(0); transform-style: preserve-3d; }
.tilt:hover{ transform: perspective(600px) rotateX(3deg) rotateY(-3deg); }

/* ===== Footer ===== */
.site-footer{
  border-top: 1px solid rgba(199,255,61,.12);
  background: linear-gradient(180deg, rgba(16,20,30,.75), rgba(16,20,30,.9));
}
.footer-inner{
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 24px 0;
}
.footer-brand{ margin: 0; color: var(--muted); }
.footer-nav a{
  color: var(--muted); text-decoration: none; margin-right: 16px;
}
.footer-nav a:hover,
.footer-nav a:focus-visible{ color: var(--text); outline: none; }
.back-to-top{
  background: transparent; color: var(--text);
  border: 1px solid rgba(199,255,61,.35); border-radius: 10px; padding: 8px 12px;
  cursor: pointer; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.back-to-top:hover,
.back-to-top:focus-visible{ background: rgba(199,255,61,.08); transform: translateY(-1px); outline: none; }

/* ===== Responsive ===== */
@media (max-width: 575px){
  .header-inner{ min-height: 56px; }
  .nav-list{ gap: 8px; }
  .btn-link{ display: inline-block; margin-left: 12px; }
}
@media (min-width: 576px) and (max-width: 767px){ }
@media (min-width: 768px) and (max-width: 991px){ }
@media (min-width: 992px) and (max-width: 1279px){ }
@media (min-width: 1280px){ }

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* ===== Burger button ===== */
.burger{
  display: none;                   /* показываем только на мобилке */
  appearance: none;
  background: transparent;
  border: 1px solid rgba(199,255,61,.35);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.burger:hover,
.burger:focus-visible{ background: rgba(199,255,61,.08); outline: none; }

.burger-box{
  display: inline-grid; gap: 4px;
}
.burger-line{
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}

/* ===== Mobile nav panel ===== */
@media (max-width: 767px){
  .burger{ display: inline-flex; align-items: center; justify-content: center; }

  /* изначально панель скрыта */
  .nav{
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: linear-gradient(180deg, rgba(16,20,30,.98), rgba(16,20,30,.92));
    border-bottom: 1px solid rgba(199,255,61,.18);
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
  }

  .nav.is-open{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease), visibility 0s;
  }

  .nav-list{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px;
  }

  /* блокируем прокрутку фона при открытом меню */
  body.nav-lock{ overflow: hidden; }

  /* анимация иконки */
  .burger[aria-expanded="true"] .burger-line:nth-child(1){
    transform: translateY(6px) rotate(45deg);
  }
  .burger[aria-expanded="true"] .burger-line:nth-child(2){
    opacity: 0;
  }
  .burger[aria-expanded="true"] .burger-line:nth-child(3){
    transform: translateY(-6px) rotate(-45deg);
  }
}
/* ===== UNIQUE FOOTER ===== */
.site-footer.unique-foot{
  position: relative;
  overflow: clip;
  background: linear-gradient(180deg, rgba(10,12,18,.95), rgba(10,12,18,1));
  border-top: 1px solid rgba(199,255,61,.16);
  box-shadow: 0 -20px 60px rgba(0,0,0,.45) inset;
}

/* section-bounded neon road */
.site-footer.unique-foot .foot-bg{
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; top: 0; width: 100vw; z-index: 0; pointer-events: none; overflow: hidden;
}
.site-footer.unique-foot .foot-bg::before{
  content:""; position:absolute; inset:0;
  background:
    repeating-linear-gradient(90deg, rgba(199,255,61,.10) 0 2px, transparent 2px 14px),
    radial-gradient(900px 560px at 18% 12%, rgba(125,92,255,.18), transparent 60%),
    radial-gradient(900px 560px at 82% 88%, rgba(199,255,61,.12), transparent 60%);
  mix-blend-mode: screen; opacity: .65;
  animation: footStripes 26s linear infinite;
}
.site-footer.unique-foot .foot-bg::after{
  /* fade top/bottom to keep background from leaking to neighbors */
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, var(--bg) 0 16px, rgba(11,13,18,0) 80px,
      rgba(11,13,18,0) calc(100% - 80px), var(--bg) 100%);
}
@keyframes footStripes{ from{ transform: translateX(0);} to{ transform: translateX(-240px);} }

.foot-grid{
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
  padding: 20px 0;
}
@media (max-width: 991px){
  .foot-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px){
  .foot-grid{ grid-template-columns: 1fr; }
}

.foot-brand .brand{
  font-weight: 800;
  letter-spacing: .4px;
  text-decoration: none;
}

.foot-pledge{
  margin: 8px 0 10px;
  display: inline-flex; gap: 10px; align-items: center;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(199,255,61,.28);
  background: rgba(16,20,30,.6);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  font-weight: 700;
  letter-spacing: .2px;
  position: relative; overflow: hidden;
}
.foot-pledge span{
  background: linear-gradient(90deg, var(--text), var(--accent), var(--text));
  background-clip: text; -webkit-background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: pledgeSheen 3.2s linear infinite;
}
.foot-pledge em{ color: var(--muted); font-style: normal; }
@keyframes pledgeSheen{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 200% 50%; }
}

/* footer columns */
.foot-title{
  margin: 0 0 8px; font-size: 1.05rem; font-weight: 700;
  text-shadow: 0 0 10px rgba(199,255,61,.18);
}
.foot-list{ margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.foot-list a{
  color: var(--muted); text-decoration: none; outline: none;
  transition: color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.foot-list a:hover,
.foot-list a:focus-visible{
  color: var(--text);
  transform: translateX(2px);
}

/* store button shimmer (reuses .btn-store styles if present) */
.site-footer.unique-foot .btn-store{
  margin-top: 6px; position: relative; overflow: hidden;
}
.site-footer.unique-foot .btn-store::after{
  content:""; position:absolute; top:0; bottom:0; left:-40%; width:40%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0));
  transform: skewX(-20deg); opacity: 0;
  animation: footBtnSheen 2.8s ease-in-out .4s infinite;
}
@keyframes footBtnSheen{
  0%{ left:-40%; opacity:0; }
  15%{ opacity:.9; }
  60%{ left:120%; opacity:0; }
  100%{ left:120%; opacity:0; }
}

/* bottom bar */
.foot-bar{
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(199,255,61,.16);
  padding: 12px 0;
}
.foot-bar .small{ margin: 0; color: var(--muted); font-size: .95rem; }

/* Back-to-top button inherits your global .back-to-top; ensure min styles */
.back-to-top{
  white-space: nowrap;
}
/* === Mailto link styling (Terms + Privacy + site-wide) === */
a[href^="mailto:"]{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(199,255,61,.45);
  padding-left: 1.25em;
  position: relative;
  transition: color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              text-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}

/* envelope glyph */
a[href^="mailto:"]::before{
  content: "✉";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-52%);
  font-size: .95em;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--ring));
  transition: transform var(--t-base) var(--ease);
}

/* hover / focus */
a[href^="mailto:"]:hover,
a[href^="mailto:"]:focus-visible{
  color: var(--text);
  border-color: var(--accent);
  text-shadow: 0 0 10px var(--ring);
}
a[href^="mailto:"]:hover::before,
a[href^="mailto:"]:focus-visible::before{
  transform: translateY(-52%) rotate(-8deg);
}

/* keyboard focus outline (accessible) */
a[href^="mailto:"]:focus-visible{
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* high-contrast users */
@media (prefers-contrast: more){
  a[href^="mailto:"]{ border-bottom-style: solid; }
}
/* Footer brand variants — keep one look for all unique blocks */
.site-footer.unique-foot [class^="foot-brand"] .brand,
.foot-brand .brand{ /* поддерживаем и старое имя, если где-то осталось */
  font-weight: 800;
  letter-spacing: .4px;
  text-decoration: none;
}
