/* =========================================================
   LumiSpace — brand stylesheet
   Lumiverse identity: amber sun #FFBD59, slate #556677,
   blue-gray #8899AA. Montserrat (display) + Open Sans (body).
   Theme: light, airy, luminous.
   ========================================================= */

/* ---------- Armenian script support ----------
   Google's hosted Montserrat/Open Sans do not include Armenian glyphs.
   These @font-face rules reuse the family name 'Montserrat' with
   unicode-range scoped to the Armenian block (U+0530–058F) — the browser
   transparently picks these local files only when it hits an Armenian
   character, so EN/RU visitors never download them. Font files are the
   brand's own Montserrat-Armenian extension (see public/assets/fonts/). */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/Montserratarm-Light.woff2') format('woff2');
  unicode-range: U+0530-058F, U+FB13-FB17;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Montserratarm-Regular.woff2') format('woff2');
  unicode-range: U+0530-058F, U+FB13-FB17;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Montserratarm-Medium.woff2') format('woff2');
  unicode-range: U+0530-058F, U+FB13-FB17;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Montserratarm-SemiBold.woff2') format('woff2');
  unicode-range: U+0530-058F, U+FB13-FB17;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Montserratarm-Bold.woff2') format('woff2');
  unicode-range: U+0530-058F, U+FB13-FB17;
}

:root {
  /* brand */
  --sun: #FFBD59;
  --sun-soft: #FFD98A;
  --sun-deep: #F5A733;
  --slate: #556677;      /* headings / strong text (5.4:1 on white) */
  --ink: #3E4C5A;        /* darkest text (7:1) */
  --steel: #627385;      /* secondary / eyebrow — 4.6:1+ on every light surface (AA) */
  --steel-2: #A9B6C4;

  /* surfaces */
  --bg: #FFFDF9;
  --bg-warm: #FFF8EC;
  --surface: #FFFFFF;
  --dark: #3B4753;       /* dark community / footer */
  --dark-2: #333E49;

  --border: #EFE6D5;
  --border-cool: #E4E9EF;

  /* type scale — Noto Sans Armenian covers body copy in hy (Open Sans has
     no Armenian glyphs; brand didn't provide an Armenian body face) */
  --f-display: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
  --f-body: 'Open Sans', 'Noto Sans Armenian', system-ui, -apple-system, Segoe UI, sans-serif;

  /* rhythm */
  --maxw: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(85, 102, 119, 0.06);
  --shadow: 0 18px 48px -24px rgba(85, 102, 119, 0.28);
  --shadow-warm: 0 24px 60px -28px rgba(245, 167, 51, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__sun {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, var(--sun-soft), var(--sun) 55%, var(--sun-deep));
  box-shadow: 0 0 0 6px rgba(255, 189, 89, 0.14);
  flex: 0 0 auto;
}
.brand__word {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: 0.34em;
  font-size: 1.16rem;
  color: var(--slate);
  padding-left: 0.34em; /* balance the tracking */
}
.brand__word--light { color: #EAF0F6; }
.brand--footer .brand__sun { width: 30px; height: 30px; }

/* ---------- buttons ---------- */
.btn {
  --btn-pad-y: 12px; --btn-pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: normal; text-align: center; min-height: 44px;
}
.btn--lg { --btn-pad-y: 15px; --btn-pad-x: 30px; font-size: 1rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--sun-soft), var(--sun) 45%, var(--sun-deep));
  color: #4a3410; box-shadow: var(--shadow-warm);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 28px 64px -26px rgba(245, 167, 51, 0.6); }
.btn--ghost {
  background: transparent; color: var(--slate); border-color: var(--border-cool);
}
.btn--ghost:hover { border-color: var(--slate); color: var(--ink); transform: translateY(-2px); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 30px -22px rgba(85,102,119,0.4); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__links { display: flex; align-items: center; gap: 18px; }
/* Armenian and Russian labels run longer; a tighter gap keeps the full bar on desktop */
@media (min-width: 721px) {
  html:is(:lang(hy), :lang(ru)) .nav:not(.nav--collapsed) .nav__links { gap: 12px; }
}
.nav__links > a:not(.btn) {
  font-family: var(--f-display); font-weight: 500; font-size: 0.95rem; color: var(--slate);
  position: relative; padding: 6px 0; white-space: nowrap; transition: color 0.2s var(--ease);
}
.nav__links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--sun-deep); transition: width 0.25s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__links > a:not(.btn):hover::after { width: 100%; }
.nav__cta { margin-left: 6px; white-space: nowrap; }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; cursor: pointer; border-radius: 10px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--slate); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Collapsed nav: when the links don't fit beside the logo (script.js measures
   this per language and width), the bar shows the menu button and the links
   drop down as a sheet, exactly like the phone menu in the ≤720px query. */
