/*
 * КБ ТЕССЕРА — styles.css
 * Своё оформление поверх bootstrap.min.css 5.3 (без Sass). Токены — CSS-переменные, жидкие размеры — clamp()
 * между окнами 390 и 1920 px. Брейкпоинты — как у Bootstrap: sm 576, md 768, lg 992, xl 1200, xxl 1400.
 * Правило: сначала CSS-переменная Bootstrap (--bs-*), потом свой БЭМ-блок. Hex — только в :root.
 */

/* ── 1. Шрифт Inter (вариативный, 300–700) ─────────────────────────────── */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── 2. Токены ─────────────────────────────────────────────────────────── */
:root {
  --brand-100: #C0D3E2;
  --brand-400: #2A6A9D;
  --brand-500: #05508C;
  --brand-600: #05508C;
  --brand-700: #044070;
  --ink-900: #111111;
  --ink-700: #34405A;
  --muted-500: #8D95A4;
  --muted-700: #677083;
  --white: #FFFFFF;
  --surface-50: #FAFAFA;
  --surface-100: #F7F7F7;
  --line-100: #F0F0F0;
  --line-200: #E4E4E4;
  --line-300: #D5D5D5;
  --success-700: #007A0F;
  --danger-600: #D0312D;
  --on-dark-muted: rgba(255, 255, 255, 0.82);
  --on-dark-line: rgba(255, 255, 255, 0.28);
  --focus-ring: #111111;
  --focus-halo: #FFFFFF;
  --shadow-bar: 0 4px 30px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 4px 36px rgba(130, 150, 162, 0.13);
  --shadow-modal: 0 4px 41px rgba(80, 80, 80, 0.2);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
  --duration-zoom: 1000ms;
  --ease-standard: ease;
  --ease-in-out: ease-in-out;
  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --z-header: 1020;
  --z-float: 1030;
  --header-h: 116px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Bootstrap: тема через его CSS-переменные */
  --bs-body-font-family: var(--font-sans);
  --bs-body-font-weight: 300;
  --bs-body-line-height: 1.5;
  --bs-body-color: var(--ink-900);
  --bs-body-color-rgb: 17, 17, 17;
  --bs-emphasis-color: var(--ink-900);
  --bs-secondary-color: var(--muted-700);
  --bs-heading-color: var(--ink-900);
  --bs-primary: var(--brand-600);
  --bs-primary-rgb: 5, 80, 140;
  --bs-link-color: var(--brand-600);
  --bs-link-color-rgb: 5, 80, 140;
  --bs-link-hover-color: var(--brand-700);
  --bs-link-hover-color-rgb: 4, 64, 112;
  --bs-link-decoration: none;
  --bs-border-color: var(--line-100);
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-focus-ring-color: var(--focus-halo);
  --bs-form-invalid-color: var(--danger-600);
  --bs-form-invalid-border-color: var(--danger-600);
  --swiper-theme-color: var(--brand-500);
  --swiper-pagination-bullet-border-radius: 0;
  --swiper-scrollbar-border-radius: 0;
}

/* ── 3. База ───────────────────────────────────────────────────────────── */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { text-decoration: none; transition: color var(--duration-slow) var(--ease-standard); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 550; line-height: 1.15; }
b, strong { font-weight: 550; }
p { margin: 0; }
figure { margin: 0; }
::selection { background: var(--brand-100); color: var(--ink-900); }
.icon { width: 1em; height: 1em; flex: none; }
.btn-close { border-radius: 0; }

:focus-visible,
.btn:focus-visible,
.btn-close:focus-visible,
.accordion-button:focus-visible,
.form-control:focus-visible,
.form-check-input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-halo);
}

.skip-link:focus { position: fixed; z-index: 2000; top: 10px; left: 10px; padding: 10px 16px; background: var(--white); color: var(--ink-900); }

/* Контейнер: на lg+ поля 40 px (25 + 15), максимум 1800 (контент 1770) */
.container { --bs-gutter-x: 30px; } /* поле 15 px: столько же, сколько половина зазора сеток g-30 */
@media (min-width: 992px) { .container { max-width: calc(100% - 50px); } }
@media (min-width: 1850px) { .container { max-width: 1800px; } }

/* Зазоры сеток по шкале макета */
.g-20 { --bs-gutter-x: 20px; --bs-gutter-y: 20px; }
.g-30 { --bs-gutter-x: 30px; --bs-gutter-y: 30px; }

/* Якоря под липкой шапкой */
@media (min-width: 992px) { [id] { scroll-margin-top: calc(var(--header-h) + 10px); } }

/* ── 4. Кнопки (Bootstrap .btn) ────────────────────────────────────────── */
.btn {
  --bs-btn-padding-x: clamp(1.75rem, 1.4rem + 1.438vw, 3.125rem);
  --bs-btn-padding-y: clamp(0.8438rem, 0.796rem + 0.1961vw, 1.031rem);
  --bs-btn-font-family: inherit;
  --bs-btn-font-size: 0.8125rem;
  --bs-btn-font-weight: 550;
  --bs-btn-line-height: 1.15;
  --bs-btn-border-radius: 0;
  --bs-btn-focus-box-shadow: 0 0 0 2px var(--focus-halo);
  --bs-btn-disabled-opacity: 0.65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--duration-slow) var(--ease-standard), background-color var(--duration-slow) var(--ease-standard),
              border-color var(--duration-slow) var(--ease-standard);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--duration-slow) var(--ease-standard); }
.btn:hover .icon { transform: translateX(4px); }
.btn-sm {
  --bs-btn-padding-y: 11.5px;
  --bs-btn-padding-x: 20px;
  --bs-btn-font-size: 0.8125rem;
  --bs-btn-border-radius: 0;
}
.btn-lg {
  --bs-btn-padding-y: clamp(1rem, 0.9044rem + 0.3922vw, 1.375rem);
  --bs-btn-padding-x: clamp(1.625rem, 1.402rem + 0.915vw, 2.5rem);
  --bs-btn-font-size: 0.875rem;
  --bs-btn-border-radius: 0;
}
.btn-primary {
  --bs-btn-color: var(--white);
  --bs-btn-bg: var(--brand-600);
  --bs-btn-border-color: var(--brand-600);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--brand-700);
  --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--brand-700);
  --bs-btn-active-border-color: var(--brand-700);
  --bs-btn-disabled-color: var(--white);
  --bs-btn-disabled-bg: var(--brand-600);
  --bs-btn-disabled-border-color: var(--brand-600);
}
.btn-outline-secondary {
  --bs-btn-color: var(--ink-900);
  --bs-btn-bg: var(--white);
  --bs-btn-border-color: rgba(5, 80, 140, 0.22);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--brand-600);
  --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--brand-600);
  --bs-btn-active-border-color: var(--brand-600);
  --bs-btn-disabled-color: var(--muted-700);
  --bs-btn-disabled-border-color: var(--line-300);
}
/* Белая капсула на синем */
.button--light {
  --bs-btn-color: var(--brand-600);
  --bs-btn-bg: var(--white);
  --bs-btn-border-color: var(--white);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: var(--white);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: var(--white);
  --bs-btn-disabled-color: var(--brand-600);
  --bs-btn-disabled-bg: var(--white);
  --bs-btn-disabled-border-color: var(--white);
  font-weight: 700;
}

