/* SEA-TEST — maritime design system (light / dark)
   Fonts are loaded from <link> tags in each page (Manrope for headings, Inter for text). */

:root {
  --font-display: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg: #f3f7fa;
  --bg-elevated: #ffffff;
  --bg-muted: #e7eff5;
  --bg-tint: #eaf2f7;
  --text: #0a2236;
  --text-soft: #46596b;
  --accent: #087f7d;
  --accent-strong: #066563;
  --accent-bright: #2dd4bf;
  --accent-soft: rgba(8, 127, 125, 0.1);
  --line: rgba(10, 34, 54, 0.1);
  --line-strong: rgba(10, 34, 54, 0.18);

  --navy-900: #061a2c;
  --navy-800: #0a2540;
  --navy-700: #0d3b5c;

  --grad-brand: linear-gradient(135deg, #0b5f86 0%, #087f7d 100%);
  --grad-text: linear-gradient(120deg, #0b5f86, #087f7d 60%, #17a89f);
  --grad-dark: linear-gradient(135deg, #0a2540 0%, #0d4a68 55%, #0b7d7f 100%);

  --shadow-sm: 0 1px 2px rgba(10, 34, 54, 0.05), 0 4px 14px rgba(10, 34, 54, 0.06);
  --shadow: 0 2px 4px rgba(10, 34, 54, 0.04), 0 14px 38px rgba(10, 34, 54, 0.09);
  --shadow-lg: 0 4px 10px rgba(10, 34, 54, 0.05), 0 28px 70px rgba(10, 34, 54, 0.16);

  --success: #1a7f4b;
  --danger: #b42318;
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --max: 1180px;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #061220;
  --bg-elevated: #0c1f33;
  --bg-muted: #10283f;
  --bg-tint: #0a1b2c;
  --text: #e8f2f8;
  --text-soft: #9db3c4;
  --accent: #35d0c8;
  --accent-strong: #7fe6e0;
  --accent-bright: #5eead4;
  --accent-soft: rgba(53, 208, 200, 0.13);
  --line: rgba(232, 242, 248, 0.11);
  --line-strong: rgba(232, 242, 248, 0.2);

  --grad-brand: linear-gradient(135deg, #35d0c8 0%, #5eead4 100%);
  --grad-text: linear-gradient(120deg, #7fe6e0, #35d0c8);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 14px 38px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.3), 0 28px 70px rgba(0, 0, 0, 0.5);

  --success: #3ecf8e;
  --danger: #ff6b6b;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  /* keep the layout width constant when the page height (and the scrollbar) changes with the language */
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3,
.brand-name {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin: 0 0 0.55em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); margin: 0 0 0.5em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; letter-spacing: -0.02em; font-weight: 700; }

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  text-wrap: pretty;
}

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

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

/* ───────────── Header ───────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  background: color-mix(in srgb, var(--bg-elevated) 78%, transparent);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(10, 34, 54, 0.1);
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #fdfefe url('../images/logo-light.png') center / cover no-repeat;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.18), inset 0 0 0 1px rgba(10, 34, 54, 0.08);
  flex-shrink: 0;
}

[data-theme='dark'] .brand-mark {
  background: #011021 url('../images/logo-dark.png') center / cover no-repeat;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.brand-name {
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  font-weight: 800;
  white-space: nowrap;
}

.brand-name span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav a[aria-current='page'] {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* "Главная" / "Home" differ in width: reserve the wider one so the centered nav does not shift */
.nav a:first-child {
  min-width: 5.7rem;
  text-align: center;
}

/* Narrow desktop: tighten the header so the fixed-width button still fits without overflow */
@media (min-width: 901px) and (max-width: 1060px) {
  .header-inner { gap: 0.5rem; }
  .nav { gap: 0.1rem; }
  .nav a { padding: 0.45rem 0.5rem; font-size: 0.86rem; }
  .header-actions { gap: 0.4rem; }
}





/* ───────────── Language select with flags ───────────── */
.lang-select {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 5.6rem;
  height: 42px;
  padding: 0 0.8rem 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.lang-trigger:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.lang-select.is-open .lang-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.lang-code {
  flex: 1;
  text-align: left;
}

.lang-chevron {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.lang-select.is-open .lang-chevron {
  transform: rotate(225deg) translateY(-1px);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  /* hide after the fade-out, but become visible (and focusable) immediately on open */
  transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
}

.lang-select.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0s;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
  outline: none;
}

.lang-option.is-active {
  color: var(--accent-strong);
}

.lang-option.is-active::after {
  content: '';
  margin-left: auto;
  width: 0.45rem;
  height: 0.85rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(40deg) translateY(-2px);
}

/* flags (subset of the flag-icons library, 4x3 SVGs) */
.fi {
  display: inline-block;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.12rem;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(10, 34, 54, 0.2);
}

.fi-ru { background-image: url('../images/flags/ru.svg'); }
.fi-gb { background-image: url('../images/flags/gb.svg'); }
.fi-ph { background-image: url('../images/flags/ph.svg'); }

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  font-size: 1.15rem;
}

.icon-sun,
.icon-moon {
  width: 18px;
  height: 18px;
}

[data-theme='dark'] .icon-sun { display: none; }
[data-theme='light'] .icon-moon,
:root:not([data-theme='dark']) .icon-moon { display: none; }
[data-theme='dark'] .icon-moon { display: block; }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 26px rgba(8, 127, 125, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

[data-theme='dark'] .btn-primary {
  color: #03222b;
  box-shadow: 0 10px 26px rgba(53, 208, 200, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 14px 34px rgba(8, 127, 125, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.06);
}

[data-theme='dark'] .btn-primary:hover {
  color: #03222b;
  box-shadow: 0 14px 34px rgba(53, 208, 200, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.15rem, 3.2vh, 1.75rem);
}

/* ───────────── Floating "Contact us" button ───────────── */
.fab {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.6rem 0.6rem 0.6rem;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 18px 42px rgba(8, 127, 125, 0.45), 0 3px 8px rgba(10, 34, 54, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s, filter 0.2s, box-shadow 0.25s;
}

.fab.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.fab.is-visible:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: 0 24px 52px rgba(8, 127, 125, 0.55), 0 4px 10px rgba(10, 34, 54, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.fab.is-visible:active {
  transform: scale(0.98);
}

.fab-icon-wrap {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fab:hover .fab-icon-wrap {
  transform: rotate(-8deg) scale(1.08);
}

.fab-icon {
  width: 24px;
  height: 24px;
}

.fab-text {
  display: grid;
  gap: 0.1rem;
  text-align: left;
  line-height: 1.2;
}

.fab-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.fab-sub {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.88;
}

[data-theme='dark'] .fab,
[data-theme='dark'] .fab.is-visible:hover {
  color: #03222b;
  box-shadow: 0 18px 42px rgba(53, 208, 200, 0.32), 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

[data-theme='dark'] .fab-icon-wrap {
  background: rgba(3, 34, 43, 0.14);
  box-shadow: inset 0 0 0 1px rgba(3, 34, 43, 0.22);
}

@media (prefers-reduced-motion: no-preference) {
  /* soft pulsing ring that keeps inviting a click; stops while hovering */
  .fab.is-visible::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
    animation: fab-pulse 2.6s ease-out 0.8s infinite;
    pointer-events: none;
  }

  .fab.is-visible:hover::after {
    animation: none;
  }

  .fab.is-visible {
    animation: fab-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
  }
}

@keyframes fab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6); }
  70%, 100% { box-shadow: 0 0 0 22px rgba(45, 212, 191, 0); }
}

@keyframes fab-pop {
  0% { opacity: 0; transform: translateY(24px) scale(0.9); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .fab { gap: 0.7rem; padding: 0.5rem 1.3rem 0.5rem 0.5rem; }
  .fab-icon-wrap { width: 2.6rem; height: 2.6rem; }
  .fab-title { font-size: 0.96rem; }
  .fab-sub { font-size: 0.74rem; }
}

/* hidden until the saved (non-default) language is applied, so the page never flashes in the wrong language */
.i18n-pending body {
  visibility: hidden;
}

.messenger[hidden] {
  display: none;
}

/* ───────────── Home hero ───────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 1px);
  min-height: calc(100svh - var(--header-h) - 1px);
  padding: clamp(2.5rem, 8vh, 6rem) 0 clamp(4.75rem, 11vh, 7rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(5, 20, 36, 0.95) 0%, rgba(7, 36, 58, 0.86) 38%, rgba(8, 70, 88, 0.45) 72%, rgba(8, 90, 104, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 20, 36, 0.55) 0%, transparent 40%);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  width: 640px;
  height: 640px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 65%);
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: -1.375rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.scroll-cue:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
}

.scroll-cue span {
  width: 0.6rem;
  height: 0.6rem;
  margin-top: -0.25rem;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue span {
    animation: cue-bounce 1.8s ease-in-out infinite;
  }
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(-2px) rotate(45deg); }
  50% { transform: translateY(5px) rotate(45deg); }
}

#stats {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy-700);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin-left: max((100% - var(--max)) / 2, 1rem);
  color: #f4fbfd;
}

.hero-content p {
  color: rgba(236, 247, 251, 0.88);
  font-size: clamp(1rem, min(1.6vw, 2.6vh), 1.2rem);
  max-width: 36rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, min(5.2vw, 7.4vh), 4.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.4em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(0.75rem, 2.4vh, 1.25rem);
  padding: 0.42rem 0.95rem 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.25);
}

.hero .btn-primary,
.page-hero .btn-primary {
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
  color: #03222b;
  box-shadow: 0 12px 30px rgba(45, 212, 191, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero .btn-primary:hover,
.page-hero .btn-primary:hover {
  color: #03222b;
  box-shadow: 0 16px 38px rgba(45, 212, 191, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero .btn-ghost,
.page-hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero .btn-ghost:hover,
.page-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* ───────────── Sections ───────────── */
.section {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
}

.section-tint {
  background: color-mix(in srgb, var(--bg-muted) 60%, var(--bg));
  border-block: 1px solid var(--line);
}

main > .section-tint:last-child {
  border-bottom: 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.section-head::before {
  content: '';
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 1.1rem;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.section-head p {
  font-size: 1.08rem;
}

.grid-3,
.grid-2,
.grid-services {
  display: grid;
  gap: 1.5rem;
}

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

/* Stats strip overlapping the hero */
.hero + .section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stat {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 1.9rem) clamp(1.15rem, 2.4vw, 2rem);
}

.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--line-strong);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.4;
}

/* Cards */
.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.panel:not(.soft):not(.offer-card):not(.service-card)::before {
  content: '';
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 1.1rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

a.panel:hover,
.grid-2 > .panel:hover,
.grid-3 > .panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.panel.soft {
  background: var(--bg-elevated);
}

.offer-card,
.service-card.panel {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.offer-card {
  position: relative;
  isolation: isolate;
}

.offer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 62%);
  pointer-events: none;
}

.offer-icon {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  margin: 1.75rem 1.75rem 0;
  border-radius: 22px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 127, 125, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}

[data-theme='dark'] .offer-icon {
  color: #03222b;
  box-shadow: 0 14px 30px rgba(53, 208, 200, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.offer-icon svg {
  width: 2.1rem;
  height: 2.1rem;
}

.offer-card:hover .offer-icon {
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
}

.offer-body {
  padding: 1.4rem 1.75rem 1.9rem;
}

.offer-body h3 {
  margin-bottom: 0.4em;
}

.offer-body p {
  margin: 0;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(8, 127, 125, 0.28);
}

[data-theme='dark'] .step-num {
  color: #03222b;
}

/* Roadmap (How it works): a line with numbered stops, the last one is the finish */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

/* the route between the first and the last stop */
.steps::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 10%;
  right: 10%;
  top: 1.75rem;
  height: 4px;
  margin-top: -2px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-bright) 55%, transparent);
}

.steps > .panel,
.steps > .panel.soft {
  position: relative;
  z-index: 1;
  padding: 0 0.9rem;
  text-align: center;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.steps .step-num {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 12px 24px rgba(8, 127, 125, 0.34);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme='dark'] .steps .step-num {
  box-shadow: 0 12px 24px rgba(53, 208, 200, 0.22);
}

.steps > .panel:hover .step-num {
  transform: scale(1.12);
}

.steps .panel h3 {
  font-size: 1.08rem;
}

.steps .panel p {
  font-size: 0.94rem;
  line-height: 1.55;
}

/* finish: a check mark instead of the number */
.steps > .panel:last-child .step-num {
  position: relative;
  font-size: 0;
  background: linear-gradient(135deg, #12a36b, #2dd4bf);
}

.steps > .panel:last-child .step-num::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.7rem;
  height: 1.7rem;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

[data-theme='dark'] .steps > .panel:last-child .step-num::after {
  background: #03222b;
}

/* Check list */
.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.list-check li {
  position: relative;
  padding-left: 2.2rem;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

.list-check li::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.4rem;
  width: 0.42rem;
  height: 0.72rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(40deg);
  border-radius: 1px;
}

h3 + .list-check {
  margin-top: 1rem;
}

.split + .split,
.list-check + h3 {
  margin-top: 2rem;
}

/* Service cards (home) */
.grid-services {
  grid-template-columns: repeat(6, 1fr);
}

.grid-services > .service-card {
  grid-column: span 2;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  color: inherit;
}

.service-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
  overflow: hidden;
  display: block;
  padding: 0;
  margin: 0;
}

.service-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 26, 44, 0.45));
  pointer-events: none;
}

.service-card .thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service-card:hover .thumb > img {
  transform: scale(1.07);
}

.service-card .thumb-logo-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  width: min(56%, 190px);
  padding: 0.4rem 0.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.service-card .thumb-logo-badge.is-tight {
  width: min(50%, 160px);
  padding: 0.6rem 0.85rem;
}

.service-card .thumb-logo-badge.is-dark {
  width: min(62%, 210px);
  padding: 0.7rem 0.95rem;
  background: #0c1f33;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.service-card .thumb-logo-badge img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.service-card h3,
.service-card p,
.service-card .more {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.service-card h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.3rem;
}

.service-card p {
  margin: 0;
  flex: 1;
  font-size: 0.96rem;
}

.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.94rem;
  padding-bottom: 1.5rem;
  margin-top: 0.85rem;
  transition: gap 0.2s;
}

.service-card:hover .more {
  gap: 0.7rem;
}

/* Wide horizontal cards for 4th & 5th service */
@media (min-width: 1001px) {
  .grid-services > .service-card:nth-child(n + 4) {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 42% 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .grid-services > .service-card:nth-child(n + 4) .thumb {
    grid-column: 1;
    grid-row: 1 / span 3;
    aspect-ratio: auto;
    min-height: 230px;
  }

  .grid-services > .service-card:nth-child(n + 4) h3 { grid-column: 2; grid-row: 1; align-self: end; margin-top: 1.5rem; }
  .grid-services > .service-card:nth-child(n + 4) p { grid-column: 2; grid-row: 2; }
  .grid-services > .service-card:nth-child(n + 4) .more { grid-column: 2; grid-row: 3; align-self: start; }
}

/* ───────────── Inner page hero ───────────── */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
  padding: clamp(2.25rem, 7vh, 6rem) 0 clamp(2.75rem, 8vh, 6.25rem);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-img, none) center / cover no-repeat;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 90% 0%, rgba(45, 212, 191, 0.25), transparent 45%),
    linear-gradient(100deg, rgba(5, 20, 36, 0.96) 0%, rgba(7, 36, 58, 0.88) 45%, rgba(8, 70, 88, 0.55) 100%);
}

.page-hero h1 {
  color: #fff;
  letter-spacing: -0.04em;
  font-size: clamp(2.2rem, min(5.2vw, 8vh), 4rem);
}

.page-hero .lead {
  font-size: clamp(1rem, min(1.5vw, 2.6vh), 1.2rem);
  max-width: 44rem;
  color: rgba(236, 247, 251, 0.88);
}

.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: clamp(1rem, 2.6vh, 1.5rem) 0 0;
  padding: 0;
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-chips li::before {
  content: '';
  width: 0.38rem;
  height: 0.7rem;
  margin: 0 0.25rem 0.2rem 0.2rem;
  border-right: 2.5px solid var(--accent-bright);
  border-bottom: 2.5px solid var(--accent-bright);
  transform: rotate(40deg);
  flex-shrink: 0;
}

.hero-chips strong {
  color: #fff;
  font-weight: 800;
}

/* Split layout + media */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split h2 {
  margin-bottom: 0.7em;
}

.image-slot {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-muted), var(--accent-soft));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-slot.is-dark {
  background: #0c1f33;
  border-color: rgba(255, 255, 255, 0.12);
}

