/* Солярис-НС — лендинг ООО «АПЕКС-Центр». Цвета и шрифт в стиле elma-energy.ru */
:root {
  --purple: #6514DE;
  --purple-hover: #5210B8;
  --purple-soft: #F1EAFD;
  --ink: #14151B;
  --navy: #323B53;
  --text: #171717;
  --muted: #5B5E6B;
  --line: #E4E4EA;
  --bg: #FFFFFF;
  --bg-soft: #F4F4F7;
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, .72);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(20, 21, 27, .08);
  --header-h: 72px;
  --font: 'Montserrat', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.01em; }
h3 { font-size: 18px; }
p { margin: 0; }
button { font: inherit; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--purple-hover); }
.btn--light { background: #fff; color: var(--text); }
.btn--light:hover { background: #ECECF1; }
.btn--outline { background: transparent; border-color: var(--purple); color: var(--purple); }
.btn--outline:hover { background: var(--purple-soft); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 16px; }
:focus-visible { outline: 3px solid #A879F5; outline-offset: 2px; }

.eyebrow { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.eyebrow--light { color: #C3A2FA; }

/* ---------- Шапка ---------- */
.header { position: fixed; z-index: 50; top: calc(14px + env(safe-area-inset-top, 0px)); left: 0; right: 0; pointer-events: none; }
.header__bar {
  pointer-events: auto; display: flex; align-items: center; gap: 28px; height: var(--header-h);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 14px; box-shadow: var(--shadow); max-width: 1240px; width: calc(100% - 32px); padding: 0 16px 0 22px;
}
.header__logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text); white-space: nowrap; }
.nav a:hover { color: var(--purple); }
.nav .nav__cta-mobile { display: none; }
.header__right { display: flex; align-items: center; gap: 14px; }
.header__phone { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--purple); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--purple); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1180px) {
  .header__phone { display: none; }
  .nav { gap: 18px; }
}
@media (max-width: 980px) {
  :root { --header-h: 62px; }
  .header { top: calc(8px + env(safe-area-inset-top, 0px)); }
  .header__bar { width: calc(100% - 16px); padding: 0 8px 0 14px; gap: 12px; }
  .header__logo img { height: 38px; }
  .header__cta { display: none; }
  .header__right { margin-left: auto; gap: 6px; }
  .burger { display: block; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a:last-of-type { border-bottom: 0; }
  .nav .nav__cta-mobile { display: flex; margin-top: 8px; color: #fff; }
  .header__bar { position: relative; }
}

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: max(680px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-dark); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink) url("../assets/hero-poster.jpg") center / cover no-repeat; }
.hero__media video { position: absolute; top: 0; left: 0; width: 878px; height: 1280px; max-width: none; transform-origin: 0 0; opacity: 0; transition: opacity .6s; }
.hero__media.is-playing video { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(14, 15, 22, .88) 0%, rgba(14, 15, 22, .62) 45%, rgba(14, 15, 22, .15) 100%),
  linear-gradient(0deg, rgba(14, 15, 22, .9) 0%, rgba(14, 15, 22, 0) 38%); }