/* ── 5. Кнопки-иконки ──────────────────────────────────────────────────── */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: var(--brand-600);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--duration-slow) var(--ease-standard), opacity var(--duration-base) var(--ease-standard);
}
.icon-btn:hover { background-color: var(--brand-700); }
.icon-btn .icon { width: 24px; height: 24px; }
.icon-btn--arrow { width: clamp(2.5rem, 2.15rem + 1.438vw, 3.875rem); height: clamp(2.5rem, 2.15rem + 1.438vw, 3.875rem); }
.icon-btn--arrow .icon { width: 55%; height: 55%; stroke-width: 1.25; }
.icon-btn:disabled,
.icon-btn.swiper-button-disabled { opacity: 0.35; pointer-events: none; }
.icon-btn.swiper-button-lock { display: none; }
.icon-btn--close { position: absolute; z-index: 2; top: 0; right: 0; width: clamp(2.75rem, 2.495rem + 1.046vw, 3.75rem); height: clamp(2.75rem, 2.495rem + 1.046vw, 3.75rem); }
.icon-btn--close .icon { width: 22px; height: 22px; }

/* ── 6. Текстовые ссылки ───────────────────────────────────────────────── */
.text-link { color: var(--brand-600); }
.text-link:hover { color: var(--brand-700); }
button.text-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.text-link--dotted { color: inherit; text-decoration: underline dotted var(--brand-500) 1px; text-underline-offset: 5px; }
.text-link--dotted:hover { color: var(--brand-600); }
.text-link--on-dark { color: var(--white); text-decoration: underline 1px; text-underline-offset: 3px; }
.text-link--on-dark:hover { color: var(--white); text-decoration-color: transparent; }

/* ── 7. Логотип ────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-500); }
.logo:hover { color: var(--brand-500); }
.logo__mark { width: clamp(2.375rem, 2.248rem + 0.5229vw, 2.875rem); height: clamp(2.375rem, 2.248rem + 0.5229vw, 2.875rem); flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: clamp(1.062rem, 1.015rem + 0.1961vw, 1.25rem); font-weight: 700; letter-spacing: 0.06em; color: var(--brand-600); }
.logo__sub { margin-top: 5px; font-size: 0.6875rem; font-weight: 550; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-700); }

/* ── 8. Шапка ──────────────────────────────────────────────────────────── */
.site-header { position: relative; z-index: var(--z-header); background: var(--white); box-shadow: var(--shadow-bar); }
@media (min-width: 992px) { .site-header { position: sticky; top: 0; } }

.topbar { padding-block: 11px; background: var(--surface-50); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
/* слоган — только когда рядом помещаются адрес и контакты */
.topbar__slogan { display: none; font-size: clamp(0.875rem, 0.8591rem + 0.06536vw, 0.9375rem); line-height: 1.2; color: var(--muted-700); }
@media (min-width: 1600px) { .topbar__slogan { display: block; } }
.topbar__contacts { display: flex; align-items: center; gap: 30px; margin-left: auto; white-space: nowrap; }
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.2;
  color: var(--ink-900);
  cursor: pointer;
  transition: color var(--duration-slow) var(--ease-standard);
}
.topbar__link .icon { width: 16px; height: 16px; color: var(--brand-600); }
.topbar__text { padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1px no-repeat;
  transition: background-size var(--duration-slow) var(--ease-standard); }
.topbar__link:hover { color: var(--ink-900); }
.topbar__link:hover .topbar__text { background-size: 100% 1px; }
.topbar__link--accent,
.topbar__link--accent:hover { color: var(--brand-600); }

.site-header__bar { border-bottom: 1px solid var(--line-100); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: clamp(4.25rem, 4.123rem + 0.5229vw, 4.75rem); }
.site-header__logo { flex: none; margin-right: auto; }
.site-header__actions { display: flex; align-items: center; gap: 6px; }
.site-header__cta { --bs-btn-padding-x: 24px; --bs-btn-padding-y: 16px; margin-right: 10px; white-space: nowrap; }
.site-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-500);
  transition: color var(--duration-slow) var(--ease-standard);
}
.site-header__icon:hover { color: var(--brand-700); }

/* Поиск: лупа → поле поверх всей строки (весь контейнер с полями — иначе из-под поля торчит бургер с отрицательным
   отступом; высота строки, shadow-float); подсказки — список под полем. Поле и список — внутри .site-header__inner */
.site-header__inner { position: relative; }
.site-search__field { position: absolute; inset: 0; z-index: 2; display: none; align-items: center; gap: 12px;
  padding: 0 10px 0 20px; background: var(--white); box-shadow: var(--shadow-float); }
.site-search.is-open .site-search__field { display: flex; }
/* с 768 (рядом «Обсудить проект») лупа — квадрат высотой с кнопку (52) в синей рамке; наведение — заливка brand-600 */
@media (min-width: 768px) {
  .site-search__toggle { width: 52px; height: 52px; margin-right: 4px; border: 1px solid var(--brand-600); color: var(--brand-600);
    transition: background-color var(--duration-slow) var(--ease-standard), color var(--duration-slow) var(--ease-standard); }
  .site-search__toggle:hover { background: var(--brand-600); color: var(--white); }
}
.site-search__icon { flex: none; width: 20px; height: 20px; color: var(--muted-700); }
.site-search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 1rem; font-weight: 300; color: var(--ink-900); outline: none; box-shadow: none; }
/* фокус в поле показывает синяя линия низа поля, а не общий ореол (его белая подложка рвёт линию) */
.site-search__input::placeholder { color: var(--muted-700); }
.site-search__input::-webkit-search-cancel-button { display: none; }
.site-search__field:focus-within { box-shadow: var(--shadow-float), inset 0 -2px 0 var(--brand-500); }
.site-search__close { flex: none; }
.site-search__suggest { position: absolute; top: 100%; left: 0; right: 0; max-height: min(70vh, 480px); overflow-y: auto;
  border-top: 1px solid var(--line-100); background: var(--white); box-shadow: var(--shadow-float); }
.site-search__list { margin: 0; padding: 8px 0; list-style: none; }
.site-search__item { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 10px 20px; color: var(--ink-900); }
.site-search__item:hover,
.site-search__item:focus-visible { outline: none; background: var(--surface-50); color: var(--brand-600); }
.site-search__type { flex: none; font-size: 0.75rem; font-weight: 550; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-700); }
.site-search__all,
.site-search__empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 20px; border-top: 1px solid var(--line-100); font-size: 0.875rem; }
.site-search__all { font-weight: 550; color: var(--brand-600); }
.site-search__all:hover,
.site-search__all:focus-visible { outline: none; background: var(--surface-50); color: var(--brand-700); }
.site-search__all .icon { width: 18px; height: 18px; }
.site-search__empty { color: var(--muted-700); }
.site-header__icon .icon { width: 24px; height: 24px; }
.site-header__icon:last-child { margin-right: -10px; }
/* телефон: логотип + лупа, трубка, бургер не влезали в строку (бургер уходил за край) — ужать зазоры, на узких и иконки */
@media (max-width: 575.98px) {
  .site-header__inner { gap: 8px; }
  .site-header__actions { gap: 0; }
}
@media (max-width: 399.98px) {
  .logo { gap: 10px; }
  .logo__sub { letter-spacing: 0.05em; }
  .site-header__icon { width: 40px; }
}
@media (max-width: 359.98px) {
  .logo__sub { display: none; }
}
.burger { flex-direction: column; gap: 6px; }
.burger__bar { display: block; width: 28px; height: 2px; background: currentColor; }

