@import url("../fonts/NewPeople/stylesheet.css");
/* =========================================================================
   zuev — landing (Figma node 0:1, file zDoigRtOA1LC0UwTcrN6a7)
   Plain CSS. Mobile-first. Design tokens live in :root.
   Основной шрифт — New People (фирменный, локальный, все 7 начертаний,
   веса по замеру насыщенности — см. DEV_FONT.md). Gogol — рукописный акцент.
   ========================================================================= */

/* ------------------------------ Local font -------------------------- */
@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", 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: clamp(2rem, 5vw, 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);
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  font-size: clamp(1.75rem, 7.2vw, 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%;
  max-width: 600px;            /* базовый размер росчерка */
  pointer-events: none;
  user-select: none;
  transform: translateX(-50%) rotate(-3deg);  /* центрируем, затем наклоняем */
}
/* индивидуальные размеры под длину подчёркиваемого текста */
.swoosh--02 { max-width: 1000px; }   /* «я предприниматель» — длинный */
.swoosh--03 { max-width: 400px; }
.swoosh--04 { max-width: 250px; }
.swoosh--07 { max-width: 460px; }
.swoosh--08 { max-width: 520px; }

.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); }

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

/* 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: clamp(2.4rem, 12vw, 6.5rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  margin-top: 24px;
  font-size: clamp(1.25rem, 2.4vw, 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(0.75rem, 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__photo {
  position: absolute;
  margin-inline: auto;
  width: 100%;
  max-width: 500px;
  aspect-ratio: .95 / 1;      /* как в макете: портрет обрезается краями карточки */
  overflow: hidden;
  border-radius: var(--radius-card);
  height: calc(100% + 20px);
  top: -20px;
  left: 0;
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; padding-block: 64px; }
  .hero__text { order: 1; text-align: left; }
  .hero__media { order: 2; justify-self: end; }
  .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; }
.cards-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid .wide { grid-column: 1 / -1; }
  /* росчерк под «— разбираюсь и делаю»: тянется с шириной экрана и смещён
     вправо, чтобы подчёркивать текст, а не тире. Только десктоп —
     на планшете и телефоне росчерк остаётся по ширине строки */
  .heading-block .swoosh {
    max-width: clamp(280px, 52vw, 500px);
    margin-left: 30px;
  }
}

/* ========================= 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: clamp(1.6rem, 6vw, 3.25rem);
}
.principle__script { text-align: center; }
@media (min-width: 1024px) {
  .principle__grid { grid-template-columns: 1.35fr 1fr; }
  .principle__script { text-align: right; }
  /* колонка узкая (~1fr): держим кегль так, чтобы «С вашей поддержкой»
     умещалось в строку и ручные <br> давали ровно три строки */
  .principle__script .script-white { font-size: clamp(1.6rem, 4.5vw, 3.25rem); }
  /* текст выключен вправо — росчерк прижимаем к правому краю строки.
     До 1024px блок центрируется, поэтому там работает базовое центрирование */
  .swoosh--04 {
    left: auto;
    right: 0;
    transform: rotate(-3deg);   /* без translateX: центрирование здесь не нужно */
  }
}

/* ========================== 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 { display: inline-block; margin-top: 8px; }
.story-cta .script-white {
  font-size: clamp(1.6rem, 6vw, 3.375rem);
  line-height: 1;
}
/* «Обещаю быть полезным.» — росчерк ближе к тексту и почти без наклона */
.story-cta__script .swoosh {
  bottom: 1px;
  transform: rotate(-1deg) translateX(-50%);
}

