:root {
  --color-page-bg: #f4efe6;
  --color-base: var(--color-page-bg);
  --color-base-deep: var(--color-page-bg);
  --color-base-warm: #faf6f0;
  --color-surface: #ffffff;
  --color-surface-warm: #fdfbf7;
  --color-metrics-glass: rgba(252, 244, 228, 0.88);
  --color-metrics-glass-deep: rgba(245, 228, 195, 0.82);
  --color-metrics-glass-border: rgba(184, 148, 46, 0.58);
  --color-ink: #1a1612;
  --color-ink-soft: #2c2620;
  --color-muted: #6b6358;
  --color-muted-light: #9a9185;
  --color-gold: #b8942e;
  --color-gold-light: #d4af37;
  --color-gold-bright: #e8c547;
  --color-gold-dim: #8a6f1f;
  --color-gold-bg: rgba(184, 148, 46, 0.1);
  --color-gold-bg-strong: rgba(184, 148, 46, 0.16);
  --color-gold-border: rgba(184, 148, 46, 0.22);
  --color-brand: var(--color-gold);
  --color-brand-dim: var(--color-gold-dim);
  --color-accent: var(--color-gold);
  --color-accent-light: var(--color-gold-bright);
  --color-accent-bg: var(--color-gold-bg);
  --color-hero: #14100c;
  --metrics-panel-half: 5rem;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --header-h: 4.25rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 3px rgba(26, 22, 18, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 22, 18, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 22, 18, 0.1);
  --shadow-gold: 0 8px 32px rgba(184, 148, 46, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--color-page-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(184, 148, 46, 0.22);
  color: var(--color-ink);
}

.container-wide {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container-wide { padding-inline: 2rem; }
}

/* ── Header ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(10, 15, 26, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header--light {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.header-shine {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 148, 46, 0.35) 30%,
    rgba(232, 197, 71, 0.55) 50%,
    rgba(184, 148, 46, 0.35) 70%,
    transparent
  );
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.lang-switcher { position: relative; }

.header-cta,
.lang-trigger {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.header-cta:hover,
.lang-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.lang-trigger {
  gap: 0.4375rem;
  padding: 0.4375rem 0.75rem 0.4375rem 0.4375rem;
  cursor: pointer;
}

.lang-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(201, 162, 39, 0.5);
  color: #fff;
}

.lang-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 9999px;
  background: rgba(201, 162, 39, 0.18);
  color: var(--color-gold-bright);
}

.lang-trigger-label {
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .lang-trigger-label { max-width: none; }
}

.icon-globe, .icon-chevron {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.icon-chevron {
  margin-right: 0.125rem;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, color 0.2s ease;
}

.lang-trigger[aria-expanded="true"] .icon-chevron {
  transform: rotate(180deg);
  color: var(--color-gold-bright);
}

.lang-menu {
  position: fixed;
  top: var(--lang-menu-top, auto);
  right: var(--lang-menu-right, 1rem);
  min-width: 10.5rem;
  padding: 0.3125rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  z-index: 55;
}

.lang-menu-options {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5625rem 0.75rem;
  border: none;
  border-radius: 0.625rem;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.lang-option:hover {
  background: rgba(201, 162, 39, 0.08);
  color: #0f172a;
}

.lang-option--active {
  background: rgba(201, 162, 39, 0.12);
  color: var(--color-gold-dim);
  font-weight: 600;
}

.lang-check {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  opacity: 0;
  color: var(--color-gold);
  transition: opacity 0.16s ease;
}

.lang-option--active .lang-check {
  opacity: 1;
}

.site-header--light .header-cta,
.site-header--light .lang-trigger {
  background: transparent;
  border-color: rgba(201, 162, 39, 0.32);
  color: #475569;
}

.site-header--light .header-cta:hover,
.site-header--light .lang-trigger:hover,
.site-header--light .lang-trigger[aria-expanded="true"] {
  background: rgba(201, 162, 39, 0.08);
  border-color: rgba(201, 162, 39, 0.48);
  color: #1e293b;
}

.site-header--light .lang-trigger-icon {
  background: rgba(201, 162, 39, 0.12);
  color: var(--color-gold-dim);
}

.site-header--light .icon-chevron {
  color: #94a3b8;
}

.site-header--light .lang-trigger[aria-expanded="true"] .icon-chevron {
  color: var(--color-gold);
}

@media (max-width: 639px) {
  .lang-trigger {
    padding: 0.375rem 0.625rem 0.375rem 0.375rem;
    gap: 0.375rem;
  }

  .lang-trigger-label {
    max-width: 4.5rem;
    font-size: 0.75rem;
  }

  .lang-menu {
    min-width: 11rem;
    max-width: calc(100vw - 1rem);
  }
}

.brand-link {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.brand-link:hover {
  transform: scale(1.02);
}

.logo-img {
  display: block;
  height: 1.25rem;
  width: auto;
}

.logo-img--solid {
  display: none;
}

.site-header--light .logo-img--hero {
  display: none;
}

.site-header--light .logo-img--solid {
  display: block;
}

.header-cta {
  padding: 0.5rem 1.125rem;
  text-decoration: none;
}

@media (min-width: 768px) {
  .lang-trigger {
    padding: 0.5rem 1rem 0.5rem 0.625rem;
    gap: 0.5rem;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: clamp(32rem, 76vh, 52rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 15, 26, 0.92) 0%, rgba(10, 15, 26, 0.55) 38%, rgba(10, 15, 26, 0.08) 58%, transparent 100%),
    linear-gradient(to top, rgba(10, 15, 26, 0.88) 0%, rgba(10, 15, 26, 0.15) 45%, transparent 100%);
}

/* ── Hero champagne gold light beam (desktop) ── */
.hero-light-beam {
  display: none;
}

@media (min-width: 768px) {
  .hero-light-beam {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
      to left,
      #000 0%,
      rgba(0, 0, 0, 0.82) 10%,
      rgba(0, 0, 0, 0.38) 20%,
      transparent 36%
    );
    mask-image: linear-gradient(
      to left,
      #000 0%,
      rgba(0, 0, 0, 0.82) 10%,
      rgba(0, 0, 0, 0.38) 20%,
      transparent 36%
    );
  }

  .hero-light-beam::before {
    content: "";
    position: absolute;
    top: -16%;
    right: -8%;
    width: 54%;
    height: 58%;
    background: radial-gradient(
      ellipse 68% 64% at 72% 22%,
      rgba(255, 252, 238, 0.95) 0%,
      rgba(255, 241, 196, 0.78) 10%,
      rgba(232, 197, 71, 0.52) 22%,
      rgba(212, 175, 55, 0.3) 36%,
      rgba(184, 148, 46, 0.12) 48%,
      transparent 62%
    );
    filter: blur(12px);
    mix-blend-mode: screen;
    opacity: 0.88;
  }

  .hero-light-beam::after {
    content: "";
    position: absolute;
    inset: -4% -2% -2% 30%;
    background:
      linear-gradient(
        214deg,
        rgba(255, 244, 210, 0.58) 0%,
        rgba(232, 197, 71, 0.24) 20%,
        transparent 40%
      ),
      linear-gradient(
        232deg,
        rgba(255, 248, 225, 0.46) 0%,
        rgba(212, 175, 55, 0.16) 24%,
        transparent 44%
      ),
      linear-gradient(
        248deg,
        rgba(255, 250, 230, 0.34) 0%,
        rgba(225, 193, 110, 0.12) 28%,
        transparent 48%
      ),
      conic-gradient(
        from 196deg at 100% -4%,
        transparent 0deg,
        rgba(255, 236, 180, 0.32) 4deg,
        transparent 9deg,
        rgba(232, 197, 71, 0.24) 14deg,
        transparent 20deg,
        rgba(255, 244, 210, 0.28) 26deg,
        transparent 32deg,
        rgba(212, 175, 55, 0.18) 38deg,
        transparent 46deg,
        rgba(255, 248, 225, 0.2) 52deg,
        transparent 60deg
      );
    filter: blur(16px);
    mix-blend-mode: soft-light;
    opacity: 0.85;
  }
}

