@font-face {
  font-family: "Cabinet Grotesk";
  src: local("Cabinet Grotesk"), local("CabinetGrotesk-Regular");
  font-display: swap;
}

:root {
  --font-heading: "Cabinet Grotesk", "Satoshi", Arial, sans-serif;
  --font-body: "Satoshi", "Cabinet Grotesk", Arial, sans-serif;

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --shadow-sm: 0 0.375rem 1rem rgba(0, 0, 0, 0.08);
  --shadow-md: 0 1rem 2rem rgba(0, 0, 0, 0.12);

  --container-max: 80rem;
  --container-pad: clamp(1rem, 4vw, 2rem);

  --header-h: clamp(56px, 5vw + 44px, 72px);
  --header-px: clamp(16px, 4vw, 40px);
  --header-gap: clamp(0.75rem, 1vw + 0.5rem, 1.5rem);

  --logo-size: clamp(1.05rem, 0.9rem + 0.65vw, 1.55rem);
  --logo-icon: clamp(1.25rem, 1rem + 0.8vw, 1.9rem);

  --nav-size: clamp(0.92rem, 0.84rem + 0.22vw, 1rem);
  --nav-pad-y: clamp(0.55rem, 0.45rem + 0.2vw, 0.75rem);
  --nav-pad-x: clamp(0.8rem, 0.7rem + 0.45vw, 1.15rem);

  --btn-size: clamp(0.95rem, 0.88rem + 0.25vw, 1rem);
  --btn-pad-y: clamp(0.8rem, 0.68rem + 0.4vw, 1rem);
  --btn-pad-x: clamp(1rem, 0.9rem + 0.8vw, 1.45rem);

  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --hero-space: clamp(5rem, 11vw, 8rem);
}

[data-theme="light"] {
  --bg: #fffdf7;
  --bg-elev: #ffffff;
  --bg-soft: #eef8fd;
  --bg-accent-soft: #fff6cf;
  --bg-strong: #0077b6;
  --bg-strong-2: #045b8b;

  --text: #13303f;
  --text-muted: #466474;
  --text-soft: #6c8795;
  --text-on-strong: #f5fbff;

  --border: #c7dfea;
  --border-strong: #8fc8e5;

  --link: #00659a;
  --link-hover: #004f79;

  --btn-primary-bg: #0077b6;
  --btn-primary-text: #f7fcff;
  --btn-primary-hover: #005f91;

  --btn-secondary-bg: #fde68a;
  --btn-secondary-text: #3f3311;
  --btn-secondary-hover: #f4d45a;

  --btn-ghost-bg: transparent;
  --btn-ghost-text: #13303f;
  --btn-ghost-border: #9bc7da;

  --card-bg: #ffffff;
  --footer-bg: #0b3952;
  --footer-text: #eef9ff;
  --footer-muted: #bfd7e3;

  --focus: #f4b400;
  --overlay: rgba(6, 58, 88, 0.15);
  --success: #0a7b52;
  --error: #b42318;
}

