/* =============================================
   ПРЕДСТАВИТЕЛЬ СОБСТВЕННИКА — v3 CSS
   Design direction: "дороже" — editorial,
   generous whitespace, tight letter-spacing,
   muted warm palette, one strong accent.
   ============================================= */

/* ── TOKENS ────────────────────────────────── */
:root {
  --green:      #2a6049;
  --green-dark: #1a3d2d;
  --green-mid:  #3d7a5e;
  --bg:         #f5f3ef;
  --surface:    #ffffff;
  --surface-2:  #edeae4;
  --text:       #1c1a16;
  --text-2:     #5a5650;
  --text-3:     #8a8680;
  --border:     #dbd8d2;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --ease: cubic-bezier(.16,1,.3,1);

  /* Typography rhythm */
  --track-tight:  -0.025em;
  --track-label:  0.09em;
  --track-normal: 0em;
}

/* dark theme removed — light only */

/* ── RESET / BASE ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
  /* subtle grain texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ─────────────────────────────── */
.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: var(--track-tight);
  color: var(--text);
}

.section-sub {
  margin-top: 12px;
  color: var(--text-2);
  font-size: .95rem;
}

.label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 12px 22px;
  transition: all .22s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn--lg { padding: 15px 28px; font-size: .95rem; }
.btn--sm { padding: 8px 16px; font-size: .8rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--green);
  color: #fff;
  border: 1.5px solid var(--green);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(42,96,73,.22);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--text-2);
  transform: translateY(-1px);
}

/* ── SECTION SPACING ────────────────────────── */
section { padding: 96px 0; }

.section-head { margin-bottom: 56px; }

/* ── REVEAL ANIMATIONS ──────────────────────── */
.reveal {
  opacity: 0;
  clip-path: inset(20px 0 0 0);
  transition: opacity .6s var(--ease), clip-path .6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* ── NAV ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s;
}
.nav.is-sticky {
  background: var(--bg);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

/* TEXT-ONLY LOGO — no icon */
.nav__logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav__logo-text {
  font-family: 'Instrument Serif', serif;
  font-size: .88rem;
  line-height: 1.2;
  letter-spacing: var(--track-tight);
  color: var(--text);
  transition: color .2s;
}
.nav__logo:hover .nav__logo-text { color: var(--green); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: color .18s, background .18s;
  position: relative;
  /* animated underline */
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 10px; right: 10px;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}
.nav__messenger {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-2);
  transition: color .18s, background .18s;
}
.nav__messenger:hover { color: var(--green); background: var(--surface-2); }

.nav__theme { display: none !important; } /* dark theme removed */

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: var(--r-sm);
}
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .2s;
  border-radius: 2px;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────── */
.hero {
  padding-top: 130px;
  padding-bottom: 96px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 72px;
  align-items: start;
}
.hero__eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.hero__title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: var(--track-tight);
  color: var(--text);
  margin-bottom: 22px;
}
.hero__title em {
  font-style: italic;
  color: var(--green);
}
.hero__sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* typed text */
.typed-wrap { display: inline; }
.typed { font-weight: 500; color: var(--text); }
.caret {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--green);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink .85s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.hero__trust { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-2);
}
.trust-badge svg { color: var(--green); flex-shrink: 0; }

/* ─ Hero visual (right column) ─ */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* photo fills the column, no extra space */
}

/* LARGE PHOTO — increased from v2 */
.hero__photo {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 600px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.10);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}
.hero__photo-placeholder svg { width: 60%; height: auto; }

/* stat-card — больше не используется, заменены stat-item в statsbar */

/* ── STATS BAR (горизонтальная строка под hero) — 4 items ── */
.hero__statsbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-top: 48px;
  padding: 32px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
}

/* Платформы — последний блок */
.stat-item--platforms {
  text-align: center;
}
.stat-item__platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.platform-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--green);
  background: rgba(42,96,73,.08);
  border: 1px solid rgba(42,96,73,.18);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

.statsbar__div {
  width: 1px;
  height: 48px;
  background: var(--border);
  justify-self: center;
}

