/* CleanWhale × LEGRE studio — Option A («Архитектурная витрина»)
   Светлая редакционная эстетика: воздух, спокойный графит, тонкие 1px-разделители, без жёлтых плашек и тяжёлых теней. */

:root {
  --cw99-blue: #2457c6;
  --cw99-blue-hover: #1b44a0;
  --cw99-green: #2d8a64;
  --cw99-green-dark: #1f6c4c;
  --bg: #fcfbf9;
  --surface: #ffffff;
  --surface-alt: #f4f2ed;
  --cw99-card: #ffffff;
  --cw99-line: #e6e3db;
  --cw99-line-strong: #d5d0c5;
  --ink: #17181c;
  --cw99-muted: #646872;
  --chip-bg: #eef2fb;
  --r: 12px;
  --r-lg: 16px;
  --gutter: clamp(20px, 4.4vw, 68px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  container-type: scroll-state;
}

body {
  font-family: "Manrope", "PingFang SC", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 1520px;
  margin-inline: auto;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

.kc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.kc-i { width: 18px; height: 18px; display: block; flex-shrink: 0; }

.kc-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--cw99-blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Единая невесомая шапка (≤60px) ---------- */

.id-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 249, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cw99-line);
  transition: transform 0.24s ease;
}

@container scroll-state((scrolled: bottom) and (scrollable: top)) {
  .id-topbar { transform: translateY(-100%); }
}
.id-topbar:focus-within,
.id-topbar.is-open { transform: none; }
.id-topbar.is-hidden:not(:focus-within):not(.is-open) { transform: translateY(-100%); }

.id-topbar__inner {
  max-width: 1520px;
  margin-inline: auto;
  height: 60px;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.id-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.id-brand__cw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.id-brand__cw:hover { color: var(--cw99-blue); }
.id-brand__whale { width: 25px; height: 11px; color: var(--cw99-blue); flex-shrink: 0; }

.id-brand__sep {
  width: 1px;
  height: 16px;
  background: var(--cw99-line-strong);
}

.id-brand__studio {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  opacity: 0.9;
}
.id-brand__studio:hover { opacity: 0.65; }
.id-brand__studio img { height: 15px; width: auto; }

.id-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}

.id-nav__link {
  position: relative;
  padding-block: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cw99-muted);
  white-space: nowrap;
  transition: color 0.16s ease;
}
.id-nav__link:hover { color: var(--ink); }
.id-nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.id-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
}

.id-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Языковой поповер вместо 14 кнопок россыпью */
.id-lang-wrap { position: relative; }

.id-lang-btn {
  anchor-name: --lang-btn;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 11px;
  background: transparent;
  border: 1px solid var(--cw99-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.id-lang-btn:hover { background: var(--surface); border-color: var(--cw99-line-strong); }
.id-lang-btn__globe { width: 15px; height: 15px; color: var(--cw99-muted); }
.id-lang-btn__chev { width: 13px; height: 13px; color: var(--cw99-muted); transition: transform 0.16s ease; }
.id-lang-btn[aria-expanded="true"] .id-lang-btn__chev { transform: rotate(180deg); }

.id-lang-pop {
  position: fixed;
  inset: 60px var(--gutter) auto auto;
  margin: 0;
  width: min(320px, calc(100dvw - 24px));
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--cw99-line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(23, 24, 28, 0.1);
}
.id-lang-pop:is(:popover-open, .\:popover-open) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.id-lang-pop__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  transition: background 0.14s ease;
}
.id-lang-pop__item:hover { background: var(--surface-alt); }
.id-lang-pop__item b {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cw99-muted);
  min-width: 24px;
}
.id-lang-pop__item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.id-lang-pop__item.is-active {
  background: var(--chip-bg);
  color: var(--cw99-blue);
  font-weight: 600;
}
.id-lang-pop__item.is-active b { color: var(--cw99-blue); }

.id-topbar__cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-inline: 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.16s ease;
}
.id-topbar__cta:hover { background: var(--cw99-blue); }

.id-mob-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--cw99-line);
  border-radius: 999px;
  cursor: pointer;
}

