/* =========================================================================
   СанТехПлейс — дизайн-система
   Палитра: холодная бумага + чернила + петрольный акцент бренда
   ========================================================================= */

/* Onest — переменный шрифт с настоящей кириллицей, лежит у нас же на сервере:
   без обращений к Google и без подмены на системный шрифт в русском тексте.
   Подключены три поднабора: кириллица, латиница и знаки валют (в latin-ext
   живёт знак рубля ₽, он нужен в ценах). */
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  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: "Onest";
  src: url("../fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Тёмная тема: камень + металл. Иерархия поверхностей сохранена такой же,
     как была в светлой версии (mist темнее paper темнее snow темнее white),
     просто вся шкала сдвинута в тёмный конец. */
  --paper: #121517;
  --mist: #0c0e10;
  --snow: #191c1f;
  --white: #202327;

  --ink: #f2f3f4;
  --ink-soft: #c7cbce;
  --mute: #9a9ea3;

  /* Всегда тёмная «броня» интерфейса — CTA, тёмные карточки, кнопки-инверсии.
     Держим её отдельно от --ink, чтобы текст на них (зашитый светлым цветом)
     не переставал читаться, если --ink когда-нибудь снова станет тёмным. */
  --panel: #14171a;

  /* Петроль осветлён для контраста на тёмном фоне — тот же оттенок, что и
     на светлой версии, просто светлее настолько, чтобы читаться как текст */
  --brand: #3273e0;
  --brand-deep: #1c4fb8;
  --brand-soft: #86adf2;
  --brand-tint: rgba(50, 115, 224, 0.16);

  /* Латунный акцент — используется точечно: звёзды отзывов, редкие премиум-детали.
     Перекликается с латунной арматурой, которую мы монтируем. */
  --brass: #cd9c52;
  --brass-soft: rgba(205, 156, 82, 0.18);

  --wa: #1fa851;
  --danger: #ff8c82;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --header: 88px;
  --max: 1280px;

  /* Тени тонированы в петрольный и уходят в почти чёрный — на тёмном фоне
     карточки отделяются от поверхности глубиной, а не светлым бликом */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.34), 0 24px 54px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);

  --z-grain: 1;
  --z-dock: 30;
  /* Оверлей меню перекрывает контент и док, но остаётся под шапкой,
     чтобы кнопка закрытия всегда была доступна */
  --z-overlay: 35;
  --z-nav: 40;
  --z-modal: 60;
  --z-skip: 80;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
  -webkit-text-size-adjust: 100%;
  /* У сайта свои анимации нажатия — системная вспышка на Android (её нет
     на iOS) отключена, чтобы тап выглядел одинаково на обеих платформах */
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Мелкое зерно поверх фонов, но ниже навигации и модалки */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
picture {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* Атрибут hidden должен работать и на элементах с display из макета */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* На тёмном и на фотографии петрольная рамка не видна — светлим её */
.hero :focus-visible,
.on-dark :focus-visible,
.modal__box :focus-visible,
.footer :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: var(--z-skip);
  background: var(--ink);
  color: var(--snow);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------------------------------------------------------------- сетка */

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.container--wide {
  width: min(calc(100% - 32px), 1440px);
  margin: 0 auto;
}

.section {
  padding: 128px 0 132px;
  position: relative;
}

.section--mist {
  background: var(--mist);
}

.section--snow {
  background: var(--snow);
}

.section--tight {
  padding-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head p {
  color: var(--mute);
  max-width: 38ch;
}

.section-head--center {
  grid-template-columns: 1fr;
  justify-items: start;
}

/* ---------------------------------------------------------------- типографика */

h1,
h2,
h3,
.display,
.quote {
  letter-spacing: -0.04em;
  line-height: 1.07;
  font-weight: 560;
  text-wrap: balance;
}

.display,
h1 {
  font-size: clamp(38px, 6.4vw, 78px);
}

h2 {
  font-size: clamp(30px, 4.2vw, 54px);
}

h3 {
  font-size: clamp(21px, 2.1vw, 28px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 1px solid rgba(50, 115, 224, 0.14);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.lead {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--mute);
  max-width: 42ch;
  line-height: 1.5;
}

.muted {
  color: var(--mute);
}

.nowrap {
  white-space: nowrap;
}

/* ---------------------------------------------------------------- шапка */

.header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.header__island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(20, 23, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.06),
    0 8px 30px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  backdrop-filter: saturate(170%) blur(20px);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

body.is-scrolled .header__island {
  background: rgba(20, 23, 26, 0.88);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 10px 34px rgba(0, 0, 0, 0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 15px;
  color: var(--ink);
  flex-shrink: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
  color: var(--ink);
  flex-shrink: 0;
}

.logo__mark--img {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav a[aria-current="page"] {
  color: var(--panel);
  background: var(--ink);
}

.nav a[aria-current="page"]:hover {
  background: var(--ink);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--brand);
  background: var(--brand-tint);
  transition: background 0.35s var(--ease);
}

.header__phone:hover {
  background: rgba(50, 115, 224, 0.14);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  flex-shrink: 0;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease), opacity 0.3s;
}

.burger span { top: 21px; }
.burger::before { top: 16px; }
.burger::after { top: 26px; }

body.menu-open .burger span { opacity: 0; }
body.menu-open .burger::before { top: 21px; transform: rotate(45deg); }
body.menu-open .burger::after { top: 21px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 8px 6px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.015em;
  text-align: left;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
    color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

.btn--sm {
  min-height: 40px;
  font-size: 13.5px;
  padding-left: 16px;
}

.btn--sm .btn__icon {
  width: 28px;
  height: 28px;
}

.btn--ink {
  background: var(--ink);
  color: var(--snow);
  box-shadow: var(--shadow-sm);
}

.btn--ink:hover {
  background: #000;
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 26px rgba(50, 115, 224, 0.24);
}

.btn--accent:hover {
  background: var(--brand-deep);
}

/* Кнопка «на тёмном» — всегда светлая, независимо от темы страницы:
   она нужна там, где под ней фото или другой тёмный блок */
.btn--light {
  background: #fff;
  color: #14171a;
  box-shadow: var(--shadow-md);
}

.btn--light .btn__icon {
  background: rgba(22, 23, 26, 0.07);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  padding-right: 20px;
}

.btn--outline:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
  padding-right: 20px;
}

.btn--wa:hover {
  background: #11642e;
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  min-height: auto;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(50, 115, 224, 0.28);
  border-radius: 0;
  gap: 8px;
}

.btn--ghost .btn__icon {
  width: 22px;
  height: 22px;
  background: none;
}

.btn--ghost:hover {
  color: var(--brand-deep);
  border-bottom-color: var(--brand);
  transform: none;
}

.btn--block {
  width: 100%;
  justify-content: space-between;
}

/* На тёмном фоне — «жидкое стекло»: блюр + блик по верхнему краю,
   как на выпуклой стеклянной поверхности */
.on-dark .btn--outline,
.hero .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(12, 14, 18, 0.45);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -14px 20px -14px rgba(255, 255, 255, 0.12),
    0 10px 26px rgba(0, 0, 0, 0.28);
}

.on-dark .btn--outline:hover,
.hero .btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.on-dark .btn--ghost,
.hero .btn--ghost {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* ---------------------------------------------------------------- крошки */

.crumbs {
  margin-bottom: 22px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--mute);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.crumbs a:hover {
  color: var(--brand);
}

.crumbs li[aria-current] {
  color: var(--ink-soft);
}

.hero__content .crumbs ol {
  color: rgba(255, 255, 255, 0.68);
}

.hero__content .crumbs li[aria-current] {
  color: #fff;
}

.hero__content .crumbs li + li::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------------------- герой */

.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header) + 56px) 0 72px;
  text-align: center;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Фото остаётся узнаваемым — лёгкое размытие и затемнение, без полной
     абстракции; запас масштаба нужен, чтобы блюр не съедал края */
  filter: blur(1px) brightness(0.82);
  transform: scale(1.08);
  animation: heroZoom 26s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1.02); }
}