.stat-item {
  text-align: center;
  padding: 0 12px;
}
.stat-item__num-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-bottom: 6px;
}
.stat-item__num {
  font-family: 'Instrument Serif', serif;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: var(--track-tight);
  color: var(--green);
}
.stat-item__suffix {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  color: var(--green);
  line-height: 1;
}
.stat-item__label {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.4;
  letter-spacing: .01em;
}

/* scroll indicator */
.hero__scroll {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--border), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.3;transform:scaleY(.6)} 50%{opacity:1;transform:scaleY(1)} }

/* ── SERVICES ───────────────────────────────── */
.services { background: var(--surface); }

/* 5-card grid: 3 top + 2 centered bottom — no gaps */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
/* Last 2 cards: center them in row 2 spanning all 3 cols */
.services-grid .scard:nth-child(4) { grid-column: 1; margin-left: auto; margin-right: 0; }
.services-grid .scard:nth-child(5) { grid-column: 2; margin-left: 0;    margin-right: auto; }

.scard {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
  width: 100%;
}
.scard:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
}
/* JS will set background & color on hover via data-hover-color */

.scard__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  transition: background .28s, color .28s;
  flex-shrink: 0;
}
.scard.is-hovered .scard__icon { background: rgba(255,255,255,.15); color: #fff; }

.scard__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: var(--track-tight);
  line-height: 1.25;
}
.scard__text {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
  transition: color .28s;
}
.scard.is-hovered .scard__text { color: rgba(255,255,255,.8); }

.scard__arrow {
  font-size: 1.2rem;
  color: var(--green);
  align-self: flex-end;
  transition: color .28s, transform .22s;
}
.scard.is-hovered .scard__arrow { color: #fff; transform: translateX(4px); }

/* — С чем не работаю — 3 колонки */
.not-with {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.not-with__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: var(--track-tight);
  margin-bottom: 32px;
}
.not-with__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.not-with__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.not-with__x {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
/* dark removed */
.not-with__item strong { display: block; font-size: .92rem; margin-bottom: 4px; }
.not-with__item p { font-size: .82rem; color: var(--text-2); line-height: 1.55; }

/* ── PROCESS ────────────────────────────────── */
.process { background: var(--bg); }

.process__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: steps;
}
.process__step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background .18s;
}
.process__step:last-child { border-bottom: none; }
.process__num {
  font-family: 'Instrument Serif', serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: var(--track-tight);
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  text-align: right;
  transition: color .22s;
}
.process__step:hover .process__num { color: var(--green); }
.process__step h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: var(--track-tight);
  margin-bottom: 6px;
}
.process__step p { font-size: .875rem; color: var(--text-2); line-height: 1.6; }

/* ── ABOUT ──────────────────────────────────── */
.about { background: var(--surface); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 72px;
  align-items: start;
}

/* bio text block */
.about__bio {
  margin-top: 28px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about__bio p {
  font-size: .925rem;
  color: var(--text-2);
  line-height: 1.72;
}
.about__bio strong { color: var(--text); }

.about__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.about__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about__check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(42,96,73,.1);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about__item strong { display: block; font-size: .9rem; margin-bottom: 3px; }
.about__item p { font-size: .82rem; color: var(--text-2); line-height: 1.55; }

.about__platforms {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.apl-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 5px 14px;
  transition: background .18s, color .18s;
}
.apl-link:hover { background: var(--green); color: #fff; }

/* pricing card right column */
.about__right { position: sticky; top: 84px; }
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pricing-card__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: var(--track-tight);
}
.pricing-rows { display: flex; flex-direction: column; gap: 0; }
.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row__name { font-size: .845rem; color: var(--text-2); }
.pricing-row__price { font-size: .845rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.pricing-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .78rem;
  color: var(--text-2);
  line-height: 1.5;
}
.pricing-note svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }

/* ── ROADMAP ───────────────────────────────── */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roadmap__row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr 56px 1fr;
  align-items: stretch;
  gap: 0;
}
.roadmap__row--reverse {
  direction: rtl; /* переворачиваем порядок колонок */
}
.roadmap__row--reverse > * { direction: ltr; }