.main-nav { margin-right: clamp(1.5rem, -1.865rem + 3.846vw, 2.75rem); }
.main-nav__list { display: flex; gap: clamp(1.375rem, -1.317rem + 3.077vw, 2.375rem); margin: 0; padding: 0; list-style: none; }
.main-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 76px;
  font-size: clamp(0.8125rem, 0.6442rem + 0.1923vw, 0.875rem);
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-900);
}
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-500);
  transform: scaleX(0);
  transition: transform var(--duration-slow) var(--ease-standard);
}
.main-nav__link:hover,
.main-nav__link:focus-visible,
.main-nav__link.is-active { color: var(--brand-600); }
.main-nav__link:hover::after,
.main-nav__link:focus-visible::after,
.main-nav__link.is-active::after { transform: scaleX(1); }

/* Выдвижное меню (offcanvas Bootstrap) */
.offcanvas {
  --bs-offcanvas-width: 380px;
  --bs-offcanvas-padding-x: 20px;
  --bs-offcanvas-padding-y: 0;
  --bs-offcanvas-transition: transform var(--duration-slow) ease-in-out;
}
.offcanvas-backdrop { --bs-backdrop-bg: #6F6F6F; --bs-backdrop-opacity: 0.75; }
@media (max-width: 575.98px) { .menu-drawer { --bs-offcanvas-width: 100%; } }
.menu-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line-100); }
.menu-drawer__list { margin: 0; padding: 0; list-style: none; }
.menu-drawer__link {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line-100);
  font-size: 0.875rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.menu-drawer__link:hover { color: var(--brand-600); }
.menu-drawer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 26px 30px; }
.menu-drawer__action { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 550; color: var(--brand-600); }
.menu-drawer__action:hover { color: var(--brand-700); }
.menu-drawer__action .icon { width: 22px; height: 22px; }
.menu-drawer__cta { align-self: stretch; margin-top: 6px; }

/* ── 9. Первый экран ───────────────────────────────────────────────────── */
/* < 992: текст → кнопки → цифры → фото с проявлением сверху. ≥ 992: фото справа (58 %, с 1200 — 64 %) под текстом,
   слева уходит в белый. */
.hero { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--white); }
.hero__media { position: relative; order: 2; aspect-ratio: 4 / 3;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%); mask-image: linear-gradient(180deg, transparent 0, #000 24%); }
.hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__body { display: flex; flex-direction: column; align-items: flex-start; padding-block: 40px 8px; }
.hero__eyebrow,
.intro__eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(1.125rem, 0.9338rem + 0.7843vw, 1.875rem); font-size: 0.8125rem;
  font-weight: 550; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-600); }