.brand { flex-shrink: 0; margin-right: 24px; }
.nav--collapsed .nav__toggle { display: flex; }
.nav--collapsed .nav__links {
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; align-items: stretch; gap: 4px;
  background: rgba(255, 253, 249, 0.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 16px 24px 26px; border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -28px rgba(85,102,119,0.5);
  transform: translateY(-140%); transition: transform 0.34s var(--ease); z-index: 90;
}
.nav--collapsed .nav__links.is-open { transform: translateY(0); }
.nav--collapsed .nav__links > a:not(.btn) { padding: 13px 6px; border-bottom: 1px solid var(--border); }
.nav--collapsed .nav__links > a:not(.btn)::after { display: none; }
.nav--collapsed .lang { align-self: flex-start; margin: 14px 0 2px; }
.nav--collapsed .lang__menu { right: auto; left: 0; transform-origin: top left; }
.nav--collapsed .nav__cta { margin: 12px 0 0; align-self: flex-start; }

/* ---------- LANGUAGE SWITCH (globe + dropdown) ---------- */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.85rem; color: var(--slate);
  background: transparent; border: 1.5px solid var(--border-cool); border-radius: 999px;
  padding: 8px 12px; min-height: 40px; cursor: pointer; line-height: 1;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang__toggle:hover { border-color: var(--slate); color: var(--ink); }
.lang__globe { width: 17px; height: 17px; color: var(--sun-deep); flex: 0 0 auto; }
.lang__code { letter-spacing: 0.02em; min-width: 1.7em; text-align: left; }
.lang__chev { width: 14px; height: 14px; color: var(--steel); transition: transform 0.25s var(--ease); }
.lang.is-open .lang__toggle { border-color: var(--sun); }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; min-width: 168px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transform-origin: top right; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  font-family: var(--f-body); font-weight: 500; font-size: 0.95rem; color: var(--slate);
  background: transparent; border: 0; border-radius: 9px; padding: 11px 13px; cursor: pointer;
  text-align: left; transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.lang__opt:hover { background: var(--bg-warm); color: var(--ink); }
.lang__opt.is-active { color: var(--ink); font-weight: 600; }
.lang__opt.is-active::after {
  content: ''; width: 16px; height: 9px; flex: 0 0 auto;
  border-left: 2px solid var(--sun-deep); border-bottom: 2px solid var(--sun-deep);
  transform: rotate(-45deg) translateY(-2px); border-bottom-left-radius: 2px;
}

/* ---------- HERO ---------- */
.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background:
    radial-gradient(60% 60% at 62% 12%, rgba(255, 189, 89, 0.30), transparent 62%),
    radial-gradient(50% 50% at 20% 6%, rgba(136, 153, 170, 0.16), transparent 60%);
  z-index: 0; pointer-events: none;
}
.hero__sun {
  position: absolute; top: 46px; right: max(4vw, calc((100vw - var(--maxw)) / 2 + 12px));
  width: 200px; height: 200px; z-index: 0; pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(245, 167, 51, 0.35));
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero__inner { position: relative; z-index: 2; max-width: 760px; padding-top: 18px; }
.eyebrow {
  font-family: var(--f-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel);
  margin-bottom: 20px;
}
.eyebrow--amber { color: var(--sun-deep); }
.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 24px;
}
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--slate); max-width: 620px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  margin-top: 64px; padding: 30px 32px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats li { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.stats__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--ink); letter-spacing: -0.02em; }
.stats__num em { font-style: normal; color: var(--sun-deep); font-size: 0.62em; margin-left: 1px; }
.stats__label { font-size: 0.82rem; color: var(--steel); line-height: 1.35; }

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; position: relative; }
.section--warm { background: linear-gradient(180deg, var(--bg-warm), #FFFBF3); }
.section__head, .about__head { max-width: 720px; margin-bottom: 54px; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 18px; }
.section__title--light { color: #F3F7FB; }
.section__lede { font-size: 1.1rem; color: var(--slate); }
.section__lede--light { color: #C8D3DE; }
.section__lede strong { color: var(--ink); font-weight: 600; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sun); }
.feature__icon {
  display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center;
  border-radius: 14px; margin-bottom: 22px; color: var(--sun-deep);
  background: linear-gradient(140deg, rgba(255,189,89,0.16), rgba(255,189,89,0.05));
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.28rem; margin-bottom: 10px; }
.feature p { font-size: 0.98rem; color: var(--slate); }

/* ---------- OPENING OFFER (inside membership) ---------- */
.offer {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px;
  margin-bottom: 30px; padding: 30px 34px 30px 38px;
  background:
    linear-gradient(120deg, #FFF7E8 0%, #FFFDF8 58%),
    var(--surface);
  border: 1px solid var(--sun);
  border-radius: var(--radius);
  box-shadow: var(--shadow-warm);
}
.offer::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--sun-soft), var(--sun) 45%, var(--sun-deep));
}
.offer__glow {
  position: absolute; top: -60%; right: -4%; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,189,89,0.30), transparent 62%);
  pointer-events: none; z-index: 0;
}
/* raise ONLY the real content — NOT .offer__glow, which must stay absolute
   (a relative glow would become a grid item and break the column layout) */
