/* Тема: розовый хедер, магента CTA, шрифт Arial */

:root {
  --bg: #ffffff;
  --bg-alt: #fcf3f9;
  --text: #111111;
  --muted: #4a4a4a;
  --accent: #e217ad;
  --accent-deep: #b8148f;
  --accent-soft: #f48ed9;
  --line: rgba(226, 23, 173, 0.18);
  --card: #fff;
  --shadow: 0 10px 36px rgba(17, 17, 17, 0.06);
  --radius: 15px;
  --shell-max: 1100px;
  /* Липкий header + паддинги — чтобы hero не складывался с ним в >100vh и не было лишнего скролла «на пустом» */
  /* ≈ padding шапки (28px) + высота логотипа (--logo-header-max-height) */
  --site-header-offset: 92px;
  /* Логотип: лимит по высоте (ширина подстраивается по пропорциям картинки) */
  --logo-header-max-height: 64px;
  --logo-footer-max-height: 80px;
  --font: "Arial", Arial, sans-serif;
  --serif: "Georgia", "Times New Roman", Times, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-offset);
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--accent-deep);
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 200;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
}

.shell {
  width: min(100% - 32px, var(--shell-max));
  margin-inline: auto;
}

.shell.narrow {
  width: min(100% - 32px, 760px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 195, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

/* Шапка на всю ширину: бренд у левого края окна (с небольшим отступом) */
.site-header .shell.header-inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 16px 20px;
}

/* Десктоп: пункты меню по центру шапки, логотип слева, кнопки справа */
@media (min-width: 961px) {
  .site-header .shell.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .header-inner .logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .header-inner .nav-toggle-input {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
  }

  .header-inner .site-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .header-inner .header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo--placeholder {
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

.logo-placeholder {
  display: inline-block;
  padding: 8px 14px;
  border: 1px dashed rgba(226, 23, 173, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
  white-space: nowrap;
}

.logo-image {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-header .logo-image {
  max-height: var(--logo-header-max-height);
}

.footer-logo .logo-image {
  max-height: var(--logo-footer-max-height);
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  border-color: var(--accent);
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 960px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
  }

  .header-inner .logo,
  .header-inner .nav-toggle-input,
  .header-inner .site-nav,
  .header-inner .header-actions {
    grid-column: unset;
    grid-row: unset;
    justify-self: unset;
    align-self: unset;
  }

  .logo {
    margin-right: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 8px 0 4px;
  }

  .header-actions {
    display: none;
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .nav-toggle-input:checked ~ .site-nav,
  .nav-toggle-input:checked ~ .header-actions {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -70%;
  background: linear-gradient(
    126deg,
    transparent 41%,
    rgba(255, 255, 255, 0.36) 50%,
    transparent 59%
  );
  transform: rotate(28deg);
  pointer-events: none;
  animation: btn-glare-diagonal 4.5s ease-in-out infinite;
}

@keyframes btn-glare-diagonal {
  0% {
    transform: rotate(28deg) translate(-42%, -42%);
    opacity: 0;
  }
  7% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    transform: rotate(28deg) translate(42%, 42%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn::before {
    animation: none;
    opacity: 0;
  }
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.stretch {
  width: 100%;
}

.main {
  flex: 1 0 auto;
  min-height: 0;
}

.home-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

.home-fab:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.home-fab__icon {
  width: 22px;
  height: 22px;
}

.social-widget {
  position: fixed;
  left: max(20px, env(safe-area-inset-left, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 120;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
}

.social-widget__toggle {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  line-height: 0;
  transform-origin: center;
  animation: social-widget-breathe 3.8s ease-in-out infinite;
}

@keyframes social-widget-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 10px 22px rgba(0, 0, 0, 0.2),
      0 0 0 0 rgba(226, 23, 173, 0);
  }
  50% {
    transform: scale(1.1);
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.3),
      0 0 0 11px rgba(226, 23, 173, 0.22),
      0 0 0 4px rgba(255, 255, 255, 0.22);
  }
}

.social-widget.is-open .social-widget__toggle {
  animation: none;
  transform: scale(1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.social-widget__toggle > svg {
  grid-area: 1 / 1;
}

.social-widget__icon {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-widget__icon--close {
  opacity: 0;
  transform: scale(0.7);
}

.social-widget__panel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-widget__link {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: block;
  text-decoration: none;
  color: inherit;
  line-height: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  overflow: visible;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-widget__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.social-widget__link-svg {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
}

.social-widget__toggle:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.social-widget__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 50%;
}

.social-widget.is-open .social-widget__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.social-widget.is-open .social-widget__icon--chat {
  opacity: 0;
  transform: scale(0.7);
}

.social-widget.is-open .social-widget__icon--close {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .home-fab {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }

  .social-widget {
    left: max(14px, env(safe-area-inset-left, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }

  .social-widget__toggle {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-widget__toggle {
    animation: none;
  }
}

/* Hero: высота блока как у .section-reasons (100dvh на широких; с ≤900px — по контенту); --hero-min-height-scale — только доля ряда с фото на узком экране */
.hero {
  --hero-min-height-scale: 0.8;
  --hero-split-x: 37.5vw; /* 3/8 — граница серого и фото */
  --hero-gray-mid: calc(var(--hero-split-x) * 0.5); /* середина серой полосы — старт текста */
  --hero-photo-mid: calc(
    var(--hero-split-x) + (100vw - var(--hero-split-x)) * 0.5
  ); /* середина фото — правый край текста не доходит сюда */
  --hero-copy-width: calc(var(--hero-photo-mid) - var(--hero-gray-mid) - 1.5rem);
  padding: 0;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 5fr;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 900px) {
  .hero-layout {
    min-height: 0;
  }
}

.hero-col {
  grid-row: 1;
  min-height: 0;
}

.hero-col--gray {
  grid-column: 1;
  background: #4e4b4b;
}

.hero-col--photo {
  grid-column: 2;
  position: relative;
  overflow: hidden;
}

.hero-col--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.12) 0%,
    rgba(17, 17, 17, 0.35) 45%,
    rgba(17, 17, 17, 0.45) 100%
  );
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.hero-overlay {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(20px, 4vw, 48px)
    clamp(16px, 3vw, 28px)
    clamp(28px, 5vh, 56px)
    clamp(16px, 3vw, 28px);
  padding-top: max(
    calc(env(safe-area-inset-top, 0px) + 88px),
    calc(env(safe-area-inset-top, 0px) + clamp(20px, 4vw, 40px))
  );
}

.hero-inner {
  width: min(100%, calc(var(--shell-max) + 48px));
  max-width: 100%;
}

/* Flex: отступы между кикером и h1 не схлопываются (иначе max(12px, 30px) «съедает» задуманный зазор) */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

/* Десктоп: копирайт от середины серого, заканчивается на фото до середины кадра */
@media (min-width: 769px) {
  .hero-inner {
    margin-left: max(0px, calc(var(--hero-gray-mid) - clamp(16px, 3vw, 28px)));
    width: min(100%, var(--hero-copy-width));
    max-width: var(--hero-copy-width);
  }

  /* Hero: кикер, заголовок, абзацы и кнопка — сдвиг влево на 30% (только широкая раскладка) */
  .hero-copy .hero-text-split.eyebrow-split,
  .hero-copy h1.hero-text-split,
  .hero-copy .lead.hero-text-split.lead-split,
  .hero-copy .hero-cta {
    transform: translateX(-20%);
  }
}

.hero-text-split {
  margin: 0 0 12px;
}

.hero-copy .hero-text-split.lead-split {
  margin-bottom: 24px;
  font-size: clamp(1.22rem, 2.85vw, 1.58rem);
  line-height: 1.46;
}

/* Второй абзац hero (subtitle_2): отступ от первого блока с текстом */
.hero-copy .lead.hero-text-split.lead-split + .lead.hero-text-split.lead-split {
  margin-top: clamp(28px, 3.5vw, 44px);
}

/* Кнопка hero: отступ от текста выше */
.hero-copy .hero-cta {
  margin-top: clamp(28px, 3.5vw, 48px);
}

/* Markdown в hero (списки, несколько абзацев): обёртка — div, не p (в p нельзя вкладывать ul) */
.hero-copy .hero-lead-md > p {
  margin: 0 0 0.65em;
}

.hero-copy .hero-lead-md > p:last-child {
  margin-bottom: 0;
}

.hero-copy .hero-lead-md > ul {
  margin: 0 0 0.65em;
  padding-left: 1.25em;
  list-style-position: outside;
}

.hero-copy .hero-lead-md > ul:last-child {
  margin-bottom: 0;
}

.hero-copy .hero-lead-md li {
  margin: 0 0 0.45em;
}

.hero-copy .hero-lead-md li:last-child {
  margin-bottom: 0;
}

.hero-copy h1.hero-text-split {
  font-family: var(--serif);
  font-size: calc(clamp(2rem, 4.2vw, 2.75rem) - 5px);
  line-height: 1.12;
  font-weight: 700;
  /* Верхний отступ убран: зазор до кикера задаёт только .eyebrow-split (см. flex, без схлопывания) */
  margin: 0 0 clamp(40px, 4.5vw, 56px);
}

/* Кикер hero: на 20px меньше заголовного clamp; зазор до h1 — заметно больше прежних ~30px */
.hero-copy .hero-text-split.eyebrow-split {
  font-family: var(--serif);
  font-size: calc(clamp(2rem, 4.2vw, 2.75rem) - 10px);
  line-height: 1.3;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 clamp(52px, 6.5vw, 80px);
}

/* Десктоп: весь копирайт героя белым, тень для читаемости на серой полосе */
@media (min-width: 769px) {
  .hero-copy .hero-text-split,
  .hero-copy h1.hero-text-split {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow:
      0 1px 28px rgba(0, 0, 0, 0.45),
      0 1px 4px rgba(0, 0, 0, 0.55);
  }

  /* Eyebrown чуть мягче, но всё же белый */
  .hero-copy .hero-text-split.eyebrow-split {
    color: rgba(255, 255, 255, 0.94);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.94);
  }

  /* Поверх глобального .lead и .hero-text-split — белый текст */
  .hero-copy .lead.hero-text-split.lead-split {
    color: #fff;
    -webkit-text-fill-color: #fff;
  }

  /* Тень не наследуется — повторяем для текста из markdown (p, li) */
  .hero-copy .lead.hero-text-split.lead-split.hero-lead-md :where(p, li) {
    text-shadow:
      0 1px 28px rgba(0, 0, 0, 0.45),
      0 1px 4px rgba(0, 0, 0, 0.55);
  }

  /* Ссылки-кнопки в hero не подсвечивать текстовой тенью */
  .hero-copy .hero-cta .btn {
    text-shadow: none;
    -webkit-text-fill-color: initial;
  }
}

/* Вторичная кнопка: читаема и на сером, и на затемнённом фото */
@media (min-width: 769px) {
  .hero .btn-hero-outline {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
  }

  .hero .btn-hero-outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }
}

/* Планшет и мобильный: колонка 3/8 сверху, 5/8 фото снизу, белый текст на более тёмном сером */
@media (max-width: 768px) {
  .hero {
    --hero-split-x: 100%;
    --hero-gray-mid: 0px;
    --hero-photo-mid: 100%;
    --hero-copy-width: 100%;
  }

  .hero-inner {
    margin-left: 0;
    width: min(100%, calc(var(--shell-max) + 48px));
    max-width: 100%;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    /* Текст по высоте контента; фото — доля × --hero-min-height-scale (−20%) */
    grid-template-rows: auto minmax(
      calc(200px * var(--hero-min-height-scale)),
      min(
        calc(38vh * var(--hero-min-height-scale)),
        calc(42% * var(--hero-min-height-scale))
      )
    );
  }

  .hero-col--gray {
    grid-column: 1;
    grid-row: 1;
    background: #4f4f4f;
  }

  .hero-col--photo {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-overlay {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    padding-top: max(
      calc(env(safe-area-inset-top, 0px) + 80px),
      calc(env(safe-area-inset-top, 0px) + clamp(16px, 3vw, 28px))
    );
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-copy .hero-lead-md ul {
    text-align: left;
    display: table;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .hero-cta {
    justify-content: center;
    transform: none;
  }

  .hero-text-split,
  .hero-copy .hero-text-split.eyebrow-split,
  .hero-copy h1.hero-text-split {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow:
      0 1px 20px rgba(0, 0, 0, 0.4),
      0 1px 3px rgba(0, 0, 0, 0.5);
  }

  .hero-copy .hero-text-split.eyebrow-split {
    color: rgba(255, 255, 255, 0.9);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
  }

  .hero-copy .lead.hero-text-split.lead-split {
    color: #fff;
    -webkit-text-fill-color: #fff;
  }

  .hero-copy .lead.hero-text-split.lead-split.hero-lead-md :where(p, li) {
    text-shadow:
      0 1px 20px rgba(0, 0, 0, 0.4),
      0 1px 3px rgba(0, 0, 0, 0.5);
  }

  .hero-copy .hero-cta .btn {
    text-shadow: none;
    -webkit-text-fill-color: initial;
  }

  .hero .btn-hero-outline {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
  }

  .hero .btn-hero-outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 24px;
  text-align: center;
  font-weight: 400;
}

/* Блок «пять причин»: левая колонка по отступам сайта, правая — ровно половина окна под картинку, без зазоров у краёв */
.section-reasons {
  --reasons-pad: clamp(28px, 5vw, 56px);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-block: var(--reasons-pad);
  padding-inline: 0;
  box-sizing: border-box;
}

.reasons-split {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 0;
  width: 100%;
}

.reasons-copy {
  padding-left: max(16px, calc((100vw - min(100vw - 32px, var(--shell-max))) / 2));
  padding-right: clamp(20px, 3vw, 40px);
  box-sizing: border-box;
}

.section-title--left {
  text-align: left;
  margin-bottom: clamp(20px, 3vw, 32px);
}

@media (min-width: 901px) {
  .reasons-copy {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.reasons-copy-cta {
  margin-top: clamp(28px, 4vw, 40px);
}

.reasons-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 22px);
}

.reasons-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.reasons-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(226, 23, 173, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reasons-icon {
  width: 28px;
  height: 28px;
  max-width: none;
  object-fit: contain;
  border-radius: 0;
}

.reasons-item-title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  font-weight: 600;
  line-height: 1.3;
}

.reasons-item-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.reasons-figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 0;
  width: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: var(--bg);
}

.reasons-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

@media (max-width: 900px) {
  .section-reasons {
    min-height: 0;
    display: block;
    padding-block: clamp(24px, 5vw, 40px);
  }

  .reasons-split {
    flex: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
    min-height: 0;
  }

  .reasons-copy {
    padding-left: max(16px, calc((100vw - min(100vw - 32px, var(--shell-max))) / 2));
    padding-right: max(16px, calc((100vw - min(100vw - 32px, var(--shell-max))) / 2));
  }

  .reasons-figure {
    aspect-ratio: 1;
    min-height: min(300px, 90vw);
  }

  .section-title--left {
    text-align: center;
    margin-inline: auto;
    max-width: 36ch;
  }
}

@media (max-width: 480px) {
  .reasons-icon-wrap {
    width: 46px;
    height: 46px;
  }

  .reasons-icon {
    width: 24px;
    height: 24px;
  }
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.card-title {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.card-media .thumb {
  margin: -6px -6px 12px;
  border-radius: var(--radius);
  overflow: hidden;
}

.card-media .thumb img {
  border-radius: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 400 / 280;
}

.card-link {
  margin: 12px 0 0;
  font-weight: 600;
}

/* Блок «Мои работы»: 3 карточки в окне, листание по одной; стрелки + горизонтальный скролл */
.teaser-carousel {
  min-width: 0;
  width: 100%;
}

.t-align_center {
  text-align: center;
}

.teaser-carousel__controls {
  margin: 0 0 20px;
}

.teaser-carousel__controls-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.carousel-round-btn {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.carousel-round-btn:not(:disabled):hover {
  background: var(--accent-deep);
}

.carousel-round-btn:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.carousel-round-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.carousel-round-btn__icon {
  width: 28px;
  height: 28px;
  display: block;
}

.carousel-round-btn__icon--flip {
  transform: scaleX(-1);
}

.teaser-carousel__viewport {
  --teaser-gap: 18px;
  container-type: inline-size;
  container-name: teaser-carousel;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  outline: none;
}

.teaser-carousel__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--teaser-gap);
  width: max-content;
  min-height: 0;
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}

.teaser-carousel__track .teaser-carousel__card {
  box-sizing: border-box;
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.teaser-carousel__track .teaser-carousel__card .card-link {
  margin-top: auto;
  padding-top: 12px;
}

/* Узкий экран: по одной карточке за раз */
@container teaser-carousel (max-width: 719px) {
  .teaser-carousel__track .teaser-carousel__card {
    flex-basis: min(100cqi - 24px, 420px);
    width: min(100cqi - 24px, 420px);
    max-width: min(100cqi - 24px, 420px);
  }
}

/* От 720px: ровно 3 карточки во «окне», остальные — прокруткой */
@container teaser-carousel (min-width: 720px) {
  .teaser-carousel__track .teaser-carousel__card {
    --tw: calc((100cqi - 2 * var(--teaser-gap)) / 3);
    flex: 0 0 var(--tw);
    width: var(--tw);
    max-width: var(--tw);
  }
}

.page-hero {
  padding: 40px 0 8px;
  text-align: center;
}

.page-hero h1,
.page-hero h2 {
  font-family: var(--serif);
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 400;
}

.services-offset {
  width: min(100% - 32px, 1200px);
  margin-left: 20vw;
  margin-right: 0;
}

.services-hero {
  text-align: left;
  padding-top: 40px;
  padding-bottom: 24px;
}

.services-hero .lead {
  max-width: 70ch;
}

.services-controls-align {
  text-align: right;
}

.services-controls-align .teaser-carousel__controls-inner {
  justify-content: flex-end;
}

.services-section {
  padding-top: 0;
}

.service-showcase-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: none;
}

.service-showcase-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-showcase-card__preload {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.service-showcase-card__content {
  position: relative;
  z-index: 1;
  margin: 14px;
  padding: 16px 18px;
  color: #111;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-showcase-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  color: #111;
}

.service-showcase-card p {
  margin: 0 0 12px;
  color: #111;
}

.service-showcase-card__price-btn {
  padding: 8px 14px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: calc(var(--radius) * 0.65);
  width: auto;
  align-self: flex-start;
  min-height: 0;
}

.teaser-carousel__track .service-showcase-card .card-link {
  margin-top: 0;
  padding-top: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .service-showcase-card__content {
    background: rgba(255, 255, 255, 0.65);
  }
}

@media (max-width: 1024px) {
  .services-offset {
    margin-left: 10vw;
    margin-right: auto;
  }
}

@media (max-width: 800px) {
  .services-offset {
    margin-left: auto;
    margin-right: auto;
  }
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col.reverse aside {
    order: -1;
  }
}

.about-text .prose,
.legal-body {
  white-space: pre-wrap;
  margin-bottom: 16px;
}

.about-text > .prose:first-child p {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}

.certificates-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.certificates-gallery-wrap {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

.certificates-gallery {
  width: 70%;
  margin-left: 30%;
  min-width: 0;
}

.cert-main-image {
  width: 170%;
  max-width: none;
  transform: translateX(-46%);
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
  margin-bottom: 14px;
  background: #ffffff;
}

.cert-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  width: 170%;
  transform: translateX(-46%);
}

.cert-thumb-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
  cursor: pointer;
  flex: 0 1 15%;
  min-width: 84px;
}

.cert-thumb-btn img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.cert-thumb-btn.is-active {
  border-color: var(--accent);
}

.certificates-copy h1,
.certificates-copy h2 {
  margin-top: 0;
}

@media (max-width: 980px) {
  .certificates-layout {
    grid-template-columns: 1fr;
  }

  .certificates-gallery {
    width: 100%;
    margin-left: 0;
  }

  .cert-main-image {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .cert-thumb-grid {
    width: 100%;
    transform: none;
  }
}

.about-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.about-visual__image {
  position: absolute;
  top: 0;
  left: 50%;
  width: 230%;
  max-width: none;
  height: 100%;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center center;
}

/* Узкий экран / «две колонки, но узко»: иначе портрет обрезается (230% + cover в колонке) */
@media (max-width: 960px) {
  #about .two-col {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: auto;
    overflow: visible;
  }

  .about-visual__image {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
    object-fit: contain;
    object-position: center top;
  }
}

.check-list {
  padding-left: 20px;
  margin: 0 0 16px;
}

.check-list li {
  margin-bottom: 6px;
}

.cert-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cert-row img {
  max-width: 140px;
  border-radius: 8px;
}

.muted {
  color: var(--muted);
}

.certificates-link {
  margin: 8px 0 0;
  position: relative;
  z-index: 1;
}

.certificates-link a {
  display: inline-block;
  color: var(--accent-deep);
}

.small {
  font-size: 0.875rem;
}

.mt-lg {
  margin-top: 24px;
}

.mt-xl {
  margin-top: 40px;
}

.center {
  text-align: center;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.service-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  align-items: center;
}

.service-card-body h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.service-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.price-chip {
  font-weight: 700;
  color: var(--accent-deep);
}

.pricing-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-grid > .pricing-column.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-width: 2px;
  border-color: rgba(226, 23, 173, 0.45);
  box-shadow:
    0 6px 22px rgba(226, 23, 173, 0.12),
    0 14px 44px rgba(17, 17, 17, 0.1),
    0 3px 10px rgba(17, 17, 17, 0.08);
}

.pricing-column.card > .btn {
  margin-top: auto;
}

.pricing-column-icon-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.pricing-column-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pricing-column h2 {
  margin-top: 0;
  font-family: var(--serif);
}

.price-lines {
  list-style: disc;
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-cell figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Галерея: три этапа с крупной цифрой за заголовком */
.gallery-steps {
  padding-top: clamp(48px, 8vh, 88px);
  padding-bottom: clamp(48px, 8vh, 88px);
}

.gallery-steps__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
  text-align: center;
  margin: 0 0 clamp(28px, 4vw, 44px);
  max-width: 42ch;
  margin-inline: auto;
  line-height: 1.25;
}

.gallery-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
  max-width: 1080px;
  margin-inline: auto;
}

.gallery-step {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.gallery-step__head {
  container-type: size;
  container-name: gallery-step-head;
  position: relative;
  flex: 0 0 33%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 6px;
  margin-bottom: 4px;
}

.gallery-step__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  pointer-events: none;
  user-select: none;
  font-size: 88cqh;
}

.gallery-step__heading {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 400;
  text-align: center;
  line-height: 1.28;
  max-width: 28ch;
  text-wrap: balance;
}

.gallery-step__text {
  margin: 0;
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .gallery-steps__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .gallery-step__head {
    flex: 0 0 auto;
    min-height: clamp(148px, 36vw, 220px);
  }

  .gallery-step__num {
    font-size: clamp(3.75rem, 52vw, 8rem);
  }
}

.review-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.review-card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.review-author {
  margin: 8px 0 0;
  font-weight: 600;
}

.reviews-wall {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

.reviews-wall__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.reviews-wall__item {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 3px solid var(--line);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.reviews-wall__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.review-lightbox[hidden] {
  display: none;
}

.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.review-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
}

.review-lightbox__dialog {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-lightbox__figure {
  margin: 0;
  width: auto;
}

.review-lightbox__image {
  display: block;
  width: auto;
  max-width: 92vw;
  max-height: 90vh;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.review-lightbox__close,
.review-lightbox__arrow {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.review-lightbox__close {
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
}

.review-lightbox__arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 52px;
  font-size: 1.7rem;
}

.review-lightbox__arrow--prev {
  left: max(12px, env(safe-area-inset-left, 0px));
}

.review-lightbox__arrow--next {
  right: max(12px, env(safe-area-inset-right, 0px));
}

.is-lightbox-open {
  overflow: hidden;
}

.faq {
  padding: clamp(40px, 6vw, 72px) 0;
  background: #fff;
}

.faq .shell {
  max-width: 760px;
}

.faq-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 400;
  text-align: center;
}

.faq-intro {
  margin: 0 0 26px;
  text-align: center;
  color: #333;
  font-size: 1.05rem;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border-radius: 16px;
  background: #dcdcdc;
  border: 1px solid rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  margin: 0;
  padding: 22px 28px;
  background: transparent;
  color: #000;
  font-size: clamp(1.08rem, 2.2vw, 2.1rem);
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-question:hover {
  color: #111;
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  font-weight: 400;
}

.faq-answer {
  padding: 0 28px 22px;
}

.faq-answer p {
  margin: 0;
  color: #111;
  font-size: clamp(1rem, 1.4vw, 2rem);
  line-height: 1.45;
}

.cta-consult {
  background: #fff;
  text-align: center;
  padding: clamp(48px, 7vw, 86px) 0 0;
}

.cta-consult__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-consult__title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  max-width: 24ch;
}

.cta-consult__text {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  max-width: 56ch;
}

.cta-consult__phone-row {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  margin-bottom: clamp(22px, 3.5vw, 38px);
}

.cta-consult__arrow {
  width: 40px;
  height: auto;
  display: block;
  color: var(--accent);
  fill: currentColor;
  margin-top: -58px;
  margin-left: -80px;
  transform: rotate(68deg);
}

.cta-consult__btn {
  min-width: 240px;
}

.cta-consult__ticker {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: rgba(226, 23, 173, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  min-height: 62px;
}

.cta-consult__ticker-track {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  padding: 18px 12px;
  animation: cta-ticker-slide 22s linear infinite;
}

.cta-consult__ticker-item {
  color: #fff;
  font-size: clamp(0.95rem, 1.9vw, 1.05rem);
  font-weight: 600;
  line-height: 1;
}

.cta-consult__ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 6px;
}

.cta-map {
  --cta-map-height: clamp(560px, 85dvh, 920px);
  position: relative;
  isolation: isolate;
  display: block;
  width: 100vw;
  height: var(--cta-map-height);
  min-height: var(--cta-map-height);
  scroll-margin-top: calc(var(--site-header-offset) + 24px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: #d4d4d4;
}

@supports not (height: 100dvh) {
  .cta-map {
    --cta-map-height: clamp(560px, 85vh, 920px);
  }
}

.cta-map__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d4d4d4;
}

.cta-map__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cta-map__embed--widget .cta-map__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cta-map__holder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-map__embed--constructor iframe,
.cta-map__holder iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.cta-map__media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.cta-map__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #d4d4d4;
}

.cta-map__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  background:
    linear-gradient(rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.35)),
    #d4d4d4;
}

.cta-map__fallback:hover {
  background:
    linear-gradient(rgba(17, 17, 17, 0.28), rgba(17, 17, 17, 0.42)),
    #cfcfcf;
}

.cta-map__open-link {
  font-weight: 600;
}

.cta-map__placeholder-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 10px;
}

.cta-map__card {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  width: min(88vw, 420px);
  min-height: min(88vw, 420px);
  margin: clamp(24px, 5vw, 56px);
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 23, 173, 0.35);
  box-shadow: 0 14px 38px rgba(17, 17, 17, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-map__title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-family: var(--serif);
  font-weight: 400;
}

.cta-map__text {
  margin: 0 0 10px;
  color: #222;
  font-size: 1rem;
  line-height: 1.5;
}

.cta-map__socials {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.cta-map__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(226, 23, 173, 0.35);
  color: var(--accent-deep);
  text-decoration: none;
  background: rgba(244, 142, 217, 0.16);
  font-size: 0.92rem;
  font-weight: 600;
}

.cta-map__social-link:hover {
  background: rgba(244, 142, 217, 0.28);
}

@keyframes cta-ticker-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-consult__ticker-track {
    animation: none;
  }
}

@media (max-width: 900px) {
  .reviews-wall__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-question {
    padding: 18px 20px;
    font-size: clamp(1.06rem, 4.7vw, 1.55rem);
  }

  .faq-answer {
    padding: 0 20px 18px;
  }

  .cta-consult__title {
    max-width: 20ch;
  }

  .cta-consult__arrow {
    width: 34px;
    margin-top: -48px;
    margin-left: -68px;
    transform: rotate(62deg);
  }

  .cta-consult__ticker {
    min-height: 54px;
  }

  .cta-consult__ticker-track {
    padding: 14px 10px;
    gap: 10px;
  }

  .cta-consult__ticker-dot {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
  }

  .cta-map {
    --cta-map-height: clamp(480px, 78dvh, 760px);
  }

  @supports not (height: 100dvh) {
    .cta-map {
      --cta-map-height: clamp(480px, 78vh, 760px);
    }
  }

  .cta-map__card {
    width: min(92vw, 360px);
    min-height: auto;
    margin: 16px;
  }
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.address-line {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.map-placeholder {
  min-height: 220px;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
}

.contact-aside h3 {
  margin-top: 0;
}

.site-footer {
  background: rgba(246, 195, 233, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 28px 0 0;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.footer-menu__link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.footer-menu__link:hover {
  color: var(--text);
  border-color: var(--accent);
}

.footer-logo {
  margin: 2px 0 4px;
}

.footer-legal {
  max-width: 760px;
}

.footer-legal p {
  margin: 0 0 8px;
}

.footer-legal a {
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--text);
}

.disclaimer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-address {
  margin: 6px 0;
  color: var(--muted);
}

/* Подарок: всплывающее окно при скролле до конца страницы */
.gift-popup[hidden] {
  display: none;
}

.gift-popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.gift-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.58);
  cursor: pointer;
}

.gift-popup__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.22);
  border: 1px solid var(--line);
}

.gift-popup__panel[hidden] {
  display: none;
}

.gift-popup__panel--form .gift-popup__media {
  height: clamp(200px, 36vw, 280px);
}

.gift-popup__media {
  position: relative;
  width: 100%;
  height: clamp(220px, 42vw, 320px);
  overflow: hidden;
  background: var(--bg-alt);
}

.gift-popup__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

.gift-popup__body {
  padding: 22px 22px 24px;
}

.gift-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.gift-popup__title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  text-align: center;
}

.gift-popup__lead,
.gift-popup__subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.gift-popup__subtitle {
  text-align: center;
}

.gift-popup__list {
  margin: 0 0 18px;
  padding-left: 1.2rem;
  color: var(--text);
}

.gift-popup__list li + li {
  margin-top: 6px;
}

.gift-popup__cta {
  width: 100%;
}

.gift-popup__form {
  display: grid;
  gap: 14px;
}

.gift-popup__field {
  display: grid;
  gap: 6px;
}

.gift-popup__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.gift-popup__input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.gift-popup__input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.gift-popup__phone-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}

.gift-popup__phone-wrap:focus-within {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.gift-popup__phone-prefix {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text);
}

.gift-popup__input--phone {
  border: 0;
  padding-left: 0;
  padding-right: 0;
  outline: none;
  flex: 1;
  min-width: 0;
}

.gift-popup__input--phone:focus {
  outline: none;
  border: 0;
}

.gift-popup__error {
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
}

.gift-popup__success {
  margin: 0;
  color: #067647;
  font-size: 0.9rem;
  font-weight: 600;
}

.gift-popup__consent {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.gift-popup__consent a {
  color: var(--accent-deep);
}

.is-gift-open {
  overflow: hidden;
}

@media (max-height: 720px) {
  .gift-popup__media {
    height: clamp(180px, 34vw, 240px);
  }

  .gift-popup__body {
    padding: 16px 18px 18px;
  }

  .gift-popup__title {
    margin-bottom: 8px;
    font-size: 1.3rem;
  }

  .gift-popup__lead,
  .gift-popup__subtitle {
    margin-bottom: 10px;
    font-size: 0.92rem;
  }

  .gift-popup__list {
    margin-bottom: 14px;
  }

  .gift-popup__form {
    gap: 10px;
  }

  .gift-popup__consent {
    font-size: 0.72rem;
  }
}

/* Баннер cookies */
.cookies-banner[hidden] {
  display: none !important;
}

.cookies-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: none;
  pointer-events: auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(17, 17, 17, 0.08);
}

.cookies-banner.is-visible {
  display: flex;
}

.cookies-banner a {
  color: var(--accent-deep);
  font-weight: 600;
}

.cookies-banner button {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.cookies-banner button:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.cookies-banner button:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .cookies-banner {
    flex-direction: column;
    text-align: center;
    padding-inline: 16px;
  }

  .cookies-banner button {
    width: 100%;
    max-width: 280px;
  }
}
