@font-face {
  font-family: Manrope;
  src: url('../assets/fonts/Manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f2f6f3;
  --ink: #17241d;
  --muted: #58685d;
  --accent: #008574;
  --eco: #009d8d;
  --mint: #22d3bc;
  --rule: #cbd8cf;
  --font: Manrope, Arial, sans-serif;
  --header-height: 88px;
}
*, *::before, *::after { box-sizing: border-box; }
/* Выделение текста — фирменным бирюзовым; в плеере выделение отключено */
::selection { background: var(--eco); color: #fff; }
.player, .player * { -webkit-user-select: none; user-select: none; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { position: relative; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
.home-page { min-height: 100svh; isolation: isolate; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled, input:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, .player:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.player button:focus-visible, .player input:focus-visible { outline-color: var(--mint); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-width { width: min(1440px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: 1rem 1.5rem; background: var(--ink); color: #fff; border-radius: 5px; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--rule); background: #f2f6f3ed; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { display: block; height: auto; }
.brand-wordmark { width: 195px; }
.brand .brand-symbol { width: 42px; }
.site-navigation { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); margin-left: auto; }
.header-link { position: relative; padding: 8px 0; font-size: .8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .2s; }
.header-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--eco); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.header-link:hover { color: var(--accent); }
.header-link:hover::after, .header-link[aria-current="page"]::after, .header-link[aria-current="location"]::after { transform: scaleX(1); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none; min-width: 92px; height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; transition: color .25s, border-color .25s, background .25s; }
.menu-label { font-size: .75rem; font-weight: 700; }
.menu-mark { position: relative; width: 16px; height: 14px; flex: none; }
.menu-mark span { position: absolute; left: 0; top: 6px; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.22, 1, .36, 1), width .3s; }
.menu-mark span:first-child { transform: translateY(-3px); }
.menu-mark span:last-child { width: 10px; transform: translateY(3px); }
.menu-toggle:hover, .is-menu-open .menu-toggle { border-color: var(--accent); color: var(--accent); background: #00857408; }
.is-menu-open .menu-mark span:first-child { transform: rotate(45deg); }
.is-menu-open .menu-mark span:last-child { width: 16px; transform: rotate(-45deg); }
.mobile-products { display: none; }
/* Правые диагонали ограничены областью видео и растворяются до следующих разделов. */
.page-stripes { position: absolute; inset: 0; z-index: 0; overflow: hidden; color: var(--eco); pointer-events: none; }
.page-stripes svg { position: absolute; display: block; height: auto; }
.page-stripe-top { left: -80px; top: 0; width: clamp(240px, 24vw, 410px); }
.page-stripe-bottom { position: absolute; inset: -40px -12px -40px -12px; z-index: -1; background: linear-gradient(135deg, transparent calc(50% - 82px), #009d8d26 calc(50% - 82px), #009d8d26 calc(50% - 80px), #009d8d04 calc(50% - 80px), #009d8d04 calc(50% + 80px), #009d8d26 calc(50% + 80px), #009d8d26 calc(50% + 82px), transparent calc(50% + 82px)); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 65%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 65%, transparent); pointer-events: none; }
/* Разметка льда — свой слой на всю высоту страницы (не обрывается на границе первого экрана),
   под полосками. Рисунок размечен по первому экрану: тянется до середины промежутка между
   слоганом и видео (там проходила бы синяя линия — её не рисуем) и заполняется целиком (slice),
   линия ворот — у края экрана; то, что ниже первого экрана, дорисовывается (overflow: visible).
   В углу с фирменными полосками разметка растворяется: маска по диагонали,
   --stripe-d — расстояние от угла до дальней полоски (геометрия .page-stripe-top).
   --pw и --gap повторяют ширину страницы и промежуток .hero */
.page-rink-layer { --stripe-d: calc((0.843 * clamp(240px, 24vw, 410px) - 80px) / 1.414); position: absolute; inset: 0; z-index: 0; overflow: hidden; color: var(--eco); pointer-events: none; -webkit-mask-image: linear-gradient(135deg, transparent calc(var(--stripe-d) + 20px), #000 calc(var(--stripe-d) + 170px)); mask-image: linear-gradient(135deg, transparent calc(var(--stripe-d) + 20px), #000 calc(var(--stripe-d) + 170px)); }
.page-rink { --pw: min(1440px, 100% - 96px); --gap: clamp(36px, 4vw, 64px); position: absolute; display: block; left: 0; top: 0; height: max(100svh, 760px); width: calc((100% - var(--pw)) / 2 + (var(--pw) - var(--gap)) * .425 + var(--gap) / 2 + 5px); overflow: visible; }
.home-page .hero, .home-page .site-footer { position: relative; z-index: 1; }
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: 'overview film' 'description description' 'contacts contacts'; column-gap: clamp(36px, 4vw, 64px); padding-top: 72px; padding-bottom: 72px; }
.hero section[id], #player { scroll-margin-top: 1rem; }
.hero-overview { grid-area: overview; min-width: 0; align-self: center; container-type: inline-size; }
.intro { position: relative; isolation: isolate; }
.intro h1 { margin: -.165em 0 0; font-size: clamp(2.35rem, 14cqi, 5rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 900; }
.intro h1 span { color: var(--eco); }
.hero-lead { max-width: 480px; margin: 24px 0 0; font-size: 1.0625rem; line-height: 1.65; color: var(--muted); }
.action-primary { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 15px 22px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font-size: .875rem; font-weight: 700; line-height: 1.4; transition: background .2s, transform .2s; }
.action-primary:hover { background: #006e60; transform: translateY(-1px); }
.action-primary span { font-size: 1.125rem; line-height: 1; }
.section-kicker { margin: 0 0 14px; font-size: .6875rem; font-weight: 700; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.presentation { position: relative; isolation: isolate; min-width: 0; width: 100%; grid-area: film; align-self: center; scroll-margin-top: 2rem; }
.presentation-grid { min-width: 0; }

/* Описания для трёх аудиторий. Без JavaScript все разделы остаются видимыми. */
.ecosystem-description { grid-area: description; min-width: 0; width: 100%; margin-top: 96px; }
.section-heading { margin-bottom: 36px; }
.section-heading h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 700; }
.audience-tabs { position: relative; display: flex; width: max-content; max-width: 100%; gap: 10px; }
.audience-tab { position: relative; z-index: 1; min-height: 54px; padding: 12px 22px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--muted); font-size: 1.125rem; font-weight: 700; line-height: 1.4; transition: color .25s, border-color .25s, background .25s; }
.audience-tab:hover { color: var(--accent); border-color: var(--accent); background: #00857408; }
.audience-tab[aria-selected="true"] { color: #fff; border-color: transparent; background: var(--accent); }
.audience-tabs.has-tab-indicator::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: var(--tab-width, 0px); border-radius: 999px; background: var(--accent); transform: translateX(var(--tab-left, 0px)); pointer-events: none; }
.audience-tabs.is-indicator-ready::after { transition: width .4s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.22, 1, .36, 1); }
.audience-tabs.has-tab-indicator .audience-tab[aria-selected="true"] { background: transparent; }
.audience-panels { min-width: 0; }
.audience-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); padding-top: 40px; }
.ecosystem-description:not(.is-tabs-enhanced) .audience-panel + .audience-panel { margin-top: 40px; border-top: 1px solid var(--rule); }
.audience-summary, .audience-details { min-width: 0; }
.audience-product { display: flex; align-items: center; gap: 16px; }
.audience-product img { display: block; flex: none; width: 64px; height: 64px; }
.audience-product > div { min-width: 0; }
.audience-label { margin: 0 0 6px; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.audience-product h3 { margin: 0; font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.product-title-link { transition: color .2s; }
.product-title-link span { display: inline-block; margin-left: 2px; font-size: .65em; vertical-align: .15em; color: var(--accent); transition: transform .25s; }
.product-title-link:hover { color: var(--accent); }
.product-title-link:hover span { transform: translate(2px, -2px); }
.text-link { color: var(--accent); text-decoration: underline; text-decoration-color: #00857440; text-underline-offset: .2em; transition: text-decoration-color .25s; }
.text-link:hover { text-decoration-color: var(--accent); }
.audience-lead { max-width: 38ch; margin: 24px 0 0; font-size: 1.125rem; line-height: 1.7; color: var(--ink); }
.audience-lead + .audience-lead { margin-top: 16px; }
#audience-everyone .audience-lead { max-width: 46ch; }
.audience-price, .audience-note { max-width: 42ch; margin: 20px 0 0; font-size: .9375rem; line-height: 1.7; color: var(--muted); }
.audience-identity { margin-top: 28px; }
.audience-identity strong { color: var(--ink); font-weight: 700; }
.contact-write > span { display: inline-block; transition: transform .25s; }
.contact-write:hover > span { transform: translate(2px, -2px); }
.audience-details article + article { margin-top: 28px; }
.audience-details h4, .audience-identity h4 { margin: 0 0 10px; font-size: 1.125rem; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; }
.audience-details p, .audience-identity p { max-width: 52ch; margin: 0; font-size: 1rem; line-height: 1.7; color: var(--muted); }
.audience-details p + p, .audience-identity p + p { margin-top: 12px; }
.reveal-pending { opacity: 0; transform: translateY(14px); }
.reveal-enter { animation: heco-section-enter .65s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes heco-section-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.player { color-scheme: dark; color: #f3f6f1; width: 100%; aspect-ratio: 16 / 9; position: relative; isolation: isolate; overflow: hidden; background: #0b1615; border-radius: 11px; box-shadow: 0 24px 40px -25px #142c254f, 0 0 0 1px #17281e1c; }
.player-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #070e0b; }
.film-cover { position: absolute; inset: 0; overflow: hidden; }
.home-page .player { border-radius: 6px; box-shadow: 0 0 0 1px #17281e24; background: #1d1e1e; }
.home-page .player-video { background: #1d1e1e; }
.home-page .cover-play { position: absolute; z-index: 2; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(22px, 3vw, 34px); inset: 0; width: 100%; height: 100%; padding: 24px; border: 0; background: #1d1e1e; text-align: center; }
.home-page .cover-intro { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.home-page .cover-wordmark { display: block; width: 50%; height: auto; user-select: none; }
.home-page .cover-topic { color: #c1ccc6; font-size: clamp(.8125rem, 1.15vw, 1rem); font-weight: 400; line-height: 1.5; }
.home-page .cover-watch { display: flex; align-items: center; gap: 14px; gap: clamp(12px, 2.4cqi, 18px); color: #f4f4f1; }
/* Кнопка воспроизведения — крупная: главное, что нужно увидеть на обложке. Размер считается от ширины плеера (cqi),
   вокруг неё мягко расходится кольцо. */
.home-page .cover-watch-icon { position: relative; display: grid; place-items: center; width: 80px; height: 80px; width: clamp(60px, 12.5cqi, 92px); height: clamp(60px, 12.5cqi, 92px); flex: 0 0 auto; border-radius: 50%; background: #22d3bc; color: #16231e; box-shadow: 0 12px 28px -10px #22d3bcb3; transition: background .2s, transform .2s; }
.home-page .cover-watch-icon::after { content: ''; position: absolute; inset: -6px; border: 2px solid #22d3bc; border-radius: 50%; opacity: 0; animation: cover-pulse 2.6s ease-out infinite; }
@keyframes cover-pulse { 0% { transform: scale(.9); opacity: .6; } 70%, 100% { transform: scale(1.3); opacity: 0; } }
.home-page .cover-watch-icon svg { width: 42%; height: 42%; margin-left: 4%; }
.home-page .cover-watch-label { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
.home-page .cover-watch-label strong { font-size: 1.375rem; font-size: clamp(1rem, 3.5cqi, 1.75rem); font-weight: 800; line-height: 1.18; letter-spacing: -.025em; }
.home-page .cover-play:hover .cover-watch-icon { background: #6de9d5; transform: scale(1.06); }
.home-page .cover-play:focus-visible { outline-offset: -7px; }
/* Заставка с 3D-шайбой (puck.js): шайба слева, название и кнопка справа.
   Без WebGL скрипт снимает has-puck — и заставка прежняя, всё по центру */
.cover-play:not(.has-puck) .cover-text { display: contents; }
.home-page .cover-play.has-puck { flex-direction: row; justify-content: center; gap: clamp(6px, 1.6vw, 26px); padding: 18px clamp(20px, 3.6vw, 48px) 18px clamp(8px, 1.6vw, 24px); text-align: left; }
.cover-puck { position: relative; flex: 0 0 46%; aspect-ratio: 1; max-height: 100%; cursor: grab; touch-action: pan-y; }
.cover-puck:active { cursor: grabbing; }
.cover-puck canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.cover-puck.is-ready canvas { opacity: 1; }
.has-puck .cover-text { display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: clamp(18px, 2.6vw, 32px); min-width: 0; max-width: 320px; }
.home-page .has-puck .cover-intro { align-items: flex-start; gap: 10px; }
.home-page .has-puck .cover-wordmark { width: 100%; }

/* Video controls */
.player.is-started .film-cover { display: none; }
.player.is-playing .pause-icon, .player.is-fullscreen .collapse-icon { display: block; }
.pause-icon, .collapse-icon, .volume-muted { display: none; }
.player.is-playing .play-icon, .player.is-fullscreen .expand-icon { display: none; }
.player.is-muted .volume-waves { display: none; }
.player.is-muted .volume-muted { display: block; }
/* Фон панели — мягкая полупрозрачная растяжка, а не плотная чёрная плашка: ролик просвечивает */
.player-controls { position: absolute; inset: auto 0 0; z-index: 6; background: linear-gradient(#14171600, #14171612 24%, #14171633 50%, #1417165c 76%, #14171680); opacity: 1; transition: opacity .2s; padding: 52px 18px 12px; }
.player.is-controls-hidden .player-controls { opacity: 0; pointer-events: none; }
.player.is-controls-hidden { cursor: none; }
.timeline-wrap { position: relative; height: 20px; margin: 0 0 6px; }
.timeline-track { position: absolute; height: 3px; left: 0; right: 0; top: 8px; background: #ffffff38; border-radius: 3px; transition: height .15s; overflow: hidden; }
.timeline-wrap:hover .timeline-track, .timeline-wrap:focus-within .timeline-track { height: 5px; }
.timeline-buffered, .timeline-played { position: absolute; inset: 0 auto 0 0; width: 0; }
.timeline-buffered { background: #ffffff43; }
.timeline-played { background: var(--mint); }
.chapter-markers { position: absolute; inset: 0; }
.chapter-marker { position: absolute; top: 0; bottom: 0; width: 3px; background: #090e0a; }
.timeline { -webkit-appearance: none; appearance: none; display: block; position: absolute; inset: 0; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.timeline::-webkit-slider-runnable-track { background: transparent; height: 3px; }
.timeline::-moz-range-track { background: transparent; height: 3px; }
.timeline::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 3px #22d3bc19; opacity: 0; transition: opacity .15s; }
.timeline::-moz-range-thumb { width: 12px; height: 12px; background: var(--mint); border: 0; border-radius: 50%; opacity: 0; }
.timeline-wrap:hover .timeline::-webkit-slider-thumb, .timeline:focus-visible::-webkit-slider-thumb { opacity: 1; }
.timeline-wrap:hover .timeline::-moz-range-thumb, .timeline:focus-visible::-moz-range-thumb { opacity: 1; }
.seek-preview { position: absolute; bottom: 28px; transform: translateX(-50%); padding: 6px 9px; border-radius: 3px; font-size: .75rem; pointer-events: none; white-space: nowrap; background: var(--paper); color: var(--ink); border: 0; }
.controls-row, .controls-start, .controls-end { display: flex; align-items: center; }
.controls-row { gap: 1rem; justify-content: space-between; min-height: 40px; }
.controls-start { gap: 3px; }
.controls-end { margin-left: auto; gap: 4px; }
.icon-button { display: grid; place-items: center; height: 40px; border: 0; border-radius: 4px; background: none; padding: 8px; transition: color .15s, background .15s; flex-shrink: 0; width: 38px; }
.icon-button:hover { background: #ffffff13; color: var(--mint); }
.icon-button svg { width: 21px; height: 21px; }
.volume-control { display: flex; align-items: center; gap: 2px; }
.volume-slider { -webkit-appearance: none; appearance: none; height: 20px; background: none; cursor: pointer; accent-color: var(--mint); width: 45px; }
.volume-slider::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--mint) var(--volume-fill, 100%), #ffffff45 var(--volume-fill, 100%)); border-radius: 3px; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; background: #edf7f0; border-radius: 50%; }
.volume-slider::-moz-range-track { height: 3px; background: #ffffff45; border-radius: 3px; }
.volume-slider::-moz-range-progress { background: var(--mint); height: 3px; }
.volume-slider::-moz-range-thumb { width: 10px; height: 10px; background: #edf7f0; border: 0; border-radius: 50%; }
.time-display { display: flex; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 8px; font-size: .6875rem; gap: 6px; }
.time-divider { color: #839789; }
.current-chapter { color: #b5c3bb; font-size: .75rem; padding-left: 18px; white-space: nowrap; border-left: 1px solid #ffffff29; margin-left: 10px; overflow: hidden; text-overflow: ellipsis; display: none; }
.settings-wrap { position: relative; }
.speed-button { background: none; border: 0; border-radius: 4px; padding: 10px; min-height: 40px; font-weight: 600; min-width: 40px; font-size: .75rem; }
.speed-button:hover, .speed-button[aria-expanded="true"] { color: var(--mint); background: #ffffff13; }
.speed-menu { position: absolute; bottom: calc(100% + 17px); right: 0; min-width: 160px; padding: 8px; background: #17221ef2; border: 1px solid #4c5c53; border-radius: 6px; box-shadow: 0 10px 24px #0007; }
.speed-menu-label { display: block; color: #abb9b0; font-size: .75rem; padding: 9px 12px; border-bottom: 1px solid #ffffff17; margin-bottom: 4px; }
.speed-menu button { display: block; text-align: left; width: 100%; min-height: 39px; padding: 8px 12px; background: none; border: 0; border-radius: 3px; font-size: .8125rem; }
.speed-menu button:hover { background: #ffffff0b; }
.speed-menu button[aria-pressed="true"] { color: var(--mint); background: #22d3bc11; }
.speed-menu button[aria-pressed="true"]::after { content: '✓'; float: right; }
.center-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); backdrop-filter: blur(6px); border-radius: 50%; display: grid; place-items: center; z-index: 4; width: 66px; height: 66px; background: #fff; color: #192b21; border: 0; box-shadow: 0 5px 30px #0003; }
.center-play:hover { border-color: var(--mint); background: #b8f4e4; color: #192b21; }
.center-play svg { margin-left: 4px; width: 29px; height: 29px; }
.buffering { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 5; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #08160eb8; pointer-events: none; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ffffff29; border-top-color: var(--mint); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-feedback { position: absolute; left: 50%; transform: translateX(-50%); z-index: 8; padding: 9px 16px; border-radius: 4px; opacity: 0; transition: opacity .15s; pointer-events: none; background: var(--paper); color: var(--ink); border: 0; font-size: .75rem; top: 20px; }
.player-feedback.is-visible { opacity: 1; }
.player-error { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; background: #102319f5; }
.error-index { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.player-error h2 { margin: 18px 0 0; font-weight: 500; letter-spacing: -.03em; font-size: 1.25rem; }
.player-error p { color: #c2cbc6; line-height: 1.6; max-width: 460px; font-size: .8125rem; margin: 12px 0 19px; }
.text-button { border: 0; border-radius: 3px; font-weight: 700; background: var(--paper); color: var(--ink); padding: 11px 17px; font-size: .8125rem; }
.player:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.player:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }

.player:fullscreen .player-controls { padding: 72px 28px 20px; }
.player:fullscreen .current-chapter { display: block; color: #d1dfd4; font-size: .875rem; }
.site-footer { min-height: 84px; display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--rule); }
.footer-year { font-size: .6875rem; color: var(--muted); white-space: nowrap; }
.footer-link { margin-left: auto; font-size: .75rem; color: var(--muted); }
.footer-link:hover { color: var(--accent); }
.footer-link + .footer-mail { margin-left: 0; }
.footer-mail { margin-left: auto; font-size: .75rem; color: var(--muted); }
.footer-mail:hover { color: var(--accent); }
.noscript-message { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.noscript-message a { color: var(--accent); text-decoration: underline; }
/* Один завершающий блок: подключение и контакты. */
.contacts { grid-area: contacts; position: relative; min-width: 0; width: 100%; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(36px, 4.2vw, 64px); align-items: start; margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--rule); }
.contacts-intro { grid-column: 1; }
.contacts-details { grid-column: 2; min-width: 0; }
.contacts h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 700; letter-spacing: -.03em; }
.contacts-lead { max-width: 42ch; margin: 20px 0 24px; font-size: 1rem; line-height: 1.7; color: var(--muted); }
.contact-write { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid var(--rule); font-size: .875rem; font-weight: 700; }
.contact-write img { display: block; width: 20px; height: 20px; }
.contact-write:hover { color: var(--accent); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #d5dfd8; }
.contact-item:last-child { border-bottom: 1px solid #d5dfd8; }
.contact-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #0085740f; color: var(--accent); }
.contact-icon svg { width: 21px; height: 21px; }
.contact-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label { font-size: .6875rem; color: var(--muted); }
.contact-value { font-size: .9375rem; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
a.contact-value:hover { color: var(--accent); }
.contact-actions { display: flex; gap: 6px; }
.copy-button, .messenger-link { padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; background: #ffffffb3; color: var(--ink); font-size: .6875rem; font-weight: 700; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.copy-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; }
.copy-button svg { width: 16px; height: 16px; }
.copy-button .check-icon, .copy-button.is-copied .copy-icon { display: none; }
.copy-button.is-copied .check-icon { display: block; }
.copy-button:hover, .messenger-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-actions { align-items: center; }
.messenger-link { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; }
.messenger-link img { display: block; width: 16px; height: 16px; border-radius: 50%; }
.copy-button.is-copied { border-color: var(--accent); background: var(--accent); color: #fff; }
.copy-status { display: block; min-height: 1.2em; margin-top: 8px; font-size: .6875rem; color: var(--accent); }

/* Субтитры: свой слой, над панелью управления, размер — от ширины плеера */
.player { container-type: inline-size; }
.player-captions { position: absolute; left: 50%; bottom: 6%; z-index: 5; width: 88%; transform: translateX(-50%); text-align: center; pointer-events: none; transition: bottom .2s; }
.player-captions span { padding: .12em .45em; border-radius: 4px; background: #0b0f0dd1; color: #fff; font-size: clamp(12px, 2.3cqi, 30px); font-weight: 600; line-height: 1.55; white-space: pre-line; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.player.is-started:not(.is-controls-hidden) .player-captions { bottom: 92px; }
.captions-button[aria-pressed="true"] { color: var(--mint); }
.captions-button[aria-pressed="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--mint); }
.captions-button { position: relative; }

/* Экран после просмотра */
.end-screen { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 24px 90px; text-align: center; background: #1d1e1ef0; color: #f4f4f1; }
.end-title { margin: 0; font-size: clamp(1.125rem, 3.4cqi, 2.25rem); font-weight: 800; letter-spacing: -.03em; }
.end-text { margin: 0 0 12px; font-size: clamp(.75rem, 1.6cqi, 1.0625rem); color: #c1ccc6; }
.end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.end-primary, .end-link { padding: 11px 18px; border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.end-primary { background: var(--mint); color: #16231e; }
.end-primary:hover { background: #6de9d5; }
.end-link { border: 1px solid #ffffff3d; }
.end-link:hover { border-color: var(--mint); color: var(--mint); }
.end-replay { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border: 0; border-radius: 4px; background: none; color: #c1ccc6; font-size: .8125rem; font-weight: 600; }
.end-replay:hover { color: var(--mint); }
.end-replay svg { width: 18px; height: 18px; }

@media (min-width: 1650px) {
  .hero { padding-top: 88px; }
}
@media (max-width: 1200px) {
  .page-width { width: calc(100% - 64px); }
  .page-rink { --pw: calc(100% - 64px); --gap: 36px; }
  .hero { column-gap: 36px; padding-top: 56px; }
  .contacts { column-gap: 36px; }
  .header-inner { gap: 20px; }
  .player-controls { padding-inline: 12px; }
  .volume-slider, .rewind-button { display: none; }
}
/* Без JavaScript ссылки остаются видимыми; скрипт включает раскрывающееся меню. */
@media (max-width: 1000px) {
  :root { --header-height: 76px; }
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
  .brand .brand-wordmark { width: 173px; }
  .brand .brand-symbol { width: 36px; }
  .site-navigation { width: 100%; margin: 0; padding: 14px 0 22px; flex-direction: column; align-items: stretch; gap: 0; }
  .site-header:not(.is-enhanced) { position: relative; }
  .site-header.is-enhanced .header-inner { flex-wrap: nowrap; }
  .site-header.is-enhanced .site-navigation { display: flex; position: absolute; top: calc(100% + 8px); left: 20px; right: 20px; width: auto; max-height: calc(100dvh - var(--header-height) - 24px); overflow-y: auto; padding: 12px 24px 24px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); box-shadow: 0 18px 36px -20px #142c2533; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .3s cubic-bezier(.22, 1, .36, 1), visibility .25s; }
  .site-header.is-menu-open .site-navigation { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .site-navigation .header-link { padding: 18px 28px 18px 0; border-bottom: 1px solid var(--rule); font-size: 1.125rem; color: var(--ink); }
  .site-navigation .header-link::before { content: '↗'; position: absolute; right: 0; color: var(--accent); }
  .site-navigation .header-link::after { display: none; }
  .site-navigation .header-link[aria-current="page"], .site-navigation .header-link[aria-current="location"] { color: var(--accent); }
  .mobile-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; font-size: .8125rem; font-weight: 700; }
  .mobile-products > span { grid-column: 1 / -1; font-size: .6875rem; font-weight: 400; color: var(--muted); }
  .mobile-products a { min-height: 44px; }
  .mobile-products a > span { color: var(--accent); }
  .mobile-products small { display: block; margin-top: 5px; font-size: .6875rem; font-weight: 400; color: var(--muted); }
  .mobile-products a:hover { color: var(--accent); }
}
@media (max-width: 850px) {
  .page-width { width: calc(100% - 40px); }
  /* Одна колонка: промежутка нет — рисунок в натуральную величину от левого края */
  .page-rink { width: calc(max(100svh, 760px) * 19.95 / 26); }
  /* Первый экран складывается: слоган, видео, затем описания продуктов. */
  .hero { grid-template-columns: 1fr; grid-template-areas: 'overview' 'film' 'description' 'contacts'; padding-top: 34px; padding-bottom: 40px; }
  .contacts { display: block; margin-top: 64px; }
  .contacts-details { margin-top: 32px; }
  .contact-item:last-child { border-bottom: 0; }
  .intro h1 { margin-top: 0; }
  .presentation, .ecosystem-description { margin-top: 64px; }
  .audience-panel { grid-template-columns: 1fr; gap: 32px; }
  .audience-lead { max-width: 52ch; }
  .audience-price, .audience-note { max-width: 56ch; }
  .player-controls { padding: 46px 20px 14px; }
  .volume-slider, .rewind-button { display: block; }
  .site-footer { padding: 23px 0; min-height: 84px; }
}
@media (max-width: 560px) {
  .page-width { width: calc(100% - 24px); }
  .brand { gap: 8px; }
  .brand .brand-wordmark { width: 138px; }
  .brand .brand-symbol { width: 30px; }
  .menu-toggle { min-width: 88px; padding-inline: 10px; }
  .site-header.is-enhanced .site-navigation { left: 12px; right: 12px; padding-inline: 18px; }
  .hero { padding-top: 30px; }
  .intro h1 { font-size: clamp(2.35rem, 13cqi, 4.5rem); }
  .hero-lead { font-size: 1rem; margin-top: 20px; }
  .action-primary { padding: 14px 19px; font-size: .8125rem; gap: 16px; }
  .ecosystem-description { margin-top: 56px; }
  .presentation { margin-top: 56px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2, .contacts h2 { font-size: 1.75rem; }
  .audience-tabs { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .audience-tab { min-height: 48px; padding: 12px 6px; font-size: .875rem; }
  .audience-panel { padding-top: 30px; }
  .audience-product { gap: 12px; }
  .audience-product img { width: 52px; height: 52px; }
  .audience-product h3 { font-size: 1.625rem; }
  .audience-lead { font-size: 1.0625rem; }
  .player { border-radius: 7px; }
  .player-controls { padding: 32px 10px 7px; }
  .controls-row { gap: 4px; }
  .controls-start, .controls-end { gap: 0; }
  .volume-slider, .rewind-button, .pip-button { display: none !important; }
  .icon-button { width: 34px; height: 38px; padding: 7px; }
  .icon-button svg { width: 19px; height: 19px; }
  .speed-button { min-width: 36px; padding: 6px; min-height: 38px; }
  .time-display { margin-left: 5px; gap: 4px; font-size: .625rem; }
  .timeline-wrap { margin-bottom: 0; }
  .speed-menu { display: grid; grid-template-columns: repeat(2, 1fr); bottom: calc(100% + 10px); padding: 4px; min-width: 172px; }
  .speed-menu-label { display: none; }
  .speed-menu button { min-height: 30px; padding: 5px 9px; font-size: .75rem; }
  .speed-menu button:last-child { grid-column: 1 / -1; }
  .center-play { width: 51px; height: 51px; }
  .center-play svg { width: 25px; height: 25px; }
  .player-feedback { top: 10px; padding: 6px 10px; font-size: .6875rem; }
  .player-error { padding: 15px; }
  .error-index { display: none; }
  .player-error h2 { margin-top: 0; font-size: 1rem; }
  .player-error p { font-size: .75rem; margin: 8px 0 11px; }
  .text-button { padding: 9px 12px; font-size: .75rem; }
  .footer-year { font-size: .625rem; }
  .page-stripe-top { left: -105px; width: 260px; }
  .page-rink-layer { --stripe-d: calc((0.843 * 260px - 105px) / 1.414); }
  .page-stripe-bottom { opacity: .65; }
  .home-page .cover-play { padding: 18px; gap: 18px; }
  .home-page .cover-intro { gap: 9px; }
  .home-page .cover-wordmark { width: 56%; }
  .home-page .cover-topic { font-size: .75rem; }
  .home-page .cover-play.has-puck { gap: 4px; padding: 12px 16px 12px 4px; }
  .home-page .cover-puck { flex-basis: 40%; }
  .home-page .cover-watch-icon { width: clamp(48px, 12.5cqi, 66px); height: clamp(48px, 12.5cqi, 66px); }
  .has-puck .cover-text { gap: 14px; }
  .home-page .has-puck .cover-intro { gap: 6px; }
  .home-page .has-puck .cover-watch { gap: 10px; }
  .contacts { margin-top: 64px; padding-top: 30px; }
  .contact-item { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
  .contact-icon { width: 36px; height: 36px; }
  /* На телефоне кнопка Telegram — только логотип, чтобы обе кнопки помещались в строку */
  .messenger-link { width: 32px; padding: 0; justify-content: center; }
  .messenger-link img { width: 20px; height: 20px; }
  .messenger-link span { display: none; }
  .player.is-started:not(.is-controls-hidden) .player-captions { bottom: 64px; }
  .end-screen { padding: 14px 14px 64px; gap: 6px; }
  .end-text { display: none; }
  .end-actions { gap: 6px; }
  .end-primary, .end-link { padding: 7px 12px; font-size: .6875rem; }
  .end-link { display: none; }
  .end-replay { margin-top: 2px; font-size: .75rem; }
  .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
  .footer-link { margin-left: 0; font-size: .6875rem; }
  .footer-mail { grid-column: 1 / -1; margin-left: 0; font-size: .6875rem; }
}
@media (hover: none) {
  .timeline::-webkit-slider-thumb, .timeline::-moz-range-thumb { opacity: 1; }
  .volume-slider { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-pending { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
