/* V3: внутренние страницы (tools/build_v3.py), калькулятор, выпадающее меню.
   Подключается после site.css, v2.css и v3.css, токены берёт оттуда. */

/* ---------- Кнопки на светлом фоне ---------- */
.btn--line { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--line:hover { background: var(--blue); color: var(--white); }

/* ---------- Шапка: выпадающее «Услуги» ---------- */
.nav__drop { position: relative; }
.v3 .nav > a, .nav__drop-btn { white-space: nowrap; }
.nav__drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 0; border-radius: 100px; background: none; color: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s; }
.nav__drop-btn svg { width: 12px; height: 12px; transition: transform .2s; }
.nav__drop:hover .nav__drop-btn, .nav__drop.is-open .nav__drop-btn, .nav__drop.is-active .nav__drop-btn { background: var(--graphite); }
.nav__drop.is-open .nav__drop-btn svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: 100%; left: 50%; z-index: 60; display: grid; min-width: 250px; margin-top: 8px; padding: 10px; border-radius: 20px; background: var(--graphite); box-shadow: 0 20px 40px rgba(0,0,0,.35); transform: translate(-50%, 6px); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__drop:hover .nav__menu, .nav__drop.is-open .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav .nav__menu a { padding: 10px 14px; border-radius: 12px; white-space: nowrap; color: var(--white); }
.nav .nav__menu a:hover, .nav .nav__menu a[aria-current] { background: #2c2c2c; color: var(--white); }
.nav > a[aria-current], .nav > a.is-active { background: var(--graphite); }
.mnav__group summary { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); font: 500 22px/1.2 var(--font-head); list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.mnav__group summary::-webkit-details-marker { display: none; }
.mnav__group summary::after { content: "+"; font-family: var(--font-body); font-size: 26px; font-weight: 400; transition: transform .2s; }
.mnav__group[open] summary::after { transform: rotate(45deg); }
.mnav__group > div { display: grid; padding: 6px 0 10px 16px; }
.mobile-menu .mnav__group a { padding: 10px 0; border: 0; font: 500 17px/1.3 var(--font-body); color: var(--grey-300); }
.mobile-menu nav a[aria-current] { color: var(--blue-2); }

/* ---------- Подвал: ссылки на документы ---------- */
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.v3:not(.inner-page) .footer__docs { grid-column: 1 / 4; }

/* ---------- Hero внутренних страниц ---------- */
.phero { position: relative; overflow: hidden; background: var(--black); color: var(--white); padding: 40px 0 96px; }
.phero .hero__planet { top: -60px; opacity: .55; }
.phero__inner { z-index: 2; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: var(--grey-300); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--white); opacity: .7; }
.phero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; margin-top: 56px; }
.phero--media .phero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.phero__text { max-width: 780px; }
.phero__title { margin-top: 20px; font: 600 44px/1.2 var(--font-head); letter-spacing: -.01em; text-wrap: balance; }
.phero__lead { margin-top: 24px; max-width: 700px; font-size: 18px; line-height: 1.45; font-weight: 500; }
.phero__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 24px; font-size: 14px; font-weight: 500; color: var(--grey-300); }
.phero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.phero__chips li { min-height: 34px; padding: 7px 14px; display: flex; align-items: center; border-radius: 17px; background: var(--graphite); font-size: 14px; font-weight: 500; }
.phero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.phero__btns .btn { min-width: 208px; }
.phero__media { position: relative; }
.phero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; }

/* ---------- Секции ---------- */
.v3p .sec { padding: 120px 0; overflow-x: clip; }
.v3p .sec.section--light + .sec.section--light { padding-top: 0; }
.section--grey { background: var(--grey-50); color: var(--graphite); }
.v3p .phero + .sec.section--light { padding-top: 120px; }
.shead { display: grid; grid-template-columns: var(--head-col) 1fr; align-items: start; margin-bottom: 48px; }
.shead .label { padding-top: 12px; }
.h2s { grid-column: 2; font: 600 36px/1.25 var(--font-head); letter-spacing: -.01em; text-wrap: balance; }
.h2s a { text-decoration: underline; text-underline-offset: 4px; }
.blk { margin-top: 40px; }
.blk:first-child { margin-top: 0; }
.shead + .prose, .shead + .blk { margin-top: 0; }