/* Карточка-узел */
.roadmap__node {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: default;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
  position: relative;
}
.roadmap__node:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(42,96,73,.22);
}
.roadmap__node:hover .roadmap__num,
.roadmap__node:hover .roadmap__title,
.roadmap__node:hover .roadmap__text { color: #fff; }
.roadmap__node:hover .roadmap__icon { background: rgba(255,255,255,.18); color: #fff; }

/* Финальный шаг */
.roadmap__node--finish:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.roadmap__icon--finish { background: rgba(42,96,73,.12) !important; color: var(--green) !important; }
.roadmap__node--finish:hover .roadmap__icon--finish { background: rgba(255,255,255,.2) !important; color: #fff !important; }

.roadmap__icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: rgba(42,96,73,.08);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .25s, color .25s;
  margin-bottom: 2px;
}

.roadmap__num {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color .25s;
}

.roadmap__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: var(--track-tight);
  color: var(--text);
  line-height: 1.25;
  transition: color .25s;
}

.roadmap__text {
  font-size: .78rem;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
  transition: color .25s;
}

/* Горизонтальная стрелка между узлами */
.roadmap__arrow--h {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.roadmap__arrow--h::after {
  content: '';
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--border);
  position: relative;
}
/* Стрелка → */
.roadmap__arrow--h::before {
  content: '';
  position: absolute;
  right: 0;
  width: 7px; height: 7px;
  border-top: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  transform: rotate(45deg) translateX(-2px);
}
/* Стрелка ← */
.roadmap__arrow--left::before {
  right: auto;
  left: 0;
  transform: rotate(-135deg) translateX(-2px);
}

/* Изгиб между рядами */
.roadmap__bend {
  display: flex;
  justify-content: flex-end;
  padding: 0;
  height: 40px;
}
.roadmap__bend-line {
  width: calc(25% + 28px); /* ширина последней колонки + полстрелки */
  height: 40px;
  border-top: none;
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  border-left: none;
  border-radius: 0 0 var(--r-md) 0;
  position: relative;
}
/* Наконечник стрелки вниз */
.roadmap__bend-line::after {
  content: '';
  position: absolute;
  bottom: -5px; left: -5px;
  width: 7px; height: 7px;
  border-bottom: 1.5px solid var(--border);
  border-left: 1.5px solid var(--border);
  transform: rotate(45deg);
}

/* Пустая ячейка для выравнивания второго ряда (3 шага + пустая) */
.roadmap__spacer {
  /* занимает место 4-го узла */
}

/* Мобайл — roadmap в 1 колонку */
@media (max-width: 860px) {
  .roadmap__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .roadmap__row--reverse { direction: ltr; }
  .roadmap__arrow--h {
    display: none;
  }
  .roadmap__node {
    border-radius: 0;
    border-bottom: none;
  }
  .roadmap__node:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .roadmap__node--finish { border-radius: 0 0 var(--r-lg) var(--r-lg); border-bottom: 1.5px solid var(--border); }
  .roadmap__bend { display: none; }
  .roadmap__spacer { display: none; }
}

/* ── MISTAKES ───────────────────────────────── */
.mistakes { background: var(--bg); }
.mistakes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* last 2 centered */
.mistakes__grid .mistake-card:nth-child(4) { grid-column: 1; margin-left: auto; margin-right: 0; }
.mistakes__grid .mistake-card:nth-child(5) { grid-column: 2; margin-left: 0; margin-right: auto; }

.mistake-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: box-shadow .22s, transform .22s;
  width: 100%;
}
.mistake-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.mistake-card__num {
  font-family: 'Instrument Serif', serif;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: var(--track-tight);
  color: var(--border);
  line-height: 1;
  margin-bottom: 12px;
}
.mistake-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: var(--track-tight);
  margin-bottom: 8px;
}
.mistake-card p { font-size: .83rem; color: var(--text-2); line-height: 1.6; }

/* ── GEOGRAPHY ──────────────────────────────── */
.geo { background: var(--surface); padding-bottom: 64px; }

