:root {
  --bg: #f6f7fb;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-soft: rgba(255, 255, 255, 0.7);
  --bg-blur: rgba(246, 247, 251, 0.55);

  --text: #10132f;
  --text-soft: rgba(16, 19, 47, 0.72);
  --muted: #4f5978;
  --muted-strong: #1f284a;

  /* Оновлений помаранчевий акцент */
  --accent: #ff8a00;
  --accent-strong: #e56f00;
  --accent-soft: rgba(255, 138, 0, 0.18);
  --accent-gradient: linear-gradient(135deg, #ffd29a 0%, #ff8a00 45%, #ff6a00 100%);

  --stroke: rgba(38, 49, 94, 0.12);
  --shadow-soft: 0 26px 68px rgba(16, 23, 45, 0.12);
  --shadow-float: 0 38px 90px rgba(16, 23, 45, 0.18);
  --shadow-strong: 0 46px 110px rgba(13, 18, 38, 0.24);

  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --transition: 0.5s cubic-bezier(0.22, 0.75, 0.22, 1);
  --container: max(320px, min(1200px, 100% - 72px));
  --header-y: 28px;
  --blur: 22px;

  color-scheme: light;
}

body.theme-dark {
  --bg: #0e0e0f;
  --bg-elevated: rgba(20, 20, 22, 0.92);
  --bg-soft: rgba(26, 26, 28, 0.86);
  --bg-blur: rgba(14, 14, 15, 0.75);

  --text: #f5f5f5;
  --text-soft: rgba(245, 245, 245, 0.72);
  --muted: #9a9a9a;
  --muted-strong: #e5e5e5;

  /* Акценти темної теми */
  --accent: #e0a23a;
  --accent-strong: #b87316;
  --accent-soft: rgba(224, 162, 58, 0.25);
  --accent-gradient: linear-gradient(135deg, #b87316 0%, #e0a23a 100%);

  --stroke: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.65);
  --shadow-float: 0 32px 80px rgba(0, 0, 0, 0.75);
  --shadow-strong: 0 40px 110px rgba(0, 0, 0, 0.85);

  color-scheme: dark;
}

@media (max-width: 1080px) {
  :root { --container: max(320px, min(1100px, 100% - 56px)); }
}
@media (max-width: 780px) {
  :root {
    --container: max(280px, min(680px, 100% - 36px));
    --header-y: 18px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

/* --- ANIMATED FLOW BACKGROUND --- */
.flow-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    radial-gradient(at 0% 0%, rgba(255, 138, 0, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 255, 255, 0.8) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(255, 138, 0, 0.05) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(246, 247, 251, 1) 0px, transparent 50%);
  background-size: 200% 200%;
  animation: bgFlow 15s ease infinite alternate;
}

body.theme-dark .flow-background {
  background: 
    radial-gradient(at 0% 0%, rgba(224, 162, 58, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(30, 30, 35, 1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(14, 14, 15, 1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(224, 162, 58, 0.05) 0px, transparent 50%);
  background-size: 200% 200%;
}

@keyframes bgFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: var(--container); margin-inline: auto; }

.section {
  padding-block: clamp(88px, 10vw, 140px);
  position: relative;
  z-index: 1;
}
.section--accent {
  background: linear-gradient(160deg, rgba(255, 138, 0, 0.08), rgba(255, 255, 255, 0.78) 90%);
  padding-block: clamp(90px, 11vw, 150px);
  overflow: hidden;
}
.section--accent::before {
  content: "";
  position: absolute;
  inset: -20% -10% -30% -10%;
  background: radial-gradient(90% 90% at 20% 20%, rgba(255, 138, 0, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
body.theme-dark .section--accent {
  background: linear-gradient(160deg, rgba(255, 167, 61, 0.12), rgba(15, 19, 33, 0.85) 95%);
}
body.theme-dark .section--accent::before {
  background: radial-gradient(90% 90% at 20% 20%, rgba(255, 167, 61, 0.18), transparent 70%);
}

/* HEADER Styles */
.site-header {
  top: var(--header-y);
  z-index: 40;
  position: sticky;
  display: grid;
  grid-template-columns: max-content 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-blur);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--stroke);
  transition: transform var(--transition), box-shadow var(--transition);
}
.site-header.is-compact {
  transform: translateY(-12px);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 14px;
  font-weight: 600;
}
.logo img { flex: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.16)); }
.logo__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.logo__word { letter-spacing: 0.16em; }
.logo__sub { font-size: 11px; font-weight: 500; letter-spacing: 0.36em; color: var(--text-soft); }

.primary-nav { display: flex; justify-content: center; align-items: center; gap: 30px; }
@media (max-width: 900px) { .primary-nav { display: none; } .burger { display: flex !important; } }

.navlink {
  position: relative;
  padding: 10px 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.3s ease;
}
.navlink:hover, .navlink.is-active { color: var(--text); }
.navlink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.navlink:hover::after, .navlink.is-active::after { transform: scaleX(1); }
.navlink--cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(229, 111, 0, 0.22);
}
.navlink--cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(229, 111, 0, 0.28); }
.navlink--cta::after { display: none; }

/* THEME & LANG SWITCHES */
.header-tools { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.theme-toggle {
  width: 54px; height: 28px; border-radius: 999px;
  border: 1px solid rgba(212, 138, 29, 0.35);
  background: linear-gradient(135deg, #ffd29a 0%, #ff8a00 100%);
  position: relative; cursor: pointer;
  box-shadow: 0 8px 22px rgba(212, 138, 29, 0.35);
}
.theme-toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
body.theme-dark .theme-toggle {
  background: linear-gradient(135deg, #b87316 0%, #e0a23a 100%);
  border-color: rgba(224, 162, 58, 0.45);
}
body.theme-dark .theme-toggle::after { transform: translateX(26px); background: #1c1c1c; }

.theme-toggle__icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.theme-toggle__icon.sun { opacity: 1; left: 6px; } 
.theme-toggle__icon.moon { right: 6px; }
body.theme-dark .theme-toggle__icon.sun { opacity: 0; }
body.theme-dark .theme-toggle__icon.moon { opacity: 1; }

.lang-switch {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 0 0 1px rgba(229, 111, 0, 0.16);
}
body.theme-dark .lang-switch { background: rgba(15, 19, 33, 0.72); }
.lang-switch__btn {
  border: none; background: transparent; color: var(--muted-strong);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.lang-switch__btn.is-active {
  background: rgba(255, 138, 0, 0.18); color: var(--accent-strong);
}

/* BURGER MENU */
.burger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--stroke); background: var(--bg-soft);
  align-items: center; justify-content: center; cursor: pointer;
  position: relative; z-index: 50;
}
.burger span {
  width: 20px; height: 2px; background: var(--text); position: absolute;
  transition: 0.3s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger.active span:nth-child(1) { transform: rotate(45deg); top: 21px; }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg); top: 21px; }

/* OFFCANVAS MOBILE */
.offcanvas {
  position: fixed; inset: 0 auto 0 0; width: 85vw; max-width: 320px;
  background: var(--bg-elevated); z-index: 49; transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 40px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
}
.offcanvas.open { transform: translateX(0); }
.offcanvas__inner { padding: 80px 24px 40px; height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.offcanvas__link {
  font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--stroke);
  color: var(--text);
}
.offcanvas__overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 48;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.offcanvas__overlay.visible { opacity: 1; pointer-events: auto; }

/* HERO SECTION */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; text-align: center; } .hero__cta, .hero__stats { justify-content: center; } }
.hero__title {
  font-size: clamp(48px, 8vw, 84px); line-height: 1; font-weight: 700;
  margin-bottom: 16px; text-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.hero__lead { font-size: 18px; color: var(--text-soft); margin-bottom: 32px; max-width: 540px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.btn {
  padding: 14px 28px; border-radius: 999px; font-weight: 600; text-transform: uppercase;
  font-size: 13px; letter-spacing: 0.1em; cursor: pointer; transition: transform 0.2s;
}
.btn--solid { background: var(--accent-gradient); color: #fff; box-shadow: 0 10px 20px rgba(229, 111, 0, 0.25); }
.btn--ghost { background: transparent; border: 1px solid var(--accent); color: var(--accent-strong); }
.hero__stats { display: flex; gap: 24px; flex-wrap: wrap; }
.hero__stats li {
  background: var(--bg-soft); padding: 16px 20px; border-radius: var(--radius-md);
  border: 1px solid var(--stroke); backdrop-filter: blur(10px);
}
.stat__value { display: block; font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat__label { font-size: 12px; text-transform: uppercase; color: var(--muted); }

.hero__visual { position: relative; }
.hero__image {
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-strong);
  transform: rotate(-2deg); transition: transform 0.5s;
}
.hero__image:hover { transform: rotate(0deg) scale(1.02); }
.hero__ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--accent); opacity: 0.3;
  z-index: -1;
}
.hero__ring--outer { width: 120%; height: 120%; top: -10%; left: -10%; animation: spin 20s linear infinite; }
.hero__ring--inner { width: 110%; height: 110%; top: -5%; left: -5%; border-style: dashed; animation: spin 30s reverse linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* FLOATING CARDS */
.floating-card {
  position: absolute; background: var(--bg-elevated); padding: 20px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-float);
  max-width: 240px; font-size: 13px; backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
}
.floating-card--accent { top: 10%; right: -20px; }
.floating-card--outline { bottom: 10%; left: -20px; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: 10px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px;
}

/* SECTIONS COMMON */
.eyebrow {
  color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 12px; display: block; margin-bottom: 12px;
}
.section__header { margin-bottom: 48px; }
.section__header--center { text-align: center; max-width: 700px; margin-inline: auto; }
.section__title { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }

/* FEATURES GRID */
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .grid-two { grid-template-columns: 1fr; } }
.feature-card {
  padding: 30px; background: var(--bg-elevated); border-radius: var(--radius-lg);
  border: 1px solid var(--stroke); transition: 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-float); }