.image-slot.is-tight {
  padding: 1rem 1.5rem;
}

.image-slot img {
  width: min(100%, 420px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.image-slot.image-slot-photo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}

.media-stack {
  position: relative;
}

.media-stack .image-slot-photo {
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  margin: 0 !important;
}

.media-stack .image-slot:not(.image-slot-photo) {
  position: absolute;
  z-index: 2;
  left: 1.1rem;
  bottom: 1.1rem;
  width: min(68%, 310px);
  aspect-ratio: auto;
  padding: 0.55rem 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 34, 54, 0.08);
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.media-stack .image-slot.is-dark:not(.image-slot-photo) {
  width: min(66%, 300px);
  padding: 1rem 1.3rem;
  background: #0c1f33;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.media-stack .image-slot.is-tight:not(.image-slot-photo) {
  width: min(60%, 270px);
  padding: 0.9rem 1.25rem;
}

.media-stack .image-slot.is-tight:not(.image-slot-photo) img {
  width: auto;
  max-width: 100%;
  max-height: 84px;
  margin-inline: auto;
}

.media-stack .image-slot:not(.image-slot-photo) img {
  width: 100%;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ───────────── Reviews ───────────── */
.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.reviews-head::before {
  display: none;
}

.reviews-head > div:first-child {
  max-width: 42rem;
}

.reviews-head > div:first-child::before {
  content: '';
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 1.1rem;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.slider-nav {
  display: flex;
  gap: 0.55rem;
  flex-shrink: 0;
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, color 0.2s;
}

.slider-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

[data-theme='dark'] .slider-btn:hover {
  color: #03222b;
}

.reviews-slider {
  overflow: hidden;
  margin-inline: calc(-1 * min(1rem, 2vw));
  padding-inline: min(1rem, 2vw);
}

.reviews-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.6rem 0 1.5rem;
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review {
  position: relative;
  flex: 0 0 min(400px, 86vw);
  scroll-snap-align: start;
  margin: 0;
  padding: 3.3rem 1.6rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.review::before {
  content: '“';
  position: absolute;
  top: 0.55rem;
  left: 1.4rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.6rem;
  line-height: 1;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.review p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
}

.review-author {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: var(--text);
  font-size: 0.93rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  border: none;
  padding: 0;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.2s, width 0.25s;
}

.slider-dot.is-active {
  background: var(--accent);
  width: 26px;
}

/* ───────────── Table ───────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

th,
td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}

td:first-child {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

td:nth-child(2) {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-strong);
}

td:last-child {
  color: var(--text-soft);
}

tbody tr {
  transition: background 0.2s;
}

tbody tr:hover {
  background: var(--accent-soft);
}

tr:last-child td {
  border-bottom: none;
}

/* ───────────── CTA band ───────────── */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 1rem 0 0;
  padding: clamp(2.25rem, 5vw, 3.75rem);
  border-radius: 30px;
  background: var(--grad-dark);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.cta-band::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 92% 0%, rgba(94, 234, 212, 0.4), transparent 42%),
    radial-gradient(circle at 0% 110%, rgba(45, 212, 191, 0.22), transparent 45%);
}

.cta-band::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -120px;
  bottom: -160px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 50px rgba(255, 255, 255, 0.03),
    0 0 0 100px rgba(255, 255, 255, 0.025);
}

.cta-band h2 {
  color: #fff;
  grid-column: 1;
  margin-bottom: 0.35em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 38rem;
  grid-column: 1;
  font-size: 1.05rem;
}

.cta-band > .btn-row {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  justify-content: flex-end;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--navy-800);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.cta-band .btn-primary:hover {
  color: var(--navy-800);
  background: #e9fffb;
  filter: none;
}

.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* ───────────── Contact / messengers ───────────── */
.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.messenger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.messenger:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-2px);
}