.hero__eyebrow::before,
.intro__eyebrow::before { content: ""; flex: none; width: clamp(2rem, 1.713rem + 1.176vw, 3.125rem); height: 2px; background: currentColor; }
.hero__title { max-width: 820px; font-size: clamp(2.25rem, 1.549rem + 2.876vw, 5rem); line-height: 1.07; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
/* уже 390 кегль — от ширины экрана: «Профессиональная» в 36px шире строки на 360 и 320 */
@media (max-width: 389.98px) { .hero__title { font-size: 9vw; } }
/* выделение в longtitle: <em>…</em> — синим, с новой строки */
.hero__title em { display: block; font-style: normal; color: var(--brand-700); }
.hero__text { max-width: 28em; margin-top: clamp(1.125rem, 0.9338rem + 0.7843vw, 1.875rem); font-size: clamp(1rem, 0.9044rem + 0.3922vw, 1.375rem); line-height: 1.5; color: var(--ink-700); }
.hero__actions,
.intro__actions { display: flex; flex-wrap: wrap; gap: 12px 15px; width: 100%; margin-top: clamp(1.625rem, 1.402rem + 0.915vw, 2.5rem); }
.hero__actions .btn,
.intro__actions .btn { flex: 1 1 auto; }

/* Цифры: 3 карточки; узкие (ряд < 680) — иконка над текстом; на телефоне — список */
.hero__stats { container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px;
  width: 100%; max-width: 860px; margin: clamp(1.75rem, 1.559rem + 0.7843vw, 2.5rem) 0 0; padding: 0; list-style: none; }
.hero-stat { display: flex; align-items: center; gap: clamp(0.75rem, 0.6544rem + 0.3922vw, 1.125rem); padding: clamp(0.875rem, 0.7157rem + 0.6536vw, 1.5rem) clamp(0.875rem, 0.7157rem + 0.6536vw, 1.5rem);
  border: 1px solid rgba(5, 80, 140, 0.1); background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-stat__icon { display: grid; place-items: center; flex: none; width: clamp(2.75rem, 2.495rem + 1.046vw, 3.75rem); height: clamp(2.75rem, 2.495rem + 1.046vw, 3.75rem);
  background: rgba(5, 80, 140, 0.07); color: var(--brand-700); }
.hero-stat__icon .icon { width: 50%; height: 50%; }
.hero-stat__value { display: block; font-size: clamp(1.25rem, 1.091rem + 0.6536vw, 1.875rem); line-height: 1.1; font-weight: 700; color: var(--brand-700); }
.hero-stat__value--text { font-size: clamp(1.125rem, 1.029rem + 0.3922vw, 1.5rem); }
.hero-stat__label { display: block; margin-top: 4px; font-size: clamp(0.8125rem, 0.7647rem + 0.1961vw, 1rem); line-height: 1.3; color: var(--ink-700); text-wrap: balance; }
@container (max-width: 680px) {
  .hero-stat { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575.98px) {
  .hero__stats { grid-template-columns: 1fr; }
  .hero-stat { flex-direction: row; align-items: center; }
}
@media (min-width: 576px) {
  .hero__actions,
  .intro__actions { width: auto; }
  .hero__actions .btn,
  .intro__actions .btn { flex: none; }
}

@media (min-width: 992px) {
  .hero { display: block; }
  .hero__media { position: absolute; inset: 0 0 0 auto; width: 58%; aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
  .hero__media img { object-position: 50% 40%; }
  .hero .container { position: relative; }
  .hero__body { justify-content: center; max-width: 56%; min-height: clamp(560px, calc(100svh - var(--header-h)), 900px); padding-block: 56px; }
}
@media (min-width: 1200px) { .hero__media { width: 64%; } }

/* --page: первый экран внутренней страницы («О нас»): H1, лид, текст, цифры без карточек; фото справа. Кадр заранее
   дорощен влево и вверх с уходом в белый (about-team-wide.jpg, 1504 × 1244; люди — правые нижние 1024 × 1024), поэтому
   масок нет и люди не бледнеют. С 1280 — фото во всю высоту блока у правого нижнего угла (люди ~82 % высоты, чтобы
   не заходить под текст); < 1280 — под текстом, без белого поля сверху (< 768 — квадрат с людьми). */
.hero--page .hero__media { aspect-ratio: 1; margin-top: 32px; -webkit-mask-image: none; mask-image: none; }
.hero--page .hero__media img { object-position: right bottom; }
@media (min-width: 768px) { .hero--page .hero__media { align-self: flex-end; width: 100%; max-width: 760px; aspect-ratio: 1504 / 1024; } }
.hero__lead { max-width: 34em; margin-top: clamp(1.125rem, 0.9338rem + 0.7843vw, 1.875rem); font-size: clamp(1.125rem, 0.9975rem + 0.5229vw, 1.625rem); line-height: 1.45; font-weight: 550; color: var(--ink-900); }
.hero--page .hero__text { max-width: 44em; margin-top: clamp(1rem, 0.8725rem + 0.5229vw, 1.5rem); font-size: clamp(0.9375rem, 0.8897rem + 0.1961vw, 1.125rem); line-height: 1.65; color: var(--muted-700); }
.hero--page .hero__text p { margin: 0; }
.hero--page .hero__text p + p { margin-top: 0.8em; }
/* цифры --plain: иконка над числом, между пунктами линии; 2 × 2, с 768 — в ряд */
.hero__stats--plain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; max-width: none; margin-top: clamp(2rem, 1.618rem + 1.569vw, 3.5rem); }
.hero__stats--plain .hero-stat { flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 clamp(1rem, 0.7451rem + 1.046vw, 2rem);
  border: 0; border-left: 1px solid var(--line-200); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero__stats--plain .hero-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
.hero__stats--plain .hero-stat__icon { width: auto; height: auto; background: none; color: var(--brand-600); }
.hero__stats--plain .hero-stat__icon .icon { width: clamp(1.875rem, 1.716rem + 0.6536vw, 2.5rem); height: clamp(1.875rem, 1.716rem + 0.6536vw, 2.5rem); }
.hero__stats--plain .hero-stat__value { font-size: clamp(1.5rem, 1.309rem + 0.7843vw, 2.25rem); }
.hero__stats--plain .hero-stat__value--text { font-size: clamp(1.062rem, 0.9828rem + 0.3268vw, 1.375rem); }
@media (min-width: 768px) {
  .hero__stats--plain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__stats--plain .hero-stat:nth-child(odd) { padding-left: clamp(1rem, 0.7451rem + 1.046vw, 2rem); border-left: 1px solid var(--line-200); }
  .hero__stats--plain .hero-stat:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
  .hero--page { display: flex; }
  .hero--page .hero__media { position: relative; inset: auto; }
  .hero--page .hero__body { max-width: none; min-height: 0; padding-block: 40px 8px; }
}
@media (min-width: 1280px) {
  /* align-self действует и на absolute: без сброса блок не тянется по высоте */
  .hero--page .hero__media { align-self: auto; width: 100%; max-width: none; margin-top: 0; aspect-ratio: auto; }
  .hero--page .hero__media img { position: absolute; right: 0; bottom: 0; width: auto; height: 100%; }
  .hero--page .hero__body { max-width: 54%; min-height: 0; padding-block: clamp(2.5rem, 1.863rem + 2.614vw, 5rem); }
}
/* широкий экран: места справа хватает — белое поле кадра уходит за верх блока, люди во всю высоту */
@media (min-width: 1800px) { .hero--page .hero__media img { height: calc(100% * 1244 / 1024); } }

/* ── 10. Секции ────────────────────────────────────────────────────────── */
.section { padding-top: 70px; overflow-x: clip; }
.section--end { padding-bottom: 70px; }
.section--surface,
.section--blue { margin-top: 70px; padding-top: clamp(2.75rem, 2.176rem + 2.353vw, 5rem); padding-bottom: clamp(2.75rem, 2.176rem + 2.353vw, 5rem); }
.section--surface { background: var(--surface-50); }
.section--blue { --bs-heading-color: var(--white); background: var(--brand-500); color: var(--white); }
/* полоса встык, без белой щели: сразу после первого экрана (фото упирается в неё) и после серой полосы (проекты на
   страницах услуг и направлений → «Наши преимущества») */
.hero + .section--blue,
.section--surface + .section--blue { margin-top: 0; }
.section--blue .section__title { color: var(--white); }
.section__head { max-width: 920px; margin-bottom: clamp(1.875rem, 1.556rem + 1.307vw, 3.125rem); }
.section__head--tight { margin-bottom: clamp(1.5rem, 1.373rem + 0.5229vw, 2rem); }
.section__title { font-size: clamp(1.625rem, 1.402rem + 0.915vw, 2.5rem); line-height: 1.25; text-wrap: balance; }
.section__lead { max-width: 760px; margin-top: 14px; font-size: clamp(1rem, 0.9522rem + 0.1961vw, 1.188rem); line-height: 1.55; color: var(--muted-700); }
.section--blue .section__lead { color: var(--on-dark-muted); }

/* Текст из редактора */
.rich-text { font-size: clamp(0.9375rem, 0.9056rem + 0.1307vw, 1.062rem); line-height: 1.75; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 14px; }
.rich-text h2 { margin: 34px 0 14px; font-size: clamp(1.375rem, 1.248rem + 0.5229vw, 1.875rem); }
.rich-text > h2:first-child { margin-top: 0; }
.rich-text ul,
.rich-text ol { margin: 0 0 14px; padding: 0; list-style: none; }
.rich-text li { position: relative; padding-left: 24px; }
.rich-text li + li { margin-top: 6px; }
.rich-text ul > li::before { content: ""; position: absolute; left: 4px; top: 0.85em; width: 6px; height: 6px; background: var(--brand-500); transform: translateY(-50%); }
.rich-text ol { counter-reset: li; }
.rich-text ol > li::before { counter-increment: li; content: counter(li) "."; position: absolute; left: 0; font-weight: 550; color: var(--brand-600); }
.rich-text a { color: var(--brand-600); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em;
  transition: color var(--duration-slow) var(--ease-standard), text-decoration-color var(--duration-slow) var(--ease-standard); }
.rich-text a:hover { color: var(--brand-700); text-decoration-color: currentColor; }
.rich-text .lead-text { margin-bottom: 22px; font-size: clamp(1.062rem, 0.9828rem + 0.3268vw, 1.375rem); line-height: 1.6; font-weight: 550; }
.rich-text--narrow { max-width: 900px; }
.rich-text h3 { margin: 26px 0 12px; font-size: clamp(1.125rem, 1.061rem + 0.2614vw, 1.375rem); }
.rich-text table { width: 100%; margin: 0 0 20px; border-collapse: collapse; font-size: 0.9em; line-height: 1.5; }
.rich-text th,
.rich-text td { padding: 10px 14px; border: 1px solid var(--line-200); text-align: left; vertical-align: top; }
.rich-text th { background: var(--surface-50); font-weight: 550; }
/* длинные имена (_ym_metrika_enabled) — перенос где угодно; заголовки столбцов — только по словам */
.rich-text td { overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .rich-text th, .rich-text td { padding: 8px 10px; } }
.page-title { margin-bottom: clamp(1.5rem, 1.245rem + 1.046vw, 2.5rem); font-size: clamp(2rem, 1.634rem + 1.503vw, 3.438rem); line-height: 1.1; text-wrap: balance; }

/* ── 11. О нас ─────────────────────────────────────────────────────────── */
.about { display: grid; gap: 36px; }
.about .section__title { margin-bottom: clamp(1.25rem, 1.091rem + 0.6536vw, 1.875rem); }
.about__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 576px) {
  .about .rich-text ul { columns: 2; column-gap: 30px; }
  .about .rich-text li { break-inside: avoid; }
}
@media (min-width: 992px) {
  .about { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, -2.845rem + 8.621vw, 7.5rem); }
}

/* ── 12. Карточки направлений ──────────────────────────────────────────── */
/* карточка — ссылка на страницу направления или услуги */
.service-card { display: flex; flex-direction: column; height: 100%; background: var(--surface-50); color: var(--ink-900); transition: background-color var(--duration-fast) var(--ease-in-out); }
.service-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.service-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: clamp(1.25rem, 1.059rem + 0.7843vw, 2rem) clamp(1.25rem, 1.059rem + 0.7843vw, 2rem) clamp(1.5rem, 1.309rem + 0.7843vw, 2.25rem); }
.service-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.service-card__title { font-size: 1.25rem; line-height: 1.25; }
.service-card__icon { width: clamp(2rem, 1.841rem + 0.6536vw, 2.625rem); height: clamp(2rem, 1.841rem + 0.6536vw, 2.625rem); color: var(--brand-500); stroke-width: 1.25; }
.service-card__text { font-size: clamp(0.875rem, 0.8431rem + 0.1307vw, 1rem); line-height: 1.55; color: var(--muted-700); }
.service-card__title,
.service-card__icon,
.service-card__text { transition: color var(--duration-fast) var(--ease-in-out); }
/* Наведение — только там, где есть мышь: на тач-экране «залипает» после касания */
@media (hover: hover) {
  .service-card:hover { background: var(--brand-600); }
  .service-card:hover .service-card__title,
  .service-card:hover .service-card__icon { color: var(--white); }
  .service-card:hover .service-card__text { color: var(--on-dark-muted); }
  .service-card:hover .more-link { color: var(--white); }
}

/* ── 13. Карусели (Swiper) ─────────────────────────────────────────────── */
.slider { position: relative; }
.slider--bleed .slider__viewport { overflow: visible; }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(1.5rem, 1.309rem + 0.7843vw, 2.25rem); }
.slider__counter { display: flex; align-items: center; gap: 16px; font-size: 0.875rem; font-weight: 550; font-variant-numeric: tabular-nums; color: var(--ink-900); }
/* Swiper 11 делает progressbar абсолютным на всю ширину — внутри счётчика вернуть в поток */
.slider__progress.swiper-pagination-progressbar { position: relative; inset: auto; width: 100px; height: 2px; flex: 0 0 100px; background: var(--line-200); }
.slider__progress .swiper-pagination-progressbar-fill { background: var(--brand-500); }