/* Текст: правая колонка, как заголовки секций */
.prose { margin-left: var(--head-col); max-width: 690px; font-size: 16px; line-height: 1.65; }
.prose + .prose, .blk + .prose { margin-top: 32px; }
.prose > * + * { margin-top: 16px; }
.prose h3 { margin-top: 32px; font: 600 20px/1.3 var(--font-head); }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--blue); }
.prose a, .card__text a, .step__text a, .qa__a a, .note a, .price__list a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.section--dark .prose a, .section--dark .card__text a { color: var(--white); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--blue); font-size: 18px; font-weight: 500; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 24px; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid #e3e3e3; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; background: var(--grey-50); }
.section--grey .prose th { background: var(--white); }
.section--dark .prose th { background: #2a2a2a; }
.section--dark .prose th, .section--dark .prose td { border-color: rgba(255,255,255,.14); }

/* ---------- Карточки ---------- */
.cards { display: grid; gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 24px; background: var(--grey-50); }
.section--grey .card { background: var(--white); }
.section--dark .card { background: transparent; border: 1px solid rgba(255,255,255,.14); }
.card__title { font: 600 19px/1.3 var(--font-head); }
.card__text { font-size: 15px; line-height: 1.55; color: var(--grey-600); }
.card__text > * + * { margin-top: 10px; }
.card__text ul { padding-left: 18px; list-style: disc; }
.section--dark .card__text { color: var(--grey-300); }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--blue); transition: gap .2s; }
.card__link:hover { gap: 12px; }
.section--dark .card__link { color: var(--white); }
.ico-arrow { flex: 0 0 18px; width: 18px; height: 18px; }

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; list-style: none; padding: 0; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 24px; background: var(--grey-50); }
.section--grey .step { background: var(--white); }
.section--dark .step { background: transparent; border: 1px solid rgba(255,255,255,.14); }
.step__num { font: 600 15px/1 var(--font-head); color: var(--blue); }
.section--dark .step__num { color: var(--blue-2); }
.step__title { font: 600 19px/1.3 var(--font-head); }
.step__text { font-size: 15px; line-height: 1.55; color: var(--grey-600); }
.step__text > * + * { margin-top: 10px; }
.section--dark .step__text { color: var(--grey-300); }

/* ---------- Цены ---------- */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.prices:has(> .price:only-child) { max-width: 400px; }
.price { display: flex; flex-direction: column; padding: 32px; border: 2px solid #ededed; border-radius: 24px; background: var(--white); }
.section--dark .price { background: var(--white); color: var(--graphite); border-color: transparent; }
.price__title { font: 600 19px/1.3 var(--font-head); }
.price__sum { margin-top: 14px; font: 600 26px/1.2 var(--font-head); color: var(--blue-3); }
.price__list { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--grey-600); }
.price__list ul { padding-left: 18px; list-style: disc; }
.price__list li + li { margin-top: 6px; }
.price__list > * + * { margin-top: 10px; }
.price__term { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--grey-50); font-size: 15px; font-weight: 500; }
.price__btn { margin-top: auto; align-self: flex-start; }
.price > :nth-last-child(2) { margin-bottom: 24px; }

