/* Shared technical fixes; page styles retain the supplied composition and copy. */
html { scroll-padding-top: 88px; }
img { height: auto; }
html[lang="ru"] [data-en] { display: none !important; }
html[lang="ru"] [data-ru] { display: initial; }
html[lang="ru"] :is(div, p, h1, h2, h3)[data-ru] { display: block; }
html[lang="en"] [data-ru] { display: none !important; }

.nav {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 1000 !important;
  height: 72px !important;
  min-height: 72px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  background: rgba(8, 28, 26, .96) !important;
  color: white !important;
}
.nav .ni {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 20px !important;
  height: 72px !important;
  min-height: 72px !important;
  width: min(1240px, calc(100% - 2 * var(--pad))) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.nav .brand {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  height: 62px !important;
  padding: 0 !important;
  gap: 10px !important;
  background: transparent !important;
  backdrop-filter: none !important;
}
.nav .brand img {
  width: 105px !important;
  height: 60px !important;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}
.nav .product-label {
  font-size: 18px !important;
  letter-spacing: .11em !important;
  color: #d9ff59 !important;
}
.nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 3;
  grid-row: 1;
}
.nav .links {
  grid-column: 2;
  grid-row: 1;
  justify-self: end !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end !important;
  gap: 0 !important;
  margin: 0 !important;
}
.nav .links a { display: block; white-space: nowrap; padding-block: 12px; }
.site-links, .page-links { display: flex; align-items: center; }
.site-links { gap: 20px; }
.page-links { gap: 16px; border-top: 1px solid #ffffff26; font-size: 12px; }
.nav .site-links a { min-height: 40px; padding-block: 10px; }
.nav .page-links a { padding-block: 4px; }
.page-links-label { color: #ffffff99; font-size: 11px; }
.nav .site-links a[aria-current="page"] { color: #d9ff59; box-shadow: inset 0 -2px #d9ff59; }
.nav .links a:hover { color: #d9ff59; }
.nav .lang { width: 44px; min-height: 44px; padding: 6px; cursor: pointer; }
.menu-toggle { display: none; }
.nav button { font: inherit; }
:is(a, button, [tabindex]):focus-visible { outline: 3px solid #a3bd31; outline-offset: 4px; }
.nav :is(a, button):focus-visible { outline-color: #d9ff59; }
a:is(.btn, .cta, .final-contact-btn, .dest-cta) { border-radius: 4px !important; min-height: 44px; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

@media (max-width: 980px) {
  html { scroll-padding-top: 80px; }
  .nav { height: 64px !important; min-height: 64px !important; }
  .nav .ni {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    height: 64px !important;
    min-height: 64px !important;
  }
  .nav .brand { height: 52px !important; gap: 8px !important; }
  .nav .brand img { width: 78px !important; height: 48px !important; }
  .nav .product-label { font-size: clamp(10px, 3vw, 14px) !important; letter-spacing: .06em !important; }
  .nav .nav-actions { grid-column: 2; }
  .nav .links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 8px 16px;
    max-height: calc(100svh - 80px);
    overflow-y: auto;
    background: #081c1a;
    border: 1px solid #ffffff33;
    font-size: 16px;
  }
  .nav .links a { display: block !important; min-height: 48px; padding: 12px 4px; }
  .site-links, .page-links { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .page-links { margin-top: 8px; padding-top: 12px; font-size: 14px; }
  .page-links-label { padding: 0 4px 4px; }
  .nav .site-links a[aria-current="page"] { padding-left: 12px; background: #d9ff5910; box-shadow: inset 2px 0 #d9ff59; }
  .nav.nav-ready .links { grid-area: auto; display: none !important; }
  .nav.nav-ready.menu-open .links { display: flex !important; }
  .nav .menu-toggle:not([hidden]) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff99;
    border-radius: 4px;
    background: transparent;
    color: white;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  /* Avoid covering page content when JavaScript is disabled or unavailable. */
  .nav:not(.nav-ready) { position: relative !important; height: auto !important; }
  .nav:not(.nav-ready) .ni { height: auto !important; grid-template-rows: 64px auto; padding-bottom: 12px !important; }
  .nav:not(.nav-ready) .links { position: static; }
}
@media (max-width: 850px) {
  .hero { min-height: 100svh !important; }
  .hero :is(.hero-inner, .w) { padding-top: 108px !important; }
  h1, h2, h3 { overflow-wrap: anywhere; }
  .head { flex-wrap: wrap; }
  .head > div { min-width: 0; }
  /* Russian copy has explicit line breaks; allow wrapping inside long lines. */
  .home-hero > .w > div[data-ru] h1 { width: 100% !important; max-width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Draw contact arrows as vectors; never depend on platform emoji fonts. */
.final-contact-btn .contact-arrow,
.actions .btn .contact-arrow {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.final-contact-btn .contact-arrow { order: 2; }
.actions .btn { align-items: center; gap: 12px; }
