/* «Хитро» — стили сайта. Токены — из брендбука v1.0 (Figma: переменные «Хитро · цвета», стили Desktop/…). */
/* Шрифты — со своего сервера (вариативные woff2: кириллица + латиница), без запросов к Google */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-latext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500 900; font-display: swap; src: url(/fonts/rubik-latext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500 900; font-display: swap; src: url(/fonts/rubik-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500 900; font-display: swap; src: url(/fonts/rubik-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #FFF6EC;
  --white: #FFFFFF;
  --cream: #FFE6D2;
  --orange: #FF6B2C;
  --orange-dark: #E85A1E;
  --ink: #2A1A12;
  --mint: #6FE3C1;
  --peach: #FFC9A8;
  --text-2: rgba(42, 26, 18, .65);
  --line: rgba(42, 26, 18, .12);
  --r-lg: 40px;
  --r-md: 32px;
  --r-sm: 24px;
  --pad: 80px;
  --max: 1280px;
  --font-h: "Rubik", system-ui, sans-serif;
  --font-t: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-t);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Типографика */
.h1, h1 { font: 700 72px/1 var(--font-h); letter-spacing: -.02em; margin: 0; }
.h2, h2 { font: 700 48px/1.05 var(--font-h); letter-spacing: -.015em; margin: 0; }
.h3, h3 { font: 700 28px/1.15 var(--font-h); letter-spacing: -.005em; margin: 0; }
.h4, h4 { font: 700 22px/1.2 var(--font-h); margin: 0; }
.num { font: 900 56px/1 var(--font-h); letter-spacing: -.02em; }
.lead { font: 500 20px/1.5 var(--font-t); color: var(--text-2); margin: 0; }
.small { font-size: 15px; line-height: 1.5; color: var(--text-2); margin: 0; }
.cap { font: 700 13px/1.3 var(--font-t); letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.muted { color: var(--text-2); }
.on-dark { color: var(--white); }
.on-dark .cap { color: var(--mint); }
.on-dark .small, .on-dark .lead { color: rgba(255, 255, 255, .8); }

/* Сетка */
.wrap { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: 110px 0; }
.sec--tight { padding: 60px 0; }
.sec--white { background: var(--cream); } /* белых секций нет: выделение — тёмный беж (отзыв Кристины 10.10) */
.sec--cream { background: var(--cream); }
.sec--dark { background: var(--ink); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.sec-head > div { display: grid; gap: 14px; max-width: 820px; }
.sec-head a { font-weight: 600; color: var(--orange); white-space: nowrap; }
.grid { display: grid; gap: 25px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.stack { display: grid; gap: 20px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 36px; border-radius: 100px; border: 2px solid transparent;
  font: 700 17px/1 var(--font-t); transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--m { padding: 14px 24px; font-size: 16px; font-weight: 600; }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); box-shadow: 0 10px 24px rgba(255, 107, 44, .3); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--orange); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--ink); color: var(--white); }
.btn { transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s; }
.link, .sec-head a { transition: color .2s; }
.link:hover, .sec-head a:hover, .svc-wide:hover .link { color: var(--ink); }
.chip { transition: background .2s, border-color .2s, color .2s; cursor: pointer; }
.chip:not(.is-active):hover { border-color: var(--ink); background: var(--cream); }
.nav a { transition: color .2s; }
.header__act .tel:hover, .footer ul a:hover { color: var(--orange); }
.burger:hover { background: var(--orange); }
.opt { transition: background .2s, border-color .2s; cursor: pointer; }
.opt:hover:not(.is-on) { border-color: var(--peach); }
.svc-wide { transition: transform .2s, box-shadow .2s; }
.svc-wide:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(42, 26, 18, .08); }
.faq summary:hover { color: var(--orange); }
.btn--block { width: 100%; }
.link { color: var(--orange); font-weight: 600; }

.chip {
  display: inline-flex; padding: 12px 22px; border-radius: 100px; background: var(--white);
  border: 1.5px solid var(--line); font: 600 16px/1 var(--font-t); color: var(--ink);
}
.chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tag { display: inline-flex; padding: 7px 14px; border-radius: 100px; background: var(--cream); font-size: 15px; }
.pill { display: inline-flex; padding: 10px 18px; border-radius: 100px; font: 700 13px/1.3 var(--font-t); letter-spacing: .08em; text-transform: uppercase; }

.input {
  width: 100%; padding: 20px 24px; border-radius: 18px; border: 1.5px solid var(--line);
  background: var(--white); font: 400 17px/1.4 var(--font-t); color: var(--ink);
}
.input::placeholder { color: var(--text-2); }
.input:focus { outline: none; border-color: var(--orange); }

.card { background: var(--white); border-radius: var(--r-md); padding: 32px; }

/* 3D: всегда целиком, без обрезки (правило ревью) */
.d3 { object-fit: contain; pointer-events: none; user-select: none; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 246, 236, .92); backdrop-filter: blur(10px); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 30px/1 var(--font-h); letter-spacing: -.04em; }
.logo svg { width: 40px; height: 40px; }
.logo i { font-style: normal; color: var(--orange); }
.nav { display: flex; gap: 36px; font-weight: 600; font-size: 16px; }
.nav a:hover, .nav a[aria-current] { color: var(--orange); }
.header__act { display: flex; align-items: center; gap: 24px; font-weight: 600; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); border: 0; padding: 14px 12px; }
.burger span { display: block; height: 2.5px; background: #fff; border-radius: 2px; margin: 4px 0; }
.mnav { display: none; }

/* Подвал */
.footer { background: var(--ink); color: var(--white); padding: 80px 0 48px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr 1fr; gap: 48px; }
.footer__about { display: grid; gap: 24px; align-content: start; }
.footer__about p { margin: 0; font-size: 15px; opacity: .85; }
.footer h5 { margin: 0 0 14px; font: 700 13px/1.3 var(--font-t); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.footer ul a:hover { color: var(--mint); }
.footer__bot { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; font-size: 14px; opacity: .6; flex-wrap: wrap; }
.logo--white { color: var(--white); }
.logo--white i { color: var(--white); }

/* Первый экран */
.hero { padding: 40px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1fr 580px; gap: 48px; align-items: center; }
.hero .h1 { font-size: clamp(40px, 4.6vw, 66px); }
.hero__text { display: grid; gap: 28px; justify-items: start; }
.hero__stats { display: flex; gap: 48px; padding-top: 16px; }
.hero__stats b { display: block; font: 900 44px/1 var(--font-h); color: var(--orange); margin-bottom: 4px; }
.hero__art { position: relative; aspect-ratio: 640 / 620; }
.hero__art::before { content: ""; position: absolute; inset: 2% 3%; border-radius: 50%; background: var(--peach); opacity: .55; }
.hero__art > img { position: absolute; inset: 4%; width: 92%; height: 92%; }
.hero__art .sticker img { display: block; }
.sticker { position: absolute; padding: 12px 20px; border-radius: 100px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; transform: rotate(-6deg); z-index: 2; }
.crumbs { font-size: 15px; color: var(--text-2); }
.crumbs a:hover { color: var(--orange); }
.page-head { padding-top: 48px; padding-bottom: 40px; display: grid; gap: 20px; }

/* Доверие */
.trust { background: var(--cream); padding: 28px 0; }
.trust .trust__logo { background: var(--bg); }
.trust__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.trust__in { flex-wrap: nowrap; }
.trust__logo { padding: 14px 18px; border-radius: 16px; background: var(--cream); font-weight: 600; color: var(--text-2); white-space: nowrap; font-size: 15px; }

/* Карточка услуги */
.svc { display: flex; flex-direction: column; gap: 14px; min-height: 400px; transition: transform .2s, box-shadow .2s; }
.svc:hover, .case:hover, .post:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(42, 26, 18, .08); }
.svc img { width: 130px; height: 130px; }
.svc__bot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.svc .svc__bot span:last-child { color: var(--orange); font: 700 28px/1 var(--font-h); }
.cta-card { grid-column: span 2; position: relative; background: var(--orange); color: #fff; border-radius: var(--r-md); padding: 44px; display: grid; gap: 20px; align-content: start; justify-items: start; min-height: 400px; }
.cta-card p { margin: 0; max-width: 400px; }
.cta-card img { position: absolute; right: 50px; bottom: 24px; height: 340px; width: auto; }
.cta-card .h2 { max-width: 440px; }

/* Шаги */
.step { border-radius: var(--r-md); padding: 32px; display: grid; gap: 16px; align-content: start; }
.step p { margin: 0; font-size: 15px; }

/* Кейсы */
.case { background: var(--white); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.case__cover { height: 260px; display: grid; place-items: center; padding: 16px 20px; }
.case__cover img { max-height: 228px; max-width: 100%; width: auto; }
.case__body { padding: 28px; display: grid; gap: 12px; }
.case__res { display: flex; align-items: center; gap: 12px; }
.case__res b { font: 900 40px/1 var(--font-h); letter-spacing: -.02em; }
.case__res span { font-size: 15px; color: var(--text-2); max-width: 170px; }

/* Почему */
.why { display: grid; grid-template-columns: 410px 1fr; gap: 25px; }
.why__hero { position: relative; background: var(--orange); color: #fff; border-radius: var(--r-md); padding: 36px; min-height: 640px; }
.why__hero p { margin: 14px 0 0; font-size: 15px; max-width: 320px; }
.why__hero img { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); height: 440px; width: auto; }
.why__item { background: var(--white); border-radius: 28px; padding: 32px; display: grid; gap: 12px; align-content: start; }
.why__item .pill { justify-self: start; padding: 6px 14px; }

/* Тарифы */
.plan { border-radius: var(--r-md); padding: 40px; display: flex; flex-direction: column; gap: 20px; background: var(--white); border: 1.5px solid var(--line); }
.plan--hot { background: var(--orange); color: #fff; border-color: var(--orange); }
.plan--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.plan__price .num { font-size: clamp(36px, 3.4vw, 48px); }
.plan > .small { min-height: 46px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan li::before { content: "— "; }
.plan .btn { margin-top: auto; }
.plan--hot .small, .plan--dark .small { color: rgba(255, 255, 255, .85); }
.badge { display: inline-flex; padding: 6px 12px; border-radius: 100px; background: #fff; color: var(--orange); font: 700 12px/1.3 var(--font-t); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; margin-left: 10px; }

/* Отзывы, блог */
.review { background: var(--bg); border-radius: var(--r-md); padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.review img { width: 150px; }
.review blockquote { margin: 0; font: 500 20px/1.5 var(--font-t); }
.review__a { margin-top: auto; display: flex; gap: 14px; align-items: center; }
.review__a i { width: 52px; height: 52px; border-radius: 50%; background: var(--peach); flex: none; }
.post { background: var(--white); border-radius: var(--r-md); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post__cover { height: 240px; display: flex; align-items: flex-end; justify-content: center; padding-top: 20px; }
.post__cover img { max-height: 220px; width: auto; }
.post__cover--obj { align-items: center; padding: 20px; }
.post__body { padding: 28px; display: grid; gap: 10px; }

/* Портреты лиса по пояс «выглядывают» из-за нижнего края: срез худи прячется, голова и уши целиком внутри */
.post__cover { position: relative; overflow: hidden; }
.post__cover .d3--peek { position: absolute; right: 9%; bottom: -16%; height: 112%; max-height: none; width: auto; }
.banner .banner__art.d3--peek { bottom: -7%; height: 92%; max-height: 470px; }
.quote-card { overflow: hidden; align-items: stretch; padding-bottom: 0; }
.quote-card .d3--peek { align-self: flex-end; margin-bottom: -18px; flex: none; }
.quote-card .stack { padding-bottom: 32px; align-self: center; }
.opt .d3--peek { align-self: flex-end; margin-bottom: -27px; }
.opt { overflow: hidden; }

/* Баннеры и формы */
.banner { position: relative; border-radius: var(--r-lg); padding: 64px; overflow: hidden; display: grid; gap: 18px; justify-items: start; }
.banner > :not(img):not(.banner__glow) { max-width: 600px; position: relative; z-index: 1; }
.grid > *, .hero__grid > * { min-width: 0; }
.banner p { margin: 0; }
.banner__art { position: absolute; right: 80px; bottom: 24px; height: calc(100% - 48px); max-height: 420px; width: auto; }
.banner__glow { position: absolute; right: 40px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); border-radius: 50%; background: var(--peach); opacity: .5; }
.form { display: grid; gap: 14px; width: 100%; max-width: 540px; }
.form__note { font-size: 14px; opacity: .8; margin: 0; }
/* Страница /cookie/: таблица cookie (на телефоне — карточки) и текущий выбор */
.ctable { margin: 8px 0 12px; }
.ctable table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; background: var(--white); border-radius: 16px; overflow: hidden; }
.ctable th, .ctable td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(42, 26, 18, .08); }
.ctable th { font-weight: 700; background: rgba(255, 201, 168, .35); }
.ctable code { font-family: inherit; font-weight: 700; overflow-wrap: anywhere; }
.cookie-now { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; padding: 18px 20px; border-radius: 20px; background: var(--white); }
.cookie-now p { margin: 0; font-weight: 600; flex: 1 1 220px; }
@media (max-width: 760px) {
  .ctable thead { display: none; }
  .ctable table, .ctable tbody, .ctable tr, .ctable td { display: block; width: 100%; }
  .ctable tr { padding: 10px 0; border-bottom: 1px solid rgba(42, 26, 18, .12); }
  .ctable td { border: 0; padding: 4px 16px; }
  .ctable td:nth-child(n+2)::before { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2, #7A6A60); }
  .ctable td:nth-child(2)::before { content: "Кто устанавливает"; } .ctable td:nth-child(3)::before { content: "Зачем"; }
  .ctable td:nth-child(4)::before { content: "Срок"; } .ctable td:nth-child(5)::before { content: "Категория"; }
}
/* Плашка cookie (поверх кнопки чата, пока не сделан выбор) */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 760px; margin: 0 auto; display: grid; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 12px 40px rgba(42, 26, 18, .18); }
.cookie__main { display: flex; gap: 16px; align-items: center; }
.cookie p { margin: 0; font-size: 14px; line-height: 1.45; }
.cookie a { color: inherit; text-decoration: underline; }
.cookie__btns { display: flex; gap: 8px; align-items: center; flex: none; }
@media (max-width: 760px) { .cookie__main { flex-direction: column; align-items: stretch; } .cookie__btns { flex-wrap: wrap; } .cookie__btns .btn { flex: 1 1 120px; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.consent a { text-decoration: underline; color: inherit; }
.consent a:hover { opacity: .75; }
.ok-msg { display: none; padding: 16px 20px; border-radius: 16px; background: var(--white); color: var(--ink); font-weight: 600; }
.form.is-sent .ok-msg { display: block; }
.form.is-sent > :not(.ok-msg) { display: none; }
#partners .trust__logo { background: var(--white); color: var(--ink); }
.trust__logo.trust__logo--img, #partners .trust__logo.trust__logo--img { display: inline-flex; align-items: center; padding: 8px 14px; background: transparent; border-radius: 0; }
.trust__logo--img img { height: 26px; width: auto; display: block; }
.err-msg { display: none; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600; }
.err-msg a { color: var(--mint); }
.form.is-error .err-msg { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.founder { display: grid; grid-template-columns: 380px 1fr; gap: 40px; padding: 32px; border-radius: var(--r-md); background: var(--white); }
.founder__ph { aspect-ratio: 4/5; border-radius: var(--r-md); background: var(--peach); display: grid; place-items: center; }
.founder__ph svg { width: 42%; height: auto; }
.founder__ph img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; padding: 20px; gap: 24px; } .founder__ph { max-width: 360px; } }

/* Каталог услуг */
.svc-wide { display: flex; gap: 28px; padding: 32px; background: var(--white); border-radius: var(--r-md); }
.svc-wide__ic { flex: none; width: 162px; height: 162px; border-radius: 24px; background: var(--bg); display: grid; place-items: center; padding: 16px; }
.svc-wide__ic img { max-height: 130px; width: auto; }
.svc-wide__b { display: grid; gap: 12px; align-content: start; flex: 1; }
.svc-wide__f { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; margin-top: auto; }
.svc-wide__f b, .svc__bot span:first-child, .price td:nth-child(3) { white-space: nowrap; }
.hero__badge { position: absolute; right: 2%; bottom: 8%; z-index: 2; width: 26%; aspect-ratio: 1; display: grid; place-items: center; transform: rotate(8deg); }
.hero__badge img { width: 100%; height: 100%; }
.hero__badge--top { top: 4%; bottom: auto; right: 0; transform: rotate(-6deg); }
.case-side { align-self: start; }
.metric { background: #fff; color: var(--ink); border-radius: 24px; padding: 16px 22px; }
.metric .small { color: var(--text-2) !important; }
.metric .num, .card > .num, .card > b.num { display: block; line-height: 1.1; margin-bottom: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Прайс */
.price { background: var(--white); border-radius: 28px; padding: 28px 32px 20px; break-inside: avoid; }
.price__h { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; }
.price__h img { width: 56px; height: 56px; }
.price table { width: 100%; border-collapse: collapse; }
.price td { padding: 16px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.price td:nth-child(2) { font-size: 15px; color: var(--text-2); width: 120px; }
.price td:nth-child(3) { text-align: right; font: 700 22px/1.2 var(--font-h); white-space: nowrap; }
.prices { columns: 2; column-gap: 25px; }
.prices .price { margin-bottom: 25px; display: inline-block; width: 100%; }

/* Квиз */
.quiz { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: stretch; }
.quiz__card { background: var(--white); border-radius: var(--r-lg); padding: 48px; display: grid; gap: 28px; align-content: start; }
.quiz__bar { height: 10px; border-radius: 5px; background: var(--cream); flex: 1; overflow: hidden; }
.quiz__bar i { display: block; height: 100%; background: var(--orange); border-radius: 5px; transition: width .3s; }
.quiz__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.opt { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 24px; background: var(--bg); border: 3px solid transparent; text-align: left; color: var(--ink); }
.opt img { width: 72px; height: 72px; flex: none; }
.opt.is-on { background: var(--cream); border-color: var(--orange); }
.quiz__nav { display: flex; justify-content: space-between; }
.quiz__side { position: relative; min-height: 600px; }
.bubble { background: var(--ink); color: #fff; border-radius: 28px; padding: 24px; }
.bubble p { margin: 8px 0 0; }
.quiz__side img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 520px; width: auto; }
.quiz__result { display: none; }
.quiz.is-done .quiz__q { display: none; }
.quiz.is-done .quiz__result { display: grid; gap: 20px; }

/* FAQ */
/* Телефоны: страница не должна «гулять» вбок. Страховка — только на html (на body сломала бы закреплённую шапку). */
html { overflow-x: hidden; overflow-x: clip; }
.svc-wide__b, .hero__stats > div { min-width: 0; }
.svc-wide .h3, .hero__stats .small { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 420px) {
  /* цифры первого экрана — строками: цифра слева, подпись справа (в три колонки слова рвались посередине) */
  .hero__stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; }
  .hero__stats > div { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
  .hero__stats b { font-size: 26px; margin: 0; flex: none; min-width: 92px; }
  .hero__stats .small { font-size: 14px; line-height: 1.3; overflow-wrap: normal; }
  .hero__stats .small br { display: none; }
  .svc-wide { padding: 22px; gap: 18px; }
  .svc-wide .h3 { font-size: 23px; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .cta-card { padding: 26px; }
  .h1, h1, .hero .h1 { font-size: 34px; }
  .h2, h2 { font-size: 30px; }
  .price td:nth-child(3), .svc-wide__f b, .svc__bot span:first-child { white-space: normal; }
}
/* колонки этих сеток могут сжиматься уже содержимого — иначе длинная фраза раздвигает страницу на телефоне */
.faq { grid-template-columns: minmax(0, 1fr); }
.ba-row { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); }
.ba-row > *, .ba > *, .faq > *, .pay__lists > * { min-width: 0; }
@media (max-width: 700px) {
  .ba-row { grid-template-columns: minmax(0, 1fr); }
  .ba { grid-template-columns: minmax(0, 1fr); }
}
.bars div { min-width: 0; }
.stack > *, .case-side { min-width: 0; }
@media (max-width: 480px) {
  .bars { gap: 6px; }
  .bars b { font-size: 15px; }
  .bars .small { font-size: 11px; }
  .faq summary { padding: 20px 22px; font-size: 18px; }
  .faq p { padding: 0 22px 20px; }
  /* при расчёте ширины колонок браузер учитывает возможный перенос длинного слова; сначала — по слогам с дефисом */
  body { overflow-wrap: anywhere; hyphens: auto; }
  a[href^="mailto:"], a[href^="tel:"] { white-space: normal; }
}
.faq { display: grid; gap: 12px; align-content: start; }  /* плашки не растягиваются по высоте колонки — вся плашка = кликабельный заголовок */
.faq details { background: var(--cream); border-radius: 24px; transition: background .2s; }
.faq details[open] { background: var(--white); }
/* отступы — у заголовка, а не у карточки: кликается вся плашка, а не только текст вопроса */
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 32px; border-radius: 24px; font: 700 22px/1.2 var(--font-h); }
.faq details:not([open]):hover { background: var(--peach); }
.faq summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 28px; line-height: .8; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0; padding: 0 32px 26px; color: var(--text-2); }

/* Команда, события */
.member .ph { aspect-ratio: 305 / 360; border-radius: 28px; display: grid; place-items: center; margin-bottom: 14px; }
.member .ph svg { width: 110px; opacity: .35; }
.event { display: flex; gap: 24px; padding: 28px; border-radius: 28px; background: var(--bg); }
.event__d { flex: none; align-self: flex-start; display: grid; place-items: center; align-content: center; width: 104px; height: 104px; border-radius: 20px; }
.event__d b { font: 900 48px/1 var(--font-h); }

/* Кейс: график */
.bars { display: flex; align-items: flex-end; gap: 28px; height: 300px; }
.bars div { flex: 1; display: grid; justify-items: center; gap: 10px; align-content: end; height: 100%; }
.bars i { display: block; width: 100%; border-radius: 16px; }

.bars .is-before i { background: #E6D3C2; }
.bars .is-before b, .bars .is-before .small { color: var(--text-2); }
.bars .is-on i { background: var(--orange); }
.bars__start { flex: 0 0 2px !important; align-self: stretch; height: 100%; background: repeating-linear-gradient(to bottom, var(--ink) 0 6px, transparent 6px 12px); opacity: .4; position: relative; }
.bars__start span { position: absolute; top: -4px; left: 8px; white-space: nowrap; font: 700 12px/1 var(--font-t); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-left: 10px; }
.legend i.is-before { background: #E6D3C2; }
.legend i.is-on { background: var(--orange); }

/* Было → Стало */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.ba__col { border-radius: 32px; padding: 32px; display: grid; gap: 18px; align-content: start; }
.ba__col--before { background: #EFE4D8; color: var(--text-2); }
.ba__col--before .cap { color: var(--text-2); }
.ba__col--before b { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(42, 26, 18, .35); }
.ba__col--after { background: var(--orange); color: #fff; }
.ba__col--after .cap { color: #fff; }
.ba__item { display: grid; gap: 2px; }
.ba__item b { font: 900 34px/1.05 var(--font-h); letter-spacing: -.01em; }
.ba__item span { font-size: 15px; }
.ba--text .ba__item b { font: 700 21px/1.25 var(--font-h); letter-spacing: 0; }  /* значения-фразы, а не цифры */
.ba--text .ba__item { gap: 4px; }
.ba__mid { align-self: center; font: 900 40px/1 var(--font-h); color: var(--orange); }

/* SEO-текст: обычный видимый блок для людей (не скрываем — иначе клоакинг) */
.seo-text { padding-top: 0; }
.seo-text__in { max-width: 860px; display: grid; gap: 16px; }
.seo-text p { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.seo-text ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.seo-text li { padding-left: 28px; position: relative; }
.seo-text li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 4px; background: var(--mint); }

/* Карта */
.map { position: relative; height: 420px; border-radius: 36px; overflow: hidden; background: var(--cream); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 1200px) {
  :root { --pad: 40px; }
  .h1, h1 { font-size: 60px; }
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .g5 { grid-template-columns: repeat(3, 1fr); }
  .grid.g2:has(> .svc-wide) { grid-template-columns: 1fr; }
  .trust__in { flex-wrap: wrap; }
  .nav { gap: 22px; }
  .header__act .tel { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav, .header__act .btn { display: none; }
  .burger { display: block; }
  .mnav.is-open { display: grid; gap: 18px; padding: 24px var(--pad) 32px; background: var(--bg); font: 700 22px/1.2 var(--font-h); }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .why, .quiz { grid-template-columns: 1fr; }
  .why__hero { min-height: 560px; }
  .quiz__side { min-height: 0; display: grid; gap: 16px; }
  .quiz__side img { position: static; transform: none; height: 300px; margin: 0 auto; }
  .prices { columns: 1; }
  .wrap[style*="grid-template-columns"], .hero__grid[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .wrap[style*="grid-template-columns"] > *, .hero__grid[style*="grid-template-columns"] > * { min-width: 0; }
  .banner__art { position: static; height: 280px; max-height: none; margin: 8px auto 0; }
  .banner__glow { display: none; }
  .banner .banner__art.d3--peek { position: static; height: 280px; margin-bottom: -64px; }
}
@media (max-width: 760px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .h1, h1 { font-size: 40px; line-height: 1.05; }
  .h2, h2 { font-size: 30px; line-height: 1.1; }
  .h3, h3 { font-size: 24px; }
  .num { font-size: 44px; }
  .sec { padding: 64px 0; }
  .hero { padding: 12px 0 40px; }
  .hero__grid, .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .hero__text .btn { width: 100%; }
  .hero__stats { gap: 10px; }
  .hero__stats > div { flex: 1; background: #fff; border-radius: 18px; padding: 14px; }
  .hero__stats b { font-size: 28px; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .cta-card { grid-column: auto; padding: 32px; min-height: 0; }
  .cta-card img { position: static; height: 220px; margin: 8px auto 0; }
  .svc { min-height: 0; }
  .why__hero { min-height: 0; }
  .why__hero img { position: static; transform: none; height: 300px; margin: 16px auto 0; }
  .banner { padding: 32px; }
  .banner__art { height: 240px; }
  .banner .banner__art.d3--peek { height: 240px; margin-bottom: -32px; }
  .svc-wide { flex-direction: column; }
  .quiz__card { padding: 28px; }
  .quiz__opts { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .trust__in { justify-content: center; gap: 10px 6px; }
  .trust__in > .h4 { flex-basis: 100%; max-width: none !important; text-align: center; margin-bottom: 4px; }
  #partners .row { justify-content: center; gap: 10px 6px; }
  .event { flex-direction: column; }
  .bars { gap: 12px; height: 220px; }
  .price td:nth-child(2) { display: none; }
  .ba { grid-template-columns: 1fr; }
  .ba__mid { transform: rotate(90deg); justify-self: center; }
  .bars__start span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ссылка на сайт клиента в карточке кейса */
b.h4 a[target="_blank"] { color: var(--orange); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s; }
b.h4 a[target="_blank"]:hover { border-bottom-color: var(--orange); }

/* Переносы: заголовки — строками равной длины, абзацы — без одиноких слов в последней строке,
   длинные слова и адреса не вылезают за край на узких экранах */
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .cap { text-wrap: balance; }
p, li, .lead, .small, blockquote, figcaption, label { text-wrap: pretty; }
body { overflow-wrap: break-word; }
a[href^="mailto:"], a[href^="tel:"] { white-space: nowrap; }

/* Страницы отдельных услуг */
.sub-card { color: inherit; text-decoration: none; background: var(--white); transition: transform .2s, box-shadow .2s; }
.sub-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(42, 26, 18, .12); }
.sub-two { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.sub-two > .card { padding: 40px; gap: 14px; align-content: start; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-size: 18px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.ticks--light li::before { background: var(--mint); }
.ticks--light li::after { border-color: var(--ink); }
.sub-price { margin-top: 18px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); display: grid; gap: 4px; }
.sub-price span { opacity: .8; font-size: 15px; }
.prices td a { color: inherit; text-decoration: underline; text-decoration-color: rgba(42, 26, 18, .3); text-underline-offset: 3px; }
.prices td a:hover { color: var(--orange); text-decoration-color: currentColor; }
@media (max-width: 900px) { .sub-two { grid-template-columns: 1fr; } .sub-two > .card { padding: 28px; } }

/* Фильтры */
[data-f-item][hidden] { display: none !important; }
/* Длинные слова в карточках: текст рядом с картинкой может сжиматься и переносится через дефис, а не вылезает за рамку */
.row > :not(img):not(.d3) { min-width: 0; }
.card .h4, .card b, .step .h4, .work-step .h4, .review .h4, .pill { overflow-wrap: break-word; hyphens: auto; }
button.chip { font: inherit; cursor: pointer; }

/* Как идёт работа */
.work-step { background: var(--white); color: var(--ink); border-radius: var(--r-md); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.work-step__n { font: 900 40px/1 var(--font-h); color: var(--orange); }
.work-step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.work-step .work-step__out { margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(42, 26, 18, .2); color: var(--ink); font-size: 15px; }
.work-step__out b { color: var(--orange); font-weight: 700; }
/* За что вы платите */
.pay { display: grid; grid-template-columns: 420px 1fr; gap: 60px; }
.pay__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-content: start; }
.pay-card { padding: 32px; gap: 14px; align-content: start; }
.pay-card--out { background: var(--peach); }
.dashes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dashes li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.45; }
.dashes li::before { content: "+"; position: absolute; left: 0; top: -1px; font-weight: 700; color: var(--orange); }
.sub-two .pay-card { padding: 28px; }
@media (max-width: 1100px) { .pay { grid-template-columns: 1fr; gap: 30px; } .pay img { display: none; } }
@media (max-width: 700px) { .pay__lists { grid-template-columns: 1fr; } .work-step { padding: 24px; } }

/* Сравнение «было → стало» фразами — построчно */
.ba-rows { display: grid; gap: 12px; }
.ba-row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: stretch; }
.ba-row--head { align-items: end; padding: 0 4px; }
.ba-row__b, .ba-row__a { border-radius: 20px; padding: 18px 22px; display: grid; gap: 4px; align-content: center; }
.ba-row__b { background: #EFE3D6; color: var(--text-2); }
.ba-row__a { background: var(--orange); color: #fff; }
.ba-row p { margin: 0; font: 700 19px/1.3 var(--font-h); }
.ba-row__b p { font-weight: 600; }
.ba-row__k { font-size: 13px; opacity: .75; }
.ba-row__arr { display: grid; place-items: center; color: var(--orange); font-size: 24px; font-weight: 700; }
@media (max-width: 700px) {
  .ba-row { grid-template-columns: 1fr; gap: 6px; }
  .ba-row--head { display: none; }
  .ba-row__arr { transform: rotate(90deg); height: 20px; }
  .ba-row + .ba-row { margin-top: 10px; }
}

/* Мегаменю */
.nav { align-items: center; }
.nav__item { display: flex; align-items: center; align-self: stretch; }
.nav__item--mega { padding: 30px 0; margin: -30px 0; }  /* «мостик» для мыши от пункта до панели */
.nav__link { display: inline-flex; align-items: center; gap: 6px; }
.nav__chev { width: 12px; height: 12px; transition: transform .2s; }
.nav__link:hover, .nav__link[aria-current], .nav__item--mega:hover .nav__link { color: var(--orange); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid rgba(42, 26, 18, .08);
        box-shadow: 0 30px 60px rgba(42, 26, 18, .14); padding: 36px 0 40px; font-weight: 400;
        opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega, .nav__item--mega.is-open .mega {
        opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__item--mega.is-closed .mega { opacity: 0; visibility: hidden; }
.nav__item--mega:hover .nav__chev, .nav__item--mega:focus-within .nav__chev, .nav__item--mega.is-open .nav__chev { transform: rotate(180deg); }
.mega__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 260px; gap: 28px; }
.mega__col { display: grid; gap: 22px; align-content: start; }
.mega__col > .cap { color: var(--orange); white-space: nowrap; font-size: 12px; letter-spacing: .05em; }
.mega__svc { display: grid; gap: 8px; }
.mega__svc-h { display: flex; align-items: center; gap: 10px; font: 700 17px/1.2 var(--font-h); color: var(--ink); }
.mega__svc-h:hover { color: var(--orange); }
.mega__ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--white); display: grid; place-items: center; }
.mega__ic img { max-height: 34px !important; width: auto !important; }
.mega__svc ul { list-style: none; margin: 0; padding: 0 0 0 54px; display: grid; gap: 6px; }
.mega__svc li a { font-size: 15px; color: var(--text-2); }
.mega__svc li a:hover { color: var(--orange); }
.mega__cta { position: relative; overflow: hidden; background: var(--orange); color: #fff; border-radius: var(--r-md); padding: 26px 24px 0; display: grid; gap: 12px; align-content: start; justify-items: start; }
.mega__cta p { margin: 0; font-size: 15px; opacity: .9; }
.mega__all { color: #fff; font-weight: 600; font-size: 15px; }
.mega__all:hover { color: var(--ink); }
.mega__cta img { justify-self: end; margin: 4px -6px 0 0; }
@media (max-width: 1200px) { .mega__in { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mega__cta { display: none; } }
/* бургер-меню: «Услуги» раскрывается списком разделов */
.mnav__svc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.mnav__svc summary::-webkit-details-marker { display: none; }
.mnav__svc summary::after { content: "+"; color: var(--orange); font-size: 26px; line-height: 1; }
.mnav__svc[open] summary::after { content: "−"; }
.mnav__svc > div { display: grid; gap: 12px; padding: 14px 0 4px 14px; border-left: 2px solid var(--peach); margin-top: 12px; font: 600 17px/1.25 var(--font-t); }
.mnav__svc > div a:hover { color: var(--orange); }
.mnav__all { color: var(--orange); }

/* Квиз v2 */
.quiz__q, .quiz__lead, .quiz__done { display: grid; gap: 24px; }
.quiz__q[hidden], .quiz__lead[hidden], .quiz__done[hidden] { display: none; }
.quiz__plan { display: grid; gap: 14px; padding: 24px 26px; border-radius: 24px; background: var(--bg); }
.quiz__plan-row { display: grid; gap: 6px; }
.quiz__plan-row b { font: 700 20px/1.3 var(--font-h); }
.quiz__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz__chips .chip { background: var(--white); border-color: var(--peach); cursor: default; }
.quiz__form { max-width: 560px; }
.quiz__edit { justify-self: start; background: none; border: 0; padding: 0; font: 600 16px/1 var(--font-t); color: var(--text-2); cursor: pointer; }
.quiz__edit:hover { color: var(--orange); }
.quiz__next { margin: 0; padding-left: 22px; display: grid; gap: 12px; font-size: 18px; }
.quiz__next b { color: var(--orange); }
.quiz__side { display: flex; flex-direction: column; gap: 16px; min-height: 0; align-self: start; position: sticky; top: 112px; }
.quiz__side .bubble { position: relative; transition: background .3s; }
.quiz__side .bubble::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 24px; height: 24px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 4px; }
.quiz__fox { position: relative; flex: none; height: 440px; border-radius: var(--r-lg); background: var(--peach); overflow: hidden; }  /* срез портрета совпадает с краем плашки — «выглядывает», а не обрезан */
.quiz__side .quiz__fox img { position: absolute; left: 50%; bottom: -32px; height: 410px; width: auto; transform: translateX(-50%) scale(.94); opacity: 0;
                             transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.quiz__side .quiz__fox img.is-show { opacity: 1; transform: translateX(-50%) scale(1); }
@media (max-width: 960px) {
  .quiz__side { order: -1; min-height: 0; flex-direction: row; align-items: flex-end; gap: 12px; position: static; }
  .quiz__side .bubble { flex: 1; }
  .quiz__side .bubble::after { left: auto; right: -10px; bottom: 30px; }
  .quiz__fox { flex: none; width: 150px; height: 170px; }
  .quiz__side .quiz__fox img { height: 160px; position: absolute; bottom: -16px; }
  .quiz__fox { border-radius: 24px; }
}

/* Whole-word heading wrapping. Heading font fitting in main.js handles rare
   words longer than their container instead of breaking individual letters. */
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4 { overflow-wrap:normal!important; word-break:normal!important; hyphens:none!important; text-wrap:balance; }
.pay { grid-template-columns:minmax(300px,.8fr) minmax(0,1.55fr); gap:36px; align-items:start; }
.pay__intro { min-width:0; display:grid; gap:20px; }
.pay__intro .h2 { font-size:clamp(34px,3.2vw,46px); max-width:10em; }
.pay__scene { position:relative; margin-top:2px; padding:16px 18px 0; border-radius:28px; background:var(--mint); overflow:hidden; display:grid; place-items:end center; aspect-ratio:1.25; max-height:300px; }
.pay__scene::before { content:""; position:absolute; width:74%; height:74%; border:1px solid #fff8; border-radius:50%; top:10%; right:-9%; }
.pay__scene::after { content:""; position:absolute; width:60%; height:18%; border-radius:50%; background:#2a1a1210; bottom:5%; left:20%; }
.pay__fox { position:relative; z-index:1; width:100%; height:100%; max-height:280px; object-fit:contain; object-position:center bottom; }
.pay-card { height:100%; padding:28px; border-radius:28px; }
.pay__lists { align-items:stretch; }
.mega__cta { align-self:start; padding:26px 22px 0; gap:14px; border-radius:24px; }
.mega__cta .btn { border-radius:12px; padding-inline:18px; }
.mega__scene { position:relative; width:calc(100% + 44px); margin:4px -22px 0; height:240px; background:linear-gradient(155deg,#ffba7880,transparent 70%); display:grid; place-items:end center; }
.mega__scene::before { content:""; position:absolute; width:190px; height:190px; border:1px solid #fff7; border-radius:50%; left:calc(50% - 95px); bottom:14px; }
.mega__scene .mega__fox { width:100%!important; height:228px!important; max-width:none; max-height:none; object-fit:contain; object-position:center bottom; margin:0; justify-self:center; position:relative; }
@media(max-width:1100px){.pay { grid-template-columns:1fr; gap:28px; }.pay__intro { grid-template-columns:1fr minmax(180px,32%); column-gap:30px; }.pay__intro>.cap,.pay__intro>.h2,.pay__intro>.muted { grid-column:1; }.pay__scene { grid-column:2;grid-row:1/4;align-self:stretch;aspect-ratio:auto;min-height:200px; }.pay__scene img{display:block;}.pay__intro .h2{max-width:none;}}
@media(max-width:600px){.pay__intro{grid-template-columns:1fr;}.pay__scene{grid-column:1;grid-row:auto;aspect-ratio:1.4;min-height:0;max-height:250px;}.pay__fox{max-height:240px;}.pay-card{padding:24px;}}
.price__h .h3 { min-width:0; flex:1; }
.quiz,.quiz>*,.quiz__layout,.quiz__layout>*,.quiz__card,.quiz__side,.quiz__opts { min-width:0; }
@media(max-width:480px){
  .plan__price { flex-wrap:wrap; gap:2px 8px; }
  .price { padding:24px; }
  .price__h { gap:12px; }.price__h img { width:48px; height:48px; flex-shrink:0; }
  .price table { table-layout:fixed; }.price td { overflow-wrap:anywhere; padding-inline:4px; }
  .price td:last-child { white-space:normal; }
  .page-head .card.row { flex-wrap:wrap!important; }.page-head .card.row>.stack { flex:1 1 180px; }
  .quiz__side .bubble { min-width:0; }.quiz__side .quiz__fox { flex:0 0 110px; }
  .sub-price .num { font-size:30px!important; }
  .faq summary { font-size:17px; gap:12px; }
}

/* Quiz portraits include transparent bottom padding. Tuck the visible crop
   below the panel edge for every expression, including during crossfades. */