.id-mob-pop {
  position: fixed;
  inset: 60px 0 auto 0;
  width: 100dvw;
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  margin: 0;
  padding: 16px var(--gutter) 24px;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--cw99-line);
  box-shadow: 0 20px 40px rgba(23, 24, 28, 0.08);
}
.id-mob-pop:is(:popover-open, .\:popover-open) { display: block; }
.id-mob-pop__nav { display: flex; flex-direction: column; }
.id-mob-pop__link {
  padding: 13px 0;
  border-bottom: 1px solid var(--cw99-line);
  font-size: 16px;
  font-weight: 500;
}
.id-mob-pop__link[aria-current="page"] { color: var(--cw99-blue); font-weight: 600; }
.id-mob-pop__cta { width: 100%; margin-top: 16px; }

/* ---------- Типографика и базовые поверхности ---------- */

.kc-h1 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 3.35vw, 50px);
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.kc-lead {
  font-size: clamp(15.5px, 1.1vw, 17.5px);
  line-height: 1.6;
  color: var(--cw99-muted);
  max-width: 56ch;
}

.kc-h2 {
  font-size: clamp(22px, 2.05vw, 32px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.024em;
  color: var(--ink);
}
.kc-h2--center { text-align: center; }

.kc-sub {
  margin-top: 8px;
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.58;
  color: var(--cw99-muted);
}
.kc-sub--center { text-align: center; max-width: 58ch; margin-inline: auto; }

.kc-card {
  background: var(--surface);
  border: 1px solid var(--cw99-line);
  border-radius: var(--r-lg);
}

.kc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  background: var(--cw99-blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.16s ease;
}
.kc-btn:hover { background: var(--cw99-blue-hover); }
.kc-btn .kc-i { width: 16px; height: 16px; }
.kc-btn[disabled] { opacity: 0.6; cursor: default; }

.kc-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--cw99-line-strong);
}
.kc-btn--ghost:hover { background: var(--surface); border-color: var(--ink); }

.kc-okmark {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--cw99-green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kc-okmark .kc-i { width: 12px; height: 12px; }

/* ---------- Первый экран (Hero) ---------- */

.kc-hero {
  display: grid;
  grid-template-columns: 44fr 56fr;
  column-gap: clamp(28px, 4.2vw, 68px);
  align-items: start;
  padding: clamp(28px, 3.6vw, 54px) var(--gutter) clamp(24px, 2.8vw, 44px);
}

.id-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.id-partner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--cw99-muted);
}
.id-partner__logo { display: inline-flex; align-items: center; color: var(--ink); }
.id-partner__logo img { height: 14px; width: auto; }
.id-partner__logo:hover { opacity: 0.65; }

.id-eyebrow__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--cw99-line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

/* Правая часть Hero: крупный дышащий кадр + 3 аккуратных превью без теней */
.id-works { min-width: 0; }

.id-showcase__main { margin: 0; }
.id-showcase__main > a {
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-alt);
}
.id-showcase__main img {
  width: 100%;
  aspect-ratio: 16 / 10.4;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.id-showcase__main > a:hover img { transform: scale(1.02); }

.id-showcase__main figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.id-showcase__main figcaption b {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 8px;
}
.id-showcase__main figcaption span {
  font-size: 13.5px;
  color: var(--cw99-muted);
}

.id-showcase__sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.id-showcase__thumb {
  display: block;
  min-width: 0;
}
.id-showcase__thumb img {
  width: 100%;
  aspect-ratio: 4 / 2.8;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-alt);
  transition: opacity 0.2s ease, transform 0.35s ease;
}
.id-showcase__thumb:hover img { opacity: 0.92; }
.id-showcase__thumb span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  font-size: 12.5px;
}
.id-showcase__thumb b { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-showcase__thumb em { font-style: normal; color: var(--cw99-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.id-works__all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cw99-blue);
}
.id-works__all:hover { color: var(--cw99-blue-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Лёгкая форма расчёта (2 поля на входе) ---------- */

.id-form {
  margin-top: 22px;
  padding: clamp(18px, 1.8vw, 24px);
  box-shadow: 0 10px 32px rgba(23, 24, 28, 0.03);
}

.id-form__row { display: flex; gap: 10px; }
.id-form__more .id-form__row { margin-top: 12px; }

.id-field { flex: 1; min-width: 0; }
.id-field--area { flex: 0 0 132px; }
.id-field--wide { flex: 1; }
.id-field--comment { margin-top: 12px; }

.id-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cw99-muted);
  margin-bottom: 6px;
}
.id-field label span { font-weight: 400; opacity: 0.75; }

.id-field input,
.id-field textarea {
  width: 100%;
  padding: 11px 14px;
  resize: none;
  background: var(--bg);
  border: 1px solid var(--cw99-line);
  border-radius: 9px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.id-field input::placeholder,
.id-field textarea::placeholder { color: #9a9da6; }
.id-field input:focus,
.id-field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--cw99-blue);
  box-shadow: 0 0 0 3px rgba(36, 87, 198, 0.1);
}
.id-field input.id-input--attention {
  border-color: var(--cw99-blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(36, 87, 198, 0.15);
}

.id-form__more {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cw99-line);
}

.id-form__scopes { display: flex; flex-wrap: wrap; gap: 6px; }
.id-scope input { position: absolute; opacity: 0; pointer-events: none; }
.id-scope span {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--cw99-line);
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--cw99-muted);
  cursor: pointer;
  transition: all 0.14s ease;
}
.id-scope:hover span { border-color: var(--cw99-line-strong); color: var(--ink); }
.id-scope input:checked + span {
  background: var(--chip-bg);
  border-color: rgba(36, 87, 198, 0.25);
  color: var(--cw99-blue);
  font-weight: 600;
}
.id-scope input:focus-visible + span { outline: 2px solid var(--cw99-blue); outline-offset: 2px; }

