/* ==========================================================================
   AutoMind — стили сайта
   Цвета, скругления, тени и шрифт — переменные в :root.
   Акцентный цвет всего сайта (кнопки, метки, логотип) — --accent.
   ========================================================================== */

/* Шрифт Onest (лицензия SIL OFL — static/fonts/OFL.txt) */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-cyrillic.fe2bd26ae82a.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-latin-ext.3e2cb9888206.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-latin.3db826ed1c5d.woff2") format("woff2");
  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;
}

:root {
  /* Цвета */
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-2: #e9e9e5;
  --ink: #0e0e0e;
  --ink-2: #4b4b4b;
  --ink-3: #6b6b6b;
  --line: #e1e1dc;
  --line-strong: #cfcfc9;
  --accent: #d6ff3d;
  --accent-hover: #c9f526;
  --on-dark-2: rgb(255 255 255 / 0.66);
  --success: #16a34a;
  --danger: #dc2626;

  /* Скругления и тени */
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow: 0 1px 2px rgb(14 14 14 / 0.04), 0 12px 32px -12px rgb(14 14 14 / 0.14);
  --shadow-lg: 0 2px 6px rgb(14 14 14 / 0.05), 0 32px 64px -24px rgb(14 14 14 / 0.3);

  /* Шрифт и сетка */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1280px;
  --gutter: 24px;
  --header-h: 88px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --header-h: 80px;
  }
}


/* ---------- Основа ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.bento-dark :focus-visible,
.benefit-dark :focus-visible,
.cta-card :focus-visible,
.included-card :focus-visible {
  outline-color: var(--accent);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: calc(880px + var(--gutter) * 2);
}

.center {
  text-align: center;
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
}

.link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.link:hover {
  text-decoration-color: var(--ink);
}


/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, translate 0.2s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: translate 0.2s var(--ease);
}

.btn:hover .icon-arrow {
  translate: 3px 0;
}

.btn:active {
  translate: 0 1px;
}

/* Главная кнопка — акцентная */
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 24px -12px rgb(110 150 0 / 0.7);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #2a2a2a;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn-sm {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn-lg {
  height: 60px;
  padding: 0 30px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background: var(--surface-2);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}


/* ---------- Шапка: «парящая» панель ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
  pointer-events: none;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 10px 0 16px;
  border: 1px solid rgb(14 14 14 / 0.06);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  pointer-events: auto;
  transition: background-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled .header-bar {
  background: rgb(255 255 255 / 0.92);
  box-shadow: var(--shadow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.logo-mark {
  width: 34px;
  height: 34px;
}

.logo-mark-bg {
  fill: var(--ink);
}

.logo-mark-line {
  stroke: var(--accent);
}

.logo-mark-dot {
  fill: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--bg);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.menu-toggle .icon {
  width: 20px;
  height: 20px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: #fff;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: calc(var(--header-h) - 4px);
  right: var(--gutter);
  left: var(--gutter);
  z-index: 49;
  max-height: calc(100dvh - var(--header-h) - 12px);
  overflow-y: auto;
  padding: 8px 20px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav > a:not(.btn) {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mobile-nav .btn {
  margin-top: 24px;
}

.mobile-contacts {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  color: var(--ink-2);
}

.mobile-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-contacts .icon {
  width: 20px;
  height: 20px;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(14 14 14 / 0.25);
}

/* На небольших ноутбуках в меню не хватает места — «Как работаем» есть в мобильном меню и подвале */
@media (max-width: 1280px) {
  .nav a[href$="#process"] {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav,
  .header-actions .icon-btn {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-grid;
  }
}

@media (max-width: 560px) {
  .header-actions .btn {
    display: none;
  }
}


/* ---------- Общее для секций ---------- */

.section {
  padding-block: 112px;
}

/* Между соседними секциями — один отступ, а не два */
.section + .section,
.section-flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 920px;
  margin-bottom: 56px;
}

.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px 64px;
  align-items: end;
  max-width: none;
}

