/* =========================================================================
   ОФОРМЛЕНИЕ САЙТА — редизайн в духе rowrug.ru
   Тексты и цены лежат в content.js. Цвета собраны в блоке :root.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Shrikhand&family=Unbounded:wght@500;600;700&family=Onest:wght@400;500;600;700&family=Caveat:wght@500;600&display=swap");

:root {
  /* --- ЦВЕТА (можно менять) --- */
  --bg:        #F1F0EC;   /* основной фон: светло-серый, тёплый */
  --bg-alt:    #E9E8E2;   /* фон секций-подложек */
  --bg-mint:   #E0E8E1;   /* мятная подложка (лента работ) */
  --ink:       #33312E;   /* основной текст, графит */
  --ink-soft:  #7B776F;   /* второстепенный текст */
  --line:      #D9D6CE;   /* линии и рамки */
  --accent:    #D9481C;   /* акцент в тексте — цвет логотипа */
  --accent-dk: #B93C15;   /* акцент при наведении */
  --pink:      #F2ACB2;   /* тёплый розовый — родственен красному логотипа */
  --pink-dk:   #EC99A1;   /* розовая заливка при наведении */
  --lime:      #F2C078;   /* тёплый песочный «стикер» */
  --card:      #FAF9F6;   /* фон карточек */

  /* --- РАЗМЕРЫ --- */
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1240px;
  --pad: 24px;

  --shadow: 0 1px 2px rgba(40, 38, 35, .03), 0 10px 30px rgba(40, 38, 35, .05);
  --shadow-lg: 0 2px 4px rgba(40, 38, 35, .05), 0 24px 56px rgba(40, 38, 35, .11);
}

/* ---------- База ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: .01em;
  font-weight: 600;
}

h2 { font-size: clamp(26px, 3.2vw, 38px); text-transform: uppercase; }
h3 { font-size: clamp(19px, 2vw, 22px); }
p  { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: clamp(36px, 3.4vw, 50px) 0; }

.section-head {
  max-width: 780px;
  margin-bottom: clamp(18px, 1.8vw, 24px);
  position: relative;
}
.section-head h2 { text-transform: uppercase; }
.sec-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .14em;
  display: block;
  margin-bottom: 10px;
}
/* сноска под секцией: стрелка + текст */
.foot-note {
  margin-top: 26px;
  padding-left: 34px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 760px;
}
.foot-note::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 18px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 100px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--pink); color: var(--ink); border: 2px solid var(--ink); }
.btn-primary:hover { background: var(--pink-dk); }

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

.btn-sm { padding: 12px 22px; font-size: 14px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 240, 236, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.scrolled { border-bottom-color: var(--line); }

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}

.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
/* Логотип — фирменный леттеринг, вырезан из картинки (photos/logo.png) */
.logo b {
  display: block;
  width: 112px;
  height: 33px;
  background: url("photos/logo-clean.png") left center / contain no-repeat;
  font-size: 0;
  color: transparent;
}
.logo span { font-size: 13px; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 10px; }
.nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink);
  text-transform: lowercase;
  padding: 9px 15px;
  border-radius: 100px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { background: var(--pink); color: var(--ink); }
.nav .nav-cta {
  font-weight: 600;
  color: var(--accent);
}
.nav .nav-cta:hover { background: var(--accent); color: var(--bg); }
/* кнопка в меню сохраняет свои цвета */
.nav a.btn-primary { color: var(--ink); }
.nav a.btn-primary:hover { color: var(--ink); }
.nav a.btn-ghost:hover { color: var(--bg); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 17px; height: 1.5px; background: var(--ink);
}
.burger span::before { top: -5px; }
.burger span::after  { top:  5px; }