/* Карта — внутри прямоугольника с overlay для скролла */
.geo__map-wrap {
  margin: 0 0 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

/* Overlay-подсказка: закрывает карту, пока не кликнули */
.geo__map-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(245,243,239,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .3s;
  border-radius: var(--r-lg);
}
.geo__map-overlay span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 20px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2);
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
/* Когда карта активна — убираем overlay */
.geo__map-wrap.is-active .geo__map-overlay {
  opacity: 0;
  pointer-events: none;
}

/* iframe: pointer-events отключены по умолчанию (скролл страницы работает),
   включаются только после клика по overlay */
.geo__map-wrap iframe {
  display: block;
  pointer-events: none;
}
.geo__map-wrap.is-active iframe {
  pointer-events: auto;
}

.geo__legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.geo__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.geo__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: rgba(42,96,73,.08);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.geo__item strong { display: block; font-size: .88rem; margin-bottom: 3px; }
.geo__item p { font-size: .78rem; color: var(--text-2); }

/* ── FAQ ────────────────────────────────────── */
.faq { background: var(--bg); }
.faq__list { max-width: 760px; }
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__q {
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  letter-spacing: .005em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235a5650' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .2s var(--ease);
}
details[open] .faq__q::after { transform: rotate(180deg); }
.faq__a { padding-bottom: 20px; }
.faq__a p { font-size: .875rem; color: var(--text-2); line-height: 1.7; }