/* ---------- Цифры ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fact { display: flex; flex-direction: column; gap: 10px; padding: 28px 32px; border-radius: 24px; background: var(--blue); color: var(--white); }
.fact__num { font: 600 40px/1.1 var(--font-head); letter-spacing: -.02em; }
.fact__text { font-size: 15px; line-height: 1.45; }

/* ---------- Вопросы и ответы ---------- */
.qa { margin-left: var(--head-col); border-top: 1px solid #d9d9d9; }
.section--dark .qa { border-color: rgba(255,255,255,.2); }
.qa__item { border-bottom: 1px solid #d9d9d9; }
.section--dark .qa__item { border-color: rgba(255,255,255,.2); }
.qa summary { position: relative; display: block; padding: 24px 56px 24px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa__q { font: 600 18px/1.35 var(--font-head); }
.qa__plus { position: absolute; right: 8px; top: 30px; width: 16px; height: 16px; }
.qa__plus::before, .qa__plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1.5px; background: currentColor; transition: transform .2s; }
.qa__plus::after { transform: rotate(90deg); }
.qa details[open] .qa__plus::after { transform: rotate(0); }
.qa__a { padding: 0 56px 26px 0; font-size: 15px; line-height: 1.6; color: var(--grey-600); }
.qa__a > * + * { margin-top: 10px; }
.qa__a ul { padding-left: 18px; list-style: disc; }
.section--dark .qa__a { color: var(--grey-300); }

/* ---------- Ссылки-карточки ---------- */
.lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.lcard { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 120px; padding: 24px 56px 24px 24px; border: 2px solid #ededed; border-radius: 20px; background: var(--white); color: var(--graphite); transition: border-color .2s, background-color .2s, color .2s; }
.lcard:hover { border-color: var(--blue); }
.lcard__kicker { font-size: 13px; font-weight: 500; color: var(--blue-3); }
.lcard__title { font: 600 17px/1.3 var(--font-head); }
.lcard__text { font-size: 14px; line-height: 1.45; color: var(--grey-600); }
.lcard .ico-arrow { position: absolute; right: 22px; top: 26px; color: var(--blue); transition: transform .2s; }
.lcard:hover .ico-arrow { transform: translateX(4px); }
.section--dark .lcard { background: transparent; border-color: rgba(255,255,255,.14); color: var(--white); }
.section--dark .lcard__text { color: var(--grey-300); }

/* ---------- Заметка ---------- */
.note { margin-left: var(--head-col); max-width: 690px; padding: 20px 24px; border-left: 3px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--grey-50); font-size: 15px; line-height: 1.55; color: #3a3a3a; }
.section--grey .note { background: var(--white); }
.section--dark .note { background: #2a2a2a; color: var(--grey-300); }

/* ---------- CTA-полоса внутри страницы ---------- */
.cta-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 48px; border-radius: 28px; background: var(--graphite); color: var(--white); overflow: hidden; position: relative; }
.section--dark .cta-band { background: var(--blue); }
.cta-band__title { font: 600 28px/1.25 var(--font-head); letter-spacing: -.01em; }
.cta-band__sub { margin-top: 12px; max-width: 640px; font-size: 16px; line-height: 1.5; color: var(--grey-300); }
.section--dark .cta-band__sub { color: var(--white); }
.cta-band__btns { display: grid; gap: 10px; }
.cta-band__btns .btn { min-width: 230px; }

/* ---------- Галерея и кейсы ---------- */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gal--one { grid-template-columns: 1fr; }
.gal__item { margin: 0; border-radius: 20px; overflow: hidden; background: var(--grey-50); }
.gal__item img { width: 100%; height: 100%; object-fit: cover; }
.gal--one .gal__item img { height: auto; }
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--grey-50); transition: background-color .2s, color .2s; }
.section--grey .ccard { background: var(--white); }
.ccard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e7e7e7; }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ccard__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-3) 100%); }
.ccard__body { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.ccard__meta { font-size: 13px; font-weight: 500; color: var(--blue-3); }
.ccard__title { font: 600 19px/1.25 var(--font-head); }
.ccard__text { font-size: 14px; line-height: 1.45; color: var(--grey-600); }
.ccard:hover { background: var(--graphite); color: var(--white); }
.ccard:hover .ccard__img img { transform: scale(1.03); }
.ccard:hover .ccard__meta, .ccard:hover .ccard__text { color: var(--grey-300); }

/* ---------- Блоки во всю ширину: без левой колонки ---------- */
.blk--cards, .blk--steps, .blk--prices, .blk--facts, .blk--links, .blk--cta, .blk--gallery, .blk--calculator, .blk--sitemap { margin-left: 0; }

/* ---------- Статья ---------- */
.article { padding-top: 96px !important; }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; align-items: start; }
.article__body { max-width: 760px; }
.article__body .prose, .article__body .qa, .article__body .note { margin-left: 0; max-width: none; }
.article__body .prose { font-size: 17px; line-height: 1.7; }
.h2a { margin-top: 64px; font: 600 28px/1.3 var(--font-head); letter-spacing: -.01em; scroll-margin-top: 100px; }
.h2a:first-child { margin-top: 0; }
.h2a + .prose, .h2a + .blk { margin-top: 20px; }
.article__body .blk { margin-top: 32px; }
.article__body .cards--3, .article__body .cards--4 { grid-template-columns: repeat(2, 1fr); }
.article__body .steps { grid-template-columns: 1fr; }
.article__aside { position: sticky; top: 104px; display: grid; gap: 16px; }
.toc { padding: 24px; border-radius: 20px; background: var(--grey-50); }
.toc__h { font: 600 15px/1.2 var(--font-head); }
.toc ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.toc a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.35; color: var(--grey-600); transition: color .2s; }
.toc a:hover, .toc a.is-current { color: var(--blue); }
.side-cta { display: grid; gap: 12px; padding: 24px; border-radius: 20px; background: var(--graphite); color: var(--white); }
.side-cta__title { font: 600 17px/1.3 var(--font-head); }
.side-cta p:not(.side-cta__title) { font-size: 14px; line-height: 1.45; color: var(--grey-300); }
.side-cta .btn { width: 100%; }
.side-cta .btn--line { color: var(--white); border-color: rgba(255,255,255,.5); }
.side-cta .btn--line:hover { background: var(--white); color: var(--graphite); }