.id-est {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  background: var(--chip-bg);
  color: var(--cw99-blue);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
}
.id-est--gate { cursor: pointer; border: 1px dashed rgba(36, 87, 198, 0.32); }
.id-est--gate:hover { background: #e5ecfa; }
.id-est--ready { background: #edf7f2; color: var(--cw99-green-dark); border: 1px solid rgba(45, 138, 100, 0.24); }

.id-form__error { color: #d63b12; font-size: 13px; margin-top: 10px; line-height: 1.4; }
.id-form__error--hint {
  color: var(--cw99-blue);
  background: var(--chip-bg);
  padding: 9px 13px;
  border-radius: 8px;
  font-weight: 500;
}

.id-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.id-form__tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.kc-attach {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.kc-attach__circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--cw99-line);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cw99-muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.kc-attach__circle .kc-i { width: 14px; height: 14px; }
.kc-attach:hover .kc-attach__circle { border-color: var(--cw99-blue); color: var(--cw99-blue); }

.id-form__more-toggle {
  padding: 2px 0;
  background: none;
  border: 0;
  color: var(--cw99-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.id-form__more-toggle:hover { color: var(--cw99-blue); text-decoration: underline; }

.kc-form__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kc-form__chips li {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 12.5px;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kc-form__done { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 500; }
.kc-form__error { color: #d63b12; font-size: 13px; margin-top: 10px; }

.kc-featlist {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
}
.kc-featlist li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--cw99-muted);
}
.kc-featlist .kc-i { width: 15px; height: 15px; color: var(--cw99-muted); }

.kc-featlist--stack { flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.kc-featlist--stack li { font-size: 14.5px; color: var(--ink); }

/* ---------- Секции: больше воздуха, тонкие линии ---------- */

.id-strip,
.id-solutions,
.id-b2b,
.id-cities {
  padding: clamp(44px, 5vw, 76px) var(--gutter) 0;
}

.id-solutions--bottom { padding-bottom: clamp(24px, 3vw, 44px); }

.id-strip__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.id-strip__head .kc-sub { max-width: 60ch; }

/* Лента проектов — чистая галерея с мягким градиентом подписи */
.id-strip__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.id-strip__row--few { grid-template-columns: repeat(3, 1fr); }

.id-strip__item {
  display: block;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  color: #fff;
}
.id-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.id-strip__item:hover img { transform: scale(1.03); }
.id-strip__item span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 15px 13px;
  background: linear-gradient(transparent, rgba(16, 17, 20, 0.62));
  font-size: 12.5px;
  line-height: 1.35;
}
.id-strip__item b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }

/* Пакеты решений (3 карточки) */
.id-solutions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.id-solutions__grid--two { grid-template-columns: repeat(2, 1fr); }

.id-sol-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--cw99-line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.id-sol-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.id-sol-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.id-sol-card p { font-size: 14px; line-height: 1.55; color: var(--cw99-muted); margin-top: 8px; }
.id-sol-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cw99-blue);
}
.id-sol-card__cta .kc-i { width: 15px; height: 15px; transition: transform 0.18s ease; }
.id-sol-card:hover .id-sol-card__cta .kc-i { transform: translateX(3px); }

/* Сетка сегментов (Для бизнеса / задачи пакета / жилой фонд города) */
.id-b2b__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.id-b2b__grid--city { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }

.id-seg {
  background: var(--surface);
  border: 1px solid var(--cw99-line);
  border-radius: var(--r);
  padding: 20px 22px;
}
.id-seg h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.id-seg p { font-size: 13.8px; line-height: 1.55; color: var(--cw99-muted); margin-top: 7px; }
.id-seg--fact h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--cw99-blue); }

