:root {
  --bg-primary: #0f0d14;
  --bg-deep: #09080d;
  --bg-surface: #191420;
  --bg-elevated: #201927;
  --bg-glass: rgba(255, 255, 255, 0.045);
  --text-primary: #f2ede4;
  --text-secondary: #b8afa4;
  --text-muted: #756d66;
  --accent-gold: #daa520;
  --accent-soft-gold: #daa520;
  --accent-amber: #e8a598;
  --accent-wine: #6e283c;
  --accent-wine-deep: #3a1422;
  --accent-wine-suit: #4d1727;
  --accent-cream: #f4eadc;
  --accent-forest: #31483c;
  --border-soft: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(218, 165, 32, 0.28);
  --glow-gold: rgba(218, 165, 32, 0.18);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lato", Arial, sans-serif;
  --container: 1440px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 24px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: radial-gradient(circle at 18% 0%, rgba(110, 40, 60, 0.28), transparent 38%),
    radial-gradient(circle at 85% 12%, rgba(49, 72, 60, 0.26), transparent 34%),
    var(--bg-primary);
  font-family: var(--font-body);
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-soft-gold);
  outline-offset: 4px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: linear-gradient(90deg, rgba(21, 16, 22, 0.96), rgba(42, 25, 34, 0.94), rgba(22, 16, 21, 0.96));
  border-bottom: 1px solid rgba(244, 234, 220, 0.08);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

body.menu-open {
  overflow: hidden;
}

.site-header.scrolled,
.menu-open .site-header {
  background: linear-gradient(90deg, rgba(21, 16, 22, 0.72), rgba(58, 20, 34, 0.62), rgba(22, 16, 21, 0.72));
  border-bottom: 1px solid rgba(244, 234, 220, 0.14);
  backdrop-filter: blur(22px) saturate(135%);
}

