/* =========================================================
   FROLIKI, дизайн-система лендинга
   Синтез трёх референсов:
   - Kid Clay TV: тёплая кремовая база + приглушённые цветные плашки
   - Three.js Journey: структура (цифры под хиро, модули программы, CTA-блок)
   - Мастерская Mars: уют мастерской, полароиды, рукописный акцент
   ========================================================= */

:root {
  /* --- цвет: одна тёплая палитра, один яркий акцент (коралл) --- */
  --cream: #F3EEE1;
  --cream-deep: #EAE2D0;
  --paper: #FDFAF3;
  --terracotta: #D99A8F;
  --terracotta-deep: #C17A6C;
  --olive: #8B9169;
  --olive-deep: #6C7150;
  --coral: #E8734A;
  --coral-deep: #B8532E;
  --ink: #3A2C22;
  --ink-soft: #6E5C4E;
  --ink-faint: #7D6A57;
  --thread: #C9BBA4;

  --shadow-photo: 0 14px 30px -12px rgba(58, 44, 34, 0.28);
  --shadow-card: 0 10px 24px -14px rgba(58, 44, 34, 0.22);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --container: 1120px;

  --section-pad: clamp(56px, 9vw, 120px);
  --section-pad-sm: clamp(40px, 6vw, 72px);

  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-accent: 'Caveat', 'Segoe Script', cursive;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw + 12px, 19px);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
