/* «Дисконнект» — orange.mozimer.ru, v2.0 */

@font-face {
  font-family: "Mazzard";
  src: url("../fonts/MazzardM.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-2: #0b1220;
  --surface: #0f1829;
  --surface-2: #142036;
  --line: rgba(150, 180, 240, .12);
  --line-strong: rgba(150, 180, 240, .22);
  --text: #e8edf7;
  --muted: #94a1ba;
  --dim: #6b7891;
  --accent: #4da3ff;
  --accent-2: #8cc4ff;
  --accent-glow: rgba(77, 163, 255, .35);
  --orange: #ff8a3d;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 68px;
  --font-display: "Mazzard", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.ic { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.15em; }
.orange { color: var(--orange); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.eyebrow {
  font: 600 12.5px/1.2 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--font-body);
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s, color .25s;
}
.btn-primary { background: var(--accent); color: #04101f; box-shadow: 0 8px 30px -10px var(--accent-glow); }
.btn-primary:hover { background: #fff; color: #04101f; transform: translateY(-2px); box-shadow: 0 14px 36px -10px var(--accent-glow); }
.btn-primary .ic { transition: transform .25s var(--ease); }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(10, 18, 34, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-disabled { border-color: var(--line); color: var(--dim); cursor: not-allowed; }

/* ---------- шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(7, 11, 20, .78); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 19px/1 var(--font-display); }
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.site-nav a:hover, .site-nav a.is-current { color: #fff; }
.site-nav a.is-current { background: rgba(77, 163, 255, .1); }
.site-nav .nav-cta { margin-left: 8px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 18px; }
.site-nav .nav-cta:hover { border-color: var(--accent); background: transparent; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: 0; cursor: pointer; z-index: 2;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 6px;
    background: rgba(7, 11, 20, .97); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font: 600 24px/1.2 var(--font-display); color: var(--text); padding: 10px 20px; }
  .site-nav .nav-cta { margin: 14px 0 0; font-size: 18px; padding: 12px 28px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- хиро ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; animation: hero-zoom 22s ease-out both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 11, 20, .88) 30%, rgba(7, 11, 20, .2) 62%, rgba(7, 11, 20, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 11, 20, 0) 30%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-particles i {
  position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%;
  background: rgba(220, 235, 255, .8); box-shadow: 0 0 8px rgba(160, 200, 255, .8);
  animation: rise var(--d) linear var(--delay) infinite; opacity: 0;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: var(--o); }
  90% { opacity: var(--o); }
  100% { transform: translate(var(--dx), -105vh); opacity: 0; }
}
.hero-inner { position: relative; }
.hero-inner > * { animation: fade-up .9s var(--ease) both; }
.hero-inner > *:nth-child(2) { animation-delay: .1s; }
.hero-inner > *:nth-child(3) { animation-delay: .2s; }
.hero-inner > *:nth-child(4) { animation-delay: .3s; }
.hero-inner > *:nth-child(5) { animation-delay: .4s; }
.hero-inner > *:nth-child(6) { animation-delay: .5s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-title {
  font-size: clamp(54px, 10vw, 128px);
  line-height: .95; letter-spacing: -.03em; margin: 0 0 22px;
  background: linear-gradient(180deg, #fff 30%, #a9c9f2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(77, 163, 255, .15);
}
.hero-lead { font-size: clamp(18px, 2vw, 21px); color: #cfd8e8; max-width: 520px; margin-bottom: 18px; }
.hero-rotator {
  position: relative; height: 1.6em; margin: 0 0 34px;
  font: 600 clamp(18px, 2vw, 22px)/1.6 var(--font-display); color: var(--accent-2);
  padding-left: 22px;
}
.hero-rotator::before { content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 2px; background: var(--accent); border-radius: 2px; }
.hero-rotator span { position: absolute; left: 22px; top: 0; white-space: nowrap; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); }
.hero-rotator span.is-active { opacity: 1; transform: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted); transition: color .2s, border-color .2s, transform .2s;
}
.socials a:hover { color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 18px; height: 18px; }
.scroll-cue:hover { color: #fff; border-color: var(--accent); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 760px) {
  .hero { align-items: flex-end; padding-bottom: 96px; }
  .hero-bg img { object-position: 80% 30%; }
  .hero::before {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 11, 20, .9) 50%, rgba(7, 11, 20, .62) 76%, rgba(7, 11, 20, .3) 100%);
  }
  .hero .eyebrow { color: var(--accent-2); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
}

/* ---------- секции ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(44px, 6vw, 64px); }
.section-head h2 { margin-bottom: 14px; }
.section-head-left { text-align: left; margin: 0; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0; }

/* появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- фичи ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; padding: 30px 28px 26px; min-height: 100%;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(15, 24, 41, .55) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: var(--text); cursor: pointer; overflow: hidden;
  transition: border-color .3s, transform .35s var(--ease), background .3s, opacity .8s var(--ease);
}
.feature::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(77, 163, 255, .13), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-4px); color: var(--text); }
.feature:hover::before { opacity: 1; }
.feature-icon { width: 46px; height: 46px; padding: 11px; margin-bottom: 22px; border-radius: 12px; color: var(--accent); background: rgba(77, 163, 255, .1); border: 1px solid rgba(77, 163, 255, .2); }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--accent-2); }
.more .ic { transition: transform .25s var(--ease); }
.feature:hover .more .ic { transform: translateX(4px); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- эпизоды ---------- */
.episode { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(60px, 9vw, 110px); }
.episode-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.episode-reverse .episode-media { order: 2; }
.episode-media { position: relative; }
.episode-media img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .3);
}
.episode-num {
  position: absolute; right: -14px; bottom: -34px;
  font: 700 clamp(80px, 11vw, 140px)/1 var(--font-display); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(140, 196, 255, .45);
  pointer-events: none;
}
.episode-reverse .episode-num { right: auto; left: -14px; }
.episode-body h3 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 18px; }
.episode-body > p { color: #c3cde0; }
.meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.meta div { flex: 1 1 180px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 24, 41, .6); }
.meta dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 4px; }
.meta dd { margin: 0; font: 600 18px/1.3 var(--font-display); }
.episodes-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 800px) {
  .episode, .episode-reverse { grid-template-columns: 1fr; }
  .episode-reverse .episode-media { order: 0; }
  .episode-media { max-width: 420px; }
  .episode-num { right: 10px; bottom: -28px; }
  .episode-reverse .episode-num { left: auto; right: 10px; }
}

