/* «Сирень и Мёд» — демо. Editorial beauty. Mobile-first. */

:root {
  /* Цвета */
  --milk: #fbf7f1;
  --paper: #fffdf9;
  --cream: #f4ece2;
  --ink: #261e2e;
  --ink-2: #5f5569;
  --plum: #3a2a4d;
  --plum-deep: #241a30;
  --lilac: #a68bd6;
  --lilac-deep: #7552b0;
  --lilac-soft: #ece4f7;
  --honey: #e2ae55;
  --honey-deep: #b9822c;
  --honey-soft: #f6e3bd;
  --line: rgba(38, 30, 46, .12);

  /* Шрифты */
  --font-display: "Prata", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Ритм */
  --wrap: 1280px;
  --pad: 20px;
  --radius: 28px;
  --radius-lg: 40px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* лёгкое «зерно» бумаги */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.no-scroll { overflow: hidden; }
main { overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, blockquote { margin: 0; }
em { font-style: normal; }

:focus-visible { outline: 2px solid var(--lilac-deep); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--ink-2); }
.hide-sm { display: none; }
@media (min-width: 420px) { .hide-xs { display: inline; } }
@media (max-width: 419px) { .hide-xs { display: none; } }

.glass {
  background: rgba(255, 253, 249, .62);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7);
}