.messenger-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.messenger[data-messenger='telegram'] .messenger-icon { color: #26a5e4; }
.messenger[data-messenger='whatsapp'] .messenger-icon { color: #25d366; }

.phone-link {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.phone-link:hover {
  color: var(--accent-strong);
}

/* ───────────── Footer (always dark) ───────────── */
.site-footer {
  position: relative;
  margin-top: 0;
  padding: clamp(3rem, 5vw, 4.25rem) 0 1.75rem;
  color: #c3d4e0;
  background:
    radial-gradient(circle at 85% -20%, rgba(45, 212, 191, 0.14), transparent 45%),
    var(--navy-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fe6e0;
  margin-bottom: 1.1rem;
}

.footer-col:first-child h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #fff;
}

.footer-col:first-child h3::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  margin: -4px 0.7rem 0 0;
  border-radius: 12px;
  background: #011021 url('../images/logo-dark.png') center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.footer-col a,
.footer-col p {
  display: block;
  color: #a9bdcc;
  text-decoration: none;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.footer-col > a:not(.phone-link):hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-col > a {
  transition: color 0.2s, transform 0.2s;
}

.site-footer .phone-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 1.5rem;
  color: #fff;
}

.site-footer .phone-link:hover {
  color: #7fe6e0;
}

.site-footer .messenger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  margin-bottom: 0;
}

.site-footer .messenger:hover {
  background: rgba(45, 212, 191, 0.18);
  border-color: rgba(45, 212, 191, 0.6);
  color: #fff;
}

.footer-note {
  margin-top: 0.45rem;
  max-width: 52rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #6b8497;
}

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f97a9;
  font-size: 0.86rem;
}

/* ───────────── Modal ───────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 30, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(100%, 680px);
  max-height: min(94vh, 900px);
  max-height: min(94dvh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 0;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-panel::before {
  content: '';
  z-index: 2;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0b5f86, #087f7d, #2dd4bf);
}

.modal.is-open .modal-panel {
  transform: none;
}

.modal-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2.5rem 2.5rem 2.25rem;
}

/* slim scrollbar kept clear of the rounded corners */
.modal-scroll::-webkit-scrollbar {
  width: 10px;
}

.modal-scroll::-webkit-scrollbar-track {
  margin: 1.25rem 0;
  background: transparent;
}

.modal-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--line-strong);
  background-clip: padding-box;
}