[data-theme="dark"] {
  --bg: #071821;
  --bg-elev: #0e2430;
  --bg-soft: #0f2e3f;
  --bg-accent-soft: #3b3212;
  --bg-strong: #1796d7;
  --bg-strong-2: #0f7eb6;

  --text: #ecf8ff;
  --text-muted: #bfd5df;
  --text-soft: #95b0bc;
  --text-on-strong: #f7fdff;

  --border: #234656;
  --border-strong: #3f7084;

  --link: #7fd6ff;
  --link-hover: #b1e8ff;

  --btn-primary-bg: #1796d7;
  --btn-primary-text: #04141c;
  --btn-primary-hover: #3aa9e1;

  --btn-secondary-bg: #f4d776;
  --btn-secondary-text: #221a07;
  --btn-secondary-hover: #ffe596;

  --btn-ghost-bg: transparent;
  --btn-ghost-text: #ecf8ff;
  --btn-ghost-border: #487188;

  --card-bg: #102734;
  --footer-bg: #06141c;
  --footer-text: #eaf8ff;
  --footer-muted: #9bb7c5;

  --focus: #ffd766;
  --overlay: rgba(0, 0, 0, 0.15);
  --success: #33c28b;
  --error: #ff7a7a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  max-width: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture,
video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

input,
textarea,
select,
button {
  font: inherit;
}

a,
p,
li,
h1,
h2,
h3,
h4,
small,
span,
label,
summary,
button {
  overflow-wrap: break-word;
  word-break: break-word;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

.container {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section,
.page-hero {
  padding-block: var(--section-space);
}

.section-intro,
.stack {
  display: grid;
  gap: clamp(0.75rem, 1vw, 1.1rem);
}

.eyebrow {
  margin: 0;
  font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-strong);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.75rem);
}

h2 {
  font-size: clamp(1.65rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 0.92rem + 0.22vw, 1.05rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.hdr-wrap {
  min-height: var(--header-h);
  padding-inline: var(--header-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--header-gap);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.45rem, 0.4rem + 0.3vw, 0.75rem);
  min-width: 0;
  color: var(--text);
}

.brand__icon {
  display: inline-grid;
  place-items: center;
  inline-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem);
  block-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bg-strong), var(--btn-secondary-bg));
  color: var(--text-on-strong);
  font-size: var(--logo-icon);
  flex: 0 0 auto;
}

.brand__text {
  font-family: var(--font-heading);
  font-size: var(--logo-size);
  font-weight: 700;
  white-space: nowrap;
}

.site-nav {
  align-items: center;
  gap: clamp(0.4rem, 0.25rem + 0.5vw, 1rem);
}

.site-nav a,
.mobile-nav a {
  color: var(--text);
  font-size: var(--nav-size);
  font-weight: 500;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
}

.hdr-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
  background: var(--bg-elev);
  color: var(--text);
}

.menu-toggle span {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-drawer {
  display: none;
  padding-inline: var(--header-px);
  padding-bottom: clamp(0.9rem, 1vw + 0.65rem, 1.4rem);
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: clamp(0.35rem, 0.4vw, 0.6rem);
  padding-top: clamp(0.75rem, 1vw, 1rem);
}

.mobile-nav a {
  padding: clamp(0.8rem, 0.7rem + 0.2vw, 0.95rem) 0;
}

.hero {
  position: relative;
  min-height: min(92svh, 56rem);
  display: grid;
  align-items: end;
  overflow: clip;
  background: var(--bg-strong-2);
}

.hero__media,
.hero__media img,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media img {
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), var(--overlay));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--hero-space);
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.hero h1,
.hero .hero__lead,
.hero .hero__points,
.hero .eyebrow {
  color: #f5fbff;
}

.hero__lead {
  max-width: 42rem;
  font-size: clamp(1.02rem, 1rem + 0.3vw, 1.22rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1vw, 1rem);
}

.hero__points {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.15rem;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);
}

.page-hero {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--btn-secondary-bg) 28%, transparent), transparent 35%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 78%, transparent), transparent);
}

.card-grid,
.stat-grid {
  display: grid;
  gap: clamp(1rem, 1.6vw, 1.6rem);
}

.card-grid--2 {
  grid-template-columns: 1fr;
}

.card-grid--3 {
  grid-template-columns: 1fr;
}

.card,
.service-card,
.info-card,
.stat-card,
.visual-card,
.cta-box,
.map-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card,
.service-card {
  overflow: hidden;
}

.card img,
.service-card img,
.visual-card img,
.map-shot img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card,
.service-card,
.info-card,
.stat-card {
  padding: clamp(1rem, 2.2vw, 1.6rem);
}

.card,
.service-card {
  display: grid;
  gap: clamp(0.8rem, 1vw, 1rem);
}

.card h3,
.service-card h2,
.info-card h2,
.stat-card h3 {
  color: var(--text);
}

.text-link {
  font-weight: 700;
}

.feature-list,
.contact-list,
.footer-list {
  display: grid;
  gap: clamp(0.55rem, 0.75vw, 0.85rem);
  color: var(--text-muted);
}

.section--accent {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 72%, transparent), transparent);
}

.split,
.contact-layout,
.map-card {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
}

