:root {
  --bg: #f2ebe0;
  --bg-deep: #e7dece;
  --ink: #1c1812;
  --muted: #6a6156;
  --olive: #3c532b;
  --olive-2: #2d3f20;
  --leaf: #d7e3c4;
  --gold: #b08a43;
  --gold-soft: #e8d7b0;
  --paper: #fffaf1;
  --line: rgba(28, 24, 18, 0.1);
  --shadow: 0 24px 60px rgba(28, 24, 18, 0.08);
  --radius: 28px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--olive); }
img { max-width: 100%; display: block; }
button { font: inherit; }

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--olive); z-index: 60; transform-origin: left;
}

.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 7vw;
  background: rgba(242, 235, 224, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
.nav.is-scrolled { border-color: var(--line); padding-top: 12px; padding-bottom: 12px; }
.logo {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--olive) !important;
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
}
.burger {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); cursor: pointer;
}
.burger span, .burger::before, .burger::after {
  content: ""; display: block; height: 1.5px; width: 16px; margin: 4px auto; background: var(--ink);
}

.wrap { width: min(1180px, calc(100% - 10vw)); margin: 0 auto; }
.section { padding: 88px 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 11px; font-weight: 700; color: var(--olive);
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--gold);
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(46px, 7vw, 84px); line-height: 0.98; margin: 12px 0 22px; }
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin: 10px 0 18px; }
h3 { font-size: 28px; margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--muted); max-width: 42ch; }

.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 650;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.25s, box-shadow 0.25s;
}
.btn { background: var(--olive); color: #fff; box-shadow: 0 10px 24px rgba(60, 83, 43, 0.22); }
.btn:hover { transform: translateY(-2px); background: var(--olive-2); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,250,241,.7); }
.btn-ghost:hover { transform: translateY(-2px); background: #fff; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 36px 0 8px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  animation: drift 16s ease-in-out infinite alternate;
}
.hero::before {
  width: 420px; height: 420px; left: -8%; top: 10%;
  background: rgba(215, 227, 196, 0.8);
}
.hero::after {
  width: 280px; height: 280px; right: 8%; bottom: 8%;
  background: rgba(232, 215, 176, 0.55);
  animation-delay: -6s;
}
@keyframes drift {
  to { transform: translate3d(30px, -24px, 0) scale(1.06); }
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word {
  display: inline-block;
  transform: translateY(120%);
  animation: rise 0.9s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-title .word.is-italic { font-style: italic; color: var(--olive); }
@keyframes rise { to { transform: none; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 14px; }
.price-note { color: var(--muted); font-size: 14px; }

.hero-visual { position: relative; }
.photo-frame {
  position: relative;
  border-radius: 180px 180px 36px 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-deep);
}
.photo-frame img {
  width: 100%;
  height: min(58vh, 560px);
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.04);
  animation: ken 22s ease-in-out infinite alternate;
}
@keyframes ken { to { transform: scale(1.1) translateY(-2%); } }
.photo-ornament {
  position: absolute; inset: 14px;
  border: 1px solid rgba(255,250,241,.35);
  border-radius: 168px 168px 28px 28px;
  pointer-events: none;
}
.float-chip {
  position: absolute; left: -18px; bottom: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: floaty 5s ease-in-out infinite;
}
.float-chip b { display: block; font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
@keyframes floaty {
  50% { transform: translateY(-8px); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 28px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--paper);
  padding: 22px 20px;
}
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
}
.stat strong span { font: inherit; }
.stat span { color: var(--muted); font-size: 13px; }

.about {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: 560px; object-fit: cover; object-position: 50% 15%; }
.quote {
  margin: 28px 0 0;
  padding: 22px 24px 22px 26px;
  border-left: 2px solid var(--gold);
  background: rgba(255,250,241,.55);
  border-radius: 0 20px 20px 0;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.35;
  font-style: italic;
}

.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}
.split.single { grid-template-columns: 1fr; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card.soft { background: #f6f0e4; box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}
.no-list { margin: 0; padding-left: 18px; color: var(--muted); }
.no-list li { margin: 8px 0; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 22px 26px;
  min-height: 210px;
}
.step .n {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 28px;
  display: block;
  margin-bottom: 28px;
}
.step p { color: var(--muted); margin: 0; font-size: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.filter.is-on { background: var(--olive); color: #fff; border-color: var(--olive); }

.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.diploma.is-featured { min-height: 340px; padding-top: 32px; }
.diploma.is-featured .seal { width: 68px; height: 68px; font-size: 20px; }
.certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.diploma {
  position: relative;
  min-height: 280px;
  padding: 26px 22px 22px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(160deg, var(--gold-soft), #fff, var(--gold-soft)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.diploma::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(176, 138, 67, 0.35);
  pointer-events: none;
}
.diploma:hover { transform: translateY(-6px) rotateX(2deg); box-shadow: 0 28px 50px rgba(28,24,18,.12); }
.diploma-scan {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 14px;
}
.seal {
  width: 54px; height: 54px; margin-bottom: 18px;
  border-radius: 50%;
  border: 1.5px dashed var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--olive);
  background: rgba(232, 215, 176, 0.25);
}
.diploma h3 { font-size: 22px; line-height: 1.2; }
.diploma .place, .diploma .spec { color: var(--muted); font-size: 13px; margin: 0; }
.diploma .meta {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 22px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--olive);
}

.lightbox {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(28, 24, 18, 0.55);
  display: none; place-items: center;
  padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox-card {
  width: min(520px, 100%);
  background: var(--paper);
  border-radius: 12px;
  padding: 40px 36px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.lightbox-card::before {
  content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold-soft);
}
.lightbox button {
  position: absolute; top: 12px; right: 14px;
  border: 0; background: none; cursor: pointer; color: var(--muted);
}

.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.format-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}
.format-grid span { display: block; color: var(--muted); font-size: 14px; margin-top: 8px; }
.rules { color: var(--muted); }
.link-doc { font-weight: 650; }

.price-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 32px;
  background: var(--olive);
  color: #f6f1e6;
  border-radius: 32px;
}
.price-card h3, .price-card p { color: inherit; }
.price-card p { opacity: 0.82; }
.amount {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.9;
}
.alts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.alts i {
  font-style: normal;
  border: 1px solid rgba(255,250,241,.25);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
}
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { color: var(--muted); margin: 10px 0 4px; }

.book {
  text-align: center;
  padding: 96px 7vw;
  background:
    radial-gradient(circle at 20% 20%, rgba(215,227,196,.7), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(232,215,176,.55), transparent 36%),
    var(--bg-deep);
  border-radius: 40px;
  margin-bottom: 20px;
}
.book p { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.book-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 10px; }
.book .lead-links { font-size: 14px; }

footer {
  padding: 28px 7vw 48px;
  color: var(--muted);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.fine { font-size: 12px; max-width: 52ch; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-title .word, .photo-frame img, .float-chip, .hero::before, .hero::after {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); padding: 16px 7vw 24px;
    border-bottom: 1px solid var(--line);
  }
  .burger { display: block; }
  .hero, .about, .split, .steps, .certs, .featured, .format-grid, .stats, .price-card {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; gap: 32px; padding-top: 20px; }
  .photo-frame img, .about-photo img { height: 420px; }
  .float-chip { left: 12px; bottom: 16px; }
  .section { padding: 64px 0; }
}