/* ---------- Первый экран ---------- */
.hero { padding-top: clamp(28px, 3vw, 44px); padding-bottom: clamp(48px, 5vw, 72px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  letter-spacing: .005em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.08;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 30em;
}
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Теги — это факты, а не кнопки. Раньше они были такими же
   «таблетками», как кнопка рядом, и в них хотелось кликнуть.
   Теперь форма одна = смысл один: скруглённое и залитое кликается,
   плоский текст со звёздочкой — просто читается. */
.badges { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.badge {
  font-size: 15px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.badge::before {
  content: "✦";
  color: var(--pink);
  font-size: 13px;
}

/* акцентное слово в заголовке — розовым маркером */
.hero h1 em {
  font-style: normal;
  color: var(--ink);
  /* Бледнее кнопки: два одинаково ярких розовых пятна спорили за внимание.
     Теперь ярко-розовое с рамкой = кликается, бледное = просто акцент. */
  background: #F7CDD1;
  padding: 0 .18em;
  border-radius: 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* «Смотреть работы» — ссылка с подчёркиванием, а не вторая кнопка */
.btn-link {
  background: none;
  padding: 15px 4px;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
}
.btn-link:hover { border-bottom-color: var(--ink); color: var(--ink); }

/* --- медиа первого экрана: фото + полароид + плашка --- */
.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
}

/* Крупное фото со скруглением — как карточки rowrug */
.blob {
  position: absolute;
  inset: 0 0 5% 14%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: var(--shadow-lg);
}
.blob img, .blob video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* «Полароид» поверх — карточка с подписью */
.polaroid {
  position: absolute;
  /* Растёт только влево: правый край держим на 29% (left + width),
     чтобы нахлёст на видео не менялся. */
  left: -14%;
  bottom: -5%;
  width: 43%;
  margin: 0;
  padding: 10px 10px 0;
  /* бумага, а не белила: чистый #fff выдаёт компьютерную картинку */
  background: #F7F4EA;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(40,38,35,.10), 0 22px 44px rgba(40,38,35,.20);
  transform: rotate(-5deg);
  transition: transform .3s ease;
}
/* зерно поверх всей карточки — печать, а не рендер */
.polaroid::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22140%22%20height%3D%22140%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.85%22%20numOctaves%3D%223%22%20seed%3D%224%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22140%22%20height%3D%22140%22%20filter%3D%22url%28%23n%29%22%20opacity%3D%220.55%22%2F%3E%3C%2Fsvg%3E");
  mix-blend-mode: multiply;
  opacity: .5;
  pointer-events: none;
}
.polaroid:hover { transform: rotate(0deg); }
.polaroid-img { aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--bg-alt); }
.polaroid-img img {
  width: 100%; height: 100%; object-fit: cover;
  /* лёгкий тёплый сдвиг: снимок, а не скриншот */
  filter: sepia(.12) saturate(1.06) contrast(.96);
}
.polaroid figcaption {
  /* Рукописный, а не моноширинный: подпись на полароиде пишут ручкой,
     а не набирают в терминале. Caveat мелкий по природе — отсюда 18px. */
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--ink-soft);
  padding: 10px 2px 12px;
  text-align: center;
}

/* Неоновый «стикер» с фактом — как ценник rowrug */
.pill {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #C4D2C5;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  z-index: 2;
}

/* Заглушка на месте фото, пока файла нет */
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.4;
  color: var(--ink-soft);
  background: repeating-linear-gradient(135deg, #E5E2DA 0 14px, #ECEAE3 14px 28px);
}

/* ---------- О студии ---------- */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-text { font-size: 18px; color: var(--ink-soft); }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
}
.stat b {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: 0;
}
.stat span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Услуги ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.service-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }

.service-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service h3 { text-transform: uppercase; font-size: clamp(17px, 1.7vw, 20px); letter-spacing: .02em; }
.service-sub { font-size: 14px; color: var(--accent); font-weight: 600; margin-top: 8px; }
.service-desc { margin-top: 14px; color: var(--ink-soft); font-size: 16px; }