/* ---------- Документы: одна узкая колонка ---------- */
.doc { max-width: 832px; }
.doc .prose, .doc .note { margin-left: 0; max-width: none; }
.doc .blk { margin-top: 24px; }
.doc .h2a { font-size: 24px; }

/* ---------- Карта сайта ---------- */
.smap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.smap__h { font: 600 18px/1.3 var(--font-head); padding-bottom: 12px; border-bottom: 2px solid var(--blue); }
.smap ul { margin-top: 12px; display: grid; gap: 2px; }
.smap li a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.4; font-weight: 500; transition: color .2s; }
.smap li a:hover { color: var(--blue); }
.smap li.smap__sub a { padding-left: 16px; font-weight: 400; color: var(--grey-600); position: relative; }
.smap li.smap__sub a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 6px; height: 1px; background: var(--grey-300); }
.smap li.smap__sub a:hover { color: var(--blue); }

/* ---------- Формы на внутренних страницах ---------- */
.v3p .blk--form .form { margin: 0 auto 0 var(--head-col); max-width: 690px; }
.seg__opts--wrap { height: auto; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; }
.seg__opts--wrap span { min-height: 36px; padding: 6px 8px; text-align: center; font-size: 14px; }
.seg__opts input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.seg__opts input[type=checkbox]:checked + span { background: var(--graphite); color: var(--white); }
.messengers { margin: 48px 0 0 var(--head-col); max-width: 690px; padding: 28px; border-radius: 24px; background: var(--graphite); color: var(--white); }
.messengers__title { font: 600 18px/1.3 var(--font-head); }
.messengers__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.messengers .btn { background: var(--white); color: var(--graphite); border-color: var(--white); }
.messengers .btn:hover { background: transparent; color: var(--white); }

/* =========================== Калькулятор (макет «Калькулятор», 3 шага) =========================== */
.calc-sec { position: relative; overflow: hidden; }
.calc::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; bottom: -80px; width: 1920px; margin-left: -960px; pointer-events: none; background: no-repeat 0 0 / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 900' preserveAspectRatio='none'%3E%3Cg fill='%23f5f5f5'%3E%3Cpath d='M690 0L866 102V732L1162 587L1245 546V821C1196 880 960 880 911 821V790H397L368 820L309 900H25Z'/%3E%3Cpath d='M1467 49L1681 62L1760 771L1500 817L1204 820Z'/%3E%3C/g%3E%3C/svg%3E"); }
.calc-head { position: relative; z-index: 2; display: grid; grid-template-columns: var(--head-col) 1fr; align-items: start; margin-bottom: 90px; }
.calc-head .section-sub { max-width: 700px; }
.calc-head .label { padding-top: 14px; }
.calc-head .label::before { display: none; }
.calc-head .section-sub { color: var(--graphite); }

.calc { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 800fr) minmax(300px, 389fr); gap: 22px; align-items: stretch; color: var(--graphite); }
.calc__main, .calc__sum { display: flex; flex-direction: column; border: 2px solid #ededed; border-radius: 20px; background: var(--white); }
.calc__main { padding: 32px 46px 37px 32px; }
.calc__sum { padding: 32px 28px 37px 31px; }

.calc__top { display: flex; align-items: center; gap: 50px; }
.calc__count { flex: none; font: 600 40px/1 var(--font-head); color: var(--blue-3); letter-spacing: -.02em; white-space: nowrap; }
.calc__dots { flex: 1; display: flex; justify-content: space-between; align-items: center; margin: 0 -16px 0 0; padding: 0; list-style: none; position: relative; }
.calc__dots::before { content: ""; position: absolute; left: 16px; right: 16px; top: 50%; height: 4px; margin-top: -2px; background: var(--grey-50); }
.calc__dots::after { content: ""; position: absolute; left: 16px; top: 50%; height: 4px; margin-top: -2px; width: calc((100% - 32px) * var(--p, 0)); background: var(--blue-3); transition: width .3s; }
.calc__dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #e7e7e7; transition: background-color .3s; }
.calc__dot.is-done { background: var(--blue-3); }
.calc__dot.is-active { background: var(--blue); }

.calc__step { margin-top: 44px; }
.calc__step[hidden], .calc__skip[hidden], .calc__nav [hidden] { display: none; }
.calc__step-title { font: 500 20px/1.3 var(--font-head); color: var(--blue-3); }
.calc__hint { margin-top: 6px; font-size: 16px; color: var(--grey-600); }
.calc__hint.is-error { color: #d33a2c; }
.calc__meet[hidden] { display: none; }
.calc__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; margin-top: 44px; }

.calc__opt { position: relative; display: flex; gap: 21px; cursor: pointer; }
.calc__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc__radio { flex: 0 0 32px; width: 32px; height: 32px; border: 2px solid var(--blue-3); border-radius: 50%; background: var(--white); transition: background-color .15s, box-shadow .15s; }
.calc__opt:hover .calc__radio { box-shadow: 0 0 0 4px rgba(43,105,178,.12); }
.calc__opt input:checked + .calc__radio, .calc__disc input:checked + .calc__radio { background: var(--blue-3); }
.calc__opt input:focus-visible + .calc__radio, .calc__disc input:focus-visible + .calc__radio { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.calc__opt-body { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.calc__opt-title { font: 500 20px/1.2 var(--font-head); }
.calc__opt-text { max-width: 300px; font-size: 15px; line-height: 18px; color: var(--grey-600); }
.calc__opt-price { font-size: 15px; font-weight: 600; color: var(--blue-3); }
.calc__opt--skip { align-items: center; }
.calc__opt--skip .calc__opt-body { padding-top: 0; }

.calc__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: auto; flex-wrap: wrap; padding-top: 42px; position: relative; }
.calc__bottom::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grey-50); margin-top: 0; }
.calc__nav { display: flex; gap: 12px; margin-left: auto; }
.calc__nav .btn { width: 262px; height: 45px; padding: 0 20px; }
.calc__nav .calc__back { width: auto; min-width: 130px; }

