:root {
  --bg: #faf5ef;
  --bg-soft: #f3eae0;
  --surface: #ffffff;
  --ink: #2a211a;
  --muted: #7c6f62;
  --accent: #c1785f;
  --accent-dark: #a75f47;
  --line: #eadfd1;
  --gold: #d9a86c;
  --radius: 22px;
  --shadow: 0 18px 44px rgba(70, 50, 30, 0.10);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 820px;
}

.section {
  padding: 72px 0;
}

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

.section-head.align-left {
  margin: 0 0 24px;
  text-align: left;
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(193, 120, 95, 0.10);
  border: 1px solid rgba(193, 120, 95, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
}

h1 {
  font-size: clamp(52px, 12vw, 104px);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(34px, 6vw, 52px);
  margin-bottom: 14px;
}

h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
}

p {
  color: var(--muted);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(70, 50, 30, 0.06);
}

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

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.05;
}

.nav {
  display: none;
}

.nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--accent-dark);
  background: rgba(193, 120, 95, 0.08);
}

.nav a.nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 12px 20px;
  border-radius: 999px;
}

.nav a.nav-cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile nav */
.nav.open {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  background: var(--bg);
  padding: 76px 20px 20px;
  overflow-y: auto;
}

.nav.open a {
  padding: 16px 14px;
  font-size: 18px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.nav.open a.nav-cta {
  text-align: center;
  border: none;
  margin-top: 12px;
  border-radius: 999px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
  padding: 16px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(193, 120, 95, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

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

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
  background: var(--bg-soft);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 18px 38px;
  font-size: 17px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(217, 168, 108, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(193, 120, 95, 0.10), transparent 60%);
}

.hero-inner {
  display: grid;
  gap: 44px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(193, 120, 95, 0.10);
  border: 1px solid rgba(193, 120, 95, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3.4vw, 26px);
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-actions .btn-primary {
  font-size: 17px;
  padding: 19px 38px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.hero-points li {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-photo {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  right: -8px;
  bottom: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--accent-dark);
}

.hero-card small {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 24px;
}

.card p {
  font-size: 15px;
}

.card-line {
  position: relative;
  border-left: 3px solid var(--accent);
}

/* ---------- Program ---------- */

.program-list {
  display: grid;
  gap: 18px;
}

.program-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.program-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

.program-head .card-num {
  margin: 0;
  font-size: 22px;
}

.program-head h3 {
  margin: 0;
  font-size: 26px;
}

.program-item p {
  font-size: 15.5px;
  max-width: 640px;
}

/* ---------- Gallery ---------- */

.gallery-wrap {
  position: relative;
}

.gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 76%;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-btn:hover {
  background: var(--bg-soft);
}

.gallery-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.gallery-prev {
  left: 4px;
}

.gallery-next {
  right: 4px;
}

/* ---------- Author ---------- */

.author {
  background: var(--bg-soft);
}

.author-inner {
  display: grid;
  gap: 40px;
}

.author-photo {
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.author-text p {
  font-size: 16.5px;
}

.author-list {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}

.author-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
}

.author-list strong {
  display: block;
  font-size: 15px;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.author-list p {
  font-size: 15px;
  margin: 0;
}

.author-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  padding: 22px 14px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Price ---------- */

.price {
  background:
    radial-gradient(700px 400px at 50% 100%, rgba(193, 120, 95, 0.12), transparent 70%);
}

.price-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.price-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(193, 120, 95, 0.10);
  border: 1px solid rgba(193, 120, 95, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.price-value {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 22px;
}

.price-num {
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--ink);
}

.price-cur {
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 12px;
}

.price-list {
  text-align: left;
  margin-bottom: 30px;
}

.price-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}

.price-list li:last-child {
  border-bottom: none;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.price-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 22px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s;
}

.faq-icon::before {
  top: 10px;
  left: 1px;
  width: 20px;
  height: 2px;
}

.faq-icon::after {
  top: 1px;
  left: 10px;
  width: 2px;
  height: 20px;
}

.faq-item.open .faq-icon::after {
  transform: scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 22px 22px;
  font-size: 15px;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--ink);
  color: #fff;
}

.contact .label {
  color: var(--gold);
  background: rgba(217, 168, 108, 0.12);
  border-color: rgba(217, 168, 108, 0.3);
}

.contact h2 {
  color: #fff;
}

.contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}

.contact-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.contact-photo {
  justify-self: center;
  width: 100%;
  max-width: 380px;
}

.contact-photo .photo-frame {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #1d1713;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .logo-mark {
  background: var(--accent);
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 12px 24px;
  border-radius: 999px;
  transition: background 0.2s;
}

.footer-tg:hover {
  background: var(--accent-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.footer-bottom p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Tablet ---------- */

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

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    overflow: visible;
    padding: 0;
  }

  .gallery-item {
    width: 100%;
  }

  .gallery-btn {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Desktop ---------- */

@media (min-width: 960px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .burger {
    display: none;
  }

  .hero {
    padding: 80px 0 96px;
  }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-photo {
    max-width: 460px;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .program-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .program-item {
    padding: 34px 30px;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .author-inner {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 64px;
  }

  .contact-inner {
    grid-template-columns: 1fr 0.8fr;
    gap: 64px;
  }

  .section {
    padding: 104px 0;
  }
}