.service-meta {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.service-price {
  font-family: "Unbounded", sans-serif;
  font-size: 21px;
  font-weight: 600;
}
.service-note { font-size: 14px; color: var(--ink-soft); }
.service-duration {
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.features { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.features li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-soft);
}
.features li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

.service .btn { margin-top: 26px; align-self: flex-start; }

/* Если услуг нечётное число, последняя растягивается на всю ширину */
.service:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
.service:last-child:nth-child(odd) .service-media { flex: 0 0 44%; aspect-ratio: auto; }
.service:last-child:nth-child(odd) .service-body { flex: 1; justify-content: center; }

/* ---------- Акции ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promo {
  /* Билет: по бокам «прокусы», между ними — линия перфорации.
     Вырезы делает маска, поэтому у карточки нет рамки — её роль
     играет тень. --notch управляет размером выреза. */
  --notch: 12px;
  --perf: 86px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow);
  -webkit-mask-image:
    radial-gradient(circle var(--notch) at 0 var(--perf), transparent 98%, #000 100%),
    radial-gradient(circle var(--notch) at 100% var(--perf), transparent 98%, #000 100%);
          mask-image:
    radial-gradient(circle var(--notch) at 0 var(--perf), transparent 98%, #000 100%),
    radial-gradient(circle var(--notch) at 100% var(--perf), transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
/* линия отрыва между вырезами */
.promo::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  top: var(--perf);
  border-top: 2px dashed var(--line);
}
.promo-val {
  font-family: "Unbounded", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 30px;
}
.promo h3 { text-transform: uppercase; font-size: 16px; letter-spacing: .03em; }
.promo p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Как проходит ---------- */
.process { background: var(--bg-alt); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 26px; }

.step { position: relative; }

/* Номер в кружке. Цвета — приглушённая палитра rowrug. */
.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.step:nth-child(4n+1) .step-num { background: var(--pink); }
.step:nth-child(4n+2) .step-num { background: #C4D2C5; }
.step:nth-child(4n+3) .step-num { background: var(--lime); }
.step:nth-child(4n+4) .step-num { background: var(--ink); color: var(--bg); }

/* Пунктир от кружка к следующему шагу */
.step::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 64px;
  right: -26px;
  border-top: 2px dashed var(--line);
}
.step:nth-child(3n)::before, .step:last-child::before { display: none; }

.step h3 { font-size: 18px; }
.step p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }

/* ---------- Сертификаты ---------- */
.certs { background: var(--bg-mint); }
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.certs-steps { display: grid; gap: 28px; }

.cert-step { position: relative; }
.cert-step-head { display: flex; align-items: center; gap: 14px; }
.cert-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  flex: none;
}
.cert-options { list-style: none; margin: 18px 0 0; padding: 0 0 0 48px; display: grid; gap: 12px; }

/* Карандашная линия к каждому варианту */
.cert-options li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
}
.cert-options li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 20px; height: 5px;
  background: var(--accent);
  border-radius: 3px;
  filter: url(#crayon);
  opacity: .85;
}

.certs-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.certs-media img { width: 100%; height: auto; }
.certs-media .ph { aspect-ratio: 4 / 3; }