.calc__sum { gap: 0; }
.calc__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 600 32px/1.15 var(--font-head); color: var(--blue-3); letter-spacing: -.02em; }
.calc__old { font-size: 18px; color: var(--grey-500); font-weight: 500; letter-spacing: 0; }
.calc__term { margin-top: 10px; font-size: 15px; line-height: 18px; color: var(--grey-600); }
.calc__sum-h { font: 500 20px/1.2 var(--font-head); }
.calc__inc { margin-top: 26px; padding-bottom: 26px; border-bottom: 2px solid var(--grey-50); }
.calc__inc ul { margin-top: 18px; display: grid; gap: 0; }
.calc__inc li { font-size: 15px; line-height: 18px; color: var(--grey-600); }
.calc__inc li::before { content: "– "; }
.calc__inc li.is-empty::before { content: none; }
.calc__pay { margin-top: 24px; }
.calc__pay [data-calc-pay] { margin-top: 20px; padding-bottom: 22px; border-bottom: 2px solid var(--grey-50); font-size: 15px; color: var(--grey-600); }
.calc__disc { display: flex; align-items: center; gap: 17px; margin-top: 20px; font-size: 15px; line-height: 18px; color: var(--grey-600); cursor: pointer; transition: opacity .2s; }
.calc__disc input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc__disc small { display: block; font-size: 15px; }
.calc__disc.is-off { opacity: .5; cursor: not-allowed; }
.calc__disc.is-off .calc__radio { border-color: #94b3d8; }
.calc__meet { width: 100%; height: 45px; margin-top: 28px; }
.calc__note { margin-top: 14px; font-size: 13px; line-height: 17px; color: var(--grey-500); }

.calc__final .calc__form { margin-top: 32px; }
.calc__form .form__row { gap: 16px 32px; }
.calc__form .seg { grid-template-columns: 200px 1fr; margin-top: 8px; }
.calc__form .check { margin-top: 8px; }

/* Внутри страницы калькулятор занимает всю ширину блока */
.blk--calculator { margin-top: 48px; }

/* ======================= Адаптив ======================= */
@media (max-width: 1360px) and (min-width: 1101px) {
  .v3 .nav__drop-btn { padding: 8px 12px; }
}

@media (max-width: 1100px) {
  :root { --head-col: 0px; }
  .phero { padding-bottom: 72px; }
  .phero--media .phero__grid { grid-template-columns: 1fr; gap: 40px; }
  .phero__title { font-size: 36px; }
  .v3p .sec { padding: 96px 0; }
  .v3p .phero + .sec.section--light { padding-top: 96px; }
  .shead { grid-template-columns: 1fr; gap: 14px; }
  .shead .label { padding-top: 0; }
  .h2s { grid-column: auto; font-size: 30px; }
  .prose, .note, .qa, .messengers { max-width: 760px; }
  .v3p .blk--form .form { margin-left: 0; }
  .cards--3, .cards--4, .steps, .ccards { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 40px; }
  .cta-band__btns { grid-template-columns: repeat(2, max-content); }
  .article__grid { grid-template-columns: 1fr; gap: 48px; }
  .article__aside { position: static; order: -1; }
  .article__aside .side-cta { display: none; }
  .toc ol { max-height: none; }
  .smap { grid-template-columns: repeat(2, 1fr); }

  .calc-head { grid-template-columns: 1fr; gap: 16px; }
  .calc-head .label { padding-top: 0; }
  .calc { grid-template-columns: 1fr; }
  .calc__main { padding: 32px; }
  .calc::before { display: none; }
}

@media (max-width: 640px) {
  .phero { padding: 24px 0 56px; }
  .phero__grid { margin-top: 32px; }
  .phero__title { font-size: 26px; line-height: 1.25; }
  .phero__lead { margin-top: 18px; font-size: 16px; }
  .phero__chips { gap: 8px; margin-top: 22px; }
  .phero__btns { flex-direction: column; margin-top: 28px; }
  .phero__btns .btn { width: 100%; height: 50px; }
  .phero__media img { border-radius: 16px; }
  .crumbs ol { font-size: 13px; }

  .v3p .sec { padding: 64px 0; }
  .v3p .phero + .sec.section--light { padding-top: 64px; }
  .shead { margin-bottom: 28px; }
  .h2s { font-size: 24px; line-height: 1.25; }
  .blk { margin-top: 28px; }
  .prose { font-size: 16px; line-height: 1.6; }
  .cards--2, .cards--3, .cards--4, .steps, .ccards, .gal { grid-template-columns: 1fr; }
  .card, .step, .price { padding: 24px; border-radius: 18px; }
  .fact { padding: 22px 24px; }
  .fact__num { font-size: 32px; }
  .qa summary { padding: 20px 40px 20px 0; }
  .qa__q { font-size: 16px; }
  .qa__plus { top: 25px; right: 4px; }
  .qa__a { padding-right: 0; }
  .cta-band { padding: 28px 24px; border-radius: 20px; gap: 24px; }
  .cta-band__title { font-size: 22px; }
  .cta-band__btns { grid-template-columns: 1fr; }
  .cta-band__btns .btn { min-width: 0; width: 100%; height: 50px; }
  .lcards { grid-template-columns: 1fr; }
  .lcard { min-height: 0; }
  .article { padding-top: 56px !important; }
  .article__body .prose { font-size: 16px; }
  .article__body .cards--3, .article__body .cards--4 { grid-template-columns: 1fr; }
  .h2a { margin-top: 48px; font-size: 22px; }
  .smap { grid-template-columns: 1fr; gap: 32px; }
  .messengers { padding: 24px; }
  .messengers__btns { grid-template-columns: 1fr; }
  .seg__opts--wrap { grid-template-columns: repeat(2, 1fr); }

  .calc-head { margin-bottom: 32px; }
  .calc { gap: 16px; }
  .calc__main, .calc__sum { padding: 24px 20px; border-radius: 16px; }
  .calc__top { gap: 20px; }
  .calc__count { font-size: 28px; }
  .calc__dot { width: 24px; height: 24px; }
  .calc__dots { margin-right: 0; }
  .calc__dots::before, .calc__dots::after { left: 12px; }
  .calc__dots::before { right: 12px; }
  .calc__dots::after { width: calc((100% - 24px) * var(--p, 0)); }
  .calc__step { margin-top: 32px; }
  .calc__step-title { font-size: 18px; }
  .calc__opts { grid-template-columns: 1fr; gap: 22px; margin-top: 26px; }
  .calc__opt { gap: 16px; }
  .calc__radio { flex-basis: 28px; width: 28px; height: 28px; }
  .calc__opt-title { font-size: 17px; }
  .calc__opt-text { max-width: none; }
  .calc__bottom { flex-direction: column; align-items: stretch; padding-top: 24px; margin-top: 28px; }
  .calc__nav { margin-left: 0; flex-direction: row; }
  .calc__nav .btn { flex: 1; width: auto; height: 50px; }
  .calc__nav .calc__back { flex: 0 0 auto; min-width: 0; padding: 0 20px; }
  .calc__total { font-size: 28px; }
  .calc__form .seg { grid-template-columns: 1fr; }
}

/* ---------- Рекомендательные письма: открытие крупно ---------- */
.v3 .letters li { min-width: 0; }
.letters__open { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 0; cursor: zoom-in; }
.letters__open img { max-width: 100%; }
.letters__open img { transition: transform .2s; }
.letters__open:hover img { transform: translateY(-4px); }
.letters__open:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; }
html.is-locked { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 56px 16px 16px; background: rgba(0, 0, 0, .85); }
.lb[hidden] { display: none; }
.lb__img { display: block; max-width: min(900px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 8px; background: var(--white); cursor: default; }
.lb__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--white); color: var(--graphite); font-size: 18px; line-height: 40px; cursor: pointer; }
.lb__close:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