.hero__content {
  max-width: 720px;
  margin: 0 auto;
}

.hero__content .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.hero__content .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Контент теперь по центру — просто равномерно притемняем фото,
     без сетки и колонки под текст слева */
  background: radial-gradient(120% 100% at 50% 40%, rgba(8, 10, 12, 0.45) 0%, rgba(8, 10, 12, 0.68) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #f6f7f8;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.hero .eyebrow::before {
  background: var(--brand-soft);
}

.hero__content h1 {
  max-width: 24ch;
  margin: 0 auto 18px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  text-wrap: initial;
  /* Обе строки делят один левый край — блок остаётся по центру страницы,
     но сам текст не «прыгает» между строками разной длины */
  text-align: left;
}

.hero__content .lead {
  color: rgba(246, 247, 248, 0.86);
  margin-bottom: 30px;
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hero__cta-note {
  font-size: 13px;
  color: rgba(246, 247, 248, 0.8);
  margin-bottom: 44px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 860px;
}

.hero__meta b {
  display: block;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.hero__meta span {
  font-size: 13px;
  color: rgba(246, 247, 248, 0.66);
  line-height: 1.35;
  display: block;
}

.hero--service {
  min-height: min(72svh, 720px);
  padding-bottom: 56px;
}

.hero--service h1 {
  max-width: 20ch;
}

/* ---------------------------------------------------------------- чек-лист */

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15.5px;
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--brand);
}