/* B2B & Solution правая колонка Hero */
.id-hero--b2b,
.id-hero--city { align-items: start; }
.id-b2b__what,
.id-city__housing {
  background: var(--surface);
  border: 1px solid var(--cw99-line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.2vw, 30px);
}
.id-what { list-style: none; margin: 16px 0 0; padding: 0; }
.id-what li { padding: 14px 0; border-top: 1px solid var(--cw99-line); }
.id-what li:first-child { border-top: 0; padding-top: 4px; }
.id-what b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.id-what span { display: block; margin-top: 4px; font-size: 13.8px; line-height: 1.55; color: var(--cw99-muted); }

/* Города */
.id-city__local { margin-top: 10px; font-size: 14px; color: var(--cw99-muted); }
.id-city__source { margin-top: 12px; font-size: 12.5px; color: var(--cw99-muted); }
.id-cities--hub { padding-top: clamp(28px, 3vw, 44px); }

.id-city__links { display: flex; flex-wrap: wrap; gap: 8px; }
.id-city__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--cw99-line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.id-city__link:hover { border-color: var(--ink); }
.id-city__link--all {
  background: var(--chip-bg);
  border-color: transparent;
  color: var(--cw99-blue);
  font-weight: 600;
}

.id-voivs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 36px; margin-top: 28px; }
.id-voiv h3 { font-size: 14.5px; font-weight: 600; color: var(--cw99-muted); margin-bottom: 10px; }

/* ---------- Этапы работы (01–05) ---------- */

.kc-steps { padding: clamp(52px, 5.5vw, 84px) var(--gutter) 0; }

.id-stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.id-stage {
  padding-top: 18px;
  border-top: 1px solid var(--cw99-line-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.id-stage__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cw99-blue);
}
.id-stage h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.id-stage p { font-size: 13.8px; line-height: 1.55; color: var(--cw99-muted); }
.id-stage__time {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-alt);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---------- Цены (без кричащего жёлтого маркера) ---------- */

.kc-pricing {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: clamp(52px, 5.5vw, 84px) var(--gutter);
}

.kc-pricing__example { padding: clamp(22px, 2.4vw, 32px); }

.kc-pricing__label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--cw99-muted);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

.kc-pricing__rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
}
.kc-pricing__rows div + div { border-top: 1px solid var(--cw99-line); }
.kc-pricing__rows dt { font-size: 14.5px; color: var(--cw99-muted); }
.kc-pricing__rows dd {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  background: var(--surface-alt);
  padding: 4px 12px;
  border-radius: 999px;
}
.kc-pricing__rows div:first-child dd {
  background: var(--chip-bg);
  color: var(--cw99-blue);
}

.id-price-table-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cw99-line);
  overflow-x: auto;
  max-inline-size: 100%;
  container-type: inline-size;
}

.id-price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.id-price-table caption {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--cw99-muted);
  margin-bottom: 8px;
}

.id-price-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
}

.id-price-table thead th {
  text-align: left;
  padding: 6px 8px 6px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cw99-muted);
  border-bottom: 1px solid var(--cw99-line);
  background: var(--surface);
  white-space: nowrap;
}
.id-price-table thead th:not(:first-child),
.id-price-table tbody td {
  text-align: right;
  padding-left: 10px;
  padding-right: 0;
}

.id-price-table tbody th,
.id-price-table tbody td {
  padding-block: 8px;
  border-bottom: 1px solid var(--cw99-line);
  white-space: nowrap;
}
.id-price-table tbody tr:last-child th,
.id-price-table tbody tr:last-child td { border-bottom: 0; }

.id-price-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: var(--surface);
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}
.id-price-table tbody td { color: var(--cw99-muted); }
.id-price-table tbody td:last-child { font-weight: 600; color: var(--ink); }

