/* Regional home hero only. Retains the existing brand tokens documented in
   docs/design-system.md; shared and Ukrainian styles are never overridden. */
.immersive-hero {
  --hero-paper: #f8f8f2;
  --hero-accent: #c3d9ab;
  --press-scale: .97;
  --press-duration: 140ms;
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100vh - var(--header-h) - 1px);
  min-height: calc(100svh - var(--header-h) - 1px);
  background: var(--ink);
  color: var(--hero-paper);
}

.immersive-hero-photo,
.immersive-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.immersive-hero-photo {
  z-index: -2;
  object-fit: cover;
  object-position: center 54%;
}
/* Background video: starts after the page has loaded (site.js); the photo above stays as the fallback and the first frame. */
.immersive-hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease;
}
.immersive-hero-video.is-playing { opacity: 1; }
@media (max-width: 767px), (prefers-reduced-motion: reduce) { .immersive-hero-video { display: none; } }
.immersive-hero::after {
  content: '';
  z-index: -1;
  background: linear-gradient(90deg, rgb(9 20 15 / .87) 0%, rgb(9 20 15 / .73) 37%, rgb(9 20 15 / .22) 75%, rgb(9 20 15 / .12) 100%),
    linear-gradient(0deg, rgb(9 20 15 / .58), transparent 35%);
}

.immersive-hero-inner {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 32px;
  padding-top: clamp(32px, 4vh, 56px);
  padding-bottom: 24px;
}
.immersive-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 32vw, 460px);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}
.immersive-hero-copy { align-self: center; padding-block: 12px; }
.immersive-hero-region {
  margin: 0 0 28px;
  color: var(--hero-paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.immersive-hero-region span { margin-inline: 10px; color: var(--hero-accent); }
.immersive-hero h1 {
  max-width: 960px;
  margin: 0;
  color: var(--hero-paper);
  font-family: var(--font-body);
  font-size: clamp(52px, 5.4vw, 92px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: initial;
}
.immersive-hero h1 span { display: block; }
.immersive-hero h1 .immersive-hero-brand { color: var(--hero-accent); }
html[lang=ru] .immersive-hero h1 { font-size: clamp(48px, 4.8vw, 82px); }
.immersive-hero-description {
  max-width: 480px;
  margin-top: 28px;
  color: var(--hero-paper);
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}
.immersive-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 32px; margin-top: 32px; }
.immersive-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 56px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: transform var(--press-duration) ease-out;
}
.immersive-hero-primary { background: var(--hero-paper); color: var(--ink); padding: 16px 24px; }
.immersive-hero-primary:hover { background: var(--hero-accent); color: var(--ink); }
.immersive-hero-primary .i { color: var(--green-ink); }
.immersive-hero-actions .immersive-hero-secondary { padding-block: 15px; color: var(--hero-paper); border-bottom-color: rgb(248 248 242 / .5); }
.immersive-hero-secondary:hover { border-bottom-color: var(--hero-paper); }
.immersive-hero-actions .i { width: 18px; height: 18px; }
.immersive-hero a:focus-visible { outline: 2px solid var(--hero-paper); outline-offset: 6px; }
.immersive-hero a:active { transform: scale(var(--press-scale)); }
.immersive-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgb(248 248 242 / .28);
  padding-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--hero-paper);
}
.immersive-hero-foot a { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; color: inherit; text-decoration: none; transition: transform var(--press-duration) ease-out; }
.immersive-hero-foot a:hover { text-decoration: underline; text-underline-offset: 5px; }
.immersive-hero-foot a span { font-size: 22px; }

