/* ============================================================
   BloomBoost — main.css
   01 FONTS · 02 TOKENS · 03 BASE · 04 COMPONENTS · 05 HEADER
   06 HERO · 07 SECTIONS · 08 PAGES · 09 FOOTER · 10 MEDIA
   11 REDUCED MOTION
   ============================================================ */

/* ===== 01 FONTS (self-hosted) ===== */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/unbounded-800-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/unbounded-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/golos-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/golos-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/caveat-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/caveat-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== 02 TOKENS ===== */
:root {
  /* palette */
  --bg: #FAF5EA;
  --ink: #1B1B1B;
  --yellow: #FFD029;
  --yellow-soft: #FFE58A;
  --pink: #F7A6B9;
  --pink-deep: #E8798F;
  --lavender: #C9B8E8;
  --white: #FFFFFF;
  --muted: rgba(27, 27, 27, .62);
  --line: rgba(27, 27, 27, .12);
  /* shape & depth */
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 32px rgba(27, 27, 27, .08);
  --shadow-lift: 0 22px 48px rgba(27, 27, 27, .15);
  /* type */
  --font-head: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, sans-serif;
  --font-script: 'Caveat', 'Snell Roundhand', cursive;
  /* layout */
  --container: 1160px;
  --section-pad: clamp(56px, 9vw, 110px);
  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* marker strokes (hand-drawn highlighter, stretches to any word) */
  --marker-yellow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 26C40 10 150 5 197 13 160 22 55 30 8 38Z' fill='%23FFD029'/%3E%3C/svg%3E");
  --marker-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 26C40 10 150 5 197 13 160 22 55 30 8 38Z' fill='%23F7A6B9'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C25 3 45 11 70 7 95 3 120 11 157 5' fill='none' stroke='%23FFD029' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ===== 03 BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

/* горизонтальный оверфлоу режем на html: overflow-x на body iOS Safari
   игнорирует, и страницу можно было утащить вбок */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
/* hidden должен работать даже у элементов с display в классах (например .btn) */
[hidden] { display: none !important; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 3px solid rgba(27, 27, 27, .45); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }

.section { padding-block: var(--section-pad); position: relative; }
.section--yellow { background: var(--yellow); }
.section--tight { padding-block: calc(var(--section-pad) * .55); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; }
h1 { font-size: clamp(31px, 4.5vw, 54px); line-height: 1.06; letter-spacing: -.01em; }
h2 { font-size: clamp(25px, 3.4vw, 42px); }
h3 { font-size: clamp(17px, 1.6vw, 21px); }

.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); }

/* sentinel for sticky-header shadow (IntersectionObserver target) */
#top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* small inline decorative svg */
.doodle-inline { display: inline-block; width: 22px; height: 22px; vertical-align: middle; flex: none; }

/* visually hidden (for a11y labels) */
.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ===== 04 COMPONENTS ===== */