.hero-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-block: calc(var(--header-h) + 1rem) clamp(4rem, 13vh, 6rem);
  pointer-events: none;
}

.hero-copy {
  max-width: min(30rem, 46vw);
  pointer-events: auto;
}

.hero-card-visual {
  display: none;
}

.hero-card-body {
  display: contents;
}

.mobile-home {
  display: contents;
}

.site-top {
  position: relative;
}

@media (min-width: 768px) {
  .hero-copy {
    max-width: min(34rem, 42%);
  }

  .hero-card-body {
    display: flex;
    flex-direction: column;
  }

  .hero-subtitle {
    order: 1;
  }

  .hero-desc {
    order: 2;
  }
}

@media (min-width: 1100px) {
  .hero-content {
    justify-content: flex-start;
    padding-block: calc(var(--header-h) + clamp(4rem, 18vh, 7.5rem)) clamp(4.5rem, 13vh, 6rem);
  }

  .hero-copy {
    margin-top: clamp(0.5rem, 2vh, 1.5rem);
    max-width: 36rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0 0 0.75rem;
  padding: 0.4375rem 0.9375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-accent-light);
  border-radius: 9999px;
  border: 1px solid rgba(232, 197, 71, 0.42);
  background: rgba(20, 16, 12, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.hero-eyebrow:hover {
  background: rgba(20, 16, 12, 0.58);
  border-color: rgba(232, 197, 71, 0.62);
  color: #fff;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.hero-desc {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 1100px) {
  html[lang="zh"] .hero-title {
    line-height: 1.18;
  }

  html[lang="zh"] .hero-subtitle {
    margin-top: 1rem;
  }
}

/* ── Hero i18n (long-word locales) ── */
html[lang="en"] .hero-copy,
html[lang="uk"] .hero-copy,
html[lang="ru"] .hero-copy {
  max-width: min(40rem, 54vw);
}

html[lang="en"] .hero-eyebrow,
html[lang="uk"] .hero-eyebrow,
html[lang="ru"] .hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0.375rem 0.8125rem;
}

html[lang="en"] .hero-title,
html[lang="uk"] .hero-title,
html[lang="ru"] .hero-title {
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

html[lang="en"] .hero-subtitle,
html[lang="uk"] .hero-subtitle,
html[lang="ru"] .hero-subtitle {
  font-size: clamp(1.0625rem, 2.3vw, 1.4375rem);
  line-height: 1.35;
}

html[lang="en"] .hero-desc,
html[lang="uk"] .hero-desc,
html[lang="ru"] .hero-desc {
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

html[lang="ru"] .hero-copy {
  max-width: min(44rem, 58vw);
}

@media (min-width: 768px) {
  html[lang="en"] .hero-copy,
  html[lang="uk"] .hero-copy,
  html[lang="ru"] .hero-copy {
    max-width: min(42rem, 50%);
  }

  html[lang="ru"] .hero-copy {
    max-width: min(46rem, 52%);
  }
}

@media (min-width: 1100px) {
  html[lang="en"] .hero-copy,
  html[lang="uk"] .hero-copy {
    max-width: 42rem;
  }

  html[lang="ru"] .hero-copy {
    max-width: 46rem;
  }

  html[lang="en"] .hero-content,
  html[lang="uk"] .hero-content,
  html[lang="ru"] .hero-content {
    padding-block: calc(var(--header-h) + clamp(3rem, 14vh, 6rem)) clamp(4.5rem, 13vh, 6rem);
  }
}

@media (max-width: 639px) {
  html[lang="en"] .hero-title,
  html[lang="uk"] .hero-title,
  html[lang="ru"] .hero-title {
    font-size: 1.75rem;
    line-height: 1.24;
  }
}

html[lang="en"] .metric-label,
html[lang="uk"] .metric-label,
html[lang="ru"] .metric-label {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

@media (min-width: 768px) {
  html[lang="en"] .metric,
  html[lang="uk"] .metric,
  html[lang="ru"] .metric {
    padding-inline: 0.625rem;
  }
}

/* ── Metrics bar ── */
.metrics-bar {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--metrics-panel-half));
  margin-bottom: calc(-1 * var(--metrics-panel-half));
  background: transparent;
  pointer-events: none;
}

.metrics-bar .container-wide {
  pointer-events: auto;
}

/* ── Content zone ── */
.content-zone {
  position: relative;
  background: var(--color-page-bg);
}

.metrics-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255, 251, 243, 0.94) 0%,
    var(--color-metrics-glass) 42%,
    rgba(248, 232, 200, 0.9) 100%
  );
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-radius: var(--radius-lg);
  padding: 0.375rem;
  box-shadow:
    0 24px 56px rgba(20, 16, 12, 0.2),
    0 8px 32px rgba(184, 148, 46, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 248, 235, 0.6);
  border: 2px solid var(--color-metrics-glass-border);
  overflow: hidden;
}