/* ---------- герои ---------- */
.heroes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hero-card {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; min-height: 320px; }
.hero-card-body { padding: 28px 28px 24px; }
.hero-card h3 { font-size: 30px; margin-bottom: 16px; }
.traits li { position: relative; padding-left: 18px; margin-bottom: 9px; font-size: 15px; line-height: 1.5; color: #c3cde0; }
.traits li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
@media (max-width: 1060px) { .heroes { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-card img { height: 340px; min-height: 0; }
}

/* ---------- прогресс ---------- */
.progress-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.bars { display: grid; gap: 26px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: end; }
.bar-label { font-weight: 500; }
.bar-value { font: 600 22px/1 var(--font-display); color: var(--accent-2); font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(150, 180, 240, .1); overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #2f6fd1, var(--accent) 60%, #b5dbff);
  box-shadow: 0 0 14px var(--accent-glow);
  transition: width 1.6s var(--ease);
}
@media (max-width: 800px) { .progress-wrap { grid-template-columns: 1fr; } .section-head-left { text-align: center; } }

/* ---------- галерея ---------- */
.gallery { columns: 4 240px; column-gap: 16px; }
.shot {
  position: relative; display: block; margin: 0 0 16px; break-inside: avoid;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface);
}
.shot img { width: 100%; transition: transform .7s var(--ease), filter .4s; }
.shot-cap {
  position: absolute; inset: auto 0 0; padding: 40px 16px 14px;
  background: linear-gradient(0deg, rgba(5, 9, 17, .92), transparent);
  font: 600 16px/1.25 var(--font-display); color: #fff;
  transform: translateY(8px); opacity: 0; transition: opacity .35s, transform .35s var(--ease);
}
.shot-cap small { display: block; font: 500 12px/1.4 var(--font-body); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.shot:hover img { transform: scale(1.05); }
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; transform: none; }
@media (hover: none) { .shot-cap { opacity: 1; transform: none; } }

/* ---------- цифры ---------- */
.stats { position: relative; padding: clamp(70px, 9vw, 110px) 0; overflow: hidden; isolation: isolate; border-block: 1px solid var(--line); }
.stats-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.stats::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, rgba(7, 11, 20, .6) 50%, var(--bg) 100%); }
.stats-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-list strong { display: block; font: 600 clamp(40px, 5.5vw, 64px)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.stats-list span { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .stats-list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font: 600 clamp(17px, 2vw, 20px)/1.35 var(--font-display);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-2); }
.faq summary .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent); transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary .ic { transform: rotate(45deg); background: rgba(77, 163, 255, .12); }
.faq details p { color: var(--muted); padding: 0 4px 24px; margin: 0; max-width: 680px; animation: fade-up .4s var(--ease); }