/* ── 14. Проекты ───────────────────────────────────────────────────────── */
/* Карточка — ссылка на страницу проекта; в карусели главной она же слайд (Swiper slideClass), на странице «Проекты» —
   элемент сетки */
.project-card { display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--white); color: var(--ink-900); }
.swiper-wrapper > .project-card { flex-shrink: 0; height: auto; }
.project-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--white); }
.project-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform var(--duration-zoom) var(--ease-in-out); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: clamp(1rem, 0.8725rem + 0.5229vw, 1.5rem); border-top: 1px solid var(--line-100); }
.project-card__title { font-size: clamp(1rem, 0.9681rem + 0.1307vw, 1.125rem); line-height: 1.35; font-weight: 550; transition: color var(--duration-slow) var(--ease-standard); }
.project-card:hover .project-card__title { color: var(--brand-600); }
.project-card__client { font-size: 0.875rem; line-height: 1.4; color: var(--muted-700); }
.project-card__more,
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 0.8125rem; font-weight: 550; line-height: 1.6; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-600); }
.project-card__more .icon,
.more-link .icon { width: 18px; height: 18px; transition: transform var(--duration-slow) var(--ease-standard); }
.project-card:hover .project-card__more .icon,
.service-card:hover .more-link .icon,
a.more-link:hover .icon { transform: translateX(4px); }
.project-grid { display: grid; gap: clamp(1rem, 0.777rem + 0.915vw, 1.875rem); }
@media (min-width: 576px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.section__foot { margin-top: 50px; text-align: center; }
.projects-note { max-width: 1100px; margin-top: clamp(1.5rem, 1.309rem + 0.7843vw, 2.25rem); font-size: 0.8125rem; line-height: 1.55; color: var(--muted-700); }

/* Запись (страница проекта, направления, услуги): фото 5 | название, мета, текст 7; с 992 фото липнет под шапкой.
   Услуга и направление — свой главный блок intro (ниже) */
.entry { display: grid; gap: clamp(1.5rem, 0.9265rem + 2.353vw, 3.75rem); }
.entry__media img { display: block; width: 100%; height: auto; }
.entry__body { display: flex; flex-direction: column; align-items: flex-start; }
.entry__title { font-size: clamp(1.75rem, 1.495rem + 1.046vw, 2.75rem); line-height: 1.15; text-wrap: balance; }
.entry__meta { margin-top: 12px; font-size: clamp(0.9375rem, 0.9056rem + 0.1307vw, 1.062rem); line-height: 1.5; color: var(--muted-700); }
.entry__text { margin-top: clamp(1.5rem, 1.309rem + 0.7843vw, 2.25rem); }
.entry__text h2 { margin: 28px 0 8px; font-size: 0.8125rem; line-height: 1.6; font-weight: 550; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-600); }
.entry__text > h2:first-child { margin-top: 0; }
.entry__cta { margin-top: clamp(1.625rem, 1.402rem + 0.915vw, 2.5rem); }
@media (min-width: 992px) {
  .entry { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .entry__media { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* Главный блок страницы услуги и направления intro: метка, H1, лид (introtext), кнопки | справа у услуги синяя панель
   «Кратко об услуге» (TV key_points → check-list), у направления — фото 4:3. Ниже «Об услуге» / «О направлении»
   (content) — скрыт, если текста нет; у направления key_points — карточки «Что разрабатываем» */
/* фон — серый surface-50 (полоса во всю ширину), поля сверху и снизу */
.intro { padding-block: clamp(2.5rem, 1.863rem + 2.614vw, 5rem); background: var(--surface-50); }
.intro__grid { display: grid; gap: clamp(1.875rem, 1.397rem + 1.961vw, 3.75rem); align-items: start; }
.intro__title { font-size: clamp(2rem, 1.554rem + 1.83vw, 3.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.intro__lead { max-width: 40em; margin-top: clamp(1.125rem, 0.9657rem + 0.6536vw, 1.75rem); font-size: clamp(1rem, 0.9363rem + 0.2614vw, 1.25rem); line-height: 1.55; color: var(--ink-700); }
.intro__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.intro__panel { padding: clamp(1.75rem, 1.4rem + 1.438vw, 3.125rem); background: var(--brand-600); color: var(--white); }
.intro__panel-title { margin-bottom: 22px; font-size: 0.8125rem; line-height: 1.4; font-weight: 550; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--on-dark-muted); }
@media (min-width: 992px) { .intro__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.check-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 36px; font-size: clamp(0.9375rem, 0.8897rem + 0.1961vw, 1.125rem); line-height: 1.45; font-weight: 550; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.05em; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / contain no-repeat; }
.page-about:has(.rich-text:empty),
.key-points:has(.check-list:empty) { display: none; }
/* пункты карточками: рамка line-100, галочка brand-500 */
.check-list--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(1rem, 0.777rem + 0.915vw, 1.875rem); }
.check-list--cards li { height: 100%; padding: clamp(1.375rem, 1.248rem + 0.5229vw, 1.875rem) clamp(1.375rem, 1.248rem + 0.5229vw, 1.875rem) clamp(1.375rem, 1.248rem + 0.5229vw, 1.875rem) clamp(3.625rem, 3.466rem + 0.6536vw, 4.25rem);
  border: 1px solid var(--line-100); color: var(--ink-900); }
.check-list--cards li::before { left: clamp(1.375rem, 1.248rem + 0.5229vw, 1.875rem); top: clamp(1.375rem, 1.248rem + 0.5229vw, 1.875rem); background: var(--brand-500); }

/* ── 15. Услуги и аккордеон ────────────────────────────────────────────── */
.services { display: grid; gap: 30px; }
.services__head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.services__head .section__lead { margin-top: 0; }
@media (min-width: 992px) {
  .services { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2.5rem, -2.845rem + 8.621vw, 7.5rem); align-items: start; }
  .services__head { position: sticky; top: calc(var(--header-h) + 30px); }
}
.faq {
  --bs-accordion-bg: transparent;
  --bs-accordion-color: var(--ink-900);
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: clamp(1.25rem, 1.123rem + 0.5229vw, 1.75rem);
  --bs-accordion-btn-color: var(--ink-900);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-color: var(--brand-600);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0;
  --bs-accordion-transition: color var(--duration-slow) var(--ease-standard);
  border-top: 1px solid var(--line-100);
}
.faq .accordion-item { border-bottom: 1px solid var(--line-100); }
.faq .accordion-button { gap: 20px; font-size: clamp(1.125rem, 1.061rem + 0.2614vw, 1.375rem); line-height: 1.3; font-weight: 550; }
.faq .accordion-button::after { display: none; }
.faq .accordion-button:hover { color: var(--brand-600); }
.faq__icon { position: relative; flex: none; order: 2; width: 36px; height: 36px; margin-left: auto; border: 1px solid var(--line-200);
  transition: background-color var(--duration-slow) var(--ease-standard), border-color var(--duration-slow) var(--ease-standard), color var(--duration-slow); }
.faq__icon::before,
.faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform var(--duration-base) var(--ease-standard); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq .accordion-button:hover .faq__icon { border-color: var(--brand-500); }
.faq .accordion-button:not(.collapsed) .faq__icon { border-color: var(--brand-500); background: var(--brand-500); color: var(--white); }
.faq .accordion-button:not(.collapsed) .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }
.faq .accordion-body { max-width: 860px; padding-bottom: clamp(1.5rem, 1.373rem + 0.5229vw, 2rem); }

/* ── 16. Преимущества и шаги (icon-card) ───────────────────────────────── */
.icon-card { height: 100%; transition: background-color var(--duration-slow) var(--ease-standard), border-color var(--duration-slow) var(--ease-standard), color var(--duration-slow) var(--ease-standard); }
.icon-card__title,
.icon-card__num,
.icon-card--outline .icon-card__text { transition: color var(--duration-slow) var(--ease-standard); }
/* --outline: на белой секции — рамка line-100 и синяя пиктограмма; на синей полосе — светлая рамка, всё белое */
.icon-card--outline { display: flex; flex-direction: column; gap: 12px; padding: clamp(1.375rem, 1.248rem + 0.5229vw, 1.875rem); border: 1px solid var(--line-100); color: var(--brand-500); }
.section--blue .icon-card--outline { border-color: var(--on-dark-line); color: inherit; }
/* Пиктограмма — PNG/SVG с прозрачностью как маска (mask-image в разметке): цвет = currentColor, форма = альфа файла */
.icon-card__icon { display: block; flex: none; width: 56px; height: 56px; background-color: currentColor;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.icon-card--outline .icon-card__title { margin-top: 6px; font-size: clamp(1.062rem, 1.031rem + 0.1307vw, 1.188rem); line-height: 1.3; }
.icon-card--outline .icon-card__text { font-size: clamp(0.875rem, 0.8591rem + 0.06536vw, 0.9375rem); line-height: 1.55; color: var(--muted-700); }
.section--blue .icon-card--outline .icon-card__text { color: var(--on-dark-muted); }

.steps { margin-block: 0; padding: 0; list-style: none; }
.icon-card--row { display: flex; flex-direction: column; gap: 12px; padding: clamp(1.5rem, 1.245rem + 1.046vw, 2.5rem); border: 1px solid var(--line-100); background: var(--white); }
.icon-card__num { font-size: clamp(2.125rem, 1.838rem + 1.176vw, 3.25rem); line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--brand-500); }
.icon-card--row .icon-card__title { margin-top: 6px; font-size: clamp(1.125rem, 1.061rem + 0.2614vw, 1.375rem); line-height: 1.3; }
.icon-card--row .icon-card__text { font-size: clamp(0.875rem, 0.8431rem + 0.1307vw, 1rem); line-height: 1.6; }

/* Наведение: на синей полосе карточка становится белой, на белой секции — синей */
@media (hover: hover) {
  .icon-card--outline:hover { border-color: transparent; background: var(--brand-600); color: var(--white); }
  .icon-card--outline:hover .icon-card__title { color: var(--white); }
  .icon-card--outline:hover .icon-card__text { color: var(--on-dark-muted); }
  .section--blue .icon-card--outline:hover { border-color: var(--white); background: var(--white); color: var(--brand-500); }
  .section--blue .icon-card--outline:hover .icon-card__title { color: var(--ink-900); }
  .section--blue .icon-card--outline:hover .icon-card__text { color: var(--muted-700); }
  .icon-card--row:hover { border-color: transparent; background: var(--brand-600); color: var(--white); }
  .icon-card--row:hover .icon-card__title,
  .icon-card--row:hover .icon-card__num { color: var(--white); }
  .icon-card--row:hover .rich-text ul > li::before { background: var(--white); }
}

/* ── 17. Заявка и контакты ─────────────────────────────────────────────── */
.cta-form { --bs-heading-color: var(--white); display: grid; background: var(--brand-600); color: var(--white); }
.cta-form__main { padding: clamp(1.875rem, 1.078rem + 3.268vw, 5rem) clamp(1.25rem, 0.2941rem + 3.922vw, 5rem); }
.cta-form__aside { padding: clamp(1.875rem, 1.078rem + 3.268vw, 5rem) clamp(1.25rem, 0.6127rem + 2.614vw, 3.75rem); background: var(--brand-700); }
@media (min-width: 992px) { .cta-form { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
/* без колонки контактов (&aside=`0`) — форма во всю ширину */
.cta-form__main:only-child { grid-column: 1 / -1; }
.cta-form__title { max-width: 880px; font-size: clamp(1.5rem, 1.245rem + 1.046vw, 2.5rem); line-height: 1.25; color: var(--white); text-wrap: balance; }
.cta-form__subtitle { max-width: 760px; margin-top: 16px; font-size: clamp(0.9375rem, 0.8897rem + 0.1961vw, 1.125rem); line-height: 1.55; color: var(--on-dark-muted); }
.cta-form__form { margin-top: clamp(1.625rem, 1.402rem + 0.915vw, 2.5rem); }
.cta-form__grid { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .cta-form__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-form__message { grid-column: 1 / -1; }
}
.cta-form__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 30px; margin-top: 24px; }
.cta-form__agree { color: var(--on-dark-muted); }
.cta-form__submit { flex: none; }
.cta-form__aside-title { margin-bottom: 26px; font-size: 1.25rem; color: var(--white); }
.contacts-list { display: grid; gap: 22px; margin: 0; }
.contacts-list__label { margin-bottom: 6px; font-size: 0.8125rem; font-weight: 550; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-700); }
.cta-form .contacts-list__label { color: var(--on-dark-muted); }
.contacts-list__value { margin: 0; font-size: clamp(1rem, 0.9363rem + 0.2614vw, 1.25rem); line-height: 1.4; font-weight: 550; }

/* Страница «Контакты»: карточка офиса на surface-50 | Яндекс Карта (JS API 2.1, метка по координатам
   из ClientConfig; iframe-виджет без ключа показывает рекламу, API — нет). Пока карта не загружена — серый фон */
.office { display: grid; gap: clamp(1rem, 0.777rem + 0.915vw, 1.875rem); }
.office__card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 1.086rem + 1.699vw, 3.125rem); background: var(--surface-50); }
.office__company { margin-bottom: clamp(1.25rem, 1.091rem + 0.6536vw, 1.875rem); font-size: clamp(1.125rem, 1.061rem + 0.2614vw, 1.375rem); line-height: 1.3; font-weight: 550; }
.office__route { margin: 6px 0 0; font-size: 0.875rem; }
.office__callback { margin-top: clamp(1.625rem, 1.402rem + 0.915vw, 2.5rem); }
.office__map { min-height: 360px; background: var(--surface-50); }
@media (min-width: 992px) {
  .office { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .office__map { min-height: 480px; }
}

/* Поля на синем */
.cta-form .form-control { border-color: rgba(255, 255, 255, 0.55); background-color: transparent; color: var(--white); }
.cta-form .form-control:focus { border-color: var(--white); background-color: rgba(255, 255, 255, 0.06); color: var(--white); }
.cta-form .form-floating > label,
.cta-form .form-floating > .form-control:focus ~ label,
.cta-form .form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--on-dark-muted); }
.cta-form .form-check-input { border-color: var(--white); background-color: transparent; }
.cta-form .form-check-input:checked {
  border-color: var(--white);
  background-color: var(--white);
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%2305508C' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.cta-form .form-error:not(:empty) { display: inline-block; padding: 2px 8px; background: var(--danger-600); color: var(--white); }
.cta-form .form-message--success,
.cta-form .form-message--error { color: var(--white); }

/* ── 18. Поля форм (Bootstrap .form-control, .form-floating, .form-check) ─ */
.form-control {
  font-size: 1.0625rem;
  font-weight: 550;
  line-height: 1.6;
  color: var(--ink-900);
  background-color: var(--surface-100);
  border: 1px solid transparent;
  border-radius: 0;
  transition: border-color var(--duration-slow) var(--ease-standard), background-color var(--duration-slow) var(--ease-standard);
}
.form-control:focus { color: var(--ink-900); background-color: var(--white); border-color: var(--brand-500); box-shadow: none; }
.form-control::placeholder { color: var(--muted-700); }
.form-control.is-invalid { border-color: var(--danger-600); }
.form-floating > .form-control { height: 60px; min-height: 60px; padding: 18px; line-height: 1.25; }
.form-floating > textarea.form-control { height: 130px; resize: vertical; }
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) { padding-top: 26px; padding-bottom: 10px; }
.form-floating > label { padding: 18px; font-size: 1.0625rem; font-weight: 550; color: var(--muted-700); }
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--muted-700); transform: scale(0.765) translateY(-0.6rem) translateX(0.2rem); }
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after { background-color: transparent; }
.form-check { min-height: 24px; padding-left: 32px; }
.form-check .form-check-input { margin-left: -32px; }
.form-check-input { width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--muted-700); border-radius: 0; background-color: var(--white); }
.form-check-input[type="checkbox"] { border-radius: 0; }  /* у Bootstrap .25em и селектор сильнее */
.form-check-input:checked { border-color: var(--brand-500); background-color: var(--brand-500); }
.form-check-input:focus { border-color: var(--brand-500); box-shadow: none; }
.form-check-label { font-size: 0.875rem; line-height: 1.45; }
.form-error { margin-top: 6px; font-size: 0.8125rem; line-height: 1.4; color: var(--danger-600); }
.form-error:empty { display: none; }
.form-message { margin-top: 20px; font-size: 1rem; line-height: 1.5; font-weight: 550; }
.form-message:empty { display: none; }
.form-message--success { color: var(--success-700); }
.form-message--error { color: var(--danger-600); }
form.is-sent .cta-form__grid,
form.is-sent .cta-form__bottom,
form.is-sent .lead-dialog__grid,
form.is-sent .lead-dialog__agree,
form.is-sent .lead-dialog__submit,
form.is-sent [data-formit-validation-error-message] { display: none; }
.formit-loading [type="submit"] { opacity: 0.65; }