section { position: relative; }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--coral-deep);
  transform: rotate(-2deg);
  margin-bottom: 6px;
}
h2.section-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-lead {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.1vw + 11px, 18px);
  margin-top: 14px;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  /* тёмный конец коралла ради контраста белого текста (WCAG AA) */
  background: linear-gradient(135deg, #D9622F, var(--coral-deep) 62%, #97401F);
  color: #FFFDF9;
  box-shadow: 0 14px 28px -12px rgba(151, 64, 31, 0.55);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 18px 32px -12px rgba(200, 90, 51, 0.62); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-on-dark {
  background: var(--paper);
  color: var(--coral-deep);
}
.btn-on-dark:hover { filter: brightness(1.03); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- decorative: washi tape / stitch ---------- */
.tape {
  position: absolute;
  width: 76px;
  height: 26px;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 6px, rgba(255,255,255,.3) 6px 12px), var(--terracotta);
  opacity: .85;
  box-shadow: 0 3px 6px rgba(0,0,0,.12);
  border-radius: 2px;
  z-index: 2;
}
.tape--olive { background: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 6px, rgba(255,255,255,.3) 6px 12px), var(--olive); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 238, 225, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 44, 34, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--font-accent);
  font-size: 30px;
  font-weight: 700;
  color: var(--coral-deep);
}
.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
}
.nav-toggle-label svg { width: 22px; height: 22px; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.nav-menu a:not(.btn) {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-menu a:not(.btn):hover { color: var(--coral-deep); border-color: var(--coral); }
.nav-menu .btn { padding: 12px 22px; min-height: 44px; font-size: 14.5px; }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: var(--section-pad);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 10px; }
.hero-title {
  font-weight: 900;
  font-size: clamp(38px, 7.5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero-title .accent { color: var(--coral-deep); }
.hero-sub {
  margin-top: 20px;
  font-size: clamp(17px, 1.2vw + 12px, 20px);
  color: var(--ink-soft);
  max-width: 54ch;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-stat {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-stat svg { width: 18px; height: 18px; color: var(--coral-deep); flex-shrink: 0; }
.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-visual {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  cursor: ns-resize;
}
.polaroid {
  position: relative;
  background: var(--paper);
  padding: 12px 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-photo);
}
.polaroid img {
  border-radius: 8px;
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}
.polaroid figcaption {
  font-family: var(--font-accent);
  font-size: 20px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
}
.hero-photo-main {
  width: min(78vw, 300px);
  position: relative;
  z-index: 3;
  --rot: -3deg;
}
.hero-photo-side {
  width: min(46vw, 170px);
  position: absolute;
  z-index: 1;
}
.hero-photo-side.side-a { top: -6%; left: 2%; --rot: 9deg; }
.hero-photo-side.side-b { bottom: -4%; right: 0%; z-index: 2; --rot: -8deg; }

/* ---------- generic "plaque" sections (цветные плашки) ---------- */
.plaque { padding: var(--section-pad) 0; }
/* терракотовая плашка светлая, поэтому текст тёмный (проходит WCAG AA) */
.plaque--terracotta { background: var(--terracotta); color: #3A241C; }
.plaque--terracotta .section-title,
.plaque--terracotta .eyebrow { color: #3A241C; }
.plaque--terracotta .section-lead { color: rgba(58,36,28,.82); }
/* оливковая плашка сделана темнее (--olive-deep), чтобы светлый текст держал контраст */
.plaque--olive { background: var(--olive-deep); color: #FBF9EF; }
.plaque--olive .section-title { color: #FBF9EF; }
.plaque--olive .eyebrow { color: #FBF9EF; }
.plaque--olive .section-lead { color: rgba(251,249,239,.92); }
.plaque--cream { background: var(--cream); }
.plaque--paper { background: var(--cream-deep); }

/* ---------- UTP ---------- */
.utp {
  display: grid;
  gap: 40px;
  align-items: start;
}
.utp-text { font-size: clamp(17px, 1.1vw + 12px, 19.5px); }
.pull-quote {
  margin-top: 28px;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  transform: rotate(-1.2deg);
}
.pull-quote p {
  font-family: var(--font-accent);
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--ink);
  line-height: 1.3;
}
.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ---------- who-for cards ---------- */
.for-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.for-col h3 {
  font-family: var(--font-accent);
  font-size: 26px;
  margin-bottom: 16px;
  color: var(--ink);
}
.for-col.not h3 { color: var(--ink-soft); }
.for-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 18px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.for-card svg {
  width: 26px; height: 26px; flex-shrink: 0; color: var(--coral-deep);
}
.for-col.not .for-card { background: rgba(253,250,243,.55); box-shadow: none; border: 1.5px dashed var(--thread); }
.for-col.not .for-card svg { color: var(--ink-faint); }
.for-card p { color: var(--ink); font-weight: 600; font-size: 15.5px; }
.note-card {
  margin-top: 24px;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transform: rotate(1deg);
}
.note-card p { font-family: var(--font-accent); font-size: 22px; }
.note-card cite { display: block; margin-top: 8px; font-style: normal; font-size: 13.5px; color: var(--ink-faint); font-weight: 700;}

/* ---------- MK carousel ---------- */
.mk-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 10px 4px 22px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--terracotta-deep) transparent;
}
.mk-scroll::-webkit-scrollbar { height: 8px; }
.mk-scroll::-webkit-scrollbar-thumb { background: var(--terracotta-deep); border-radius: 999px; }
.mk-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: clamp(190px, 42vw, 240px);
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 10px 10px 16px;
  box-shadow: var(--shadow-photo);
  position: relative;
}
.mk-card img {
  border-radius: 8px;
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}
.mk-card figcaption {
  font-family: var(--font-accent);
  font-size: 22px;
  text-align: center;
  margin-top: 10px;
  color: var(--ink);
}
.mk-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 8px auto 0;
  width: fit-content;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-deep);
  text-decoration: none;
  cursor: pointer;
}
.mk-more svg { width: 13px; height: 13px; }
.mk-more:hover { color: var(--ink); }
.mk-hint {
  margin-top: -6px;
  font-size: 13.5px;
  color: var(--ink-faint);
  font-weight: 700;
}

/* ---------- process modules ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.process-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}
.process-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.process-card .num {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--coral-deep);
  color: #fff;
  font-weight: 900;
  width: 34px; height: 34px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,.18);
}
.process-card .body { padding: 18px 18px 22px; }
.process-card h3 { font-weight: 900; font-size: 19px; margin-bottom: 6px; }
.process-card p { color: var(--ink-soft); font-size: 15.5px; }

.process-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 640px;
  margin: 40px auto 0;
  padding: 18px 26px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.process-note svg { width: 26px; height: 26px; color: var(--coral-deep); flex: 0 0 auto; }
.process-note p { margin: 0; font-weight: 800; font-size: 18px; color: var(--ink); }

.takeaway-grid {
  margin-top: 48px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.takeaway h4 {
  font-family: var(--font-accent);
  font-size: 24px;
  margin-bottom: 12px;
}
.takeaway ul li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--thread);
  font-size: 15.5px;
}
.takeaway ul li:last-child { border-bottom: none; }
.takeaway ul li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--coral-deep); margin-top: 2px;}

/* ---------- about ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.about-photo { justify-self: center; }
.about-photo .polaroid { width: min(78vw, 300px); transform: rotate(2.5deg); }
.about-text p { margin-bottom: 16px; color: var(--ink); }
.signature {
  font-family: var(--font-accent);
  font-size: 30px;
  color: var(--coral-deep);
  margin-top: 6px;
}

/* ---------- reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.review-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 24px 22px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.review-card:nth-child(odd) { transform: rotate(-1.4deg); }
.review-card:nth-child(even) { transform: rotate(1.2deg); }
.review-card p { font-size: 17px; line-height: 1.5; }
.review-card .quote-mark {
  font-family: var(--font-accent);
  font-size: 46px;
  color: var(--terracotta-deep);
  line-height: .4;
  display: block;
  margin-bottom: 8px;
}
.review-card cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.safety-note {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(253,250,243,.7);
  border: 1.5px dashed var(--olive-deep);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.safety-note svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--olive-deep); }
.safety-note p { font-weight: 600; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-grid .g-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 1/1;
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  display: block;
}
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.06); }
.gallery-grid .g-item:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ---------- лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(20, 14, 10, 0.85); }
.lightbox__img {
  position: relative;
  max-width: min(90vw, 720px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-photo);
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}
.lightbox__close:hover { background: var(--terracotta); }
.lightbox__close svg { width: 20px; height: 20px; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}
.lightbox__nav:hover { background: var(--terracotta); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--prev svg { transform: rotate(180deg); }
.lightbox__nav--next { right: 14px; }
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}

/* ---------- tariff ---------- */
.tariff-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-photo);
  text-align: center;
  position: relative;
}
.tariff-badge {
  display: inline-block;
  background: var(--coral-deep);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.tariff-card h3 { font-weight: 900; font-size: clamp(26px, 4vw, 34px); margin-bottom: 4px; }
.tariff-sub { color: var(--ink-soft); font-size: 16px; }
.price-note {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  background: #FBE3DA;
  border: 2px dashed var(--coral);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 440px;
  margin: 0 auto;
  transform: rotate(-1deg);
}
.price-note svg { width: 34px; height: 34px; color: var(--coral-deep); flex-shrink: 0; }
.price-note b {
  font-family: var(--font-accent);
  font-size: 30px;
  color: var(--coral-deep);
  white-space: nowrap;
}

/* карточка нового МК: фото и тариф в одной карточке */
.tariff-card--photo {
  max-width: 1000px;
  padding: 0;
  overflow: hidden;
  display: grid;
}
.tariff-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.tariff-card__body { padding: clamp(28px, 4vw, 44px); }
@media (min-width: 860px) {
  .tariff-card--photo { grid-template-columns: 52% 1fr; }
  .tariff-card--photo .tariff-card__body { padding: 32px 36px; }
  .tariff-card__body { display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .tariff-card__body > * { align-self: stretch; }
  .tariff-card__body > .tariff-badge { align-self: center; }
}

/* снегопад в блоке новогоднего МК */
.tariff-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-deep) 0%, #E2D6BE 100%);
}
.tariff-section > .container { position: relative; z-index: 1; }
.snowfall { position: absolute; inset: 0; pointer-events: none; }
.snowflake {
  position: absolute;
  top: -40px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(58, 44, 34, 0.35));
  animation: snow-fall linear infinite;
}.snowflake svg { width: 100%; height: 100%; display: block; animation: snow-spin linear infinite; animation-duration: inherit; }
.snowflake--warm { color: var(--terracotta); filter: none; }
@keyframes snow-fall {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(var(--drift, 30px), calc(var(--fall, 1100px) / 2), 0); }
  100% { transform: translate3d(0, var(--fall, 1100px), 0); }
}
@keyframes snow-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .snowflake, .snowflake svg { animation: none; }
}
.tariff-card .price {
  font-family: var(--font-accent);
  font-size: 40px;
  color: var(--coral-deep);
  margin: 14px 0;
}
.tariff-list {
  text-align: left;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}