.metric {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 0.75rem;
  text-align: left;
  padding: 1rem 0.75rem;
  min-height: 5.5rem;
  position: relative;
  background: transparent;
}

.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  grid-row: 1 / 3;
  align-self: center;
  border-radius: 0.5rem;
  background: rgba(184, 148, 46, 0.12);
  color: var(--color-gold-dim);
  flex-shrink: 0;
}

.metric-icon svg {
  width: 1rem;
  height: 1rem;
}

.metric:nth-child(odd) {
  border-right: 1px solid rgba(184, 148, 46, 0.28);
}

.metric:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(184, 148, 46, 0.28);
}

@media (min-width: 768px) {
  :root {
    --metrics-panel-half: 2.875rem;
  }

  .document-panel {
    overflow: visible;
  }

  .site-top .metrics-bar--hero {
    position: absolute;
    top: clamp(32rem, 76vh, 52rem);
    left: 0;
    right: 0;
    z-index: 3;
    margin-top: calc(-1 * var(--metrics-panel-half) - 0.75rem);
    margin-bottom: 0;
    pointer-events: none;
  }

  .site-top .metrics-bar--hero .container-wide {
    pointer-events: auto;
  }

  .metrics-bar--overview {
    display: none;
  }

  .metrics-panel {
    grid-template-columns: repeat(4, 1fr);
    padding: 0.375rem 0;
  }

  .metric {
    padding: 1.125rem 1rem;
    min-height: 5.75rem;
    column-gap: 0.875rem;
  }

  .metric-icon {
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 0.625rem;
  }

  .metric-icon svg {
    width: 1.375rem;
    height: 1.375rem;
  }

  .metric:nth-child(odd) {
    border-right: none;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: none;
  }

  .metric:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 2.25rem;
    background: linear-gradient(
      to bottom,
      transparent,
      rgba(184, 148, 46, 0.35) 20%,
      rgba(184, 148, 46, 0.35) 80%,
      transparent
    );
  }
}