/* ── 19. Модальные окна: заявка ────────────────────────────────────────── */
.modal {
  --bs-modal-width: 520px;
  --bs-modal-border-width: 0;
  --bs-modal-border-radius: 0;
  --bs-modal-box-shadow: var(--shadow-modal);
  --bs-modal-padding: 0;
}
.modal-backdrop { --bs-backdrop-bg: #1E1E1E; --bs-backdrop-opacity: 0.9; }
.modal-content { box-shadow: var(--bs-modal-box-shadow); }
.lead-dialog__body { padding: clamp(3.5rem, 3.277rem + 0.915vw, 4.375rem) clamp(1.25rem, 0.8039rem + 1.83vw, 3rem) clamp(1.875rem, 1.588rem + 1.176vw, 3rem); }
.lead-dialog__title { font-size: clamp(1.5rem, 1.373rem + 0.5229vw, 2rem); text-align: center; }
.lead-dialog__text { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; text-align: center; color: var(--muted-700); }
.lead-dialog__form { margin-top: 26px; }
.lead-dialog__grid { display: grid; gap: 14px; }
.lead-dialog__agree { margin-top: 20px; }
.lead-dialog__submit { margin-top: 26px; text-align: center; }
.lead-dialog .form-message { text-align: center; }

/* ── 20. Подвал ────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line-100); }
.site-footer__top { display: grid; gap: 34px; padding-block: clamp(2.5rem, 2.245rem + 1.046vw, 3.5rem) clamp(1.875rem, 1.652rem + 0.915vw, 2.75rem); }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 992px) { .site-footer__top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 60px; } .site-footer__brand { grid-column: auto; } }
.site-footer__slogan { max-width: 380px; margin-top: 18px; font-size: clamp(0.875rem, 0.8431rem + 0.1307vw, 1rem); line-height: 1.55; color: var(--muted-700); }
.site-footer__title { margin-bottom: 18px; font-size: 1rem; }
.site-footer__list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 30px; }
.site-footer__item {padding-bottom: 12px;break-inside: avoid;line-height: 1.2;}
.site-footer__link { font-size: 0.875rem; color: var(--ink-900); }
.site-footer__link:hover { color: var(--brand-600); }
.site-footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer__phone { font-size: 1.25rem; font-weight: 550; color: var(--ink-900); }
.site-footer__phone:hover { color: var(--brand-600); }
.site-footer__callback { font-size: 0.875rem; }
.site-footer__email { font-size: 0.9375rem; font-weight: 550; color: var(--brand-600); }
.site-footer__email:hover { color: var(--brand-700); }
.site-footer__address { font-size: 0.875rem; line-height: 1.5; color: var(--muted-700); }
.site-footer__bottom { border-top: 1px solid var(--line-200); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px; padding-block: 22px; font-size: 0.875rem; }
.site-footer__docs { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer__legal { padding: 0; border: 0; background: none; font: inherit; color: var(--brand-600); }
.site-footer__legal:hover { color: var(--brand-700); }

/* ── 21. «Наверх» ──────────────────────────────────────────────────────── */
.scroll-top { position: fixed; z-index: var(--z-float); left: 20px; bottom: 20px; opacity: 0; visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-standard), visibility var(--duration-base), background-color var(--duration-slow) var(--ease-standard); }
.scroll-top.is-visible { opacity: 1; visibility: visible; }