/* ── CONTACTS ───────────────────────────────── */
.contacts { background: var(--surface); }
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: start;
}
.contacts__sub {
  color: var(--text-2);
  font-size: .9rem;
  margin-top: 16px;
  margin-bottom: 36px;
}
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.clink {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.clink:hover { border-color: var(--green); box-shadow: 0 4px 16px rgba(42,96,73,.1); transform: translateX(3px); }
.clink__icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: rgba(42,96,73,.1);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.clink__icon--wa { background: #25d366; color: #fff; }
.clink__icon--tg { background: #0088cc; color: #fff; }
.clink__label { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.clink__val { display: block; font-size: .9rem; font-weight: 500; color: var(--text); }

/* contact form */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: var(--track-tight);
  margin-bottom: 4px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.field__input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.field__input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(42,96,73,.1); }
.field__input--ta { resize: vertical; min-height: 90px; }
.field__privacy { font-size: .72rem; color: var(--text-3); text-align: center; }

.method-group { display: flex; gap: 8px; flex-wrap: wrap; }
.method input { display: none; }
.method span {
  display: inline-block;
  padding: 7px 14px;
  font-size: .8rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all .18s;
  color: var(--text-2);
}
.method input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.method span:hover { border-color: var(--green); color: var(--green); }

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(42,96,73,.08);
  border: 1px solid rgba(42,96,73,.2);
  border-radius: var(--r-md);
  padding: 16px;
  color: var(--green);
  font-size: .9rem;
}
.form-success[hidden] { display: none; }

/* ── FOOTER ─────────────────────────────────── */
.footer { background: var(--text); color: rgba(255,255,255,.65); padding-top: 60px; }
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__logo {
  font-family: 'Instrument Serif', serif;
  font-size: .9rem;
  line-height: 1.3;
  letter-spacing: var(--track-tight);
  color: rgba(255,255,255,.9);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}
.footer__logo:hover { color: #fff; }
.footer__legal {
  font-size: .73rem;
  line-height: 1.5;
  color: rgba(255,255,255,.38);
  margin-bottom: 14px;
}

/* Rusprofile in footer */
.footer__rusprofile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  transition: border-color .18s, color .18s;
  margin-top: 4px;
}
.footer__rusprofile:hover { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.9); }
.footer__rusprofile svg:first-child { flex-shrink: 0; border-radius: 4px; }

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.footer__nav a {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  transition: color .18s;
}
.footer__nav a:hover { color: rgba(255,255,255,.9); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  padding-top: 4px;
}
.footer__contact > a {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  transition: color .18s;
}
.footer__contact > a:hover { color: #fff; }
.footer__mess { display: flex; gap: 10px; }
.footer__mess a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  transition: background .18s, color .18s;
}
.footer__mess a:hover { background: rgba(255,255,255,.14); color: #fff; }

.footer__bottom {
  padding: 18px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  color: rgba(255,255,255,.3);
}
.footer__bottom a { color: rgba(255,255,255,.3); transition: color .18s; }
.footer__bottom a:hover { color: rgba(255,255,255,.7); }

/* ── MOBILE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 380px; gap: 48px; }
  .about__inner { grid-template-columns: 1fr; }
  .about__right { position: static; }
  .contacts__inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__photo { max-height: 420px; max-width: 360px; margin: 0 auto; aspect-ratio: 3/4; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .scard:nth-child(4),
  .services-grid .scard:nth-child(5) { grid-column: auto; margin: 0; }
  .not-with__grid { grid-template-columns: 1fr; gap: 18px; }
  .mistakes__grid { grid-template-columns: 1fr 1fr; }
  .mistakes__grid .mistake-card:nth-child(4),
  .mistakes__grid .mistake-card:nth-child(5) { grid-column: auto; margin: 0; }
  .geo__legend { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__contact { align-items: flex-start; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding-top: 96px; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .services-grid { grid-template-columns: 1fr; }
  .mistakes__grid { grid-template-columns: 1fr; }
  .geo__legend { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__contact { align-items: flex-start; }

  /* nav mobile */
  .nav__links {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 2px;
    z-index: 800;
  }
  .nav__links.is-open { display: flex; }
  .nav__link { font-size: 1.1rem; width: 100%; padding: 12px 0; }
  .nav__link::after { display: none; }
  .nav__burger { display: flex; }
  .nav__theme { display: none; }

  .about__inner { gap: 40px; }
  .contact-form { padding: 24px 18px; }

  /* statsbar — 3 элемента в строку на мобайле */
  .hero__statsbar {
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    padding: 20px 16px;
    gap: 0;
  }
}

/* ══════════════════════════════════════════════
   v3.2 FIXES & ENHANCEMENTS
   ══════════════════════════════════════════════ */

/* ── FIX: Services grid — 5-я карточка центровка ── */
/* Убираем старый grid-column trick, используем flex-wrap */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 56px;
  justify-content: center;
}
.services-grid .scard {
  flex: 1 1 calc(33.333% - 14px);
  min-width: 240px;
  max-width: calc(33.333% - 14px);
}
/* Последние 2 карточки в строке из 3 — центруем через отдельный враппер */
/* Или: заставляем 4-ю и 5-ю не расти шире 1/3 и центрировать за счёт flex justify-content: center */

/* ── FIX: Mistakes grid — аналогично ── */
.mistakes__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.mistakes__grid .mistake-card {
  flex: 1 1 calc(33.333% - 14px);
  min-width: 240px;
  max-width: calc(33.333% - 14px);
}

/* ── FIX: Hero photo — aspect-ratio на десктопе ── */
.hero__photo {
  aspect-ratio: 3/4;
  width: 100%;
  max-height: none; /* убираем max-height, пусть ratio управляет */
}

/* dark theme removed — nav__theme hidden everywhere */

/* ── UX: Typed убран — статичный sub ── */
.typed-wrap, .caret { display: none; }
.hero__sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
  letter-spacing: .01em;
}