/* ---------- Блобы ---------- */
.blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.blob--lilac { background: radial-gradient(closest-side, rgba(176, 148, 228, .55), rgba(176, 148, 228, 0)); }
.blob--honey { background: radial-gradient(closest-side, rgba(240, 196, 120, .5), rgba(240, 196, 120, 0)); }
@media (prefers-reduced-motion: no-preference) {
  .blob { animation: drift 18s ease-in-out infinite alternate; }
  .blob--honey { animation-duration: 22s; animation-direction: alternate-reverse; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, -24px, 0) scale(1.08); }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px;
  padding: 0 10px 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease);
}
.btn:not(:has(.btn__ic)) { padding: 0 26px; }
.btn__ic {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 16px; line-height: 1;
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__ic { transform: rotate(-45deg); }
.btn:active { transform: translateY(0) scale(.98); }

.btn--dark { background: var(--plum); color: var(--milk); box-shadow: 0 10px 30px -12px rgba(58, 42, 77, .55); }
.btn--dark .btn__ic { background: var(--honey); color: var(--plum); }
.btn--dark:hover { background: var(--plum-deep); box-shadow: 0 18px 40px -14px rgba(58, 42, 77, .6); }

.btn--honey { background: var(--honey); color: var(--plum-deep); }
.btn--honey .btn__ic { background: var(--plum-deep); color: var(--honey); }
.btn--honey:hover { background: #ebbd6a; }

.btn--ghost { background: transparent; border-color: rgba(38, 30, 46, .22); color: var(--ink); }
.btn--ghost .btn__ic { background: var(--plum); color: var(--milk); }
.btn--ghost:hover { background: var(--paper); border-color: var(--plum); }

.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

.link-u {
  position: relative;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  padding: 6px 0;
}
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor;
  transform-origin: right; transition: transform .5s var(--ease);
}
.link-u:hover::after { transform: scaleX(0); }

.text-btn {
  display: inline; padding: 0; border: 0; background: none;
  font: inherit; color: var(--lilac-deep);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.text-btn:hover { color: var(--plum); text-decoration-color: var(--honey); }

/* ---------- Демо-плашка ---------- */
.demo-bar { background: var(--plum-deep); color: #eadff5; font-size: 13px; line-height: 1.35; position: relative; z-index: 60; }
.demo-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.demo-bar__text { display: flex; align-items: center; gap: 10px; }
.demo-bar__badge {
  flex: none;
  padding: 3px 9px; border-radius: 999px;
  background: var(--honey); color: var(--plum-deep);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.demo-bar__btn {
  flex: none;
  color: var(--honey); font-weight: 600; text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid rgba(226, 174, 85, .5);
}
.demo-bar__btn:hover { color: #fff; border-color: #fff; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 247, 241, .82); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 30px; height: 30px; }
.logo__text { font-family: var(--font-display); font-size: 21px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.logo__text i { font-style: normal; color: var(--lilac-deep); }

.nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone { display: none; background: none; border: 0; padding: 6px 0; font-weight: 600; font-size: 14px; }
.header__phone:hover { color: var(--lilac-deep); }
.header__actions .btn--sm { display: none; }

.burger {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Мобильное меню ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 150px var(--pad) 28px;
  background: var(--milk);
  overflow: hidden auto;
}
.mnav[hidden] { display: none; }
.mnav.is-open { animation: mnavIn .5s var(--ease); }
@keyframes mnavIn { from { opacity: 0; transform: translateY(-12px); } }
.mnav__blob {
  position: absolute; right: -30%; top: 10%; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(176, 148, 228, .4), transparent), radial-gradient(closest-side at 30% 80%, rgba(240, 196, 120, .35), transparent);
  pointer-events: none;
}
.mnav__links { position: relative; display: flex; flex-direction: column; }
.mnav__links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 38px; line-height: 1.15;
  text-decoration: none;
}
.mnav__links a span { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--lilac-deep); letter-spacing: .08em; }
.mnav__foot { position: relative; display: grid; gap: 10px; margin-top: 32px; }
.mnav__hours { text-align: center; color: var(--ink-2); font-size: 14px; margin-top: 4px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: 28px 0 56px; overflow: clip; }
.hero__blob1 { width: 520px; height: 520px; right: -220px; top: -120px; }
.hero__blob2 { width: 420px; height: 420px; left: -200px; top: 360px; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 36px; }

.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px rgba(226, 174, 85, .22); }

.hero__title {
  margin-top: 18px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 10.6vw, 92px);
  line-height: 1.04; letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__title em, .sec-title em, .demo-modal__title em, .contacts__title em {
  background: linear-gradient(100deg, var(--lilac-deep) 10%, #b07ac8 55%, var(--honey-deep) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 20px; max-width: 34em; font-size: 16.5px; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }

/* коллаж */
.hero__art { position: relative; width: 100%; max-width: 440px; margin: 8px auto 0; padding: 0 0 30px 0; }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); isolation: isolate; }
.arch svg { width: 100%; height: 100%; object-fit: cover; }
.arch--hero { width: 82%; margin-left: auto; aspect-ratio: 400 / 520; box-shadow: 0 40px 80px -40px rgba(58, 42, 77, .45); }
.arch--mini {
  position: absolute; left: 0; bottom: 0; width: 36%; aspect-ratio: 160 / 200;
  border: 6px solid var(--milk);
  box-shadow: 0 24px 50px -24px rgba(58, 42, 77, .5);
}
.hero__badge {
  position: absolute; left: 4%; top: 6%; width: 104px; height: 104px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--paper);
  box-shadow: 0 16px 40px -18px rgba(58, 42, 77, .45);
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--plum); font-family: var(--font-body); font-weight: 600; }
.hero__badge-star { font-size: 22px; color: var(--honey); }
@media (prefers-reduced-motion: no-preference) {
  .hero__badge svg { animation: spin 22s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__float {
  position: absolute; right: -2%; bottom: 16%;
  display: flex; flex-direction: column;
  padding: 14px 18px; border-radius: 20px;
  box-shadow: 0 20px 50px -20px rgba(58, 42, 77, .4);
}
.hero__float-k { font-size: 12px; color: var(--ink-2); }
.hero__float-v { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }

.hero__facts {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.hero__facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero__facts b { font-family: var(--font-display); font-weight: 400; font-size: 22px; white-space: nowrap; }
.hero__facts span { color: var(--ink-2); font-size: 14px; text-align: right; }

/* ---------- Бегущая строка ---------- */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden;
  background: var(--plum);
  color: var(--milk);
  transform: rotate(-1.6deg);
  margin: 8px -12px;
  box-shadow: 0 20px 40px -24px rgba(58, 42, 77, .6);
}
.marquee__track { display: flex; align-items: center; width: max-content; padding: 16px 0; }
.marquee__track span { font-family: var(--font-display); font-size: 26px; line-height: 1; padding: 0 22px; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--honey); font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { position: relative; padding: 88px 0; }
.sec-head { position: relative; z-index: 1; margin-bottom: 36px; }
.sec-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sec-num {
  font-family: var(--font-display); font-size: 15px; line-height: 1;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--lilac-deep);
}
.sec-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sec-meta::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 120px; }
.sec-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 9vw, 76px);
  line-height: 1.06; letter-spacing: -.025em;
  text-wrap: balance;
}
.sec-lead { margin-top: 16px; max-width: 30em; color: var(--ink-2); font-size: 16px; }
.sec-cta { margin-top: 40px; display: flex; justify-content: center; }

