:root {
  --bg: #faf6ef;
  --paper: #fffdf9;
  --ink: #221a12;
  --ink-soft: #7a6e5f;
  --accent: #c15f2b;
  --accent-deep: #9c4a1d;
  --gold: #c6a05f;
  --hairline: rgba(34, 26, 18, 0.14);
  --hairline-soft: rgba(34, 26, 18, 0.09);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(193, 95, 43, 0.18); }

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

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 108px 0; }

h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 500; }

h1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.12; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.18; }
h3 { font-size: 21px; line-height: 1.3; }

em { font-style: italic; }

h1 em, h2 em { color: var(--accent); }

.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.kicker-light { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head h2 { margin-bottom: 18px; }
.section-head::after {
  content: '';
  display: block;
  width: 56px; height: 2px;
  background: var(--accent);
  margin-top: 28px;
}

/* ===== Announcement bar ===== */
.announce-bar {
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 0;
  text-align: center;
}

.announce-bar p { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--hairline);
  box-shadow: 0 12px 40px rgba(34, 26, 18, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ink);
}

.logo-svg { width: 76px; height: auto; display: block; }

.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 29.13px;
  font-weight: 600;
  letter-spacing: 2.5px;
}

.nav-links { display: flex; gap: 38px; list-style: none; }

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 16px 34px;
  line-height: 1;
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn-lg { padding: 18px 40px; font-size: 13px; }
.btn-xl { padding: 21px 48px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 40px rgba(34, 26, 18, 0.18);
}

.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 26px 54px rgba(34, 26, 18, 0.28); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.btn-light:hover { transform: translateY(-3px); background: #fff; }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: rgba(34, 26, 18, 0.4);
}

.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }

.btn-line-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 253, 249, 0.5);
}

.btn-line-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-2px); }

.btn-arrow { font-weight: 500; opacity: 0.85; }

/* ===== Hero ===== */
.hero { padding: 96px 0 0; }

.hero-inner { text-align: center; max-width: 900px; }

.hero h1 { margin: 0 0 30px; }

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }

.hero-photo {
  margin-top: 84px;
  position: relative;
  will-change: transform;
}

.hero-photo figure {
  position: relative;
  max-width: 100%;
  margin: 0;
}

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

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(250, 246, 239, 0.75));
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
}

.caption-line { width: 44px; height: 1px; background: var(--ink); }

/* ===== Marquee ===== */
.marquee {
  margin: 96px 0 0;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 26px 0;
  overflow: hidden;
  background: var(--paper);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  white-space: nowrap;
}

.m-dot { font-style: normal; color: var(--accent); font-size: 14px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Tiles (категории) ===== */
.section-tiles { padding-top: 40px; }

.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 26px;
  align-items: start;
}

.cat-card {
  position: relative;
  display: block;
  text-decoration: none;
}

.cat-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.9s var(--ease);
}

.cat-card:hover img { transform: scale(1.02); }

.cat-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.cat-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
}

.cat-count {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.lightbox.open { display: block; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 10, 0.92);
}

.lightbox-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 56px 76px;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 253, 249, 0.8);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 26px;
  right: 30px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 249, 0.35);
  background: transparent;
  color: var(--paper);
  font-size: 17px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover { background: rgba(255, 253, 249, 0.14); transform: rotate(90deg); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 249, 0.35);
  background: transparent;
  color: var(--paper);
  font-size: 19px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-nav:hover { background: rgba(255, 253, 249, 0.14); }

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-nav.hidden { display: none; }


/* ===== Philosophy ===== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.phil-item {
  padding: 44px 40px 20px 0;
}

.phil-item + .phil-item {
  border-left: 1px solid var(--hairline-soft);
  padding-left: 44px;
}

.phil-item h3 { margin-bottom: 18px; }
.phil-item p { color: var(--ink-soft); font-size: 14.5px; }

/* ===== Feature band (parallax) ===== */
.feature-band {
  position: relative;
  margin: 40px 0 0;
  overflow: hidden;
  height: min(80vh, 560px);
  display: grid;
  place-items: center;
}

.feature-bg {
  position: absolute;
  inset: -24px 0;
  overflow: hidden;
}

.feature-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.72);
  will-change: transform;
}

.feature-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 26, 18, 0.3), rgba(34, 26, 18, 0.55));
}

