/* ========== Self-hosted fonts ========== */

/* Manrope — variable (cyrillic + latin) */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond — variable normal (cyrillic + latin) */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond — variable italic (cyrillic + latin) */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-cyrillic-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  /* Latin LETTERS only. The default subset range includes U+0020, so a single
     space inside an italic Cyrillic phrase ("у Києві") pulled this whole 38 KB
     file for one invisible glyph. Spaces and punctuation now come from the
     Cyrillic face, which is already loaded. */
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-00FF, U+0131, U+0152-0153;
}

/* ========== MedMove — design system ========== */

:root {
  /* Color — clinical scheme */
  --bg: #FFFFFF;
  --bg-soft: #F4F7FB;
  --paper: #FFFFFF;
  --ink: #0B2545;
  --ink-2: #1F3A63;
  --muted: #5A6A82;
  --muted-2: #8A95A8;
  --line: #E2E8F0;
  --line-soft: #EFF3F8;
  --accent: #0B6FB8;
  --accent-2: #084B82;
  --ok: #1E8A5F;

  /* Type */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Courier New", monospace;

  /* Sizing */
  --container: 1360px;
  --gutter: 40px;
  --radius: 8px;
  --radius-lg: 14px;
}
/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

/* Skip link для доступності */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type system */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.muted { color: var(--muted); }

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
h1.display { font-size: clamp(56px, 8vw, 124px); }
h2.display { font-size: clamp(44px, 5.5vw, 84px); }
h3.display { font-size: clamp(32px, 3.5vw, 52px); }

.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 56ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-2); }
.btn-dark {
  background: var(--ink);
  color: var(--bg-soft);
}
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-soft); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 60px; padding: 0 32px; font-size: 16px; }
.btn-call {
  height: auto;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 3px;
  padding: 11px 32px;
  line-height: 1.2;
}
.btn-call-num, .btn-call-sub { width: 100%; }
.btn-call-num { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.btn-call-sub { font-size: 12px; font-weight: 500; opacity: .85; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand-logo {
  height: 42px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  flex: none;
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--bg-soft);
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  padding-bottom: 2px;
  position: relative;
}
/* Clinical mode — medical cross instead of M */
.brand-mark { color: transparent; }
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 1px;
}
.brand-mark::before { width: 18px; height: 4px; left: 9px; top: 16px; }
.brand-mark::after { width: 4px; height: 18px; left: 16px; top: 9px; }
.brand em { color: var(--accent); font-style: italic; font-weight: 500; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-dropdown-trigger svg {
  transition: transform .2s ease;
  flex: none;
  opacity: .6;
}
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px -8px rgba(10,24,48,.15);
  min-width: 240px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 300;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Arrow tip */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  rotate: 45deg;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .12s ease, color .12s ease, padding-left .12s ease;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-soft);
  color: var(--accent);
  padding-left: 26px;
}

