/* =========================================================================
   soldatov — landing (Figma node 0:1, file zDoigRtOA1LC0UwTcrN6a7)
   Plain CSS. Mobile-first. Design tokens live in :root.
   Шрифты: New People (основной) + Gogol (рукописный), оба локальные.
   ========================================================================= */

/* ---------------------------- Local fonts ---------------------------- */
/* New People = основной шрифт сайта (тот, что в макете; до этого стояли
   Montserrat, потом ошибочно NLFONTS).
   Начертания: 300 Light, 400 Regular + Italic, 500 Medium, 600 SemiBold,
   700 Bold, 900 Black. 800 в наборе нет — браузер отрисует его Black.
   Подробности и порядок переноса — DEV_FONT.md в корне. */
@import url("../fonts/NewPeople/stylesheet.css");

@font-face {
  font-family: "Gogol";
  src: url("../fonts/Gogol/gogol_regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------ Tokens ------------------------------ */
:root {
  --bg:        #f5f5f5;   /* page background            */
  --brand:     #0ba8a2;   /* primary teal               */
  --brand-2:   #35d0ca;   /* light teal                 */
  --muted:     #6f6f6f;   /* captions                   */
  --grad: linear-gradient(80deg, var(--brand) 8%, var(--brand-2) 150%);

  --radius-card: 33px;
  --radius-pill: 104px;

  --font-sans:   "New People", ui-sans-serif, system-ui, sans-serif;
  --font-script: "Gogol", "Marck Script", cursive;

  --shadow-card: 0 10px 30px -12px rgba(4, 114, 110, 0.28);
  --shadow-grad: 2px 4px 16px rgba(4, 114, 110, 0.38);
}

/* ------------------------------ Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: #000;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

/* ---------------------------- Layout -------------------------------- */
.container { width: 100%; max-width: 1300px; margin-inline: auto; padding-inline: 20px; }
.band { padding-block: 56px; }
.band--center { text-align: center; }
/* Removes the doubled gap when two same-background sections stack */
.band--flush-top { padding-top: 0; }
@media (min-width: 640px) {
  .container { padding-inline: 32px; }
  .band { padding-block: 80px; }
}

/* ---------------------------- Shared bits --------------------------- */
.icon { width: 1.5rem; height: 1.5rem; flex: none; }

.section-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: 3.75rem;
  color: #000;
}
.section-title .accent { color: var(--brand); }

/* Hand-written accent + its hand-drawn underline */
.script {
  display: inline-block;
  font-family: var(--font-script);
  color: var(--brand);
  line-height: 1;
  font-weight: 600;
  font-size: 5.3125rem;
  margin-top: -1.25rem;
}
.script-wrap { position: relative; display: inline-block; max-width: 100%; margin-top: 4px; }
.swoosh {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 100%;
  pointer-events: none;
  user-select: none;
  transform: rotate(-3deg) translateX(-50%);
}

.lead {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}
.btn:hover { transform: scale(1.02); }
.btn--grad   { background: var(--grad); box-shadow: 0 12px 26px -10px rgba(4, 114, 110, 0.55); }
.btn--outline{ border: 3px solid #fff; background: rgba(255, 255, 255, 0.2); }
/* Пилюля «написать» + 3 соц-иконки не сжимается: на узких экранах она распирала
   секцию CTA шире вьюпорта. Уменьшаем кегль/отступы, а wrap — страховка для 320px. */
.btn { flex-wrap: wrap; }
@media (max-width: 479px) {
  .btn { font-size: 1.375rem; padding-inline: 20px; gap: 8px; }
  .btn .soc { width: 38px; height: 38px; }
}

/* Social icon chips */
.soc { display: inline-flex; width: 44px; height: 44px; flex: none; }
.soc img { width: 100%; height: 100%; object-fit: contain; }

/* Кружки с буквами вместо брендовых логотипов соцсетей (юридические ограничения
   на использование знаков ВК/Telegram/Одноклассников). Размер круга задаёт .soc
   и его модификаторы, кегль — контекст: в круге 40/52/56px буквы разные. */
.soc--text {
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
}
.soc--fill    { background: var(--brand); color: #fff; }   /* на светлом фоне */
.soc--inverse { background: #fff; color: var(--brand); }   /* на бирюзовом фоне */
.nav__socials-mobile .soc--text { font-size: 0.85rem; }
.nav__round.soc--text           { font-size: 1.05rem; }
.footer__socials .soc--text     { font-size: 1.15rem; }

/* Круглые соц-кнопки в навигации — как пилюля .btn--grad, только круг:
   градиент + мягкая тень + такой же hover-scale. */
.nav__round.soc--fill {
  background: var(--grad);
  box-shadow: 0 12px 26px -10px rgba(4, 114, 110, 0.55);
  transition: transform 0.2s ease;
}
.nav__round.soc--fill:hover { transform: scale(1.02); }

/* Cards */
.card {
  border-radius: var(--radius-card);
  background: #fff;
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}
.card-grad {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-grad);
}
.card-grad__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  mix-blend-mode: overlay;
}
.card-body { position: relative; padding: 24px 28px; }
.card-body--shadowed { text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.22); }
.card-body p + p { margin-top: 20px; }
.card-body b, .card-body .b { font-weight: 700; }
.card-body .black { font-weight: 900; }
.card-text {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.25;
}

/* ============================ 01 · HERO ============================= */
.site-header { background: var(--bg); }

.nav {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.nav__logo { height: 36px; width: auto; }
.nav__actions { display: none; align-items: center; gap: 12px; }
.nav__cta { font-size: 1.5rem; padding: 9px 20px; }
.nav__cta .soc { width: 32px; height: 32px; }
.nav__round { width: 52px; height: 52px; }
.nav__socials-mobile { display: flex; align-items: center; gap: 8px; }
.nav__socials-mobile .soc { width: 40px; height: 40px; }
@media (min-width: 640px) { .nav { padding: 12px 28px; } .nav__logo { height: 44px; } }
@media (min-width: 1024px) {
  .nav__actions { display: flex; }
  .nav__socials-mobile { display: none; }
}

.hero { display: grid; gap: 32px; align-items: center; padding-block: 40px; }
.hero__text { order: 2; text-align: center; }
.hero__media { order: 1; }
.hero__title {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-size: 6.5rem;
  background: var(--grad);
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  margin-top: 24px;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.hero__location {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 500;
}
.hero__location .icon { color: var(--brand); }
.hero__location .place { color: var(--brand); font-weight: 700; }
.hero__location .sep { color: var(--brand); }
.hero__cta { margin-top: 28px; }
.hero__caption {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-style: italic;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  text-align: left;
}
.hero__caption .icon { width: 1.25rem; height: 1.25rem; margin-top: 2px; color: var(--brand); }
/* Hero-портрет — рецепт из hero-photo.md (перенесён с проекта «Зуев»).
   Три уровня, у каждого своя работа:
     .hero__photo_wrap — габариты в сетке + сама карточка (градиент, скругление, тень);
     .hero__photo      — рамка обрезки: абсолютная, на 20px выше карточки, overflow: hidden;
     img               — портрет-вырезка: абсолютный, шире рамки, лишнее срезается.
   Фон рисует карточка, а не картинка, поэтому нужен PNG/WebP с альфой
   (у hero-photo.webp пустое поле над головой обрезано, оригинал —
   _tools/backup/hero-photo-original.webp). */
.hero__photo_wrap {
  position: relative;          /* система координат для .hero__photo */
  margin-inline: auto;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;         /* пропорции карточки задаются ЗДЕСЬ */
  overflow: visible;
  border-radius: var(--radius-card);
  background: var(--grad);
  box-shadow: 2px 4px 20px rgba(4, 114, 110, 0.3);
}
/* top: -20px и height: calc(100% + 20px) — тот самый лёгкий выступ карточки
   вверх; менять только вместе. */
.hero__photo {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: calc(100% + 20px);
  margin-inline: auto;
  max-width: 500px;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.hero__photo img {
  position: absolute;
  inset: auto;
  top: 0;                      /* макушка у верхнего края рамки */
  left: 50%;
  transform: translateX(-50%);
  width: 120%;                 /* шире карточки — кадр «наезжает»; в % кадр одинаков
                                  на всех брейкпоинтах (см. грабли №3 в hero-photo.md) */
  height: auto;
  max-width: none;             /* перебиваем глобальный img { max-width: 100% } */
}
@media (max-width: 1023px) {
  .hero__photo img { top: 0; bottom: 0; height: auto; width: 114%; max-width: none; }
}
@media (min-width: 1024px) {
  .hero__photo_wrap { width: min(41vw, 500px); max-width: none; }
  .hero__photo      { width: 100%;             max-width: none; }
}
/* 1024–1279: при 12vw min-content заголовка (~590px) съедал колонку с фото и
   плашка сжималась до 320px. На 1280+ кегль и так упирается в потолок 6.5rem,
   так что стык незаметен. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__title { font-size: clamp(2.4rem, 8vw, 6.5rem); }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; padding-block: 64px; }
  .hero__text { order: 1; text-align: left; }
  .hero__media { order: 2; }
  .hero__location { justify-content: flex-start; }
  .hero__caption { justify-content: flex-start; }
}

/* ===================== 02 · Municipal deputy ======================= */
.about__lead { margin: 28px auto 0; max-width: 880px; }
/* Desktop & tablet: soft white gradient fading upward into the page grey */
.about { background: linear-gradient(to top, rgba(255, 255, 255, 0.7), transparent); }
/* Phones: solid white */
@media (max-width: 767px) { .about { background: #fff; } }

/* ======================== 03 · Cards grid ========================== */
.heading-block { margin-bottom: 48px; }
/* Росчерк под «— это действие»: тянется с шириной вьюпорта, потолок 600px.
   52vw подобран так, чтобы кап не подрезал линию на планшетах: своя ширина
   фразы при кегле 7.2vw меньше 52vw на всех разрешениях. */
.heading-block .swoosh { max-width: clamp(280px, 52vw, 600px); }
.cards-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid .wide { grid-column: 1 / -1; }
}

/* ========================= 04 · Principle ========================== */
.principle { background: var(--grad); }
.principle__grid { display: grid; gap: 32px; align-items: center; }
.badge {
  display: inline-block;
  border-radius: var(--radius-pill);
  border: 2.7px solid #fff;
  background: var(--brand);
  padding: 3px 22px;
  font-size: clamp(1.5rem, 3vw, 1.95rem); /* Figma: 31px SemiBold */
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 74, 72, 0.25);
}
.quote {
  margin-top: 24px;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}
.script-white {
  font-family: var(--font-script);
  color: #fff;
  line-height: 1;
  font-size: 3.25rem;
}
.principle__script { text-align: center; }
/* Росчерк подчёркивает только нижнюю строку и прижат к правому краю фразы
   (базовый .swoosh центрируется — здесь центрирование снимаем) */
.principle__script .swoosh {
  max-width: 220px;
  left: auto;
  right: 0;
  transform: rotate(-3deg);
}
@media (min-width: 1024px) {
  .principle__grid { grid-template-columns: 1.35fr 1fr; }
  .principle__script { text-align: right; }
}

/* ========================== 08 · Story ============================= */
.story-list { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.story-list .card-text { font-size: clamp(1.125rem, 2vw, 1.25rem); }
.story-cta { margin-top: 24px; text-align: center; padding-block: 32px; }
.story-cta__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
/* Первая часть фразы — без росчерка; подчёркивается только .story-cta__script */
/* Пробел между частями фразы задан в чанке (&nbsp; внутри .script-white),
   иначе он считался бы по кеглю родителя (16px) и склеивал бы слова */
.story-cta__lead { display: inline-block; margin-top: 8px; }
.story-cta__script { display: inline-block; margin-top: 8px; }
.story-cta__script .swoosh {
  bottom: 11px;
  transform: rotate(-2deg) translateX(-50%);
}
.story-cta .script-white {
  font-size: clamp(1.6rem, 6vw, 3.375rem);
  line-height: 1;
}

/* ========================== 09 · Next ============================== */
.next-heading { margin-bottom: 40px; }
.title-inline { display: inline-block; }
.script-wrap--block { display: block; }
/* Росчерк под «в Подмосковье» — по центру блока, фиксированной ширины */
.title-inline .swoosh { max-width: 500px; bottom: 7px; }
.next-list { display: flex; flex-direction: column; gap: 24px; }
.next-card { position: relative; overflow: hidden; border-radius: var(--radius-card); border: 1px solid rgba(255,255,255,.7); background: var(--grad); color: #fff; box-shadow: var(--shadow-grad); }
.next-card__photo,
.next-card__fade { display: none; }
.next-card__body { position: relative; padding: 28px; }
.next-card__title { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; text-transform: uppercase; line-height: 1.15; }
.next-card__text { margin-top: 16px; font-size: clamp(1.125rem, 2vw, 1.25rem); font-weight: 600; line-height: 1.25; }
.next-card__text .black { font-weight: 900; }
.next-card__text--tight { margin-top: 12px; }
.next-card__text.black-lead { font-weight: 900; }
@media (min-width: 768px) {
  /* Full-bleed image + smooth teal overlay — no hard seam between bg and photo */
  .next-card__photo { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .next-card__fade  { display: block; position: absolute; inset: 0;
    background: linear-gradient(to right, var(--brand) 0%, var(--brand) 42%, transparent 88%); }
  .next-card__body { max-width: 60%; padding: 40px; }
  .next-card--narrow .next-card__body { max-width: 66%; }
}

/* =========================== 06 · CTA ============================== */
/* minmax(0,1fr): колонка не раздувается под min-content кнопки и не вылезает за вьюпорт */
.cta { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; }
.cta__side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; text-align: center; padding: 56px 24px; }
.cta__side h2 { max-width: 28rem; font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.15; }
.cta__left  { background: var(--grad); color: #fff; }
.cta__right { color: #000; }
@media (min-width: 1024px) {
  .cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta__side { padding-block: 80px; }
  .cta__left { padding-right: 96px; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
  .cta__right { margin-left: -10%; padding-left: 96px; }
}

/* =========================== 07 · Yes ============================== */
.yes-cards { margin: 40px auto 0; max-width: 1226px; display: flex; flex-direction: column; gap: 20px; text-align: left; }
.yes-cards .card-text { font-size: clamp(1.125rem, 2vw, 1.25rem); font-weight: 600; }
.stamp {
  margin-top: 40px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad);
  padding: 12px clamp(20px, 4vw, 32px);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.15rem, 3.4vw, 1.875rem);
  box-shadow: 0 0 18px #d2fffd;
}
.stamp .icon { width: 2.75rem; height: 2.75rem; }
.slogan { margin: 48px auto 0; width: 100%; max-width: 860px; }
@media (max-width: 767px) { .slogan { max-width: 300px; } }

/* --------------- Согласие на обработку ПД (чекбоксы) --------------- */
/* Обе формы проекта стоят на светлом фоне, поэтому текст тёмный, ссылки — бирюзовые.
   Для формы на тёмном фоне: color: rgba(255,255,255,.85), ссылки #fff. */
.consent-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.7);
}
.consent-wrap input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--brand);
  cursor: pointer;
}
.consent-wrap a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
/* Кнопка заблокирована, пока согласия не отмечены */
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { transform: none; }

/* ===================== 11 · Поддержать инициативы ================== */
.join { padding-top: 0; }
.join__card {
  background: #fff;
  border-radius: clamp(28px, 4vw, 56px);
  padding: clamp(24px, 3.5vw, 56px);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 28px;
  text-align: left;
}
.join__title {
  color: var(--brand);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.join__form { display: flex; flex-direction: column; gap: 16px; }
/* e-mail | или | телефон — на телефоне разъезжается в столбик */
.join__row { display: flex; flex-direction: column; gap: 10px; }
.join__or { color: #9a9a9a; flex: none; align-self: center; }
.join__input {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: #000;
  padding: 16px 22px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: #eceeef;
  transition: border-color .15s, background .15s;
}
.join__input::placeholder { color: #9a9a9a; }
.join__input:focus { outline: none; border-color: var(--brand); background: #fff; }
.join__agree { display: flex; align-items: flex-start; gap: 10px; line-height: 1.3; }
.join__agree input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
}
.join__policy { text-decoration: underline; text-underline-offset: 2px; }
.join__submit { align-self: flex-start; border: none; cursor: pointer; }
.join__err { color: #d33; font-size: .9rem; margin-top: -8px; }
.join__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 640px) {
  .join__row { flex-direction: row; align-items: center; gap: 14px; }
  .join__submit { align-self: flex-end; }
}
@media (min-width: 900px) {
  .join__card { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
}

/* ========================== 05 · Footer ============================ */
.site-footer { background: var(--grad); color: #fff; padding-block: 56px; }
.footer__title { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; text-transform: uppercase; line-height: 1.15; }
.footer__cta { margin-top: 32px; }
.footer__divider { margin-block: 40px; border: none; border-top: 1px solid rgba(255, 255, 255, 0.4); }
.footer__row { display: flex; flex-direction: column; gap: 24px; }
.footer__name { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700; text-transform: uppercase; }
.footer__place { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: clamp(1.125rem, 2.4vw, 1.5rem); font-weight: 600; }
.footer__socials { display: flex; align-items: center; gap: 12px; }
.footer__socials .soc { width: 56px; height: 56px; }
.footer__fine { margin-top: 40px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.85); }
@media (min-width: 640px) { .site-footer { padding-block: 64px; } }
@media (min-width: 768px) {
  .footer__row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* ============================ Contact form modal (FormIt) ============================ */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.form-modal:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.form-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .48);
}
.form-modal__dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-card);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 24px 80px -28px rgba(0, 0, 0, .46);
  transform: translateY(16px) scale(.98);
  transition: transform .2s ease;
}
.form-modal:target .form-modal__dialog { transform: translateY(0) scale(1); }
.form-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--brand);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.form-modal__close:hover { background: #e6f6f5; }
.form-card__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.1;
  padding-right: 42px;
}
.form-card__lead { margin-top: 12px; color: var(--muted); font-size: 1.05rem; line-height: 1.4; }
.form-socials {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.form-socials__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 2px solid #e6f6f5;
  border-radius: 18px;
  padding: 8px 14px 8px 8px;
  color: #000;
  font-weight: 800;
  line-height: 1.15;
  background: #fbffff;
}
.form-socials__link:hover { border-color: var(--brand); }
.form-socials__link .soc { width: 38px; height: 38px; }
@media (min-width: 720px) {
  .form-socials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-socials__link { justify-content: center; text-align: center; }
}
.cform { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.cform__input {
  width: 100%; font: inherit; font-size: 1.05rem; color: #000;
  padding: 14px 18px; border: 2px solid #e6e6e6; border-radius: 16px;
  background: #fafafa; transition: border-color .15s, background .15s;
}
.cform__input::placeholder { color: #9a9a9a; }
.cform__input:focus { outline: none; border-color: var(--brand); background: #fff; }
.cform__textarea { min-height: 130px; resize: vertical; }
.cform__err { color: #d33; font-size: .9rem; margin-top: -8px; }
.cform__msg { border-radius: 16px; padding: 14px 18px; font-weight: 600; }
.cform__msg--ok  { background: #e6f6f5; color: var(--brand); }
.cform__msg--err { background: #fdecec; color: #d33; }
.cform__submit { align-self: flex-start; border: none; cursor: pointer; margin-top: 6px; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) {
  .form-modal { padding: 10px; }
  .form-modal__dialog { max-height: calc(100dvh - 20px); padding: 24px 18px; }
  .cform__submit { width: 100%; }
}
/* clickable "написать" label inside the pill */
.btn__label { color: inherit; text-decoration: none; }