@container (width < 360px) {
  .id-price-table,
  .id-price-table tbody,
  .id-price-table tr,
  .id-price-table th,
  .id-price-table td { display: block; }
  .id-price-table thead { display: none; }
  .id-price-table tbody tr {
    padding-block: 8px;
    border-bottom: 1px solid var(--cw99-line);
  }
  .id-price-table tbody th,
  .id-price-table tbody td {
    border: 0;
    padding: 2px 0;
    text-align: left;
  }
  .id-price-table tbody td:nth-child(2)::before { content: var(--col-net) ": "; color: var(--cw99-muted); }
  .id-price-table tbody td:nth-child(3)::before { content: var(--col-gross) ": "; color: var(--cw99-muted); font-weight: 400; }
}

.kc-pricing__example .kc-case__ok {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--cw99-line);
  padding-top: 15px;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--cw99-muted);
}

/* ---------- FAQ (чистые линии без ореолов) ---------- */

.kc-faq {
  max-width: 960px;
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(52px, 5.5vw, 80px);
}

.kc-faq__list { display: grid; gap: 10px; margin-top: 24px; }

.kc-faq__item { border-radius: var(--r); }
.kc-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.kc-faq__item summary::-webkit-details-marker { display: none; }
.kc-faq__item summary .kc-i {
  width: 16px;
  height: 16px;
  color: var(--cw99-muted);
  transition: transform 0.18s ease;
}
.kc-faq__item[open] summary .kc-i { transform: rotate(180deg); color: var(--ink); }
.kc-faq__item p {
  padding: 0 22px 18px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--cw99-muted);
}

.kc-faq__item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.kc-faq__item:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .kc-faq__item::details-content {
    transition: block-size 0.24s ease-in-out, content-visibility 0.24s ease-in-out, display 0.24s ease-in-out;
    transition-behavior: allow-discrete;
  }
}

/* ---------- Редакционный SEO-блок ---------- */

.kc-seo {
  padding: clamp(36px, 4vw, 56px) var(--gutter);
  border-top: 1px solid var(--cw99-line);
}
.kc-seo .kc-h2 { font-size: clamp(20px, 1.7vw, 26px); margin-bottom: 18px; }
.kc-seo__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 48px); }
.kc-seo h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 18px 0 6px;
}
.kc-seo__cols > div > h3:first-child { margin-top: 0; }
.kc-seo p { font-size: 14px; line-height: 1.68; color: var(--cw99-muted); }
.kc-seo a { color: var(--cw99-blue); text-decoration: underline; text-underline-offset: 3px; }
.kc-seo__local { margin-top: 18px; font-size: 13.5px; }

/* ---------- Нижний блок контактов ---------- */

.kc-contact { padding: 0 var(--gutter) clamp(48px, 5vw, 76px); }

.kc-contact__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 2.8vw, 38px);
  background: var(--surface-alt);
  border-color: var(--cw99-line);
}
.kc-contact__city { margin-top: 8px; font-size: 13.5px; color: var(--cw99-muted); }
.kc-contact__city a { color: var(--cw99-blue); font-weight: 600; }

/* ---------- Страница «Спасибо» ---------- */

.id-thanks {
  padding: clamp(32px, 4vw, 56px) var(--gutter) 16px;
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: clamp(24px, 3.6vw, 56px);
  align-items: start;
}
.id-thanks__ok { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--cw99-green-dark); }
.id-thanks .kc-h1 { margin: 14px 0 12px; }
.id-thanks__summary { margin-top: 18px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--cw99-line); border-radius: var(--r); font-size: 14.5px; line-height: 1.55; }
.id-thanks__summary b { font-weight: 600; }
.id-thanks__card { padding: clamp(20px, 2vw, 28px); }
.id-thanks__card h2 { font-size: 18px; font-weight: 600; }
.id-thanks__steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: st; }
.id-thanks__steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; padding: 10px 0; border-top: 1px solid var(--cw99-line); font-size: 14.5px; }
.id-thanks__steps li:first-child { border-top: 0; padding-top: 0; }
.id-thanks__steps li::before { counter-increment: st; content: counter(st, decimal-leading-zero); font-weight: 600; color: var(--cw99-blue); font-size: 14px; }
.id-thanks__prep { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--cw99-line); }
.id-thanks__prep h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.id-thanks__prep ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--cw99-muted); }
.id-thanks__ctas { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 22px; }

/* ---------- Светлый архитектурный футер ---------- */

.id-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--cw99-line);
  padding: clamp(36px, 4vw, 56px) var(--gutter) clamp(24px, 2.6vw, 36px);
  color: var(--ink);
}

