/* ===========================================================
   SPA & Wellness — warm, calm, premium spa
   Palette: clay / sand / sage on cream
   Display: Cormorant Garamond · Body: DM Sans
   =========================================================== */

:root {
  --clay: #b9694a;
  --clay-deep: #9a5238;
  --sand: #e9dccb;
  --sage: #7e8b6f;
  --cream: #f7f1e8;
  --cream-2: #fbf7f0;
  --ink: #2f2a24;
  --muted: #7a6f63;
  --line: #e2d6c4;
  --card: #ffffff;
  --stone: #6b452e;
  --shadow-soft: 0 2px 8px rgba(80, 55, 35, .05), 0 14px 34px -16px rgba(80, 55, 35, .18);
  --shadow-lift: 0 6px 16px rgba(80, 55, 35, .10), 0 28px 56px -24px rgba(80, 55, 35, .30);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --clay: #d98a68;
  --clay-deep: #e09f80;
  --sand: #2b2620;
  --sage: #9aa888;
  --cream: #18150f;
  --cream-2: #1f1a13;
  --ink: #f1e7d8;
  --muted: #b0a392;
  --line: #322b22;
  --card: #221d16;
  --stone: #8a5c3d;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, .30), 0 14px 34px -16px rgba(0, 0, 0, .55);
  --shadow-lift: 0 6px 16px rgba(0, 0, 0, .40), 0 28px 56px -24px rgba(0, 0, 0, .65);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
}

em {
  font-style: italic;
  color: var(--clay);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--clay);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .4s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  min-height: 48px;
}

.btn>* {
  position: relative;
  z-index: 1;
}

.btn .ico {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Stroke-style icons (envelope, etc.) — keep the fill transparent so the
   outline reads as a real icon instead of a solid block. */
.btn .ico-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* soft sheen sweep on hover — subtle, premium */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease);
  pointer-events: none;
}

.btn:hover::after {
  left: 130%;
}

.btn:active {
  transform: translateY(0) scale(.975);
  transition-duration: .08s;
}

.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(185, 105, 74, .7);
}

.btn-primary:hover {
  background: var(--clay-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -6px rgba(185, 105, 74, .45), 0 18px 38px -12px rgba(185, 105, 74, .7);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--clay);
  color: var(--clay);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(185, 105, 74, .5);
}

.btn.full {
  width: 100%;
}

.btn-tg {
  background: #2aabee;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(42, 171, 238, .7);
}

.btn-tg:hover {
  background: #1f93d2;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -6px rgba(42, 171, 238, .4), 0 18px 38px -12px rgba(42, 171, 238, .7);
}

.btn-mail {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(126, 139, 111, .75);
}

.btn-mail:hover {
  background: color-mix(in srgb, var(--sage) 82%, #2c3522);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -6px rgba(126, 139, 111, .45), 0 18px 38px -12px rgba(126, 139, 111, .75);
}

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 60%, transparent);
  backdrop-filter: saturate(130%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s var(--ease);
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px -16px rgba(80, 55, 35, .5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--clay) 0%, var(--clay-deep) 70%);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--cream) 70%, transparent);
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  letter-spacing: .01em;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  font-size: 1.02rem;
  color: var(--muted);
  position: relative;
  transition: color .3s var(--ease);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width .35s var(--ease);
  border-radius: 2px;
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: var(--ink);
}

.nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.header-cta {
  padding: 10px 20px;
  min-height: 42px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}

.theme-toggle:hover {
  transform: rotate(18deg);
  border-color: var(--clay);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  will-change: transform, opacity;
}

.blob-1 {
  width: 460px;
  height: 460px;
  background: var(--clay);
  top: -120px;
  right: -80px;
  opacity: .25;
  animation: drift1 26s ease-in-out infinite;
}

.blob-2 {
  width: 380px;
  height: 380px;
  background: var(--sage);
  bottom: -140px;
  left: -100px;
  opacity: .22;
  animation: drift2 32s ease-in-out infinite;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: var(--sand);
  top: 120px;
  left: 40%;
  opacity: .5;
  animation: drift3 22s ease-in-out infinite;
}