.certs-bottom {
  margin-top: clamp(24px, 2.5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.certs-bottom .foot-note { margin-top: 0; }

/* ---------- Лента работ ---------- */
.marquee {
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.m-item {
  margin: 0;
  width: 290px;
  flex: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.m-item img, .m-item .ph { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.m-item figcaption { font-size: 13px; color: var(--ink-soft); padding: 10px 12px; }

/* ---------- Расписание ---------- */
.sched-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.sched-row {
  display: grid;
  grid-template-columns: 170px 80px 1fr 150px 150px 132px;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.sched-row:last-child { border-bottom: none; }
.sched-row.is-sold { opacity: .5; }

.sched-date { font-weight: 600; }
.sched-time { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.sched-title { color: var(--ink-soft); }
.sched-price { font-weight: 600; white-space: nowrap; }

.tag {
  justify-self: start;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.tag.open { background: #DFEBDD; color: #2C6B32; }
.tag.few  { background: #F7E8DC; color: #A85B12; }
.tag.sold { background: #E7E5DF; color: #7B776F; }

.sched-note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Галерея ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gal-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-alt);
}
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gal-item:hover img { transform: scale(1.04); }
.gal-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 14px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}

/* ---------- Отзывы — коллаж «как в сторис»: разные размеры, наклоны, скотч и звёздочки ---------- */
.reviews { background: var(--bg-alt); position: relative; overflow: hidden; }
.reviews::before, .reviews::after {
  position: absolute;
  font-size: 120px;
  line-height: 1;
  color: var(--pink);
  content: "✦";
  transform: rotate(-12deg);
  left: 2%; top: 60px;
  opacity: .8;
  pointer-events: none;
}
.reviews::after {
  content: "✧";
  color: var(--lime);
  left: auto; right: 3%; top: auto; bottom: 60px;
  font-size: 90px;
  transform: rotate(14deg);
}
.rev-grid {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  /* Фото вылезают за карточку на -16px вправо и -22px вверх.
     Многоколоночная вёрстка их срезала, флекс — нет. */
  padding: 26px 20px 0;
  margin: 0 -20px;
}
.rev-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.review {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  /* Отступ между карточками задаёт gap у .rev-col. Свой margin-bottom
     складывался бы с ним и давал 48px вместо 22.
     break-inside и flow-root — наследие columns, во флексе не нужны. */
  position: relative;
}
/* полоска «скотча» сверху */
.review::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 92px; height: 26px;
  margin-left: -46px;
  background: rgba(233, 226, 208, .85);
  box-shadow: 0 1px 3px rgba(40,38,35,.12);
  transform: rotate(-2.5deg);
}
/* разные наклоны и размеры — как наклеенные вручную карточки */
.review:nth-child(4n+1) { transform: rotate(-1.4deg); }
.review:nth-child(4n+2) { transform: rotate(1.2deg); }
.review:nth-child(4n+3) { transform: rotate(-.8deg); margin-top: 14px; }
.review:nth-child(4n)   { transform: rotate(1.6deg); }
.review:nth-child(4n+2)::before { transform: rotate(3deg); }

/* Мини-фото из отзывов — приклеены к карточкам, как в сторис.
   Порядок = порядок отзывов в content.js. Добавили/переставили отзыв —
   поменяйте здесь номер nth-child или имя файла. */
.review::after {
  content: "";
  position: absolute;
  width: 104px; height: 104px;
  right: -16px; top: -22px;
  background: #fff center / cover no-repeat;
  border: 5px solid #fff;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(40,38,35,.22);
  transform: rotate(5deg);
  background-image: var(--photo);
  display: none;
}
/* Показываем, только если у отзыва задано фото */
.review.has-photo::after { display: block; }
.review:nth-child(2)::after { transform: rotate(-4deg); width: 130px; height: 84px; }
.review:nth-child(3)::after { transform: rotate(3.5deg); height: 122px; }
.review:nth-child(4)::after { transform: rotate(-5deg); width: 122px; height: 92px; }
.review:nth-child(5)::after { transform: rotate(4deg); }
.review:nth-child(6)::after { transform: rotate(-3.5deg); height: 126px; }
.review:nth-child(3n) .review-text { font-size: 17px; }
.review:nth-child(5n+2) { padding: 32px; }
.review:hover { transform: rotate(0deg); transition: transform .25s ease; }

.review-head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  flex: none;
}
.review:nth-child(3n+2) .avatar { background: #C4D2C5; }
.review:nth-child(3n)   .avatar { background: var(--lime); }
.review-who { min-width: 0; }
.review-name { font-weight: 600; font-size: 16px; }
.review-count { font-size: 13px; color: var(--ink-soft); }
.review-src {
  margin-left: auto;
  margin-right: 78px;
  font-size: 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}

.review-rate { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.star { color: #F2A93B; font-size: 16px; line-height: 1; letter-spacing: .1em; }
.star.off { color: var(--line); }
.review-date { font-size: 13px; color: var(--ink-soft); }

.review-text { margin-top: 12px; font-size: 15.5px; color: #55524C; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 48px 15px 0;
  position: relative;
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -8px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item p { padding: 0 15% 18px 0; color: var(--ink-soft); }

/* ---------- Контакты ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contacts-text { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }
.messengers { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-row { padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row b {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 7px;
}
.contact-row a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-note {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  opacity: .85;
}
.contact-row a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Подвал ---------- */
.footer {
  background: #3B3936;
  color: #B7B2A9;
  padding: 44px 0 32px;
}
.footer a { color: #B7B2A9; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer .logo b { filter: none; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 15px; }
.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

/* ---------- Мобильные ---------- */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 80px 0 auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:hover { background: none; color: var(--accent); }
  .nav .btn { margin-top: 16px; }
  .burger { display: flex; }

  .hero-grid,
  .about-grid,
  .services-grid,
  .contacts-grid { grid-template-columns: 1fr; }
  .reviews::before, .reviews::after { display: none; }

  .hero-media { aspect-ratio: 1 / 1; order: -1; margin-bottom: 12px; }
  .blob { inset: 0 0 5% 12%; }
  .polaroid { width: 36%; left: 0; right: auto; }
  .pill { font-size: 13px; padding: 10px 16px; right: 0; bottom: 0; }

  .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .step::before { display: none; }

  .rev-grid { flex-direction: column; padding: 26px 20px 0; }
  .rev-col { width: 100%; }
  .certs-grid { grid-template-columns: 1fr; }
  .certs-media { order: -1; }
  .promo-grid { grid-template-columns: 1fr; }
  .m-item { width: 210px; }

  .service:last-child:nth-child(odd) { flex-direction: column; }
  .service:last-child:nth-child(odd) .service-media { flex: none; aspect-ratio: 16 / 10; }

  .sched-row {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    padding: 20px;
  }
  .sched-date { grid-column: 1; }
  .sched-time { grid-column: 2; text-align: right; }
  .sched-title { grid-column: 1 / -1; }
  .sched-price { grid-column: 1; }
  .tag { grid-column: 2; justify-self: end; }
  .sched-row .btn { grid-column: 1 / -1; margin-top: 10px; width: 100%; }

  .faq-item p { padding-right: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .stats { grid-template-columns: 1fr; }
  .certs-bottom .btn { width: 100%; }
  .btn { width: 100%; }
  .hero-actions, .messengers { flex-direction: column; }
  .service-body, .review, .contact-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
