:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #0E0E0E;
  color: #EDEDED;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.lead {
  color: #C8C8C8;
  max-width: 640px;
  font-size: 1.125rem;
}

.performance {
  background: #111111;
}

.performance-card {
  background: #FFFFFF;
  color: #1A1A1A;
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.85;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.site-footer {
  background: #050505;
  color: #F5F5F5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  text-align: center;
}

.site-footer p {
  margin: 8px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(245, 245, 245, 0.88);
}

@media (min-width: 1025px) {
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: auto;
    max-height: none;
    overflow: visible;
  }
}

/* Header nav links */
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: none;
  border: none;
  color: inherit;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  text-decoration: none;
  text-underline-offset: 6px;
  transition: color .25s ease, text-shadow .3s ease, text-decoration-color .2s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #FFE7C2;
  text-shadow: 0 0 10px rgba(255, 204, 140, 0.7), 0 0 22px rgba(255, 150, 60, 0.35);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255, 231, 194, 0.85);
}

.nav__link:focus-visible {
  outline: none;
}

/* layout */
:root { --header-h:64px; --panel:#1A1A1A; }
.container { max-width:1100px; margin:0 auto; padding:0 24px; }
.header { position:sticky; top:0; z-index:100; background:rgba(14,14,14,.9);
          backdrop-filter:saturate(180%) blur(8px);
          border-bottom:1px solid rgba(255,255,255,.06);
          overflow:visible; }
.header__inner { height:var(--header-h); display:flex; align-items:center; justify-content:space-between; }
.brand { display:inline-flex; align-items:center; gap:10px; color:#EDEDED; text-decoration:none; }
.brand__logo{ display:block; width:44px; height:44px; }
.brand__name{ font-weight:600; letter-spacing:.1px; font-size:1.85rem; }

/* desktop nav */
.nav { display:flex; align-items:center; gap:12px; }

/* burger */
.burger{ display:none; position:relative; width:48px; height:48px; cursor:pointer;
         border-radius:10px; border:1px solid rgba(255,255,255,.12); background:transparent; color:#EDEDED;
         align-items:center; justify-content:center; }
.burger__bar{ position:absolute; left:12px; right:12px; height:2px; background:#EDEDED; border-radius:2px;
              transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.burger__bar:nth-child(1){ top:16px; }
.burger__bar:nth-child(2){ top:23px; }
.burger__bar:nth-child(3){ top:30px; }

/* ─── Палитра / базовые токены ─────────────────────────────────────────────── */
:root{
  --header-h: 64px;
  --accent: #FF7A00;
  --dark-bg: #0E0E0E;
  --dark-panel: #1A1A1A;
  --dark-text: #EDEDED;

  --light-bg: #FFFFFF;
  --light-text: #181A1F;
  --light-muted: #4A4F5A;
}

/* База */
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--header-h); }

/* Контейнер и секции */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section h2 { margin: 0 0 16px 0; }

/* Тёмная/светлая поверхности */
.section--dark { background: var(--dark-bg); color: var(--dark-text); }
.section--light { background: var(--light-bg); color: var(--light-text); }
.section--light h2 { color: var(--accent); }
.section--light p, .section--light li { color: var(--light-muted); }

/* ─── Шапка (тёмная) ──────────────────────────────────────────────────────── */
.header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,14,14,.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  color: var(--dark-text);
  overflow: visible;
}
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--dark-text); text-decoration: none; }
.brand__logo { display: block; width: 44px; height: 44px; }
.brand__name { font-weight: 600; letter-spacing: .1px; font-size: 1.85rem; }

/* ─── Навигация / бургер ──────────────────────────────────────────────────── */
.nav { display: flex; align-items: center; gap: 12px; }

/* Кнопка-бургер */
.burger{
  display:none; position:relative; width:48px; height:48px; cursor:pointer;
  border-radius:10px; border:1px solid rgba(255,255,255,.12);
  background:transparent; color:var(--dark-text);
  align-items:center; justify-content:center;
}
.burger__bar{
  position:absolute; left:12px; right:12px; height:2px; background:var(--dark-text);
  border-radius:2px; transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.burger__bar:nth-child(1){ top:16px; }
.burger__bar:nth-child(2){ top:23px; }
.burger__bar:nth-child(3){ top:30px; }

/* Мобилка: меню открывается ПОД шапкой, фиксируется к вьюпорту */
@media (max-width:1024px){
  .burger{ display:inline-flex; align-items:center; justify-content:center; }

  .nav{
    position: fixed;            /* фиксированно к окну, а не внутри хедера */
    z-index: 200;               /* выше шапки */
    top: var(--header-h);       /* строго под шапкой */
    left: auto;
    right: 16px;
    margin: 0;
    width: clamp(220px, calc(16ch + 48px), calc(100vw - 48px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: var(--dark-panel);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility 0s linear .2s;
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
  }

  .nav__link{
    width: 100%;
    justify-content: center;
    padding: 13px 12px;
    text-align: center;
  }

  .nav.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .2s ease, visibility 0s;
  }
}

.burger.is-active .burger__bar:nth-child(1){ top:23px; transform:rotate(45deg); }
.burger.is-active .burger__bar:nth-child(2){ opacity:0; }
.burger.is-active .burger__bar:nth-child(3){ top:23px; transform:rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero{
  padding-top: min(8px, var(--header-h));
  padding-bottom: 56px;
  text-align: center;
}

.hero__content{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  max-width: 720px;
}

.hero__content > *:first-child{
  margin-top: 0;
}

.hero__logo-wrap{
  --hero-logo-size: clamp(154px, 12.6vw + 56px, 182px);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hero-logo-size);
  margin-top: 0;
  margin-bottom: 22px;
  overflow: visible;
  isolation: isolate;
}

.hero__glow-defs{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hero__logo{
  position: relative;
  z-index: 2;
  display: block;
  width: var(--hero-logo-size);
  height: auto;
  filter: url(#hero-logo-glow);
}

.hero h1{
  margin: 0 0 14px;
  font-size: clamp(1.706rem, 1.528vw + 0.78rem, 1.95rem);
  line-height: 1.2;
}

.hero__lead{
  margin: 0 auto;
  max-width: min(720px, 100%);
}

@media (max-width: 768px) {
  .hero{
    padding-top: min(8px, var(--header-h));
  }

  .hero__logo-wrap{
    --hero-logo-size: clamp(84px, 29.4vw, 98px);
    margin-bottom: 20px;
  }

  .hero h1{
    font-size: clamp(1.138rem, 3.51vw + 0.26rem, 1.3rem);
    line-height: 1.24;
  }

  .hero__lead{
    font-size: 1.05rem;
  }
}