@supports (-moz-appearance: none) {
  .modal-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
}

.modal-panel h2 {
  font-size: 2rem;
  padding-right: 3rem;
}

.modal-panel > p {
  font-size: 1.02rem;
  max-width: 32rem;
}

.modal-close {
  z-index: 3;
  box-shadow: 0 0 0 4px var(--bg-elevated);
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
  background: var(--accent-soft);
  transform: rotate(90deg);
}

.form-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

/* Telegram username check: dropdown under the field, the choice goes into the field */
.contact-field {
  position: relative;
}

.input-wrap {
  position: relative;
  display: block;
}

.contact-avatar {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  overflow: hidden;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  pointer-events: none;
}

[data-theme='dark'] .contact-avatar {
  color: #03222b;
}

.contact-avatar[hidden],
.contact-clear[hidden] {
  display: none;
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.input-wrap.has-chip input {
  padding-left: 3.5rem;
  padding-right: 3rem;
  border-color: var(--accent);
  background: var(--bg-elevated);
  font-weight: 700;
}

.contact-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  width: 1.9rem;
  height: 1.9rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.contact-clear:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.input-wrap.is-invalid input {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent);
}

/* opens under the field, over the next fields, so nothing below moves */
.contact-lookup {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  padding: 0.4rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  animation: lookup-in 0.2s ease both;
}