/* --- marker highlight --- */
.marker {
  background-image: var(--marker-yellow);
  background-repeat: no-repeat;
  background-size: 100% .74em;
  background-position: 0 82%;
  padding-inline: .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.marker--pink { background-image: var(--marker-pink); }

/* --- handwritten accent --- */
.script {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.25em;
  line-height: 1;
  display: inline-block;
  rotate: -2deg;
}
.script--pink { color: var(--pink-deep); }
.script--underline {
  background-image: var(--squiggle);
  background-repeat: no-repeat;
  background-size: 100% .18em;
  background-position: 50% 100%;
  padding-bottom: .16em;
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn .arr { font-family: var(--font-body); transition: transform .25s var(--ease-out); }
.btn:hover .arr { transform: translate(3px, -3px); }

.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 rgba(27, 27, 27, .12); }
.btn--primary:hover { box-shadow: 0 12px 24px rgba(255, 208, 41, .5); }
.btn--ghost { background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.btn--ghost:hover { box-shadow: var(--shadow-card); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { box-shadow: 0 14px 28px rgba(27, 27, 27, .3); }
.btn--outline-ink { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--outline-ink:hover { background: var(--white); }
.btn--lg { padding: 19px 36px; font-size: 17px; }
.btn--sm { padding: 11px 20px; font-size: 14px; }

/* --- badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--yellow);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  rotate: -1deg;
}
.badge--outline { background: transparent; border: 2px solid var(--ink); }
.badge--pink { background: var(--pink); }
.badge--ink { background: var(--ink); color: var(--white); }
.badge--white { background: var(--white); }

/* --- yellow blob behind numbers --- */
.blob { position: relative; display: inline-block; padding: .06em .32em; z-index: 0; }
.blob::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  border-radius: 48% 52% 44% 56% / 58% 44% 56% 42%;
  rotate: -2deg;
  z-index: -1;
}

/* --- cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* --- section head --- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); position: relative; }
.section-head .badge { margin-bottom: 18px; }
.section-head .lead { margin-top: 16px; }

.title-script {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: .01em;
}
.title-script .u {
  background-image: var(--squiggle);
  background-repeat: no-repeat;
  background-size: 100% .14em;
  background-position: 50% 98%;
  padding-bottom: .12em;
}

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 48px);
}
.head-row .link-more { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 3px; transition: gap .25s; }
.head-row .link-more:hover { gap: 14px; }

/* --- doodles --- */
.doodle { position: absolute; pointer-events: none; color: var(--ink); z-index: 2; }
.doodle svg { width: 100%; height: 100%; }
.doodle--pink { color: var(--pink-deep); }
.doodle--yellow { color: var(--yellow); }

/* --- checklist --- */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.checklist .tick {
  flex: none;
  width: 24px; height: 24px;
  margin-top: 2px;
  color: var(--ink);
}

/* --- product card (pcard) ================================= */
.pcard {
  background: var(--white);
  border-radius: 20px;
  padding: 9px;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
a.pcard { display: block; }
.pcard:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lift); }

.pcard__media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(168deg, var(--m1, #FFE9A3), var(--m2, #FFC93C));
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.pcard__label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent, var(--ink));
  max-width: 80%;
  position: relative;
  z-index: 2;
}
.pcard__note { font-size: 11.5px; color: rgba(27, 27, 27, .55); margin-top: 6px; position: relative; z-index: 2; }
.pcard__art {
  width: 88%;
  margin: auto auto 0;
  filter: drop-shadow(0 10px 14px rgba(27, 27, 27, .14));
}
/* карточки с реальными фото: на снимке только сердечко-избранное,
   название, подпись и цена — в блоке .pcard__info под фото */
.pcard__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__info { padding: 12px 8px 6px; }
.pcard__info .pcard__label { max-width: 100%; }
.pcard__info .pcard__note { margin-top: 4px; }
.pcard__info .pcard__price {
  position: static;
  margin-top: 10px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
}
.pcard__price {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 2;
  background: var(--white);
  border-radius: 12px;
  padding: 8px 13px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(27, 27, 27, .14);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pcard__price .doodle-inline { width: 14px; height: 14px; color: var(--pink-deep); }
.pcard__fav {
  position: absolute;
  right: 12px; top: 12px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  display: grid;
  place-items: center;
  color: var(--pink-deep);
  transition: transform .25s var(--ease-out);
}
.pcard__fav:hover { transform: scale(1.15); }
.pcard__fav svg { width: 16px; height: 16px; }

/* pcard themes — variables pierce <use> shadow DOM */
.theme-sunny    { --m1: #FFE9A3; --m2: #FFC93C; --accent: #7A5800; --flower-a: #FFC93C; --flower-b: #FF9E2C; --flower-c: #FFF6D8; --leaf: #7BA05B; --wrap: #FBF3E4; }
.theme-rose     { --m1: #FBDCE4; --m2: #F5AFC2; --accent: #C2385C; --flower-a: #F7A6B9; --flower-b: #E8798F; --flower-c: #FDE3EA; --leaf: #8FAF7E; --wrap: #FDF4F0; }
.theme-cream    { --m1: #F6EEDF; --m2: #E8D9BE; --accent: #7A6A4A; --flower-a: #FFFDF6; --flower-b: #EDE0C8; --flower-c: #FFFBEF; --leaf: #9CB08C; --wrap: #F2E7D2; }
.theme-lavender { --m1: #EAE2F8; --m2: #C9B8E8; --accent: #5D4791; --flower-a: #C9B8E8; --flower-b: #A78BD4; --flower-c: #EFE8FB; --leaf: #8B9E77; --wrap: #F4EFFB; }
.theme-peony    { --m1: #FDE3EC; --m2: #F6B5CD; --accent: #C43E72; --flower-a: #F48FB1; --flower-b: #EC6395; --flower-c: #FBD0DF; --leaf: #85A66F; --wrap: #FDF0F4; }
.theme-fire     { --m1: #FFE0C7; --m2: #FFAE6E; --accent: #A34E10; --flower-a: #FF9E5E; --flower-b: #F2703B; --flower-c: #FFE7CE; --leaf: #7BA05B; --wrap: #FFF3E6; }

/* ===== 05 HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow .3s;
}
/* blur на псевдоэлементе: backdrop-filter на самой шапке сделал бы её
   containing block для fixed-оверлея мобильного меню */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 245, 234, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color .3s;
}
.header.is-scrolled { box-shadow: 0 8px 30px rgba(27, 27, 27, .08); }
.header.is-scrolled::before { background: rgba(250, 245, 234, .97); }

.header__in { display: flex; align-items: center; gap: 28px; padding-block: 12px; }

.logo { display: inline-flex; align-items: center; }
.logo__img { display: block; height: 46px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-pill);
  transition: background-color .2s;
}
.nav a:hover { background: rgba(27, 27, 27, .06); }
/* active page — via body[data-page], header markup stays identical on all pages */
body[data-page="home"]     .nav a[href="/"],
body[data-page="examples"] .nav a[href="/examples"],
body[data-page="process"]  .nav a[href="/process"],
body[data-page="services"] .nav a[href="/services"] {
  background-image: var(--marker-yellow);
  background-repeat: no-repeat;
  background-size: 82% .55em;
  background-position: 50% 88%;
}

.header .btn { flex: none; }
.nav__cta { display: none; } /* CTA внутри меню — только в мобильном оверлее */

.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  position: relative;
  z-index: 60;
}
.burger span, .burger::before, .burger::after {
  content: '';
  position: absolute;
  left: 11px; right: 11px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s, top .3s var(--ease-out);
}
.burger::before { top: 14px; }
.burger span { top: 21px; }
.burger::after { top: 28px; }
body.nav-open .burger::before { top: 21px; transform: rotate(45deg); }
body.nav-open .burger span { opacity: 0; }
body.nav-open .burger::after { top: 21px; transform: rotate(-45deg); }

/* ===== 06 HERO (index) ===== */
/* clip: размытый цветок-фон выступает за правый край и без обрезки
   давал горизонтальный скролл на мобильных */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; overflow: clip; }
.hero__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
/* fr-треки не должны распираться nowrap-контентом (кнопки, карточки) */
.hero__grid > *, .ysec__grid > *, .ba__grid > *, .about__grid > * { min-width: 0; }

.hero__badge-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero__badge-row .doodle-inline { width: 26px; height: 26px; color: var(--pink-deep); rotate: 8deg; }

.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 46ch; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* hero scene */
.hero__scene { position: relative; padding: 24px 12px; }
.hero__bloom-bg {
  position: absolute;
  right: -140px; top: 50%;
  width: 340px; height: 340px;
  translate: 0 -50%;
  filter: blur(26px);
  opacity: .55;
  pointer-events: none;
  color: var(--yellow);
}

.float { will-change: transform; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}
.tilt {
  transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition: transform .2s ease-out;
  will-change: transform;
}

.sticker {
  position: absolute;
  right: -18px; bottom: 38px;
  z-index: 3;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 21px;
  line-height: .95;
  rotate: 12deg;
  box-shadow: 0 14px 30px rgba(232, 121, 143, .45);
  padding: 10px;
}
.sticker .doodle-inline { width: 26px; height: 26px; margin: 2px auto 0; }

/* ===== 07 SECTIONS (index) ===== */

/* --- trust marquee --- */
.trust { padding-block: clamp(18px, 3vw, 30px) var(--section-pad); }
.trust__in { display: flex; align-items: center; gap: 26px; }
.trust__label { flex: none; display: flex; align-items: center; gap: 12px; font-family: var(--font-script); font-weight: 700; font-size: 26px; rotate: -2deg; }
.trust__label .doodle-inline { width: 44px; height: 20px; rotate: 4deg; }

.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__group { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); padding-right: clamp(40px, 5vw, 72px); }

.logo-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 21px; opacity: .75; transition: opacity .25s; white-space: nowrap; }
.logo-mark:hover { opacity: 1; }
.logo-mark--ozon { font-family: var(--font-head); font-weight: 800; letter-spacing: .02em; }
.logo-mark--klumba { font-weight: 600; font-style: italic; }
.logo-mark .doodle-inline { width: 20px; height: 20px; }

/* --- yellow "market research" section --- */
.ysec { overflow: hidden; overflow: clip; }
.ysec__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ysec__badge-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ysec__badge-row .doodle-inline { width: 30px; height: 30px; }
.ysec h2 { margin-bottom: 26px; font-size: clamp(24px, 2.9vw, 36px); }
.ysec h2 .script { font-size: 1.3em; }
.ysec h2 .heart { display: inline-block; width: .55em; height: .55em; color: var(--ink); margin-left: .15em; }
.ysec__sub { font-weight: 600; font-size: clamp(16px, 1.6vw, 18px); color: rgba(27, 27, 27, .78); margin: -6px 0 24px; max-width: 46ch; }
.ysec .checklist { margin-bottom: 34px; }

/* fanned cards */
.fan { position: relative; height: clamp(340px, 40vw, 470px); }
.fan__card {
  position: absolute;
  bottom: 8%;
  width: clamp(150px, 17vw, 205px);
  background: var(--white);
  border-radius: 18px;
  padding: 8px 8px 12px;
  box-shadow: var(--shadow-lift);
  transition: transform .4s var(--ease-out);
  transform: rotate(var(--r, 0deg));
}
.fan__card:hover { transform: rotate(var(--r, 0deg)) translateY(-16px); z-index: 5; }
.fan__card .badge { position: absolute; top: -14px; left: 50%; translate: -50% 0; white-space: nowrap; font-size: 10px; box-shadow: 0 6px 14px rgba(27, 27, 27, .18); z-index: 3; }
.fan__media {
  border-radius: 12px;
  background: linear-gradient(168deg, var(--m1), var(--m2));
  padding: 10px;
  min-height: clamp(150px, 17vw, 210px);
  display: flex;
}
.fan__media svg { width: 92%; margin: auto; filter: drop-shadow(0 6px 10px rgba(27, 27, 27, .15)); }
.fan__media img { width: 100%; height: clamp(130px, 15vw, 190px); object-fit: cover; object-position: top; border-radius: 8px; }
.fan__card--1 { left: 0%;  --r: -9deg; z-index: 1; }
.fan__card--2 { left: 22%; --r: -3deg; z-index: 2; }
.fan__card--3 { left: 44%; --r: 3deg;  z-index: 3; }
.fan__card--4 { left: 62%; --r: 8deg;  z-index: 4; }
/* финальная карточка крупнее остальных, фото в ней — строго 3:4 */
.fan__card--final { outline: 3px solid var(--ink); outline-offset: -1px; width: clamp(180px, 21vw, 250px); }
.fan__card--final .fan__media img { height: auto; aspect-ratio: 3 / 4; }

/* --- масштаб: больше карточек — больше просмотров --- */
.scale {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 26px);
  margin-bottom: clamp(26px, 4vw, 42px);
}
.scale__card { flex: 0 1 340px; text-align: center; padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 40px); }
.scale__card--accent { background: var(--yellow); box-shadow: var(--shadow-lift); }
.scale__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(21px, 2.4vw, 30px); margin-bottom: 8px; }
.scale__views { font-weight: 600; font-size: 15px; color: var(--muted); }
.scale__card--accent .scale__views { color: rgba(27, 27, 27, .72); }
.scale__arrow { align-self: center; flex: none; width: 56px; height: 30px; color: var(--ink); }
.scale__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.scale__points li {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  font-size: 15px;
  color: rgba(27, 27, 27, .72);
}
.scale__points strong { display: block; color: var(--ink); margin-bottom: 6px; }