.metric-value {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.metric-label {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .metric-value {
    color: var(--color-gold-dim);
  }

  .metric-label {
    color: rgba(138, 111, 31, 0.82);
  }
}

@media (max-width: 767px) {
  :root {
    --metrics-panel-half: 0;
  }

  .metrics-bar--hero {
    display: none;
  }

  .metrics-bar .container-wide {
    padding-inline: var(--mobile-gutter, 1rem);
  }

  .metrics-panel {
    border-radius: 1.125rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid var(--color-metrics-glass-border);
    box-shadow: none;
  }

  .metric:nth-child(odd) {
    border-right: 1px solid rgba(180, 170, 155, 0.22);
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(180, 170, 155, 0.22);
  }

  .metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.8125rem 0.375rem;
    min-height: 4rem;
    text-align: center;
  }

  .metric-icon {
    display: none;
  }

  .metric-value {
    grid-column: unset;
    grid-row: unset;
    font-size: 0.875rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #3a322c;
  }

  html[lang="zh"] .metric-value {
    font-size: 0.8125rem;
    line-height: 1.18;
    letter-spacing: 0;
    color: #3a322c;
  }

  html[lang="zh"] .metric:first-child .metric-value {
    font-size: 0.6875rem;
    letter-spacing: -0.02em;
  }

  .metric-label {
    grid-column: unset;
    grid-row: unset;
    margin-top: 0;
    font-size: 0.625rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: #8a8078;
  }

  html[lang="zh"] .metric-label {
    font-size: 0.625rem;
    letter-spacing: 0.01em;
    color: #8a8078;
  }

  html[lang="en"] .metric-value,
  html[lang="uk"] .metric-value,
  html[lang="ru"] .metric-value {
    font-size: 0.75rem;
    line-height: 1.18;
    color: #3a322c;
  }

  html[lang="en"] .metric-label,
  html[lang="uk"] .metric-label,
  html[lang="ru"] .metric-label {
    font-size: 0.5625rem;
    line-height: 1.32;
    letter-spacing: 0.01em;
    white-space: normal;
    color: #8a8078;
  }

  html[lang="en"] .metric,
  html[lang="uk"] .metric,
  html[lang="ru"] .metric {
    min-height: 4.375rem;
    padding: 0.75rem 0.3125rem;
  }

  .page-layout {
    padding: 0.75rem var(--mobile-gutter, 1rem) 3rem;
  }
}