/* ── UX: scard price badge ── */
.scard__price {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--green);
  background: rgba(42,96,73,.08);
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: auto;
  align-self: flex-start;
  transition: background .28s, color .28s;
}
.scard.is-hovered .scard__price {
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* ── UX: Roadmap time badge ── */
.roadmap__time {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  border-radius: 20px;
  padding: 3px 9px;
  margin-top: 6px;
  align-self: flex-start;
  transition: background .25s, color .25s;
}
.roadmap__node:hover .roadmap__time {
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
}

/* ── UX: Pricing badge «Оплата после сделки» ── */
.pricing-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(42,96,73,.1);
  border: 1px solid rgba(42,96,73,.2);
  color: var(--green);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.pricing-badge svg { flex-shrink: 0; }

/* ── Modal: Политика конфиденциальности ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s;
}
.modal-backdrop:not([hidden]) {
  opacity: 1;
}
.modal-backdrop[hidden] { display: none !important; }

.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.2);
  transform: translateY(16px);
  transition: transform .3s var(--ease);
}
.modal-backdrop:not([hidden]) .modal { transform: translateY(0); }

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: var(--track-tight);
}
.modal__close {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  border: none;
  background: none;
  transition: background .18s, color .18s;
}
.modal__close:hover { background: var(--surface-2); color: var(--text); }

.modal__body {
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal__body h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: var(--track-tight);
  margin-top: 8px;
}
.modal__body p {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── Mobile fixes для flex-grid на 860px ── */
@media (max-width: 860px) {
  .services-grid .scard {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
  .mistakes__grid .mistake-card {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}
@media (max-width: 580px) {
  .services-grid .scard,
  .mistakes__grid .mistake-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ── SECTION CTA ────────────────────────────── */
.section-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.section-cta--accent {
  background: rgba(42,96,73,.06);
  border-color: rgba(42,96,73,.18);
}
.section-cta__text {
  font-size: .95rem;
  color: var(--text-2);
  flex: 1;
  min-width: 200px;
}
.section-cta__link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s;
  letter-spacing: .01em;
}
.section-cta__link:hover { color: var(--green-dark, #1e4a35); }
.section-cta__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.section-cta__or {
  font-size: .8rem;
  color: var(--text-3);
}
@media (max-width: 640px) {
  .section-cta { padding: 20px; gap: 14px; }
  .section-cta__text { font-size: .875rem; }
  .section-cta__actions { gap: 10px; }
}

/* ── SERVICES: 2-column layout ─────────────── */
.services-grid--two .scard {
  flex: 1 1 calc(50% - 10px);
  max-width: calc(50% - 10px);
}
@media (max-width: 640px) {
  .services-grid--two .scard {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ── CASES PLACEHOLDER ──────────────────────── */
.cases { background: var(--bg); }
.cases__placeholder {
  display: flex;
  justify-content: center;
}
.cases__soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 40px;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-xl);
  color: var(--text-3);
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.cases__soon p { font-size: .88rem; line-height: 1.6; }

/* ── EXCL NOTE (эксклюзивный договор) ──────── */
.excl-note {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 28px 32px;
  background: rgba(42,96,73,.06);
  border: 1px solid rgba(42,96,73,.18);
  border-radius: var(--r-xl);
}
.excl-note__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: rgba(42,96,73,.1);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.excl-note strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 8px;
  color: var(--text);
}
.excl-note p {
  font-size: .87rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── CONTACT FORM SUBTITLE ──────────────────── */
.contact-form__sub {
  font-size: .85rem;
  color: var(--text-2);
  margin-top: -4px;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* ── TRUST BADGE: platform variant ─────────── */
.trust-badge--platform {
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--green);
  background: rgba(42,96,73,.07);
  border-color: rgba(42,96,73,.18);
}
.trust-badge--platform svg { display: none; }

/* ══════════════════════════════════════════════
   КЕЙСЫ
   ══════════════════════════════════════════════ */
.cases { background: var(--surface); }

.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow .22s, transform .22s;
}
.case-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

/* head: tag + status */
.case-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* теги типа сделки */
.case-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 4px 11px;
}
.case-tag--exchange { background: rgba(42,96,73,.1);  color: var(--green); }
.case-tag--rent     { background: rgba(30,92,63,.1);  color: #1e5c3f; }
.case-tag--sale     { background: rgba(74,94,42,.1);  color: #4a5e2a; }
.case-tag--country  { background: rgba(45,90,74,.1);  color: #2d5a4a; }

/* статус */
.case-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}
.case-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.case-status--done {
  background: rgba(42,96,73,.08);
  color: var(--green);
}
.case-status--done::before { background: var(--green); }
.case-status--active {
  background: rgba(202,138,4,.1);
  color: #92640a;
}
.case-status--active::before {
  background: #d97706;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}

/* заголовок */
.case-card__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: var(--track-tight);
  color: var(--text);
}

/* body: ситуация + решение */
.case-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.case-block { display: flex; flex-direction: column; gap: 4px; }
.case-block__label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.case-block p {
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* результаты */
.case-card__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.case-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 12px;
  border-right: 1px solid var(--border);
}
.case-result:first-child { padding-left: 0; }
.case-result:last-child  { border-right: none; }
.case-result__val {
  font-family: 'Instrument Serif', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1.1;
  letter-spacing: var(--track-tight);
}
.case-result__label {
  font-size: .7rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* mobile */
@media (max-width: 860px) {
  .cases__grid { grid-template-columns: 1fr; }
}

/* ── NAV: Авито ссылка ──────────────────────── */
.nav__link--avito {
  color: var(--green) !important;
  font-weight: 600;
}
.nav__link--avito::after { display: none; }
.nav__link--avito:hover { background: rgba(42,96,73,.08); }

/* ── CONTACTS: новая вёрстка ────────────────── */
.contacts { background: var(--surface); }

/* Форма — широкая, поля в строку */
.contact-form-wide {
  max-width: 720px;
  margin: 0 auto 40px;
}
.contact-form-wide__fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.btn--contact {
  padding: 11px 28px;
  white-space: nowrap;
  height: 46px;
  align-self: end;
}

/* Контакты — горизонтальная строка снизу */
.contacts-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
}
.clink-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  transition: border-color .18s, color .18s, background .18s;
  white-space: nowrap;
}
.clink-inline:hover { border-color: var(--green); color: var(--text); }
.clink-inline__icon {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: rgba(42,96,73,.08);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.clink-inline--wa .clink-inline__icon { background: #25d366; color: #fff; }
.clink-inline--tg .clink-inline__icon { background: #0088cc; color: #fff; }

/* mobile */
@media (max-width: 640px) {
  .contact-form-wide__fields {
    grid-template-columns: 1fr;
  }
  .btn--contact { width: 100%; justify-content: center; }
  .contacts-row { gap: 8px; }
  .clink-inline span { display: none; }
  .clink-inline { padding: 8px 10px; }
  .clink-inline__icon { width: 32px; height: 32px; }
}

/* ── STATSBAR: platforms as text ───────────── */
.stat-item__platforms-text {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: var(--green);
  letter-spacing: var(--track-tight);
  line-height: 1;
}

/* ── CONTACTS: redesigned ───────────────────── */
.contacts { background: var(--surface); }

.contact-form-wide {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 48px;
  max-width: 780px;
  margin: 0 auto 32px;
}

.contact-form-wide__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.btn--contact {
  grid-column: 1 / -1;
  justify-content: center;
}

.contacts-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 780px;
  margin: 0 auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.clink-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  transition: border-color .18s, color .18s;
  white-space: nowrap;
}
.clink-inline:hover { border-color: var(--green); color: var(--text); }
.clink-inline__icon {
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  background: rgba(42,96,73,.08);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.clink-inline--wa .clink-inline__icon { background: #25d366; color: #fff; }
.clink-inline--tg .clink-inline__icon { background: #0088cc; color: #fff; }

@media (max-width: 640px) {
  .contact-form-wide { padding: 24px 20px; }
  .contact-form-wide__fields { grid-template-columns: 1fr; }
  .clink-inline span { display: none; }
  .clink-inline { padding: 10px; }
}

/* ── CONTACTS ROW: force single line ───────── */
.contacts-row {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: flex-start !important;
  max-width: 780px;
  margin: 0 auto;
}
.contacts-row::-webkit-scrollbar { display: none; }
.clink-inline {
  font-size: .78rem !important;
  padding: 8px 12px !important;
  flex-shrink: 0;
}
.clink-inline__icon {
  width: 22px !important;
  height: 22px !important;
}

/* ── FOOTER: Макс иконка ────────────────────── */
.footer__mess-max {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.footer__mess-max:hover { background: rgba(255,255,255,.14); }