/* ---------------------------------------------------------------- доверие */

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust__card {
  background: var(--white);
  border-radius: 24px;
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.trust__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust__card svg {
  color: var(--brand);
  margin-bottom: 18px;
}

.trust__card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.trust__card p {
  color: var(--mute);
  font-size: 14.5px;
  max-width: 32ch;
}

/* ---------------------------------------------------------------- услуги */

.services-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: 268px;
  gap: 14px;
}

/* Каталог услуг: первая карточка шире, последняя — приглашение написать */
.services-grid--catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 292px;
}

.services-grid--catalog > *:first-child {
  grid-column: span 2;
}

.bezel {
  padding: 6px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  isolation: isolate;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.service-card--tall {
  grid-row: span 2;
}

.service-card picture {
  position: absolute;
  inset: 0;
  display: block;
  z-index: -2;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.1) 0%, transparent 34%, rgba(10, 12, 14, 0.82) 100%);
  z-index: -1;
}

.service-card:hover img,
.service-card:focus-visible img {
  transform: scale(1.06);
}

.service-card small {
  position: absolute;
  top: 24px;
  left: 26px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
}

.service-card h3 {
  font-size: clamp(20px, 1.9vw, 25px);
  max-width: 20ch;
}

.service-card__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
}

.service-card:hover .service-card__go {
  color: #fff;
}

.service-more {
  border-radius: 26px;
  min-height: 100%;
  padding: 28px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.service-more p {
  color: var(--mute);
  font-size: 17px;
  max-width: 24ch;
}

/* ---------------------------------------------------------------- цифры */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.adv-card {
  background: var(--white);
  border-radius: 26px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 230px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.adv-card:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.adv-card:nth-child(2) { grid-column: span 7; }
.adv-card:nth-child(3) { grid-column: span 3; }
.adv-card:nth-child(4) { grid-column: span 4; }

.adv-card--feature {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(70, 130, 230, 0.28), transparent 55%),
    var(--panel);
  color: #f4f5f7;
}

.adv-card--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 100% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 100% 0%, #000 40%, transparent 100%);
}

.adv-card--feature > * {
  position: relative;
  z-index: 1;
}

.adv-card em {
  font-style: normal;
  display: block;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.045em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  line-height: 1;
  white-space: nowrap;
}

.adv-card--feature em {
  color: var(--brand-soft);
}