.menu-open .site-header {
  background: linear-gradient(90deg, rgba(21, 16, 22, 0.98), rgba(58, 20, 34, 0.96), rgba(22, 16, 21, 0.98));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  color: var(--accent-soft-gold);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-secondary);
  font-size: 14px;
}

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

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

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn,
.menu-toggle {
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lang-btn {
  min-width: 34px;
  min-height: 30px;
  border-radius: 999px;
}

.lang-btn.active {
  color: var(--accent-cream);
  background: var(--accent-wine);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--accent-cream);
  background: linear-gradient(135deg, #7a3048, var(--accent-wine-suit) 62%, var(--accent-wine-deep));
  box-shadow: 0 18px 54px rgba(58, 20, 34, 0.28);
}

.btn-secondary {
  color: var(--text-primary);
  border-color: var(--border-gold);
  background: rgba(255, 255, 255, 0.035);
}

.menu-toggle {
  display: none;
}

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(76px + clamp(780px, 58vw, 1120px));
  padding: 76px 0 0;
  overflow: hidden;
  color: #211819;
  background: #efe5d8;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 239, 229, 0.58) 0%, rgba(246, 239, 229, 0.34) 32%, rgba(246, 239, 229, 0.06) 62%),
    linear-gradient(180deg, rgba(246, 239, 229, 0.1) 0%, transparent 38%, rgba(33, 24, 25, 0.2) 100%),
    radial-gradient(circle at 18% 82%, rgba(246, 239, 229, 0.46), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.hero-soft-orbit {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.38;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 28%, transparent 0 35%, rgba(90, 43, 77, 0.18) 35.4%, transparent 36%),
    radial-gradient(ellipse at 78% 28%, transparent 0 48%, rgba(199, 161, 90, 0.13) 48.4%, transparent 49%),
    linear-gradient(115deg, transparent 0 62%, rgba(199, 161, 90, 0.2) 62.2%, transparent 62.8%),
    linear-gradient(82deg, transparent 0 68%, rgba(90, 43, 77, 0.14) 68.2%, transparent 68.8%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: block;
  width: 100vw;
  max-width: none;
  height: clamp(780px, 58vw, 1120px);
  min-height: 0;
  margin-left: calc(50% - 50vw);
}

.hero-content {
  position: absolute;
  z-index: 4;
  left: clamp(58px, 7.8vw, 128px);
  bottom: clamp(28px, 2.4vw, 46px);
  max-width: min(850px, 62vw);
  padding: 0;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -14px -24px -14px -20px;
  z-index: -1;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 22% 58%, rgba(246, 239, 229, 0.48), rgba(246, 239, 229, 0.2) 58%, transparent 78%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-kicker,
.eyebrow {
  color: var(--accent-soft-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .hero-kicker {
  position: absolute;
  top: clamp(-48px, -3.15vw, -32px);
  left: clamp(135px, 12vw, 220px);
  color: var(--accent-wine-suit);
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1;
  white-space: nowrap;
  transform: scaleX(0.88) scaleY(1.2);
  transform-origin: left bottom;
  text-shadow: 0 1px 18px rgba(246, 239, 229, 0.8);
}

.hero-title {
  max-width: min(850px, 62vw);
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.35vw, 58px);
  font-weight: 500;
  line-height: 0.98;
}

.hero .hero-title {
  color: var(--accent-wine-deep);
  text-shadow: 0 2px 22px rgba(246, 239, 229, 0.88);
  text-wrap: balance;
}

.hero-title .word {
  display: inline-block;
}

.hero-copy {
  max-width: min(820px, 60vw);
  color: rgba(58, 20, 34, 0.9);
  font-size: clamp(14px, 1.14vw, 17px);
  line-height: 1.45;
  text-shadow: 0 1px 18px rgba(246, 239, 229, 0.8);
}

.hero-copy-break {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero .hero-actions .btn {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 18px;
}

.hero .btn-secondary {
  color: var(--accent-wine-suit);
  border-color: rgba(77, 23, 39, 0.36);
  background: rgba(244, 234, 220, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-trust {
  display: none;
}

.hero-sequence-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  filter: none;
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-sequence-shell picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-sequence-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 239, 229, 0.34), transparent 20%, transparent 76%, rgba(246, 239, 229, 0.08)),
    radial-gradient(ellipse at 88% 88%, rgba(55, 31, 35, 0.28), transparent 30%);
  pointer-events: none;
}

.hero-sequence {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 56%;
  user-select: none;
  transform: translateZ(0);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  transition: opacity 0.2s ease;
}

.hero-video-mobile {
  display: none;
}

.hero-video.is-playing,
.hero-video.has-ended {
  opacity: 1;
}

.section {
  padding: clamp(38px, 5vw, 88px) 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid rgba(255, 255, 255, 0.055);
}

.section-wine {
  background:
    radial-gradient(circle at 14% 0%, rgba(120, 44, 64, 0.55), transparent 58%),
    radial-gradient(circle at 88% 8%, rgba(68, 24, 40, 0.46), transparent 42%),
    #100a0d;
}

/* Блок 5 — «День і ніч»: власне зображення вже має перехід світло→бордо */
.section-daynight {
  background:
    linear-gradient(rgba(16, 10, 13, 0.22), rgba(16, 10, 13, 0.22)),
    url('../assets/images/backgrounds/bg-nebesa-svet-temnota.jpg') center center / cover no-repeat;
  padding-block: 38px !important;
  border-block: 1px solid rgba(255, 255, 255, 0.055);
}

.section-daynight > .container > h2 {
  text-align: center;
  background: linear-gradient(to right, #f4eadc 50%, #3a1422 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-daynight > .container > .eyebrow {
  text-align: center;
  color: var(--accent-gold);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.section-daynight > .container > .lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(to right, #f4eadc 45%, #3a1422 58%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ── Блок 5: trust-grid (3 колонки: ризики | ВЕСЫ | Дмитро) ── */
.trust-grid {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin-top: 32px;
  align-items: stretch;
}

/* Центральна колонка — прозора, показує весы з фону секції */
.trust-center-scales {
  flex: 0 0 380px;
  width: 380px;
  min-width: 380px;
}

/* Ліва колонка — ТЕМНА (РИЗИКИ, на темному фоні) */
.trust-col--light {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  background: #34101e;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid rgba(110, 40, 60, 0.50);
  border-top: 1px solid rgba(244, 234, 220, 0.20);
  box-shadow: 0 12px 44px rgba(20, 4, 10, 0.55);
}

/* Права колонка — ТЕПЛА КРЕМОВА (ДМИТРІЙ) */
.trust-col--dark {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  background: rgb(201, 188, 163);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid rgba(180, 120, 60, 0.35);
  box-shadow: 0 12px 44px rgba(20, 4, 10, 0.40);
}

/* Заголовок колонки — іконка + текст в рядок */
.trust-col-header {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}


.trust-col-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}
.trust-col--light .trust-col-title { color: var(--accent-cream); }
.trust-col--dark  .trust-col-title { color: var(--accent-wine-deep); }

/* Список */
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 20px);
}

/* Один пункт */
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.4vw, 16px);
}

/* Іконка-коло */
.trust-icon {
  flex-shrink: 0;
  width: clamp(48px, 4vw, 60px);
  height: clamp(48px, 4vw, 60px);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.trust-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Фони для іконок через CSS — надійно грузяться як background-image */
.trust-header-icon {
  flex-shrink: 0;
  width: clamp(52px, 4.5vw, 68px);
  height: clamp(52px, 4.5vw, 68px);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.trust-header-icon img { display: none; }

.ti-hdr-risk { background-image: url('../assets/icons/header-risk.png'); }
.ti-hdr-good { background-image: url('../assets/icons/header-good.png'); }
.ti-risk-1   { background-image: url('../assets/icons/risk-1.png'); }
.ti-risk-2   { background-image: url('../assets/icons/risk-2.png'); }
.ti-risk-3   { background-image: url('../assets/icons/risk-3.png'); }
.ti-risk-4   { background-image: url('../assets/icons/risk-4.png'); }
.ti-risk-5   { background-image: url('../assets/icons/risk-5.png'); }
.ti-good-1   { background-image: url('../assets/icons/good-1.png'); }
.ti-good-2   { background-image: url('../assets/icons/good-2.png'); }
.ti-good-3   { background-image: url('../assets/icons/good-3.png'); }
.ti-good-4   { background-image: url('../assets/icons/good-4.png'); }
.ti-good-5   { background-image: url('../assets/icons/good-5.png'); }

/* Текст пункту */
.trust-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: clamp(6px, 0.7vw, 10px);
}
.trust-text strong {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.1;
}
.trust-text span {
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.55;
}
.trust-col--light .trust-text strong { color: var(--accent-gold); }
.trust-col--light .trust-text span   { color: rgba(244, 234, 220, 0.85); }
.trust-col--dark  .trust-text strong { color: #2a0c14; }
.trust-col--dark  .trust-text span   { color: #3a1a0a; }

/* Планшет (до 900px) — центральна колонка вужче */
@media (max-width: 900px) {
  .section-daynight {
    background:
      linear-gradient(rgba(16, 10, 13, 0.28), rgba(16, 10, 13, 0.28)),
      url('../assets/images/backgrounds/bg-nebesa-svet-temnota.jpg') 42% center / cover no-repeat;
  }
  .trust-center-scales {
    flex: 0 0 180px;
    width: 180px;
    min-width: 180px;
  }
}

/* Мобіль (до 640px) — колонки стають одна під одною, центр ховаємо */
@media (max-width: 640px) {
  .section-daynight {
    background:
      linear-gradient(rgba(16, 10, 13, 0.32), rgba(16, 10, 13, 0.32)),
      url('../assets/images/backgrounds/bg-nebesa-svet-temnota.jpg') 38% center / cover no-repeat;
  }
  .trust-grid {
    flex-direction: column;
  }
  .trust-center-scales {
    display: none;
  }
  .trust-col--light,
  .trust-col--dark {
    padding: 24px 20px;
  }
  /* На мобільному — заголовок і підзаголовок без градієнту, просто білий */
  .section-daynight > .container > h2,
  .section-daynight > .container > .lead {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #f4eadc;
    background-clip: unset;
    color: #f4eadc;
  }
}

.section h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.05;
}

.lead {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 18px;
}

.page-hero {
  position: relative;
  padding: 136px 0 72px;
  border-bottom: 1px solid var(--border-soft);
}

.page-hero h1 {
  max-width: 980px;
  margin: 14px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.02;
}

.content-text {
  max-width: 820px;
  color: var(--text-secondary);
  font-size: 17px;
}

.content-note {
  max-width: 820px;
  padding: 18px 20px;
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.08);
}

.check-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-soft-gold);
  box-shadow: 0 0 20px var(--glow-gold);
}

.steps-grid,
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.step-item {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.step-item span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  color: #17110d;
  border-radius: 999px;
  background: var(--accent-soft-gold);
  font-weight: 700;
}

.step-item h3,
.split-grid h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.faq-list {
  display: flex;
  flex-direction: column;
}


.faq-mini > .container > .eyebrow,
.faq-mini > .container > h2,
.faq-mini > .container > .lead {
  text-align: center;
}

.faq-mini > .container > h2 {
  margin-bottom: clamp(32px, 4vw, 52px);
}

.faq-accordion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  align-items: start;
}