[data-theme="dark"] .blob {
  opacity: .25;
}

/* very slow, barely-perceptible background life */
@keyframes drift1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: .25;
  }

  50% {
    transform: translate(-18px, 14px) scale(1.04);
    opacity: .32;
  }
}

@keyframes drift2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: .2;
  }

  50% {
    transform: translate(16px, -12px) scale(1.05);
    opacity: .26;
  }
}

@keyframes drift3 {

  0%,
  100% {
    transform: translate(-50%, 0) scale(1);
    opacity: .45;
  }

  50% {
    transform: translate(-48%, 10px) scale(1.03);
    opacity: .55;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow,
.section-eyebrow {
  display: inline-block;
  font-size: .92rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 22px;
  overflow-wrap: break-word;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-meta {
  display: flex;
  gap: 36px;
  list-style: none;
}

.hero-meta li {
  display: flex;
  flex-direction: column;
}

.hero-meta strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1;
}

.hero-meta span {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}

/* Hero illustration (arched SPA art, transparent corners — aspect ratio baked in) */
.hero-art {
  width: min(340px, 84vw);
  margin: 0 auto;
  filter: drop-shadow(0 22px 44px rgba(80, 55, 35, .26));
  animation: cardBreathe 11s ease-in-out infinite;
  will-change: transform;
}

[data-theme="dark"] .hero-art {
  filter: drop-shadow(0 22px 46px rgba(0, 0, 0, .5));
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes cardBreathe {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.012);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
}

/* Services intro photo — sits between the eyebrow and the section title.
   Reuses the section-head fade-in slot (no extra observer). Soft premium
   rounding via the shared --radius scale, kept calm so it supports the
   heading rather than competing with the program cards below. */
.services-photo {
  margin: 26px auto 30px;
  max-width: 560px;
  aspect-ratio: 16 / 10;
  border-radius: clamp(var(--radius), 4vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  background: var(--sand);
}

.services-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.portrait-frame {
  aspect-ratio: 4/5;
  border-radius: 50% 50% 24px 24px / 40% 40% 24px 24px;
  background: linear-gradient(160deg, var(--sand) 0%, color-mix(in srgb, var(--clay) 30%, var(--sand)) 100%);
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
  margin: 0;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}

/* warm depth: subtle top light + inner ring + soft bottom vignette */
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 247, 240, .18), transparent 45%),
    linear-gradient(to top, rgba(47, 42, 36, .28), transparent 38%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  border-radius: inherit;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 54ch;
}

.about-points {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.about-points li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}

.about-points li strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.08rem;
  margin-bottom: 2px;
}

.about-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: #fff;
  background: var(--sage);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: .72rem;
  display: grid;
  place-items: center;
}

/* ---------- Cards (services) ---------- */
.services {
  background: var(--cream-2);
  transition: background .5s var(--ease);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -8px rgba(185, 105, 74, .3), 0 20px 40px -16px rgba(185, 105, 74, .45);
  border-color: color-mix(in srgb, var(--clay) 55%, var(--line));
}

.card-ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--clay);
  background: color-mix(in srgb, var(--clay) 12%, transparent);
  margin-bottom: 20px;
  transition: transform .5s var(--ease), background .45s var(--ease), color .45s var(--ease);
}

.card:hover .card-ico {
  transform: rotate(-6deg) translateY(-2px);
  background: color-mix(in srgb, var(--clay) 18%, transparent);
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: .98rem;
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.benefit {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease);
}

.benefit:hover {
  transform: translateY(-5px);
}

.b-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--clay);
  display: block;
  margin-bottom: 10px;
}