/* ── Layout ── */
.page-layout {
  position: relative;
  z-index: 1;
  max-width: 76rem;
  margin-inline: auto;
  padding: calc(var(--metrics-panel-half) + 1.5rem) 1.25rem 4rem;
}

@media (min-width: 768px) {
  .page-layout { padding-inline: 2rem; }
}

.document-panel {
  background: linear-gradient(
    165deg,
    rgba(255, 252, 247, 0.98) 0%,
    rgba(253, 248, 240, 0.96) 100%
  );
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gold-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.content-section {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.content-section + .content-section {
  border-top: 1px solid var(--color-gold-border);
}

/* ── Main content sections ── */
.main-content {
  min-width: 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* ── Prose ── */
.prose p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.75;
}

.prose p:last-child { margin-bottom: 0; }

.prose strong { color: var(--color-ink-soft); font-weight: 600; }

/* ── Feature cards ── */
.feature-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .feature-cards { grid-template-columns: 1fr 1fr; }
}

.feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.75rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff 0%, var(--color-base-warm) 100%);
  border: 1px solid var(--color-gold-border);
}

.feature-icon {
  grid-column: 1;
  grid-row: 1;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: var(--color-gold-bg-strong);
  color: var(--color-gold-dim);
  margin-bottom: 0;
}

.feature-icon svg { width: 1.25rem; height: 1.25rem; }

.feature-card h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  align-self: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
}

.feature-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.feature-card strong { color: var(--color-ink-soft); }

/* ── Spec lists ── */
.spec-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-row {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.spec-row:last-child { border-bottom: none; }

@media (min-width: 640px) {
  .spec-row {
    grid-template-columns: 9rem 1fr;
    align-items: baseline;
  }
}

.spec-row dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink);
}

.spec-row dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ── Spec groups (energy) ── */
.spec-group {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, var(--color-base-warm));
  border: 1px solid var(--color-gold-border);
}

.spec-group:last-child { margin-bottom: 0; }

.spec-group-title {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gold-dim);
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--color-gold-border);
}

.spec-list--compact .spec-row {
  padding: 0.625rem 0;
}

/* ── Enclosure grid ── */
.enclosure-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .enclosure-grid { grid-template-columns: 1fr 1fr; }
}

.enclosure-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-gold-border);
  background: linear-gradient(145deg, #fff, var(--color-base-warm));
  transition: box-shadow 0.2s, border-color 0.2s;
}

.enclosure-card:hover {
  box-shadow: var(--shadow-gold);
  border-color: rgba(184, 148, 46, 0.35);
}