.contact-lookup[hidden] {
  display: none;
}

.lookup-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-soft);
}

.lookup-note.is-error {
  color: var(--danger);
}

.lookup-spinner {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: lookup-spin 0.7s linear infinite;
}

.lookup-title {
  padding: 0.35rem 0.75rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.lookup-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.lookup-item:hover,
.lookup-item:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.lookup-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
}

[data-theme='dark'] .lookup-avatar {
  color: #03222b;
}

.lookup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lookup-info {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.lookup-name {
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-user {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.lookup-type {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-soft);
}

.lookup-action {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--accent-strong);
}

.lookup-warn {
  margin: 0;
  padding: 0.1rem 0.75rem 0.55rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

@keyframes lookup-spin {
  to { transform: rotate(360deg); }
}

@keyframes lookup-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* tests: several can be selected */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  position: relative;
  display: inline-flex;
  font-weight: 600;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.chip:hover span {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line-strong));
  color: var(--text);
}

.chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.chip span {
  position: relative;
}

/* selected badge: absolutely positioned, so it never changes the chip size or moves the text */
.chip span::after {
  content: '';
  position: absolute;
  top: -7px;
  right: -5px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 64% no-repeat;
  box-shadow: 0 0 0 2px var(--bg-elevated);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.4), opacity 0.15s;
}