.adv-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.adv-card p {
  color: var(--mute);
  font-size: 14.5px;
  max-width: 44ch;
}

.adv-card--feature p {
  color: rgba(247, 248, 250, 0.66);
}

/* ---------------------------------------------------------------- работы */

.rail-wrap {
  position: relative;
}

.works-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(288px, 352px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.works-rail::-webkit-scrollbar {
  display: none;
}

.rail-nav {
  display: flex;
  gap: 8px;
}

.section-head .rail-nav {
  justify-self: end;
}

.rail-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), opacity 0.35s;
}

.rail-nav button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--snow);
}

.rail-nav button[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.work-card {
  scroll-snap-align: start;
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.work-card__media {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.work-card img {
  width: 100%;
  height: 252px;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 550;
  color: #14171a;
}

.work-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.work-card h3 {
  font-size: 19px;
}

.work-card p {
  color: var(--mute);
  font-size: 14px;
  flex: 1;
}

.work-card__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--brand);
  margin-top: 4px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.works-grid .work-card img {
  height: 268px;
}

/* Страница объекта */
.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.case-fact {
  background: var(--white);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.5s var(--ease);
}

.case-fact:hover {
  box-shadow: var(--shadow-md);
}

.case-fact small {
  display: block;
  color: var(--mute);
  font-size: 12.5px;
  margin-bottom: 6px;
}

.case-fact b {
  font-size: 19px;
  letter-spacing: -0.03em;
  font-weight: 560;
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.case-body p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 62ch;
}

.case-body h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 32px 0 14px;
}

.case-body ul {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.case-body li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}

.case-body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.case-aside {
  position: sticky;
  top: calc(var(--header) + 24px);
  background: var(--white);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.case-aside h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.case-aside p {
  color: var(--mute);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- цены-тизер */

.price-teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.price-teaser__card {
  background: var(--white);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.5s var(--ease);
}

.price-teaser__card:hover {
  box-shadow: var(--shadow-md);
}

.price-teaser__card--dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 0% 100%, rgba(70, 130, 230, 0.24), transparent 55%),
    var(--panel);
  color: #f4f5f7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.price-teaser__card--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 0% 100%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 0% 100%, #000 40%, transparent 100%);
}

.price-teaser__card--dark > * {
  position: relative;
  z-index: 1;
}

.price-teaser__card--dark p {
  color: rgba(247, 248, 250, 0.68);
  max-width: 34ch;
}

.price-list {
  display: grid;
  gap: 2px;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.price-list li:last-child {
  border-bottom: 0;
}

.price-list b {
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-list span {
  color: var(--ink-soft);
}

.price-teaser__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.price-teaser__foot p {
  color: var(--mute);
  font-size: 14px;
  max-width: 30ch;
}

.packages {
  display: grid;
  gap: 16px;
}

.package {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.package:first-child {
  border-top: 0;
  padding-top: 0;
}

.package h3 {
  font-size: 19px;
}

.package b {
  font-size: 21px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.package p {
  grid-column: 1 / -1;
  color: rgba(247, 248, 250, 0.6);
  font-size: 14px;
  max-width: 46ch;
}

/* ---------------------------------------------------------------- процесс */

.process {
  display: grid;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line-strong);
}

.process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 26px 0;
  transition: background 0.4s var(--ease);
}

.process-item b {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line-strong);
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.process-item:hover b {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.process-item h3 {
  font-size: 21px;
  margin-bottom: 6px;
  padding-top: 12px;
}

.process-item p {
  color: var(--mute);
  max-width: 64ch;
}

/* ---------------------------------------------------------------- о нас */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 26px;
}

/* ---------------------------------------------------------------- аннотации на фото */

.annotate {
  position: relative;
}

.annotate__point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

.annotate__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-soft);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(50, 115, 224, 0.28);
  animation: annotatePulse 2.6s ease-in-out infinite;
}

@keyframes annotatePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(50, 115, 224, 0.28); }
  50% { box-shadow: 0 0 0 9px rgba(50, 115, 224, 0.12); }
}