/* --- steps --- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; text-align: center; padding-top: 6px; }
.step__icon {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(27, 27, 27, .14);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform .35s var(--ease-out), border-color .35s;
}
.step:hover .step__icon { transform: translateY(-6px) rotate(-6deg); border-color: var(--yellow); }
.step__icon svg { width: 34px; height: 34px; }
.step__name { counter-increment: step; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.step__name::before { content: counter(step) '. '; }
.step__text { font-size: 14px; color: var(--muted); max-width: 21ch; margin-inline: auto; }
/* dashed connector with arrowhead */
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(50% + 52px);
  width: calc(100% - 96px);
  border-top: 3px dashed rgba(27, 27, 27, .35);
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 34px;
  left: calc(150% - 52px);
  width: 12px; height: 12px;
  border-top: 3px solid rgba(27, 27, 27, .45);
  border-right: 3px solid rgba(27, 27, 27, .45);
  transform: rotate(45deg);
}

/* --- works grid --- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }

/* --- pricing calculator (конфигуратор заказа) --- */
.calc { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(18px, 2.6vw, 32px); align-items: start; }

.calc__config {
  display: grid;
  gap: clamp(30px, 4vw, 46px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.5vw, 44px);
}
.calc__label { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: clamp(16px, 1.5vw, 18px); margin-bottom: 20px; }
.calc__step {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
}