.immersive-hero-enquiry {
  min-width: 0;
  padding: clamp(24px, 2.2vw, 32px);
  background: var(--hero-paper);
  color: var(--ink);
  border-top: 2px solid var(--hero-accent);
  scroll-margin-top: 20px;
}
.immersive-hero-enquiry h2 { margin: 0; font-size: 27px; font-weight: 400; line-height: 1.15; letter-spacing: -.04em; }
.immersive-hero-enquiry-intro { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.immersive-hero-enquiry .lead-form { padding: 20px 0 0; border: 0; background: transparent; box-shadow: none; }
.immersive-hero-enquiry .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.immersive-hero-enquiry .field { min-width: 0; gap: 6px; }
.immersive-hero-enquiry .field input,
.immersive-hero-enquiry .field select,
.immersive-hero-enquiry .field textarea { min-width: 0; min-height: 44px; padding: 10px 11px; background: #fff; font-size: 14px; }
.immersive-hero-enquiry .field textarea { min-height: 84px; }
.immersive-hero-enquiry .field [aria-invalid="true"] { border-color: #c2412d; }
.immersive-hero-enquiry .field [aria-invalid="true"]:focus { outline-color: #c2412d; }
.immersive-hero-enquiry .consent { margin-top: 14px; font-size: 10px; line-height: 1.6; }
.immersive-hero-enquiry .consent input { width: 18px; height: 18px; }
.immersive-hero-enquiry .form-foot { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.immersive-hero-enquiry .btn { width: 100%; min-height: 48px; justify-content: space-between; padding: 12px 18px; transition: transform var(--press-duration) ease-out; }
.immersive-hero-enquiry .btn:active { transform: scale(var(--press-scale)); }
.immersive-hero-enquiry .btn:disabled { cursor: wait; opacity: .65; transform: none; }
.immersive-hero-enquiry .form-note { font-size: 10px; line-height: 1.5; }
.immersive-hero-enquiry .form-status { font-size: 12px; line-height: 1.5; }
.immersive-hero-enquiry .form-status:empty { margin: 0; }
.immersive-hero-enquiry a:focus-visible,
.immersive-hero-enquiry button:focus-visible,
.immersive-hero-enquiry:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 4px; }

@media (min-width: 1800px) {
  .immersive-hero-inner { max-width: none; padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2)); }
}
@media (max-width: 1000px) {
  .immersive-hero-main { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .immersive-hero-enquiry { width: 100%; max-width: 560px; }
}
@media (max-width: 900px) {
  .immersive-hero::after { background: linear-gradient(90deg, rgb(9 20 15 / .83), rgb(9 20 15 / .50) 70%, rgb(9 20 15 / .36)); }
  .immersive-hero-inner { gap: 44px; padding-top: 56px; }
  .immersive-hero h1 { font-size: clamp(46px, 6.5vw, 64px); }
  html[lang=ru] .immersive-hero h1 { font-size: clamp(42px, 5.7vw, 56px); }
}
@media (max-width: 600px) {
  .immersive-hero-photo { object-position: 58% center; }
  .immersive-hero::after { background: linear-gradient(0deg, rgb(9 20 15 / .88), rgb(9 20 15 / .67) 65%, rgb(9 20 15 / .32)); }
  .immersive-hero-inner { gap: 30px; padding-top: 56px; padding-bottom: 18px; }
  .immersive-hero-copy { align-self: end; padding: 0; }
  .immersive-hero-region { font-size: 10px; letter-spacing: .08em; margin-bottom: 24px; }
  .immersive-hero-region span { margin-inline: 6px; }
  .immersive-hero h1 { font-size: clamp(39px, 10.6vw, 58px); line-height: 1.08; letter-spacing: -.05em; }
  html[lang=ru] .immersive-hero h1 { font-size: clamp(35px, 9.4vw, 52px); line-height: 1.1; }
  .immersive-hero-description { max-width: 38ch; margin-top: 22px; font-size: 14px; line-height: 1.7; }
  .immersive-hero-actions { margin-top: 26px; gap: 8px 24px; }
  .immersive-hero-actions a { min-height: 52px; }
  .immersive-hero-primary { width: 100%; }
  .immersive-hero-actions .immersive-hero-secondary { min-height: 48px; }
  .immersive-hero-foot { font-size: 10px; gap: 16px; padding-top: 10px; }
  .immersive-hero-foot p { max-width: 23ch; }
  .immersive-hero-foot a { gap: 12px; max-width: 16ch; }
  .immersive-hero-enquiry { padding: 24px; }
  .immersive-hero-enquiry .field input,
  .immersive-hero-enquiry .field select,
  .immersive-hero-enquiry .field textarea { font-size: 16px; }
  .immersive-hero-enquiry .consent { font-size: 11px; }
}
@media (max-width: 440px) {
  .immersive-hero-enquiry { padding: 22px 20px; }
  .immersive-hero-enquiry .form-grid { grid-template-columns: minmax(0, 1fr); }
  .immersive-hero-enquiry h2 { font-size: 25px; }
}
@media (max-width: 380px) {
  .immersive-hero-inner { padding-top: 54px; }
  .immersive-hero h1 { font-size: 36px; }
  html[lang=ru] .immersive-hero h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .immersive-hero a, .immersive-hero-enquiry .btn { transition: none; }
  .immersive-hero a:active, .immersive-hero-enquiry .btn:active { transform: none; }
}
/* ---------- Transparent header over the hero (home only) ----------
   The photo / video runs under the header. It turns solid again once the hero has scrolled away (.is-solid, site.js),
   while a menu is open, and everywhere else on the site (this stylesheet loads on the home page only). Without JS the
   header simply scrolls away with the page. */
html[data-page="home"] .site-header { position: absolute; inset: 0 0 auto 0; }
html[data-page="home"] .site-header.is-fixed { position: fixed; }
html[data-page="home"] .immersive-hero { min-height: 100vh; min-height: 100svh; }
html[data-page="home"] .immersive-hero-inner { padding-top: calc(var(--header-h) + clamp(28px, 4vh, 48px)); }

html[data-page="home"] .site-header .header-main { transition: background-color .25s ease, border-color .25s ease; }
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) {
  --hd-paper: #f8f8f2;
  --hd-accent: #c3d9ab;
}
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .header-main {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* soft shade under the transparent bar so the white text stays readable on bright frames */
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .header-main::before {
  content: '';
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(9 20 15 / .62), rgb(9 20 15 / 0));
}
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .logo-mark { stroke: var(--hd-accent); }
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .logo-t1 { fill: var(--hd-paper); }
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .logo-t2 { fill: rgb(248 248 242 / .74); }
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .nav-list > li > a,
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .locale-menu summary { color: var(--hd-paper); }
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .nav-list > li > a:hover { color: var(--hd-accent); }
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .nav-chev { color: rgb(248 248 242 / .72); }
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .header-cta { background: var(--hd-paper); border-color: var(--hd-paper); color: var(--ink); }
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .header-cta:hover { background: var(--hd-accent); border-color: var(--hd-accent); color: var(--ink); }
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .header-cta .i { color: var(--green-ink); }
html[data-page="home"]:not(.nav-open) .site-header:not(.is-solid, :has([aria-expanded="true"], .locale-menu[open])) .nav-toggle { background: transparent; border-color: rgb(248 248 242 / .55); color: var(--hd-paper); }

@media print {
  .immersive-hero { display: block; min-height: 0; background: #fff; color: var(--ink); }
  .immersive-hero-photo, .immersive-hero-video, .immersive-hero::after, .immersive-hero-actions, .immersive-hero-foot a, .immersive-hero-enquiry { display: none; }
  .immersive-hero-main { display: block; }
  .immersive-hero-inner { display: block; padding-block: 24px; }
  .immersive-hero h1, .immersive-hero h1 .immersive-hero-brand, .immersive-hero p { color: var(--ink); }
  .immersive-hero h1 { font-size: 36px; }
}
