/* ============================================================
   «Городской орнамент» — стили лендинга
   Mobile-first. Палитра — тёплая крафтовая; при появлении
   брендбука достаточно заменить значения :root ниже.
   ============================================================ */

/* ============ Переменные ============ */
:root {
  --cream: #FBF4E6;        /* фон страницы */
  --cream-2: #FFFDF7;      /* фон карточек */
  --cream-3: #FFF6E6;
  --ink: #3D2E22;          /* основной текст */
  --ink-soft: #6F5B49;     /* второстепенный текст */
  --terracotta: #C4502B;   /* основной акцент (CTA) */
  --terracotta-dark: #A8421F;
  --brick: #A63A2B;
  --mustard: #D9A441;
  --teal: #33705F;         /* вторая акцентная (партнёры) */
  --teal-dark: #2A5C4E;
  --rose: #EBC9AB;
  --line: #E6D5BC;         /* границы/разделители */
  --error: #C0392B;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(61, 46, 34, .08);
  --font-display: 'Unbounded', 'Trebuchet MS', sans-serif;
  --font-body: 'Rubik', 'Segoe UI', system-ui, sans-serif;
}

/* ============ База ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--terracotta); }
img, svg { display: block; }
button { font-family: inherit; }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 0 0 12px 12px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 0; border-radius: 14px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }

.btn--primary {
  position: relative;
  background: var(--terracotta); color: #FFF6EA;
  box-shadow: 0 6px 18px rgba(196, 80, 43, .32);
}
.btn--primary::after { /* «стежки» внутри кнопки */
  content: ''; position: absolute; inset: 5px;
  border: 1.5px dashed rgba(255, 246, 234, .55); border-radius: 10px;
  pointer-events: none;
}
.btn--primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }

.btn--secondary {
  background: var(--teal); color: #F2FBF7;
  box-shadow: 0 6px 18px rgba(51, 112, 95, .28);
}
.btn--secondary:hover { background: var(--teal-dark); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }

.map-actions { display: flex; justify-content: flex-end; }
.btn--locate {
  padding: 10px 16px; font-size: 14px;
  background: var(--cream-2); color: var(--terracotta);
  border: 1.5px dashed var(--terracotta); border-radius: 12px;
  box-shadow: var(--shadow);
}
.btn--locate:hover { background: #FFF0E2; }

.btn--sm { padding: 10px 18px; font-size: 14px; border-radius: 12px; }

/* ============ Шапка ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 230, .94);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(61, 46, 34, .1); }

.site-header__inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__text { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--ink); }

.site-nav { display: none; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--terracotta); }
.site-nav__cta { display: inline-flex; margin-top: 8px; }

.header-cta { display: none; margin-left: auto; }

/* Бургер */
.burger {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto;
  background: var(--cream-2); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
}
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню-панель */
.site-nav.is-open {
  display: flex; flex-direction: column; gap: 6px;
  position: absolute; top: 100%; left: 0; right: 0;
  padding: 14px 20px 22px;
  background: var(--cream);
  border-bottom: 2px dashed var(--line);
  box-shadow: 0 20px 30px rgba(61, 46, 34, .12);
}
.site-nav.is-open > a { padding: 8px 0; font-size: 16px; }

@media (min-width: 900px) {
  .site-nav { display: flex; gap: 26px; margin-left: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav__cta { display: none; }
  .header-cta { display: inline-flex; margin-left: 0; }
  .burger { display: none; }
  .logo__text { font-size: 15px; }
}

/* ============ Hero ============ */
.hero { padding: 48px 0 64px; overflow: hidden; }

.hero__inner { display: grid; gap: 44px; align-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 2px dashed var(--terracotta); border-radius: 999px;
  color: var(--terracotta); font-weight: 600; font-size: 14px;
}
.hero__badge svg { flex: none; }

.hero__title {
  margin: 20px 0 14px;
  font-size: clamp(30px, 5.4vw, 52px); font-weight: 700;
}
.hero__title .accent {
  background: linear-gradient(transparent 60%, var(--rose) 60%);
  padding: 0 2px;
}

.hero__subtitle { max-width: 54ch; font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-soft); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 12px; }

.hero__note { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; margin: 30px 0 0; }
.hero__stats strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--terracotta); }
.hero__stats span { font-size: 13px; color: var(--ink-soft); }

