/* ==========================================================================
   АКЛ Экспресс — main.css
   Методология: БЭМ (block__element--modifier). Состояния: .is-active, .is-open, .is-error, .is-hidden.
   Брейкпоинт мобильной версии: 820px.
   ========================================================================== */

@import url("../fonts/fonts.css");

:root {
  --akl-red: #E21113;
  --akl-red-dk: #B80D0F;
  --ink: #2E3B4E;
  --ink-2: #3A4658;
  --ink-3: #4A5A70;
  --ink-4: #5C6776;
  --plate: #52565E;
  --block-bg: #EDEDED;
  --line: #E3E7EC;
  --line-2: #DDE3EA;
  --field-line: #D3DAE3;
  --field-bg: #F7F9FB;
  --soft: #EEF2F6;
  --nav-active: #EEF4FA;
  --info: #E6F1FB;
  --sky: linear-gradient(180deg, #CFE6F7 0%, #BCD9F1 45%, #A7CBEA 100%);
  --font: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1268px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--akl-red); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; width: 100%; }
.sky { background: var(--sky); position: relative; overflow: hidden; }
.section { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.section--gray { background: var(--block-bg); padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }

/* ---------- Типографика ---------- */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--akl-red); }
.eyebrow--white { color: #fff; }
.eyebrow--dot { display: flex; align-items: center; gap: 10px; }
.eyebrow--dot::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--akl-red); }
.tag { align-self: flex-start; background: var(--plate); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; }
.h1 { margin: 0; font-size: clamp(40px, 6.2vw, 80px); line-height: 1; letter-spacing: -.035em; font-weight: 800; }
.h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.h2--section { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.025em; }
.h2--small { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.lead { margin: 0; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; font-weight: 500; color: var(--ink); }
.text { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.text p { margin: 0; }
.mark { color: #fff; background: var(--akl-red); padding: 0 .14em; border-radius: .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border: 0; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; text-decoration: none; }
.btn--primary { background: var(--akl-red); color: #fff; }
.btn--primary:hover { background: var(--akl-red-dk); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--field-line); font-weight: 600; }
.btn--secondary:hover { color: var(--akl-red); }
.btn--dark { background: var(--ink); color: #fff; height: 52px; font-size: 15px; }
.btn--dark:hover { background: #43546E; color: #fff; }
.btn--white { background: #fff; color: var(--ink); height: 48px; padding: 0 22px; font-size: 15px; }
.btn--white:hover { color: var(--akl-red); }
.btn--block { width: 100%; }
.btn__arrow { color: var(--akl-red); }

/* ---------- Плейсхолдер фото (заменить на <img>) ---------- */
.ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-size: 13px; color: var(--ink-4); background: repeating-linear-gradient(135deg, #F1F4F7 0 12px, #E9EDF2 12px 24px); }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Шапка ---------- */
.header { background: #fff; position: relative; z-index: 20; }
.header__inner { max-width: var(--container); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.header__logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.header__logo img { height: 56px; width: auto; display: block; }
.header__oldname { margin: 0 0 0 19%; padding: 0; font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #5C6776; white-space: nowrap; }
.header__contacts { display: flex; flex-direction: column; gap: 2px; margin-right: auto; padding-left: 28px; }
.header__phone { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.header__address { font-size: 13px; color: var(--ink-4); }
.header__mobile { display: none; gap: 8px; align-items: center; }
.header__call { width: 44px; height: 44px; border-radius: 10px; background: var(--akl-red); color: #fff; display: flex; align-items: center; justify-content: center; }
.header__call:hover { color: #fff; background: var(--akl-red-dk); }

.top-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top-nav__link { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.top-nav__link.is-active { font-weight: 600; background: var(--nav-active); }

.burger { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1.5px solid var(--field-line); border-radius: 10px; background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.burger__icon { display: flex; flex-direction: column; gap: 4px; }
.burger__icon span { width: 18px; height: 2px; background: var(--ink); display: block; }
.burger__icon span:last-child { width: 12px; background: var(--akl-red); }

/* Прилипание (шапка на мобильном / красное меню на десктопе) — управляется main.js */
.header.is-stuck, .services-nav.is-stuck { position: sticky; top: 0; z-index: 30; box-shadow: 0 10px 24px -12px rgba(20, 30, 45, .45); }
.header.is-anim, .services-nav.is-anim { transition: transform .32s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Красное меню услуг ---------- */
.services-nav { background: var(--akl-red); position: relative; z-index: 19; }
.services-nav__list { max-width: var(--container); margin: 0 auto; padding: 0 24px; list-style: none; display: flex; justify-content: space-between; }
.services-nav__item { flex: 1 1 0; min-width: 0; display: flex; }
.services-nav__item--med { flex: 0 0 auto; align-items: center; padding-left: 8px; }
.services-nav__link { flex: 1; display: flex; align-items: center; justify-content: center; padding: 17px 12px; color: #fff; font-weight: 600; font-size: 15px; text-align: center; transition: background .2s; }
.services-nav__link:hover { background: var(--akl-red-dk); color: #fff; }
.services-nav__link.is-active { background: var(--akl-red-dk); box-shadow: inset 0 -3px 0 #fff; }

.med-link { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 10px; border-radius: 10px; background: #fff; color: var(--akl-red); font-weight: 700; font-size: 15px; line-height: 1.15; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: background .2s, color .2s; }
.med-link:hover, .med-link.is-active { background: var(--ink); color: #fff; }
.med-link__icon { flex: none; width: 18px; height: 18px; }
.med-link__short { display: none; }

/* ---------- Мобильное меню ---------- */
.mobile-menu { display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu__overlay { position: fixed; inset: 0; z-index: 15; background: rgba(30, 40, 55, .4); }
.mobile-menu__panel { position: absolute; left: 0; right: 0; top: 68px; z-index: 19; max-height: calc(100vh - 140px); overflow: auto; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px -16px rgba(20, 30, 45, .4); border-radius: 0 0 18px 18px; }
.mobile-menu.is-fixed .mobile-menu__panel { position: fixed; }
.mobile-menu__services { background: var(--akl-red); padding: 8px 0; }
.mobile-menu__service { display: block; padding: 14px 24px; color: #fff; font-weight: 600; font-size: 17px; }
.mobile-menu__service:hover, .mobile-menu__service.is-active { color: #fff; background: var(--akl-red-dk); }
.mobile-menu__med { display: flex; align-items: center; gap: 10px; margin: 8px 16px; padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--akl-red); font-weight: 700; font-size: 17px; }
.mobile-menu__med svg { width: 20px; height: 20px; flex: none; }
.mobile-menu__links { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__link { padding: 10px 0; font-size: 16px; }
.mobile-menu__link.is-active { font-weight: 700; }
.mobile-menu__phone { margin-top: 12px; font-weight: 700; font-size: 20px; }
.mobile-menu__address { font-size: 14px; color: var(--ink-4); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--akl-red); }
.breadcrumbs__current { color: var(--ink); font-weight: 600; }

/* ---------- Hero с видео ---------- */
.hero-video { position: relative; min-height: clamp(560px, 78vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); margin-bottom: clamp(32px, 4vw, 56px); }
.hero-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(24, 32, 45, .78) 0%, rgba(24, 32, 45, .5) 45%, rgba(24, 32, 45, .12) 100%); }
.hero-video__shade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, rgba(24, 32, 45, 0) 0%, rgba(24, 32, 45, .55) 100%); }
.hero-video__content { position: relative; z-index: 2; width: 100%; max-width: var(--container); margin: 0 auto; padding: clamp(48px, 7vw, 96px) 24px clamp(40px, 5vw, 72px); display: flex; flex-direction: column; gap: 28px; }
.hero-video__title { margin: 0; max-width: 900px; font-size: clamp(40px, 6.8vw, 96px); line-height: .98; letter-spacing: -.035em; font-weight: 800; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-video__bullets { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; color: #fff; }

.bullets__item { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.bullets__item + .bullets__item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--akl-red); }

/* ---------- Hero с фото ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero--inner { padding-top: clamp(28px, 4vw, 48px); }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__photo { flex: 1 1 380px; min-width: 0; position: relative; height: clamp(260px, 32vw, 420px); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(46, 59, 78, .45); }
.hero__bullets { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- География / карта ---------- */
.geo__head { padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.geo__foot { padding-top: 20px; padding-bottom: 56px; }

.segment { display: flex; flex-wrap: wrap; overflow-x: auto; min-width: 0; max-width: 100%; scrollbar-width: none; gap: 4px; padding: 4px; background: rgba(255, 255, 255, .6); border-radius: 14px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.segment::-webkit-scrollbar { display: none; }
.segment__btn { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap; font-size: 14px; font-weight: 600; background: transparent; color: var(--ink); transition: background .2s, color .2s, box-shadow .2s; }
.segment__btn:hover { background: #fff; color: var(--akl-red); box-shadow: 0 4px 14px rgba(46, 59, 78, .22); }
.segment__btn.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.segment__btn.is-active:hover { background: #43546E; color: #fff; }
.segment__count { font-family: var(--mono); font-size: 11px; opacity: .7; }
.segment__short { display: none; }

.map { position: relative; height: clamp(440px, 42vw, 580px); background-image: radial-gradient(rgba(46, 59, 78, .16) 1px, transparent 1.5px); background-size: 16px 16px; border-top: 1px solid rgba(46, 59, 78, .08); border-bottom: 1px solid rgba(46, 59, 78, .08); }
.map--card { height: clamp(360px, 34vw, 460px); border: 1px solid rgba(46, 59, 78, .1); border-radius: 20px; overflow: hidden; background-color: rgba(255, 255, 255, .35); }
.map__canvas { position: absolute; inset: 0; touch-action: pan-y pinch-zoom; }
.map__hint { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: flex; align-items: center; justify-content: center; background: rgba(30, 40, 55, .45); opacity: 0; transition: opacity .25s; color: #fff; font-size: 16px; font-weight: 600; text-align: center; padding: 0 24px; }
.map__hint.is-visible { opacity: 1; }
.map__note { position: absolute; left: 24px; bottom: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.map__routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map__route { fill: none; stroke: var(--akl-red); stroke-width: 1; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .75; transition: opacity .35s; }
.map__route.is-hidden { opacity: 0; }
.map__pin { position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); background: none; border: 0; padding: 0; cursor: pointer; transition: opacity .35s; }
.map__pin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--akl-red); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(46, 59, 78, .35); }
.map__pin--hub { width: 20px; height: 20px; }
.map__pin--hub::before { box-shadow: 0 0 0 4px #fff, 0 0 0 10px rgba(226, 17, 19, .18); }
.map__pin.is-hidden { opacity: .15; pointer-events: none; }
.map__label { position: absolute; top: 50%; left: calc(100% + 8px); transform: translateY(-50%); white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--ink); background: rgba(255, 255, 255, .9); padding: 4px 8px; border-radius: 6px; pointer-events: none; }
.map__pin--hub .map__label { font-weight: 700; }
.map__label--l { left: 0; transform: translate(calc(-100% - 8px), -50%); }
.map__label--b { left: 50%; top: calc(100% + 6px); transform: translateX(-50%); }
/* Балун Яндекс.Карты */
.map-balloon { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 13px var(--font); color: var(--ink-3); }
.map-balloon__btn { height: 24px; padding: 0 9px; border: 1px solid var(--field-line); border-radius: 7px; background: #fff; color: var(--ink); font: 600 12px var(--font); cursor: pointer; }
.map-balloon__btn:hover { color: var(--akl-red); border-color: rgba(226, 17, 19, .4); }

.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pill { height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid rgba(46, 59, 78, .14); cursor: pointer; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .75); color: var(--ink); transition: background .2s, color .2s; }
.pill:hover { background: #fff; }
.pill.is-active { background: var(--akl-red); color: #fff; }
.pill--dark { background: var(--ink); color: #fff; border: 0; font-weight: 600; padding: 0 13px; display: flex; align-items: center; gap: 6px; }
.pill--dark:hover { background: var(--akl-red); }

/* ---------- Баннер ---------- */
.banner-section { padding-top: clamp(48px, 6vw, 88px); }
.banner { display: flex; flex-wrap: wrap; background: var(--akl-red); border-radius: 24px; overflow: hidden; color: #fff; min-height: 280px; }
.banner:hover { color: #fff; }
.banner__body { flex: 1 1 440px; min-width: 0; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.banner__text { display: flex; flex-direction: column; gap: 12px; }
.banner__title { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.025em; font-weight: 800; color: #fff; }
.banner__desc { margin: 0; font-size: 17px; line-height: 1.5; color: #fff; max-width: 440px; }
.banner__btn { align-self: flex-start; }
.banner:hover .banner__btn { color: var(--akl-red); }
.banner__photo { flex: 1 1 360px; min-width: 0; min-height: 260px; position: relative; }

/* ---------- Блок «О компании» ---------- */
.about { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); }
.about__side { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.about__photo { position: relative; height: clamp(220px, 24vw, 320px); border-radius: 20px; overflow: hidden; }
.about__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about__label { margin: 8px 0 0; font-weight: 600; color: var(--ink); }

.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.link-list__item { border-bottom: 1px solid var(--line-2); }
.link-list__link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.link-list__link::after { content: "→"; color: var(--akl-red); font-size: 20px; }

/* ---------- Новости ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head__titles { display: flex; flex-direction: column; gap: 12px; }
.more-link { font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.more-link::after { content: "→"; color: var(--akl-red); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; color: var(--ink); transition: transform .25s, box-shadow .25s; scroll-snap-align: start; scroll-margin-left: 24px; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(46, 59, 78, .35); color: var(--ink); }
.news-card__photo { position: relative; aspect-ratio: 4 / 3; }
.news-card__body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__date { font-family: var(--mono); font-size: 12px; color: #6B717A; }
.news-card__title { font-size: 17px; line-height: 1.35; font-weight: 600; text-wrap: pretty; }

/* ---------- Футер ---------- */
.footer { background: var(--plate); color: #fff; margin-top: auto; }
.footer__inner { max-width: var(--container); margin: 0 auto; padding: 56px 24px 32px; display: flex; flex-direction: column; gap: 40px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer__brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.footer__logo { height: 52px; width: auto; display: block; align-self: flex-start; }
.footer__phone { font-weight: 700; font-size: 22px; color: #fff; }
.footer__address { font-size: 14px; line-height: 1.5; color: #DADCDF; max-width: 280px; }
.footer__col { flex: 0 1 200px; display: flex; flex-direction: column; gap: 10px; }
.footer__col--wide { flex-basis: 260px; }
.footer__title { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #C9CCD0; margin-bottom: 6px; }
.footer__link { color: #fff; font-size: 15px; }
.footer__link:hover { color: #fff; opacity: .75; }
.footer__link.is-active { font-weight: 700; }
.footer__copy { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 20px; font-size: 13px; color: #DADCDF; }

/* ---------- Панель действий ---------- */
.fab { position: fixed; right: 0; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 50; }
.fab__btn { display: flex; align-items: center; height: 60px; border: 0; border-radius: 14px 0 0 14px; cursor: pointer; color: #fff; padding: 0; box-shadow: 0 12px 28px -12px rgba(46, 59, 78, .5); background: var(--ink); }
.fab__btn--accent { background: var(--akl-red); }
.fab__icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.fab__icon svg { width: 24px; height: 24px; }
.fab__label { overflow: hidden; white-space: nowrap; font-size: 15px; font-weight: 600; max-width: 0; padding-right: 0; transition: max-width .3s ease, padding .3s ease; }
.fab__btn:hover .fab__label, .fab__btn:focus-visible .fab__label { max-width: 240px; padding-right: 22px; }
.fab__short { display: none; }

/* ---------- Модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(30, 40, 55, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: none; justify-content: center; align-items: center; padding: 24px; overflow: auto; }
.modal.is-open { display: flex; }
.modal__dialog { background: #fff; width: 100%; max-width: 720px; border-radius: 22px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 40px 80px -30px rgba(20, 30, 45, .5); }
.modal__dialog--narrow { max-width: 520px; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal__titles { display: flex; flex-direction: column; gap: 8px; }
.modal__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--akl-red); }
.modal__title { margin: 0; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; font-weight: 800; line-height: 1.1; }
.modal__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); font-size: 22px; cursor: pointer; line-height: 1; }
.modal__close:hover { background: #E0E6ED; }
.modal__step { display: none; }
.modal__step.is-active { display: block; }
.form__step { display: none !important; }
.form__step.is-active { display: grid !important; }
.form--stack.form__step.is-active { display: flex !important; }
.segment-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }

/* ---------- Формы (FormIt) ---------- */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form--stack { display: flex; flex-direction: column; gap: 16px; }
.form__full { grid-column: 1 / -1; }
.form__checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.form__error { grid-column: 1 / -1; color: var(--akl-red-dk); font-size: 14px; font-weight: 600; }
.form__error:empty { display: none; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form__actions .btn--primary { flex: 1 1 200px; }
.form__note { font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; }
.form__note a { font-weight: 700; }
.form__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.form__link { align-self: center; font-size: 14px; color: var(--ink-3); }
.form__summary { background: #F3F6F9; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.form__summary strong { color: var(--ink); }
.form__prefill { grid-column: 1 / -1; background: var(--info); border-radius: 12px; padding: 12px 16px; font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field__control { height: 48px; border: 1.5px solid var(--field-line); border-radius: 10px; padding: 0 14px; font-size: 16px; font-weight: 400; background: var(--field-bg); width: 100%; }
.field__control:focus { outline: none; border-color: var(--ink-3); }
.field__control[readonly] { color: var(--ink-3); }
textarea.field__control { height: auto; padding: 12px 14px; resize: vertical; }
select.field__control { padding: 0 40px 0 14px; -webkit-appearance: none; appearance: none; cursor: pointer; background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232E3B4E' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center; }
select.field__control.is-empty { color: #8A94A3; }
.field.is-error .field__control { border-color: var(--akl-red); }

.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; min-height: 44px; font-weight: 400; }
.check input { width: 20px; height: 20px; accent-color: var(--akl-red); flex: none; margin: 0; }
.check--consent { font-size: 14px; }
.check.is-error { color: var(--akl-red-dk); }
.policy-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(46, 59, 78, .45); }
.policy-link:hover { color: var(--akl-red); text-decoration-color: var(--akl-red); }

.estimate { grid-column: 1 / -1; background: linear-gradient(135deg, var(--info), #D3E6F6); border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; }
.estimate__col { display: flex; flex-direction: column; gap: 4px; }
.estimate__label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.estimate__value { font-size: 24px; letter-spacing: -.02em; }
.estimate__note { font-size: 13px; color: var(--ink-3); max-width: 280px; line-height: 1.4; }

.success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0; }
.success__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--akl-red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.success__text { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 440px; }


/* ---------- Страница раздела ---------- */
.hero__sub { margin: 0; max-width: 560px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; font-weight: 500; color: var(--ink); }
.hero--inner .hero__text { gap: 24px; }
.hero--inner .hero__photo { height: clamp(260px, 30vw, 400px); }
.split { padding-bottom: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.split__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.split__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.split__count { margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.map--card { background-color: var(--info); box-shadow: 0 24px 48px -28px rgba(46, 59, 78, .45); border: 0; isolation: isolate; }
.news-aside { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; margin-top: 52px; box-shadow: 0 24px 48px -32px rgba(46, 59, 78, .4); }
.news-aside__title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.news-aside__list { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.news-aside__item { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.news-aside__date { font-family: var(--mono); font-size: 12px; color: #6B717A; }
.news-aside__name { font-size: 15px; line-height: 1.4; font-weight: 600; text-wrap: pretty; }
.features { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); counter-reset: f; }
.features__item { border-bottom: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 16px; padding: 16px 0; font-size: 18px; font-weight: 600; color: var(--ink); counter-increment: f; }
.features__item::before { content: counter(f, decimal-leading-zero); font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--akl-red); }

/* ---------- Документы (карточка файла) ---------- */
.docs { display: flex; flex-direction: column; gap: 32px; }
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 16px; padding: 16px 16px 16px 18px; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.doc:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -20px rgba(46, 59, 78, .35); color: var(--ink); }
.doc__icon { flex: none; position: relative; width: 48px; height: 58px; border-radius: 7px; background: var(--plate); color: #fff; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 9px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%); }
.doc__icon::before { content: ""; position: absolute; top: 0; right: 0; width: 15px; height: 15px; border-bottom-left-radius: 4px; background: linear-gradient(45deg, rgba(255, 255, 255, .42) 50%, transparent 50%); }
.doc__icon::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 9px; background: linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, .32)) 0 0 / 100% 2px no-repeat, linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, .32)) 0 100% / 65% 2px no-repeat; }
.doc__icon--pdf { background: var(--akl-red); }
.doc__icon--doc, .doc__icon--docx, .doc__icon--rtf, .doc__icon--odt { background: #2E3B4E; }
.doc__icon--xls, .doc__icon--xlsx, .doc__icon--csv, .doc__icon--ods { background: #2F7A55; }
.doc__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.doc__title { font-size: 17px; line-height: 1.35; font-weight: 600; text-wrap: pretty; }
.doc__meta { font-family: var(--mono); font-size: 12px; color: #6B717A; }
.doc__btn { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1.5px solid var(--field-line); border-radius: 12px; font-weight: 600; font-size: 15px; }
.doc__btn::after { content: "↓"; color: var(--akl-red); }
@media (max-width: 820px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .news-aside { margin-top: 8px; }
  .doc__btn { padding: 0 14px; }
  .doc__btn-text { display: none; }
}


/* ---------- Hero с фото на всю ширину ---------- */
.hero-media { position: relative; min-height: clamp(560px, 74vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero-media__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 32, 45, .86) 0%, rgba(24, 32, 45, .6) 45%, rgba(24, 32, 45, .15) 100%); }
.hero-media__content { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: clamp(40px, 6vw, 88px) 24px clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 26px; }
.hero-media__title { margin: 0; max-width: 880px; font-size: clamp(44px, 7vw, 100px); line-height: .96; letter-spacing: -.035em; font-weight: 800; color: #fff; }
.hero-media__sub { margin: 0; max-width: 600px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; font-weight: 500; color: #fff; }
.breadcrumbs--light, .breadcrumbs--light a { color: #DADCDF; }
.breadcrumbs--light a:hover { color: #fff; }
.breadcrumbs--light .breadcrumbs__current { color: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); font-weight: 600; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* ---------- Карточки: преимущества / режимы ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.adv { border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 18px; background: #fff; }
.adv__big { font-family: var(--mono); font-size: clamp(34px, 3.6vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--akl-red); }
.adv__title { font-size: 20px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.adv__text { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.temps { display: flex; flex-direction: column; gap: 28px; }
.temps__head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.temp-card { text-align: left; border: 1.5px solid var(--line); border-radius: 20px; padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.temp-card:hover { transform: translateY(-3px); }
.temp-card.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.temp-card__range { font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.temp-card__title { font-size: 17px; font-weight: 700; }
.temp-card__text { font-size: 15px; line-height: 1.5; opacity: .85; }
.temp-card__hint { font-size: 14px; font-weight: 600; margin-top: 4px; color: var(--akl-red); }
.temp-card.is-active .temp-card__hint { color: #fff; }

/* ---------- Встроенный калькулятор ---------- */
.calc-block { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); align-items: flex-start; }
.calc-block__intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.calc-block__form { flex: 1 1 600px; min-width: 0; background: #fff; border-radius: 20px; padding: clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-block__estimate { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: 13px; font-weight: 600; }
.calc-block__value { height: 48px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; background: var(--info); font-size: 16px; font-weight: 700; }

/* ---------- Нумерованные тезисы ---------- */
.points { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line-2); counter-reset: p; }
.points__item { border-bottom: 1px solid var(--line-2); display: flex; gap: 16px; padding: 18px 0; align-items: baseline; counter-increment: p; }
.points__item::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--akl-red); }
.points__body { display: flex; flex-direction: column; gap: 4px; }
.points__title { font-size: 18px; color: var(--ink); }
.points__text { font-size: 15px; line-height: 1.55; }

/* ---------- CTA-плашка ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--akl-red); border-radius: 24px; padding: clamp(28px, 4vw, 48px); color: #fff; }
.cta__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.cta__title { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.025em; font-weight: 800; color: #fff; }
.cta__desc { margin: 0; font-size: 17px; line-height: 1.5; color: #fff; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta__phone { display: flex; align-items: center; height: 56px; padding: 0 24px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; font-size: 18px; }
.cta .btn--ghost { border-color: #fff; font-weight: 700; }
@media (max-width: 820px) {
  .cards, .calc-block__form { grid-template-columns: minmax(0, 1fr); }
  .hero-media { min-height: 560px; }
}


/* ---------- Слайдер ---------- */
.page-head { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; }
.slider { position: relative; height: clamp(420px, 42vw, 560px); border-radius: 24px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(46, 59, 78, .45); }
.slider__slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.slider__slide.is-active { opacity: 1; pointer-events: auto; }
.slider__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 32, 45, .78) 0%, rgba(24, 32, 45, .35) 55%, rgba(24, 32, 45, 0) 100%); }
.slider__caption { position: absolute; z-index: 1; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: clamp(64px, 7vw, 88px); max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.slider__title { margin: 0; font-size: clamp(28px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; color: #fff; }
.slider__controls { position: absolute; right: clamp(16px, 3vw, 32px); bottom: clamp(18px, 2.4vw, 28px); z-index: 3; display: flex; gap: 10px; align-items: center; }
.slider__dots { display: flex; gap: 6px; margin-right: 6px; }
.slider__dot { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.slider__dot.is-active { width: 28px; background: #fff; }
.slider__arrow { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 18px; cursor: pointer; }
.slider__arrow:hover { background: #fff; color: var(--akl-red); }

/* ---------- Почему выбирают нас ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: r; }
.reason { border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: #fff; counter-increment: r; font-size: 19px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
.reason::before { content: counter(r, decimal-leading-zero); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--akl-red); }
@media (max-width: 1000px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reasons { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .slider { height: 420px; } }


/* ---------- Новости: список и новость ---------- */
.page-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.page-head__titles { display: flex; flex-direction: column; gap: 16px; }
.section--list { background: var(--block-bg); flex: 1; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 104px); }
.section--list .container { display: flex; flex-direction: column; gap: 40px; }
.news-grid--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.news-card[hidden], .doc[hidden] { display: none; }
.news-card__meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.news-card__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--akl-red); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination__item { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink); background: transparent; }
.pagination__item.is-active { background: var(--ink); color: #fff; }
.pagination__arrow { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--field-line); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ink); }
.pagination__arrow.is-disabled { opacity: .4; pointer-events: none; }

.article { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 88px); display: flex; flex-direction: column; gap: 28px; }
.article__head { max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.article__meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.article__date { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-3); }
.article__title { margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.article__photo { position: relative; height: clamp(240px, 34vw, 460px); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(46, 59, 78, .45); }
.article__cols { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: flex-start; }
.article__body { flex: 1 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.article__back { align-self: flex-start; display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; margin-top: 8px; }
.article__back::before { content: "←"; color: var(--akl-red); }
.doc--light { background: var(--field-bg); border: 1px solid var(--line); margin-top: 8px; }
.doc--light:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.doc--light .doc__btn { background: #fff; }
.side-card { flex: 1 1 280px; min-width: 0; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.side-card__text { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; }
.side-card .btn { height: 48px; font-size: 15px; }


/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.contacts__card { background: #fff; border-radius: 20px; padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; box-shadow: 0 24px 48px -32px rgba(46, 59, 78, .4); }
.contacts__row { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.contacts__label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.contacts__phone { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.contacts__value { font-size: 17px; line-height: 1.5; font-weight: 600; }
.contacts__hint { font-size: 14px; color: var(--ink-3); }
.contacts__link { align-self: flex-start; font-size: 14px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.contacts__link::after { content: "→"; color: var(--akl-red); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; }
.contacts__actions .btn { flex: 1 1 180px; height: 52px; font-size: 15px; padding: 0 20px; }
.map--office { height: auto; min-height: 420px; border: 0; border-radius: 20px; overflow: hidden; background-color: var(--info); box-shadow: 0 24px 48px -28px rgba(46, 59, 78, .45); isolation: isolate; }
.office-pin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.office-pin__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateY(-20px); }
.office-pin__label { background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 12px 28px -12px rgba(46, 59, 78, .45); font-size: 14px; font-weight: 700; text-align: center; }
.office-pin__label span { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.office-pin__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--akl-red); border: 4px solid #fff; box-shadow: 0 6px 14px rgba(226, 17, 19, .45); }
.feedback { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); align-items: flex-start; }
.feedback__intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feedback__box { flex: 1 1 520px; min-width: 0; background: #fff; border-radius: 20px; padding: clamp(20px, 2.4vw, 32px); }
.feedback__box .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) {
  .contacts, .feedback__box .form { grid-template-columns: minmax(0, 1fr); }
  .map--office { min-height: 360px; }
}

/* ==========================================================================
   Мобильная версия (≤ 820px)
   ========================================================================== */
@media (max-width: 1100px) {
  .services-nav__link { padding: 12px 6px; }
}
@media (max-width: 1060px) {
  .med-link__full { display: none; }
  .med-link__short { display: inline; }
}
@media (max-width: 820px) {
  .page { padding-bottom: 76px; }
  .header__inner { padding: 12px 16px 12px 20px; gap: 12px; flex-wrap: nowrap; }
  .header__logo img { height: 44px; flex: none; }
  .header__mobile { flex: none; }
  .header__contacts, .header .top-nav, .services-nav { display: none; }
  .header__mobile { display: flex; }

  .hero-video { min-height: 560px; }
  .geo__head .segment-wrap { width: 100%; }
  .segment { flex-wrap: nowrap; }
  .segment__btn { flex: 1 1 0; }
  .segment__full { display: none; }
  .segment__short { display: inline; }
  .map { height: 420px; }
  .map__label { display: none; }
  .map__pin--hub .map__label { display: block; }

  .news-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 4px; scrollbar-width: none; }
  .news-grid::-webkit-scrollbar { display: none; }
  .news-grid .news-card { flex: 0 0 78%; }

  .fab { left: 0; right: 0; bottom: 0; top: auto; flex-direction: row; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .fab__btn { height: 56px; border-radius: 12px; flex-direction: column; justify-content: center; gap: 2px; box-shadow: none; background: var(--soft); color: var(--ink); }
  .fab__btn--accent { background: var(--akl-red); color: #fff; }
  .fab__icon { width: auto; height: 18px; font-size: 18px; }
  .fab__icon svg { width: 18px; height: 18px; }
  .fab__label { display: none; }
  .fab__short { display: block; font-size: 12px; font-weight: 600; }

  .modal { align-items: flex-end; padding: 0; }
  .modal__dialog { border-radius: 20px 20px 0 0; max-height: 92vh; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .map__label { display: none; }
  .map__pin--hub .map__label { display: block; }
}

/* ---------- Выпадающее подменю верхнего меню (дочерние страницы, pdoMenu) ---------- */
.top-nav__item { position: relative; display: flex; align-items: center; }
.top-nav__item:has(.top-nav__drop) .top-nav__link { padding-right: 2px; }
.top-nav__chev { display: grid; place-items: center; width: 26px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; transition: transform .2s, color .2s; }
.top-nav__chev:hover { color: var(--akl-red); }
.top-nav__drop { position: absolute; top: 100%; right: 0; z-index: 40; min-width: 240px; margin-top: 6px; padding: 8px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(46,59,78,.28); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
.top-nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.top-nav__item:hover .top-nav__drop, .top-nav__item:focus-within .top-nav__drop, .top-nav__item.is-open .top-nav__drop { opacity: 1; visibility: visible; transform: none; }
.top-nav__item:hover .top-nav__chev, .top-nav__item.is-open .top-nav__chev { transform: rotate(180deg); }
.top-nav__drop-link { padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.top-nav__drop-link:hover { background: var(--nav-active); color: var(--akl-red); }
.top-nav__drop-link.is-active { font-weight: 600; color: var(--akl-red); }
.mobile-menu__sub { display: flex; flex-direction: column; margin: -4px 0 4px; padding-left: 14px; border-left: 1px solid var(--line); }
.mobile-menu__sub-link { padding: 8px 0; font-size: 15px; color: var(--ink-3); }
.mobile-menu__sub-link.is-active { font-weight: 700; color: var(--ink); }

/* Шапка: верхнее меню в одну строку; если места мало — переносится адрес, а не меню */
@media (min-width: 1200px) {
  .header__inner { flex-wrap: nowrap; }
  .header__contacts { flex: 0 1 auto; min-width: 0; }
  .header .top-nav { flex: none; flex-wrap: nowrap; gap: 0; }
  .top-nav__link { white-space: nowrap; padding: 8px 10px; }
  .top-nav__chev { width: 18px; }
}
/* Красное меню: ширина пунктов по тексту, без переноса строк */
@media (min-width: 1101px) {
  .services-nav__item { flex: 1 1 auto; }
  .services-nav__link { white-space: nowrap; }
}

/* Подпись «Авиакарголайн» под логотипом — мобильный размер */
@media (max-width: 820px) {
  .header__logo { gap: 3px; }
  .header__oldname { font-size: 9px; letter-spacing: .24em; }
}

/* ---------- Калькулятор: поле «Порт отправки» (main.js → Ports) ----------
   Поле скрыто атрибутом hidden, пока для выбранных вида перевозки и города нет портов.
   Пока оно видно, у сетки формы есть .has-port — поля с .form__full--port теряют полную ширину,
   чтобы сетка оставалась без пустых ячеек. */
.field[hidden] { display: none; }
.has-port .form__full--port { grid-column: auto; }
.has-port .calc-block__estimate { grid-column: 1 / -1; }

/* ---------- Карта-схема: подписаны хаб и «популярные» города; остальные (.map__pin--quiet) — при наведении/фокусе ----------
   Подписанные точки лежат выше «тихих», чтобы чужие точки не перекрывали подписи. */
.map__pin { z-index: 2; }
.map__pin--quiet { z-index: 1; }
.map__pin--quiet .map__label { opacity: 0; transition: opacity .15s; }
.map__pin:hover, .map__pin:focus-visible { z-index: 3; }
.map__pin--quiet:hover .map__label, .map__pin--quiet:focus-visible .map__label { opacity: 1; }

/* ---------- Калькулятор: результат расчёта с сервера (main.js → Calc) ----------
   .js-estimate — итог или подсказка (.is-text — текст вместо суммы), строки надбавок, выделенное примечание,
   фраза о предварительном расчёте. Встроенный калькулятор («Медикаменты») — те же элементы в .calc-block__more. */
.estimate__value.is-text { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.calc-block__value.is-text { font-size: 14px; font-weight: 600; }
.estimate__value.is-loading, .calc-block__value.is-loading { opacity: .45; transition: opacity .2s; }
.estimate__lines { flex: 1 1 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.estimate__line { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-3); }
.estimate__line b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.estimate__alert { flex: 1 1 100%; margin: 0; padding: 10px 12px; border-radius: 10px; background: #FFF4E5; border-left: 3px solid #F2A33A; font-size: 14px; line-height: 1.45; color: var(--ink); }
.estimate .estimate__note { flex: 1 1 100%; max-width: none; }
.estimate__lines[hidden], .estimate__alert[hidden], .estimate__note[hidden], .calc-block__more[hidden] { display: none; }
.calc-block__more { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.calc-block__more .estimate__lines { background: var(--info); border-radius: 10px; padding: 10px 14px; }
.calc-block__more .estimate__note { color: var(--ink-3); line-height: 1.4; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) { .cards--2 { grid-template-columns: minmax(0, 1fr); } }
/* Поле «Авиакомпания» видно (.has-airline): в окне режим и авиакомпания — в одной строке;
   во встроенном калькуляторе полей становится нечётное число — итог встаёт рядом с объёмом */
@media (min-width: 821px) { .has-airline .form__full--temp { grid-column: span 2; } }
.has-port.has-airline .calc-block__estimate { grid-column: auto; }
.calc-block__more .estimate__note { max-width: none; }

/* ---------- Форма заявки: маршрут «Москва ⇄ город» (main.js → Route), разделы, плательщик ----------
   .route.is-reversed — заявка «в Москву»: выбор города встаёт первым (пункт отправления), Москва — вторым. */
.route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.route__moscow { order: 1; }
.route__swap { order: 2; }
.route__city { order: 3; }
.route.is-reversed .route__city { order: 1; }
.route.is-reversed .route__moscow { order: 3; }
.route__swap { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--field-line); background: #fff; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; transition: color .15s, border-color .15s, transform .2s; }
.route__swap:hover { color: var(--akl-red); border-color: var(--akl-red); }
.route.is-reversed .route__swap { transform: scaleX(-1); }
@media (max-width: 560px) {
  .route { grid-template-columns: minmax(0, 1fr); }
  .route__swap { justify-self: center; transform: rotate(90deg); }
  .route.is-reversed .route__swap { transform: rotate(-90deg); }
}
.form__section { margin: 6px 0 -4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.form__section:first-child { margin-top: 0; }
.form__checks.is-error { color: var(--akl-red-dk); }
.check input[type="radio"] { accent-color: var(--akl-red); }

/* ---------- Антиспам: поле-ловушка (main.js его не трогает; человек его не видит и не заполняет) ---------- */
.form__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