[data-theme='dark'] .chip span::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303222b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.chip input:checked + span::after {
  transform: scale(1);
  opacity: 1;
}

.chip input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

/* contact method picker */
.field-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-group legend {
  padding: 0;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.method {
  position: relative;
  display: block;
  font-weight: 600;
  cursor: pointer;
}

.method input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.method-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.9rem 0.5rem 0.5rem;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.method:hover .method-card {
  border-color: color-mix(in srgb, var(--m) 60%, var(--line-strong));
}

.method-icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--m);
  background: color-mix(in srgb, var(--m) 16%, transparent);
  transition: background 0.2s, color 0.2s;
}

.method-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.method-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.method input:checked + .method-card {
  border-color: var(--m);
  background: color-mix(in srgb, var(--m) 9%, var(--bg-elevated));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--m) 18%, transparent);
}

.method input:checked + .method-card .method-icon {
  background: var(--m);
  color: #fff;
}

[data-theme='dark'] .method input:checked + .method-card .method-icon {
  color: #03222b;
}

[data-theme='dark'] .method-brand input:checked + .method-card .method-icon {
  color: #fff;
}

.method input:checked + .method-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.8rem;
  margin-top: -0.5rem;
  width: 0.36rem;
  height: 0.66rem;
  border-right: 2.5px solid var(--m);
  border-bottom: 2.5px solid var(--m);
  transform: rotate(40deg);
}