.benefit h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.benefit p {
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Prices ---------- */
.prices {
  background: var(--cream-2);
  transition: background .5s var(--ease);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .42s var(--ease), box-shadow .42s var(--ease), border-color .42s var(--ease);
}

/* "Популярно" card stands out only by its warm border at rest — same elevation as the
   others, so the hover delta (lift + deeper shadow) is identical for all three. */
.price-card.featured {
  border-color: color-mix(in srgb, var(--clay) 65%, var(--line));
}

/* Whole-card hover — identical for ALL three cards (incl. featured).
   Scoped through `.prices .price-grid` (0,4,0) so it outweighs the
   `.reveal-group.in .reveal-item { transform:none }` (0,3,0) entrance rule —
   the price cards are reveal-items, and without this their lift gets pinned. */
.prices .price-grid .price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px -12px rgba(185, 105, 74, .4), 0 38px 66px -24px rgba(185, 105, 74, .5);
  border-color: color-mix(in srgb, var(--clay) 60%, var(--line));
}

.prices .price-grid .price-card.featured:hover {
  border-color: var(--clay);
}

.price-card h3 {
  font-size: 1.7rem;
  margin-bottom: 4px;
  transition: transform .42s var(--ease);
}

.prices .price-grid .price-card:hover h3 {
  transform: translateY(-3px);
}

.price-dur {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 16px;
}

.price-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  color: var(--ink);
  margin-bottom: 22px;
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.price-card li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: .95rem;
}

.price-card li::before {
  content: '·';
  position: absolute;
  left: 8px;
  color: var(--clay);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--clay);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-note {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  margin-top: 26px;
  font-style: italic;
}

/* Prices — buttons get a clear, gentle hover: a slight lift + subtle grow +
   visible brightness highlight (works even on the filled "Классический" button
   in dark theme). Pronounced like the main CTA, but ≈half the drama. */
.price-card .btn {
  transition: transform .35s var(--ease), box-shadow .4s var(--ease), background .35s var(--ease),
    color .35s var(--ease), border-color .35s var(--ease), filter .35s var(--ease);
}

.price-card .btn:hover {
  transform: translateY(-3px) scale(1.015);
  filter: brightness(1.06);
}

.price-card .btn:active {
  transform: translateY(-1px) scale(.99);
  filter: brightness(1);
  transition-duration: .08s;
}

.price-card .btn-primary:hover {
  box-shadow: 0 9px 20px -8px rgba(185, 105, 74, .5), 0 16px 32px -14px rgba(185, 105, 74, .55);
}

.price-card .btn-ghost:hover {
  border-color: var(--clay);
  color: var(--clay);
  box-shadow: 0 12px 26px -16px rgba(185, 105, 74, .5);
}

@media (prefers-reduced-motion: reduce) {

  .prices .price-grid .price-card:hover,
  .prices .price-grid .price-card:hover h3,
  .price-card .btn:hover,
  .price-card .btn:active {
    transform: none;
  }
}

/* ---------- Reviews carousel ---------- */
.carousel {
  position: relative;
}

.review-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 14px;
  margin: -8px -4px -4px;
  /* breathing room for card shadows */
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.review-track::-webkit-scrollbar {
  display: none;
}

.review-track:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 4px;
  border-radius: 8px;
}

.review-track .review {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
  min-width: 0;
}

.review {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-soft);
}

.review blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 22px;
  flex: 1;
}

.review blockquote::before {
  content: '“';
  color: var(--clay);
  font-size: 2rem;
  margin-right: 4px;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .95rem;
}

.ava {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  overflow: hidden;
}

