/* Daarise 2026 — styles built from the Figma file "Daarise-site" (variables collection «Daarise · бренд», text styles «Сайт/…»). */

:root {
  --violet: #5342DE;
  --violet-dark: #3B2FB0;
  --violet-ghost: #7D6FEA;
  --lime: #B9D448;
  --lime-ghost: #D6E58F;
  --ink: #17133A;
  --ink-2: #2A2366;
  --lavender: #ECE9FD;
  --lavender-photo: #DCD7F8;
  --bg: #F7F6FB;
  --white: #FFFFFF;
  --text-mute: #565274;
  --text-mute-dark: #C9C5E6;
  --text-photo: #6A63A6;
  --text-body: #45405F;
  --line: #E2DFF3;

  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 8.33vw, 120px);
  --section-y: clamp(56px, 6.7vw, 96px);
  --radius-card: 28px;
  --radius-photo: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type styles (Сайт/…) */
.h1 { --h1: clamp(34px, 3.9vw, 60px); font-size: var(--h1); line-height: 1.05; letter-spacing: -0.03em; }
.h1 .h1-sub { display: block; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.2; color: var(--violet); letter-spacing: -0.01em; margin-top: 6px; }
.h2 { font-size: clamp(28px, 3.06vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-size: clamp(20px, 1.95vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }
.h4 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.32vw, 19px); line-height: 1.55; color: var(--text-body); }
.small { font-size: 14px; line-height: 1.45; }
.mute { color: var(--text-mute); }
.label { font-size: 13px; line-height: 1.45; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.price { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; color: var(--violet); white-space: nowrap; }

/* Layout */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head__text { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-head__text .lead { max-width: 640px; }
.section--dark { background: var(--ink); color: var(--white); padding-block: var(--section-y); }
.section--dark + .section { padding-top: var(--section-y); }
.section--dark .label { color: var(--lime); }

/* Buttons (Сайт / Кнопка) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 26px; border-radius: 999px; font: 600 16px/1.2 var(--body); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--violet); color: var(--white); }
.btn--primary:hover { background: var(--violet-dark); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-ghost); }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--violet); color: var(--violet); }
.btn--light { background: var(--white); color: var(--violet); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Chips (Сайт / Мітка) */
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font: 600 13px/1.45 var(--body); max-width: 100%; }
.chip--lime { background: var(--lime); color: var(--ink); }
.chip--lavender { background: var(--lavender); color: var(--violet-dark); }
.chip--ink { background: var(--ink); color: var(--white); }
.chip--white { background: var(--white); color: var(--ink); }
a.chip--white:hover { background: var(--lavender); color: var(--violet-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--large .chip { padding: 14px 20px; font-size: 15px; }

/* Header (Сайт / Шапка) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 72px; padding-block: 14px; }
.logo img { width: 62px; height: 44px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 26px; font: 500 15px/1.4 var(--body); }
.nav > li { list-style: none; position: relative; white-space: nowrap; }
.nav a:hover, .nav button:hover { color: var(--violet); }
.nav button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav button::after { content: '▾'; font-size: 11px; }
.nav__drop { position: absolute; top: calc(100% + 18px); left: -24px; min-width: 260px; background: var(--white); border-radius: 24px; box-shadow: 0 20px 50px rgba(23, 19, 58, .14); padding: 18px; display: none; white-space: normal; }
.nav > li.has-mega { position: static; }
.nav__drop--mega { top: 100%; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100vw - 32px)); display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 6px 28px; padding: 22px 26px; }
.nav__drop--mega > :nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.nav__drop--mega > :nth-child(2) { grid-column: 2; grid-row: 1; }
.nav__drop--mega > :nth-child(3) { grid-column: 2; grid-row: 2; }
.nav__drop--mega > :nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
.nav__drop--mega > :nth-child(5) { grid-column: 4; grid-row: 1 / 3; }
.nav__drop--mega a { padding: 5px 8px; font-size: 14.5px; line-height: 1.35; }
.nav__drop--mega strong { padding-top: 2px; }
.nav li.is-open > .nav__drop { display: block; }
.nav li.is-open > .nav__drop--mega { display: grid; }
.nav__drop a { display: block; padding: 6px 8px; border-radius: 10px; }
.nav__drop a:hover { background: var(--lavender); color: var(--violet-dark); }
.nav__drop strong { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; padding: 6px 8px 8px; color: var(--violet); }
.site-header__spacer { flex: 1; }
.site-header__phone { font: 600 15px/1.5 var(--body); white-space: nowrap; }
.burger, .icon-btn { display: none; }

/* Footer (Сайт / Футер) */
.site-footer { background: var(--ink); color: var(--white); padding-block: 72px 40px; margin-top: var(--section-y); }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.site-footer__brand img { width: 90px; height: 64px; object-fit: contain; margin-bottom: 20px; }
.site-footer__title { font: 600 20px/1.25 var(--display); font-size: 20px; line-height: 1.25; color: var(--lime); margin-bottom: 14px; letter-spacing: -0.01em; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font: 500 15px/1.4 var(--body); }
.site-footer a:hover { color: var(--lime); }
.site-footer__muted { color: var(--text-mute-dark); font: 500 15px/1.4 var(--body); }
.site-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .9); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-mute-dark); font-size: 14px; }

/* Sticky booking button on phones (Сайт / Липка кнопка) */
.sticky-book { display: none; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--text-mute); list-style: none; }
.crumbs li + li::before { content: '/'; margin-right: 6px; }
.crumbs a:hover { color: var(--violet); }