.method input:focus-visible + .method-card {
  outline: 3px solid color-mix(in srgb, var(--m) 55%, transparent);
  outline-offset: 2px;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  font-size: 1rem; /* 16px minimum: iOS zooms into smaller fields */
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--text-soft) 70%, transparent);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--bg-elevated);
}

textarea {
  min-height: 110px;
  resize: none;
}

/* Native select hidden — custom UI */
select[data-custom-select] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.custom-select-trigger:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
}

.custom-select.is-open .custom-select-trigger,
.custom-select-trigger:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--bg-elevated);
}

.custom-select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.custom-select.is-open .custom-select-chevron {
  transform: rotate(225deg) translateY(-1px);
}

.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.custom-select.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.custom-select-option {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-soft);
  transition: background 0.15s, color 0.15s;
}

.custom-select-option:hover,
.custom-select-option.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.custom-select-option.is-selected {
  color: var(--accent-strong);
  font-weight: 700;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.form-grid .btn {
  width: 100%;
  padding-block: 1rem;
}

.form-status {
  min-height: 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.form-status.is-ok { color: var(--success); }
.form-status.is-err { color: var(--danger); }

/* ───────────── Toasts (pop-up notifications) ───────────── */
.toast-stack {
  position: fixed;
  z-index: 300;
  top: calc(var(--header-h) + 1rem);
  right: max(1rem, env(safe-area-inset-right));
  display: grid;
  gap: 0.75rem;
  width: min(23rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0.9rem 1.2rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

.toast.is-leaving {
  animation: toast-out 0.26s ease forwards;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--toast-color);
}

.toast-success { --toast-color: var(--success); }
.toast-error { --toast-color: var(--danger); }

.toast-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--toast-color);
  background: color-mix(in srgb, var(--toast-color) 15%, transparent);
}

.toast-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.toast-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.toast-text {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.toast-meta {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  opacity: 0.85;
}

.toast-meta[hidden] {
  display: none;
}

.toast-close {
  width: 1.9rem;
  height: 1.9rem;
  margin: -0.2rem -0.1rem 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.toast-close:hover {
  background: var(--bg-muted);
  color: var(--text);
}

/* time left, pauses while the pointer is over the toast */
.toast-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--toast-color);
  opacity: 0.7;
  transform-origin: left;
  animation: toast-bar var(--toast-ms, 6s) linear forwards;
}

.toast:hover .toast-bar {
  animation-play-state: paused;
}

@keyframes toast-bar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(28px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(28px) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast.is-leaving {
    animation-duration: 0.01s;
  }
}

@media (max-width: 560px) {
  .toast-stack {
    top: calc(var(--header-h) + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }
}

/* ───────────── Motion ───────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > *,
  .page-hero .container > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-content > :nth-child(2),
  .page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
  .hero-content > :nth-child(3),
  .page-hero .container > :nth-child(3) { animation-delay: 0.16s; }
  .hero-content > :nth-child(4),
  .page-hero .container > :nth-child(4) { animation-delay: 0.24s; }
  .page-hero .container > :nth-child(5) { animation-delay: 0.32s; }

  /* scroll reveal — classes are added by main.js */
  .has-reveal .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
  }

  .has-reveal .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1000px) {
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-services > .service-card {
    grid-column: span 1;
  }

  .grid-services > .service-card:nth-child(5) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 42% 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .grid-services > .service-card:nth-child(5) .thumb { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: auto; min-height: 200px; }
  .grid-services > .service-card:nth-child(5) h3 { grid-column: 2; grid-row: 1; align-self: end; margin-top: 1.5rem; }
  .grid-services > .service-card:nth-child(5) p { grid-column: 2; grid-row: 2; }
  .grid-services > .service-card:nth-child(5) .more { grid-column: 2; grid-row: 3; align-self: start; }
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .stat:nth-child(3)::before {
    display: none;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .menu-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0.75rem auto 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h) - 1rem);
    max-height: calc(100dvh - var(--header-h) - 1rem);
    overflow-y: auto;
    transform: translateY(-14px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-size: 1rem;
  }


  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band > .btn-row {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 1.5rem;
  }

  .media-stack .image-slot-photo {
    aspect-ratio: 16 / 10;
  }

  .hero-content {
    margin-left: auto;
  }

  /* text sits over the whole photo on small screens: darken it evenly */
  .hero::before {
    background: linear-gradient(180deg, rgba(5, 20, 36, 0.8) 0%, rgba(6, 28, 46, 0.86) 100%);
  }

  .nav a:first-child {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .reviews-head {
    align-items: flex-start;
    flex-direction: column;
  }

}