/* ---------- присоединяйтесь ---------- */
.join { padding: 0 0 clamp(70px, 9vw, 110px); }
.join-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg); border: 1px solid rgba(77, 163, 255, .25);
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(77, 163, 255, .18), transparent 70%),
    radial-gradient(500px 220px at 100% 100%, rgba(255, 138, 61, .1), transparent 70%),
    var(--surface);
}
.join h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.join p { color: var(--muted); margin: 0; }

/* ---------- партнёры ---------- */
.partners { padding: 10px 0 30px; }
.partners-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px 40px; }
.partners-row a { opacity: .55; transition: opacity .25s, transform .25s; }
.partners-row a:hover { opacity: 1; transform: translateY(-2px); }
.partners-row img { max-height: 42px; width: auto; }
@media (max-width: 700px) { .partners-row { justify-content: center; } }

/* ---------- контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; }
.contact {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: 15.5px; min-width: 0;
  transition: border-color .25s, transform .3s var(--ease), opacity .8s var(--ease);
}
.contact span { min-width: 0; overflow-wrap: anywhere; }
.contact small { display: block; font-weight: 400; font-size: 13px; color: var(--dim); }
.contact:hover { border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.contact-icon { width: 42px; height: 42px; flex: none; padding: 10px; border-radius: 10px; color: var(--accent); background: rgba(77, 163, 255, .1); }
@media (max-width: 1000px) { .contacts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contacts { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(30px, 5vw, 70px); }
.contact-side p { color: var(--muted); }
.social-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--text);
  border-bottom: 1px solid var(--line); font-weight: 600;
}
.social-row svg { width: 22px; height: 22px; color: var(--accent); }
.social-row:hover { color: var(--accent-2); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 15px;
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 163, 255, .18); }
.form .is-invalid { border-color: #ff6b6b; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 15px; color: var(--muted); }
.form-status.ok { color: #6be3a4; }
.form-status.err { color: #ff8b8b; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; color: var(--dim); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.to-top .ic { transform: rotate(-90deg); }

/* ---------- диалоги ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(3, 6, 12, .78); backdrop-filter: blur(6px); }
.modal {
  width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 900px);
  padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong); background: var(--surface);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8);
  overscroll-behavior: contain;
}
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal h2 { font-size: clamp(26px, 3.5vw, 34px); padding-right: 40px; }
.modal h3 { font-size: 18px; color: var(--accent-2); margin: 24px 0 6px; }
.modal p { color: #c3cde0; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer; color: var(--muted);
  transition: color .2s, border-color .2s, transform .3s var(--ease);
}
.modal-close:hover { color: #fff; border-color: var(--accent); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
body.modal-open { overflow: hidden; }

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(3, 6, 12, .94); }
.lightbox figure { margin: 0; padding: 70px 80px 40px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: min(100%, 1100px); max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: modal-in .3s var(--ease); }
.lightbox figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(15, 24, 41, .7); color: var(--text); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.lb-btn:hover { border-color: var(--accent); background: var(--surface-2); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }
.lb-close { top: 16px; right: 16px; }
@media (max-width: 700px) {
  .lightbox figure { padding: 70px 12px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .hero-particles { display: none; }
}