/* Mobile sub-nav */
.mobile-nav-parent {
  font-weight: 700 !important;
}
.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  padding: 0 0 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 4px;
}
.mobile-nav-sub a {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  padding: 8px 0 !important;
  border-bottom: none !important;
  color: var(--muted) !important;
  border-top: none !important;
}
.mobile-nav-sub a:hover { color: var(--accent) !important; padding-left: 4px !important; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (max-width: 640px) {
  .nav-right { gap: 8px; }
}
/* Nav phone — icon + text on desktop, icon-only circular button on mobile */
.nav-phone-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease;
  text-decoration: none;
  color: var(--ink);
}
.nav-phone-wrap:hover {
  border-color: var(--ink);
  background: var(--paper);
}
.nav-phone-ico {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  flex: none;
  transition: transform .15s ease;
}
.nav-phone-wrap:hover .nav-phone-ico { transform: scale(1.05); }
.nav-phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  white-space: nowrap;
}
.nav-phone {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.nav-phone-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.nav-phone-wrap { margin-left: 4px; }

/* Stacked brand logo (icon above wordmark) */
.brand.brand-stacked {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.brand.brand-stacked .brand-logo-icon {
  height: 48px;
  width: auto;
  display: block;
}
.brand.brand-stacked .brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.brand.brand-stacked .brand-name em {
  color: var(--accent);
  font-style: normal;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-soft);
}
.lang-switch button,
.lang-switch .lang-link {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-radius: 999px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.lang-switch button.on,
.lang-switch .lang-link.on {
  background: var(--ink);
  color: var(--bg-soft);
}

/* Sections */
section {
  padding: clamp(80px, 9vw, 140px) 0;
  --parallax-y: 0px;
  background: radial-gradient(130% 170% at 50% calc(0% + var(--parallax-y)), color-mix(in oklab, var(--accent) 6%, var(--bg-soft)) 0%, var(--bg) 55%);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lede { margin-top: 0; }
.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* Hero */
.hero { padding-top: 60px; padding-bottom: clamp(80px, 9vw, 130px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.hero-benefits li svg { flex: none; margin-top: 2px; color: var(--accent); }
.hero-benefits strong { color: var(--ink); }
@media (max-width: 1024px) {
  .hero-benefits { display: none; }
  .hero-right { gap: 0; order: 2; }
  .hero-text { order: 1; }
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0e1f3a;
  outline: 1px solid var(--line);
  outline-offset: 0;
}
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.hero-eyebrow-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); display: inline-block;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 20%, transparent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 22%, transparent); }
  50% { box-shadow: 0 0 0 9px color-mix(in oklab, var(--ok) 8%, transparent); }
}
.hero h1 { margin-bottom: 32px; contain: layout; }
.hero .lede { contain: layout; }
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-phone-text {
  display: none;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.hero-phone-text:hover { color: var(--accent); }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 28px;
}
.hero-meta .cell { padding-right: 18px; border-right: 1px solid var(--line); }
.hero-meta .cell:last-child { border-right: 0; padding-right: 0; }
.hero-meta .cell:not(:first-child) { padding-left: 28px; }
.hero-meta .num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.hero-meta .num em { font-style: italic; color: var(--accent); }
.hero-meta .lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: inherit;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,28,58,.15) 0%, transparent 35%, transparent 60%, rgba(8,22,48,.4) 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}
.hero-visual .label-tl {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  z-index: 2;
  background: rgba(8,22,48,.45);
  padding: 5px 10px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}
.hero-visual .label-br {
  position: absolute; bottom: 20px; right: 20px;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  color: rgba(255,255,255,.95);
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-visual .badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 16px -4px rgba(11,111,184,.5);
}

/* Trust strip */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.trust-strip .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.trust-strip .item svg { color: var(--accent); flex: none; }

/* Services — bento grid: one featured card + 4 regular, no empty cells */
.services-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.service:hover {
  background: var(--paper);
  box-shadow: 0 24px 48px -24px rgba(11, 37, 69, .28);
  transform: translateY(-2px);
}
.service.featured { grid-row: span 2; }
.service-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}
.service.featured .service-img { aspect-ratio: 4/3; }
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.service:hover .service-img img { transform: scale(1.04); }
.service-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.service h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.service.featured h3 { font-size: 25px; }
.service h3 em { font-style: italic; color: var(--accent); }
.service p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.service-foot .from {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.service-foot .from span { font-size: 11px; color: var(--muted); font-family: var(--font-sans); letter-spacing: 0.04em; }
.service-foot a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}
.service-foot a:hover { color: var(--accent-2); }

/* Calculator */
.calc {
  padding: clamp(80px, 9vw, 130px) 0;
  padding-top: clamp(32px, 4vw, 56px);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.calc-disclosure { margin-top: 8px; }
.calc-disclosure summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
}
.calc-disclosure summary::-webkit-details-marker { display: none; }
.calc-disclosure .calc-card { margin-top: 24px; }
.calc-tariffs h2 { margin: 24px 0 28px; }
.calc-tariffs .lede { margin-bottom: 40px; }
.tariff-simple {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tariff-simple thead th {
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.tariff-simple thead th:last-child { text-align: right; }
.tariff-simple td { padding: 16px 18px; }
.tariff-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.tariff-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tariff-list { list-style: none; padding: 0; margin: 0; width: 100%; border-collapse: collapse; }
.tariff-list tr {
  border-bottom: 1px solid var(--line);
}
.tariff-list tr:last-child { border-bottom: 0; }
.tariff-list td {
  padding: 14px 0;
  font-size: 14px;
  color: var(--ink-2);
  vertical-align: baseline;
  text-align: left;
}
.tariff-list td:last-child { text-align: right; white-space: nowrap; }
.tariff-list .name { flex: 1; }
.tariff-list .price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tariff-list .price strong { font-family: var(--font-serif); font-weight: 500; font-size: 18px; }

/* Calculator card */
.calc-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--line) 80%, transparent),
    0 24px 60px -30px rgba(14, 31, 58, .25);
}
.calc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.calc-card-head h3 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.calc-card-head .pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 6px;
}
.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-btn {
  border: 1px solid var(--line);
  background: transparent;
  padding: 12px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .15s ease;
}
.seg-btn:hover { border-color: var(--ink); }
.seg-btn.on {
  background: var(--ink);
  color: var(--bg-soft);
  border-color: var(--ink);
}
.seg-btn.muted-on {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--muted-2);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .field-row .field:last-child {
    grid-column: span 2;
  }
}
.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s ease;
}
.input:focus { outline: none; border-color: var(--ink); }
.input::placeholder { color: var(--muted-2); }
.input:disabled { background: var(--bg-soft); color: var(--muted-2); border-style: dashed; }

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.check-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  position: relative;
  transition: all .15s ease;
}
.check-row input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.check-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid var(--bg-soft);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.calc-result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.calc-result-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.calc-result-value {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1;
}
.calc-result-value .sym { color: var(--accent); font-style: italic; }