.tariff-list li { display: flex; gap: 10px; font-size: 16px; }
.tariff-list svg { width: 22px; height: 22px; color: var(--olive-deep); flex-shrink: 0; margin-top: 1px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 16.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.faq-item summary .plus svg { width: 14px; height: 14px; transition: transform .2s ease; }
.faq-item[open] summary .plus svg { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 20px 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- final CTA ---------- */
.final-cta {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(232,115,74,.28), transparent 55%),
              radial-gradient(circle at 85% 80%, rgba(139,145,105,.28), transparent 55%);
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 {
  font-weight: 900;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto;
}
.final-cta p {
  margin: 20px auto 0;
  max-width: 60ch;
  color: rgba(253,250,243,.82);
  font-size: clamp(16px, 1.1vw + 11px, 19px);
}
.final-cta .hero-cta { justify-content: center; margin-top: 34px; }
.final-cta .vk-note { margin-top: 18px; font-size: 14px; color: rgba(253,250,243,.65); }
.final-cta .vk-note a { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--cream-deep);
  padding: 40px 0 28px;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.site-footer .logo { font-size: 26px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-weight: 700; font-size: 14.5px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--coral-deep); }
.footer-copy { font-size: 13px; color: var(--ink-faint); }

/* ---------- scroll reveal (progressive enhancement) ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   BREAKPOINTS, mobile-first, min-width upward
   ========================================================= */

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .for-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .takeaway-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .nav-menu a:not(.btn) { font-size: 15.5px; }
  .hero .container { grid-template-columns: 1.05fr .95fr; gap: 30px; }
  .hero-visual { min-height: 420px; }
  .about-wrap { grid-template-columns: 320px 1fr; }
  .utp { grid-template-columns: 1.1fr .9fr; }
}