.hero__inner { padding-top: calc(var(--header-h) + 80px); padding-bottom: 40px; }
.hero__title { font-size: clamp(48px, 8vw, 104px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.hero__subtitle { margin-top: 14px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; line-height: 1.25; max-width: 680px; }
.hero__lead { margin-top: 22px; max-width: 620px; font-size: 17px; color: var(--on-dark-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__stats { padding-bottom: 36px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.stats > div { padding: 22px 22px 0 0; }
.stats dt { font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.1; }
.stats dd { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--on-dark-muted); max-width: 230px; }
.stats__note { margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .5); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__shade { background: linear-gradient(0deg, rgba(14, 15, 22, .94) 0%, rgba(14, 15, 22, .7) 55%, rgba(14, 15, 22, .35) 100%); }
}
@media (max-width: 640px) {
  .hero__inner { padding-top: calc(var(--header-h) + 56px); }
  .hero__lead { font-size: 15px; }
  .hero__actions .btn { width: 100%; }
  .stats > div { padding: 16px 12px 0 0; }
  .stats dd { font-size: 13px; }
}

/* ---------- Секции ---------- */
.section { padding: 112px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section__head { max-width: 780px; margin-bottom: 56px; }
.section__lead { margin-top: 18px; font-size: 18px; color: var(--muted); }
.section--dark .section__lead { color: var(--on-dark-muted); }
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .section__lead { font-size: 16px; }
}

/* Угрозы */
.threats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.threat { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.threat__num { font-size: 14px; font-weight: 700; color: var(--purple); }
.threat p { font-size: 15px; color: var(--muted); }
.threat .threat__answer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text); }
.threat__answer b { color: var(--purple); }
@media (max-width: 1080px) { .threats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .threats { grid-template-columns: 1fr; } }

/* О комплексе */
.complex { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.kit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; padding: 20px 24px; background: #fff; border-radius: var(--radius-lg); }
.kit__title { font-weight: 700; }
.kit ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.kit li { padding: 6px 14px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-size: 14px; font-weight: 600; }
.maker { margin-top: 20px; font-size: 14px; color: var(--muted); }
.complex__img { margin: 0; display: flex; justify-content: center; }
.complex__img img { max-height: 640px; width: auto; mix-blend-mode: multiply; }
@media (max-width: 900px) {
  .complex { grid-template-columns: 1fr; gap: 40px; }
  .complex__img img { max-height: 420px; }
}

/* Принцип работы */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.flow li { position: relative; padding: 30px 24px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.flow__step { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--purple); font-weight: 700; }
.flow h3 { margin-bottom: 10px; }
.flow p { font-size: 15px; color: var(--on-dark-muted); }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* Характеристики */
.specs { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.specs__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs__table th, .specs__table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs__table th { font-weight: 600; }
.specs__table td:last-child { width: 36%; font-weight: 600; }
.specs__table tr:not(.specs__group) td:first-child { padding-left: 34px; color: var(--muted); font-weight: 500; }
.specs__group th { padding-top: 20px; background: var(--bg-soft); }
.specs__table tbody tr:first-child th { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.specs__aside { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 16px; }
.specs__card { padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.specs__card-title { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.specs__card p:not(.specs__card-title) { color: var(--on-dark-muted); font-size: 15px; margin-bottom: 22px; }
.specs__card .btn { width: 100%; }
.doc-link { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.doc-link:hover { border-color: var(--purple); }
.doc-link svg { flex: none; width: 32px; height: 32px; color: var(--purple); }
.doc-link b { display: block; font-size: 15px; line-height: 1.3; }
.doc-link small { color: var(--muted); font-size: 13px; }
.specs__note { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) {
  .specs { grid-template-columns: 1fr; }
  .specs__aside { position: static; }
}
@media (max-width: 560px) {
  .specs__table { font-size: 14px; }
  .specs__table th, .specs__table td { padding: 12px 10px; }
  .specs__table tr:not(.specs__group) td:first-child { padding-left: 18px; }
  .specs__table td:last-child { width: 42%; }
}

/* Размещение */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.place { overflow: hidden; border-radius: var(--radius-lg); background: #fff; display: flex; flex-direction: column; }
.place img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.place__body { padding: 24px; }
.place h3 { margin-bottom: 8px; }
.place p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .places { grid-template-columns: 1fr; } }

/* Мачты */
.masts { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.masts__img { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.masts__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.facts li { padding: 20px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.facts b { display: block; font-size: 20px; color: var(--purple); margin-bottom: 6px; }
.facts span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; }
.masts__note { margin-top: 20px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .masts { grid-template-columns: 1fr; gap: 36px; }
  .masts__img img { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* Почему мы */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); overflow: hidden; }
.why article { padding: 32px 28px; background: var(--ink); }
.why h3 { margin-bottom: 10px; }
.why h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 18px; background: var(--purple); border-radius: 2px; }
.why p { font-size: 15px; color: var(--on-dark-muted); }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; color: var(--on-dark-muted); font-size: 14px; }
.partners ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.partners li { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: #fff; font-weight: 600; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why { grid-template-columns: 1fr; } }

/* Объекты */
.objects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.objects > div { padding: 28px 24px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--purple-soft), #fff 70%); border: 1px solid var(--line); }
.objects h3 { margin-bottom: 10px; }
.objects p { font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) { .objects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .objects { grid-template-columns: 1fr; } }

/* Этапы */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps li { position: relative; padding-top: 24px; border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--purple); }
.steps span { display: block; font-size: 14px; font-weight: 700; color: var(--purple); margin-bottom: 12px; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Презентация */
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.promo__video { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--ink); }
.promo__video img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .5s; }
.promo__video:hover img { transform: scale(1.03); }
.promo__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--purple); color: #fff; box-shadow: 0 0 0 12px rgba(101, 20, 222, .25); transition: transform .2s; }
.promo__play svg { width: 34px; height: 34px; margin-left: 4px; }
.promo__video:hover .promo__play { transform: scale(1.06); }
.promo__time { position: absolute; right: 16px; bottom: 16px; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 600; }
.promo__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 900px) { .promo { grid-template-columns: 1fr; gap: 36px; } }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-lg); background: #fff; }
.faq summary { position: relative; padding: 22px 60px 22px 24px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); font-size: 20px; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 0; } }

/* Заявка */
.request { background: var(--ink) radial-gradient(circle at 85% 20%, rgba(101, 20, 222, .45), transparent 55%); }
.request__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.request__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.request__list li { position: relative; padding-left: 30px; color: var(--on-dark-muted); }
.request__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px; border-left: 2px solid #C3A2FA; border-bottom: 2px solid #C3A2FA; transform: rotate(-45deg); }
.form { position: relative; display: grid; gap: 18px; padding: 36px; border-radius: var(--radius-lg); background: #fff; color: var(--text); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.form__row { display: grid; gap: 6px; }
.form label { font-size: 14px; font-weight: 600; }
.form label span { color: var(--purple); }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #D5D6DE; border-radius: var(--radius); background: #fff;
  font: inherit; font-size: 16px; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(101, 20, 222, .15); }
.form .is-invalid { border-color: #D93025 !important; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px !important; font-weight: 400 !important; line-height: 1.5; color: var(--muted); cursor: pointer; }
.form__consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--purple); }
.form__consent a { color: var(--purple); }
.form__consent.is-invalid span { color: #D93025; }
.form__error { padding: 12px 14px; border-radius: var(--radius); background: #FDECEA; color: #B3261E; font-size: 14px; }
.form__error.is-info { background: var(--purple-soft); color: var(--purple-hover); }
.form__submit { width: 100%; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__success { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 36px; border-radius: var(--radius-lg); background: #fff; text-align: center; }
.form__success[hidden] { display: none; }
.form__success-title { font-size: 24px; font-weight: 700; color: var(--purple); }
@media (max-width: 900px) { .request__grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .form { padding: 24px 18px; } }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contacts__role { margin-top: 14px; color: var(--muted); font-size: 17px; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contacts__list { margin: 0; display: grid; gap: 0; }
.contacts__list > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacts__list dt { color: var(--muted); font-size: 14px; }
.contacts__list dd { margin: 0; font-weight: 600; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { color: var(--purple); }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .contacts__list > div { grid-template-columns: 1fr; gap: 2px; } }

/* Подвал */
.footer { padding: 56px 0 28px; background: #0D0E13; color: rgba(255, 255, 255, .8); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 40px; }
.footer__logo { height: 68px; width: auto; margin-bottom: 14px; }
.footer__muted { color: rgba(255, 255, 255, .55); }
.footer__req p + p { margin-top: 6px; color: rgba(255, 255, 255, .6); }
.footer__links { display: grid; gap: 8px; align-content: start; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .45); font-size: 13px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* Видео-модалка */
.modal { padding: 0; border: 0; background: transparent; width: min(94vw, 1120px, calc((86vh - 56px) * 16 / 9)); max-width: none; max-height: none; overflow: visible; }
.modal::backdrop { background: rgba(8, 8, 12, .86); }
.modal__close { position: absolute; top: -50px; right: 0; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--text); cursor: pointer; }
.modal__close svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .modal__close { top: 8px; right: 8px; z-index: 2; } }

/* Плеер презентации: та же обрезка, что и в шапке */
.player { border-radius: var(--radius-lg); overflow: hidden; background: #000; color: #fff; }
.player__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; cursor: pointer; }
.player__frame video { position: absolute; top: 0; left: 0; width: 878px; height: 1280px; max-width: none; transform-origin: 0 0; }
.player__frame::after { content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5L8 5.5Z' fill='white'/%3E%3C/svg%3E") 56% 50% / 32px no-repeat;
  opacity: 0; transition: opacity .2s; pointer-events: none; }
.player.is-paused .player__frame::after { opacity: 1; }
.player__bar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px; background: #0D0E13; }
.player__btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.player__btn:hover { background: rgba(255, 255, 255, .1); }
.player__btn svg { width: 22px; height: 22px; }
.player .i-play, .player.is-paused .i-pause { display: none; }
.player.is-paused .i-play { display: block; }
.player__seek { flex: 1; min-width: 0; height: 4px; margin: 0; -webkit-appearance: none; appearance: none; border-radius: 2px; cursor: pointer;
  background: linear-gradient(90deg, var(--purple) var(--p, 0%), rgba(255, 255, 255, .25) var(--p, 0%)); }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.player__seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.player__time { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .8); }
.player:fullscreen { display: flex; flex-direction: column; border-radius: 0; }
.player:fullscreen .player__frame { flex: 1; aspect-ratio: auto; }
@media (max-width: 480px) { .player__time { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Страницы документов */
.doc { padding: calc(var(--header-h) + 72px) 0 96px; }
.doc .container { max-width: 880px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; }
.doc p, .doc li { color: #33353F; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc__meta { color: var(--muted); margin-bottom: 28px; }
.doc a { color: var(--purple); }