/* plan tiles (генерируются из PRICING в main.js) */
.calc__plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.calc__plan {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 18px 6px 14px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  transition: border-color .25s, background-color .25s, transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.calc__plan:hover { border-color: rgba(27, 27, 27, .4); transform: translateY(-2px); }
.calc__plan.is-active {
  border-color: var(--ink);
  background: #FFF8E0;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(27, 27, 27, .12);
}
.calc__plan-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.1; }
.calc__plan-unit { font-size: 11.5px; color: var(--muted); }
.calc__plan-price {
  margin-top: 8px;
  font-weight: 600;
  font-size: 11.5px;
  white-space: nowrap;
  background: rgba(27, 27, 27, .06);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  transition: background-color .25s;
}
.calc__plan.is-active .calc__plan-price { background: var(--yellow); }
/* популярный тариф — только жёлтая окантовка, без заливки:
   заливкой обозначается выбранный тариф, иначе путаница */
.calc__plan--popular { border-color: var(--yellow); }
/* «выгода N%» — розовый бейдж по центру верхней кромки плитки */
.calc__plan-save {
  position: absolute;
  top: -11px;
  left: 50%;
  translate: -50% 0;
  background: var(--pink-deep);
  color: var(--white);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(232, 121, 143, .35);
}
.calc__plan-note { margin-top: 5px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* промо-плашка «−10%» в шапке секции тарифов */
.pricing-promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 20px 8px 10px;
  background: var(--ink);
  color: #F3EEE2;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  rotate: -1.5deg;
  box-shadow: var(--shadow-card);
}
.pricing-promo__pct {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}
.calc__plan-badge {
  position: absolute;
  bottom: -11px; left: 50%;
  translate: -50% 0;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* images slider */
.calc__slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.calc__slider-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(18px, 1.8vw, 23px); }
.calc__surcharge { font-weight: 600; font-size: 14px; color: var(--muted); }
.calc__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.calc__range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--yellow) var(--fill, 50%), rgba(27, 27, 27, .12) var(--fill, 50%));
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--ink);
  border: 6px solid var(--yellow);
  box-shadow: 0 4px 12px rgba(27, 27, 27, .3);
  transition: transform .2s var(--ease-out);
}
.calc__range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc__range::-moz-range-track { height: 8px; border-radius: var(--radius-pill); background: rgba(27, 27, 27, .12); }
.calc__range::-moz-range-progress { height: 8px; border-radius: var(--radius-pill); background: var(--yellow); }
.calc__range::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  border: 6px solid var(--yellow);
  box-shadow: 0 4px 12px rgba(27, 27, 27, .3);
}
.calc__ticks { display: flex; justify-content: space-between; padding: 8px 8px 0; }
.calc__ticks span { font-weight: 600; font-size: 13px; color: var(--muted); }