/* ---------- Калькулятор: плашка с итогом на мобильных ---------- */
.calc-bar { display: none; }
@media (max-width: 1100px) {
  .calc-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--graphite); color: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .calc-bar[hidden] { display: none; }
  .calc-bar__info { display: flex; flex-direction: column; min-width: 0; margin: 0; font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .7); }
  .calc-bar__info b { font: 600 18px/1.25 var(--font-head); color: var(--white); white-space: nowrap; }
  .calc-bar__btn { flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 20px; background: var(--white); color: var(--graphite); font: 500 15px var(--font-body); cursor: pointer; }
}

/* ---------- Лента работ: стрелки ---------- */
.works { position: relative; }
.works__strip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.works__strip::-webkit-scrollbar { display: none; }
.works__strip li { scroll-snap-align: start; }
.works__arrow { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: var(--white); color: var(--graphite); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
.works__arrow svg { width: 22px; height: 22px; }
.works__arrow:hover { background: var(--blue); color: var(--white); }
.works__arrow:disabled { opacity: 0; pointer-events: none; }
.works__arrow--prev { left: 24px; }
.works__arrow--next { right: 24px; }

/* ---------- Выделенная цена ---------- */
.price-hl { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: 36px 40px; border-radius: 24px; background: var(--grey-50); }
.price-hl__k { font-size: 16px; font-weight: 500; color: #696969; }
.price-hl__sum { margin-top: 6px; font: 600 40px/1.1 var(--font-head); color: var(--blue); }
.price-hl__text > :not(.price-hl__k):not(.price-hl__sum) { margin-top: 10px; color: #696969; }
.price-hl__btn { min-width: 220px; }

/* ---------- Страницы кейсов (макеты от 30.10.2026) ---------- */
.phero--plain { padding-bottom: 72px; }
.phero--plain .phero__grid { margin-top: 40px; }
.phero--plain .phero__title { font-size: 52px; }
.v3p .phero--plain + .sec.section--light { padding-top: 80px; }
.cs .blk { margin: 0; }
.cs .container > * + * { margin-top: 96px; }

.own { max-width: 1000px; }
.own__k { font-size: 16px; font-weight: 400; color: var(--graphite); }
.own__lead { max-width: 760px; margin-top: 12px; font: 500 21px/1.4 var(--font-head); color: #0369B7; }
.own__body { margin-top: 24px; padding-left: 32px; border-left: 2px dashed #c4c4c4; font-size: 17px; line-height: 1.55; color: #696969; }
.own__body > * + * { margin-top: 18px; }
.own__body ol { display: grid; gap: 16px; padding: 0; list-style: none; counter-reset: own; }
.own__body ol li { position: relative; padding-left: 26px; counter-increment: own; }
.own__body ol li::before { content: counter(own) "."; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--graphite); }
.own__body strong { font-weight: 600; color: var(--graphite); }

.ex-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font: 600 28px/1.2 var(--font-head); }
.ex-head__k { color: var(--graphite); }
.ex-head__name { color: #0369B7; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.pills li { display: flex; align-items: center; min-height: 34px; padding: 6px 16px; border-radius: 17px; background: #1f1f1f; color: var(--white); font-size: 14px; font-weight: 500; }

.case__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 48px; margin-top: 36px; align-items: center; }
.case--laptop .case__body { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center; }
.case--row .case__body { grid-template-columns: 1fr; }
.case__info { display: grid; gap: 26px; align-content: start; padding-left: 24px; border-left: 2px dashed #c4c4c4; }
.case__label { font: 600 20px/1.3 var(--font-head); color: var(--graphite); }
.case__text { margin-top: 8px; font-size: 16px; line-height: 1.55; color: #696969; }
.case__text ul { display: grid; gap: 6px; padding-left: 20px; }
.case--row .case__info { justify-self: start; }
.case--row .case__label { font: 700 21px/1.3 var(--font-head); }
.case--row .case__text { margin-top: 18px; font-weight: 500; }
.case--row .case__text ul { gap: 12px; padding: 0; list-style: none; }
.case--row .case__text li { position: relative; padding-left: 32px; }
/* Синий круг с белым плюсом перед каждым пунктом */
.case--row .case__text li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #2F66B3 linear-gradient(#fff, #fff) center / 10px 2px no-repeat; }
.case--row .case__text li::after { content: ""; position: absolute; left: 9px; top: 7px; width: 2px; height: 10px; background: #fff; }
.case__site { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font: 600 17px/1.3 var(--font-head); color: #0369B7; white-space: nowrap; }
.case__site svg { width: 18px; height: 18px; }
.case__site:hover { color: var(--graphite); }
.case__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* Ноутбук привязан не к контейнеру, а к правому краю окна */
.case--laptop .case__media { margin-right: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2)); }
.case--laptop .case__media, .case:has(.case__img:only-child) .case__media { grid-template-columns: 1fr; }
.case--row .case__media { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case__img { margin: 0; overflow: hidden; border-radius: 12px; background: #f4f4f4; }
.case__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case--laptop .case__img { border-radius: 0; background: none; }
.case--row .case__img { aspect-ratio: 4 / 3; border-radius: 16px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; margin-top: 36px; }
.ex-head + .tiles { margin-top: 36px; }
.tiles + .ex-head, .blk--tiles + .blk--tiles { margin-top: 80px; }
.tile { margin: 0; }
.tile__img { overflow: hidden; border-radius: 16px; background: #f4f4f4; aspect-ratio: 581 / 317; }
.blk--catalogs .tile__img { aspect-ratio: 581 / 400; }
.tile__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { display: grid; gap: 4px; margin-top: 16px; }
.tile__name { font: 600 20px/1.3 var(--font-head); color: var(--graphite); }
.tile__sub { font-size: 16px; color: #898989; }
.tile__link { margin-left: 8px; font-weight: 600; color: #0369B7; }
.tile__geo { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--graphite); }
.tile__geo span { margin-left: 6px; }
.flag { width: 15px; height: 15px; border-radius: 50%; }
.tile--note { align-self: start; padding: 36px 40px; border-radius: 16px; background: #0369B7; color: var(--white); font-size: 16px; line-height: 1.55; }
.tile--note > * + * { margin-top: 14px; }
.tile--note strong { font: 600 24px/1.3 var(--font-head); }

.partners__text { max-width: 900px; font-size: 17px; line-height: 1.55; color: #696969; }
.partners__band { margin-top: 28px; overflow: hidden; border-radius: 16px; background: #0369B7; }
.partners__band img { display: block; width: 100%; height: auto; }

@media (max-width: 1100px) {
  .phero--plain .phero__title { font-size: 40px; }
  .cs .container > * + * { margin-top: 72px; }
  .case__body, .case--laptop .case__body { grid-template-columns: 1fr; }
  .case--laptop .case__media { margin-right: 0; }
  .works__arrow { display: none; }
}
@media (max-width: 640px) {
  .phero--plain { padding-bottom: 48px; }
  .phero--plain .phero__title { font-size: 32px; }
  .v3p .phero--plain + .sec.section--light { padding-top: 48px; }
  .cs .container > * + * { margin-top: 56px; }
  .own__lead { font-size: 18px; }
  .own__body { padding-left: 18px; font-size: 16px; }
  .ex-head { font-size: 22px; }
  .case__site { font-size: 15px; white-space: normal; }
  .case--row .case__media { grid-template-columns: 1fr 1fr; }
  .case--row .case__img:first-child { grid-column: 1 / -1; }
  .tiles { grid-template-columns: 1fr; gap: 32px; }
  .tile--note, .price-hl { padding: 28px 24px; }
  .price-hl__sum { font-size: 32px; }
  .price-hl__btn { width: 100%; }
}

/* Одиночная кнопка под блоком и карточка-ссылка без перехода */
.blk-btn { margin-top: 32px; }
div.lcard { padding-right: 24px; }
div.lcard:hover { border-color: #ededed; }

@media (max-width: 640px) { .cs .container > * + * { margin-top: 56px; } }

/* Окно «Получить презентацию проекта» */
.pop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.pop[hidden] { display: none; }
.pop__box { position: relative; width: min(480px, 100%); padding: 40px 32px 28px; border-radius: 16px; background: var(--white); }
.pop__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f2f2f2; color: var(--graphite); font-size: 16px; line-height: 40px; cursor: pointer; }
.pop__close:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.pop__title { margin: 0 40px 8px 0; font: 600 22px/1.25 var(--font-head); }
.pop__project { margin: 0 0 16px; color: var(--blue); font-weight: 500; }
.pop__text { margin: 0 0 8px; color: var(--grey-600); }
.pop .check { margin-top: 20px; }
.pop__send { width: 100%; margin-top: 24px; }
.case__pres { justify-self: start; border-radius: 999px; }
