@import url(https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400&family=PT+Sans:wght@400;700&display=swap);

/* ================= Variables & base (index.css) ================= */
:root {
  --bg: #1e1b16;
  --bg-2: #2a2520;
  --panel: #332e27;
  --line: #4a443a;
  --cream: #f5efe6;
  --muted: #c4b9a8;
  --gold: #c9a227;
  --gold-2: #e0be48;
  --green: #4a6348;
  --red: #a03830;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--cream);
  font-family: 'PT Sans', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.02em;
}

.font-serif-ru {
  font-family: 'PT Serif', Georgia, serif;
}

::selection {
  background: var(--gold);
  color: #1e1b16;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #5a5448; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

html { scroll-behavior: smooth; }

/* ================= App.css ================= */
.App {
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
}

/* ---------- Layout helpers ---------- */
.section {
  padding: 96px 24px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.kicker {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
}
.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  text-transform: uppercase;
  margin: 12px 0 0;
  line-height: 1.05;
}
.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin-top: 14px;
  line-height: 1.6;
}
.divider-gold {
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin-top: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold {
  background: var(--gold);
  color: #17140f;
}
.btn-gold:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(242,237,227,0.35);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 20px 24px;
}
.nav.scrolled {
  background: rgba(30,27,22,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding: 12px 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--cream);
}
.brand-mark {
  width: 42px; height: 42px;
  border: 2px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold);
}
.brand-name { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; line-height: 1; font-size: 18px; }
.brand-sub { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-link {
  color: var(--cream); text-decoration: none; font-size: 14px;
  font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.04em;
  position: relative; padding: 4px 0; transition: color .2s ease;
  background: none; border: none; cursor: pointer;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }
.nav-burger { display: none; background: none; border: none; color: var(--cream); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(30,27,22,0.7) 0%, rgba(30,27,22,0.45) 45%, rgba(30,27,22,0.2) 100%),
              linear-gradient(180deg, rgba(30,27,22,0.25) 0%, rgba(30,27,22,0.1) 40%, rgba(30,27,22,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; padding: 120px 24px 80px; margin: 0 auto; width: 100%; }
.hero-kicker {
  display: inline-block; color: var(--gold);
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 13px; margin-bottom: 20px;
  border-left: 3px solid var(--gold); padding-left: 14px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98; text-transform: uppercase; font-weight: 700;
  margin: 0 0 22px; max-width: 760px;
}
.hero h1 .accent { color: var(--gold); }
.hero p { font-size: 19px; color: var(--cream); opacity: 0.9; line-height: 1.6; max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-ind {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Stats ---------- */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); max-width: 1200px; margin: 0 auto; }
.stat { padding: 44px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-value { font-family: 'Oswald', sans-serif; font-size: 44px; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; margin-top: 10px; }

/* ---------- Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 56px; align-items: stretch; }
.adv-grid > .reveal { display: flex; flex-direction: column; height: 100%; }
.adv-card {
  background: var(--panel); border: 1px solid var(--line);
  padding: 32px 26px; transition: transform .25s ease, border-color .25s ease;
  height: 100%; display: flex; flex-direction: column;
}
.adv-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.adv-icon { color: var(--gold); margin-bottom: 18px; }
.adv-card h3 { font-size: 20px; text-transform: uppercase; margin: 0 0 10px; font-weight: 500; }
.adv-card p { color: var(--muted); line-height: 1.6; font-size: 15px; margin: 0; }

/* ---------- About ---------- */
.about-lead { font-family: 'PT Serif', serif; font-size: 20px; line-height: 1.7; color: var(--cream); max-width: 820px; margin-top: 22px; }
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 64px; }
.about-block.reverse .about-img { order: 2; }
.about-img { overflow: hidden; border: 1px solid var(--line); }
.about-img img { width: 100%; height: 380px; object-fit: cover; display: block; transition: transform .6s ease; }
.about-img:hover img { transform: scale(1.06); }
.about-block h3 { font-size: 28px; text-transform: uppercase; margin: 0 0 16px; font-weight: 500; }
.about-block p { color: var(--muted); line-height: 1.75; font-size: 16px; }
.about-block .num { font-family: 'Oswald'; color: var(--gold); font-size: 14px; letter-spacing: 0.2em; }

/* ---------- Program ---------- */
.program { background: var(--bg-2); }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 0; margin-top: 56px; border: 1px solid var(--line); }
.stop { padding: 40px 30px; border-right: 1px solid var(--line); position: relative; transition: background-color .25s ease; }
.stop:hover { background: var(--panel); }
.stop:last-child { border-right: none; }
.stop-n { font-family: 'Oswald'; font-size: 46px; font-weight: 700; color: rgba(201,162,39,0.28); line-height: 1; }
.stop h4 { text-transform: uppercase; font-size: 18px; margin: 14px 0 10px; font-weight: 500; }
.stop p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 48px;
}
.g-item { overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 4/3; border: 1px solid var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.g-item:hover img { transform: scale(1.1); }
.g-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,18,15,0.75));
  opacity: 0; transition: opacity .3s ease;
}
.g-item:hover::after { opacity: 1; }
.g-plus { position: absolute; bottom: 12px; right: 12px; color: var(--gold); opacity: 0; transition: opacity .3s ease; z-index: 2; }
.g-item:hover .g-plus { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,18,14,0.95);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border: 1px solid var(--line); }
.lb-close { position: absolute; top: 24px; right: 28px; color: var(--cream); background: none; border: none; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--cream); cursor: pointer; padding: 14px; }
.lb-nav:hover { background: var(--gold); color: #1e1b16; }
.lb-prev { left: 24px; } .lb-next { right: 24px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; align-items: stretch; }
.price-grid > .reveal { display: flex; flex-direction: column; height: 100%; }
.price-card {
  background: var(--panel); border: 1px solid var(--line);
  padding: 40px 32px; display: flex; flex-direction: column;
  transition: transform .25s ease; height: 100%;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.hot { border-color: var(--gold); background: linear-gradient(180deg, #2e2820, #252018); position: relative; }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #17140f; font-family: 'Oswald'; text-transform: uppercase;
  font-size: 11px; letter-spacing: 0.12em; padding: 6px 16px;
}
.price-name { text-transform: uppercase; font-family: 'Oswald'; font-size: 20px; font-weight: 500; }
.price-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
.price-free { text-align: center; padding: 24px 32px; margin-top: 24px; border: 1px solid var(--line); background: var(--panel); }
.price-free svg { display: inline-block; margin-bottom: 10px; }
.price-free h3 { font-family: 'Oswald'; font-size: 18px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin: 0 0 8px; }
.price-free p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; max-width: 600px; margin-left: auto; margin-right: auto; }
.price-value { font-family: 'Oswald'; font-size: 54px; font-weight: 700; margin: 20px 0 4px; }
.price-value span { font-size: 24px; color: var(--gold); }
.price-features { list-style: none; padding: 0; margin: 24px 0; flex: 1 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.price-features li svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ---------- History ---------- */
.history { background: var(--bg-2); }
.timeline { margin-top: 56px; position: relative; padding-left: 0; }
.tl-item { display: grid; grid-template-columns: 140px 1fr; gap: 30px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl-year { font-family: 'Oswald'; color: var(--gold); font-size: 22px; font-weight: 600; text-transform: uppercase; }
.tl-text { color: var(--muted); line-height: 1.7; font-size: 16px; }
.history-download { text-align: center; padding: 32px 24px; border: 1px solid var(--line); background: var(--panel); margin-top: 40px; }
.history-download svg:first-child { display: block; margin: 0 auto 16px; }
.history-download h3 { font-family: 'Oswald'; font-size: 20px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin: 0 0 12px; }
.history-download-sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }

/* ---------- Flipbook ---------- */
.flipbook {
  max-width: 900px;
  margin: 40px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.flipbook__inner {
  position: relative;
  width: 100%;
  padding-top: 80%; /* 1:1 — квадратная страница */
  perspective: 1200px;
}
.flipbook__page {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  opacity: 0;
  transition: opacity .45s ease, transform .55s cubic-bezier(.4,.2,.2,1);
  border-bottom: 1px solid var(--line);
  transform-style: preserve-3d;
}
.flipbook__page.flipbook__page--current {
  opacity: 1;
  transform: rotateY(0);
  z-index: 10;
}
.flipbook__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.flipbook__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.flipbook__page-info {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}
.flipbook__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  cursor: pointer;
  border-radius: 2px;
  transition: all .2s ease;
  padding: 0;
}
.flipbook__btn:hover {
  background: var(--gold);
  color: #17140f;
  transform: translateY(-2px);
}
.flipbook__btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}
.flipbook__btn:disabled:hover {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
@media (max-width: 768px) {
  .flipbook__inner {
    padding-top: 90%; /* почти квадрат */
  }
}

/* ---------- Testimonials ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; align-items: stretch; }
.tst-grid > .reveal { display: flex; flex-direction: column; height: 100%; }
.tst-card { background: var(--panel); border: 1px solid var(--line); padding: 32px; height: 100%; display: flex; flex-direction: column; }
.tst-card p { font-family: 'PT Serif', serif; font-style: italic; line-height: 1.7; color: var(--cream); font-size: 16px; }
.tst-name { font-family: 'Oswald'; text-transform: uppercase; margin-top: 20px; font-weight: 500; }
.tst-role { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.tst-stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--gold); }

/* ---------- Booking ---------- */
.booking {
  position: relative; overflow: hidden;
}
.booking-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.booking::before { content:''; position: absolute; inset: 0; z-index: 1; background: rgba(30,27,22,0.85); }
.booking-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 1200px; margin: 0 auto; }
.booking-form { background: var(--panel); border: 1px solid var(--line); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: 'Oswald'; text-transform: uppercase; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--cream);
  padding: 13px 14px; border-radius: 2px; font-family: 'PT Sans'; font-size: 15px;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.booking-info h2 { margin-top: 12px; }
.booking-contacts { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.bc-row { display: flex; gap: 14px; align-items: center; color: var(--cream); }
.bc-row .ic { color: var(--gold); }
.bc-row small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }

/* ---------- FAQ ---------- */
.faq-wrap { margin-top: 48px; max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--cream); cursor: pointer;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: 'Oswald'; font-size: 19px; text-transform: uppercase; font-weight: 400; }
.faq-q:hover { color: var(--gold); }
.faq-q .ic { color: var(--gold); transition: transform .3s ease; flex-shrink: 0; }
.faq-q.open .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; color: var(--muted); line-height: 1.7; }
.faq-a.open { max-height: 240px; padding-bottom: 24px; }