@media (min-width: 1024px) {
  .nav-toggle-label { display: none !important; }
  .nav-menu { display: flex !important; position: static; height: auto; padding: 0; background: none; flex-direction: row; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023.98px) {
  .nav-toggle-label { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px clamp(20px, 5vw, 48px);
    gap: 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    overflow-y: auto;
  }
  .nav-menu .btn { width: 100%; justify-content: center; }
  #nav-toggle:checked ~ .nav-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (min-width: 900px) {
  .hero-photo-main { width: 320px; }
}

/* ---------- попап записи на МК ---------- */
.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.signup-modal.is-open { display: flex; }
body.has-open-modal { overflow: hidden; }

.signup-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(58, 44, 34, 0.5);
  backdrop-filter: blur(2px);
}

.signup-modal__card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-photo);
  padding: 40px 28px 28px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.signup-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--cream-deep);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.signup-modal__close svg { width: 18px; height: 18px; }
.signup-modal__close:hover { background: var(--terracotta); }

.signup-modal h3 {
  font-family: var(--font-accent);
  font-size: 28px;
  color: var(--ink);
  margin: 2px 0 18px;
  line-height: 1.15;
}

.signup-modal .field { display: block; margin-bottom: 14px; }
.signup-modal .field span {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.signup-modal .field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--thread);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.signup-modal .field input:focus { outline: none; border-color: var(--coral); }

.signup-modal__note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 6px 0 18px;
}
.signup-modal__note svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--coral-deep); margin-top: 1px; }
.signup-modal__note a { color: var(--coral-deep); font-weight: 700; }

.signup-modal__success-view { text-align: center; }
.signup-modal__success-icon { width: 46px; height: 46px; color: var(--olive-deep); margin-bottom: 6px; }
.signup-modal__success-view h3 { margin-bottom: 8px; }
.signup-modal__success-view p { color: var(--ink-soft); margin: 0 0 14px; }
.signup-modal__success-view .signup-modal__note { text-align: left; }

/* ---------- вращающийся стек фото МК в hero: объёмный переворот вокруг вертикальной оси ---------- */
.hero-photo-main,
.hero-photo-side {
  transform: rotate(var(--rot, 0deg)) rotateY(0deg);
  transition: transform .32s cubic-bezier(.5, 0, .5, 1);
  backface-visibility: hidden;
  will-change: transform;
}
.hero-photo-main.is-flip-out,
.hero-photo-side.is-flip-out {
  transform: rotate(var(--rot, 0deg)) rotateY(90deg);
}
.hero-photo-main.is-flip-in,
.hero-photo-side.is-flip-in {
  transform: rotate(var(--rot, 0deg)) rotateY(-90deg);
}
.hero-photo-main.no-transition,
.hero-photo-side.no-transition { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-photo-main, .hero-photo-side { transition: none; }
}