.section-aside {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.section-aside .section-lead {
  margin-top: 0;
}

/* Метка раздела: «01  Услуги» */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.section-label b {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.section-title {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section-lead {
  max-width: 580px;
  margin-top: 22px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .section {
    padding-block: 72px;
  }

  .section + .section,
  .section-flush-top {
    padding-top: 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-head-split {
    grid-template-columns: 1fr;
  }
}


/* ---------- Первый экран ---------- */

.hero {
  padding-block: 40px 16px;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgb(22 163 74 / 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 7px rgb(22 163 74 / 0.06); }
}

.hero-title {
  margin-top: 28px;
  /* Размер подобран так, чтобы самое длинное слово в «барабане» помещалось в строку:
     его ширина ≈ 7,3 × размер шрифта */
  font-size: clamp(36px, calc(13.4vw - 10px), 98px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: initial;
}

@media (min-width: 1201px) {
  .hero-title {
    /* справа от заголовка — картинка, места меньше */
    font-size: clamp(56px, calc(13.4vw - 76px), 98px);
  }
}

.hero-title-line {
  display: block;
}

/* Слово, которое сменяется в заголовке */
.rotator {
  position: relative;
  display: inline-block;
  margin-block: 0.04em;
  padding: 0.02em 0.14em 0.08em;
  border-radius: 0.2em;
  background: var(--accent);
  white-space: nowrap;
  vertical-align: top;
  transition: width 0.55s var(--ease);
}

.rotator-word {
  display: inline-block;
  transition: opacity 0.35s, filter 0.35s, transform 0.35s var(--ease);
}

.rotator-word.is-out {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(0.18em);
}

.hero-sub {
  max-width: 720px;
  margin-top: 28px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
}

/* Ссылки на все услуги под заголовком */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin-top: 24px;
}

.hero-tags a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.hero-tags a:hover {
  background: var(--ink);
  color: #fff;
}

.rotator-measure {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.hero-art {
  justify-self: end;
  width: 100%;
  max-width: 420px;
}

.hero-art-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.ha-float {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Карточки под заголовком */
.hero-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 16px;
  margin-top: 40px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 280px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.bento-dark {
  background: var(--ink);
  color: #fff;
}

.bento-accent {
  background: var(--accent);
}

.hero-lead {
  max-width: 600px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bento-kicker {
  font-size: 15px;
  font-weight: 500;
}

.bento-big {
  font-size: clamp(64px, 6.4vw, 96px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.bento-title {
  font-size: 24px;
  letter-spacing: -0.035em;
}

.bento-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.72;
}

/* Уведомление о заявке в тёмной карточке */
.notify-stack {
  position: relative;
  padding-top: 12px;
  animation: float 6s ease-in-out infinite;
}

.notify-stack::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 64px;
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: 18px;
  background: #171717;
}

.notify {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 18px;
  background: #1f1f1f;
}

.notify-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #2aabee;
  color: #fff;
}

.notify-icon .icon {
  width: 20px;
  height: 20px;
}

.notify-body {
  display: grid;
  min-width: 0;
}

.notify-title {
  font-size: 14px;
  font-weight: 600;
}

.notify-text {
  overflow: hidden;
  font-size: 13px;
  color: var(--on-dark-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notify-time {
  align-self: flex-start;
  margin-left: auto;
  font-size: 12px;
  color: var(--on-dark-2);
}

@media (max-width: 1200px) {
  .hero-top {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 28px;
  }

  .hero-bento {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .bento-card {
    min-height: 0;
    padding: 24px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}


/* ---------- Бегущая строка ---------- */

.marquee {
  overflow: hidden;
  padding-block: 56px 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-list {
  display: flex;
  flex: none;
}

.marquee-list li {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ink-3);
  white-space: nowrap;
}

.marquee-list li::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}


/* ---------- Задачи, которые решаем ---------- */

.tasks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.task-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.task-title {
  font-size: 24px;
  letter-spacing: -0.035em;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

.task-list li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgb(14 14 14 / 0.12);
}

@media (max-width: 1100px) {
  .tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tasks {
    grid-template-columns: 1fr;
  }

  .task-group {
    padding: 24px;
  }
}


/* ---------- Карточки услуг ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s, translate 0.35s var(--ease);
}

:is(a, button).card:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  translate: 0 -4px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}

.icon-circle .icon {
  width: 24px;
  height: 24px;
}

.icon-circle-lg {
  width: 76px;
  height: 76px;
  margin-bottom: 32px;
}

.icon-circle-lg .icon {
  width: 34px;
  height: 34px;
}

.card-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s;
}

.card-title {
  margin-top: 48px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.card-text {
  flex: 1;
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--ink-2);
  transition: color 0.35s;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.35s, color 0.35s;
}

.card-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background-color 0.35s, color 0.35s, rotate 0.35s var(--ease);
}

.card-arrow .icon {
  width: 20px;
  height: 20px;
}

:is(a, button).card:hover .card-num,
:is(a, button).card:hover .card-text {
  color: var(--on-dark-2);
}

:is(a, button).card:hover .price-pill {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

:is(a, button).card:hover .card-arrow {
  background: var(--accent);
  color: var(--ink);
  rotate: -45deg;
}


/* ---------- Преимущества ---------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.benefit {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  grid-column: span 6;
  min-height: 320px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.benefit:nth-child(1),
.benefit:nth-child(4) {
  grid-column: span 7;
}

.benefit:nth-child(2),
.benefit:nth-child(3) {
  grid-column: span 5;
}

.benefit-dark {
  background: var(--ink);
  color: #fff;
}

.benefit-accent {
  background: var(--accent);
}

.benefit-accent .icon-circle {
  background: var(--ink);
  color: var(--accent);
}

.benefit-title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.benefit-text {
  max-width: 460px;
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-2);
}

.benefit-dark .benefit-text {
  color: var(--on-dark-2);
}

.benefit-accent .benefit-text {
  color: rgb(14 14 14 / 0.72);
}

@media (max-width: 860px) {
  .benefit,
  .benefit:nth-child(n) {
    grid-column: 1 / -1;
    min-height: 0;
    gap: 40px;
    padding: 28px;
  }
}


/* ---------- Этапы работы ---------- */

.process {
  border-top: 1px solid var(--line-strong);
}

.process-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.25fr) 150px;
  gap: 24px;
  align-items: baseline;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-strong);
}

.process-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.process-title {
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.04em;
}

.process-text {
  font-size: 16px;
  color: var(--ink-2);
}

.process-time {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.process-time .icon {
  width: 16px;
  height: 16px;
}

.process-row:hover .process-num {
  color: var(--ink);
}

.process-row:hover .process-time {
  background: var(--accent);
}

@media (max-width: 860px) {
  .process-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 28px 0;
  }

  .process-text,
  .process-time {
    grid-column: 2;
  }

  .process-time {
    justify-self: start;
    margin-top: 6px;
  }
}


/* ---------- Вопросы и ответы ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px 64px;
  align-items: start;
}

.faq-layout .section-head {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--r);
  background: var(--surface);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 22px 22px 28px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  transition: rotate 0.3s var(--ease), background-color 0.3s;
}

.faq-toggle .icon {
  width: 18px;
  height: 18px;
}

.faq-item summary:hover .faq-toggle {
  background: var(--surface-2);
}

.faq-item[open] .faq-toggle {
  rotate: 45deg;
  background: var(--accent);
}

.faq-answer {
  padding: 0 86px 26px 28px;
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-layout .section-head {
    position: static;
  }

  .faq-item summary {
    padding-left: 22px;
    font-size: 17px;
  }

  .faq-answer {
    padding: 0 22px 22px;
  }
}


/* ---------- Блок с заявкой ---------- */

.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 56px;
  padding: 64px;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
}

.cta-card::before {
  content: "";
  position: absolute;
  bottom: -300px;
  left: -180px;
  z-index: -1;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(214 255 61 / 0.28), transparent);
  pointer-events: none;
}

.cta-card .section-label {
  color: var(--on-dark-2);
}

.cta-title {
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.cta-text {
  max-width: 460px;
  margin-top: 22px;
  font-size: 17px;
  color: var(--on-dark-2);
}

.cta-contacts {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.cta-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
  transition: opacity 0.2s;
}

.cta-contacts a:hover {
  opacity: 0.8;
}

.cta-contacts .icon-circle {
  width: 46px;
  height: 46px;
  background: rgb(255 255 255 / 0.08);
  color: var(--accent);
}

.cta-contacts .icon {
  width: 20px;
  height: 20px;
}

.cta-contacts small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--on-dark-2);
}

.form-card {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
}

.form-card-bordered {
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .cta-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 32px;
  }
}

@media (max-width: 560px) {
  .cta-card {
    padding: 36px 12px 12px;
    border-radius: var(--r-lg);
  }

  .cta-info {
    padding-inline: 10px;
  }

  .form-card {
    padding: 24px 18px;
    border-radius: 22px;
  }
}


/* ---------- Формы ---------- */

.form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--ink-3);
}