img.ava {
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.review figcaption b {
  color: var(--ink);
  font-weight: 500;
}

/* Carousel controls (neat round prev/next buttons) */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-btn:hover {
  border-color: var(--clay);
  color: var(--clay);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(185, 105, 74, .5);
}

.carousel-btn:active {
  transform: translateY(0) scale(.94);
  transition-duration: .08s;
}

.carousel-btn[disabled] {
  opacity: .35;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .review-track {
    scroll-behavior: auto;
  }

  .carousel-btn:hover,
  .carousel-btn:active {
    transform: none;
  }
}

/* ---------- FAQ ---------- */
.faq-wrap {
  max-width: 760px;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .3s;
}

.accordion details[open] {
  border-color: color-mix(in srgb, var(--clay) 40%, var(--line));
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.chev {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}

.accordion details[open] .chev {
  transform: rotate(-135deg);
}

.accordion p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ---------- Contacts ---------- */
.contacts-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 56px;
  box-shadow: var(--shadow-soft);
}

.contacts-copy p {
  color: var(--muted);
  margin-bottom: 22px;
}

.contacts-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.contacts-list li {
  color: var(--muted);
}

.contacts-list strong {
  color: var(--ink);
}

.contacts-actions {
  display: grid;
  gap: 14px;
}

.contacts-actions .btn {
  padding: 18px 26px;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner .brand-name {
  font-size: 1.2rem;
}

.footer-inner p {
  color: var(--muted);
  font-size: .88rem;
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  color: var(--clay);
  font-size: .92rem;
}

.footer-social a:hover {
  text-decoration: underline;
}

/* ---------- Floating button ---------- */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #2aabee;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(42, 171, 238, .7);
  z-index: 90;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(42, 171, 238, .5);
  opacity: 0;
  animation: fabPulse 3.6s ease-out infinite;
}

@keyframes fabPulse {
  0% {
    opacity: .5;
    transform: scale(.9);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

.fab svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  position: relative;
  z-index: 1;
}

.fab:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 18px -6px rgba(42, 171, 238, .5), 0 20px 40px -10px rgba(42, 171, 238, .75);
}

.fab:active {
  transform: translateY(0) scale(.97);
  transition-duration: .08s;
}

/* ---------- Reveal animation ---------- */
.reveal,
.reveal-group {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 2.24s cubic-bezier(.16, 1, .3, 1), transform 2.24s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

.reveal.in,
.reveal-group.in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Group animations (staggered items inside a block) */
.reveal-group .reveal-item {
  opacity: 0;
  /* Vertical rise only — no scale(). Scaling resampled the card's contents (text, the
     circular avatar + its border/shadow) at fractional size; when the transform settled
     the avatar snapped ~2px against its frame. A pure translateY ends at an exact integer
     position with nothing resampled, so the card settles cleanly. */
  transform: translateY(26px);
  transition: opacity 2.1s cubic-bezier(.16, 1, .3, 1), transform 2.1s cubic-bezier(.16, 1, .3, 1);
}

.reveal-group.in .reveal-item {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 200ms);
}

/* number badges in Benefits pop in slightly after their card */
.reveal-group .benefit .b-num {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .84s var(--ease), transform .84s var(--ease);
}

.reveal-group.in .benefit .b-num {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 200ms + .2s);
}

/* ---------- Reviews: jitter-free settle ----------
   The cards (.reveal-item) and the track (.reveal-group) animate transform + opacity.
   Ending the transition at `transform: none` destroys the element's GPU compositing
   layer and re-rasterizes its text/shadow on the main thread — a sub-pixel "snap" that
   reads as a twitch right after the motion already looks finished (the long ease-out tail
   makes that teardown land ~0.5s after the card appears settled). Ending at translateZ(0)
   keeps a (3D) transform present, so the layer is retained and the final rendering matches
   the animated frames exactly — no teardown, no re-rasterization, no shift. The reveal
   itself (lift + fade + subtle scale-in) is unchanged. */
.review-track.reveal-group,
.review-track .reveal-item {
  backface-visibility: hidden;
}

.review-track.reveal-group.in {
  transform: translateZ(0);
}

.review-track.reveal-group.in .reveal-item {
  transform: translateZ(0);
}

/* ---------- Animated section headings (word-by-word) ---------- */
.section-head.reveal,
.about-copy.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.section-head>*:not(.section-title),
.about-copy>*:not(.section-title) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2.24s cubic-bezier(.16, 1, .3, 1), transform 2.24s cubic-bezier(.16, 1, .3, 1);
}

.section-head.in>*:not(.section-title),
.about-copy.in>*:not(.section-title) {
  opacity: 1;
  transform: none;
}

.section-head.in>*:nth-child(1),
.about-copy.in>*:nth-child(1) {
  transition-delay: 0s;
}

.section-head.in>*:nth-child(3),
.about-copy.in>*:nth-child(3) {
  transition-delay: .6s;
}