.enclosure-card h3 {
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.enclosure-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.enclosure-specs li {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.55;
  padding-left: 0;
}

.enclosure-specs li span:first-child {
  display: inline-block;
  min-width: 3.5rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  margin-right: 0.375rem;
}

@media (max-width: 767px) {
  #enclosure .section-header {
    margin-bottom: 1.125rem;
  }

  #enclosure .section-title {
    font-size: 1.125rem;
    line-height: 1.35;
  }

  .enclosure-grid {
    gap: 0.75rem;
  }

  .enclosure-card {
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 55, 0.28);
    background: linear-gradient(
      145deg,
      rgba(255, 252, 246, 0.98) 0%,
      rgba(252, 244, 228, 0.96) 52%,
      rgba(245, 232, 205, 0.94) 100%
    );
    box-shadow:
      0 6px 20px rgba(184, 148, 46, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .enclosure-card:nth-child(even) {
    background: linear-gradient(
      145deg,
      rgba(255, 250, 240, 0.98) 0%,
      rgba(250, 240, 220, 0.96) 52%,
      rgba(242, 228, 198, 0.94) 100%
    );
  }

  .enclosure-card:hover {
    box-shadow:
      0 6px 20px rgba(184, 148, 46, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(201, 162, 55, 0.28);
  }

  .enclosure-card h3 {
    margin: 0;
    padding: 0.875rem 1rem 0.875rem calc(1rem - 3px);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-ink);
    border-bottom: 1px solid rgba(184, 148, 46, 0.16);
    border-left: 3px solid var(--color-gold);
    background: rgba(184, 148, 46, 0.08);
  }

  .enclosure-specs {
    padding: 0.375rem 1rem 0.875rem;
    gap: 0;
  }

  .enclosure-specs li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6875rem 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(184, 148, 46, 0.12);
  }

  .enclosure-specs li:last-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }

  .enclosure-specs li span:first-child {
    display: inline-block;
    min-width: 0;
    margin-right: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-gold-dim);
  }

  .enclosure-specs li span:last-child {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--color-ink-soft);
  }

  html[lang="en"] .enclosure-card h3,
  html[lang="uk"] .enclosure-card h3,
  html[lang="ru"] .enclosure-card h3 {
    font-size: 0.875rem;
    line-height: 1.38;
  }

  html[lang="en"] .enclosure-specs li span:first-child,
  html[lang="uk"] .enclosure-specs li span:first-child,
  html[lang="ru"] .enclosure-specs li span:first-child {
    font-size: 0.625rem;
    letter-spacing: 0.03em;
  }

  html[lang="en"] .enclosure-specs li span:last-child,
  html[lang="uk"] .enclosure-specs li span:last-child,
  html[lang="ru"] .enclosure-specs li span:last-child {
    font-size: 0.78125rem;
    line-height: 1.5;
  }
}

/* ── Storage version ── */
.version-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-gold-bg-strong), var(--color-gold-bg));
  border: 1px solid var(--color-gold-border);
  margin-bottom: 1.25rem;
}

.version-banner p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.version-banner strong { color: var(--color-gold-dim); }

.version-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-hero);
  color: #fff;
  overflow: hidden;
}

.version-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.version-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.4);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 0.875rem;
}

.version-card h3 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.version-specs {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.version-specs div {
  display: grid;
  gap: 0.25rem;
}

@media (min-width: 540px) {
  .version-specs div { grid-template-columns: 8rem 1fr; }
}

.version-specs dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.version-specs dd {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* ── Pricing ── */
.price-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(184, 148, 46, 0.35);
  box-shadow:
    0 16px 48px rgba(184, 148, 46, 0.16),
    0 4px 16px rgba(20, 16, 12, 0.08);
  margin-bottom: 2rem;
}

.price-card-header {
  padding: 1.25rem 1.75rem;
  background: var(--color-hero);
  border-bottom: 1px solid rgba(184, 148, 46, 0.2);
}

.price-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem 0.75rem;
}

.price-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.price-card-note {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.price-card-label-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-gold-bright);
  flex-shrink: 0;
}

.price-card-body {
  position: relative;
  padding: 2rem 1.75rem;
  background: linear-gradient(
    135deg,
    rgba(255, 250, 240, 0.82) 0%,
    rgba(248, 232, 200, 0.78) 35%,
    rgba(235, 210, 165, 0.8) 70%,
    rgba(228, 200, 150, 0.82) 100%
  );
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(184, 148, 46, 0.12);
}