.feature-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--paper);
  padding: 40px 0;
}

.feature-rule {
  display: block;
  width: 56px; height: 2px;
  background: var(--gold);
  margin: 0 auto 34px;
}

.feature-inner blockquote {
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.3;
  margin-bottom: 26px;
}

.feature-inner blockquote em { color: var(--gold); }

.feature-author {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.85);
}

/* ===== Promises ===== */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.promise-item {
  border-top: 2px solid var(--ink);
  padding-top: 30px;
  transition: transform 0.4s var(--ease);
}

.promise-item:hover { transform: translateY(-8px); }

.promise-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}

.promise-item h3 { margin-bottom: 14px; }
.promise-item p { color: var(--ink-soft); font-size: 14.5px; }

/* ===== Offer band ===== */
.offer-band {
  background: var(--ink);
  color: var(--paper);
  padding: 108px 0;
  position: relative;
  overflow: hidden;
}

.offer-band::before {
  content: 'MARO';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 40vw;
  line-height: 1;
  color: rgba(255, 253, 249, 0.035);
  white-space: nowrap;
  pointer-events: none;
}

.offer-inner { position: relative; z-index: 2; text-align: center; }

.offer-inner h2 { margin-bottom: 40px; }

.offer-list {
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: rgba(255, 253, 249, 0.88);
}

.offer-list li { position: relative; padding-left: 34px; text-align: left; }

.offer-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.offer-note {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
}

.offer-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }

/* ===== Prices ===== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.price-item {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--hairline-soft);
  background: var(--paper);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.price-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(34, 26, 18, 0.12);
  z-index: 2;
}

.price-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.price-item h3 { margin-bottom: 12px; }

.price {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

.price b {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--ink);
}

.price-item-hot { background: var(--ink); color: var(--paper); }
.price-item-hot h3 { color: var(--paper); }
.price-item-hot .price { color: rgba(255, 253, 249, 0.8); }
.price-item-hot .price b { color: var(--paper); }
.price-item-hot .price-tag { color: var(--gold); }
.price-item-hot:hover { box-shadow: 0 30px 70px rgba(34, 26, 18, 0.45); }

.price-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
  font-size: 14px;
  color: var(--ink-soft);
  flex: 1;
}

.price-item-hot .price-list { color: rgba(255, 253, 249, 0.85); }

.price-list li { position: relative; padding-left: 20px; }

.price-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  font-size: 11px;
  top: 3px;
  color: var(--accent);
}

.price-item-hot .price-list li::before { color: var(--gold); }

.price-ribbon {
  position: absolute;
  top: 0;
  right: 30px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  transform: translateY(-50%);
}

.price-note {
  margin-top: 44px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Quiz ===== */
.section-quiz { padding-top: 40px; }

.quiz-block {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--hairline-soft);
  padding: 84px 40px;
  position: relative;
  overflow: hidden;
}

.quiz-block::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--hairline-soft);
  pointer-events: none;
}

.quiz-block h2 { margin-bottom: 16px; }
.quiz-text { color: var(--ink-soft); font-size: 17px; margin-bottom: 40px; }
.quiz-text b { color: var(--ink); }

.quiz-block .btn { position: relative; z-index: 2; }
.btn-arrow { margin-left: 6px; }

.quiz-note {
  max-width: 480px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
}

/* ===== Reviews ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.review-item {
  padding: 40px 34px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease);
}

.review-item:hover { transform: translateY(-8px); }

.stars {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 4px;
  margin-bottom: 26px;
}

.review-item blockquote {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
  margin-bottom: 30px;
}

.review-item figcaption {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.review-item figcaption b { color: var(--ink); }

/* ===== Music ===== */
.section-music {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0;
}

.music-wrap { text-align: center; max-width: 720px; }

.music-wrap .kicker { color: var(--gold); }

.music-wrap h2 { color: var(--paper); margin-bottom: 16px; }

.music-wrap h2 em { color: var(--gold); }

.music-wrap > p {
  color: rgba(255, 253, 249, 0.72);
  max-width: 480px;
  margin: 0 auto 44px;
  font-size: 16px;
  line-height: 1.6;
}

.music-player audio {
  width: 100%;
  max-width: 480px;
  height: 52px;
  filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

.music-track-name {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.6);
}