.section-head.in>*:nth-child(4),
.about-copy.in>*:nth-child(4) {
  transition-delay: .9s;
}

.section-title .w {
  display: inline-block;
  opacity: 0;
  /* Vertical rise only — NO scale()/rotate(). The visible upward motion restores the
     reveal's perceived duration (the eye tracks the movement through the long ease-out
     tail), matching the original feel. Scale/rotate were the jitter source — they
     re-rasterized glyphs at a fractional size/angle and snapped on the last frame; a
     pure translateY ends at an exact integer position with nothing resampled. */
  transform: translateY(24px);
  transition: opacity 2.1s cubic-bezier(.16, 1, .3, 1), transform 2.1s cubic-bezier(.16, 1, .3, 1);
  backface-visibility: hidden;
}

.reveal.in .section-title .w,
.section-head.in .section-title .w,
.about-copy.in .section-title .w {
  opacity: 1;
  /* translateZ(0) (not none) keeps the layer alive so there's no end-of-transition
     teardown repaint of the text. */
  transform: translateZ(0);
  transition-delay: calc(200ms + var(--wi, 0) * 70ms);
}

/* ---------- Hero intro (first load, ~1.5–2s) ---------- */
.hero-anim {
  opacity: 0;
  transform: translateY(14px);
}

.hero-intro .hero-anim {
  opacity: 1;
  transform: none;
  transition: opacity .9s cubic-bezier(.4, 0, .2, 1), transform .9s cubic-bezier(.4, 0, .2, 1);
  transition-delay: var(--d, 0s);
}

.hero-title .line {
  display: block;
}

/* accent word fades in last with a gentle warm bloom */
.hero-intro .accent-line {
  transition-duration: 1.1s;
}

.hero-intro .accent-line em {
  animation: accentBloom 1.4s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes accentBloom {
  0% {
    color: color-mix(in srgb, var(--clay) 45%, var(--muted));
  }

  100% {
    color: var(--clay);
  }
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal-group,
  .reveal-group .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section-head>*,
  .about-copy>* {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-group .benefit .b-num {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section-title .w {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-anim {
    opacity: 1;
    transform: none;
  }

  .hero-intro .accent-line em {
    animation: none;
  }

  .blob,
  .hero-art,
  .fab::before {
    animation: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {

  .nav,
  .header-cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-inner {
    /* minmax(0, 1fr) sets the track minimum to 0 instead of `auto`, so the
       column can never grow wider than the container. With a plain `1fr` the
       non-wrapping .hero-meta row forced the track to its ~433px min-content
       width, pushing the whole hero (and the centered image) off-screen right. */
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-copy {
    min-width: 0;
  }

  .hero-meta {
    /* let the stats wrap to fit the column instead of forcing it wider */
    flex-wrap: wrap;
  }

  .hero-art {
    width: min(290px, 74vw);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-portrait {
    max-width: 340px;
  }

  .cards,
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }

  .review-track .review {
    flex-basis: calc((100% - 22px) / 2);
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contacts-inner {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 70px 0;
  }

  .cards,
  .price-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .review-track .review {
    flex-basis: 100%;
  }

  .hero-meta {
    gap: 22px;
  }

  .contacts-inner {
    padding: 32px 22px;
  }

  .fab {
    width: 52px;
    height: 52px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .about-portrait {
    max-width: 300px;
    margin: 0 auto;
  }

  .services-photo {
    margin: 20px auto 26px;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 414px) {
  .container {
    padding: 0 18px;
  }

  .hero-art {
    width: min(250px, 66vw);
  }

  .hero-meta {
    gap: 16px;
  }

  .hero-meta strong {
    font-size: 1.6rem;
  }

  .price-card,
  .card,
  .benefit {
    padding: 28px 22px;
  }

  .contacts-inner {
    padding: 28px 18px;
    border-radius: 24px;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 2.05rem;
  }

  .hero-art {
    width: 210px;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .hero-meta strong {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .fab {
    right: 16px;
    bottom: 16px;
  }
}