/* ---------- подсказка «покрутите колёсико» у стека фото в hero ---------- */
.hero-stack-hint {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translate(-50%, 100%);
  display: none;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  margin: 0;
  padding: 8px 16px;
  background: var(--paper);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-soft);
  text-align: center;
  z-index: 4;
  pointer-events: none;
}
.hero-stack-hint svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--coral-deep);
  animation: hero-hint-bounce 1.6s ease-in-out infinite;
}
@keyframes hero-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@media (hover: hover) and (pointer: fine) {
  .hero-stack-hint { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stack-hint svg { animation: none; }
}

/* =========================================================
   ПОДСТРАНИЦА МК (ovechka-lyusya.html и будущие страницы МК)
   ========================================================= */
.mk-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(circle at 85% 15%, rgba(232,115,74,.14), transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, #E9DDC8 100%);
}
.mk-hero > .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}
.mk-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.mk-back svg { width: 18px; height: 18px; }
.mk-back:hover { color: var(--coral-deep); }
.mk-hero .eyebrow { margin-bottom: 10px; display: flex; }
.mk-hero .hero-sub b { color: var(--ink); }
.mk-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 12px 22px;
  background: var(--paper);
  border: 2px dashed var(--coral);
  border-radius: 999px;
  font-weight: 800;
  font-size: 18px;
  transform: rotate(-1.5deg);
}
.mk-start svg { width: 24px; height: 24px; color: var(--coral-deep); }
.mk-start b { color: var(--coral-deep); }
.mk-hero__photo {
  width: min(100%, 440px);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  border: 10px solid var(--paper);
}
.mk-hero__photo img { width: 100%; height: auto; }

/* полоса ключевых фактов */
.mk-facts-wrap { background: var(--coral-deep); color: #FFFDF9; padding: 22px 0; }
.mk-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.mk-facts li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; line-height: 1.35; }
.mk-facts svg { width: 28px; height: 28px; flex-shrink: 0; opacity: .9; }

/* три игрушки */
.toy-grid { display: grid; gap: 28px; }
.toy-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-photo);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.toy-card:nth-child(1) { transform: rotate(-1.2deg); }
.toy-card:nth-child(3) { transform: rotate(1.2deg); }
.toy-card__photo { overflow: hidden; aspect-ratio: 2 / 3; }
.toy-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.toy-card__body { position: relative; padding: 30px 26px 26px; }
@media (hover: hover) {
  .toy-card:hover { transform: translateY(-8px) rotate(0); box-shadow: 0 26px 40px -18px rgba(58, 44, 34, .4); }
  .toy-card:hover .toy-card__photo img { transform: scale(1.05); }
}
.toy-card__num {
  position: absolute;
  top: -20px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--coral-deep);
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}
.toy-card h3 {
  font-family: var(--font-accent);
  font-size: 38px;
  font-weight: 700;
  color: var(--coral-deep);
  line-height: 1.1;
  margin-bottom: 14px;
}
.toy-card ul { display: grid; gap: 8px; }
.toy-card li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.toy-card li svg { width: 20px; height: 20px; color: var(--olive-deep); flex-shrink: 0; }
.toy-card__opt { font-size: 13px; font-weight: 700; color: var(--ink-faint); background: var(--cream); padding: 2px 8px; border-radius: 999px; }