/* ===== Newsletter ===== */
.section-newsletter { padding: 20px 0 110px; }

.newsletter {
  text-align: center;
  padding: 70px 0 0;
}

.newsletter h2 { margin-bottom: 14px; }
.newsletter > p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 36px; }

.newsletter-form {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input {
  min-width: 320px;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus { border-color: var(--accent); }

.newsletter-note { margin-top: 20px; font-size: 12px; color: var(--ink-soft); opacity: 0.75; }

/* ===== Contacts ===== */

.contacts-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacts-info h2 { margin-bottom: 20px; }
.contacts-info > p { color: var(--ink-soft); margin-bottom: 34px; }

.contacts-links { display: grid; gap: 14px; margin-bottom: 26px; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  padding: 16px 22px;
  border: 1px solid var(--hairline-soft);
  background: var(--paper);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-link:hover {
  transform: translateX(6px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(34, 26, 18, 0.1);
}

.contact-ico {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 15px;
}

.contact-text b { font-weight: 600; }

.contacts-ps { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.contacts-card {
  background: var(--paper);
  border: 1px solid var(--hairline-soft);
  padding: 44px;
}

.contacts-card h3 { margin-bottom: 26px; font-size: 26px; }

.contacts-card-text {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 28px;
}

.contacts-card label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.contacts-card input,
.contacts-card textarea {
  width: 100%;
  margin-top: 10px;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(34, 26, 18, 0.3);
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.contacts-card input:focus,
.contacts-card textarea:focus { border-color: var(--accent); }

.contacts-card .btn { margin-top: 10px; }

.form-note { font-size: 12px; color: var(--ink-soft); margin-top: 16px; text-align: center; opacity: 0.7; }

.form-success {
  text-align: center;
  padding: 44px 20px;
  font-family: var(--serif);
  font-size: 22px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 253, 249, 0.12);
}

.footer-brand .logo { color: var(--paper); }
.footer-brand p { color: rgba(255, 253, 249, 0.7); font-size: 14px; margin-top: 18px; max-width: 280px; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 253, 249, 0.78);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-col a:hover { color: var(--paper); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 253, 249, 0.55);
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 26, 18, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-body {
  position: relative;
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 44px;
  z-index: 2;
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline-soft);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.modal-close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }

.modal-body h3 { font-size: 28px; margin-bottom: 24px; }

.modal-body label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.modal-body input {
  width: 100%;
  margin-top: 8px;
  padding: 13px 0;
  border: none;
  border-bottom: 1px solid rgba(34, 26, 18, 0.3);
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease;
}

.modal-body input:focus { border-color: var(--accent); }

.modal-body .btn { margin-top: 6px; }

.quiz-progress {
  height: 2px;
  background: var(--hairline-soft);
  margin-bottom: 28px;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.quiz-question { font-family: var(--serif); font-size: 22px; margin-bottom: 22px; }

.quiz-options { display: grid; gap: 12px; }

.quiz-option {
  text-align: left;
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.quiz-option:hover {
  transform: translateX(6px);
  border-color: var(--accent);
  background: rgba(193, 95, 43, 0.06);
}

.quiz-result h4 { font-family: var(--serif); font-size: 24px; margin-bottom: 14px; }
.quiz-result p { color: var(--ink-soft); margin-bottom: 16px; }
.quiz-outro { font-size: 13px; }
.quiz-result .btn { margin-top: 8px; width: 100%; }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .nav-links { gap: 24px; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 40px; }
  .phil-item { padding: 0; }
  .phil-item + .phil-item { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline-soft); padding-top: 40px; }
  .promise-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; gap: 24px; }
  .price-item { padding: 34px; }
  .review-grid { grid-template-columns: 1fr; }
  .contacts-wrap { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-cta { padding: 9px 16px; }
  .hero { padding: 64px 0 0; }
  .hero-caption { flex-direction: column; gap: 8px; text-align: center; width: 90%; margin-inline: auto; }
  .caption-line { display: none; }
  .cats-grid { grid-template-columns: 1fr; gap: 34px; }
  .feature-band { height: 70vh; }
  .offer-inner h2 br { display: none; }
  .quiz-block { padding: 60px 24px; }
  .newsletter-form input { min-width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .modal-body { padding: 32px 24px; }
}