.feature-card__number { font-size: 40px; font-weight: 800; color: var(--stroke); line-height: 1; margin-bottom: 16px; display: block; }

/* GALLERY GRID */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff;
  font-weight: 500;
}

/* REVIEWS SLIDER */
.reviews-slider-container {
  overflow: hidden; padding: 20px 0; position: relative;
}
.reviews-track {
  display: flex; gap: 20px; transition: transform 0.5s ease-out;
}
.review-slide {
  min-width: 100%; display: none; /* JS toggles active */
  animation: fadeIn 0.5s;
}
.review-slide.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--stroke); transition: 0.3s; }
.dot.active { background: var(--accent); transform: scale(1.2); }

/* FOOTER */
.footer {
  background: var(--bg-elevated); padding: 60px 0 20px; border-top: 1px solid var(--stroke);
  font-size: 14px;
}
.footer__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center;
}
@media (max-width: 768px) { .footer__inner { grid-template-columns: 1fr; text-align: center; } .footer__links { justify-content: center; } }
.footer__links { display: flex; gap: 24px; }
.footer__links a:hover { color: var(--accent); }

/* STICKY BOOK BTN */
.sticky-book {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--accent-gradient); color: #fff; padding: 14px 32px;
  border-radius: 999px; box-shadow: 0 20px 40px rgba(229, 111, 0, 0.4);
  font-weight: 700; text-transform: uppercase; z-index: 90;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sticky-book.visible { transform: translateX(-50%) translateY(0); }

/* ANIMATIONS */
.reveal-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.pulse-anim { animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 138, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 138, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 0, 0); }
}

/* MODULE CARD (IFRAME) */
.module-card {
  width: 100%; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); overflow: hidden; padding: 20px;
}
.booking-container iframe { width: 100%; min-height: 600px; border: none; }