/* Секции 1–5, 7–9 на 1440 px. Числа из EXTRACT.md и raw/design-context-*.tsx */

/* ---------- 1. Header ---------- */
.header { position: relative; z-index: 9; width: 100%; }
.header__inner { position: relative; max-width: var(--page-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 136px; padding: 40px 40px 40px 64px; }
.header__logo img { width: 128px; height: 28px; }
.nav { position: absolute; left: calc(50% + 12px); top: 50%; transform: translate(-50%, -50%); }
.nav__list { display: flex; align-items: center; gap: 32px; }
.nav__link { position: relative; display: inline-block; font-size: 16px; line-height: normal; color: var(--c-text); white-space: nowrap; padding: 4px 0; }
.nav__link::after { content: ""; position: absolute; left: 50%; width: 30px; transform: translateX(-50%); bottom: -0.5px; height: 2px; border-radius: 2px; background: var(--c-text); opacity: 0; transition: opacity .15s; }
.nav__link:hover::after, .nav__link.is-active::after { opacity: 1; }
.header__actions { display: flex; align-items: center; gap: 16px; }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; border-radius: 12px; }
.burger span { width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; }
.mobile-menu { display: none; }

/* ---------- 2. Hero ---------- */
.hero__inner { max-width: var(--page-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 80px 96px; }
.hero__labels { display: flex; align-items: center; gap: 16px; font-size: 16px; line-height: 19px; }
.hero__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-text); }
.hero__content { display: flex; flex-direction: column; align-items: center; gap: 56px; width: 100%; }
.hero__text { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }

/* ---------- 3. Макет + «Для кого» ---------- */
.overview { background: var(--c-mint); isolation: isolate; z-index: 1; }
.overview__bg { position: absolute; inset: -48px 0 -110px; z-index: 0; pointer-events: none; overflow: hidden; } /* как в Figma: паттерн выходит на 48px вверх (в hero) и на 110px вниз (в цены) */
.overview__pattern { position: absolute; left: 50%; z-index: 1; width: 1654px; max-width: none; height: auto; transform: translateX(-50%); } /* 1654px по центру (Figma: x −107 при 1440) */
.overview__pattern--top { top: -77px; } /* svg обрезан по viewBox y=630, узел Figma стоит на y=−48 от секции: −48 − (707 − 630) + 48 (контейнер) = −77 */
.overview__pattern--bottom { bottom: -2px; } /* нижняя волна привязана к низу секции */
.overview__glow { position: absolute; left: 0; right: 0; z-index: 0; } /* свечение под паттерном: так точки сохраняют цвет, как в эталоне */
.overview__glow--1 { top: 48px; height: 571px; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.92) 20%, rgba(255,255,255,.56) 47%, rgba(255,255,255,.15) 73%, rgba(255,255,255,0) 100%); }
.overview__glow--2 { bottom: 110px; height: 336px; /* низ секции = низ контейнера − 110; при любой высоте секции свечение заканчивается на её кромке */ background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,.92) 20%, rgba(255,255,255,.56) 47%, rgba(255,255,255,.15) 73%, rgba(255,255,255,0) 100%); }
.overview__inner { position: relative; z-index: 1; max-width: var(--page-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 160px; padding: 80px 96px; }

/* фиксированные макеты, масштабируемые JS */
.scale-box { position: relative; overflow: visible; }
.scale-box__inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

.for-who { display: flex; flex-direction: column; align-items: flex-start; gap: 64px; width: 100%; max-width: 1248px; }
.for-who__text { width: 100%; padding: 0 212px; }
@media (min-width: 1024px) { .for-who__text .h2 { white-space: nowrap; } }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 100%; }
.card { display: flex; flex-direction: column; background: var(--c-white); border-radius: var(--radius-card); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: 0 16px 40px -24px rgba(13, 21, 38, .35); transform: translateY(-2px); }
.card__body { display: flex; align-items: center; gap: 32px; padding: 32px; }
.card__media { position: relative; width: 112px; height: 112px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__media img { width: auto; max-height: 112px; }
.card__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.card__title { font-weight: 500; font-size: 24px; line-height: 32px; letter-spacing: -0.96px; }
.card__desc { font-size: 16px; line-height: 24px; letter-spacing: -0.48px; color: var(--c-text-2); }
.card__link { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 32px; border-top: 1px solid var(--c-surface); font-weight: 500; font-size: 16px; line-height: 16px; letter-spacing: -0.32px; }
.card__link img { transition: transform .15s; }
.card__link:hover img { transform: translateX(4px); }

/* ---------- 4. Цены ---------- */
.pricing__inner { max-width: var(--page-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 80px; padding: 160px 96px 80px; }
.pricing__text { padding: 0 108px; }
.pricing__lead { width: 824px; max-width: 100%; }
.price-cards { display: flex; align-items: flex-start; width: 100%; max-width: 1248px; }
.price-card { position: relative; flex: 1 0 0; min-width: 0; height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 32px 40px; }
.price-card--dark { background: var(--c-text); color: var(--c-white); border-radius: var(--radius-card); margin-right: -24px; z-index: 1; }
.price-card--light { background: var(--c-surface-2); border-radius: 24px; padding-left: 64px; color: var(--c-text-2); } /* правка дизайнера 05.11: без рамки и тени, заливка; левый край под тёмной карточкой */
.price-card__label { font-size: 18px; line-height: 28px; letter-spacing: -0.54px; }
.price-card__price { font-weight: 500; font-size: 64px; line-height: 68px; letter-spacing: -2.56px; color: inherit; }
.price-card--light .price-card__price { color: var(--c-text); }
.price-card__text { font-size: 18px; line-height: 28px; letter-spacing: -0.54px; }
.price-card__link { position: absolute; right: 40px; top: 37px; display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 16px; }
.price-card__link span { padding-bottom: 2px; }
.price-card__link--blue { color: var(--c-link-blue); }
.price-card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 5. AI-диалог + CTA ---------- */
.ai { overflow: hidden; }
.ai__inner { max-width: var(--page-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 80px; padding: 80px 96px 0; }
.ai__intro { width: 100%; max-width: 1248px; padding: 0 108px; }
.ai__lead { width: 824px; max-width: 100%; }
.ai__stage-wrap { position: relative; z-index: 2; width: 100%; max-width: 1248px; height: 1034px; } /* на экранах уже 1248 вся композиция (макет + чат + бейдж) масштабируется целиком, см. fitPanels */
.ai__stage { position: absolute; left: 0; top: 0; width: 1248px; height: 1034px; transform-origin: 0 0; } /* сцена над волной CTA: окно чата непрозрачное, стеклянные карточки макета пропускают точки, как в Figma */
.ai__mockup { position: absolute; left: 0; top: 48px; }
.ai__badge { position: absolute; left: 452px; top: 369px; width: 296px; height: 296px; z-index: 3; pointer-events: none; }
.chat { position: absolute; left: 600px; top: 0; width: 648px; height: 1034px; z-index: 2; overflow: hidden; display: flex; flex-direction: column; gap: 64px; padding: 32px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-box); box-shadow: -80px 0 160px -80px rgba(0, 0, 0, .25); }
.chat__log { display: flex; flex-direction: column; gap: 24px; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; } /* на десктопе окно 1034 фиксировано — лог берёт остаток (подсказки стали выше) */
.chat__log::-webkit-scrollbar { display: none; }
.chat__log > :first-child { margin-top: auto; } /* короткий диалог прижат к низу, длинный — прокручивается */
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.msg--user { align-items: flex-end; }
.msg--ai { align-items: flex-start; padding-right: 148px; }
.msg__bubble { padding: 12px 16px; font-size: 16px; line-height: 24px; letter-spacing: -0.48px; }
.msg--user .msg__bubble { border: 1px solid var(--c-line); border-radius: 16px 16px 8px 16px; white-space: nowrap; max-width: 100%; }
.msg--ai .msg__bubble { width: 100%; background: var(--c-surface); border-radius: 16px 16px 16px 8px; }
.msg__meta { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; letter-spacing: -0.36px; color: var(--c-text-3); }
.msg__ai { color: var(--c-brand-700); }
.msg__dot { width: 2px; height: 2px; border-radius: 50%; background: var(--c-text-3); }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 24px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-text-3); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.chat__bottom { display: flex; flex-direction: column; gap: 24px; flex: none; }
.chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; } /* подсказки — овалы с полным вопросом, без заголовка и иконки (решение владельца 03.11) */
.chip { width: auto; max-width: 100%; display: flex; align-items: center; text-align: left; padding: 9px 18px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 24px; font-weight: 500; transition: border-color .15s, background-color .15s; }
.chip:hover { border-color: var(--c-text-3); background: #fbfcfe; }
.chip__text { font-size: 15px; line-height: 20px; letter-spacing: -0.3px; color: var(--c-text); }
.chat__input { position: relative; height: 88px; padding: 4px; border-radius: 28px; overflow: visible; isolation: isolate; /* подсказка под полем (top: 100%) должна быть видна; градиент режется скруглением */
  background: linear-gradient(90deg, #ffff00 0%, #95ff00 24%, #00ffff 58%, #9ff5ff 82%, #c9f9ff 100%); } /* статичная рамка, замкнутая по контуру (решение владельца) */
.chat__input-fade { display: none; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 50%, rgba(255,255,255,.009) 53.3%, rgba(255,255,255,.036) 56.7%, rgba(255,255,255,.082) 60%, rgba(255,255,255,.147) 63.3%, rgba(255,255,255,.232) 66.7%, rgba(255,255,255,.332) 70%, rgba(255,255,255,.443) 73.3%, rgba(255,255,255,.557) 76.7%, rgba(255,255,255,.668) 80%, rgba(255,255,255,.768) 83.3%, rgba(255,255,255,.853) 86.7%, rgba(255,255,255,.918) 90%, rgba(255,255,255,.964) 93.3%, rgba(255,255,255,.991) 96.7%, #fff 100%); }
.chat__field { position: relative; z-index: 2; height: 100%; background: var(--c-white); border-radius: 24px; display: flex; align-items: center; }
.chat__clip { position: absolute; left: 29px; top: 50%; transform: translateY(-50%); }
.chat__text { flex: 1; height: 100%; padding: 0 80px 0 77px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--c-text); outline: none; }
.chat__text::placeholder { color: var(--c-text-2); }
.chat__send { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--c-surface); display: flex; align-items: center; justify-content: center; transition: background-color .15s; }
.chat__send:hover { background: #e3e8f2; }
.chat__hint { position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--c-text-2); z-index: 3; }

.cta { position: relative; z-index: 1; width: 100%; max-width: 1248px; display: flex; flex-direction: column; align-items: center; gap: 64px; padding: 80px 108px 160px; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.cta__pattern { position: absolute; left: -255px; top: -482px; width: 1758px; max-width: none; height: auto; z-index: 2; } /* Figma: узел на (−255, −400); svg обрезан по viewBox на 82px выше */
.cta__glow { position: absolute; left: calc(50% - 720px); right: calc(50% - 720px); bottom: 0; /* на всю ширину страницы 1440 */ height: 1270px; z-index: 1; opacity: .2; background: var(--c-glow); border-radius: 0 0 64px 64px;
  -webkit-mask: linear-gradient(to top, #000 0, rgba(0,0,0,.991) 6.67%, rgba(0,0,0,.964) 13.3%, rgba(0,0,0,.918) 20%, rgba(0,0,0,.853) 26.7%, rgba(0,0,0,.768) 33.3%, rgba(0,0,0,.668) 40%, rgba(0,0,0,.557) 46.7%, rgba(0,0,0,.443) 53.3%, rgba(0,0,0,.332) 60%, rgba(0,0,0,.232) 66.7%, rgba(0,0,0,.147) 73.3%, rgba(0,0,0,.082) 80%, rgba(0,0,0,.036) 86.7%, rgba(0,0,0,.01) 93.3%, transparent 100%); mask: linear-gradient(to top, #000 0, rgba(0,0,0,.991) 6.67%, rgba(0,0,0,.964) 13.3%, rgba(0,0,0,.918) 20%, rgba(0,0,0,.853) 26.7%, rgba(0,0,0,.768) 33.3%, rgba(0,0,0,.668) 40%, rgba(0,0,0,.557) 46.7%, rgba(0,0,0,.443) 53.3%, rgba(0,0,0,.332) 60%, rgba(0,0,0,.232) 66.7%, rgba(0,0,0,.147) 73.3%, rgba(0,0,0,.082) 80%, rgba(0,0,0,.036) 86.7%, rgba(0,0,0,.01) 93.3%, transparent 100%); }
.cta__text { position: relative; z-index: 4; }
.cta__title { width: 888px; max-width: 100%; }
.cta__lead { width: 930px; max-width: 100%; color: var(--c-text); }
.cta .pill { z-index: 3; }

/* ---------- 7. CTA-2 ---------- */
.cta2 { padding: 80px 16px; overflow: hidden; }
.cta2__card { position: relative; width: 100%; max-width: 1408px; margin: 0 auto; border: 0; /* контур 1 px — ::after */ border-radius: 64px; overflow: hidden; isolation: isolate; clip-path: inset(0 round 64px); } /* clip-path: канвас и blur-слой режутся по радиусу надёжно, overflow: hidden их иногда пропускает */
.cta2__card .movgrad-canvas { z-index: 0; }
.cta2__card::after { content: ""; position: absolute; inset: 0; z-index: 4; border: 1px solid var(--c-surface); border-radius: inherit; pointer-events: none; } /* чёткий контур поверх вуали и градиента */
.cta2__frost { position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: rgba(255,255,255,.8); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); }
.cta2__mask { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: none; height: auto; transform: translate(-50%, 50%); z-index: 2; pointer-events: none; } /* круглая вуаль центром на нижней кромке, диаметр = ширина карточки (на 1440 это 1407 px, как в Figma); на узких экранах уменьшается вместе с карточкой */
.cta2__content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 64px; padding: 108px 80px; }
.cta2__lead { width: 930px; max-width: 100%; color: var(--c-text); }

/* ---------- 8. FAQ ---------- */
.faq__inner { max-width: var(--page-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 80px; padding: 80px 96px 190px; }
.faq__list { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 824px; }
.faq__item { background: var(--c-surface-2); border-radius: 16px; border: 0; box-shadow: inset 0 0 0 1px transparent; overflow: hidden; transition: background-color .2s, box-shadow .2s; }
.faq__item[open] { background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-surface); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 24px 24px 32px; cursor: pointer; list-style: none; font-size: 20px; line-height: 32px; letter-spacing: -0.6px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron { flex: none; width: 24px; height: 24px; background: url("../assets/faq/analysis-icon.svg") center calc(50% + 4px) / 24px no-repeat; transition: background-image .2s; }
.faq__item[open] .faq__chevron { background-image: url("../assets/faq/analysis-icon1.svg"); background-position: center calc(50% + 2px); }
.faq__a { padding: 0 16px 24px 32px; font-size: 20px; line-height: 32px; letter-spacing: -0.6px; color: var(--c-text-2); }
.faq__a p { max-width: 768px; }

/* ---------- 9. Footer ---------- */
.footer { position: relative; padding: 112px 16px 0; isolation: isolate; }
.footer__bg { position: absolute; inset: -112px 0 0; z-index: 0; overflow: hidden; pointer-events: none; } /* Figma: bg-pattern на y=−112 от футера */
.footer__pattern { position: absolute; left: 50%; top: -70px; width: 1654px; max-width: none; height: auto; transform: translateX(-50%); } /* Figma: 1654px по центру; svg обрезан по viewBox y=11380 → −112 + 42 */
.footer__top { position: relative; z-index: 2; max-width: 1408px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; padding: 32px 32px 32px 48px; background: var(--c-white); border-radius: 32px 32px 0 0; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer__left { display: flex; align-items: center; gap: 48px; }
.footer__nav { display: flex; align-items: center; gap: 32px; }
.footer__actions { display: flex; align-items: center; gap: 16px; }
.pay { display: flex; align-items: center; gap: 16px; }
.footer__contacts { display: flex; align-items: center; gap: 32px; padding-right: 8px; }
.footer__contact { display: flex; align-items: center; gap: 12px; font-family: var(--font-footer); font-size: 15px; line-height: 24px; color: var(--c-footer-text); }
.footer__contact span { padding-bottom: 4px; }
.footer__contact:hover span { text-decoration: underline; text-underline-offset: 3px; }
.footer__bar { position: relative; z-index: 2; max-width: 1408px; margin: 0 auto; display: flex; align-items: center; gap: 32px; padding: 16px 48px; background: var(--c-footer-bar); }
.footer__legal { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-family: var(--font-footer); font-size: 13px; line-height: 24px; color: var(--c-footer-text); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__legal-links a:hover { text-decoration: underline; }
.footer__copy { color: var(--c-footer-text-2); }
.social { display: flex; align-items: center; gap: 8px; }
.social a { display: block; transition: opacity .15s; }
.social a:hover { opacity: .7; }
.footer__emblem { width: 87.9px; height: 48px; }

/* ---------- основной режим (data-scale="off"): страница не масштабируется, контент 1440 по центру.
   Фоновые волны растут пропорционально окну (s = 100vw/1440) и привязаны ВЕРХНЕЙ кромкой к тем же точкам, что в макете:
   над блоком остаётся такая же мягкая полоса, а плотная часть уходит ниже, под контент / к краям экрана. ---------- */
html[data-scale="off"] .overview__pattern { width: max(1654px, 114.86vw); }
html[data-scale="off"] .overview__pattern--top { top: calc(3px - 5.5556vw); } /* видимый верх волны (ряд 80 картинки) на 45px выше секции при любом масштабе */
html[data-scale="off"] .cta__pattern { left: 50%; top: calc(-33.4722vw); width: max(1758px, 122.08vw); transform: translateX(-50%); } /* под сценой: якорь на кромке CTA */
html[data-scale="off"] .cta__glow { left: calc(50% - 50vw); right: calc(50% - 50vw); }
html[data-scale="off"] .footer__pattern { top: calc(-4.8611vw); width: max(1654px, 114.86vw); } /* видимый верх волны (ряд 70) на 112px выше футера при любом масштабе */

/* подвал: документы и контакты как на главной pixwise.ai */
.footer__legal-links { flex-wrap: wrap; row-gap: 0; }
.footer__contact--pd { gap: 6px; }
.footer__contact--pd a { text-decoration: underline; text-underline-offset: 3px; }