/* Hero (Перший екран) */
.hero { padding-block: 32px var(--section-y); }
.hero .crumbs { margin-bottom: 32px; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) 464px; gap: 56px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero__photo { width: 100%; aspect-ratio: 464 / 560; object-fit: cover; border-radius: var(--radius-photo); background: var(--lavender-photo); }
.hero--home .hero__photo { aspect-ratio: 464 / 560; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; }
.fact { background: var(--white); border-radius: 18px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.fact .small { color: var(--text-mute); }

/* Service card (Сайт / Картка послуги) */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--wide-last > :nth-last-child(-n+2):nth-child(3n+1), .cards--wide-last > :nth-last-child(-n+2):nth-child(3n+1) ~ * { grid-column: span 1; }
.card { background: var(--white); border-radius: var(--radius-card); padding: 12px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(23, 19, 58, .08); }
.card__photo { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-photo); background: var(--lavender-photo); }
.card__body { padding: 20px 12px 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__text { color: var(--text-mute); font-size: 14px; line-height: 1.45; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.arrow { width: 40px; height: 40px; border-radius: 999px; background: var(--lime); display: grid; place-items: center; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.cards-5 { display: grid; gap: 24px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards-5 > * { grid-column: span 2; }
.cards-5 > :nth-child(4), .cards-5 > :nth-child(5) { grid-column: span 3; }

/* Price rows (Сайт / Рядок ціни) */
.price-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.price-list { list-style: none; }
.price-row { display: flex; align-items: center; gap: 24px; padding-block: 16px; border-top: 1px solid var(--line); }
.price-row__name { flex: 1; min-width: 0; }
.price-row__meta { width: 90px; flex-shrink: 0; font-size: 14px; line-height: 1.45; color: var(--text-mute); }
.price-row__price { width: 120px; flex-shrink: 0; text-align: right; font-weight: 600; white-space: nowrap; }
a.price-row:hover .price-row__name { color: var(--violet); }
.price-group + .price-group { margin-top: 40px; }
.price-group h3 { margin-bottom: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { all: unset; cursor: pointer; padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font: 600 14px/1.3 var(--body); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.price-search { width: 100%; max-width: 420px; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 400 16px/1.4 var(--body); margin-bottom: 20px; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius-card); padding: 8px 28px; }
.price-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.price-table th, .price-table td { padding: 16px 12px; text-align: right; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table thead th { border-top: 0; font: 600 13px/1.45 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); }
.price-table th:first-child { text-align: left; padding-left: 0; white-space: normal; font-weight: 400; }
.price-table thead th:first-child { font-weight: 600; }
.price-table td { font-weight: 600; }
.price-table td:last-child { padding-right: 0; }
.note { background: var(--lavender); color: var(--violet-dark); border-radius: 16px; padding: 14px 18px; font-size: 14px; line-height: 1.45; margin-top: 20px; }

/* FAQ (Сайт / Питання) */
.faq { display: grid; grid-template-columns: 376px minmax(0, 1fr); gap: 64px; align-items: start; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border-radius: 20px; padding: 22px 28px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 600 17px/1.5 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; width: 36px; height: 36px; border-radius: 999px; background: var(--lavender); color: var(--violet); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; background: var(--violet); color: var(--white); }
.faq details p { margin-top: 12px; color: var(--text-body); }
.faq .pending { color: var(--text-photo); font-style: italic; }

/* Booking block (Сайт / Блок запису) */
.cta { background: var(--violet); color: var(--white); border-radius: 36px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta__text { display: flex; flex-direction: column; gap: 14px; max-width: 720px; min-width: 0; }
.cta__text .lead { color: var(--text-mute-dark); }
.cta__addr { color: var(--text-mute-dark); font-size: 14.5px; line-height: 1.5; opacity: .85; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }

/* Specialists (Сайт / Фахівець) */
.team { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec { display: flex; flex-direction: column; gap: 12px; }
.spec__photo { width: 100%; aspect-ratio: 282 / 360; object-fit: cover; border-radius: var(--radius-photo); background: var(--lavender-photo); }
.spec__photo--empty { display: grid; place-items: center; color: var(--text-photo); font-size: 14px; }
.spec__name { font: 600 17px/1.5 var(--body); }

/* Why Daarise / contacts / split rows */
.split { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 64px; align-items: center; }
.split--reverse { grid-template-columns: minmax(0, 1fr) 560px; }
.split__photo { width: 100%; aspect-ratio: 560 / 500; object-fit: cover; border-radius: var(--radius-card); }
.split__text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.perks { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.perk { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 16px; }
.perk::before { content: ''; width: 12px; height: 12px; border-radius: 999px; background: var(--lime); margin-top: 6px; }
.perk p { color: var(--text-mute); margin-top: 4px; }
.info { display: flex; flex-direction: column; gap: 18px; }
.info dt { font-size: 14px; color: var(--text-mute); }
.info dd { margin: 4px 0 0; font-weight: 600; }

/* Promotions */
.promos { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promo { border-radius: var(--radius-card); padding: 28px; min-height: 300px; display: flex; flex-direction: column; gap: 16px; background: var(--white); }
.promo__pct { font: 700 56px/1 var(--display); color: var(--violet); letter-spacing: -0.03em; }
.promo__text { flex: 1; }
.promo__link { font-weight: 600; color: var(--violet); }
.promo--violet { background: var(--violet); color: var(--white); }
.promo--violet .promo__pct { color: var(--white); }
.promo--violet .promo__link { color: var(--lime); }
.promo--lime { background: var(--lime); }
.promo--lime .promo__pct, .promo--lime .promo__link { color: var(--ink); }

/* Reviews placeholder */
.reviews-cta { background: var(--white); border-radius: var(--radius-card); padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.stars { color: var(--violet); letter-spacing: .12em; font-weight: 600; }

/* Text pages */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; color: var(--text-body); }
.prose h2 { color: var(--ink); margin-top: 24px; }
.draft-note { border: 1px dashed var(--violet-ghost); color: var(--text-photo); border-radius: 16px; padding: 14px 18px; font-size: 14px; }

/* Responsive */
@media (max-width: 1200px) {
  .nav { gap: 18px; font-size: 14px; }
  .site-header__phone { display: none; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .site-header__inner { min-height: 65px; gap: 12px; padding-block: 10px; }
  .logo img { width: 52px; height: 37px; }
  .nav-wrap { position: fixed; inset: 65px 0 0 0; background: var(--bg); padding: 20px 16px 120px; overflow-y: auto; display: none; }
  body.menu-open .nav-wrap { display: block; }
  body.menu-open { overflow: hidden; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; font-size: 18px; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav > li > a, .nav > li > button { display: flex; padding: 16px 4px; width: 100%; justify-content: space-between; }
  .nav__drop--mega > * { grid-column: auto !important; grid-row: auto !important; }
  .nav__drop--mega a { font-size: 16px; }
  .nav__drop, .nav__drop--mega { position: static; transform: none; width: auto; min-width: 0; max-height: none; box-shadow: none; background: transparent; padding: 0 0 12px; grid-template-columns: 1fr; gap: 8px; }
  .site-header .btn--primary { display: none; }
  .icon-btn, .burger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer; }
  .icon-btn { background: var(--lavender); color: var(--violet); }
  .burger { background: var(--violet); color: var(--white); }
  .burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
  .burger span::before { top: -6px; } .burger span::after { top: 6px; }
  body.menu-open .burger span { background: transparent; }
  body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
  body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }
  .sticky-book { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 70%, rgba(247, 246, 251, 0)); }
  .sticky-book .btn { width: 100%; }
  .site-footer { padding-bottom: 120px; }
}
@media (max-width: 960px) {
  .hero__row, .split, .split--reverse, .faq { grid-template-columns: 1fr; gap: 28px; }
  .hero__photo { order: -1; aspect-ratio: 358 / 300; }
  .hero--home .hero__photo { aspect-ratio: 358 / 360; }
  .split--reverse .split__photo { order: -1; }
  .cards, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-5 > *, .cards-5 > :nth-child(4), .cards-5 > :nth-child(5) { grid-column: span 1; }
  .price-cols { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; border-radius: 28px; }
  .cta__actions { align-items: stretch; width: 100%; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards, .cards--4, .cards-5 { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .promos { grid-template-columns: 1fr; }
  .promo { min-height: 0; }
  .price-row { gap: 12px; flex-wrap: wrap; }
  .price-row__meta { display: none; }
  .price-row__price { width: auto; }
  .faq details { padding: 18px 20px; }
  .section-head { margin-bottom: 28px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .btn-row .btn { flex: 1 1 auto; }
}
@media (max-width: 600px) {
  .facts { display: grid; grid-template-columns: repeat(2, minmax(min-content, 1fr)); }
}

/* Google reviews (Сайт / Відгук) and map */
.reviews { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.review { margin: 0; background: var(--white); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; }
.review blockquote p { color: var(--ink); }
.review figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.review__author { font-weight: 600; }
.reviews__actions { margin-top: 28px; }
.rating-badge { display: inline-flex; align-items: center; gap: 14px; background: var(--white); border-radius: 999px; padding: 10px 22px 10px 12px; }
.rating-badge > span:last-child { display: flex; flex-direction: column; }
.rating-badge__value { font: 700 30px/1 var(--display); color: var(--violet); background: var(--lavender); border-radius: 999px; padding: 12px 14px; }
.rating-badge:hover { box-shadow: 0 10px 30px rgba(23, 19, 58, .08); }
.map { width: 100%; aspect-ratio: 560 / 500; border-radius: var(--radius-card); overflow: hidden; background: var(--lavender-photo); }
.map--wide { aspect-ratio: 1200 / 440; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 960px) {
  .reviews { grid-template-columns: 1fr; }
  .map, .map--wide { aspect-ratio: 358 / 300; }
}

/* Page texts (tools/page_texts.json) */
.prose--sections { max-width: none; gap: 0; }
.prose__block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 64px; padding-block: 36px; border-top: 1px solid var(--line); align-items: start; }
.prose__block:first-child { border-top: 0; padding-top: 0; }
.prose__block:last-child { padding-bottom: 0; }
.prose__block .h2 { margin: 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; color: var(--ink); }
.prose__body { display: flex; flex-direction: column; gap: 14px; max-width: 680px; color: var(--text-body); }
@media (max-width: 960px) {
  .prose__block { grid-template-columns: minmax(0, 1fr); padding-block: 28px; gap: 12px; }
}
.prose-list { display: flex; flex-direction: column; gap: 8px; padding-left: 1.2em; list-style: disc; color: var(--text-body); }
.prose-list li::marker { color: var(--violet); }
.section-head__text .prose-list { font-size: clamp(17px, 1.32vw, 19px); }
.draft-mark { background: var(--lime-ghost); color: var(--ink); border-radius: 4px; padding: 0 4px; font-size: .85em; font-style: italic; }

/* Team page */
.team-cards { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-card { background: var(--white); border-radius: var(--radius-card); padding: 12px; display: flex; flex-direction: column; }
.team-card__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: var(--radius-photo); background: var(--lavender-photo); }
.team-card__body { padding: 20px 12px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.team-card__body .btn { margin-top: auto; align-self: flex-start; }
.team-card__body .chips { margin-bottom: 6px; }
.team-card__body .chip { font-size: 12px; padding: 6px 12px; }
@media (max-width: 1200px) { .team-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team-cards { grid-template-columns: 1fr; } }

/* Video */
.video { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.video video { width: 100%; display: block; border-radius: var(--radius-card); background: var(--ink); object-fit: cover; }
.video--16x9 video { aspect-ratio: 16 / 9; }
.video--1x1 video { aspect-ratio: 1; }
.video--9x16 video { aspect-ratio: 9 / 16; }
.videos { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.videos .video--9x16 { width: min(100%, 340px); }
.videos .video--1x1 { width: min(100%, 480px); }
.videos .video--16x9 { width: min(100%, 720px); }
.videos--stories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.videos--stories .video--9x16 { width: 100%; }
@media (max-width: 960px) { .videos--stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* Video in a phone mockup with text beside it */
.video-feature { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 72px; align-items: center; }
.video-feature__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; max-width: 640px; }
.video-feature__text p:not(.label) { color: var(--text-body); }
.phone { position: relative; width: 100%; max-width: 340px; aspect-ratio: 9 / 19; padding: 12px; border-radius: 52px; background: var(--ink); box-shadow: 0 40px 80px rgba(23, 19, 58, .22), inset 0 0 0 2px #2A2366; justify-self: center; }
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 999px; background: #000; z-index: 2; pointer-events: none; }
.phone::after { content: ''; position: absolute; inset: -18px -26px; z-index: -1; border-radius: 64px; background: var(--lime); transform: rotate(-4deg); }
.phone__screen { width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #000; }
.phone__screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 960px) {
  .video-feature { grid-template-columns: 1fr; gap: 48px; }
  .phone { max-width: 280px; }
}

/* Endosphere page */
.endo-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; align-items: center; }
.endo-hero__media { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.endo-hero__caption { text-align: center; display: flex; flex-direction: column; gap: 6px; max-width: 300px; }
.endo-hero .phone { max-width: 320px; }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.benefit { background: var(--white); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.benefit p { color: var(--text-mute); }
.benefit__dot { width: 44px; height: 44px; border-radius: 14px; background: var(--lime); margin-bottom: 8px; }
.benefit:nth-child(2) .benefit__dot { background: var(--lavender); }
.benefit:nth-child(3) .benefit__dot { background: var(--violet); }
.benefit:nth-child(4) .benefit__dot { background: var(--lime-ghost); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.step { background: var(--white); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step p { color: var(--text-mute); }
.step__num { width: 40px; height: 40px; border-radius: 999px; background: var(--lime); display: grid; place-items: center; font: 600 16px/1 var(--display); margin-bottom: 8px; }
.price-cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.price-card { background: var(--white); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.price-card p:not(.small):not(.price-card__price) { color: var(--text-mute); }
.price-card__head { display: flex; flex-direction: column; gap: 4px; }
.price-card__price { font: 700 36px/1.1 var(--display); color: var(--violet); letter-spacing: -0.02em; }
.price-card--main { background: var(--violet); color: var(--white); }
.price-card--main .price-card__price { color: var(--lime); }
.price-card--main .mute { color: var(--text-mute-dark); }
.price-card--main .chip--lavender { background: rgba(255, 255, 255, .14); color: var(--white); }
.course-head { margin: 56px 0 20px; display: flex; flex-direction: column; gap: 8px; }
.course-table { background: var(--white); border-radius: var(--radius-card); overflow: hidden; }
.course-row { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 16px; align-items: center; padding: 18px 28px; border-top: 1px solid var(--line); }
.course-row--head { background: var(--violet); color: var(--white); border-top: 0; font: 600 15px/1.3 var(--body); padding-block: 20px; }
.course-off { display: inline-block; font-style: normal; background: var(--lime); color: var(--ink); border-radius: 999px; padding: 2px 10px; margin-left: 6px; font-size: 13px; }
.course-row__name { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.course-badge { width: 32px; height: 32px; border-radius: 10px; background: var(--lavender); color: var(--violet-dark); display: grid; place-items: center; font: 700 14px/1 var(--display); flex-shrink: 0; }
.course-cell { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.course-cell strong { font: 600 20px/1.2 var(--display); }
.course-cell--single strong { color: var(--violet); }
.course-cell small { color: var(--text-mute); font-size: 13px; }
.course-cell__label { display: none; font-size: 12px; color: var(--text-mute); }
.course-banner { margin-top: 24px; background: var(--lime); border-radius: var(--radius-card); padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.course-banner > div:first-child { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.two-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.info-card { background: var(--white); border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.prose-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-body); }
.team-cards--inline { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.team-card--row { flex-direction: row; align-items: center; gap: 20px; }
.team-card--row .team-card__photo { width: 140px; aspect-ratio: 4 / 5; flex-shrink: 0; }
.team-card--row .team-card__body { padding: 8px 12px 8px 0; }
@media (max-width: 1100px) {
  .benefits, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-cards { grid-template-columns: 1fr 1fr; }
  .price-card--main { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .endo-hero { grid-template-columns: 1fr; gap: 40px; }
  .endo-hero .phone { max-width: 250px; }
  .two-cards { grid-template-columns: 1fr; }
  .course-row--head { display: none; }
  .course-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; }
  .course-row__name { grid-column: 1 / -1; }
  .course-cell__label { display: block; }
}
@media (max-width: 600px) {
  .benefits, .steps, .price-cards { grid-template-columns: 1fr; }
  .team-cards--inline { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .team-card--row { gap: 14px; padding: 10px; }
  .team-card--row .team-card__photo { width: 96px; border-radius: 16px; }
  .team-card--row .team-card__body { padding: 4px 4px 4px 0; gap: 6px; }
  .team-card--row .btn { padding: 11px 18px; font-size: 14px; }
}

/* Price lists, refined: a white panel per group, duration as a pill, price aligned right */
.price-panel { background: var(--white); border-radius: var(--radius-card); padding: 6px 28px; }
.price-panel .price-row { padding-block: 18px; }
.price-panel li:first-child .price-row { border-top: 0; }
.price-panel .price-row__name { font-size: 16px; line-height: 1.45; }
.price-panel .price-row__meta { width: auto; min-width: 64px; text-align: center; }
.price-panel .price-row__meta:not(:empty) { background: var(--lavender); color: var(--violet-dark); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.price-panel .price-row__price { font: 600 18px/1.2 var(--display); color: var(--ink); width: 130px; }
.price-group h3, .price-group h2 { margin-bottom: 16px; }
.price-group + .price-group { margin-top: 48px; }
.price-cols .price-list { background: var(--white); border-radius: var(--radius-card); padding: 6px 28px; }
.price-cols .price-list li:first-child .price-row { border-top: 0; }
@media (max-width: 600px) {
  .price-panel, .price-cols .price-list { padding: 4px 18px; }
  .price-panel .price-row__meta:not(:empty) { display: inline-block; }
  .price-panel .price-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
  .price-panel .price-row__name { grid-column: 1 / -1; }
  .price-panel .price-row__price { text-align: right; }
}

/* Homepage: popular procedures on a dark panel */
.popular { background: var(--ink); color: var(--white); border-radius: 40px; padding: 56px; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; position: relative; overflow: hidden; }
.popular::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(83, 66, 222, .55), rgba(83, 66, 222, 0) 70%); left: -140px; bottom: -180px; pointer-events: none; }
.popular__intro { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; z-index: 1; }
.popular__intro .label { color: var(--lime); }
.popular__intro .lead { color: var(--text-mute-dark); }
.popular__note { color: var(--text-mute-dark); max-width: 320px; }
.popular__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; z-index: 1; }
.popular__tile { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 20px 22px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, transform .2s, border-color .2s; }
.popular__tile:hover { background: rgba(255, 255, 255, .12); border-color: rgba(185, 212, 72, .6); transform: translateY(-2px); }
.popular__tag { align-self: flex-start; font: 600 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; letter-spacing: .02em; }
.popular__tag--lime { background: var(--lime); color: var(--ink); }
.popular__tag--lavender { background: var(--lavender); color: var(--violet-dark); }
.popular__tag--violet { background: var(--violet); color: var(--white); }
.popular__tag--white { background: var(--white); color: var(--ink); }
.popular__tag--lime-ghost { background: var(--lime-ghost); color: var(--ink); }
.popular__name { font: 600 17px/1.35 var(--body); flex: 1; }
.popular__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.popular__price { font: 600 22px/1.1 var(--display); color: var(--lime); white-space: nowrap; }
.popular__arrow { width: 36px; height: 36px; border-radius: 999px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; transition: background .2s, color .2s; }
.popular__tile:hover .popular__arrow { background: var(--lime); color: var(--ink); }
@media (max-width: 1100px) { .popular { grid-template-columns: 1fr; } .popular__intro { position: static; } }
@media (max-width: 600px) { .popular { padding: 32px 20px; border-radius: 28px; } .popular__grid { grid-template-columns: 1fr; } }

/* Laser calculator: area tabs, zone tiles (rows on phones), dark summary, a bar with the total on phones */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.calc__main { background: var(--white); border-radius: 36px; padding: 40px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.calc__head { display: flex; flex-direction: column; gap: 12px; }
.calc__lead { color: var(--text-body); font-size: 17px; line-height: 1.5; max-width: 560px; }
.calc__controls { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.calc__sex { display: inline-flex; align-self: flex-start; background: var(--lavender); border-radius: 999px; padding: 4px; }
.calc__sex button { all: unset; cursor: pointer; padding: 10px 22px; border-radius: 999px; font: 600 15px/1.2 var(--body); color: var(--violet-dark); }
.calc__sex button[aria-checked="true"] { background: var(--violet); color: var(--white); box-shadow: 0 6px 16px rgba(83, 66, 222, .3); }
.calc__sex button:focus-visible, .calc__tabs button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.calc__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.calc__tabs::-webkit-scrollbar { display: none; }
.calc__tabs button { all: unset; cursor: pointer; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font: 600 15px/1.2 var(--body); color: var(--ink); white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.calc__tabs button:hover { border-color: var(--violet-ghost); }
.calc__tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.calc__badge:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--ink); font: 700 12px/20px var(--body); text-align: center; }
.calc__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__group[hidden] { display: none; }
.calc__legend { padding: 0; margin-bottom: 14px; font: 600 20px/1.25 var(--display); }
.calc[data-ready] .calc__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.calc__zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.zone { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-areas: "check name" "check price"; gap: 4px 12px; align-items: start; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.zone[hidden] { display: none; }
.zone:hover { border-color: var(--violet-ghost); }
.zone input { position: absolute; opacity: 0; pointer-events: none; }
.zone__check { grid-area: check; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #CFCAEB; background: var(--white); position: relative; transition: background .15s, border-color .15s; }
.zone__check::after { content: ''; position: absolute; left: 6.5px; top: 3px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.zone__name { grid-area: name; font: 500 15px/1.35 var(--body); }
.zone__price { grid-area: price; font: 600 16px/1.2 var(--display); color: var(--violet); white-space: nowrap; }
.zone:has(input:checked) { border-color: var(--violet); background: var(--lavender); }
.zone:has(input:checked) .zone__check { background: var(--violet); border-color: var(--violet); }
.zone:has(input:checked) .zone__check::after { opacity: 1; }
.zone:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.zone:active { transform: scale(.985); }
.calc__summary { position: sticky; top: 100px; background: var(--ink); color: var(--white); border-radius: 36px; padding: 32px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 90px; }
.calc__summary-title { font: 600 20px/1.2 var(--display); }
.calc__empty { color: var(--text-mute-dark); }
.calc__list { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.calc__list li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.calc__list b { font-weight: 600; white-space: nowrap; }
.calc__list button { all: unset; cursor: pointer; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.calc__list button:hover { background: var(--lime); color: var(--ink); }
.calc__discounts .small { color: var(--text-mute-dark); margin-bottom: 8px; }
.calc__disc { display: flex; flex-wrap: wrap; gap: 6px; }
.calc__disc button { all: unset; cursor: pointer; font: 500 13px/1.2 var(--body); padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: var(--white); white-space: nowrap; }
.calc__disc button b { font-weight: 700; }
.calc__disc button[aria-checked="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 600; }
.calc__disc button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.calc__total { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.calc__old { color: var(--text-mute-dark); text-decoration: line-through; font-size: 15px; min-height: 1.2em; }
.calc__sum { font: 700 44px/1.05 var(--display); color: var(--lime); letter-spacing: -0.02em; }
.calc__total .small { color: var(--text-mute-dark); min-height: 1.2em; }
.calc__note { color: var(--text-mute-dark); }
.calc__summary .btn { width: 100%; }
.calc__bar { display: none; }
@media (max-width: 1100px) {
  .calc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .calc__summary { position: static; }
  .calc__bar:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 41; padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--ink); color: var(--white); box-shadow: 0 14px 40px rgba(23, 19, 58, .35); animation: calc-bar-in .2s ease-out; }
  .calc__bar-info { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .calc__bar-sum { font: 700 20px/1.1 var(--display); color: var(--lime); }
  .calc__bar-meta { font-size: 13px; color: var(--text-mute-dark); white-space: nowrap; }
  .calc__bar .btn { padding: 14px 22px; }
  body.calc-bar-on .sticky-book { display: none; }
}
@keyframes calc-bar-in { from { transform: translateY(20px); opacity: 0; } }
@media (max-width: 600px) {
  .calc__main { padding: 24px 16px; border-radius: 28px; gap: 20px; margin-inline: calc(-1 * var(--gutter) + 8px); }
  .calc__head .h2 { font-size: 26px; }
  .calc__lead { font-size: 15px; }
  .calc__tabs { margin-inline: -16px; padding-inline: 16px; }
  .calc__tabs button { padding: 10px 15px; font-size: 14px; }
  .calc__zones { grid-template-columns: 1fr; gap: 8px; }
  .zone { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "check name price"; align-items: center; padding: 12px 14px; border-radius: 16px; }
  .zone__price { font-size: 15px; }
  .calc__summary { padding: 24px 20px; border-radius: 28px; margin-inline: calc(-1 * var(--gutter) + 8px); }
  .calc__disc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .calc__disc::-webkit-scrollbar { display: none; }
  .calc__sum { font-size: 36px; }
}

/* Phones: swipe rows instead of tall stacks, a shorter first screen */
@media (max-width: 600px) {
  .hero { padding-top: 20px; }
  .hero .crumbs { margin-bottom: 18px; font-size: 13px; }
  .hero__row { gap: 22px; }
  .hero__photo { aspect-ratio: 16 / 10; border-radius: 20px; }
  .hero--home .hero__photo { aspect-ratio: 4 / 3; }
  .hero__text { gap: 18px; }
  .hero .btn-row .btn--primary { display: none; }
  .hero .btn-row .btn { width: 100%; }
  .h1 { --h1: 32px; }
  .lead { font-size: 16px; }
  .fact { padding: 12px 14px; border-radius: 16px; }

  .swipe, .cards, .cards--4, .cards-5, .promos, .reviews, .team-cards:not(.team-cards--inline), .benefits {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 6px;
  }
  .swipe::-webkit-scrollbar, .cards::-webkit-scrollbar, .promos::-webkit-scrollbar, .reviews::-webkit-scrollbar, .team-cards::-webkit-scrollbar, .benefits::-webkit-scrollbar { display: none; }
  .swipe > *, .cards > *, .cards-5 > *, .promos > *, .reviews > *, .team-cards:not(.team-cards--inline) > *, .benefits > * { flex: 0 0 82%; scroll-snap-align: start; }
  .reviews { align-items: stretch; }
  .card { padding: 10px; }
  .card__photo { height: 170px; border-radius: 18px; }
  .card__body { padding: 16px 8px 6px; }
  .card:hover { transform: none; box-shadow: none; }
  .promo { padding: 24px; }
  .promo__pct { font-size: 44px; }
  .review { padding: 22px; }
  .team-card__photo { aspect-ratio: 4 / 4.4; }

  .steps { gap: 10px; }
  .step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 18px; align-items: start; }
  .step__num { grid-row: 1 / span 2; margin: 0; }
  .benefit { padding: 22px; }
  .info-card { padding: 24px 20px; }
  .cta { padding: 28px 22px; }
  .section-head { margin-bottom: 22px; }
}

/* Laser landing: zones with «від» prices, discounts */
.zone-links { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.zone-link { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; height: 100%; min-height: 128px; padding: 20px 20px 18px; border-radius: 24px; background: var(--white); border: 1px solid transparent; transition: border-color .15s, transform .15s, box-shadow .15s; }
.zone-link:hover { border-color: var(--violet-ghost); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(23, 19, 58, .08); }
.zone-link__name { font: 600 17px/1.3 var(--body); }
.zone-link__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zone-link__price { font: 600 18px/1.2 var(--display); color: var(--violet); white-space: nowrap; }
.zone-link .arrow { width: 34px; height: 34px; }
.promos--laser { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.promos--laser .promo { min-height: 0; gap: 10px; }
.promos--laser .promo__pct { font-size: 48px; }
@media (max-width: 1100px) { .zone-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .zone-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .zone-link { min-height: 112px; padding: 16px; border-radius: 20px; } .zone-link__name { font-size: 15px; } .zone-link__price { font-size: 16px; } .zone-link .arrow { width: 30px; height: 30px; } }
@media (max-width: 600px) { .promos--laser .promo__pct { font-size: 40px; } .promos--laser > * { flex-basis: 64%; } }

@media (max-width: 600px) {
  .cta__text { width: 100%; }
  .cta .h2 { font-size: 24px; }
  .btn { white-space: normal; text-align: center; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .zone-link .arrow { display: none; }
  .h1 { --h1: 28px; }
  .h2 { font-size: 24px; }
}

/* Phones: video phone beside its caption, three facts in one row */
@media (max-width: 600px) {
  .endo-hero__media { flex-direction: row-reverse; align-items: center; gap: 20px; }
  .endo-hero .phone { max-width: 148px; padding: 7px; border-radius: 30px; flex-shrink: 0; }
  .endo-hero .phone::before { top: 12px; width: 44px; height: 13px; }
  .endo-hero .phone::after { inset: -10px -14px; border-radius: 36px; }
  .endo-hero .phone__screen { border-radius: 24px; }
  .endo-hero__caption { text-align: left; flex: 1; min-width: 0; }
  .endo-hero__caption .small { font-size: 15px; }
  /* Three facts share a row while their prices fit whole; if not, the last one moves to its own row. */
  .facts:has(> :nth-child(3):last-child) { display: flex; flex-wrap: wrap; gap: 8px; }
  .facts:has(> :nth-child(3):last-child) .fact { flex: 1 1 0; }
  .facts:has(> :nth-child(3):last-child) .fact { padding: 12px 10px; }
  .facts:has(> :nth-child(3):last-child) .price { font-size: 16px; }
  .facts:has(> :nth-child(3):last-child) .small { font-size: 12.5px; }
  .zone-links li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .zone-link { min-height: 96px; }
}

/* Phones: popular procedures as compact rows */
@media (max-width: 600px) {
  .popular { padding: 26px 14px 14px; gap: 22px; }
  .popular__intro { padding-inline: 6px; }
  .popular__grid { gap: 8px; }
  .popular__tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag tag" "name price"; gap: 8px 12px; align-items: end; padding: 14px 16px; border-radius: 18px; }
  .popular__tile:hover { transform: none; }
  .popular__tag { grid-area: tag; justify-self: start; padding: 5px 9px; font-size: 11px; }
  .popular__name { grid-area: name; font-size: 15px; line-height: 1.3; }
  .popular__foot { display: contents; }
  .popular__price { grid-area: price; font-size: 17px; }
  .popular__arrow { display: none; }
}
@media (max-width: 600px) {
  .chips--large { gap: 8px; }
  .chips--large .chip { padding: 10px 14px; font-size: 14px; }
}

/* Phones: the botox table as one card per zone, no sideways scrolling */
@media (max-width: 600px) {
  .table-wrap { overflow: visible; padding: 4px 18px; }
  .price-table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; padding: 16px 0; border-top: 1px solid var(--line); }
  .price-table tbody tr:first-child { border-top: 0; }
  .price-table th, .price-table td { border: 0; padding: 0; text-align: left; white-space: normal; }
  .price-table th[scope="row"] { grid-column: 1 / -1; font-weight: 600; margin-bottom: 6px; }
  .price-table td { display: flex; flex-direction: column; gap: 2px; font: 600 16px/1.2 var(--display); }
  .price-table td::before { content: attr(data-label); font: 500 12px/1.3 var(--body); color: var(--text-mute); }
}
a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 600px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; white-space: nowrap; }
  .price-panel .price-row__meta:not(:empty) { justify-self: start; }
}

/* Homepage popular prices: heading on top, ten compact tiles in two rows — one screen */
.popular { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 48px 48px; }
.popular__intro { position: static; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
.popular__head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.popular__intro .btn { flex-shrink: 0; }
.popular__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.popular__tile { gap: 12px; padding: 18px; border-radius: 20px; }
.popular__name { font-size: 15.5px; line-height: 1.3; }
.popular__price { font-size: 19px; }
.popular__arrow { width: 30px; height: 30px; }
@media (max-width: 1100px) { .popular__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .popular__intro { flex-direction: column; align-items: flex-start; } }
@media (max-width: 760px) { .popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .popular { padding: 26px 14px 14px; } .popular__grid { grid-template-columns: minmax(0, 1fr); } .popular__intro .btn { align-self: stretch; } }

/* ---------- Animations ---------- */
:root { --ease-out: cubic-bezier(.22, .8, .24, 1); }
.site-header { transition: box-shadow .25s, background-color .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(23, 19, 58, .07); }

/* Scroll reveal (only with JS and without reduced motion) */
.js-anim :is(.section-head, .section .card, .zone-link, .benefit, .step, .promo, .review, .team-card, .spec, .price-panel, .price-group > h3, .faq details, .info-card, .popular__tile, .popular__intro, .cta, .calc__main, .calc__summary, .split__photo, .split__text, .map, .video-feature, .course-table, .course-banner, .prose__block, .prose-video__sticky, .rating-badge, .chips--large .chip, .svc, .concern, .gear__item, .spec-card, .team-block__head, .post-card, .post-hero) {
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), box-shadow .2s, border-color .2s, background-color .2s;
}
.js-anim :is(.section-head, .section .card, .zone-link, .benefit, .step, .promo, .review, .team-card, .spec, .price-panel, .price-group > h3, .faq details, .info-card, .popular__tile, .popular__intro, .cta, .calc__main, .calc__summary, .split__photo, .split__text, .map, .video-feature, .course-table, .course-banner, .prose__block, .prose-video__sticky, .rating-badge, .chips--large .chip, .svc, .concern, .gear__item, .spec-card, .team-block__head, .post-card, .post-hero):not(.is-in):not(.hero *) {
  opacity: 0; transform: translateY(22px);
}
.js-anim :is(.split__photo, .map):not(.is-in) { transform: scale(.97); }

/* First screen comes in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > *, .endo-hero .hero__text > * { animation: dz-rise .8s var(--ease-out) both; }
  .hero__text > :nth-child(2) { animation-delay: .06s; }
  .hero__text > :nth-child(3) { animation-delay: .12s; }
  .hero__text > :nth-child(4) { animation-delay: .18s; }
  .hero__text > :nth-child(5) { animation-delay: .24s; }
  .hero__text > :nth-child(6) { animation-delay: .3s; }
  .hero__photo { animation: dz-photo 1s var(--ease-out) both .1s; }
  .endo-hero__media { animation: dz-rise 1s var(--ease-out) both .2s; }
  .phone::after { animation: dz-tilt 7s ease-in-out infinite alternate; }
  .nav li.is-open > .nav__drop { animation: dz-drop .22s var(--ease-out) both; }
  .nav li.is-open > .nav__drop--mega { animation-name: dz-drop-mega; }
  .faq details[open] > :not(summary) { animation: dz-fade .35s var(--ease-out) both; }
  .faq summary::after { transition: transform .25s var(--ease-out), background-color .2s, color .2s; }
  .faq details[open] summary::after { transform: rotate(180deg); }
  .btn { transition: background-color .15s, color .15s, border-color .15s, transform .2s var(--ease-out), box-shadow .2s; }
  .btn--primary:hover, .btn--lime:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(83, 66, 222, .25); }
  .btn--lime:hover { box-shadow: 0 10px 24px rgba(185, 212, 72, .35); }
  .card .arrow, .zone-link .arrow, .popular__arrow, .svc-link .arrow { transition: transform .25s var(--ease-out), background-color .2s, color .2s; }
  .card:hover .arrow, .zone-link:hover .arrow, .popular__tile:hover .popular__arrow, .svc-link:hover .arrow { transform: translateX(4px); }
  .card__photo { transition: transform .6s var(--ease-out); }
  .card { overflow: hidden; }
  .card:hover .card__photo { transform: scale(1.04); }
  .zone:has(input:checked) .zone__check { animation: dz-pop .3s var(--ease-out); }
  .calc__sum.bump { animation: dz-bump .35s var(--ease-out); }
  .calc__list li { animation: dz-fade .3s var(--ease-out) both; }
  .sticky-book { animation: dz-up .5s var(--ease-out) both .6s; }
}
@keyframes dz-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes dz-photo { from { opacity: 0; transform: scale(.96); } }
@keyframes dz-fade { from { opacity: 0; transform: translateY(-4px); } }
@keyframes dz-up { from { opacity: 0; transform: translateY(100%); } }
@keyframes dz-drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes dz-drop-mega { from { opacity: 0; transform: translate(-50%, -6px); } to { transform: translate(-50%, 0); } }
@keyframes dz-tilt { from { transform: rotate(-4deg); } to { transform: rotate(3deg); } }
@keyframes dz-pop { 50% { transform: scale(1.2); } }
@keyframes dz-bump { 40% { transform: scale(1.06); } }
@media (max-width: 1100px) { .nav li.is-open > .nav__drop--mega { animation-name: dz-drop; } }

/* Direction pages: «з чим звертаються» and procedures with prices that open in place */
.concerns { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.concern { background: var(--white); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.concern__title { font: 600 18px/1.3 var(--body); }
.concern__text { color: var(--text-mute); font-size: 14px; line-height: 1.45; }
.concern__links { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 8px; }
.concern__links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--bg); font: 500 15px/1.3 var(--body); transition: background-color .15s, color .15s; }
.concern__links a:hover { background: var(--lavender); color: var(--violet-dark); }
.concern__links b { font: 600 15px/1.2 var(--display); color: var(--violet); white-space: nowrap; }

.svcs { display: flex; flex-direction: column; gap: 10px; }
.svc { background: var(--white); border-radius: 24px; transition: box-shadow .2s; }
.svc[open] { box-shadow: 0 16px 40px rgba(23, 19, 58, .07); }
.svc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; grid-template-areas: "name price toggle" "text price toggle"; gap: 4px 24px; align-items: center; padding: 20px 22px 20px 26px; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 24px; }
.svc__name { grid-area: name; font: 600 19px/1.3 var(--display); letter-spacing: -0.01em; }
.svc__text { grid-area: text; color: var(--text-mute); font-size: 14.5px; line-height: 1.45; }
.svc__price { grid-area: price; font: 600 20px/1.2 var(--display); color: var(--violet); white-space: nowrap; }
.svc__toggle { grid-area: toggle; width: 40px; height: 40px; border-radius: 999px; background: var(--lavender); position: relative; transition: background-color .2s, transform .3s var(--ease-out, ease); }
.svc__toggle::before, .svc__toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--violet); transition: transform .25s; }
.svc__toggle::after { transform: rotate(90deg); }
.svc[open] .svc__toggle { background: var(--violet); transform: rotate(180deg); }
.svc[open] .svc__toggle::before, .svc[open] .svc__toggle::after { background: var(--white); }
.svc[open] .svc__toggle::after { transform: rotate(0deg); }
.svc summary:hover .svc__name { color: var(--violet); }
.svc__body { padding: 0 22px 22px; }
.svc__body .price-panel, .svc__body .table-wrap { background: var(--bg); }
.svc__body .price-panel + .price-panel, .svc__body .table-wrap + .price-panel { margin-top: 10px; }
.svc__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding-inline: 4px; }
.svc__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--violet); }
.svc__more .arrow { width: 34px; height: 34px; }
@media (prefers-reduced-motion: no-preference) { .svc[open] .svc__body { animation: dz-fade .35s var(--ease-out, ease) both; } }
@media (max-width: 600px) {
  .concerns { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
  .concerns::-webkit-scrollbar { display: none; }
  .concern { flex: 0 0 80%; scroll-snap-align: start; padding: 18px; }
  .svc summary { grid-template-columns: minmax(0, 1fr) 36px; grid-template-areas: "name toggle" "text toggle" "price toggle"; padding: 16px 14px 16px 18px; gap: 4px 12px; }
  .svc__name { font-size: 17px; }
  .svc__text { font-size: 13.5px; }
  .svc__price { font-size: 17px; margin-top: 4px; }
  .svc__toggle { width: 36px; height: 36px; }
  .svc__body { padding: 0 10px 14px; }
  .svc__actions .btn { flex: 1 1 100%; }
}

/* Long one-word titles («косметологія») must fit the text column of the first screen */
@media (min-width: 961px) and (max-width: 1240px) {
  .hero__row { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}
.concerns { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Direction pages: equipment */
.gear { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gear__item { background: var(--white); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.gear__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); position: relative; margin-bottom: 6px; }
.gear__icon::after { content: ''; position: absolute; inset: 11px; border-radius: 6px; border: 2px solid var(--lime); }
.gear__name { font: 600 17px/1.3 var(--body); }
.gear__text { color: var(--text-mute); font-size: 14px; line-height: 1.45; flex: 1; }
.gear__link { font-weight: 600; font-size: 14px; color: var(--violet); margin-top: 4px; }
.gear__link:hover { color: var(--violet-dark); }
@media (max-width: 600px) {
  .gear { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gear__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 16px; }
  .gear__icon { grid-row: 1 / span 3; margin: 0; }
}
.faq summary { overflow-wrap: anywhere; }
@media (max-width: 960px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* 404: a «laser» zero */
.nf-section { padding-top: 32px; }
.nf { position: relative; overflow: hidden; background: var(--ink); color: var(--white); border-radius: 40px; padding: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.nf::before { content: ''; position: absolute; width: 520px; height: 520px; left: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(83, 66, 222, .55), rgba(83, 66, 222, 0) 70%); pointer-events: none; }
.nf__art { position: relative; display: flex; align-items: center; justify-content: center; gap: 2%; font: 700 clamp(110px, 15vw, 230px)/1 var(--display); letter-spacing: -0.04em; }
.nf__digit { color: var(--white); }
.nf__zero { position: relative; width: .74em; height: .9em; border-radius: 50%; border: .14em solid var(--lime); box-shadow: 0 0 40px rgba(185, 212, 72, .45), inset 0 0 30px rgba(185, 212, 72, .25); }
.nf__beam { position: absolute; inset: -.14em; border-radius: 50%; background: conic-gradient(from 0deg, rgba(185, 212, 72, 0) 0deg, rgba(185, 212, 72, .0) 250deg, rgba(185, 212, 72, .9) 350deg, rgba(185, 212, 72, 0) 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .14em), #000 calc(100% - .14em)); mask: radial-gradient(farthest-side, transparent calc(100% - .14em), #000 calc(100% - .14em)); }
.nf__dot { position: absolute; left: 50%; top: 50%; width: .1em; height: .1em; margin: -.05em 0 0 -.05em; border-radius: 50%; background: var(--violet-ghost); box-shadow: 0 0 24px 6px rgba(125, 111, 234, .7); }
.nf__text { position: relative; display: flex; flex-direction: column; gap: 20px; }
.nf__text .label { color: var(--lime); }
.nf__text .lead { color: var(--text-mute-dark); }
.nf__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nf__links a { display: inline-flex; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); font: 500 14px/1.3 var(--body); color: var(--white); transition: background-color .2s, color .2s, border-color .2s; }
.nf__links a:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .nf__beam { animation: nf-spin 2.6s linear infinite; }
  .nf__dot { animation: nf-pulse 1.6s ease-in-out infinite; }
  .nf__digit { animation: nf-float 4s ease-in-out infinite alternate; }
  .nf__digit:last-child { animation-delay: -2s; }
}
@keyframes nf-spin { to { transform: rotate(360deg); } }
@keyframes nf-pulse { 50% { transform: scale(1.8); opacity: .5; } }
@keyframes nf-float { to { transform: translateY(-8px); } }
@media (max-width: 960px) { .nf { grid-template-columns: minmax(0, 1fr); padding: 44px 28px; gap: 28px; } }
@media (max-width: 600px) { .nf { padding: 36px 20px 28px; border-radius: 28px; margin-inline: calc(-1 * var(--gutter) + 8px); } .nf__art { font-size: 120px; } .nf__text .h1 { --h1: 27px; } }

/* Long SEO text with the procedure video in a phone beside it */
.prose-video { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; align-items: start; }
.prose-video__media { order: 2; align-self: stretch; }
.prose-video__sticky { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.prose-video .phone { max-width: 270px; width: min(270px, calc((100vh - 260px) * 9 / 19)); }
.prose-video__caption { text-align: center; display: flex; flex-direction: column; gap: 6px; max-width: 260px; }
.prose-video .prose--sections { max-width: 760px; }
.prose-video .prose__block { grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (prefers-reduced-motion: no-preference) { .prose-video .phone::after { animation: dz-tilt 7s ease-in-out infinite alternate; } }
@media (max-width: 960px) {
  .prose-video { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .prose-video__media { order: -1; }
  .prose-video__sticky { position: static; flex-direction: row; justify-content: flex-start; gap: 22px; }
  .prose-video .phone { max-width: 150px; width: 150px; padding: 7px; border-radius: 30px; flex-shrink: 0; }
  .prose-video .phone::before { top: 12px; width: 44px; height: 13px; }
  .prose-video .phone::after { inset: -10px -14px; border-radius: 36px; }
  .prose-video .phone__screen { border-radius: 24px; }
  .prose-video__caption { text-align: left; flex: 1; min-width: 0; }
  .prose-video__caption .small { font-size: 15px; }
}

/* Calculator fits one screen on desktop: compact head, controls in a row, zone rows, a discount list */
.calc__select { width: 100%; appearance: none; -webkit-appearance: none; background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B9D448' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 13px 40px 13px 16px; color: var(--white); font: 500 15px/1.3 var(--body); cursor: pointer; }
.calc__select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.calc__select option { color: var(--ink); }
.calc__discounts { display: flex; flex-direction: column; gap: 8px; }
.calc__discounts .small { color: var(--text-mute-dark); margin: 0; }
@media (min-width: 1101px) {
  .calc { gap: 24px; }
  .calc__main { padding: 30px 32px; gap: 18px; border-radius: 32px; }
  .calc__head { gap: 8px; }
  .calc__head .h2 { font-size: clamp(26px, 2.3vw, 34px); }
  .calc__lead { font-size: 15.5px; }
  .calc__controls { flex-direction: row; align-items: center; gap: 14px; }
  .calc__tabs { flex: 1; min-width: 0; flex-wrap: wrap; overflow: visible; }
  .calc__tabs button { padding: 9px 15px; font-size: 14.5px; }
  .calc__sex button { padding: 9px 18px; font-size: 14.5px; }
  .calc__summary { padding: 26px; gap: 14px; border-radius: 32px; top: 96px; }
  .calc__summary-title { font-size: 18px; }
  .calc__list { max-height: 150px; }
  .calc__sum { font-size: 38px; }
  .calc__note { font-size: 12.5px; }
}

/* Scaling to the screen: the layout is drawn for a 1440×900 window; on narrower or lower laptop
   windows everything is scaled down a little so big blocks still fit one screen. */
@media (min-width: 1101px) and (max-width: 1360px) { html { zoom: .92; } }
@media (min-width: 1101px) and (max-width: 1220px) { html { zoom: .86; } }
@media (min-width: 1101px) and (max-height: 820px) { html { zoom: .9; } }
@media (min-width: 1101px) and (max-height: 740px) { html { zoom: .84; } }
@media (min-width: 1101px) and (max-height: 660px) { html { zoom: .78; } }
@media (min-width: 1700px) and (min-height: 1000px) { html { zoom: 1.08; } }

/* Tablets (601–1100 px): shorter first-screen photo, directions 3 + 2, popular prices as two columns of rows */
@media (min-width: 601px) and (max-width: 960px) {
  .hero__photo, .hero--home .hero__photo { aspect-ratio: 2 / 1; }
  .cards-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .cards-5 > * { grid-column: span 2; }
  .cards-5 > :nth-child(4), .cards-5 > :nth-child(5) { grid-column: span 3; }
  .cards-5 .card__photo { height: 170px; }
  .cards-5 .card__text { font-size: 13.5px; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .popular { padding: 32px; gap: 24px; }
  .popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .popular__tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag tag" "name price"; gap: 8px 12px; align-items: end; padding: 14px 16px; border-radius: 18px; }
  .popular__tag { grid-area: tag; justify-self: start; }
  .popular__name { grid-area: name; font-size: 15px; }
  .popular__foot { display: contents; }
  .popular__price { grid-area: price; font-size: 18px; }
  .popular__arrow { display: none; }
}

/* Zone rows from tablets up: name and price on one line */
@media (min-width: 601px) {
  .calc__zones { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
  .zone { grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "check name price"; align-items: center; padding: 11px 14px; border-radius: 14px; gap: 10px; }
  .zone__check { width: 20px; height: 20px; border-radius: 6px; }
  .zone__check::after { left: 5.5px; top: 2px; }
  .zone__name { font-size: 14.5px; }
  .zone__price { font-size: 15px; }
}

/* Specialist cards: the button fits the card */
.team-card--row .team-card__body { min-width: 0; align-items: flex-start; }
.team-card--row .btn { padding: 11px 20px; font-size: 14.5px; white-space: normal; max-width: 100%; }
.team-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Request form dialog */
.leadbox { border: 0; padding: 0; border-radius: 32px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(23, 19, 58, .35); overflow: auto; }
.leadbox::backdrop { background: rgba(23, 19, 58, .55); backdrop-filter: blur(4px); }
body.lead-open { overflow: hidden; }
.leadbox__form, .leadbox__done { position: relative; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.leadbox__head { display: flex; flex-direction: column; gap: 8px; padding-right: 36px; margin-bottom: 4px; }
.leadbox__close { all: unset; cursor: pointer; position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--lavender); color: var(--violet); font-size: 22px; line-height: 1; }
.leadbox__close:hover { background: var(--violet); color: var(--white); }
.leadbox__close:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.leadbox__field { display: flex; flex-direction: column; gap: 6px; font: 600 14px/1.3 var(--body); }
.leadbox__field em { font-style: normal; font-weight: 400; color: var(--text-mute); }
.leadbox__field input, .leadbox__field select, .leadbox__field textarea { font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; width: 100%; transition: border-color .15s, background-color .15s; }
.leadbox__field textarea { resize: vertical; min-height: 80px; }
.leadbox__field select { appearance: none; -webkit-appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235342DE' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.leadbox__field :is(input, select, textarea):focus { outline: none; border-color: var(--violet); background-color: var(--white); }
.leadbox__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.leadbox__error { background: #FDECEC; color: #A3261F; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.leadbox__submit { width: 100%; margin-top: 4px; }
.leadbox__submit:disabled { opacity: .7; cursor: wait; }
.leadbox__note a { color: var(--violet); text-decoration: underline; }
.leadbox__done { align-items: flex-start; }
.leadbox__check { width: 56px; height: 56px; border-radius: 999px; background: var(--lime); position: relative; }
.leadbox__check::after { content: ''; position: absolute; left: 20px; top: 14px; width: 12px; height: 22px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .leadbox[open] { animation: dz-lead-in .3s var(--ease-out, ease) both; }
  .leadbox[open]::backdrop { animation: dz-fade .3s ease both; }
  .leadbox__done:not([hidden]) .leadbox__check { animation: dz-pop .45s var(--ease-out, ease); }
}
@keyframes dz-lead-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 600px) {
  .leadbox { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .leadbox__form, .leadbox__done { padding: 26px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
}
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn--ghost-light:hover { border-color: var(--white); }
button.btn { font-family: var(--body); }
.calc__callback { all: unset; cursor: pointer; align-self: center; font: 500 14px/1.3 var(--body); color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.calc__callback:hover { color: var(--white); }
.calc__callback:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.svc__btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.cta__actions .btn { min-width: 240px; }
@media (max-width: 600px) { .svc__btns { width: 100%; } .svc__btns .btn { flex: 1 1 100%; } .cta__actions .btn { min-width: 0; } }
.leadbox__head a, .info dd a { color: var(--violet); }
.leadbox__head a:hover, .info dd a:hover { text-decoration: underline; }

/* Before / after compare */
.ba-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ba { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ba__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-card); overflow: hidden; background: var(--lavender-photo); user-select: none; -webkit-user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba__tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; font: 600 13px/1 var(--body); pointer-events: none; }
.ba__tag--before { left: 14px; background: rgba(23, 19, 58, .75); color: var(--white); }
.ba__tag--after { right: 14px; background: var(--lime); color: var(--ink); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 12px rgba(23, 19, 58, .35); pointer-events: none; }
.ba__handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 999px; background: var(--white); color: var(--violet); display: grid; place-items: center; font: 700 16px/1 var(--body); letter-spacing: 2px; box-shadow: 0 6px 18px rgba(23, 19, 58, .25); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.ba__range:focus-visible + * , .ba__frame:has(.ba__range:focus-visible) { outline: 3px solid var(--violet); outline-offset: 3px; }
.ba__caption { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--text-mute); }
.ba__service { font-weight: 600; color: var(--violet); }
@media (max-width: 600px) { .ba-list.swipe > * { flex-basis: 84%; } .ba-list:not(.swipe) { grid-template-columns: minmax(0, 1fr); } }

/* «Як проходить»: a dark timeline, unlike the white benefit cards */
.steps { background: var(--ink); color: var(--white); border-radius: 36px; padding: 44px 44px 40px; gap: 0; position: relative; overflow: hidden; }
.steps::after { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(83, 66, 222, .5), rgba(83, 66, 222, 0) 70%); pointer-events: none; }
.step { background: transparent; border-radius: 0; padding: 0 28px 0 0; position: relative; z-index: 1; gap: 10px; }
.step p { color: var(--text-mute-dark); }
.step .h4 { color: var(--white); }
.step__num { width: 52px; height: 52px; font-size: 19px; background: var(--lime); color: var(--ink); margin-bottom: 14px; position: relative; z-index: 1; box-shadow: 0 0 0 6px rgba(185, 212, 72, .15); }
.step:not(:last-child)::before { content: ''; position: absolute; top: 26px; left: 64px; right: 12px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 8px, transparent 8px 16px); }
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .step:nth-child(2n)::before { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; border-radius: 28px; row-gap: 22px; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 0; }
  .step__num { width: 44px; height: 44px; font-size: 16px; grid-row: 1 / span 2; margin: 0; }
  .step:not(:last-child)::before { display: block; top: 52px; bottom: -18px; left: 21px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px); }
  .step:nth-child(2n)::before { display: block; }
  .step:last-child::before { display: none; }
}

/* Request dialog: only one state at a time, and compact enough for one screen */
.leadbox [hidden] { display: none !important; }
.leadbox__form, .leadbox__done { padding: 26px 28px; gap: 12px; }
.leadbox__head { gap: 6px; margin-bottom: 0; }
.leadbox__head .h3 { font-size: 22px; }
.leadbox__field input, .leadbox__field select, .leadbox__field textarea { padding: 11px 14px; }
.leadbox__field textarea { min-height: 64px; }
@media (max-height: 760px) { .leadbox__head .small { display: none; } }

/* Service page: prices with the heading beside them */
.svc-prices { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.svc-prices__head { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.svc-prices__text { color: var(--text-body); font-size: 16px; line-height: 1.55; }
.svc-prices__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.svc-prices__list .price-group + .price-group { margin-top: 28px; }
.svc-prices__list .price-group h3 { margin-bottom: 10px; }
.price-list--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.price-list--cols li:nth-child(2) .price-row { border-top: 0; }
.price-panel .price-row { gap: 16px; }
.price-panel .price-row__price { width: auto; min-width: 90px; }
.price-panel__note { margin: 0 0 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-mute); }
@media (max-width: 1100px) { .svc-prices { grid-template-columns: minmax(0, 1fr); gap: 24px; } .svc-prices__head { position: static; } }
@media (max-width: 1100px) { .price-list--cols { grid-template-columns: minmax(0, 1fr); } .price-list--cols li:nth-child(2) .price-row { border-top: 1px solid var(--line); } }

/* Texts with a booking card beside them */
.prose-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; }
.prose-aside .book-card { order: 2; align-self: stretch; }
.prose-aside .prose--sections { max-width: 760px; }
.prose-aside .prose__block { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.book-card__sticky { position: sticky; top: 100px; background: var(--ink); color: var(--white); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.book-card__sticky::before { content: ''; position: absolute; width: 260px; height: 260px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(83, 66, 222, .6), rgba(83, 66, 222, 0) 70%); pointer-events: none; }
.book-card .label { color: var(--lime); }
.book-card__name { font: 600 20px/1.25 var(--display); position: relative; }
.book-card__price { font: 700 34px/1.1 var(--display); color: var(--lime); letter-spacing: -0.02em; }
.book-card__time { color: var(--text-mute-dark); }
.book-card__addr { color: var(--text-mute-dark); margin: 2px 0 8px; padding-left: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9d448' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") left 2px / 15px no-repeat; }
.book-card__time:has(+ .book-card__addr) { margin-bottom: 0; }
.book-card .btn { width: 100%; }
.book-card__rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); color: var(--lime); font-size: 14px; letter-spacing: .06em; }
.book-card__rating b { font: 700 20px/1 var(--display); color: var(--white); letter-spacing: 0; }
.book-card__rating span { color: var(--text-mute-dark); letter-spacing: 0; }
@media (max-width: 1100px) {
  .prose-aside { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .prose-aside .book-card { order: 3; }
  .book-card__sticky { position: static; }
}
.svc-prices .price-list--cols { grid-template-columns: minmax(0, 1fr); }
.svc-prices .price-list--cols li:nth-child(2) .price-row { border-top: 1px solid var(--line); }

/* Before / after block: dark panel, text beside a large slider, thumbnails */
.ba-block { background: var(--ink); color: var(--white); border-radius: 40px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; position: relative; overflow: hidden; }
.ba-block::before { content: ''; position: absolute; width: 480px; height: 480px; left: -180px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(83, 66, 222, .55), rgba(83, 66, 222, 0) 70%); pointer-events: none; }
.ba-block__text { position: relative; display: flex; flex-direction: column; gap: 16px; }
.ba-block__text .label { color: var(--lime); }
.ba-block__lead { color: var(--text-mute-dark); font-size: 17px; line-height: 1.55; max-width: 460px; }
.ba-block__hint { display: inline-flex; align-self: flex-start; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--lime); font: 600 14px/1.2 var(--body); }
.ba-block__caption { color: var(--white); font-weight: 600; min-height: 1.2em; }
.ba-block__caption:empty { display: none; }
.ba-block__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ba-block__media { position: relative; display: flex; flex-direction: column; gap: 14px; }
.ba-block .ba__frame { width: min(100%, calc(72vh * (var(--r, 4 / 5)))); margin-inline: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.ba-block .ba__img { object-fit: cover; }
.ba-thumbs { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.ba-thumbs::-webkit-scrollbar { display: none; }
.ba-thumb { all: unset; cursor: pointer; flex: 0 0 64px; height: 80px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: opacity .2s, border-color .2s, transform .2s; }
.ba-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-thumb:hover { opacity: .9; }
.ba-thumb[aria-selected="true"] { border-color: var(--lime); opacity: 1; transform: translateY(-2px); }
.ba-thumb:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.ba-thumbs__count { margin-left: auto; color: var(--text-mute-dark); font: 600 14px/1 var(--body); white-space: nowrap; }
@media (max-width: 960px) {
  .ba-block { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; gap: 28px; }
  .ba-block .ba__frame { width: 100%; }
}
@media (max-width: 600px) {
  .ba-block { border-radius: 28px; padding: 26px 16px 20px; margin-inline: calc(-1 * var(--gutter) + 8px); }
  .ba-block__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 1100px) {
  .ba-block { grid-template-columns: minmax(0, 1fr); padding: 36px 28px; gap: 28px; }
  .ba-block__lead { max-width: none; }
  .ba-block .ba__frame { width: min(100%, calc(70vh * (var(--r, 4 / 5)))); }
}

/* Specialists of a page: heading beside big cards */
.team-block { display: grid; gap: 40px 56px; align-items: center; }
.team-block--1 { grid-template-columns: minmax(0, 1fr) minmax(0, 640px); }
.team-block--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 700px); }
.team-block--3 { grid-template-columns: minmax(0, 1fr); }
.team-block__head { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.team-block--3 .team-block__head { max-width: 760px; }
.team-block__lead { color: var(--text-body); font-size: 17px; line-height: 1.55; }
.team-block__all { font-weight: 600; color: var(--violet); align-self: flex-start; }
.team-block__all:hover { color: var(--violet-dark); }
.team-block__cards { display: grid; gap: 20px; }
.team-block--2 .team-block__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-block--3 .team-block__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec-card { background: var(--white); border-radius: 28px; padding: 12px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.spec-card:hover { box-shadow: 0 18px 44px rgba(23, 19, 58, .08); }
.spec-card__photo { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--lavender-photo); display: grid; place-items: center; color: var(--text-photo); }
.spec-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s var(--ease-out, ease); }
.spec-card:hover .spec-card__photo img { transform: scale(1.03); }
.spec-card__body { padding: 18px 10px 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spec-card__name { font: 600 21px/1.2 var(--display); letter-spacing: -0.01em; }
.spec-card__title { color: var(--text-mute); font-size: 14.5px; line-height: 1.4; }
.spec-card__areas { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.spec-card__areas a { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--lavender); color: var(--violet-dark); font: 600 12.5px/1.3 var(--body); }
.spec-card__areas a:hover { background: var(--violet); color: var(--white); }
.spec-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.spec-card__actions .btn { padding: 12px 18px; font-size: 14.5px; }
/* One specialist: a wide card, photo beside the text */
.team-block--1 .spec-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.team-block--1 .spec-card__photo { aspect-ratio: auto; min-height: 300px; }
.team-block--1 .spec-card__body { padding: 20px 18px 14px; justify-content: center; }
.team-block--1 .spec-card__name { font-size: 26px; }
@media (max-width: 1100px) {
  .team-block--1, .team-block--2 { grid-template-columns: minmax(0, 1fr); }
  .team-block__head { max-width: 680px; }
}
@media (max-width: 960px) {
  .team-block--3 .team-block__cards, .team-block--2 .team-block__cards { grid-template-columns: minmax(0, 1fr); }
  .team-block .spec-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px; }
  .team-block .spec-card__photo { aspect-ratio: auto; min-height: 150px; border-radius: 16px; }
  .team-block .spec-card__body { padding: 6px 6px 4px 12px; }
  .team-block .spec-card__name { font-size: 18px; }
  .team-block .spec-card__actions .btn { flex: 1 1 100%; padding: 11px 14px; }
}
.info__soft { font-weight: 400 !important; color: var(--text-body); }

/* Blog: list */
.post-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 44px; border-radius: 36px; background: var(--ink); color: var(--white); margin-bottom: 20px; transition: transform .25s var(--ease-out, ease); }
.post-hero::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(83, 66, 222, .6), rgba(83, 66, 222, 0) 70%); pointer-events: none; }
.post-hero:hover { transform: translateY(-3px); }
.post-hero__tag, .post-card__tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; font: 600 12.5px/1.2 var(--body); background: var(--lime); color: var(--ink); position: relative; }
.post-hero__title { font: 600 clamp(26px, 3vw, 40px)/1.12 var(--display); letter-spacing: -0.02em; max-width: 900px; position: relative; }
.post-hero__lead { color: var(--text-mute-dark); font-size: 17px; line-height: 1.55; max-width: 720px; position: relative; }
.post-hero__meta, .post-card__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-mute-dark); position: relative; }
.post-hero__meta .arrow { margin-left: auto; }
.posts { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 24px; border-radius: 28px; background: var(--white); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(23, 19, 58, .08); }
.post-card__tag { background: var(--lavender); color: var(--violet-dark); }
.post-card__title { font: 600 20px/1.25 var(--display); letter-spacing: -0.01em; }
.post-card__lead { color: var(--text-mute); font-size: 14.5px; line-height: 1.5; flex: 1; }
.post-card__meta { color: var(--text-mute); }
.post-card__meta .arrow { margin-left: auto; width: 34px; height: 34px; }

/* Blog: article */
.hero--article .crumbs { margin-bottom: 28px; }
.article-head { display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.article-head__title { font-size: clamp(30px, 3.6vw, 52px); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--text-mute); font-size: 14px; }
.article-meta__author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.article-meta__author img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; object-position: center 20%; }
.article-meta__author small { display: block; font-weight: 400; color: var(--text-mute); font-size: 13px; }
.article-section { padding-top: 0; }
.article-body { max-width: 720px; color: var(--text-body); font-size: 17px; line-height: 1.7; }
.article-body > * + * { margin-top: 18px; }
.article-body h2 { font: 600 clamp(22px, 2.1vw, 30px)/1.2 var(--display); color: var(--ink); margin-top: 44px; letter-spacing: -0.01em; }
.article-body h3 { font: 600 20px/1.3 var(--display); color: var(--ink); margin-top: 30px; }
.article-body a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.article-body li::marker { color: var(--violet); }
.article-body strong { color: var(--ink); }
.article-body blockquote { margin: 26px 0 0; padding: 18px 22px; border-radius: 18px; background: var(--lavender); color: var(--violet-dark); font-weight: 500; }
.article-body table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 18px; overflow: hidden; font-size: 15px; }
.article-body th, .article-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--ink); color: var(--white); font-weight: 600; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body .table-scroll { overflow-x: auto; }
@media (max-width: 600px) {
  .article-body { font-size: 16px; }
}

/* A long word in a heading gets a smaller font instead of a break in the middle.
   --w is its length in letters (dz_h1_fit); Unbounded is at most ~0.8em per letter. */
.hero__text, .article-head { container-type: inline-size; }
.h1[style*="--w"] { font-size: min(var(--h1), 100cqi / (var(--w) * 0.8)); }

/* The prices column is narrow: its heading is a size smaller than other section headings. */
.svc-prices__head .h2 { font-size: clamp(26px, 2.3vw, 34px); }
@media (max-width: 400px) {
  .team-block .spec-card { grid-template-columns: 96px minmax(0, 1fr); }
  .team-block .spec-card__name { font-size: 16.5px; }
}
/* The narrowest phones (320–380 px): names get the whole width of their card */
@media (max-width: 380px) {
  .popular__tile { grid-template-areas: "tag price" "name name"; align-items: center; }
  .zone-link__name { font-size: 13.5px; }
  .team-block .spec-card__name { font-size: 15px; }
}

/* Blog list: header with the author, the newest article with its picture, numbered cards */
.hero--blog { padding-bottom: 0; }
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.blog-head__text { display: flex; flex-direction: column; gap: 16px; max-width: 720px; min-width: 0; }
.blog-author { display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border-radius: 24px; background: var(--white); }
.blog-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex-shrink: 0; }
.blog-author__label { font: 600 12px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.blog-author__name { font: 600 17px/1.3 var(--display); margin: 2px 0; }
.blog-author .small { color: var(--text-mute); }
.blog-filter { margin-top: 28px; }
.blog-filter .chip { border: 0; cursor: pointer; background: var(--white); color: var(--ink); }
.blog-filter .chip.is-active { background: var(--ink); color: var(--white); }
.section--tight { padding-top: 32px; }

.post-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; padding: 0; margin-bottom: 16px; }
.post-hero__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px; position: relative; z-index: 1; }
.post-hero__media { position: relative; min-height: 400px; }
.post-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out, ease); }
.post-hero__media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink), rgba(23, 19, 58, 0) 35%); }
.post-hero:hover .post-hero__media img { transform: scale(1.03); }
.post-hero__meta { flex-wrap: wrap; margin-top: 8px; }
.post-hero__meta .btn { margin-left: auto; }
.posts--list { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.post-hero .post-hero__title { font-size: clamp(24px, 2.4vw, 34px); }
.post-card--num { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 12px; }
.post-card--num > :not(.post-card__num):not(.post-card__tag) { grid-column: 1 / -1; }
.post-card--num .post-card__tag { grid-row: 1; align-self: center; justify-self: start; }
.post-card__num { grid-row: 1; grid-column: 2; font: 600 36px/1 var(--display); letter-spacing: -0.03em; color: var(--lavender); }
.post-card--num .post-card__lead { flex: none; }
.post-card--num .post-card__meta { align-self: end; }
.posts [hidden], .post-hero[hidden] { display: none !important; }
@media (max-width: 900px) {
  .post-hero { grid-template-columns: minmax(0, 1fr); }
  .post-hero__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .post-hero__media::before { background: linear-gradient(0deg, var(--ink), rgba(23, 19, 58, 0) 40%); }
  .post-hero__body { padding: 8px 28px 30px; }
}
@media (max-width: 600px) {
  .post-hero { border-radius: 28px; }
  .post-hero__body { padding: 4px 20px 24px; }
  .post-hero__meta .btn { margin-left: 0; width: 100%; }
  .blog-author { width: 100%; }
  .section--tight { padding-top: 20px; }
}