.annotate__line {
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.annotate__label {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 23, 26, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

@media (max-width: 680px) {
  .annotate__label {
    white-space: normal;
    max-width: 46vw;
  }
}

.quote {
  font-size: clamp(26px, 3.2vw, 42px);
  max-width: 18ch;
  margin-bottom: 18px;
}

.split .btn {
  margin-top: 26px;
}

/* ---------------------------------------------------------------- цены */

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}

.price-table th {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 550;
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}

.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.price-group {
  margin-top: 44px;
  scroll-margin-top: calc(var(--header) + 24px);
}

.price-group h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin-bottom: 6px;
}

.price-group__note {
  color: var(--mute);
  font-size: 14px;
  margin-bottom: 18px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tab {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 550;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.tab:hover {
  border-color: var(--line-strong);
}

.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--snow);
}

.panel[hidden] {
  display: none;
}

.price-note {
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: 22px;
  background: var(--brand-tint);
  border: 1px solid rgba(50, 115, 224, 0.14);
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 78ch;
}

/* ---------------------------------------------------------------- тарифы */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 28px 28px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan--featured {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(70, 130, 230, 0.28), transparent 55%),
    var(--panel);
  border-color: var(--brand);
  color: #f4f5f7;
}

.plan__badge {
  position: absolute;
  top: 0;
  right: 28px;
  transform: translateY(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.plan__name {
  font-size: 21px;
  margin-bottom: 4px;
}

.plan__desc {
  color: var(--mute);
  font-size: 14px;
}

.plan--featured .plan__desc {
  color: rgba(244, 245, 247, 0.66);
}

.plan__price {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan__list {
  display: grid;
  gap: 12px;
  flex: 1;
}

.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.plan--featured .plan__list li {
  color: rgba(244, 245, 247, 0.86);
}

.plan__list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand);
}

.plan--featured .plan__list svg {
  color: var(--brand-soft);
}

.plans__note {
  color: var(--mute);
  font-size: 13.5px;
}

/* ---------------------------------------------------------------- отзывы */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.review {
  background: var(--white);
  border-radius: 26px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review__stars {
  display: flex;
  gap: 3px;
  color: var(--brass);
}

.review p {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  flex: 1;
}

.review footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--mute);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.review__who {
  color: var(--ink);
  font-weight: 550;
}

.review__obj {
  display: block;
  color: var(--mute);
  font-weight: 400;
  font-size: 12.5px;
}

/* ---------------------------------------------------------------- вопросы */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  background:
    linear-gradient(var(--brand), var(--brand)) center/11px 1.5px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center/1.5px 11px no-repeat;
  transition: transform 0.4s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
  background: linear-gradient(var(--brand), var(--brand)) center/11px 1.5px no-repeat;
}

.faq-item p {
  color: var(--mute);
  padding-bottom: 24px;
  max-width: 54ch;
}

/* ---------------------------------------------------------------- заявка */

.cta-shell {
  padding: 8px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

/* Мягкое жидкое пятно за блоком заявки — дышит и медленно меняет форму,
   но не мешает читать текст: сильно размыто и почти прозрачно */
.blob {
  position: absolute;
  top: -140px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(50, 115, 224, 0.4), rgba(50, 115, 224, 0) 68%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: blobMorph 16s ease-in-out infinite alternate;
}

@keyframes blobMorph {
  0% {
    border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
    transform: scale(1) rotate(0deg);
  }
  50% {
    border-radius: 60% 40% 35% 65% / 55% 65% 35% 45%;
    transform: scale(1.1) rotate(8deg);
  }
  100% {
    border-radius: 38% 62% 55% 45% / 60% 35% 65% 40%;
    transform: scale(1) rotate(-6deg);
  }
}

.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(70, 130, 230, 0.22), transparent 55%),
    var(--panel);
  color: #f4f5f7;
  border-radius: 28px;
  padding: 52px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