/* order summary */
.calc__summary {
  position: sticky;
  top: 96px;
  background: var(--ink);
  color: #F3EEE2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(24px, 3vw, 36px);
}
.calc__summary-title { font-family: var(--font-head); font-weight: 800; font-size: 19px; margin-bottom: 22px; }
.calc__rows { display: grid; gap: 13px; margin: 0 0 22px; }
.calc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.calc__row dt { color: rgba(243, 238, 226, .6); }
.calc__row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__row--discount dd { color: var(--yellow); }
.calc__total { border-top: 1px dashed rgba(243, 238, 226, .25); padding-top: 20px; margin-bottom: 24px; }
.calc__total-label { font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 238, 226, .55); margin-bottom: 6px; }
.calc__total-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.15;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.calc__total-num.is-text { font-size: clamp(20px, 2.2vw, 27px); padding-block: 8px; }
.calc__total-num.is-bump { animation: calc-bump .4s var(--ease-out); }
@keyframes calc-bump {
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.calc__order { width: 100%; }
.calc__note { text-align: center; font-size: 12.5px; color: rgba(243, 238, 226, .55); margin-top: 14px; }

/* mobile sticky total bar */
.calc__bar {
  display: none;
  position: sticky;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--ink);
  color: #F3EEE2;
  border-radius: 18px;
  padding: 10px 10px 10px 20px;
  box-shadow: 0 14px 34px rgba(27, 27, 27, .35);
}
.calc__bar-total { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--yellow); font-variant-numeric: tabular-nums; }
.calc__bar-total .calc__bar-label { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: rgba(243, 238, 226, .7); }