.id-footer__top {
  max-width: 1520px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.id-footer__meta {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--cw99-muted);
}
.id-footer__meta a:hover { color: var(--ink); text-decoration: underline; }

.id-footer__cities {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--cw99-muted);
  max-width: 58ch;
}
.id-footer__cities a:hover { color: var(--ink); text-decoration: underline; }

.id-footer__title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cw99-muted);
  margin-bottom: 12px;
}

.id-footer__col a {
  display: block;
  font-size: 13.8px;
  color: var(--ink);
  padding: 4px 0;
}
.id-footer__col a:hover { color: var(--cw99-blue); }
.id-footer__all { margin-top: 6px; font-weight: 600; color: var(--cw99-blue) !important; }

.id-footer__bottom {
  max-width: 1520px;
  margin-inline: auto;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--cw99-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--cw99-muted);
}

.id-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.id-footer__legal a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Адаптив: Планшет ≤1025 ---------- */

@media (max-width: 1025px) {
  .id-nav, .id-topbar__cta { display: none; }
  .id-mob-btn { display: inline-flex; }

  .kc-hero { grid-template-columns: 1fr; row-gap: 28px; }
  .id-strip__row { grid-template-columns: repeat(2, 1fr); }
  .id-strip__row--few { grid-template-columns: repeat(3, 1fr); }
  .id-solutions__grid,
  .id-solutions__grid--two { grid-template-columns: 1fr; }
  .id-b2b__grid { grid-template-columns: repeat(2, 1fr); }
  .id-b2b__grid--city { grid-template-columns: 1fr; }
  .id-stages { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .kc-pricing { grid-template-columns: 1fr; gap: 24px; }
  .id-thanks { grid-template-columns: 1fr; }
  .id-footer__top { grid-template-columns: 1fr 1fr; }
  .id-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Адаптив: Мобайл ≤760 ---------- */

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  html { scroll-padding-top: 72px; }

  .id-topbar__inner { height: 56px; gap: 10px; }
  .id-mob-pop { inset-block-start: 56px; max-height: calc(100dvh - 56px); }
  .id-brand { gap: 9px; }
  .id-brand__cw span { font-size: 14px; }
  .id-brand__studio img { height: 13px; }

  .kc-hero { padding-top: 20px; row-gap: 22px; }
  .kc-h1 { margin: 12px 0 10px; }
  .kc-lead br { display: none; }

  /* На мобайле площадь + телефон остаются в одной компактной строке, чтобы форма не расползалась на весь экран! */
  .id-form { margin-top: 16px; padding: 16px; }
  .id-form__row--main { flex-direction: row; gap: 8px; }
  .id-field--area { flex: 0 0 104px; }
  .id-form__more .id-form__row { flex-direction: column; gap: 10px; }
  .id-field textarea { min-height: 92px; }

  .id-form__actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .id-form__actions .kc-btn { width: 100%; min-height: 46px; }
  .id-form__tools { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; gap: 8px; }

  .id-showcase__sub { gap: 8px; margin-top: 10px; }
  .id-showcase__thumb span { display: none; }

  .id-strip__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .id-strip__row,
  .id-strip__row--few {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .id-strip__row::-webkit-scrollbar,
  .id-strip__row--few::-webkit-scrollbar { display: none; }
  .id-strip__item,
  .id-strip__row--few .id-strip__item { flex: 0 0 76vw; scroll-snap-align: start; }

  .id-b2b__grid { grid-template-columns: 1fr; gap: 10px; }
  .id-voivs { grid-template-columns: 1fr; }
  .id-stages { grid-template-columns: 1fr; gap: 16px; }
  .id-stage { flex-direction: row; gap: 14px; align-items: flex-start; padding-top: 14px; }
  .id-stage__num { padding-top: 2px; }

  .kc-pricing__copy .kc-btn,
  .kc-contact .kc-btn,
  .id-thanks__ctas .kc-btn { width: 100%; min-height: 46px; }
  .kc-contact__card { flex-direction: column; align-items: stretch; gap: 16px; }

  .kc-faq__item summary { padding: 15px 16px; font-size: 14.5px; }
  .kc-faq__item p { padding: 0 16px 15px; }

  .kc-seo__cols { grid-template-columns: 1fr; gap: 16px; }
  .id-footer__top { grid-template-columns: 1fr; gap: 24px; }
  .id-footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