/* Едва заметная сетка, затухающая к краям — глубина без лишнего шума */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta .lead {
  color: rgba(244, 245, 247, 0.7);
  margin-top: 14px;
}

.cta .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(244, 245, 247, 0.9);
}

.cta .eyebrow::before {
  background: var(--brand-soft);
}

.cta__perks {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.cta__perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(244, 245, 247, 0.8);
}

.cta__perks svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand-soft);
}

.cta__alt {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: rgba(244, 245, 247, 0.66);
}

.cta__alt a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---------------------------------------------------------------- формы */

.form__fields {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 12.5px;
  color: rgba(244, 245, 247, 0.6);
  letter-spacing: 0.01em;
}

.field__opt {
  color: rgba(244, 245, 247, 0.56);
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand-soft);
  background: rgba(255, 255, 255, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 88px;
}

.field__trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.field__error {
  display: none;
  font-size: 12.5px;
  color: #ff9c94;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #ff9c94;
}

.field.has-error .field__error {
  display: block;
}

.policy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: rgba(244, 245, 247, 0.6);
  cursor: pointer;
}

.policy input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--brand-soft);
}

.policy a {
  color: rgba(244, 245, 247, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__submit {
  margin-top: 6px;
  width: 100%;
  justify-content: space-between;
}

.form__note {
  font-size: 12px;
  color: rgba(244, 245, 247, 0.58);
  text-align: center;
}

.form.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.form__state {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.form__state-title {
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.form__state-text {
  color: rgba(244, 245, 247, 0.7);
  font-size: 14.5px;
}

.form__state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.form__state [data-state-retry] {
  margin-top: 18px;
  color: rgba(244, 245, 247, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Светлый вариант формы */
.form--light .field label {
  color: var(--mute);
}

.form--light .field__opt {
  color: var(--mute);
}

.form--light .field input,
.form--light .field textarea {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink);
}

.form--light .field input::placeholder,
.form--light .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form--light .field input:focus,
.form--light .field textarea:focus {
  border-color: var(--brand);
  background: var(--white);
}

.form--light .policy,
.form--light .form__note {
  color: var(--mute);
}

.form--light .policy a {
  color: var(--ink);
}

.form--light .field__error {
  color: var(--danger);
}

.form--light .field.has-error input,
.form--light .field.has-error textarea {
  border-color: var(--danger);
}

.form--light .form__state {
  background: var(--brand-tint);
  border-color: rgba(50, 115, 224, 0.16);
}

.form--light .form__state-text {
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- контакты */

.contacts-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.5s var(--ease);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-card__row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card__row:first-of-type {
  padding-top: 0;
}

.contact-card small {
  display: block;
  color: var(--mute);
  font-size: 12.5px;
  margin-bottom: 4px;
}

.contact-card a,
.contact-card p {
  font-size: 18px;
  letter-spacing: -0.025em;
  display: block;
}

.contact-card a:hover {
  color: var(--brand);
}

.contact-card__actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.map {
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  background: var(--mist);
  box-shadow: var(--shadow-sm);
}

.map > div,
.map iframe {
  width: 100%;
  min-height: 480px;
  border: 0;
}

.page-hero {
  padding: calc(var(--header) + 64px) 0 52px;
}

.page-hero .lead {
  margin-top: 16px;
}

/* ---------------------------------------------------------------- футер */

.footer {
  padding: 84px 0 24px;
  background: var(--snow);
  border-top: 1px solid var(--line);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 1.1fr;
  gap: 48px 40px;
  padding-bottom: 48px;
}

.footer__about {
  color: var(--mute);
  font-size: 14px;
  max-width: 36ch;
  margin: 18px 0 22px;
}

.footer__title {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 550;
  margin-bottom: 16px;
}

.footer__list {
  display: grid;
  gap: 11px;
}

.footer__list a,
.footer__contacts a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.footer__list a:hover,
.footer__contacts a:hover {
  color: var(--brand);
}

.footer__contacts {
  display: grid;
  gap: 12px;
}

.footer__contacts li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer__contacts svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand);
}

.footer__cta p {
  color: var(--mute);
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 30ch;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 12.5px;
}

.footer__bottom a:hover {
  color: var(--brand);
}

/* ---------------------------------------------------------------- мобильное меню */

.mobile-nav {
  display: none;
}

/* ---------------------------------------------------------------- модалка */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: fade 0.35s var(--ease);
}

.modal__box {
  position: relative;
  width: min(100%, 468px);
  margin: auto;
  background: #17181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 34px 30px 30px;
  color: #f4f5f7;
  box-shadow: var(--shadow-lg), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  animation: pop 0.45s var(--ease);
}

.modal__box .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(244, 245, 247, 0.9);
  margin-bottom: 14px;
}

.modal__box .eyebrow::before {
  background: var(--brand-soft);
}

.modal__box h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.modal__lead {
  font-size: 14.5px;
  color: rgba(244, 245, 247, 0.64);
  margin-bottom: 24px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.3s var(--ease);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modal__alt {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  color: rgba(244, 245, 247, 0.6);
  text-align: center;
}

.modal__alt a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}

/* ---------------------------------------------------------------- быстрая связь */

.dock {
  display: none;
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--z-dock);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 14px 34px rgba(23, 128, 60, 0.34);
  transition: transform 0.4s var(--ease);
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

.wa-float:hover {
  transform: scale(1.06);
}

/* ---------------------------------------------------------------- юр. текст */

.legal {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 80ch;
}

.legal h2,
.legal h3 {
  margin: 34px 0 12px;
  font-size: 22px;
  color: var(--ink);
}

.legal p,
.legal li {
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 18px;
  list-style: disc;
}

/* ---------------------------------------------------------------- анимации */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.js .reveal[data-delay="1"] { transition-delay: 0.07s; }
.js .reveal[data-delay="2"] { transition-delay: 0.14s; }
.js .reveal[data-delay="3"] { transition-delay: 0.21s; }

/* ---------------------------------------------------------------- адаптив */

@media (max-width: 1180px) {
  .nav {
    gap: 15px;
  }

  .nav a {
    font-size: 13px;
  }

  .header__phone-num {
    display: none;
  }

  .header__phone {
    padding: 0 11px;
  }
}

@media (max-width: 1080px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer__cta {
    grid-column: 1 / -1;
  }

  .case-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .case-aside {
    position: static;
  }
}

@media (max-width: 980px) {
  :root {
    --header: 76px;
  }

  .nav {
    display: none;
  }

  .header__island {
    width: calc(100% - 28px);
    justify-content: space-between;
    gap: 12px;
  }

  .header__actions .btn--sm {
    display: none;
  }

  .header__phone {
    height: 44px;
    padding: 0 14px;
  }

  .header__phone-num {
    display: inline;
    font-size: 13px;
  }

  .burger {
    display: block;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(14, 17, 19, 0.94);
    -webkit-backdrop-filter: blur(26px);
    backdrop-filter: blur(26px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    overflow-y: auto;
  }

  body.menu-open .mobile-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav__inner {
    padding: calc(var(--header) + 34px) 28px 40px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .mobile-nav__list {
    display: grid;
  }

  .mobile-nav__list a {
    display: block;
    font-size: clamp(26px, 7vw, 34px);
    letter-spacing: -0.04em;
    padding: 9px 0;
    font-weight: 560;
  }

  .mobile-nav__label {
    margin: 26px 0 12px;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
  }

  .mobile-nav__sub {
    display: grid;
    gap: 9px;
    padding-bottom: 28px;
  }

  .mobile-nav__sub a {
    font-size: 15px;
    color: var(--ink-soft);
  }

  .mobile-nav__foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
  }

  .mobile-nav__foot .btn {
    justify-content: center;
  }

  body.menu-open .mobile-nav__list a,
  body.menu-open .mobile-nav__sub a {
    animation: riseIn 0.55s var(--ease) backwards;
  }

  body.menu-open .mobile-nav__list a { animation-delay: 0.06s; }
  body.menu-open .mobile-nav__list li:nth-child(2) a { animation-delay: 0.1s; }
  body.menu-open .mobile-nav__list li:nth-child(3) a { animation-delay: 0.14s; }
  body.menu-open .mobile-nav__list li:nth-child(4) a { animation-delay: 0.18s; }
  body.menu-open .mobile-nav__list li:nth-child(5) a { animation-delay: 0.22s; }
  body.menu-open .mobile-nav__list li:nth-child(6) a { animation-delay: 0.26s; }

  @keyframes riseIn {
    from { opacity: 0; transform: translateY(16px); }
  }

  .section {
    padding: 84px 0 92px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 240px;
  }

  .services-grid--catalog {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid--catalog > *:first-child {
    grid-column: span 2;
  }

  .service-card--tall {
    grid-row: span 2;
  }

  .adv-card:nth-child(1) { grid-column: span 12; grid-row: auto; }
  .adv-card:nth-child(2) { grid-column: span 12; }
  .adv-card:nth-child(3) { grid-column: span 6; }
  .adv-card:nth-child(4) { grid-column: span 6; }

  .checklist,
  .trust,
  .works-grid,
  .reviews,
  .split,
  .cta,
  .contacts-grid,
  .price-teaser,
  .plans,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    gap: 0;
  }

  .case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    gap: 32px;
  }

  .split img {
    height: 340px;
  }

  .cta {
    padding: 32px 24px;
    gap: 32px;
  }

  .price-teaser__card {
    padding: 28px 24px;
  }

  .footer {
    padding-bottom: 96px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .footer__cta {
    grid-column: 1 / -1;
  }

  /* Липкая панель связи */
  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-dock);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 30px rgba(22, 23, 26, 0.1);
    transform: translateY(110%);
    transition: transform 0.45s var(--ease);
  }

  body.is-scrolled .dock {
    transform: none;
  }

  body.menu-open .dock {
    transform: translateY(110%);
  }

  .dock__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 11px 4px 12px;
    background: rgba(20, 23, 26, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    font-size: 11.5px;
    font-weight: 550;
    color: var(--ink);
    min-height: 58px;
  }

  .dock__item svg {
    color: var(--brand);
  }

  .dock__item[data-goal="whatsapp"] svg {
    color: var(--wa);
  }

  .dock__item--accent {
    background: var(--ink);
    color: var(--snow);
  }

  .dock__item--accent svg {
    color: var(--snow);
  }

  .wa-float {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header) + 44px) 0 56px;
  }

  .hero__meta {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: space-between;
  }

  .modal__box {
    padding: 30px 22px 26px;
  }
}

@media (max-width: 680px) {
  .container,
  .container--wide {
    width: calc(100% - 40px);
  }

  /* На узких экранах «Инженерные системы,» не помещается в одну строку —
     переполнение по горизонтали хуже, чем перенос слова */
  .hero__content h1 .nowrap {
    white-space: normal;
  }

  .services-grid,
  .services-grid--catalog {
    grid-template-columns: 1fr;
    grid-auto-rows: 218px;
  }

  .service-card--tall,
  .services-grid--catalog > *:first-child {
    grid-row: auto;
    grid-column: auto;
  }

  .adv-card {
    padding: 26px 24px;
    min-height: 0;
    gap: 18px;
  }

  .adv-card:nth-child(3),
  .adv-card:nth-child(4) {
    grid-column: span 12;
  }

  .case-facts {
    grid-template-columns: 1fr;
  }

  .process-item {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .review,
  .contact-card,
  .trust__card {
    padding: 24px 22px;
  }

  .cta-shell {
    padding: 6px;
    border-radius: 28px;
  }

  .price-table th,
  .price-table td {
    padding: 14px 4px;
    font-size: 14px;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .dock {
    transform: none !important;
  }
}