.visual-card,
.map-shot {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.cta-box {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-strong) 92%, transparent), color-mix(in srgb, var(--bg-strong-2) 88%, transparent));
}

.cta-box h2,
.cta-box p,
.cta-box .eyebrow {
  color: var(--text-on-strong);
}

.faq-list {
  display: grid;
  gap: clamp(0.8rem, 1vw, 1rem);
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding-inline: clamp(1rem, 2vw, 1.4rem);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding-block: clamp(1rem, 1vw + 0.8rem, 1.25rem);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding-bottom: clamp(1rem, 1vw + 0.7rem, 1.2rem);
}

.contact-form {
  display: grid;
  gap: clamp(1rem, 1.2vw, 1.2rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.9rem, 1.4vw, 1.2rem);
}

.form-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.form-field--full {
  grid-column: 1 / -1;
}

label {
  color: var(--text);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg-elev);
  color: var(--text);
  padding: clamp(0.9rem, 0.85rem + 0.3vw, 1rem) clamp(0.95rem, 0.85rem + 0.4vw, 1.05rem);
  outline: none;
}

textarea {
  resize: vertical;
}

.form-error {
  min-height: 1.1em;
  color: var(--error);
  font-size: 0.9rem;
}

.form-note,
.form-success {
  font-size: 0.95rem;
}

.form-success {
  color: var(--success);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  max-width: 100%;
  min-height: 2.9rem;
  border-radius: 999px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  font-size: var(--btn-size);
  font-weight: 700;
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn--primary:hover {
  background: var(--btn-primary-hover);
  color: var(--btn-primary-text);
}

.btn--secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
}

.btn--secondary:hover {
  background: var(--btn-secondary-hover);
  color: var(--btn-secondary-text);
}

.btn--ghost {
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-text);
  border-color: var(--btn-ghost-border);
}

.site-footer {
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  gap: clamp(1.4rem, 2vw, 2rem);
}

.site-footer p,
.site-footer li,
.site-footer a,
.site-footer h3 {
  color: inherit;
}

.site-footer h3 {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
}

.footer-list {
  padding-left: 1rem;
  color: var(--footer-muted);
}

.footer-copy {
  color: var(--footer-muted);
}

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: clamp(0.75rem, 2vw, 1rem);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  width: min(100%, 76rem);
  margin-inline: auto;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  padding: clamp(1rem, 2vw, 1.25rem);
  display: grid;
  gap: 1rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .site-header .hdr-cta {
    display: inline-flex;
  }

  .desktop-nav {
    display: none;
  }

  .site-header .hdr-cta {
    order: 2;
  }

  .menu-toggle {
    order: 3;
  }

  .card-grid--2,
  .contact-layout,
  .split,
  .map-card,
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1023px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-drawer {
    display: none !important;
  }

  .hdr-wrap {
    grid-template-columns: auto 1fr auto;
  }

  .card-grid--3,
  .stat-grid,
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .site-header .hdr-cta {
    display: none !important;
  }

  .hero__actions,
  .cookie-banner__actions {
    flex-direction: column;
  }

  .hero__actions .btn,
  .cookie-banner__actions .btn {
    width: 100%;
  }
}
/* === Layout polish after RU/Europe localization === */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
}

/* Prevent awkward letter-by-letter breaks in Russian text while still avoiding overflow. */
a,
p,
li,
h1,
h2,
h3,
h4,
small,
span,
label,
summary,
button {
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Header: keep navigation stable with longer Russian labels. */
.hdr-wrap {
  width: 100%;
  max-width: 96rem;
  margin-inline: auto;
}

.brand {
  flex: 0 0 auto;
}

.site-nav {
  min-width: 0;
  justify-content: center;
}

.site-nav a,
.mobile-nav a {
  line-height: 1.2;
}

.site-nav a {
  padding: 0.55rem 0.35rem;
}

/* Hero readability and spacing. */
.hero {
  min-height: clamp(34rem, 86svh, 56rem);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 31, 47, 0.68), rgba(3, 31, 47, 0.28) 55%, rgba(3, 31, 47, 0.18)),
    linear-gradient(180deg, rgba(3, 31, 47, 0.25), rgba(3, 31, 47, 0.38));
  pointer-events: none;
}