.offer__body, .offer__price, .offer__action { position: relative; z-index: 1; }
.offer__body { max-width: 460px; }
.offer__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: var(--f-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun-deep);
}
.offer__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, var(--sun-soft), var(--sun-deep));
  box-shadow: 0 0 0 0 rgba(245,167,51,0.55); animation: offerPulse 2.2s ease-out infinite;
}
@keyframes offerPulse {
  0% { box-shadow: 0 0 0 0 rgba(245,167,51,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(245,167,51,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,167,51,0); }
}
.offer__title { font-size: 1.55rem; line-height: 1.2; margin-bottom: 8px; }
.offer__desc { font-size: 0.98rem; color: var(--slate); margin: 0; }
.offer__price { text-align: right; }
.offer__price-row { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; }
.offer__old { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; color: var(--steel); }
.offer__old s { text-decoration-thickness: 1.5px; }
.offer__new {
  font-family: var(--f-display); font-weight: 700; font-size: 2.5rem; line-height: 1;
  color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.offer__cur { font-size: 0.85rem; font-weight: 600; color: var(--sun-deep); letter-spacing: 0.02em; }
.offer__unit { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--steel); }
.offer__action { display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
.offer__cta { white-space: nowrap; }
.offer__note { font-size: 0.76rem; color: var(--steel); letter-spacing: 0.01em; }
.offer.is-hidden { display: none; }

/* ---------- PLANS ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--featured {
  border-color: var(--sun); box-shadow: var(--shadow-warm);
  background: linear-gradient(180deg, #FFFDF7, #FFFFFF);
}
.plan__badge {
  position: absolute; top: -12px; left: 26px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--sun), var(--sun-deep)); color: #4a3410;
  padding: 6px 14px; border-radius: 999px;
}
.plan__badge--muted { background: var(--surface); color: var(--slate); border: 1px solid var(--border-cool); }
.plan__name { font-size: 1.05rem; font-weight: 600; color: var(--slate); letter-spacing: 0.01em; margin-bottom: 14px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amt { font-family: var(--f-display); font-weight: 700; font-size: 2.2rem; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan__cur { font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; color: var(--steel); }
.plan__per { font-size: 0.85rem; color: var(--steel); margin-bottom: 20px; }
.plan__list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; font-size: 0.94rem; color: var(--slate); }
.plan__list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 15px; height: 9px;
  border-left: 2px solid var(--sun-deep); border-bottom: 2px solid var(--sun-deep);
  transform: rotate(-45deg); border-bottom-left-radius: 2px;
}
.plan__cta { width: 100%; }
.plan__ctas { display: flex; flex-direction: column; gap: 10px; }

/* group-rate ladder inside the monthly card — per-person price drops with group size */
.plan__tiers {
  margin: 0 0 22px; padding: 16px 18px;
  background: rgba(255, 189, 89, 0.09); border: 1px solid var(--border-cool); border-radius: 14px;
}
.plan__tiers-title {
  font-family: var(--f-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 10px;
}
.plan__tier { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.plan__tier + .plan__tier { margin-top: 8px; }
.plan__tier-label { color: var(--slate); }
.plan__tier-price { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan__tier-save { font-size: 0.74rem; font-weight: 600; color: var(--sun-deep); letter-spacing: 0.02em; }
.plans__note { text-align: center; font-size: 0.88rem; color: var(--steel); margin-top: 30px; }

/* ---------- AMENITIES ---------- */
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 26px; }
.amenities li {
  display: flex; align-items: center; gap: 15px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.98rem; color: var(--slate); box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.amenities li:hover { border-color: var(--sun); transform: translateX(3px); }
.amenity__ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--sun-deep);
  background: linear-gradient(140deg, rgba(255,189,89,0.16), rgba(255,189,89,0.05));
}
.amenity__ic svg { width: 21px; height: 21px; }

/* ---------- GUEST INVITE CTA (inside #included) ---------- */
.guest-cta {
  margin-top: 26px;
  display: flex; align-items: center; gap: 20px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 189, 89, 0.45); border-radius: var(--radius);
  background: linear-gradient(120deg, var(--bg-warm), rgba(255, 255, 255, 0.9) 62%);
  box-shadow: var(--shadow-sm);
}
.guest-cta__ic {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--sun-deep);
  background: linear-gradient(140deg, rgba(255,189,89,0.24), rgba(255,189,89,0.07));
}
.guest-cta__ic svg { width: 23px; height: 23px; }
.guest-cta__text { flex: 1 1 auto; }
.guest-cta__title {
  font-family: var(--f-display); font-weight: 700; font-size: 1.08rem;
  color: var(--slate); margin: 0 0 4px;
}
.guest-cta__copy { font-size: 0.95rem; color: var(--slate); margin: 0; }
.guest-cta__btn { flex: 0 0 auto; }
@media (max-width: 620px) {
  .guest-cta { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .guest-cta__btn { width: 100%; }
}

/* ---------- COMMUNITY (dark) ---------- */
.section--dark { background: var(--dark); overflow: hidden; }
.community__glow {
  position: absolute; top: -30%; right: -10%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,189,89,0.24), transparent 62%); pointer-events: none;
}
.community { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.community__list { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.community__list li { position: relative; padding-left: 30px; color: #C8D3DE; font-size: 1rem; }
.community__list li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, var(--sun-soft), var(--sun-deep));
}
.community__quote {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid var(--sun); border-radius: var(--radius);
  padding: 34px 32px;
}
.community__quote p { font-family: var(--f-display); font-weight: 300; font-size: 1.3rem; line-height: 1.5; color: #F3F7FB; margin-bottom: 16px; }
.community__quote cite { font-style: normal; font-size: 0.88rem; color: var(--sun); letter-spacing: 0.02em; }

/* ---------- SPACES ---------- */
.spaces { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.spaces__col {
  min-width: 0; /* let the grid track shrink below the rate-table's min-width instead
                   of stretching the column — the table scrolls internally instead */
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
}
.spaces__h { font-size: 1.35rem; margin-bottom: 4px; }
.spaces__sub { font-size: 0.95rem; color: var(--steel); margin-bottom: 22px; }
.rate-table__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th, .rate-table td { text-align: left; padding: 13px 8px; font-size: 0.95rem; white-space: nowrap; }
.rate-table thead th { font-family: var(--f-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); border-bottom: 1.5px solid var(--border); }
.rate-table tbody tr { border-bottom: 1px solid var(--border); }
.rate-table tbody tr:last-child { border-bottom: 0; }
.rate-table td:first-child { color: var(--ink); font-weight: 500; }
.rate-table td:not(:first-child) { color: var(--slate); font-variant-numeric: tabular-nums; }
.spaces__extra { margin-top: 18px; font-size: 0.9rem; color: var(--steel); }

/* ---------- CTA ---------- */
.cta { text-align: center; overflow: hidden; padding: 104px 0; }
.cta__sun {
  position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, rgba(255,217,138,0.55), rgba(255,189,89,0.28) 45%, transparent 68%);
  pointer-events: none; z-index: 0;
}
.cta__inner { position: relative; z-index: 2; max-width: 680px; }
.cta__title { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 18px; }
.cta__lede { font-size: 1.15rem; color: var(--slate); margin-bottom: 34px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__meta { margin-top: 28px; font-size: 0.95rem; color: var(--steel); }
.cta__meta a { color: var(--sun-deep); font-weight: 600; }

/* ---------- TELEGRAM BUTTON ---------- */
.btn-telegram {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.98rem;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  background: #229ED9; color: #fff; border: 1.5px solid transparent;
  box-shadow: 0 14px 30px -16px rgba(34, 158, 217, 0.8);
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.btn-telegram:hover { transform: translateY(-2px); background: #1e8ec2; box-shadow: 0 20px 40px -18px rgba(34, 158, 217, 0.9); }
.btn-telegram svg { width: 20px; height: 20px; }
.btn-telegram--light { background: #fff; color: #229ED9; border-color: #cfeaf7; box-shadow: none; margin-top: 20px; }
.btn-telegram--light:hover { background: #f2fbff; }

/* ---------- MODAL / REGISTRATION ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  /* script.js opens the modal in the top layer (popover="manual"), so its
     containing block is always the viewport. These undo the UA popover box. */
  width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; border: 0; background: transparent; color: inherit; overflow: visible;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(45, 55, 66, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: modalFade 0.25s var(--ease);
}
.modal__dialog {
  position: relative; z-index: 1; width: 100%; max-width: 480px;
  max-height: calc(100dvh - 40px); overflow-y: auto;
  background: var(--surface); border-radius: 22px; padding: 34px 32px 30px;
  box-shadow: 0 40px 90px -30px rgba(45, 55, 66, 0.5);
  animation: modalPop 0.3s var(--ease);
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--bg-warm); color: var(--slate); font-size: 1.5rem; line-height: 1;
  cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.modal__close:hover { background: var(--border); color: var(--ink); }
.modal__head { margin-bottom: 22px; }
.modal__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: var(--f-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun-deep);
}
.modal__title { font-size: 1.6rem; margin-bottom: 8px; }
.modal__sub { font-size: 0.98rem; color: var(--slate); margin: 0; }

.reg-form { display: flex; flex-direction: column; gap: 15px; }
/* `display:flex/grid` would otherwise beat the [hidden] UA rule — force it */
.reg-form[hidden], .reg-success[hidden], .reg-error[hidden], .reg-field[hidden] { display: none; }
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.reg-field { display: flex; flex-direction: column; gap: 6px; }
.reg-field__label { font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; color: var(--slate); }
.reg-field__label em { font-style: normal; font-weight: 400; color: var(--steel); }
.reg-field input, .reg-field select, .reg-field textarea {
  font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--border-cool); border-radius: 12px;
  background: #fff; width: 100%; min-height: 46px; transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.reg-field textarea { resize: vertical; min-height: 62px; }
/* Safari/iOS renders bare date inputs with their own metrics — match the rest */
.reg-field input[type="date"] { -webkit-appearance: none; appearance: none; line-height: 1.2; }
.reg-field input:focus, .reg-field select:focus, .reg-field textarea:focus {
  outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 189, 89, 0.25);
}
.reg-field input.is-invalid, .reg-field select.is-invalid { border-color: #E0654F; box-shadow: 0 0 0 3px rgba(224, 101, 79, 0.18); }
.reg-error { margin: 2px 0 0; font-size: 0.86rem; color: #C6442D; font-weight: 500; }
.reg-submit { width: 100%; margin-top: 4px; }
.reg-submit[disabled] { opacity: 0.6; cursor: progress; }
.reg-fineprint { text-align: center; font-size: 0.78rem; color: var(--steel); margin: 0; }

.reg-success { text-align: center; padding: 12px 4px 6px; }
.reg-success__mark {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
}
.reg-success__mark svg { width: 30px; height: 30px; }
.reg-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.reg-success p { color: var(--slate); margin: 0 0 4px; }

/* ---------- AMPHITHEATRE REQUEST ----------
   Events are requested, never booked online. The estimate panel shows its own
   arithmetic ("3 × 40,000 AMD") so the 4-for-3 rule is visible, not just stated. */
.spaces__request {
  margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.spaces__ctanote { font-size: 0.86rem; color: var(--steel); margin: 0; }
.amph-estimate {
  background: var(--bg-warm); border: 1.5px dashed var(--sun-soft); border-radius: 14px;
  padding: 14px 16px 12px;
}
.amph-estimate__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.amph-estimate__label {
  font-family: var(--f-display); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel);
}
.amph-estimate__math { font-size: 0.85rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.amph-estimate__value {
  font-family: var(--f-display); font-weight: 700; font-size: 1.55rem; color: var(--ink);
  font-variant-numeric: tabular-nums; margin: 4px 0 8px; overflow-wrap: anywhere;
}
.amph-estimate__value.is-pending, .amph-estimate__value.is-quote { font-size: 1rem; font-weight: 600; color: var(--slate); }
.amph-estimate__fine { font-size: 0.8rem; line-height: 1.45; color: var(--steel); margin: 0; }
@media (max-width: 720px) {
  .spaces__cta { width: 100%; }
}

/* ---------- TEAMS (after #included) ----------
   The three group rates sit in one "ticket" strip split by dashed perforations. */
.section--teams { padding-top: 0; }
.teams {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr;
  grid-template-areas: "copy rates" "copy action";
  gap: 26px 52px; align-items: center;
  padding: 44px 48px;
  border: 1px solid rgba(255, 189, 89, 0.45); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-warm), var(--surface) 72%);
  box-shadow: var(--shadow-warm);
}
.teams::before {
  content: ''; position: absolute; top: -110px; right: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 217, 138, 0.55), rgba(255, 189, 89, 0) 68%);
  pointer-events: none;
}
.teams__copy { grid-area: copy; position: relative; }
.teams__copy .section__title { margin-bottom: 12px; }
.teams__rates {
  grid-area: rates; position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px dashed rgba(245, 167, 51, 0.6); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
}
.teams__rate { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; min-width: 0; }
.teams__rate:nth-child(2) { border-left: 1px dashed rgba(245, 167, 51, 0.6); }
/* 30+ runs as one row under the two prices, so a long "by agreement" never squeezes */
.teams__rate:nth-child(3) {
  grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px;
  padding-top: 14px; padding-bottom: 14px; border-top: 1px dashed rgba(245, 167, 51, 0.6);
}
.teams__amt {
  font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; line-height: 1.2;
  color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.teams__amt em { font-style: normal; font-size: 0.72rem; font-weight: 600; color: var(--steel); letter-spacing: 0.02em; }
.teams__amt--word { font-size: 1.05rem; white-space: normal; }
.teams__who { font-family: var(--f-display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.teams__per { font-size: 0.8rem; color: var(--steel); line-height: 1.35; }
.teams__action { grid-area: action; position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.teams__note { flex: 1 1 200px; margin: 0; font-size: 0.85rem; color: var(--steel); }

/* ---------- TESTIMONIALS (hidden until script.js has quotes) ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote {
  margin: 0; padding: 30px 28px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.quote::before {
  content: '\201C'; display: block; height: 34px;
  font-family: var(--f-display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--sun);
}
.quote p { font-size: 1.02rem; color: var(--ink); margin-bottom: 18px; }
.quote figcaption strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; color: var(--slate); }
.quote figcaption span { font-size: 0.85rem; color: var(--steel); }

/* ---------- MEMBERS' CORNER (dark, "back of house") ---------- */
.section--members { overflow: hidden; }
.section--members::before {
  content: ''; position: absolute; bottom: -35%; left: -12%; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 189, 89, 0.18), transparent 62%); pointer-events: none;
}
.section--members .container { position: relative; z-index: 2; }
.member-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member-tile {
  font: inherit; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto;
  grid-template-areas: "ic t go" "ic d go";
  column-gap: 16px; row-gap: 2px; align-items: center;
  padding: 22px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #C8D3DE;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.member-tile[hidden] { display: none; }
/* until a signed-in member gets the videos tile, the last row holds two tiles: let them share it */
@media (min-width: 1025px) {
  .member-tiles { grid-template-columns: repeat(6, 1fr); }
  .member-tile { grid-column: span 2; }
  .member-tiles:has(> [data-members-demo][hidden]) > .member-tile:nth-child(n+5) { grid-column: span 3; }
}
.member-tile:hover { border-color: var(--sun); background: rgba(255, 255, 255, 0.08); }
.member-tile:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; border-color: var(--sun); }
.member-tile__ic {
  grid-area: ic; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sun); background: rgba(255, 189, 89, 0.14);
}
.member-tile__ic svg { width: 22px; height: 22px; }
.member-tile__t { grid-area: t; align-self: end; font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: #F3F7FB; line-height: 1.3; }
.member-tile__d { grid-area: d; align-self: start; font-size: 0.88rem; color: #B9C5D1; line-height: 1.45; }
.member-tile__go { grid-area: go; width: 18px; height: 18px; color: var(--sun); transition: transform 0.25s var(--ease); }
.member-tile:hover .member-tile__go { transform: translateX(3px); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__head .section__title { margin-bottom: 14px; }
.faq__head a, .faq__a a {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.faq__head a:hover, .faq__a a:hover { color: var(--sun-deep); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: border-color 0.25s var(--ease);
}
.faq__item[open] { border-color: rgba(245, 167, 51, 0.7); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: var(--radius-sm);
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.35;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline: 2px solid var(--sun-deep); outline-offset: 2px; }
.faq__icon { position: relative; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 189, 89, 0.2); }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; border-radius: 2px;
  background: var(--sun-deep); transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 22px 20px; font-size: 0.97rem; color: var(--slate); }

@media (max-width: 1024px) {
  .teams { grid-template-columns: 1fr; grid-template-areas: "copy" "rates" "action"; padding: 38px 34px; }
  .member-tiles { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__head { position: static; }
}
@media (max-width: 720px) {
  .teams { padding: 30px 22px; gap: 22px; }
  .teams__rates { grid-template-columns: 1fr; }
  .teams__rate:nth-child(2) { border-left: 0; border-top: 1px dashed rgba(245, 167, 51, 0.6); }
  .teams__cta { width: 100%; }
  .member-tiles { grid-template-columns: 1fr; }
  .faq__q { padding: 16px 18px; }
  .faq__a { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .member-tile, .member-tile__go, .faq__item, .faq__icon::before, .faq__icon::after { transition: none; }
  .member-tile:hover .member-tile__go { transform: none; }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--dark-2); color: #C8D3DE; padding: 66px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.footer__tag { margin: 20px 0 24px; font-size: 0.95rem; color: #A9B6C4; max-width: 340px; }
.footer__partof { display: inline-flex; align-items: center; gap: 12px; opacity: 0.85; transition: opacity 0.2s var(--ease); }
.footer__partof:hover { opacity: 1; }
.footer__partof span { font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #C8D3DE; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer__nav h4 { font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #EAF0F6; margin-bottom: 16px; }
.footer__nav a, .footer__loc { display: block; font-size: 0.94rem; color: #A9B6C4; margin-bottom: 11px; transition: color 0.2s var(--ease); }
.footer__nav a:hover { color: var(--sun); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.84rem; color: #8794A2;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .stats li:nth-child(4), .stats li:nth-child(5) { grid-column: span 1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .community { grid-template-columns: 1fr; gap: 40px; }
  .hero__sun { width: 150px; height: 150px; top: 30px; }
  /* offer: price + action drop below the copy, side by side */
  .offer { grid-template-columns: 1fr auto; gap: 20px 28px; }
  .offer__body { grid-column: 1 / -1; max-width: none; }
  .offer__price { text-align: left; }
  .offer__price-row { justify-content: flex-start; }
  .offer__action { align-items: flex-end; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 60px 0 48px; }
  .hero__sun { display: none; }
  /* offer stacks fully on phones */
  .offer { grid-template-columns: 1fr; gap: 22px; padding: 28px 22px 28px 26px; text-align: left; }
  .offer__title { font-size: 1.35rem; }
  .offer__price { text-align: left; }
  .offer__price-row { justify-content: flex-start; }
  .offer__new { font-size: 2.1rem; }
  .offer__action { align-items: stretch; text-align: center; }
  .offer__note { text-align: center; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255, 253, 249, 0.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 16px 24px 26px; border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -28px rgba(85,102,119,0.5);
    transform: translateY(-140%); transition: transform 0.34s var(--ease); z-index: 90;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a:not(.btn) { padding: 13px 6px; border-bottom: 1px solid var(--border); }
  .nav__links > a:not(.btn)::after { display: none; }
  /* scoped to the landing drawer — the booking header (.bnav) keeps its pill
     inline at the right edge, so a left-anchored menu would overflow the phone */
  .nav .lang { align-self: flex-start; margin: 14px 0 2px; }
  .nav .lang__menu { right: auto; left: 0; transform-origin: top left; }
  .nav__cta { margin: 12px 0 0; }
  .stats { grid-template-columns: 1fr 1fr; padding: 24px; }
  .feature-grid, .plans, .amenities, .spaces { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__nav { grid-template-columns: 1fr; gap: 24px; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 auto; }
  .reg-row { grid-template-columns: 1fr; }
  .modal__dialog { padding: 30px 22px 26px; border-radius: 18px; }
  /* rate tables reflow to fit the card — no internal horizontal scroll on phones.
     table-layout:fixed forces cells to their allotted width so long Armenian
     labels wrap at spaces instead of pushing the table wider than the card. */
  .rate-table { table-layout: fixed; }
  .rate-table th, .rate-table td { white-space: normal; overflow-wrap: break-word; padding: 11px 5px; font-size: 0.85rem; vertical-align: top; }
  .rate-table th:first-child, .rate-table td:first-child { width: 44%; }
  .rate-table thead th { font-size: 0.68rem; letter-spacing: 0.02em; }
  .rate-table td:not(:first-child), .rate-table th:not(:first-child) { text-align: right; }
  .spaces__col { padding: 28px 22px; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .brand__word { font-size: 1.02rem; letter-spacing: 0.26em; }
  /* extra-tight tables on the smallest phones — values may wrap "AMD" under the number */
  .rate-table th, .rate-table td { font-size: 0.8rem; padding: 10px 4px; }
  .spaces__col { padding: 26px 18px; }
}

/* ---------- GALLERY SECTION ---------- */
.section--gallery {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.gallery__filter-btn {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-cool);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.2s var(--ease), transform 0.18s var(--ease);
}

.gallery__filter-btn:hover {
  border-color: var(--slate);
  color: var(--ink);
  transform: translateY(-1px);
}

.gallery__filter-btn.is-active {
  background: var(--sun);
  border-color: var(--sun);
  color: #4a3410;
  box-shadow: 0 4px 15px rgba(255, 189, 89, 0.25);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-flow: dense;
  gap: 20px;
  margin-top: 10px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--border-cool);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.4s var(--ease), scale 0.4s var(--ease);
}

/* filter transition states */
.gallery__item.is-hidden {
  opacity: 0;
  scale: 0.88;
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.gallery__img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--border-cool);
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease), opacity 0.4s var(--ease);
}

.gallery__img--low {
  filter: blur(10px);
  transform: scale(1.08);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.gallery__img--high {
  position: relative;
  z-index: 2;
  opacity: 0;
}

.gallery__img--high.is-loaded {
  opacity: 1;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.05);
}

.gallery__item:hover .gallery__img--low {
  transform: scale(1.13);
}

.gallery__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: linear-gradient(to top, rgba(62, 76, 90, 0.85) 0%, rgba(62, 76, 90, 0.4) 50%, rgba(62, 76, 90, 0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__caption {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.4;
  transform: translateY(10px);
  transition: transform 0.35s var(--ease);
}

.gallery__item:hover .gallery__caption {
  transform: translateY(0);
}

/* Feature/Grid layout spans for bento masonry feel on larger screens */
@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery__item--wide {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery__item--tall {
    grid-row: span 2;
    aspect-ratio: 3 / 4;
  }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(59, 71, 83, 0.9);
  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
}

.lightbox__container {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 1000px;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2.2rem;
  color: #ffffff;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover {
  color: var(--sun);
  transform: scale(1.1);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 20;
}

.lightbox__nav svg {
  width: 24px;
  height: 24px;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--sun);
}

.lightbox__nav--prev {
  left: -70px;
}

.lightbox__nav--prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.lightbox__nav--next {
  right: -70px;
}

.lightbox__nav--next:hover {
  transform: translateY(-50%) translateX(3px);
}

.lightbox__content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100% - 60px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  scale: 0.95;
  opacity: 0;
  transition: scale 0.35s var(--ease), opacity 0.35s var(--ease);
}

.lightbox.is-open .lightbox__img {
  scale: 1;
  opacity: 1;
}

.lightbox__caption {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: #ffffff;
  text-align: center;
  max-width: 600px;
  margin: 0;
  padding: 0 10px;
  opacity: 0.9;
}

/* Lightbox mobile adjustments */
@media (max-width: 1140px) {
  .lightbox__nav--prev { left: 10px; background: rgba(59, 71, 83, 0.6); }
  .lightbox__nav--next { right: 10px; background: rgba(59, 71, 83, 0.6); }
  .lightbox__close { top: -50px; right: 10px; }
}

@media (max-width: 767px) {
  .lightbox__container {
    height: 70%;
  }
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .lightbox__nav svg {
    width: 20px;
    height: 20px;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__sun { animation: none; }
  .gallery__item { transition: none; transform: none; scale: none; }
  .gallery__item:hover { transform: none; box-shadow: var(--shadow-sm); }
  .gallery__img { transition: none; transform: none; }
  .gallery__overlay { transition: none; }
  .gallery__caption { transition: none; transform: none; }
  .lightbox { transition: none; }
  .lightbox__img { transition: none; scale: none; }
}

/* ============ LOCATION ============ */
.location {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.location__map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-cool, rgba(85, 102, 119, 0.15));
  min-height: 380px;
  background: #e8ecef;
}
.location__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.location__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-cool, rgba(85, 102, 119, 0.15));
  border-top: 4px solid var(--sun);
  box-shadow: var(--shadow-sm);
}
.location__h {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--slate);
  margin: 0;
}
.location__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.5;
}
.location__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--sun-deep);
}
.location__hint {
  margin: 0;
  line-height: 1.6;
}
.location__cta {
  align-self: flex-start;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .location {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .location__map { min-height: 280px; }
  .location__card { padding: 28px 22px; }
}

/* =========================================================
   DEMO / SEE IT IN ACTION — booking walkthrough videos
   ========================================================= */
.demo {
  margin-top: 8px;
}
.demo__stage {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--dark);
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(62, 76, 90, 0.16);
}
.demo__video {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 1200;
  background: #2B333D;
}
.demo__caption {
  padding: 12px 20px;
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.demo__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.demo__thumb {
  display: block;
  padding: 0;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.demo__thumb:hover,
.demo__thumb:focus-visible {
  border-color: var(--sun);
  transform: translateY(-2px);
}
.demo__thumb:focus-visible {
  outline: 2px solid var(--sun-deep);
  outline-offset: 2px;
}
.demo__thumb.is-active {
  border-color: var(--sun-deep);
  box-shadow: 0 0 0 3px rgba(255, 189, 89, 0.35);
}
.demo__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
.demo__thumb span {
  display: block;
  padding: 8px 10px;
  font-family: var(--f-display);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.3;
}
@media (prefers-reduced-motion: reduce) {
  .demo__thumb,
  .demo__thumb:hover,
  .demo__thumb:focus-visible {
    transition: none;
    transform: none;
  }
}
@media (max-width: 900px) {
  .demo__thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  /* mobile-variant videos are portrait 1080x2338 */
  .demo--mobile-video .demo__video {
    aspect-ratio: 1080 / 2338;
    width: auto;
    max-width: 100%;
    max-height: 74vh;
    margin: 0 auto;
  }
  .demo__thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .demo__caption {
    padding: 10px 16px;
    font-size: 0.8rem;
  }
}