/* ---------- Цены ---------- */
.prices__grid { display: grid; gap: 8px; }
.prices__cta { display: none; margin-top: 32px; }
.prices__box {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px 18px 26px;
  box-shadow: 0 30px 70px -40px rgba(58, 42, 77, .35);
}
.tabs { display: none; }
.js .tabs {
  display: flex; gap: 4px;
  padding: 5px; margin: 8px -8px 18px;
  border-radius: 999px; background: var(--lilac-soft);
  overflow-x: auto; scrollbar-width: none;
}
.js .tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
  flex: 1 0 auto;
  padding: 11px 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color .35s var(--ease), color .3s, box-shadow .35s;
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { background: var(--plum); color: var(--milk); box-shadow: 0 8px 20px -10px rgba(58, 42, 77, .7); }

.price-panel + .price-panel { margin-top: 28px; }
.js .price-panel + .price-panel { margin-top: 0; }
.price-panel[hidden] { display: none; }
.price-panel.is-shown { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.price-panel__title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.2; margin: 14px 0 6px; }
.price-list li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease), background-color .3s;
}
.price-list li:last-child { border-bottom: 0; }
.price-list span { flex: 0 1 auto; font-size: 15px; }
.price-list li::after { content: ""; order: 1; flex: 1 1 16px; min-width: 16px; border-bottom: 1px dotted rgba(38, 30, 46, .3); transform: translateY(-4px); }
.price-list b {
  order: 2; flex: none;
  font-family: var(--font-display); font-weight: 400; font-size: 19px; white-space: nowrap;
}
.price-list small { font-family: var(--font-body); font-size: 12px; color: var(--ink-2); }
.price-note {
  margin-top: 16px; padding: 14px 16px;
  border-radius: 18px; background: var(--honey-soft);
  font-size: 14px; color: #5a4526;
}
@media (hover: hover) {
  .price-list li:hover { padding-left: 10px; padding-right: 10px; background: linear-gradient(90deg, rgba(236, 228, 247, .7), transparent); border-radius: 12px; }
}