.faq-col {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid rgba(200, 80, 115, 0.55);
}

.faq-item {
  border-bottom: 1.5px solid rgba(200, 80, 115, 0.55);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary, #f4eadc);
  text-align: left;
  transition: color 0.2s ease;
}

.faq-question:focus {
  outline: none;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-arrow {
  flex-shrink: 0;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .faq-accordion {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.center-actions {
  justify-content: center;
}

.ai-summary {
  max-width: 920px;
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.65;
}

/* ── Process block ── */
.process-section {
  position: relative;
  overflow: hidden;
  min-height: clamp(700px, 68vw, 1120px);
  display: flex;
  flex-direction: column;
}

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

.process-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .process-bg img {
    object-position: center top;
  }
}

.process-section .container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 38px;
}

.process-eyebrow {
  color: var(--accent-gold);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-align: center;
}

.process-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--accent-wine-deep);
  margin: 6px 0 0;
  text-align: center;
  padding-bottom: clamp(60px, 8vw, 120px);
}

.process-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: auto;
  width: 100%;
  padding-top: clamp(20px, 2.5vw, 36px);
}

.process-card {
  background: linear-gradient(180deg, rgba(90, 28, 46, 0.88) 0%, rgba(30, 8, 16, 0.98) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(244, 234, 220, 0.14);
  border-top: 1px solid rgba(244, 234, 220, 0.28);
  border-radius: var(--radius-md);
  padding: clamp(28px, 3.2vw, 48px) clamp(16px, 2vw, 26px) clamp(32px, 3.6vw, 52px);
  text-align: center;
  box-shadow: 0 16px 48px rgba(20, 4, 10, 0.65), 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(244, 234, 220, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 64px rgba(20, 4, 10, 0.72), 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(244, 234, 220, 0.14);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(46px, 4vw, 58px);
  height: clamp(46px, 4vw, 58px);
  border-radius: 50%;
  background: var(--accent-gold);
  color: #1a0a0e;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  margin: 0 auto clamp(16px, 1.8vw, 22px);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(218, 165, 32, 0.4);
}

.process-card h4 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  color: var(--accent-cream);
  margin: 0 0 12px;
  line-height: 1.1;
}

.process-card p {
  font-size: clamp(14px, 1.1vw, 16px);
  color: rgba(244, 234, 220, 0.80);
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .process-cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }
  .process-title { padding-bottom: 16px; }
  .process-section { min-height: auto; }
}