/* ── Уведомление о cookie: белая плашка у низа окна до выбора; «Наверх» (в DOM следом) на это время прячется —
   иначе на телефоне закрывает кнопку ─ */
.cookie-bar { position: fixed; z-index: var(--z-float); inset: auto 0 0; padding-block: 20px; background: var(--white);
  box-shadow: var(--shadow-float); transform: translateY(100%); visibility: hidden;
  transition: transform var(--duration-base) var(--ease-out-soft), visibility var(--duration-base); }
/* показ — видимость сразу (иначе кнопке не дать фокус из «Настроек cookie»), скрытие — после выезда */
.cookie-bar.is-visible { transform: none; visibility: visible; transition: transform var(--duration-base) var(--ease-out-soft); }
.cookie-bar.is-visible ~ .scroll-top { opacity: 0; visibility: hidden; }
.cookie-bar__inner { display: flex; flex-direction: column; gap: 15px; }
.cookie-bar__text { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-900); }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-bar__btn { flex: 1 1 auto; }
@media (min-width: 768px) {
  .cookie-bar__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; }
  .cookie-bar__text { max-width: 820px; font-size: 0.875rem; }
  .cookie-bar__actions { flex: none; flex-wrap: nowrap; }
  .cookie-bar__btn { flex: none; }
}