/* ---------- Мастера ---------- */
.masters__blob { width: 600px; height: 600px; left: -260px; top: 120px; }
.sec-head--row { display: grid; gap: 4px; }
.masters__list {
  position: relative; z-index: 1;
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%;
  gap: 16px;
  margin: 0 calc(var(--pad) * -1);
  padding: 4px var(--pad) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding: 0 var(--pad);
}
.masters__list::-webkit-scrollbar { display: none; }
.master { scroll-snap-align: start; }
.master__art { aspect-ratio: 300 / 380; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.master__art svg { transition: transform 1s var(--ease); }
.master__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 4px 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.master__name { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.master__role { font-size: 13px; color: var(--ink-2); text-align: right; }
@media (hover: hover) {
  .master:hover .master__art { box-shadow: 0 30px 60px -30px rgba(58, 42, 77, .5); }
  .master:hover .master__art svg { transform: scale(1.05); }
}

/* ---------- Галерея (бенто) ---------- */
.bento {
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 140px;
  grid-template-areas:
    "a a"
    "a a"
    "b d"
    "b d"
    "f f"
    "e c"
    "e c";
}
.tile { position: relative; overflow: hidden; border-radius: 24px; background: var(--cream); isolation: isolate; }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.1s var(--ease); }
.tile--a { grid-area: a; border-radius: 999px 999px 24px 24px; }
.tile--b { grid-area: b; }
.tile--c { grid-area: c; border-radius: 24px 24px 999px 999px; }
.tile--d { grid-area: d; }
.tile--e { grid-area: e; }
.tile--f { grid-area: f; }
.tile__cap {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1;
  display: flex; gap: 8px; align-items: baseline;
  padding: 9px 12px; border-radius: 16px;
  background: rgba(255, 253, 249, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12.5px; line-height: 1.3; font-weight: 500;
}
.tile__cap span { font-family: var(--font-display); color: var(--lilac-deep); font-size: 12px; }
.tile--b .tile__cap, .tile--d .tile__cap, .tile--e .tile__cap, .tile--c .tile__cap { font-size: 12px; padding: 8px 10px; }
.tile--c .tile__cap { bottom: 18%; }
@media (hover: hover) {
  .tile:hover svg { transform: scale(1.06); }
}

/* ---------- Почему мы ---------- */
.why {
  background: var(--plum-deep); color: #efe7f6;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  margin-top: 40px;
}
.why + .reviews { margin-top: calc(var(--radius-lg) * -1); }
.why__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.why__glow--1 { width: 640px; height: 640px; right: -240px; top: -240px; background: radial-gradient(closest-side, rgba(166, 139, 214, .45), transparent); }
.why__glow--2 { width: 520px; height: 520px; left: -220px; bottom: -200px; background: radial-gradient(closest-side, rgba(226, 174, 85, .28), transparent); }
.why .sec-num { color: var(--honey); border-color: rgba(255, 255, 255, .18); }
.why .sec-label { color: #b9abc8; }
.why .sec-meta::after { background: rgba(255, 255, 255, .14); }
.why .sec-title em { background: linear-gradient(100deg, #c9b2f0, var(--honey)); -webkit-background-clip: text; background-clip: text; }
.why .sec-head--row > div:last-child { margin-top: 24px; }
.why__list { position: relative; display: grid; gap: 12px; }
.why__item {
  position: relative;
  padding: 26px 22px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .4s, transform .6s var(--ease), border-color .4s;
}
.why__num { position: absolute; right: 22px; top: 18px; font-family: var(--font-display); font-size: 40px; line-height: 1; color: rgba(226, 174, 85, .35); }
.why__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(166, 139, 214, .18); color: #d8c6f6; margin-bottom: 22px; }
.why__item h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; color: #fff; margin-bottom: 10px; }
.why__item p { color: #c7bad4; font-size: 15px; }
@media (hover: hover) {
  .why__item:hover { background: rgba(255, 255, 255, .08); border-color: rgba(226, 174, 85, .35); transform: translateY(-4px); }
}

/* ---------- Отзывы ---------- */
.reviews { background: var(--milk); border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 1; }
.reviews__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 14px;
  margin: 0 calc(var(--pad) * -1);
  padding: 4px var(--pad) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding: 0 var(--pad);
}
.reviews__list::-webkit-scrollbar { display: none; }
.review {
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.review--lilac { background: var(--lilac-soft); border-color: transparent; }
.review--honey { background: #fbeed3; border-color: transparent; }
.review__tag {
  align-self: flex-start;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(38, 30, 46, .18);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.review__q { position: absolute; right: 18px; top: -6px; font-family: var(--font-display); font-size: 120px; line-height: 1; color: rgba(117, 82, 176, .16); }
.review blockquote { flex: 1; margin: 22px 0 26px; font-family: var(--font-display); font-size: 20px; line-height: 1.45; }
.review__author { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.review__ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--plum); color: var(--honey); font-family: var(--font-display); font-size: 17px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 4px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display); font-size: 20px; line-height: 1.3;
  cursor: pointer; list-style: none;
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--lilac-deep); }
.faq__plus {
  position: relative; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  transition: background-color .4s, transform .5s var(--ease), border-color .4s;
}
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px;
  background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease), background-color .3s;
}
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus { background: var(--plum); border-color: var(--plum); transform: rotate(180deg); }
.faq__item[open] .faq__plus::before, .faq__item[open] .faq__plus::after { background: var(--milk); }
.faq__item[open] .faq__plus::after { transform: rotate(0deg); }
.faq__body { padding: 0 52px 24px 0; color: var(--ink-2); font-size: 15.5px; }
@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
  @media (prefers-reduced-motion: reduce) { .faq__item::details-content { transition: none; } }
}

/* ---------- Контакты ---------- */
.contacts { padding-top: 40px; }
.contacts__card {
  position: relative; overflow: hidden;
  display: grid; gap: 28px;
  padding: 32px 20px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #f3ecfa 0%, var(--paper) 55%, #fbf0dc 100%);
  border: 1px solid var(--line);
}
.contacts__blob { width: 520px; height: 520px; right: -240px; top: -200px; }
.contacts__info { position: relative; z-index: 1; }
.contacts__title { font-size: clamp(52px, 15vw, 120px); line-height: 1; }
.contacts__list { margin-top: 28px; display: grid; }
.contacts__list > div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.contacts__list dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.contacts__list dd { font-family: var(--font-display); font-size: 21px; line-height: 1.35; }
.contacts__list dd .text-btn { color: var(--ink); text-decoration-color: rgba(117, 82, 176, .45); }
.contacts__list dd .text-btn:hover { color: var(--lilac-deep); }
.contacts__list .muted { display: block; font-family: var(--font-body); font-size: 14px; }
.contacts__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.contacts__cta .btn--dark { flex: 1 0 100%; }
.contacts__cta .btn--ghost { flex: 1 1 0; padding: 0 14px; }
.contacts__map {
  position: relative; z-index: 1; overflow: hidden;
  aspect-ratio: 4 / 4.2;
  border-radius: 999px 999px var(--radius) var(--radius);
}
.contacts__map svg { width: 100%; height: 100%; }
.contacts__map-label {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 600;
}

/* ---------- Подвал ---------- */
.footer {
  margin-top: 88px;
  padding: 56px 0 112px; /* запас снизу: плавающая кнопка и плашка хостинга */
  background: var(--plum-deep); color: #d9cde6;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.footer__demo {
  display: grid; gap: 18px; justify-items: start;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
}
.footer__badge {
  padding: 4px 10px; border-radius: 999px; background: var(--honey); color: var(--plum-deep);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.footer__demo p { font-size: 15px; line-height: 1.6; max-width: 46em; }
.footer__demo p a { color: var(--honey); }
.footer__word {
  margin: 48px 0 28px;
  font-family: var(--font-display); font-size: calc((min(100vw, var(--wrap)) - 2 * var(--pad)) / 6.9); line-height: 1; letter-spacing: -.03em;
  white-space: nowrap;
  background: linear-gradient(100deg, #c9b2f0 0%, #f0e6fb 45%, var(--honey) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__word i { font-style: normal; }
.footer__bottom { display: grid; gap: 18px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #a698b6; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__nav a { text-decoration: none; color: #e7dcf2; font-size: 14px; }
.footer__nav a:hover { color: var(--honey); }

/* ---------- Плавающая кнопка (слева: справа внизу плашка хостинга) ---------- */
.fab {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px 0 18px;
  border: 0; border-radius: 999px;
  background: var(--plum); color: var(--milk);
  font-size: 15px; font-weight: 600;
  box-shadow: 0 16px 36px -12px rgba(36, 26, 48, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .5s var(--ease), opacity .4s;
}
.fab svg { color: var(--honey); }
.js .fab { transform: translateY(140%); opacity: 0; }
.js .fab.is-visible { transform: none; opacity: 1; }
body.no-scroll .fab { opacity: 0; pointer-events: none; }

/* ---------- Модальное окно ---------- */
.demo-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.demo-modal[hidden] { display: none; }
.demo-modal__backdrop { position: absolute; inset: 0; background: rgba(36, 26, 48, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.demo-modal__box {
  position: relative; overflow: hidden;
  width: 100%; max-width: 440px;
  padding: 34px 26px 26px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 40px 100px -30px rgba(36, 26, 48, .6);
}
.demo-modal__blob {
  position: absolute; right: -80px; top: -110px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(176, 148, 228, .55), transparent), radial-gradient(closest-side at 20% 80%, rgba(240, 196, 120, .5), transparent);
  pointer-events: none;
}
.demo-modal__close {
  position: absolute; right: 16px; top: 16px; z-index: 1;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .7);
  transition: transform .4s var(--ease), background-color .3s;
}
.demo-modal__close:hover { transform: rotate(90deg); background: #fff; }
.demo-modal__badge {
  position: relative; display: inline-block;
  padding: 4px 10px; border-radius: 999px; background: var(--honey); color: var(--plum-deep);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.demo-modal__title { position: relative; margin-top: 18px; font-family: var(--font-display); font-size: 32px; line-height: 1.12; letter-spacing: -.02em; }
.demo-modal__text { position: relative; margin: 14px 0 24px; color: var(--ink-2); }
.demo-modal__text b { color: var(--ink); }
.demo-modal__btn { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .demo-modal:not([hidden]) .demo-modal__backdrop { animation: fade .35s ease; }
  .demo-modal:not([hidden]) .demo-modal__box { animation: pop .55s var(--ease); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }

/* ---------- Появление при прокрутке (только с JS и без reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .rv.is-in { opacity: 1; transform: none; }
}

/* =================== Планшет =================== */
@media (min-width: 640px) {
  :root { --pad: 32px; }
  .hide-sm { display: inline; }
  .header__phone { display: inline-block; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .hero__facts li { flex-direction: column; gap: 4px; padding: 18px 18px 18px 0; border-bottom: 0; }
  .hero__facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
  .hero__facts span { text-align: left; }
  .masters__list { grid-auto-columns: 44%; }
  .reviews__list { grid-auto-columns: 60%; }
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    grid-template-areas:
      "a a c"
      "a a c"
      "b d c"
      "f f e";
  }
  .contacts__cta .btn--dark { flex: 0 0 auto; }
  .contacts__cta .btn--ghost { flex: 0 0 auto; padding: 0 24px; }
  .contacts__card { padding: 44px 36px 36px; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
  .prices__box { padding: 14px 32px 32px; }
  .js .tabs { margin: 10px 0 18px; display: inline-flex; }
  .tabs__btn { padding: 12px 22px; }
}

/* =================== Десктоп =================== */
@media (min-width: 1024px) {
  :root { --pad: 48px; --header-h: 76px; }
  .burger { display: none; }
  .mnav { display: none !important; }
  .header__actions .btn--sm { display: inline-flex; }
  .header__phone { margin-right: 10px; }
  .nav { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .55); border: 1px solid var(--line); }
  .nav a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .3s, color .3s; }
  .nav a:hover { background: var(--plum); color: var(--milk); }
  .logo__text { font-size: 24px; }
  .logo__mark { width: 34px; height: 34px; }

  .hero { padding: 56px 0 72px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "content art" "facts art";
    align-items: start;
    gap: 40px 64px;
  }
  .hero__content { display: contents; }
  .hero__kicker { grid-column: 1 / -1; grid-row: 1; }
  .hero__title { grid-column: 1 / -1; grid-row: 2; margin-top: -16px; max-width: 13.6em; font-size: clamp(64px, 6.3vw, 92px); text-wrap: pretty; }
  .hero__lead { grid-column: 1; grid-row: 3; }
  .hero__cta { grid-column: 1; grid-row: 4; }
  .hero__facts { grid-column: 1; grid-row: 5; align-self: end; }
  .hero__title { position: relative; z-index: 2; }
  .hero__art { grid-column: 2; grid-row: 3 / 6; align-self: start; max-width: 500px; justify-self: end; width: 100%; margin: -150px 0 0; z-index: 1; }
  .hero__lead { font-size: 18px; margin-top: 28px; }
  .hero__cta { margin-top: 36px; }
  .hero__badge { width: 132px; height: 132px; left: 0; top: 10%; }
  .hero__float { right: -24px; padding: 18px 22px; }
  .hero__float-v { font-size: 30px; }

  .marquee__track { padding: 22px 0; }
  .marquee__track span { font-size: 40px; padding: 0 32px; }

  .section { padding: 120px 0; }
  .sec-head { margin-bottom: 56px; }
  .sec-head--row { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 48px; }
  .sec-head--row .sec-lead { margin: 0 0 10px; justify-self: end; }
  .sec-lead { font-size: 17px; }

  .prices__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .prices__head { position: sticky; top: calc(var(--header-h) + 40px); }
  .prices__cta { display: block; }
  .prices .sec-cta { display: none; }
  .prices__box { padding: 20px 44px 40px; }
  .price-list span { font-size: 16px; }
  .price-list b { font-size: 21px; }
  .price-panel__title { font-size: 30px; }

  .masters__list {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr);
    gap: 32px; margin: 0; padding: 0; overflow: visible;
  }
  .master:nth-child(2) { transform: translateY(72px); }
  .js .master.rv:nth-child(2).is-in { transform: translateY(72px); }
  .master:nth-child(3) { transform: translateY(24px); }
  .js .master.rv:nth-child(3).is-in { transform: translateY(24px); }
  .masters .sec-cta { margin-top: 120px; }
  .master__name { font-size: 36px; }

  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 16px;
    grid-template-areas:
      "a a b c"
      "a a d c"
      "e f f c";
  }
  .tile { border-radius: 32px; }
  .tile--a { border-radius: 999px 999px 32px 32px; }
  .tile--c { border-radius: 32px 32px 999px 999px; }
  .tile__cap { left: 14px; right: auto; bottom: 14px; max-width: calc(100% - 28px); font-size: 13.5px; padding: 10px 16px; }
  .tile--c .tile__cap { bottom: 30%; }

  .why { margin-top: 60px; }
  .why .sec-head--row > div:last-child { margin: 0 0 10px; justify-self: end; }
  .why__list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .why__item { padding: 32px 28px 36px; min-height: 360px; display: flex; flex-direction: column; }
  .why__icon { margin-bottom: auto; }
  .why__item h3 { margin-top: 48px; }

  .reviews__list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; overflow: visible; }
  .review { padding: 32px 32px 30px; }
  .review:nth-child(2) { transform: rotate(-1.2deg) translateY(-14px); }
  .js .review.rv:nth-child(2).is-in { transform: rotate(-1.2deg) translateY(-14px); }
  .review blockquote { font-size: 22px; }

  .faq__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .faq__grid .sec-head { position: sticky; top: calc(var(--header-h) + 40px); }
  .faq__item summary { font-size: 24px; padding: 28px 0; }
  .faq__body { font-size: 16.5px; padding-bottom: 30px; }

  .contacts__card { grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 64px; align-items: center; }
  .contacts__list > div { grid-template-columns: 160px 1fr; align-items: baseline; padding: 18px 0; }
  .contacts__list dd { font-size: 24px; }
  .contacts__map { aspect-ratio: auto; height: 100%; min-height: 540px; }

  .footer { padding: 80px 0 104px; margin-top: 120px; }
  .footer__demo { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 28px 32px; }
  .footer__word { margin: 72px 0 36px; }

  .fab { display: none; }
  .demo-modal__box { padding: 44px 40px 36px; }
  .demo-modal__title { font-size: 38px; }
}



@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