@media (max-width: 480px) {
  .process-cards {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .process-title { padding-bottom: 12px; }
}

/* ── Situations section ── */
.situations-section {
  position: relative;
  overflow: hidden;
  padding-block: 38px;
  background:
    radial-gradient(circle at 14% 0%, rgba(150, 55, 72, 0.40), transparent 48%),
    radial-gradient(circle at 88% 8%, rgba(49, 72, 60, 0.18), transparent 38%),
    #180a10;
}

.situations-section > .container {
  position: relative;
  z-index: 1;
}

.situations-section .container {
  width: min(100% - clamp(32px, 5vw, 96px), var(--container));
}

.situations-section h2 {
  max-width: 1280px;
}

.situations-section .eyebrow {
  color: var(--accent-gold);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.situations-subhead {
  max-width: 860px;
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.55;
}

.situations-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(500px, 0.86fr);
  gap: clamp(22px, 4vw, 64px);
  align-items: center;
}

.situations-copy {
  position: relative;
  z-index: 2;
}

.situations-copy .check-list {
  max-width: 820px;
  margin-top: 0;
}

.worldwide-note {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: clamp(27px, 2.45vw, 42px);
  font-weight: 500;
  line-height: 1.05;
}

.situations-vanta-zone {
  position: relative;
  min-height: clamp(360px, 30vw, 520px);
  margin-top: clamp(-20px, -1vw, 0px);
  margin-right: calc(-50vw + 50%);
  pointer-events: auto;
}

.situations-vanta-light {
  position: absolute;
  right: 8%;
  bottom: -8%;
  width: min(50vw, 790px);
  height: min(32vw, 520px);
  pointer-events: none;
  background:
    linear-gradient(315deg, rgba(244, 234, 220, 0.22) 0%, rgba(224, 200, 120, 0.12) 18%, rgba(110, 40, 60, 0.08) 42%, transparent 66%);
  filter: blur(24px);
  opacity: 0.68;
  transform: rotate(-10deg);
}

.situations-vanta-mask {
  position: absolute;
  inset: -18% 2% -18% -42%;
  overflow: hidden;
  pointer-events: auto;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 18%, #000 98%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 12%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 18%, #000 98%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 12%, #000 90%, transparent 100%);
  mask-composite: intersect;
  filter:
    drop-shadow(0 0 16px rgba(244, 234, 220, 0.18))
    drop-shadow(0 0 46px rgba(224, 200, 120, 0.12));
}

.situations-vanta-mask::before {
  display: none;
}

.situations-vanta {
  position: absolute;
  inset: 0 2% -8% -38%;
  width: auto;
  height: auto;
  min-height: 0;
  filter: brightness(1.55) saturate(1.2) contrast(1.06);
}

.situations-vanta canvas {
  background: transparent !important;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

/* ── Block 4 — fixed 38px padding (like blocks 2-3) ── */
.section-wine {
  padding-block: 38px !important;
}

/* ── Block 4 headings — centered, same style as blocks 2-3 ── */
.section-wine > .container > .eyebrow {
  color: var(--accent-gold);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-align: center;
  width: 100%;
}

.section-wine > .container > h2 {
  text-align: center;
  width: 100%;
  letter-spacing: 0.04em;
}

.section-wine > .container > .center-actions {
  text-align: center;
  margin-top: clamp(28px, 3vw, 44px);
}

.section-wine > .container > .center-actions .btn {
  border-radius: 999px;
  padding-left: clamp(28px, 3vw, 48px);
  padding-right: clamp(28px, 3vw, 48px);
}

/* ── Service cards — block 4 ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  margin-top: clamp(24px, 3vw, 40px);
}

.service-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 44px rgba(20, 4, 10, 0.52), 0 2px 8px rgba(0,0,0,0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 64px rgba(20, 4, 10, 0.62), 0 4px 14px rgba(0,0,0,0.28);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #6e283c 0%, #3a1422 100%);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.86) saturate(0.75);
  transition: filter 0.35s ease;
}

.service-card:hover .service-card-img img {
  filter: brightness(0.92) saturate(0.85);
}

.service-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58%;
  background: linear-gradient(to bottom, transparent 0%, rgba(217, 182, 154, 0.50) 100%);
  pointer-events: none;
}

.service-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(14px, 1.5vw, 20px) clamp(12px, 1.3vw, 18px);
  background: rgba(217, 182, 154, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(217, 182, 154, 0.60);
  border-top: none;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-wine-deep);
  margin: 0 0 8px;
  line-height: 1.15;
}

.service-card p {
  font-size: clamp(13px, 1.05vw, 15px);
  color: #4a2a16;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.btn-card {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: clamp(12px, 1.4vw, 16px);
  font-size: clamp(12px, 0.88vw, 14px) !important;
  padding: 10px 12px !important;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.card p {
  color: var(--text-secondary);
}

.card a {
  color: var(--accent-soft-gold);
  font-weight: 700;
}

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.footer {
  padding: 44px 0;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 24px;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 999px;
  color: var(--accent-cream);
  background: linear-gradient(135deg, #7a3048, var(--accent-wine-suit) 62%, var(--accent-wine-deep));
  box-shadow: 0 0 0 0 rgba(77, 23, 39, 0.36);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 18px rgba(201, 168, 76, 0);
  }
}

@media (max-width: 900px) {
  .nav,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--accent-cream);
    background: rgba(77, 23, 39, 0.5);
  }

  .mobile-panel.open {
    position: fixed;
    inset: 76px 16px auto;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: calc(100dvh - 96px);
    overflow: auto;
    padding: 18px;
    color: var(--accent-cream);
    background:
      radial-gradient(circle at 14% 0%, rgba(122, 48, 72, 0.42), transparent 46%),
      linear-gradient(180deg, rgba(58, 20, 34, 0.98), rgba(17, 8, 16, 0.98));
    border: 1px solid rgba(244, 234, 220, 0.16);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(24px) saturate(135%);
  }

  .mobile-panel.open a {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(244, 234, 220, 0.1);
    border-radius: 14px;
    color: var(--accent-cream);
    font-size: 19px;
    font-weight: 700;
    background: rgba(244, 234, 220, 0.045);
  }

  .hero-grid,
  .card-grid,
  .steps-grid,
  .split-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .situations-section .container {
    width: min(100% - 32px, var(--container));
  }

  .situations-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .situations-subhead {
    font-size: clamp(15px, 3.8vw, 18px);
  }

  .situations-vanta-zone {
    min-height: 320px;
    margin-top: 0;
    margin-right: 0;
    opacity: 1;
    overflow: hidden;
  }

  .situations-vanta-light {
    right: -8%;
    bottom: -10%;
    width: 102vw;
    height: 58vw;
    opacity: 0.34;
  }

  /* On mobile: simplify to fill the zone — no complex negative insets that can clip the globe */
  .situations-vanta-mask {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: none;
    mask-image: none;
    filter: none;
  }

  .situations-vanta-mask::before {
    display: none;
  }

  .situations-vanta {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 320px;
    filter: brightness(1.55) saturate(1.18) contrast(1.05);
  }

  .hero {
    min-height: auto;
    padding: 76px 0 0;
    background: #efe5d8;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    min-height: auto;
    margin-left: auto;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    position: relative;
    left: auto;
    bottom: auto;
    order: 2;
    max-width: 100%;
    padding: clamp(38px, 9vw, 58px) 20px clamp(56px, 12vw, 84px);
    color: var(--accent-cream);
    background:
      radial-gradient(circle at 12% 0%, rgba(110, 40, 60, 0.34), transparent 42%),
      linear-gradient(180deg, #1b0d16, #110810);
  }

  .hero-content::before {
    display: none;
  }

  .hero .hero-kicker,
  .hero .hero-title,
  .hero-copy {
    color: var(--accent-cream);
    text-shadow: none;
  }

  .hero .hero-kicker {
    position: static;
    white-space: normal;
    transform: none;
    font-size: 14px;
    line-height: 1.2;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(26px, 7.5vw, 40px);
    line-height: 1.05;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-sequence-shell {
    position: relative;
    order: 1;
    top: auto;
    right: auto;
    margin-top: -16px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    justify-self: center;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-sequence-shell::after {
    display: none;
  }

  .hero-sequence-shell picture {
    height: auto;
  }

  .hero-sequence {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .hero-video-desktop {
    display: none;
  }

  .hero-video-mobile {
    display: block;
    object-fit: contain;
    object-position: center top;
  }

}

@media (max-width: 620px) {
  .faq-question {
    font-size: 15px;
    padding: 16px 16px;
  }
  .faq-answer p {
    padding: 0 16px 16px;
  }
}

@media (max-width: 480px) {
  /* Smaller h2 headings on very narrow screens */
  .section h2 {
    font-size: clamp(22px, 6.5vw, 30px);
  }
  /* Body text sizes */
  .lead {
    font-size: 15px;
  }
  /* More breathing room on narrow phones for text sections (NOT hero — it uses its own padding) */
  .situations-section .container,
  .section-wine .container,
  .section-daynight .container,
  .section-dmitry .container,
  .faq-mini .container,
  .cta-band .container {
    width: min(100% - 40px, var(--container));
  }
}

/* =====================================================
   BLOCK 6: ABOUT DMITRY — certificates + stats + qualities
   ===================================================== */

.section-dmitry {
  background:
    url('../assets/images/backgrounds/bg-svet-diplom.jpg') center center / cover no-repeat;
  border-block: 1px solid rgba(255, 255, 255, 0.045);
  padding-top: 40px;
  padding-bottom: 40px;
}

.section-dmitry > .container > .eyebrow {
  text-align: center;
}

.section-dmitry > .container > h2 {
  color: var(--accent-wine);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-dmitry > .container > h2.h2-revealed {
  opacity: 1;
  transform: translateY(0);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: 0;
  margin-bottom: clamp(36px, 4vw, 52px);
}

.cert-frame {
  position: relative;
  aspect-ratio: 1000 / 707;
  border-radius: var(--radius-md);
  border: 1px solid rgba(218, 165, 32, 0.32);
  overflow: hidden;
  background: linear-gradient(145deg, #1e1208 0%, #130c06 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.50);
  transition: box-shadow 0.30s ease;
}

.cert-frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(218, 165, 32, 0.14);
  border-radius: calc(var(--radius-md) - 4px);
  pointer-events: none;
  z-index: 1;
}

.cert-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.95) saturate(0.88);
  transition: filter 0.30s ease;
}

.cert-card {
  border: 2px solid #5e2133;
  box-shadow: 0 0 18px rgba(110, 40, 60, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: #331520;
  border-radius: var(--radius-md);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.cert-card.cert-visible {
  opacity: 1;
  transform: scale(1);
}

.cert-card.cert-visible:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 32px rgba(110, 40, 60, 0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
}

.cert-card:hover .cert-frame {
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.60);
}

.cert-card:hover .cert-frame img {
  filter: brightness(1.02) saturate(0.95);
}

@media (max-width: 700px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: clamp(28px, 3vw, 44px);
  margin-bottom: clamp(28px, 3vw, 40px);
  padding: clamp(6px, 0.7vw, 10px) clamp(24px, 3vw, 48px);
  border: 1px solid rgba(244, 234, 220, 0.18);
  border-top: 1px solid rgba(244, 234, 220, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(110, 40, 60, 0.80) 0%, rgba(58, 20, 34, 0.90) 100%);
  box-shadow: 0 16px 48px rgba(20, 4, 10, 0.55);
}

.about-stat {
  flex: 1;
  text-align: center;
  padding: 0 clamp(16px, 2.5vw, 32px);
}

.about-stat + .about-stat {
  border-left: 1px solid rgba(218, 165, 32, 0.20);
}

.about-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.75vw, 38px);
  font-weight: 500;
  color: var(--accent-gold);
  line-height: 1;
  letter-spacing: -0.01em;
}

.about-stat-label {
  display: block;
  font-size: clamp(8px, 0.43vw, 9px);
  color: rgba(244, 234, 220, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-top: 5px;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.about-bio {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-primary);
  line-height: 1.70;
  margin: 0 0 clamp(20px, 2.5vw, 30px);
}

.about-qualities {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-qualities li {
  position: relative;
  padding: clamp(10px, 1.1vw, 14px) 0 clamp(10px, 1.1vw, 14px) clamp(24px, 2.5vw, 30px);
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--text-primary);
  border-bottom: 1px solid rgba(244, 234, 220, 0.08);
  line-height: 1.55;
}

.about-qualities li:first-child {
  border-top: 1px solid rgba(244, 234, 220, 0.08);
}

.about-qualities li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: clamp(10px, 1.1vw, 14px);
  color: var(--accent-gold);
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 740px) {
  .about-stats {
    gap: 0;
    padding: 18px 12px;
  }
  .about-stat {
    padding: 0 clamp(10px, 3vw, 16px);
  }
  .about-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-stat-num {
    font-size: clamp(34px, 9vw, 46px);
  }
  .about-stat-label {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}

/* =====================================================
   BLOCK 6: SERPENTINE ANIMATIONS
   ===================================================== */

#serpentine-path {
  stroke-dasharray: 16, 10;
  animation: dashRun 1s linear infinite;
}

@keyframes dashRun {
  to { stroke-dashoffset: -26; }
}

@keyframes dotPulse {
  0%   { r: 40; opacity: 0.13; }
  50%  { r: 60; opacity: 0.28; }
  100% { r: 40; opacity: 0.13; }
}

#ring-01 { animation: dotPulse 0.8s ease-out 1.0s 1; }
#ring-02 { animation: dotPulse 0.8s ease-out 3.0s 1; }
#ring-03 { animation: dotPulse 0.8s ease-out 4.3s 1; }
#ring-04 { animation: dotPulse 0.8s ease-out 5.7s 1; }
#ring-05 { animation: dotPulse 0.8s ease-out 6.7s 1; }
#ring-06 { animation: dotPulse 0.8s ease-out 7.7s 1; }

.step-label {
  transition: transform 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
}

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

/* =====================================================
   BLOCK 7: REVIEWS — "Що говорять клієнти"
   ===================================================== */

.section-reviews {
  background:
    radial-gradient(circle at 14% 0%, rgba(120, 44, 64, 0.55), transparent 58%),
    radial-gradient(circle at 88% 8%, rgba(68, 24, 40, 0.46), transparent 42%),
    #100a0d;
  padding-block: 38px !important;
}

.section-reviews > .container > .eyebrow {
  color: var(--accent-gold);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-align: center;
  width: 100%;
}

.section-reviews > .container > h2 {
  text-align: center;
  width: 100%;
  letter-spacing: 0.04em;
}

/* Grid: 6 columns desktop, responsive below */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  margin-top: clamp(24px, 3vw, 40px);
  position: relative;
}

/* Card — base state (hidden until IntersectionObserver fires) */
.review-card {
  border: 2px solid #5e2133;
  box-shadow: 0 0 18px rgba(110, 40, 60, 0.35);
  background-color: #331520;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.review-card.review-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Expanded card — scale up, come to front */
.review-card.expanded {
  transform: scale(1.15) !important;
  z-index: 10;
  box-shadow: 0 0 48px rgba(110, 40, 60, 0.55) !important;
  border-color: rgba(218, 165, 32, 0.6);
  overflow: visible;
}

/* Siblings dim when one is expanded */
.review-card.dimmed {
  opacity: 0.55 !important;
}

/* Inner area — screenshot background */
.review-card-inner {
  position: relative;
  background: rgba(110, 40, 60, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px) 0 0;
}

/* Slides */
.review-slides {
  position: relative;
  width: 100%;
  flex: 1;
}

.review-slide {
  display: none;
  width: 100%;
  height: auto;
  min-height: 120px;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.96);
  transition: filter 0.3s ease;
}

.review-slide.active {
  display: block;
}

.review-card.expanded .review-slide {
  filter: brightness(1.02);
}

/* Navigation: dots + arrows — hidden until card is expanded */
.review-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 8px 10px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, max-height 0.25s ease;
}

.review-card.expanded .review-nav {
  opacity: 1;
  visibility: visible;
  max-height: 48px;
}

.review-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.review-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 234, 220, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.review-dot.active {
  background: var(--accent-gold);
  transform: scale(1.3);
}

.review-arrow {
  background: rgba(110, 40, 60, 0.6);
  border: 1px solid rgba(218, 165, 32, 0.35);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent-cream);
  font-size: 9px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.review-arrow:hover {
  background: rgba(110, 40, 60, 0.95);
  border-color: rgba(218, 165, 32, 0.6);
}

/* Footer: name · city flag */
.review-footer {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(244, 234, 220, 0.75);
  border-top: 1px solid rgba(94, 33, 51, 0.5);
  flex-shrink: 0;
  flex-wrap: wrap;
  background: rgba(30, 8, 16, 0.6);
}

.review-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-cream);
}

.review-sep {
  color: rgba(218, 165, 32, 0.55);
  font-size: 11px;
}

.review-city {
  color: rgba(244, 234, 220, 0.60);
  font-size: 11px;
}

/* Tablet: 3 columns */
@media (max-width: 1100px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .review-card.expanded {
    transform: scale(1.1) !important;
  }
}

/* Mobile: 2 columns */
@media (max-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .review-card.expanded {
    transform: scale(1.06) !important;
  }
  .review-footer {
    padding: 8px 10px;
    font-size: 11px;
  }
  .review-name {
    font-size: 12px;
  }
}

.btn-dark {
  transition: transform 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.btn-dark:hover {
  transform: translateY(-3px);
  background: #7a2845;
}

.btn-light {
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn-light:hover {
  transform: translateY(-3px);
  background: rgba(222, 188, 160, 0.50);
  border-color: #331520;
}

/* ===================================================== */

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

  #serpentine-path { animation: none; }
  #star-traveler   { display: none; }
  .step-label,
  .btn-dark,
  .btn-light       { transition: none; }
  [id^="ring-"]    { animation: none; }
}