.input {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background-color: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.input::placeholder {
  color: #96968f;
}

.input:hover {
  background-color: #ecece8;
}

.input:focus {
  outline: none;
  border-color: var(--ink);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgb(214 255 61 / 0.7);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
  background-color: #fff5f5;
}

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgb(220 38 38 / 0.14);
}

textarea.input {
  height: auto;
  min-height: 120px;
  padding: 15px 18px;
  line-height: 1.5;
  resize: vertical;
}

select.input {
  padding-right: 46px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
}

.field-error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--danger);
}

.form-alert {
  padding: 12px 16px;
  border-radius: 12px;
  background: #fef2f2;
  font-size: 14px;
  color: #991b1b;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}

.checkbox input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.checkbox a,
.form-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.checkbox a:hover,
.form-note a:hover {
  text-decoration-color: currentColor;
}

.form-note {
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-3);
}

/* Поле-ловушка для спам-ботов: людям не видно */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}


/* ---------- Внутренние страницы ---------- */

.page-hero {
  padding-block: 48px 56px;
}

.page-hero-compact {
  padding-block: 40px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--ink-3);
}

.breadcrumbs a {
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs [aria-hidden="true"] {
  color: var(--line-strong);
}

.page-title {
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.page-hero-compact .page-title {
  font-size: clamp(34px, 4.8vw, 64px);
  letter-spacing: -0.045em;
}

.page-lead {
  max-width: 680px;
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
}

.page-actions {
  margin-top: 36px;
}

/* Страница услуги */

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 48px;
  align-items: end;
}

.price-card {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.price-card dl {
  display: grid;
  gap: 22px;
  margin: 0;
}

.price-card dt {
  font-size: 14px;
  color: var(--ink-3);
}

.price-card dd {
  margin: 6px 0 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.service-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.prose-card {
  padding: 40px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.prose {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 1em;
}

.included-card {
  padding: 40px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
}

.included-card h2 {
  margin-bottom: 26px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.checklist {
  display: grid;
  gap: 16px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
}

.checklist .check {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}

.checklist .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

@media (max-width: 960px) {
  .service-hero-grid,
  .service-body {
    grid-template-columns: 1fr;
  }

  .service-hero-grid {
    gap: 40px;
  }

  .prose-card,
  .included-card {
    padding: 28px;
  }

  .prose {
    font-size: 17px;
  }
}

/* Контакты */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.contact-label {
  margin-top: 48px;
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.35s;
}

.contact-value {
  margin-top: 6px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.contact-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.35s;
}

:is(a, button).card:hover .contact-label,
:is(a, button).card:hover .contact-note {
  color: var(--on-dark-2);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Юридические тексты */

.legal-panel {
  padding: 48px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  display: grid;
  gap: 6px;
  margin-block: 10px 12px;
  padding-left: 22px;
  list-style: disc;
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.muted {
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .legal-panel {
    padding: 28px 20px;
  }
}

/* «Спасибо» и 404 */

.status-page {
  padding-block: 88px 112px;
}

.status-page .page-lead {
  margin-inline: auto;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}

.status-icon .icon {
  width: 44px;
  height: 44px;
  stroke-width: 2.25;
}

.status-code {
  margin-bottom: 12px;
  font-size: clamp(120px, 24vw, 280px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.075em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .status-page {
    padding-block: 56px 72px;
  }
}


/* ---------- Мелочи первого экрана ---------- */

.hero-tags .hero-tag-more {
  gap: 6px;
  background: var(--ink);
  color: #fff;
}

.hero-tags .hero-tag-more .icon {
  width: 16px;
  height: 16px;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.bento-link .icon {
  width: 18px;
  height: 18px;
}


/* ---------- Разделы на странице услуг ---------- */

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.category-nav a:hover {
  background: var(--ink);
  color: #fff;
}

.category-nav .category-nav-calc {
  background: var(--accent);
}

.category-nav .category-nav-calc .icon {
  width: 18px;
  height: 18px;
}

.service-group + .service-group {
  margin-top: 72px;
}

.service-group-title {
  margin-bottom: 24px;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.045em;
}


/* ---------- Отзывы ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 16px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.review-stars {
  display: flex;
  gap: 4px;
  color: var(--line-strong);
}

.review-stars .icon {
  width: 20px;
  height: 20px;
}

.review-stars .is-on {
  color: var(--ink);
}

.review-stars .is-on .icon {
  fill: var(--accent);
}

.review-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-weight: 700;
}

.review-author-name {
  display: grid;
  font-size: 15px;
  line-height: 1.35;
}

.review-author-name small {
  font-size: 13px;
  color: var(--ink-3);
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.review-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg);
  font-weight: 500;
}

.review-source {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-form-title {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.review-form-text {
  margin: 12px 0 28px;
  font-size: 15px;
  color: var(--ink-2);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.rating-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-option {
  position: relative;
  cursor: pointer;
}

.rating-option input {
  position: absolute;
  opacity: 0;
}

.rating-option span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
  transition: background-color 0.2s;
}

.rating-option .icon {
  width: 16px;
  height: 16px;
}

.rating-option input:checked + span {
  background: var(--accent);
}

.rating-option input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--accent);
  font-weight: 500;
}


/* ---------- Калькулятор ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.calc-steps {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.calc-options {
  display: grid;
  gap: 16px;
}

.calc-options[hidden] {
  display: none;
}

.calc-step {
  min-width: 0;
  margin: 0;
  padding: 28px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.calc-step-title {
  float: left;
  width: 100%;
  margin-bottom: 20px;
  padding: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.calc-step-title + * {
  clear: both;
}

.calc-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calc-project,
.calc-choice {
  position: relative;
  cursor: pointer;
}

.calc-project input,
.calc-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-project-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border-radius: 20px;
  background: var(--bg);
  transition: background-color 0.2s, color 0.2s;
}

.calc-project-title {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.calc-project-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.calc-project-price {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.calc-project:hover .calc-project-body {
  background: var(--surface-2);
}

.calc-project input:checked + .calc-project-body {
  background: var(--ink);
  color: #fff;
}

.calc-project input:checked + .calc-project-body .calc-project-text {
  color: var(--on-dark-2);
}

.calc-project input:focus-visible + .calc-project-body,
.calc-choice:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.calc-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calc-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px 12px 50px;
  border-radius: 14px;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.35;
  transition: background-color 0.2s;
}

.calc-choice::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.calc-choice:has(input[type="radio"])::before {
  border-radius: 50%;
}

.calc-choice:hover {
  background: var(--surface-2);
}

.calc-choice:has(input:checked) {
  background: var(--accent);
}

.calc-choice:has(input:checked)::before {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 4px var(--accent);
}

.calc-choice-price {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.calc-summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.calc-summary-card {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
}

.calc-summary-label {
  font-size: 14px;
  color: var(--on-dark-2);
}

.calc-total {
  margin-top: 8px;
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.calc-days {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.calc-picked {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 20px 0;
  border-block: 1px solid rgb(255 255 255 / 0.12);
  font-size: 14px;
  color: var(--on-dark-2);
}

.calc-picked li:first-child {
  color: #fff;
  font-weight: 600;
}

.calc-picked li:not(:first-child)::before {
  content: "— ";
}

.calc-btn-short {
  display: none;
}

.calc-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--on-dark-2);
}

@media (max-width: 1100px) {
  .calc {
    grid-template-columns: 1fr;
  }

  /* На планшете и телефоне итог прилипает к низу экрана */
  .calc-summary {
    top: auto;
    bottom: 12px;
    z-index: 5;
  }

  .calc-summary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 16px;
    padding: 16px 16px 16px 20px;
    box-shadow: var(--shadow-lg);
  }

  .calc-summary-label,
  .calc-picked,
  .calc-note {
    display: none;
  }

  .calc-total {
    margin: 0;
    font-size: 26px;
  }

  .calc-days {
    margin: 0;
    font-size: 13px;
  }

  .calc-summary-card .btn {
    grid-row: 1 / span 2;
    grid-column: 2;
    width: auto;
    height: 48px;
    padding: 0 20px;
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  .calc-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-choices {
    grid-template-columns: 1fr;
  }

  .calc-step {
    padding: 22px 18px;
  }

  .calc-btn-long {
    display: none;
  }

  .calc-btn-short {
    display: inline;
  }

  .calc-project-body {
    padding: 16px;
  }

  .calc-project-body .icon-circle {
    width: 40px;
    height: 40px;
  }

  .calc-project-body .icon-circle .icon {
    width: 20px;
    height: 20px;
  }

  .calc-project-title {
    margin-top: 8px;
    font-size: 16px;
  }

  .calc-project-text {
    display: none;
  }
}


/* ---------- Работы ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: 16px;
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s, translate 0.35s var(--ease);
}

.work-card:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  translate: 0 -4px;
}

/* Цветная подложка с уменьшенным сайтом */
.work-preview {
  position: relative;
  display: block;
  padding: 28px 28px 0;
  background: color-mix(in srgb, var(--work-accent) 22%, var(--surface-2));
  overflow: hidden;
}

.work-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: var(--surface);
  box-shadow: 0 18px 40px -18px rgb(14 14 14 / 0.35);
  transition: translate 0.5s var(--ease);
}

.work-frame iframe {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform: scale(var(--scale, 0.36));
  transform-origin: 0 0;
  pointer-events: none;
}

.work-card:hover .work-frame {
  translate: 0 -6px;
}

.work-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 14px 14px 0 0;
  background: var(--work-accent);
  font-size: 96px;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.work-body {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 26px 96px 30px 28px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.35s;
}

.work-meta-lg {
  margin-bottom: 20px;
  font-size: 15px;
}

.work-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.work-title {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.work-text {
  font-size: 15.5px;
  color: var(--ink-2);
  transition: color 0.35s;
}

.work-arrow {
  position: absolute;
  right: 28px;
  bottom: 30px;
}

.work-card:hover .work-meta,
.work-card:hover .work-text {
  color: var(--on-dark-2);
}

.work-card:hover .work-arrow {
  background: var(--accent);
  color: var(--ink);
  rotate: -45deg;
}

.works-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-2);
}

.works-note .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

/* Страница работы */

.page-title-md {
  font-size: clamp(38px, 5.6vw, 80px);
}

.work-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 48px;
  align-items: end;
}

.work-demo-note {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  font-size: 15.5px;
  color: var(--ink-2);
}

.work-demo-note b {
  color: var(--ink);
}

/* Окно браузера с живым демо */
.browser {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  outline: 10px solid color-mix(in srgb, var(--work-accent) 22%, var(--surface-2));
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid var(--line);
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.browser-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-address {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 13.5px;
  color: var(--ink-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-open {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  rotate: -45deg;
  transition: background-color 0.2s, color 0.2s;
}

.browser-open:hover {
  background: var(--accent);
  color: var(--ink);
}

.browser-open .icon {
  width: 18px;
  height: 18px;
}

.browser-frame {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  border: 0;
  background: #fff;
}

.work-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.story-card {
  padding: 40px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.story-card .prose {
  font-size: 18px;
}

.story-card-accent {
  background: var(--accent);
}

.story-card-accent .section-label,
.story-card-accent .prose {
  color: var(--ink);
}

.story-card-accent .section-label b {
  background: var(--ink);
  color: var(--accent);
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.stack-list li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(14 14 14 / 0.08);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 960px) {
  .work-hero,
  .work-story {
    grid-template-columns: 1fr;
  }

  .work-hero {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .work-preview {
    padding: 18px 18px 0;
  }

  .work-body {
    padding: 22px 22px 84px;
  }

  .work-arrow {
    right: auto;
    left: 22px;
    bottom: 24px;
  }

  .story-card,
  .work-demo-note {
    padding: 28px 24px;
  }

  .browser {
    outline-width: 6px;
  }

  .browser-frame {
    height: 72vh;
  }
}


/* ---------- Отрасли ---------- */

.industry-card .card-title {
  margin-top: 40px;
}

.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
}

.industry-chip .icon {
  width: 20px;
  height: 20px;
}

.industry-price {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Было → станет */
.pains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pain {
  display: grid;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.pain-problem {
  padding: 28px 28px 24px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.pain-problem span {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}

.pain-solution {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: auto;
  padding: 22px 28px 26px;
  background: var(--accent);
  font-size: 16px;
}

.pain-solution .check {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
}

.pain-solution .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.solution {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.solution .card-title {
  margin-top: 36px;
}

.solution:first-child {
  background: var(--ink);
  color: #fff;
}

.solution:first-child .card-num,
.solution:first-child .card-text {
  color: var(--on-dark-2);
}

/* Шаги глазами клиента */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  counter-reset: none;
}

.flow li {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.45;
}

.flow span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 700;
}

.industry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--surface);
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.industry-links a:hover {
  background: var(--ink);
  color: #fff;
}

.industry-links .icon {
  width: 20px;
  height: 20px;
}

.price-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  font-size: 13.5px;
}

.price-industries span {
  width: 100%;
  margin-bottom: 2px;
  color: var(--ink-3);
}

.price-industries a {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg);
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.price-industries a:hover {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 760px) {
  .pains {
    grid-template-columns: 1fr;
  }

  .pain-problem,
  .pain-solution {
    padding-inline: 22px;
  }
}


/* ---------- Подвал ---------- */

.site-footer {
  padding-block: 16px 24px;
}

.footer-panel {
  overflow: hidden;
  padding: 56px 56px 32px;
  border-radius: var(--r-xl);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-2);
}

.footer-title {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.footer-links a {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.footer-links a:hover {
  text-decoration-color: var(--accent);
}

.footer-wordmark {
  margin-top: 72px;
  font-size: clamp(56px, 20vw, 296px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.065em;
  white-space: nowrap;
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-legal a {
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--ink);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-panel {
    padding: 40px 28px 24px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-panel {
    padding: 32px 20px 20px;
    border-radius: var(--r-lg);
  }

  .footer-wordmark {
    margin-top: 48px;
  }
}


/* ---------- Кнопка «скопировать номер» (MAX) ---------- */

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cta-contacts .copy-btn {
  gap: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.cta-contacts .copy-btn:hover {
  opacity: 0.8;
}

.mobile-contacts .copy-btn .icon {
  width: 20px;
  height: 20px;
}

.copy-btn.card {
  align-items: stretch;
  width: 100%;
  padding: 28px;
  background: var(--surface);
}

.copy-btn.card:hover .card-arrow {
  rotate: 0deg;
}

.copy-btn.is-copied [data-copy-label] {
  color: var(--success);
}

.cta-card .copy-btn.is-copied [data-copy-label],
.copy-btn.card.is-copied:hover [data-copy-label] {
  color: var(--accent);
}


/* ---------- Плашка про cookie ---------- */

.cookie-note {
  position: fixed;
  z-index: 60;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(520px, calc(100% - 32px));
  padding: 14px 14px 14px 20px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  color: var(--ink-2);
}

.cookie-note[hidden] {
  display: none;
}

.cookie-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-note .btn {
  flex: none;
}

@media (max-width: 480px) {
  .cookie-note {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ---------- Плавное появление блоков при прокрутке ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s, translate 0.35s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