/* roadmap turns vertical: stops on the left, text on the right */
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }

  .steps > .panel,
  .steps > .panel.soft {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    column-gap: 1.25rem;
    align-content: start;
    padding: 0 0 2.25rem;
    text-align: left;
  }

  .steps > .panel:last-child {
    padding-bottom: 0;
  }

  /* segment of the route from this stop to the next one */
  .steps > .panel:not(:last-child)::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 1.75rem;
    top: 1.75rem;
    bottom: -1.75rem;
    width: 4px;
    margin-left: -2px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--accent) 60%, transparent);
  }

  .steps .step-num {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .steps .panel h3 {
    align-self: end;
    margin: 0.2rem 0 0.3rem;
  }

  .steps .panel p {
    grid-column: 2;
  }
}

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

  .grid-services > .service-card:nth-child(5) {
    display: flex;
    flex-direction: column;
  }

  .grid-services > .service-card:nth-child(5) .thumb {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .grid-services > .service-card:nth-child(5) h3 {
    margin-top: 1.25rem;
  }
}

@media (max-width: 380px) {
  .hero h1,
  .page-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 360px) {
  /* 320px phones: language shows just the flag so the header fits */
  .container { width: min(100% - 1.5rem, var(--max)); }
  .lang-code { display: none; }
  .lang-trigger { width: 3.7rem; padding: 0 0.7rem 0 0.75rem; }
  .brand-name { font-size: 1rem; }
  .fab-sub { display: none; }
}

@media (max-width: 420px) {
  .header-inner { gap: 0.4rem; }
  .header-actions { gap: 0.4rem; }
  .brand { gap: 0.5rem; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-name { font-size: 1.1rem; letter-spacing: 0; }
  .theme-toggle,
  .menu-toggle { width: 40px; height: 40px; }
}

@media (max-width: 900px) {
  /* footer links: at least ~44px tall touch area */
  .footer-col > a:not(.phone-link) {
    padding: 0.6rem 0;
    margin-bottom: 0;
  }
}

@media (max-width: 560px) {
  /* room for the floating "Contact us" button below the last line of the footer */
  .site-footer {
    padding-bottom: calc(1.75rem + 4.75rem);
  }

  .btn-row {
    flex-direction: column;
  }

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

  .hero-chips li {
    font-size: 0.82rem;
  }

  th,
  td {
    padding: 0.85rem 0.9rem;
  }

  .modal-scroll {
    padding: 1.75rem 1.25rem 1.4rem;
  }

  .modal-panel h2 {
    font-size: 1.6rem;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