/* --- reviews --- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
.review { padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.review__stars { color: var(--yellow); font-size: 18px; letter-spacing: 3px; text-shadow: 0 1px 0 rgba(27, 27, 27, .25); }
.review__text { font-size: 15.5px; }
.review__person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.review__ava {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(160deg, var(--m1, #FFE9A3), var(--m2, #FFC93C));
  color: var(--accent, var(--ink));
}
.review__name { font-weight: 600; font-size: 15px; }
.review__role { font-size: 13px; color: var(--muted); }

/* --- FAQ --- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item { border-radius: 18px; overflow: hidden; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 16.5px;
}
.faq__q .plus {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease-out), background-color .3s;
  position: relative;
}
.faq__q .plus::before, .faq__q .plus::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq__q .plus::before { width: 14px; height: 2.5px; }
.faq__q .plus::after { width: 2.5px; height: 14px; transition: transform .35s var(--ease-out); }
.faq__item.is-open .plus { transform: rotate(180deg); background: var(--yellow); }
.faq__item.is-open .plus::after { transform: rotate(90deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-in { overflow: hidden; }
.faq__a-in p { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; max-width: 60ch; }

/* --- плашка телеграм-канала --- */
.tg-band {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3.5vw, 38px);
}
.tg-band__icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
}
.tg-band__icon svg { width: 30px; height: 30px; }
.tg-band__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(17px, 1.8vw, 21px); margin-bottom: 4px; }
.tg-band__note { font-size: 14.5px; color: var(--muted); max-width: 52ch; }
.tg-band .btn { margin-left: auto; flex: none; }

/* --- CTA --- */
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  border-radius: 32px;
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
}
.cta-card h2 { max-width: 20ch; margin-inline: auto; }
.cta-card .title-script { display: block; margin-top: 10px; }
.cta-card .lead { color: rgba(27, 27, 27, .7); max-width: 52ch; margin: 18px auto 34px; }
.cta-card__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-card__note { margin-top: 20px; font-size: 13.5px; color: rgba(27, 27, 27, .55); }

/* ===== 08 PAGES ===== */

/* --- page hero (subpages) --- */
.phero { padding: clamp(36px, 6vw, 70px) 0 clamp(8px, 2vw, 20px); text-align: center; position: relative; }
.phero .badge { margin-bottom: 20px; }
.phero h1 { max-width: 18ch; margin-inline: auto; }
.phero .lead { max-width: 56ch; margin: 20px auto 0; }

/* --- examples: filters + gallery --- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(30px, 4vw, 44px); }
.chip {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  background: transparent;
  transition: background-color .25s, color .25s, transform .25s var(--ease-out);
}
.chip:hover { transform: translateY(-2px); background: var(--white); }
.chip.is-active { background: var(--ink); color: var(--bg); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.gallery .pcard { display: flex; flex-direction: column; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), opacity .25s, scale .25s; }
.gallery .pcard.is-hidden { display: none; }
.gallery .pcard.is-fading { opacity: 0; scale: .9; }
/* все карточки галереи — строго вертикальные 3:4, как на маркетплейсах */
.gallery .pcard__media { aspect-ratio: 3 / 4; min-height: 0; }
.pcard__media--photo { aspect-ratio: 3 / 4; min-height: 0; }

/* --- before / after --- */
.ba__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.ba__viz { position: relative; --pos: 50; }
/* фото-вариант «до/после» (hero на главной, examples) — портретный 3:4;
   ширина явная: у grid-item авто-маржины отключают stretch */
.ba__viz--photo { width: min(100%, 400px); margin-inline: auto; }
.ba__viz--photo .ba__frame { aspect-ratio: 3 / 4; }
/* призыв к ползунку; прячется после первого движения (.is-touched вешает JS) */
.ba__hint {
  position: absolute;
  left: 16%;
  bottom: -44px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 27px;
  color: var(--ink);
  rotate: -4deg;
  pointer-events: none;
  transition: opacity .4s;
}
.ba__hint svg { width: 48px; height: 26px; rotate: -28deg; translate: 0 -14px; }
.ba__viz.is-touched .ba__hint { opacity: 0; }
.ba__frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 5 / 4;
  background: var(--white);
}
.ba__layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
/* слои с реальными фото — снимок заполняет рамку целиком */
.ba__layer--photo { padding: 0; }
.ba__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__layer--before { background: #ECEAE4; }
.ba__layer--after {
  background: linear-gradient(165deg, #FFF3CC, #FFDF80);
  clip-path: inset(0 0 0 calc(var(--pos) * 1%));
}
.ba__tag { position: absolute; top: 16px; z-index: 3; }
.ba__tag--before { left: 16px; }
.ba__tag--after { right: 16px; }
/* slider */
.ba__range {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  background: transparent;
  cursor: ew-resize;
  z-index: 4;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; opacity: 0; }
.ba__range::-moz-range-thumb { width: 40px; height: 40px; opacity: 0; border: 0; }
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--pos) * 1%);
  translate: -50% 0;
  width: 4px;
  background: var(--ink);
  z-index: 3;
  pointer-events: none;
}
.ba__handle::after {
  content: '⇔';
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(27, 27, 27, .35);
}
.ba__list { margin-top: 28px; }