/* шаги «как проходит» */
.mk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.mk-steps li {
  background: rgba(251, 249, 239, .1);
  border: 1.5px solid rgba(251, 249, 239, .28);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.mk-steps__num { font-family: var(--font-accent); font-size: 44px; line-height: 1; color: #F6C9B4; }
.mk-steps h3 { font-weight: 900; font-size: 20px; margin: 8px 0 6px; }
.mk-steps p { color: rgba(251, 249, 239, .88); font-size: 16px; }

@media (min-width: 640px) {
  .mk-facts { grid-template-columns: repeat(4, 1fr); }
  .toy-grid { grid-template-columns: repeat(3, 1fr); }
  .mk-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .mk-hero > .container { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}
@media (max-width: 639.98px) {
  .toy-grid { gap: 30px; }
}

/* обратный отсчёт до старта */
.countdown { margin-top: 18px; }
.countdown__label { font-weight: 800; font-size: 14px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.countdown__boxes { display: flex; gap: 10px; }
.countdown__boxes span {
  display: flex; flex-direction: column; align-items: center;
  min-width: 74px; padding: 10px 8px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.countdown__boxes b { font-size: 30px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__boxes small { font-size: 12.5px; opacity: .75; margin-top: 4px; }

/* кнопка под игрушками */
.mk-mid-cta { margin-top: 44px; text-align: center; }
.mk-mid-cta p { font-family: var(--font-accent); font-size: clamp(26px, 3vw, 32px); color: var(--coral-deep); margin-bottom: 14px; }

/* почему стоит */
.why-grid { display: grid; gap: 20px; }
.why-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  border-top: 5px solid var(--coral);
}
.why-card:nth-child(2) { border-top-color: var(--olive); }
.why-card:nth-child(3) { border-top-color: var(--terracotta); }
.why-card svg { width: 38px; height: 38px; color: var(--coral-deep); margin-bottom: 12px; }
.why-card h3 { font-weight: 900; font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.why-card p { color: var(--ink-soft); font-size: 16px; }

/* отзывы и работы учениц */
.mk-students { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.mk-students img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 4px solid var(--paper); box-shadow: var(--shadow-card); }
.mk-students__cap { text-align: center; margin-top: 18px; }
.mk-students__cap a { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; border-bottom: 2px solid currentColor; }
.mk-students__cap svg { width: 18px; height: 18px; }

/* автор */
.mk-author { display: grid; gap: 28px; align-items: center; max-width: 900px; }
.mk-author img { width: 200px; height: 200px; border-radius: 999px; object-fit: cover; border: 8px solid var(--paper); box-shadow: var(--shadow-photo); margin: 0 auto; }
.mk-author .section-title { margin-bottom: 14px; }
.mk-author p:not(.eyebrow):not(.signature) { color: var(--ink-soft); }

/* липкая кнопка на телефоне */
.mk-sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px;
  background: var(--paper);
  border-radius: 999px;
  box-shadow: 0 16px 34px -10px rgba(58, 44, 34, .45);
  transform: translateY(140%);
  transition: transform .3s ease;
}
.mk-sticky.is-shown { transform: translateY(0); }
.mk-sticky__price { display: flex; flex-direction: column; line-height: 1.15; }
.mk-sticky__price b { font-size: 20px; font-weight: 900; color: var(--coral-deep); }
.mk-sticky__price small { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.mk-sticky .btn { padding: 12px 18px; min-height: 46px; font-size: 15px; }

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .mk-students { grid-template-columns: repeat(6, 1fr); }
  .mk-author { grid-template-columns: 220px 1fr; gap: 44px; }
  .mk-author img { width: 220px; height: 220px; }
}
@media (min-width: 1024px) {
  .mk-reviews { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .mk-sticky { display: none; }
}
@media (max-width: 899.98px) {
  .page-mk .site-footer { padding-bottom: 100px; }
}

/* ---------- попап заявки: доп. элементы ---------- */
.signup-modal h3 { font-size: 34px; color: var(--coral-deep); margin-bottom: 14px; }
.signup-modal__vk {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FBE3DA; border: 2px dashed var(--coral);
  border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 18px;
  font-size: 14px; line-height: 1.45; color: var(--ink);
}
.signup-modal__vk svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--coral-deep); margin-top: 1px; }
.signup-modal .field span i { font-style: normal; font-weight: 600; color: var(--ink-faint); }
.signup-modal .field input.is-invalid { border-color: #C2412D; background: #FDF0EC; }
.field--choice { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.choice-pills { display: flex; gap: 10px; }
.choice-pills label { flex: 1; cursor: pointer; }
.choice-pills input { position: absolute; opacity: 0; pointer-events: none; }
.signup-modal .choice-pills span {
  display: block; margin: 0; text-align: center;
  padding: 11px 10px; border-radius: 999px;
  border: 2px solid var(--thread); background: var(--cream);
  font-weight: 800; font-size: 15px; color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.choice-pills input:checked + span { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }
.choice-pills input:focus-visible + span { outline: 3px solid rgba(232,115,74,.4); outline-offset: 2px; }
.field--choice.is-invalid .choice-pills span { border-color: #C2412D; }
.signup-modal .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; margin-bottom: 12px; cursor: pointer; }
.signup-modal .check input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--coral-deep); }
.signup-modal .check i { font-style: normal; color: var(--ink-faint); }
.signup-modal .check a { color: var(--coral-deep); text-decoration: underline; }
.signup-modal .check.is-invalid span { color: #C2412D; }
.signup-modal__error { color: #C2412D; font-size: 14px; font-weight: 700; margin: 4px 0 12px; }
.signup-modal__error a { text-decoration: underline; }
.signup-modal form .btn { margin-top: 6px; }
.signup-modal form .btn[disabled] { opacity: .65; cursor: wait; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- страница политики ---------- */
.legal { max-width: 780px; }
.legal .section-title { font-size: clamp(26px, 4vw, 38px); }
.legal__date { color: var(--ink-faint); font-size: 14px; margin: 10px 0 30px; }
.legal h2 { font-weight: 900; font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--coral-deep); text-decoration: underline; }