/* Коллаж из орнаментов */
.hero__collage {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  width: 100%; max-width: 440px; margin-inline: auto;
}
.tile {
  aspect-ratio: 1;
  border: 5px solid #FFFCF4; border-radius: 18px;
  box-shadow: var(--shadow);
  background-repeat: repeat;
  transition: transform .3s;
  animation: float 5.5s ease-in-out infinite;
}
.tile:hover { transform: rotate(0deg) scale(1.04) !important; animation-play-state: paused; }
.tile--1 { background-color: var(--rose); background-image: var(--p-cross); background-size: 24px 24px; transform: rotate(-3deg); }
.tile--2 { background-color: var(--mustard); background-image: var(--p-zigzag); background-size: 28px 14px; transform: rotate(2deg); animation-delay: .4s; }
.tile--3 { background-color: var(--teal); background-image: var(--p-diamond); background-size: 28px 28px; transform: rotate(-1.5deg); animation-delay: .9s; }
.tile--4 { background-color: var(--cream-3); background-image: var(--p-flower); background-size: 30px 30px; transform: rotate(2.5deg); animation-delay: 1.3s; }
.tile--5 { background-color: var(--brick); background-image: var(--p-tree); background-size: 26px 26px; transform: rotate(-2deg); animation-delay: 1.8s; }
.tile--6 { background-color: var(--terracotta); background-image: var(--p-waves); background-size: 26px 20px; transform: rotate(3deg); animation-delay: 2.3s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@media (min-width: 940px) {
  .hero { padding: 72px 0 84px; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* Вышитые паттерны (data-URI SVG) */
.hero__collage { --p-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11' stroke='%23A63A2B' stroke-width='2.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); }
.hero__collage { --p-zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M2 11 8 3l6 8 6-8 6 8' stroke='%236B4E2E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='4.5 4' fill='none'/%3E%3C/svg%3E"); }
.hero__collage { --p-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 4.5 23.5 14 14 23.5 4.5 14Z' stroke='%23F6EBD2' stroke-width='2.2' stroke-linejoin='round' fill='none'/%3E%3Ccircle cx='14' cy='14' r='1.8' fill='%23F6EBD2'/%3E%3C/svg%3E"); }
.hero__collage { --p-flower: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg stroke='%23C4502B' stroke-width='2.2' fill='none'%3E%3Ccircle cx='15' cy='5.8' r='3.4'/%3E%3Ccircle cx='23.2' cy='10.4' r='3.4'/%3E%3Ccircle cx='23.2' cy='19.6' r='3.4'/%3E%3Ccircle cx='15' cy='24.2' r='3.4'/%3E%3Ccircle cx='6.8' cy='19.6' r='3.4'/%3E%3Ccircle cx='6.8' cy='10.4' r='3.4'/%3E%3C/g%3E%3Ccircle cx='15' cy='15' r='2.6' fill='%23C4502B'/%3E%3C/svg%3E"); }
.hero__collage { --p-tree: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cg stroke='%23EBC9AB' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'%3E%3Cpath d='M13 3 21.5 15h-17Z'/%3E%3Cpath d='M13 15v8'/%3E%3Cpath d='M7 23.5h12' stroke-dasharray='3 3'/%3E%3C/g%3E%3C/svg%3E"); }
.hero__collage { --p-waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20' viewBox='0 0 26 20'%3E%3Cg stroke='%23F2D9C4' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='4 3.5' fill='none'%3E%3Cpath d='M2 8q5-6 10 0t10 0'/%3E%3Cpath d='M2 16q5-6 10 0t10 0'/%3E%3C/g%3E%3C/svg%3E"); }

/* ============ Секции ============ */
.section { padding: 64px 0; scroll-margin-top: 78px; }
.section--lined { border-top: 2px dashed var(--line); }

.section-head { max-width: 660px; margin: 0 auto 42px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 36px); }
.section-head p { margin: 0; color: var(--ink-soft); }

.ornament-divider { display: flex; justify-content: center; margin-bottom: 14px; color: var(--mustard); }

.section-cta { display: flex; justify-content: center; margin-top: 36px; }

/* ============ Видео о проекте ============ */
.video-frame {
  max-width: 880px; margin: 0 auto;
  padding: 10px;
  background: #FFFCF4;
  border: 1.5px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
}
.video-frame::before { /* «стежки» по периметру рамки */
  content: ''; position: absolute; inset: 6px;
  border: 1.5px dashed var(--rose); border-radius: 15px;
  pointer-events: none;
}
.video-frame__player {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  background: var(--cream-3);
  border-radius: 12px;
}
.video-frame__player:paused { cursor: pointer; }
.video-frame__caption {
  margin: 10px 8px 4px; text-align: center;
  font-size: 14px; color: var(--ink-soft);
}

/* ============ Как это работает ============ */
.steps { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  background: var(--cream-2);
  border: 1.5px solid var(--line); border-radius: 20px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.step::before { /* «стежки» по периметру карточки */
  content: ''; position: absolute; inset: 7px;
  border: 1.5px dashed var(--rose); border-radius: 14px;
  opacity: .8; pointer-events: none;
}
.step__num {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: #D8B48C;
}
.step__icon {
  width: 56px; height: 56px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--cream); border-radius: 16px;
  color: var(--terracotta);
}
.step:nth-child(2) .step__icon { color: var(--mustard); }
.step:nth-child(3) .step__icon { color: var(--teal); }
.step:nth-child(4) .step__icon { color: var(--brick); }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ============ Лента фрагментов (будущий ковёр) ============ */
.carpet { overflow: hidden; }

.ribbon {
  --ribbon-h: clamp(280px, 46vw, 540px); /* высота полотнищ = сторона развёрнутого квадрата */
  overflow: hidden;
  padding: 6px 0 10px;
  touch-action: pan-y; /* вертикальный скролл страницы — браузеру, горизонтальный drag — ленте */
  user-select: none;
  cursor: grab;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ribbon.is-dragging { cursor: grabbing; }
.ribbon.is-dragging .ribbon__item img { pointer-events: none; }
.ribbon__track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.ribbon__row { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.ribbon__item { flex: none; }
.ribbon__item img {
  display: block;
  width: clamp(120px, 15vw, 210px);  /* узкое «полотнище» */
  height: var(--ribbon-h);
  object-fit: cover;
  border: 6px solid #FFFCF4; border-radius: 14px;
  box-shadow: var(--shadow);
  background: var(--cream-3);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none; /* без системного перетаскивания картинок */
  transition: width .5s cubic-bezier(.3, .7, .3, 1), border-radius .5s, box-shadow .3s;
}
.ribbon__item.is-open img {
  width: var(--ribbon-h); /* разворот до квадрата */
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(61, 46, 34, .18);
  cursor: zoom-out;
}

.ribbon__note { margin: 16px auto 0; max-width: 62ch; text-align: center; color: var(--ink-soft); font-size: 14.5px; }
.carpet .section-cta { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  .ribbon { overflow-x: auto; touch-action: auto; mask-image: none; -webkit-mask-image: none; }
}

/* ============ Партнёры и спонсоры ============ */
.partners {
  background: #F6EAD5;
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
}

.partners__grid { display: grid; gap: 20px; }
@media (min-width: 840px) { .partners__grid { grid-template-columns: 1fr 1fr; } }

.partner-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--cream-2);
  border: 1.5px solid var(--line); border-radius: 24px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.partner-card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--rose); color: var(--brick);
  border-radius: 16px;
}
.partner-card--sponsor .partner-card__icon { background: #DCE9DF; color: var(--teal); }
.partner-card h3 { font-size: 20px; margin: 0; }
.partner-card p { margin: 0; flex-grow: 1; color: var(--ink-soft); font-size: 15px; }
.partner-card .btn { align-self: flex-start; margin-top: 8px; }

/* ============ Карта ============ */
.map-wrap { display: grid; gap: 14px; }
@media (min-width: 960px) {
  .map-wrap {
    grid-template-columns: 1.5fr 1fr;
    grid-template-areas: "frame list" "actions list";
    align-items: start;
    gap: 20px;
  }
  .map-wrap__frame { grid-area: frame; }
  .map-actions { grid-area: actions; }
  .points-list { grid-area: list; }
}

.map-wrap__frame {
  position: relative;
  border: 1.5px solid var(--line); border-radius: 24px;
  overflow: hidden; min-height: 300px;
  box-shadow: var(--shadow);
}
.map { width: 100%; height: 340px; }
@media (min-width: 960px) { .map { height: 460px; } }

.map-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 24px; text-align: center;
  background: var(--cream-2); color: var(--ink-soft);
}
.map-fallback[hidden] { display: none; }

.points-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 960px) {
  .points-list { max-height: 464px; overflow: auto; padding-right: 6px; }
}

.point-card {
  background: var(--cream-2);
  border: 1.5px solid var(--line); border-radius: 16px;
  padding: 16px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.point-card.is-nearest { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(196, 80, 43, .15); }
.point-card h3 { font-family: var(--font-body); font-weight: 600; font-size: 16px; margin: 0 0 4px; }
.point-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.point-card__badge {
  display: none; margin-bottom: 8px;
  background: var(--terracotta); color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 10px; border-radius: 999px;
}
.point-card.is-nearest .point-card__badge { display: inline-block; }
.point-card__show {
  margin-top: 10px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--terracotta);
  text-decoration: underline dotted;
}

.map-status {
  display: none; max-width: 720px; margin: 16px auto 0;
  padding: 12px 18px;
  background: #FFF3DC; border: 1.5px dashed var(--mustard); border-radius: 12px;
  font-size: 14px; text-align: center;
}
.map-status.is-visible { display: block; }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--cream-2);
  border: 1.5px solid var(--line); border-radius: 16px;
  overflow: hidden;
}
.faq-item[open] { border-color: var(--mustard); box-shadow: var(--shadow); }

.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; cursor: pointer;
  font-weight: 600; font-size: 16px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item__icon {
  position: relative; flex: none;
  width: 28px; height: 28px;
  border: 1.5px dashed var(--terracotta); border-radius: 50%;
  color: var(--terracotta);
  transition: transform .25s;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: currentColor; border-radius: 2px;
}
.faq-item__icon::before { width: 12px; height: 2px; translate: -50% -50%; }
.faq-item__icon::after { width: 2px; height: 12px; translate: -50% -50%; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }

.faq-item__body { padding: 0 20px 18px; font-size: 15px; color: var(--ink-soft); }
.faq-item__body p { margin: 0; }

/* ============ Футер ============ */
.footer { background: #3D2E22; color: #EFE3D0; padding-top: 52px; }
.footer a { color: #EFE3D0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer__grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 840px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.logo--footer .logo__text { color: #F7EDDC; }
.footer__about p { margin-top: 16px; max-width: 34ch; font-size: 14.5px; color: #CDBBA4; }

.footer__title {
  margin: 4px 0 14px;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--mustard);
}
.footer__col ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: 15px; }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1.5px dashed rgba(239, 227, 208, .4); border-radius: 12px;
  color: #EFE3D0; transition: border-color .2s, color .2s, transform .2s;
}
.socials a:hover { border-color: var(--mustard); color: var(--mustard); transform: translateY(-2px); }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 20px 0; border-top: 1px solid rgba(239, 227, 208, .15);
  font-size: 13.5px; color: #BFAE97;
}
.footer__bottom a { color: #BFAE97; text-decoration: underline dotted; }

/* ============ Модальное окно ============ */
.modal {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 0; border: 0; border-radius: 24px;
  background: var(--cream-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.modal::backdrop { background: rgba(46, 32, 20, .55); backdrop-filter: blur(3px); }

.modal__inner { position: relative; padding: 30px 28px; }
.modal h2 { font-size: 22px; margin: 0 0 6px; padding-right: 36px; }
.modal__subtitle { margin: 0 0 20px; font-size: 14.5px; color: var(--ink-soft); }

.modal__close {
  position: absolute; top: 16px; right: 16px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
  color: var(--ink); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.modal__close:hover { color: var(--terracotta); border-color: var(--terracotta); }

.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 80, 43, .12);
}
.field input.is-invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.field input::placeholder, .field textarea::placeholder { color: #B5A896; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--terracotta); flex: none; }

.form-status { margin: 12px 0 0; font-size: 14px; min-height: 1em; }
.form-status.is-error { color: var(--error); }

.form-success { text-align: center; padding: 12px 0 4px; }
.form-success svg { margin: 0 auto 14px; }
.form-success h3 { font-size: 20px; }
.form-success p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============ Страница политики ============ */
.policy h1 { font-size: clamp(24px, 4vw, 34px); margin-top: 24px; }
.policy h2 { font-size: 17px; margin: 28px 0 8px; }
.policy p { color: var(--ink-soft); }
.policy__note {
  padding: 12px 16px; margin: 18px 0 8px;
  background: #FFF3DC; border: 1.5px dashed var(--mustard); border-radius: 12px;
  font-size: 14px;
}
.policy-footer { padding: 24px 0 32px; font-size: 13.5px; color: var(--ink-soft); }

/* ============ Мелочи ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