/* ── 22. Лайтбокс (GLightbox) ──────────────────────────────────────────── */
.goverlay { background: rgba(30, 30, 30, 0.92); }
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev { border-radius: 0; background-color: var(--brand-600); }
.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover { background-color: var(--brand-700); }
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gdesc-inner { padding: 14px 0 0; }
.glightbox-clean .gslide-title { margin: 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 550; color: var(--white); }
.gslide-image img { box-shadow: none; }

/* ── 23. Внутренние страницы: крошки ───────────────────────────────────── */
.page-crumbs { padding-block: clamp(1.5rem, 1.245rem + 1.046vw, 2.5rem) 20px; }
.page-crumbs--bordered { border-bottom: 1px solid var(--line-100); }
.page-crumbs .breadcrumb {
  --bs-breadcrumb-margin-bottom: 0;
  --bs-breadcrumb-font-size: 0.875rem;
  --bs-breadcrumb-item-padding-x: 12px;
  --bs-breadcrumb-divider: "–";
  --bs-breadcrumb-divider-color: var(--muted-700);
  --bs-breadcrumb-item-active-color: var(--muted-700);
  line-height: 1.4;
}
.page-crumbs a { color: var(--muted-700); }
.page-crumbs a:hover { color: var(--brand-600); }

/* Страница поиска: поле + «Найти», список результатов с отрывком; совпадения — <mark class="search-hl"> */
.search-page__form { display: flex; gap: 12px; max-width: 760px; margin-bottom: clamp(1.625rem, 1.402rem + 0.915vw, 2.5rem); }
.search-page__form .form-control { flex: 1; min-width: 0; }
.search-page__info { margin-bottom: 20px; color: var(--muted-700); }
.search-page__info[data-query=""] { display: none; }
.search-results { max-width: 960px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-100); }
.search-result { padding: clamp(1rem, 0.8725rem + 0.5229vw, 1.5rem) 0; border-bottom: 1px solid var(--line-100); }
.search-result__title { font-size: clamp(1.062rem, 1.015rem + 0.1961vw, 1.25rem); line-height: 1.35; font-weight: 550; color: var(--ink-900); }
.search-result__title:hover { color: var(--brand-600); }
.search-result__extract { margin: 8px 0 0; font-size: clamp(0.875rem, 0.8431rem + 0.1307vw, 1rem); line-height: 1.6; color: var(--muted-700); }
.search-hl { padding: 0 2px; background: rgba(5, 80, 140, 0.12); color: var(--ink-900); }
.search-page__paging { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ── 24. Строка-ссылка ─────────────────────────────────────────────────── */
/* LinkRow: строка-ссылка со стрелкой между линиями */
.link-row { display: flex; align-items: center; gap: 62px; padding: 40px 0 40px clamp(0rem, -8.017rem + 12.93vw, 7.5rem); border-top: 1px solid var(--line-100);
  border-bottom: 1px solid var(--line-100); color: var(--ink-900); transition: color var(--duration-slow) var(--ease-standard), border-color var(--duration-slow) var(--ease-standard); }
.link-row__arrow { display: none; width: 28px; height: 28px; stroke-width: 1.7; }
.link-row__text { font-size: clamp(1.25rem, 1.154rem + 0.3922vw, 1.625rem); line-height: 1.3; font-weight: 550; }
.link-row__arrow,
.link-row__text { transition: transform var(--duration-slow) var(--ease-standard); }
.link-row:hover { color: var(--brand-600); border-bottom-color: var(--brand-500); }
.link-row:hover .link-row__arrow,
.link-row:hover .link-row__text { transform: translateX(30px); }
@media (min-width: 992px) { .link-row__arrow { display: block; } }

/* ── 25. Сокращённое движение ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1199px){
    .topbar__contacts a[href*="yandex.ru/maps"] {display:none}
}

@media (min-width: 992px){
    .site-footer__top{
        grid-template-columns: minmax(0, 1.3fr) minmax(0, .55fr) minmax(0, 1.25fr) minmax(0, 1fr);
        gap: 44px;
    }
    .site-footer__brand{grid-column: auto}

    .site-footer__list--wide .site-footer__item{break-inside: avoid}
}
.site-footer__title-link{color:inherit}
.site-footer__title-link:hover{color:var(--brand-600)}
.site-footer__list{columns: 1}

/* Desktop dropdown */
.main-nav__item{position:relative}
.main-nav__item--has-sub > .main-nav__link{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.main-nav__caret{opacity:.6;transition:transform .2s ease}
.main-nav__item--has-sub:hover .main-nav__caret,
.main-nav__item--has-sub:focus-within .main-nav__caret{transform:rotate(180deg)}

.main-nav__submenu{
    position:absolute;
    top:100%;
    left:50%;
    transform:translate(-50%, 8px);
    min-width: 300px;
    padding:12px;
    overflow-y: auto;
    max-height: 600px;
    background:#fff;
    border:1px solid var(--line-100);
    box-shadow:0 20px 48px -16px rgba(14,42,71,.22), 0 8px 16px -8px rgba(14,42,71,.14);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index:60;
}
.main-nav__item--has-sub:hover > .main-nav__submenu,
.main-nav__item--has-sub:focus-within > .main-nav__submenu{
    opacity:1; visibility:visible; pointer-events:auto;
    transform:translate(-50%, 0);
}
/* невидимый мостик между линком и подменю, чтобы hover не рвался */
.main-nav__submenu::before{
    content:""; position:absolute; top:-10px; left:0; right:0; height:10px;
}
.main-nav__sublist{list-style:none; margin:0; padding:0}
.main-nav__subitem + .main-nav__subitem{margin-top:2px}
.main-nav__sublink{
    display:block; padding:10px 14px;
    font-size:.9375rem; line-height:1.3;
    color:var(--ink-900); border-radius:8px;
    transition:background .15s ease, color .15s ease;
}
.main-nav__sublink:hover,
.main-nav__sublink:focus-visible{background:var(--muted-100, #f5f7fa); color:var(--brand-600)}

/* Mobile accordion in menu-drawer */
.menu-drawer__row{display:flex; align-items:center; justify-content:space-between; gap:8px}
.menu-drawer__toggle{
    display:grid; place-items:center;
    width:40px; height:40px; padding:0;
    background:transparent; border:0; cursor:pointer;
    color:var(--ink-900); flex-shrink:0;
}
.menu-drawer__toggle svg{transition:transform .2s ease; opacity:.7}
.menu-drawer__toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.menu-drawer__sublist{
    list-style:none;
    margin:4px 0 10px;
    padding: 0;
    /* border-left:1px solid var(--line-100); */
    }
.menu-drawer__sublist[hidden]{display:none}
.menu-drawer__sublink{display:block; padding:8px 12px; font-size:.9375rem; color:var(--ink-900); border-radius:6px}
.menu-drawer__sublink:hover,
.menu-drawer__sublink:focus-visible{background:var(--muted-100, #f5f7fa); color:var(--brand-600)}


