/* =========================================================
   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: #8899AA;      /* secondary / eyebrow */
  --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: 22px; }
.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); }

/* ---------- 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(4, 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%; }
.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; }

/* ---------- 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;
}
.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] { 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; }
.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; }

/* ---------- 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: var(--steel); }
.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; }
  .lang { align-self: flex-start; margin: 14px 0 2px; }
  .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; }
}

/* ---------- 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; }
}