/* ---------- Footer ---------- */
.footer { background: #1a1814; border-top: 1px solid var(--line); padding: 64px 24px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer h4 { text-transform: uppercase; font-size: 15px; letter-spacing: 0.1em; margin: 0 0 20px; color: var(--gold); }
.footer a, .footer p { color: var(--muted); text-decoration: none; display: block; margin-bottom: 12px; line-height: 1.5; transition: color .2s ease; background:none;border:none;cursor:pointer;text-align:left;padding:0;font-size:15px; font-family:'PT Sans'; }
.footer a:hover, .footer button:hover { color: var(--gold); }
.footer-bottom { max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); color: #6f6a5f; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px; z-index: 60;
  background: var(--bg-2); border-left: 1px solid var(--line); padding: 90px 30px 30px;
  transform: translateX(100%); transition: transform .35s ease; display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu button { color: var(--cream); background:none; border:none; text-align:left; cursor:pointer; font-family: 'Oswald'; text-transform: uppercase; font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 55; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .booking-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 20px; }
  .nav-links, .nav-desktop-cta { display: none; }
  .nav-burger { display: block; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line); }
  .adv-grid { grid-template-columns: 1fr; }
  .about-block, .about-block.reverse { grid-template-columns: 1fr; gap: 24px; }
  .about-block.reverse .about-img { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .tst-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 90px 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero p { font-size: 17px; }
}