.calc-card-foot {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Clinical — softer card shadow + structured borders */
.calc-card {
  box-shadow: 0 1px 0 var(--line), 0 32px 80px -48px rgba(11, 37, 69, .35);
  border: 1px solid var(--line);
}
.seg-btn { border-radius: 4px; font-weight: 600; }
.seg-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.input { border-radius: 4px; }
.btn { border-radius: 4px; font-weight: 600; }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-2); }
.from em { color: var(--accent); font-style: normal; font-weight: 700; }
.hero-visual .badge { background: var(--accent); }
.trust-strip .item svg { color: var(--accent); }
.license .seal { color: var(--accent); border-color: var(--accent); font-family: var(--font-sans); font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }

/* Fleet */
.fleet { background: var(--bg-soft); }
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fleet-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
}
.fleet-img {
  aspect-ratio: 4/3;
  background:
    radial-gradient(60% 90% at 50% 50%, #2C3E62 0%, transparent 60%),
    linear-gradient(180deg, #1B2A4A, #0E1F3A);
  position: relative;
  display: grid;
  place-items: center;
}
.fleet-img .placeholder-ico {
  width: 96px; height: 96px;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,.5);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  position: relative;
}
.fleet-img .placeholder-ico {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.35);
}
.fleet-img .placeholder-ico::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(currentColor, currentColor) center/30px 4px no-repeat,
    linear-gradient(currentColor, currentColor) center/4px 30px no-repeat;
  opacity: .25;
}
.fleet-img .tag {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
}
.fleet-img .tag {
  background: rgba(255,255,255,.95);
  color: var(--ink);
  border-color: transparent;
  font-weight: 600;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.fleet-body { padding: 24px 24px 28px; }
.fleet-body h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.fleet-body h3 em { font-style: italic; color: var(--accent); }
.fleet-body .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.fleet-specs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-soft); }
.fleet-specs li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}
.fleet-specs li:last-child { border-bottom: 0; }
.fleet-specs li span:first-child { color: var(--muted); }
.fleet-specs li span:last-child { color: var(--ink); font-weight: 500; }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.process-step {
  padding: 36px 28px 40px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.process-step:last-child { border-right: 0; }
.process-step:not(:first-child) { padding-left: 28px; }
.process-step .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 64px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
}
.process-step h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.process-step p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

/* Reviews */
.reviews { background: var(--bg-soft); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review .quote {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.review .quote::before {
  content: "“";
  font-size: 56px;
  color: var(--accent);
  font-style: italic;
  line-height: 0;
  position: relative;
  top: 14px;
  margin-right: 4px;
}
.review .who {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.review .who .av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  overflow: hidden;
  flex: none;
}
.review .who .av { background: var(--accent); }
.review .who .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review .who .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.review .who .meta { font-size: 12px; color: var(--muted); }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.faq-q .plus {
  flex: none;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink);
  transition: all .2s ease;
}
.faq-item.open .faq-q .plus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a-inner {
  padding: 0 0 26px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 60ch;
}

/* SEO text section */
.seo-text {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.seo-text-inner h2 {
  margin-bottom: 40px;
  max-width: 20ch;
}
.seo-text-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
}
.seo-text-item h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.seo-text-cols p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}
.seo-text-cols strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .seo-text-cols { grid-template-columns: 1fr; }
}