/* --- stats --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 4vw, 50px); line-height: 1.1; }
.stat__label { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.section--yellow .stat__label { color: rgba(27, 27, 27, .6); }

/* --- process page: phases --- */
.phases { position: relative; display: grid; gap: 22px; max-width: 880px; margin-inline: auto; }
.phases::before {
  content: '';
  position: absolute;
  left: 43px;
  top: 30px; bottom: 30px;
  border-left: 3px dashed rgba(27, 27, 27, .25);
}
.phase {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 20px;
  padding: 26px 28px;
  align-items: start;
}
.phase__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.phase__num .blob::before { inset: -8px -12px; }
.phase h3 { margin-bottom: 8px; }
.phase p { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.phase .checklist { gap: 8px; }
.phase .checklist li { font-weight: 400; font-size: 14.5px; }
.phase__side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.phase__time { font-weight: 600; font-size: 13px; white-space: nowrap; }
.phase__side .doodle-inline { width: 44px; height: 44px; color: var(--ink); opacity: .8; }

/* --- about / principles --- */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__grid h2 { margin-bottom: 20px; }
.about__grid .lead { margin-bottom: 26px; }
.about__facts { display: grid; gap: 16px; }
.fact { display: flex; gap: 18px; align-items: center; padding: 20px 24px; }
.fact__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 3vw, 36px); min-width: 130px; }
.fact__label { color: var(--muted); font-size: 15px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
.principle { padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.principle__icon {
  width: 62px; height: 62px;
  border-radius: 18px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  color: var(--ink);
  rotate: -4deg;
}
.principle__icon svg { width: 30px; height: 30px; }
.principle p { color: var(--muted); font-size: 15px; }

/* --- services --- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
.svc { padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.svc__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--m1, #FFE9A3), var(--m2, #FFC93C));
  color: var(--accent, var(--ink));
  rotate: -4deg;
}
.svc__icon svg { width: 30px; height: 30px; }
.svc p { color: var(--muted); font-size: 15px; }
.svc .checklist { gap: 8px; margin-top: auto; }
.svc .checklist li { font-weight: 400; font-size: 14.5px; }
.svc .checklist .tick { width: 20px; height: 20px; }
.svc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 2px dashed var(--line); }
.svc__price { font-family: var(--font-head); font-weight: 800; font-size: 17px; }
.svc__price small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--muted); }
.svc__badge { position: absolute; top: 20px; right: -34px; rotate: 35deg; background: var(--pink); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 40px; }

/* ===== 09 FOOTER ===== */
.footer {
  background: var(--ink);
  color: #F3EEE2;
  border-radius: 32px 32px 0 0;
  margin-top: var(--section-pad);
  padding: clamp(44px, 6vw, 70px) 0 28px;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(28px, 4vw, 48px); margin-bottom: 44px; }
.footer .logo__img { background: var(--bg); border-radius: 14px; padding: 10px 14px; height: 58px; }
.footer__tagline { color: rgba(243, 238, 226, .65); font-size: 14.5px; margin-top: 16px; max-width: 30ch; }
.footer__col h4 { font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 238, 226, .5); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer__col a { font-size: 15px; color: rgba(243, 238, 226, .85); transition: color .2s; }
.footer__col a:hover { color: var(--yellow); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 238, 226, .14);
  font-size: 13.5px;
  color: rgba(243, 238, 226, .5);
}
.footer__heart { color: var(--pink); }

/* ===== reveal-on-scroll ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===== 10 MEDIA QUERIES ===== */
/* 821–1010px (планшеты): полное меню + CTA не помещаются вместе — прячем CTA.
   Селектор по прямому потомку, чтобы не задеть кнопку внутри мобильного меню */
@media (max-width: 1010px) {
  .header__in > .btn { display: none; }
}

@media (max-width: 1080px) {
  .calc__plans { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
  /* при нечётном числе тарифов последний занимает весь ряд */
  .calc__plan:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .hero__bloom-bg { right: -60px; width: 260px; height: 260px; }
}

@media (max-width: 820px) {
  .burger { display: block; margin-left: auto; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: grid;
    place-items: center;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease-out), visibility .35s;
    z-index: 55;
  }
  .nav ul { flex-direction: column; text-align: center; gap: 18px; }
  .nav a { font-family: var(--font-head); font-weight: 800; font-size: 24px; }
  .nav__cta { display: block; margin-top: 14px; }
  .nav .nav__cta .btn { font-family: var(--font-body); font-weight: 600; font-size: 17px; padding: 16px 30px; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .hero__grid, .ysec__grid, .ba__grid, .about__grid { grid-template-columns: 1fr; }
  /* ширина явная: у grid-item авто-маржины отключают stretch */
  .hero__scene { width: min(100%, 460px); margin-inline: auto; }
  .works, .reviews, .principles, .services { grid-template-columns: repeat(2, 1fr); }
  /* нечётный последний отзыв не оставляем сиротой в углу */
  .reviews .review:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: min(100%, 560px); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }

  /* calculator: single column, summary in flow + sticky bottom bar */
  .calc { grid-template-columns: 1fr; }
  .calc__summary { position: static; }
  .calc__bar { display: flex; }

  /* steps go vertical */
  .steps { grid-template-columns: 1fr; gap: 34px; max-width: 420px; margin-inline: auto; }
  .step { display: grid; grid-template-columns: 76px 1fr; column-gap: 20px; row-gap: 6px; text-align: left; align-items: center; }
  .step__icon { margin: 0; grid-row: 1 / span 2; }
  .step__name { margin: 0; align-self: end; }
  .step__text { margin: 0; max-width: none; grid-column: 2; align-self: start; }
  .step:not(:last-child)::before {
    top: calc(50% + 48px);
    left: 37px;
    width: 0;
    height: 40px;
    border-top: 0;
    border-left: 3px dashed rgba(27, 27, 27, .35);
  }
  .step:not(:last-child)::after { display: none; }

  /* авто-маржины у grid-item отключают stretch: ширину задаём явно */
  .fan { height: 300px; width: min(100%, 520px); margin-inline: auto; }

  .phase { grid-template-columns: 64px 1fr; }
  .phase__side { grid-column: 2; flex-direction: row; align-items: center; }
  .phases::before { left: 55px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .works, .reviews, .principles, .services, .stats { grid-template-columns: 1fr; }
  .logo__img { height: 38px; }

  /* «Примеры работ»: контейнер прилипает, лента карточек едет горизонтально
     (высоту секции и transform ленты задаёт initWorksPin в main.js) */
  #works.is-pinned .container { position: sticky; top: 74px; overflow: clip; }
  #works.is-pinned .works { display: flex; gap: 14px; width: max-content; will-change: transform; }
  #works.is-pinned .works .pcard { width: 74vw; flex: none; }

  /* галерея примеров — компактная сетка 2 колонки, как на маркетплейсах */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery .pcard { padding: 6px; border-radius: 16px; }
  .gallery .pcard__media { min-height: 0; padding: 12px; border-radius: 11px; }
  .gallery .pcard__label { font-size: 10.5px; max-width: 100%; padding-right: 30px; }
  .gallery .pcard__note { font-size: 9.5px; }
  .gallery .pcard__price { font-size: 12px; padding: 6px 10px; left: 10px; bottom: 10px; }
  .gallery .pcard__fav { width: 28px; height: 28px; top: 8px; right: 8px; }
  .gallery .pcard__fav svg { width: 13px; height: 13px; }
  .calc__config { padding: 20px 16px; }
  .calc__plans { gap: 24px 8px; }
  .calc__plan { padding: 14px 4px 12px; }
  .calc__slider-head { flex-direction: column; gap: 2px; }
  .hero__cta .btn { width: 100%; }
  .cta-card__btns .btn { width: 100%; }
  /* декоративные дудлы в CTA дрейфуют параллаксом и наезжают на текст */
  .cta-card .doodle { display: none; }
  .tg-band { flex-direction: column; text-align: center; }
  .tg-band .btn { margin-left: 0; width: 100%; }
  .scale { flex-direction: column; align-items: stretch; }
  .scale__card { flex-basis: auto; }
  .scale__arrow { rotate: 90deg; margin-block: -6px; align-self: center; }
  .scale__points { grid-template-columns: 1fr; }
  .btn--lg { white-space: normal; text-align: center; }
  .trust__in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee { width: 100%; }
  .sticker { width: 96px; height: 96px; font-size: 17px; right: -8px; }
  .fan { height: 300px; }
  .fan__card { width: 40%; }
  .fan__media { min-height: 130px; }
  .fan__card--1 { left: 0; }
  .fan__card--2 { left: 19%; }
  .fan__card--3 { left: 38%; }
  .fan__card--4 { left: 54%; }
  .fan__card--final { width: 46%; }
  .fan__card .badge { font-size: 9px; padding: 6px 10px; }
  .phase { padding: 22px 18px; }
  .phase__num { width: 46px; height: 46px; font-size: 20px; }
  .phases::before { left: 41px; }
  .fact__num { min-width: 96px; }
}

/* ===== 11 REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .float { animation: none; }
  .marquee__track { animation: none; }
  .tilt { transform: none; }
}