.hero__content {
  align-self: end;
  max-width: 78rem;
}

.hero h1 {
  max-width: 58rem;
  text-wrap: balance;
}

.hero__lead {
  text-wrap: pretty;
}

.hero__points {
  max-width: 44rem;
}

/* Better section rhythm after translated content became longer. */
.section-intro {
  max-width: 58rem;
  margin-bottom: clamp(1.35rem, 2vw, 2rem);
}

.page-hero .container {
  max-width: 64rem;
}

.page-hero h1,
.section-intro h2,
.cta-box h2 {
  text-wrap: balance;
}

/* Cards: equal height, cleaner images, no cramped buttons/links. */
.card-grid,
.stat-grid {
  align-items: stretch;
}

.card,
.service-card,
.info-card,
.stat-card {
  min-width: 0;
}

.card,
.service-card {
  height: 100%;
  align-content: start;
}

.card img,
.service-card img {
  width: calc(100% + clamp(2rem, 4.4vw, 3.2rem));
  max-width: none;
  margin: calc(clamp(1rem, 2.2vw, 1.6rem) * -1) calc(clamp(1rem, 2.2vw, 1.6rem) * -1) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card .text-link,
.service-card .btn {
  margin-top: auto;
  justify-self: start;
}

.service-card .btn {
  white-space: normal;
}

.feature-list li,
.contact-list li,
.footer-list li {
  padding-left: 0.1rem;
}

/* Split blocks: avoid image/content imbalance. */
.split {
  align-items: center;
}

.visual-card img,
.map-shot img {
  min-height: 100%;
}

/* CTA: nicer desktop layout and safer long button text. */
.cta-box {
  overflow: hidden;
}

.cta-box .btn {
  white-space: normal;
  justify-self: start;
}

/* Forms: stable controls and Russian placeholders. */
input,
select,
textarea {
  min-width: 0;
}

textarea {
  min-height: 9rem;
}

/* Footer: long address and legal links should not distort columns. */
.footer-grid > * {
  min-width: 0;
}

.site-footer a,
.site-footer li {
  overflow-wrap: anywhere;
}

/* Cookie banner: cleaner on mobile and desktop. */
.cookie-banner__inner {
  align-items: center;
}

.cookie-banner__inner p {
  line-height: 1.45;
}

.cookie-banner__actions .btn {
  min-width: 9rem;
}

@media (min-width: 768px) {
  .cta-box {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cookie-banner__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contact-layout,
  .map-card {
    align-items: start;
  }
}

@media (min-width: 1023px) {
  .hdr-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .desktop-nav {
    gap: clamp(0.35rem, 0.5vw, 0.75rem);
  }

  .site-nav a {
    font-size: clamp(0.84rem, 0.72rem + 0.28vw, 0.96rem);
  }

  .hdr-cta {
    padding-inline: clamp(0.95rem, 1vw, 1.2rem);
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.78fr);
  }
}

@media (min-width: 1180px) {
  .site-nav a {
    padding-inline: 0.5rem;
  }
}

@media (max-width: 767px) {
  :root {
    --section-space: clamp(2.5rem, 10vw, 3.75rem);
    --hero-space: clamp(4rem, 14vw, 6rem);
  }

  .hdr-wrap {
    padding-inline: clamp(1rem, 5vw, 1.25rem);
  }

  .brand__text {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 40rem;
  }

  .hero__media::after {
    background: linear-gradient(180deg, rgba(3, 31, 47, 0.42), rgba(3, 31, 47, 0.72));
  }

  .hero__content {
    padding-bottom: clamp(3rem, 14vw, 5rem);
  }

  .card,
  .service-card,
  .info-card,
  .stat-card,
  .cta-box {
    border-radius: var(--radius-md);
  }

  .card img,
  .service-card img {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .btn {
    width: 100%;
    white-space: normal;
  }

  .cookie-banner {
    padding: 0.65rem;
  }

  .cookie-banner__inner {
    border-radius: 1rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: clamp(1.8rem, 12vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.45rem, 9vw, 1.85rem);
  }

  .brand__text {
    max-width: 10rem;
  }
}