.price-card-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 40%,
    rgba(184, 148, 46, 0.06) 100%
  );
  pointer-events: none;
}

.price-line {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.375rem 0.75rem;
  text-align: center;
}

.price-config {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-muted);
}

.price-currency {
  margin-right: 0.05em;
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-gold-dim);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.price-amount small {
  font-size: 0.5em;
  font-weight: 600;
  color: rgba(138, 111, 31, 0.85);
}

.price-tag {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink-soft);
}

@media (min-width: 640px) {
  .price-line {
    gap: 0.5rem 1rem;
  }

  .price-config {
    font-size: 1.0625rem;
  }
}

.price-disclaimer {
  margin: 0;
  padding: 1rem 1.75rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  background: linear-gradient(
    180deg,
    rgba(252, 245, 232, 0.72) 0%,
    rgba(245, 235, 215, 0.65) 100%
  );
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(184, 148, 46, 0.2);
  line-height: 1.65;
}

/* ── Delivery steps ── */
.delivery-section {
  margin-top: 0.5rem;
}

.delivery-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-ink);
}

.delivery-subtitle {
  margin: 0.375rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.delivery-steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .delivery-steps { grid-template-columns: 1fr 1fr; }
}

.delivery-step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, var(--color-base-warm));
  border: 1px solid var(--color-gold-border);
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dim));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(184, 148, 46, 0.3);
}

.step-content h4 {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink);
}

.step-content p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ── Partnership ── */
.partnership-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .partnership-grid { grid-template-columns: 1fr 1fr; }
}

.partnership-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, var(--color-base-warm));
  border: 1px solid var(--color-gold-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.partnership-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: rgba(201, 162, 39, 0.12);
  color: #9a7b1a;
  margin-bottom: 1rem;
}

.partnership-icon svg { width: 1.25rem; height: 1.25rem; }

.partnership-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
}

.partnership-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.partnership-card strong { color: var(--color-ink-soft); }

@media (max-width: 767px) {
  .feature-icon,
  .partnership-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .feature-icon svg,
  .partnership-icon svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  .partnership-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    align-items: center;
  }

  .partnership-icon {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .partnership-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    align-self: center;
  }

  .partnership-card p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }
}

/* ── Footer ── */
.site-footer {
  background: linear-gradient(180deg, #1c1814 0%, var(--color-hero) 100%);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0;
  margin-top: 0;
  border-top: 1px solid var(--color-gold-border);
}

.footer-inner {
  text-align: center;
}

.footer-logo-link {
  display: inline-flex;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.footer-logo-link:hover {
  transform: scale(1.02);
}

.footer-logo {
  display: block;
  height: 2rem;
  width: auto;
  margin-inline: auto;
}

.footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

.footer-copy {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 767px) {
  .site-footer {
    padding: 2rem 0;
  }

  .footer-logo {
    height: 1.375rem;
  }

  .footer-tagline {
    margin-top: 0.4375rem;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .footer-copy {
    margin-top: 1rem;
    font-size: 0.6875rem;
  }
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 148, 46, 0.35);
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--color-hero) 0%, #1a1410 100%);
  color: var(--color-gold-bright);
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (min-width: 768px) {
  .back-to-top {
    right: 2rem;
  }
}

.back-to-top svg { width: 1.375rem; height: 1.375rem; }

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(184, 148, 46, 0.28);
}

.back-to-top[hidden] { display: none; }

/* ── Print ── */
@media print {
  .site-header,
  .lang-menu,
  .back-to-top { display: none !important; }

  .hero { min-height: auto; padding-block: 2rem; }
  .hero-overlay { background: rgba(10, 15, 26, 0.7); }
  .hero-light-beam { display: none !important; }
  .metrics-bar {
    margin-top: 0;
    margin-bottom: 0;
  }
  .page-layout { display: block; padding: 0; }
  .content-section { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}