/* ========================== 09 · Next ============================== */
.next-heading { margin-bottom: 34px; }
.title-inline { display: inline-block; }
.script-wrap--block { display: block; }
.next-list { display: flex; flex-direction: column; gap: 28px; }
.next-card { position: relative; overflow: hidden; border-radius: var(--radius-card); border: 1px solid rgba(11, 168, 162, .16); background: #fff; color: #000; box-shadow: 0 14px 34px -18px rgba(4, 114, 110, .45); }
.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; }
/* =========================== 06 · CTA ============================== */
.cta { display: grid; background: #fff; }
.cta__side { min-width: 0; 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.2; }
.cta__left  { background: var(--grad); color: #fff; }
.cta__right { color: #000; }
@media (min-width: 1024px) {
  .cta { grid-template-columns: 1fr 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: 1.75rem; height: 1.75rem; }
.slogan { margin: 48px auto 0; width: 100%; max-width: 860px; }
@media (max-width: 767px) { .slogan { max-width: 300px; } }

/* ========================== 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.2; }
.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.2;
  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; }

/* hero.png — вырезанный портрет с прозрачным фоном (736×1100).
   Тянем по ширине карточки, сохраняем пропорции и опускаем так, чтобы над
   головой оставался воздух; низ пиджака уходит под нижний край карточки. */
.hero__photo img {
  inset: auto;
  top: 0;
  left: 50%;
  width: 100%;
  height: auto;
  max-width: none;
  transform: translateX(-50%) translateY(-25px);
  object-fit: contain;
  object-position: 50% 0;
  position: absolute;
}

/* Обёртка портрета: задаёт габариты и пропорции карточки и рисует её саму
   (градиент, тень, скругление). Разбор конструкции — в hero-photo.md */
.hero__photo_wrap {
  position: relative;
  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);
}

@media (min-width: 1024px) {
  .hero__photo_wrap {
    width: min(41vw, 500px);
    max-width: none;
  }
  .hero__photo {
    width: 100%;
    max-width: none;
  }
}

/* На узких экранах жёсткий перенос в заголовке подвала даёт строку-сироту «БОЛЬШЕ» */
@media (max-width: 767px) {
  .footer__title br { display: none; }
}

/* Мобильная и планшетная версия: портрет уже карточки и вписан в неё.
   Форму карточки на всех ширинах задают обёртка (aspect-ratio: 1 / 1) и
   .hero__photo { height: calc(100% + 20px); top: -20px } — здесь её не трогаем. */
@media (max-width: 1023px) {
  .hero__photo img {
    top: 0;
    bottom: 0;
    height: auto;
    width: 400px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .cta__side h2,
  .cta__side .btn {
    max-width: 100%;
  }
}

/* Zuev "Дальше — больше" cards */



.next-card__head {
  position: relative;
  min-height: clamp(270px, 28vw, 360px);
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  background: var(--grad);
  color: #fff;
}

.next-card__photo {
  display: block;
  position: absolute;
  inset: 0 0 auto auto;
  width: 48%;
  height: 100%;
  object-fit: cover;
  opacity: .74;
  -webkit-mask-image: linear-gradient(to left, #000 48%, transparent 100%);
          mask-image: linear-gradient(to left, #000 48%, transparent 100%);
}

.next-card__fade {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 168, 162, .98) 0%, rgba(11, 168, 162, .95) 48%, rgba(11, 168, 162, .18) 100%);
}

.next-card__head .next-card__title,
.next-card__head .next-card__text {
  position: relative;
  z-index: 1;
}

.next-card__head .next-card__title {
  max-width: 68%;
}


.next-card__title {
  font-size: clamp(1.6rem, 2.9vw, 2.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.next-card__head .next-card__text {
  max-width: 58%;
  margin-top: 24px;
  color: #fff;
  font-weight: 600;
  opacity: .96;
}

.next-card__body {
  position: relative;
  max-width: none;
  padding: clamp(24px, 3vw, 36px) clamp(26px, 3.5vw, 44px) clamp(30px, 3.6vw, 46px);
  background: #fff;
  color: #111;
}

/* обёртка-«ножницы»: без собственных отступов, иначе трек 0fr не схлопнется в ноль */
.next-card__body-inner {
  position: relative;
}

.next-card__body .next-card__text {
  margin-top: 0;
  color: #111;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  font-weight: 500;
  line-height: 1.32;
}

.next-card__body .next-card__text + .next-card__text {
  margin-top: 18px;
}

.next-card__body .next-card__text b {
  color: var(--brand);
  font-weight: 700;
}

/* стрелки — это <button>, поэтому здесь же сбрасываем его вид */
.next-card__arrow {
  position: absolute;
  z-index: 3;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), opacity .25s ease, box-shadow .3s ease;
  transform: rotate(90deg);
}

.next-card__arrow svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.next-card__arrow--down {
  right: 28px;
  bottom: 28px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .35);
}

.next-card__arrow--up {
  right: 28px;
  bottom: 28px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(4, 114, 110, .55);
}

.next-card__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-right: 80px;
  color: #9a9a9a;
  font-size: .95rem;
  line-height: 1.25;
}

.next-card__site {
  flex: none;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .next-card__head {
    min-height: auto;
    padding: 24px;
    padding-bottom: 88px;   /* место под кнопку «развернуть» */
  }

  .next-card__photo {
    width: 100%;
    opacity: .22;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .next-card__fade {
    background: rgba(11, 168, 162, .82);
  }

  .next-card__head .next-card__title,
  .next-card__head .next-card__text {
    max-width: none;
  }

  .next-card__arrow {
    width: 48px;
    height: 48px;
    right: 18px;
  }

  .next-card__arrow svg { width: 22px; height: 22px; }
  .next-card__arrow--down { bottom: 20px; }
  .next-card__arrow--up { bottom: 20px; }

  .next-card__foot {
    display: grid;
    padding-right: 0;
  }
}


/* ---------- Аккордион в карточках «Дальше — больше» --------------------- */
/* Без JS карточка остаётся раскрытой: класс is-collapsible вешает скрипт,
   поэтому при выключенном JS текст не пропадает. */
.next-card.is-collapsible .next-card__body {
  display: grid;
  grid-template-rows: 0fr;
  padding-top: 0;
  padding-bottom: 0;
  transition: grid-template-rows .55s cubic-bezier(.22, .61, .36, 1),
              padding .55s cubic-bezier(.22, .61, .36, 1);
}

.next-card.is-collapsible.is-open .next-card__body {
  grid-template-rows: 1fr;
  padding-top: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(30px, 3.6vw, 46px);
}

/* visibility убирает свёрнутые ссылки из таба, но с задержкой,
   чтобы не мигало во время самой анимации закрытия */
.next-card.is-collapsible .next-card__body-inner {
  /* overflow: hidden; */
  min-height: 0;
  visibility: hidden;
  transition: visibility 0s linear .55s;
}

.next-card.is-collapsible.is-open .next-card__body-inner {
  visibility: visible;
  transition-delay: 0s;
}

/* содержимое проявляется лесенкой */
.next-card.is-collapsible .next-card__body-inner > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}

.next-card.is-collapsible.is-open .next-card__body-inner > * { opacity: 1; transform: none; }
.next-card.is-collapsible.is-open .next-card__body-inner > :nth-child(1) { transition-delay: .12s; }
.next-card.is-collapsible.is-open .next-card__body-inner > :nth-child(2) { transition-delay: .19s; }
.next-card.is-collapsible.is-open .next-card__body-inner > :nth-child(3) { transition-delay: .26s; }
.next-card.is-collapsible.is-open .next-card__body-inner > :nth-child(n+4) { transition-delay: .33s; }


.next-card__arrow:hover { transform: scale(1.08); }
.next-card__arrow:active { transform: scale(.96); }
.next-card__arrow:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }

/* пока карточка закрыта, стрелка вниз время от времени подпрыгивает
   (анимируем svg, чтобы не конфликтовать с transform самой кнопки) */
@keyframes next-card-nudge {
  0%, 68%, 100% { transform: translateY(0); }
  76% { transform: translateY(5px); }
  84% { transform: translateY(-3px); }
  92% { transform: translateY(2px); }
}

.next-card.is-collapsible:not(.is-open) .next-card__arrow--down svg {
  animation: next-card-nudge 4.5s ease-in-out 1.5s infinite;
}

/* и одновременно расходится мягкая волна */
@keyframes next-card-ripple {
  0%, 68% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  86%, 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
}

.next-card.is-collapsible:not(.is-open) .next-card__arrow--down::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  animation: next-card-ripple 4.5s ease-out 1.5s infinite;
}

.next-card__arrow--down:hover svg,
.next-card__arrow--down:focus-visible svg,
.next-card__arrow--down:hover::after { animation-play-state: paused; }

/* «Свернуть» ставим в поток под текстом: в абсолютной позиции кнопка
   наезжала на последний абзац в карточках без нижнего блока со ссылкой */
.next-card.is-collapsible .next-card__arrow--up {
  position: static;
  margin: 24px 0 0 auto;
}

.next-card.is-collapsible .next-card__foot { padding-right: 0; }

/* карточка раскрыта — стрелка вниз больше не нужна */
.next-card.is-open .next-card__arrow--down {
  opacity: 0;
  transform: scale(.6);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .next-card.is-collapsible .next-card__body,
  .next-card.is-collapsible .next-card__body-inner > *,
  .next-card__arrow { transition-duration: .01ms; }
  .next-card.is-collapsible:not(.is-open) .next-card__arrow--down svg,
  .next-card.is-collapsible:not(.is-open) .next-card__arrow--down::after { animation: none; }
}

/* Секция 07: одноколоночный центрированный CTA (как в макете Зуева) */
.cta--single { grid-template-columns: 1fr; }
.cta--single .cta__left { clip-path: none; padding-left: 24px; padding-right: 24px; }
.cta--single .cta__left h2 { max-width: 52rem; }

/* Сообщения формы FormIt */
.fi-msg { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; font-size: .95rem; }
.fi-msg--ok  { background: #e6f6f4; color: #087f7a; }
.fi-msg--err { background: #fdecec; color: #c0392b; }
.fi-err { display: block; margin: -6px 0 10px; color: #e23; font-size: .82rem; font-weight: 600; }

/* =================== Соц-кружки с буквами (ВК/ТГ/ОК) ================ *
   Юр. ограничение на бренд-знаки соцсетей: вместо логотипов — кружок
   с аббревиатурой. Оставлены только в шапке и подвале. */
.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    {                                            /* на светлом фоне (шапка): стиль как у .btn--grad */
  background: var(--grad);
  box-shadow: 0 12px 26px -10px rgba(4, 114, 110, 0.55);
  color: #fff;
  transition: transform 0.2s ease;
}
.soc--fill:hover { transform: scale(1.02); }
.soc--inverse { background: #fff; color: var(--brand); }   /* на бирюзовом фоне (подвал) */
.nav__socials-mobile .soc--text { font-size: 0.95rem; }
.nav__round.soc--text           { font-size: 1.05rem; }
.footer__socials .soc--text     { font-size: 1.15rem; }

/* --------------- Согласие на обработку ПД (чекбоксы) --------------- *
   Обе формы стоят на светлом фоне → тёмный текст, ссылки бирюзовые. */
.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; }

/* ===================== Поддержать инициативы ======================= */
.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__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; }
}