/* CTA bottom */
.cta {
  background: linear-gradient(135deg, #0B2545 0%, #11365C 60%, #0B6FB8 100%);
  color: var(--bg-soft);
  padding: clamp(80px, 9vw, 130px) 0;
  position: relative;
  overflow: hidden;
}
.cta .container { position: relative; }
.cta h2 { color: var(--bg-soft); }
.cta h2 em { color: var(--accent); }
.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: end;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--bg-soft); }
.cta .btn-ghost { color: var(--bg-soft); border-color: rgba(255,255,255,.25); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.cta-leave-number {
  display: block;
  margin-top: 24px;
  font-size: 13px;
  font-family: inherit;
  color: rgba(255,255,255,.6);
  max-width: 38ch;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-leave-number:hover { color: rgba(255,255,255,.9); }

/* Footer */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  color: var(--ink-2);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-grid h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 6px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.footer-license-link {
  display: inline-block;
  margin-top: 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.footer-license-link:hover { text-decoration: underline; }

/* Emergency floating button */
/* ========== Contact Widget (floating) ========== */
.contact-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Menu items */
.contact-widget-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
}
.contact-widget.open .contact-widget-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cwm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px -4px rgba(0,0,0,.25);
  transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.cwm-btn:hover { transform: translateX(-4px); }
.cwm-btn svg { flex: none; }

.cwm-phone   { background: #1a1a2e; }
.cwm-telegram { background: #229ED9; }
.cwm-whatsapp { background: #25D366; }
.cwm-viber   { background: #7360F2; }

/* Staggered animation */
.contact-widget.open .cwm-btn:nth-child(1) { transition-delay: .03s; }
.contact-widget.open .cwm-btn:nth-child(2) { transition-delay: .06s; }
.contact-widget.open .cwm-btn:nth-child(3) { transition-delay: .09s; }
.contact-widget.open .cwm-btn:nth-child(4) { transition-delay: .12s; }

/* Main trigger button */
.contact-widget-trigger {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 8px 24px -8px rgba(11,111,184,.55);
  transition: background .2s ease, transform .2s ease;
  flex: none;
}
.contact-widget-trigger:hover { background: var(--accent-2); transform: scale(1.05); }

/* Pulsing ring */
.cwt-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(11,111,184,.3);
  animation: cwt-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes cwt-pulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Icon swap: phone ↔ close */
.cwt-icon { position: absolute; transition: opacity .2s ease, transform .2s ease; }
.cwt-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.cwt-phone { opacity: 1; transform: rotate(0) scale(1); }

.contact-widget.open .cwt-phone { opacity: 0; transform: rotate(90deg) scale(.6); }
.contact-widget.open .cwt-close { opacity: 1; transform: rotate(0) scale(1); }
.contact-widget.open .cwt-ring  { animation: none; opacity: 0; }
.contact-widget.open .contact-widget-trigger { background: #1a1a2e; box-shadow: none; }

/* Clinical scheme override */
.contact-widget-trigger { background: var(--accent); }
.contact-widget.open .contact-widget-trigger { background: #1a1a2e; }

/* ========== Hamburger + Mobile Drawer ========== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  transition: border-color .15s ease;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}
.burger:hover { border-color: var(--ink); }
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 48, .45);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  background: var(--paper);
  z-index: 999;
  box-shadow: -8px 0 40px -8px rgba(10,24,48,.2);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 88px 32px 40px;
  overflow-y: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  transition: color .15s ease, padding-left .15s ease;
}
.mobile-nav a:first-child { border-top: 1px solid var(--line-soft); }
.mobile-nav a:hover { color: var(--accent); padding-left: 6px; }
.mobile-nav a.active { color: var(--accent); }

.mobile-call {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s ease;
}
.mobile-call:hover { opacity: .88; }

.mobile-lang {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.mobile-lang button,
.mobile-lang .lang-link {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
}
.mobile-lang button.on,
.mobile-lang .lang-link.on {
  background: var(--ink);
  color: var(--bg-soft);
  border-color: var(--ink);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .burger { display: flex; }
  .mobile-drawer { display: flex; }
  .mobile-overlay { display: block; }
  .nav-links { display: none; }
  /* Compact nav phone on tablet */
  .nav-phone { font-size: 16px; }
  .nav-phone-label { font-size: 9px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: auto; min-height: 0; aspect-ratio: 16/9; max-height: 420px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; margin-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .service.featured { grid-column: span 2; grid-row: auto; }
  .service.featured .service-img { aspect-ratio: 16/9; }
  .calc-grid { grid-template-columns: 1fr; gap: 32px; }
  .calc-card { position: static; }
  .fleet-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
  .process-step:nth-child(2) { border-right: 0; }
  .reviews-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav-row { height: 60px; gap: 8px; }
  .lang-switch { display: none; }

  /* Phone — icon only */
  .nav-phone-wrap {
    padding: 0;
    border: 0;
    background: transparent;
    gap: 0;
  }
  .nav-phone-wrap:hover { background: transparent; border: 0; }
  .nav-phone-text { display: none; }
  .nav-phone-ico {
    width: 40px; height: 40px;
    box-shadow: 0 4px 12px -4px rgba(11,111,184,.4);
  }
  .nav-phone-ico svg { width: 16px; height: 16px; }

  /* Keep "Розрахувати" button, just make it smaller */
  .nav-right .btn-sm {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Hero mobile */
  .hero { padding-top: 40px; padding-bottom: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { order: 1; }
  .hero-visual { order: 2; height: auto; min-height: 0; aspect-ratio: 16/9; }
  .hero-visual .badge { top: 16px; bottom: auto; left: auto; right: 16px; padding: 6px 10px; font-size: 10px; }
  .hero-visual .label-tl { top: 16px; left: 16px; font-size: 10px; padding: 4px 8px; }
  .hero-visual .label-br { bottom: 16px; right: 16px; font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-phone-text { display: block; text-align: center; }
  .tariff-cta { flex-direction: column; }
  .tariff-cta .btn { width: 100%; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .service.featured { grid-column: auto; }
  .service-img { aspect-ratio: 16/9; }
  .service.featured .service-img { aspect-ratio: 16/9; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: 0; padding: 24px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero-meta .cell { padding: 0 10px !important; }
  .hero-meta .cell:first-child { padding-left: 0 !important; }
  .hero-meta .cell:nth-last-child(-n+2) { border-bottom: 0; }
  .contact-widget { bottom: 16px; right: 16px; }
  .cwm-btn span:not(svg) { display: none; }
  .cwm-btn { padding: 12px; border-radius: 50%; width: 46px; height: 46px; justify-content: center; }
  .calc-card { padding: 20px; }
  .trust-strip { gap: 16px; }
  .lede { font-size: clamp(16px, 4.5vw, 20px); }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ========== Typography overrides ========== */
.display { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.025em; line-height: 0.98; }
.display em { font-style: normal; }
h1.display { font-size: clamp(48px, 6.5vw, 92px); }
h2.display { font-size: clamp(36px, 4.5vw, 64px); }
.nav-phone,
.brand,
.hero-meta .num,
.fleet-body h3,
.review .quote,
.calc-card-head h3,
.process-step h3,
.calc-tariffs h2,
.faq-q,
.stats-row .num,
.team-card .name,
.license h3,
.contact-block .big,
.form-card h2 { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.015em; }

.fleet-body h3 em,
.display em,
.calc-result-value .sym,
.hero-meta .num em,
.stats-row .num em,
.price em,
.history-list .year,
.process-step .num { font-style: normal; font-weight: 700; }
.process-step .num { font-family: var(--font-sans); font-size: 48px; letter-spacing: -0.04em; color: var(--accent); }
.calc-result-value { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.03em; font-size: 56px; }
.review .quote { font-size: 17px; line-height: 1.45; letter-spacing: -0.005em; }
.review .quote::before { display: none; }
.eyebrow { color: var(--accent); }
.brand-mark { background: var(--accent); color: #fff; }
.brand { font-family: var(--font-sans); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand em { color: var(--accent); font-style: normal; font-weight: 700; }
.btn-dark { background: var(--ink); color: #fff; }
.hero-visual .placeholder {
  background:
    radial-gradient(120% 90% at 20% 0%, #1B4D7C 0%, transparent 55%),
    radial-gradient(140% 100% at 100% 100%, #0B2545 0%, transparent 60%),
    linear-gradient(160deg, #0B2545, #11365C);
}

/* Lead popup (name + phone → Telegram) */
.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 37, 69, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lead-modal-overlay[hidden] { display: none; }
.lead-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -12px rgba(10, 24, 48, .35);
  padding: 32px;
}
.lead-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.lead-modal h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 28px; font-weight: 500; }
.lead-modal #lead-modal-form-view > p { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.lead-modal .field { margin-bottom: 14px; }
.lead-modal .field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form-msg { margin-top: 12px; font-size: 13.5px; text-align: center; min-height: 18px; }
.lead-form-msg.ok { color: var(--ok); }
.lead-form-msg.err { color: #C0392B; }

/* Success state — lead popup + contact page form */
.lead-success { text-align: center; padding: 8px 0 4px; }
.lead-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}
.lead-success h3, .lead-success h2 { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 500; }
.lead-success p { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
/* ===== Fixes: small screens, focus, motion, contrast ===== */

/* Below 360px the "порахувати вартість" button pushed the burger off-screen
   and the page scrolled sideways. The phone icon stays as the primary action. */
@media (max-width: 359px) {
  .nav-right .btn-sm { display: none; }
  .nav-row { gap: 6px; }
}

/* Inputs previously dropped the focus ring entirely and signalled focus with a
   border-colour change alone, which is easy to miss when tabbing. */
.input:focus-visible,
.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--ink);
}

/* White-on-brand fell below 4.5:1 on the messenger buttons (WhatsApp was 1.98:1).
   Darkened just enough to pass AA while staying recognisably brand-coloured. */
.cwm-telegram { background: #1A78A5; }
.cwm-whatsapp { background: #0F7B3D; }
.cwm-viber    { background: #5B45D6; }

@media (prefers-reduced-motion: reduce) {
  .dot,
  .cwt-ring {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .08s !important;
    scroll-behavior: auto !important;
  }
}

/* Calculator field labels were 10px — too small for the people actually filling
   this in. Slightly less tracking keeps the three-column row from wrapping. */
.field-label { font-size: 12px; letter-spacing: 0.1em; }
.calc-card-head .pill { font-size: 11px; }
.nav-phone-label { font-size: 11px; }
@media (max-width: 1024px) {
  .nav-phone-label { font-size: 10px; }
}

/* The elevator control is a real button now (it used to be a readonly input,
   so it could be focused but never toggled from the keyboard). */
.input-toggle {
  text-align: left;
  cursor: pointer;
  display: block;
}

/* The floating call widget sits over the right edge of the content column and
   could cover a form control. Get it out of the way while a form has focus. */
:where(body):has(#contact-form-view :focus, #lead-form :focus) .contact-widget {
  opacity: 0;
  pointer-events: none;
}
.contact-widget { transition: opacity .18s ease; }

/* At 320px the display floor (48px) and the contact phone number (28px) were
   each wider than the 288px of usable width, so long Cyrillic words pushed the
   page sideways. Scale them down and let anything unexpected wrap rather than
   overflow. */
@media (max-width: 380px) {
  h1.display { font-size: 38px; }
  h2.display { font-size: 30px; }
  h3.display { font-size: 26px; }
  .contact-block .big { font-size: 23px; }
  .lede { font-size: 16px; }
}
.display { overflow-wrap: break-word; }
/* `anywhere` (not `break-word`) is what actually lowers min-content width, which
   is what a grid column measures — the email address is one unbreakable token. */
.contact-block .big { overflow-wrap: anywhere; }

@media (max-width: 380px) {
  /* grid items default to min-width:auto and refuse to shrink below their content */
  .contact-grid > * { min-width: 0; }
  .form-card { padding: 20px 16px; }
  .form-card h2 { font-size: 26px; }
}

@media (max-width: 380px) {
  /* long Russian service titles at the 36px floor were wider than the screen */
  .service-detail { }
  .service-detail > * { min-width: 0; }
  .service-detail h2 { font-size: 26px; }
  .service-detail .sd-num { font-size: 64px; }
}

/* License view — protected scan */
.license .view-scan {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.license .view-scan:hover { text-decoration: underline; }

.license-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 37, 69, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.license-modal-overlay[hidden] { display: none; }
.license-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -12px rgba(10, 24, 48, .35);
  padding: 28px;
}
.license-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.license-modal h3 { margin: 0 0 16px; font-family: var(--font-serif); font-size: 24px; font-weight: 500; padding-right: 30px; }
.license-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 200px;
  background: var(--bg-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}
.license-canvas-wrap canvas { max-width: 100%; height: auto; display: block; pointer-events: none; }
.license-canvas-wrap .license-loading { position: absolute; color: var(--muted); font-size: 13px; }
.license-modal-verify { margin-top: 16px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.license-modal-verify a { color: var(--accent); font-weight: 600; text-decoration: none; }
.license-modal-verify a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .license-modal { padding: 20px; max-width: 100%; }
}
