/* ==========================================================================
   AnyVia Logistics — main stylesheet
   Structure: tokens → base → layout → components → sections → utilities
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --color-navy-950: #071226;
  --color-navy-900: #0A1A33;
  --color-navy-800: #10264A;
  --color-navy-700: #1A3561;
  --color-primary: #2563EB;          /* white text contrast 5.2:1 */
  --color-primary-hover: #1D4ED8;
  --color-primary-soft: #EAF1FF;
  --color-accent: #C2410C;          /* white text contrast 5.2:1 */
  --color-accent-hover: #9A3412;
  --color-accent-bright: #F97316;   /* decorative use on dark backgrounds */
  --color-success: #15803D;
  --color-danger: #B91C1C;

  /* Neutrals */
  --color-bg: #FFFFFF;
  --color-surface: #F4F6FA;
  --color-card: #FFFFFF;
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;

  /* Soft tones for icons and accents (background / foreground, AA contrast) */
  --tone-blue-bg: #EAF1FF;   --tone-blue-fg: #2563EB;
  --tone-mint-bg: #E2F6EC;   --tone-mint-fg: #0F7A55;
  --tone-peach-bg: #FFEDE0;  --tone-peach-fg: #C2410C;
  --tone-violet-bg: #EFEBFF; --tone-violet-fg: #5B3FD6;
  --tone-sky-bg: #E0F3FC;    --tone-sky-fg: #0B6E9E;
  --tone-rose-bg: #FDE8EF;   --tone-rose-fg: #B4235A;
  --tone-sun-bg: #FFF4D1;    --tone-sun-fg: #8A5A00;

  /* Page backgrounds */
  --color-hero-bg: #F5F8FF;
  --color-tinted-bg: #F8F6FF;

  /* On dark */
  --color-on-dark: #F1F5F9;
  --color-on-dark-muted: #A5B4CC;
  --color-dark-border: rgba(255, 255, 255, .12);

  /* Typography */
  --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing & shape */
  --container: 1200px;
  --gutter: 16px;
  --section-space: 64px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --header-height: 68px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 20px rgba(30, 64, 175, .08);
  --shadow-lg: 0 24px 56px rgba(30, 64, 175, .14);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration: 200ms;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --section-space: 96px;
    --header-height: 76px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

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

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-navy-900);
  color: #fff;
  transform: translateY(-150%);
  transition: transform var(--duration) var(--ease);
}

.skip-link:focus { transform: none; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-muted { background: var(--color-surface); }

.section-tinted {
  background:
    radial-gradient(600px 300px at 0% 0%, #FFF1E6, transparent 70%),
    radial-gradient(600px 300px at 100% 100%, #E9F2FF, transparent 70%),
    var(--color-tinted-bg);
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid #D6E3FB;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.eyebrow-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-bright);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.section-lead {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 18px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-text {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

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

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-hover); color: #fff; }

.btn-outline {
  border-color: var(--color-border-strong);
  background: transparent;
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-ghost-light {
  border-color: rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Icon badge ---------- */
.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

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

/* Tone modifiers for badges and cards */
.tone-blue { --tone-bg: var(--tone-blue-bg); --tone-fg: var(--tone-blue-fg); }
.tone-mint { --tone-bg: var(--tone-mint-bg); --tone-fg: var(--tone-mint-fg); }
.tone-peach { --tone-bg: var(--tone-peach-bg); --tone-fg: var(--tone-peach-fg); }
.tone-violet { --tone-bg: var(--tone-violet-bg); --tone-fg: var(--tone-violet-fg); }
.tone-sky { --tone-bg: var(--tone-sky-bg); --tone-fg: var(--tone-sky-fg); }
.tone-rose { --tone-bg: var(--tone-rose-bg); --tone-fg: var(--tone-rose-fg); }
.tone-sun { --tone-bg: var(--tone-sun-bg); --tone-fg: var(--tone-sun-fg); }

/* Cards cycle through soft tones so icon rows look lively, not uniform */
:is(.services-grid, .advantages-grid, .contacts-grid) > li:nth-child(6n+1) .icon-badge { background: var(--tone-blue-bg); color: var(--tone-blue-fg); }
:is(.services-grid, .advantages-grid, .contacts-grid) > li:nth-child(6n+2) .icon-badge { background: var(--tone-peach-bg); color: var(--tone-peach-fg); }
:is(.services-grid, .advantages-grid, .contacts-grid) > li:nth-child(6n+3) .icon-badge { background: var(--tone-mint-bg); color: var(--tone-mint-fg); }
:is(.services-grid, .advantages-grid, .contacts-grid) > li:nth-child(6n+4) .icon-badge { background: var(--tone-violet-bg); color: var(--tone-violet-fg); }
:is(.services-grid, .advantages-grid, .contacts-grid) > li:nth-child(6n+5) .icon-badge { background: var(--tone-sky-bg); color: var(--tone-sky-fg); }
:is(.services-grid, .advantages-grid, .contacts-grid) > li:nth-child(6n+6) .icon-badge { background: var(--tone-rose-bg); color: var(--tone-rose-fg); }

.icon-badge-success {
  background: #DCFCE7;
  color: var(--color-success);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-navy-900);
  text-decoration: none;
}

.logo:hover { color: var(--color-navy-900); }

.logo-mark { width: 36px; height: 36px; }

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo-sub {
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Footer logo (footer is light now; class kept for markup compatibility) */
.logo-on-dark .logo-mark { color: var(--color-navy-900); }

.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.nav-link:hover { background: var(--color-surface); color: var(--color-primary); }
.nav-link.is-active { color: var(--color-primary); }

.nav-cta { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone .icon { width: 18px; height: 18px; color: var(--color-primary); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Compact desktop: hide phone first */
@media (max-width: 1279px) {
  .header-phone { display: none; }
}

/* Mobile navigation */
@media (max-width: 1023px) {
  .nav-toggle { display: grid; }
  .header-actions { margin-left: auto; gap: 8px; }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--duration) var(--ease),
                transform var(--duration) var(--ease),
                visibility 0s linear var(--duration);
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    font-size: 17px;
  }

  .nav-link:hover { background: transparent; }

  .nav-cta { display: flex; width: 100%; margin-top: 20px; }
}

@media (max-width: 479px) {
  .header-cta { display: none; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 28px 48px;
  background:
    radial-gradient(700px 420px at 92% 0%, #DCE9FF, transparent 65%),
    radial-gradient(600px 380px at 0% 100%, #FFE9DA, transparent 65%),
    var(--color-hero-bg);
  color: var(--color-text);
}

/* Mobile: headline → calculator → points & contacts. Desktop: text left, calculator right. */
.hero-inner {
  display: grid;
  grid-template-areas: "content" "calc" "aside";
  gap: 24px;
}

.hero-content { grid-area: content; }
.calc { grid-area: calc; }
.hero-aside { grid-area: aside; display: grid; gap: 24px; align-content: start; }
.hero-art { grid-area: art; display: none; }

.hero-title {
  margin-top: 16px;
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 800;
  color: var(--color-navy-900);
}

.hero-lead {
  max-width: 560px;
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 17px;
}

.hero-points {
  display: grid;
  align-content: start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-point-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--tone-bg);
  color: var(--tone-fg);
}

.hero-point-icon .icon { width: 18px; height: 18px; }

.hero-contact-label {
  margin-bottom: 10px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.hero-illustration { width: 100%; max-width: 480px; height: auto; }

@media (min-width: 1024px) {
  .hero { padding-block: 24px 64px; }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    grid-template-areas: "content calc" "aside calc" "art calc";
    grid-template-rows: auto auto 1fr;
    column-gap: 56px;
    row-gap: 28px;
  }

  .hero-content { padding-top: 28px; }
  .calc { align-self: start; }
  .hero-lead { font-size: 18px; }
  .hero-art { display: block; align-self: end; }
}

/* ---------- Shipping calculator ---------- */
.calc {
  position: relative;
  padding: 20px;
  border: 1px solid #E3ECFA;
  border-radius: 24px;
  background: var(--color-card);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 600px) {
  .calc { padding: 24px 28px; }
}

.calc-form { display: grid; gap: 18px; }
.calc-form[hidden] { display: none; }

.calc-title {
  font-size: 22px;
  font-weight: 800;
}

.calc fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.calc-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.calc-step {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-navy-900);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.calc-sublegend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
}

.calc-route { position: relative; display: grid; gap: 16px; }

.calc-place-fields {
  display: grid;
  gap: 12px;
}

@media (min-width: 480px) {
  .calc-place-fields { grid-template-columns: 1fr 1fr; }
}

.calc-swap {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.calc-swap:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }

.calc-hint,
.field-hint {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.field-hint { margin-top: 2px; }

/* Combobox — block layout (not flex) so the absolutely positioned list
   keeps its static position right under the input. */
.field.combobox { position: relative; display: block; }
.combobox .field-label { display: block; margin-bottom: 6px; }
.combobox .field-error { margin-top: 6px; }

.combobox-input:disabled {
  border-color: var(--color-border);
  background: var(--color-surface);
  cursor: not-allowed;
}

/* No `top`: the list keeps its static position, i.e. directly under the input. */
.combobox-list {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 264px;
  margin-top: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.combobox-option {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 44px;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.combobox-option.is-active,
.combobox-option:hover { background: var(--color-primary-soft); }

.combobox-option-label { font-weight: 500; }

.combobox-option-sublabel {
  color: var(--color-text-muted);
  font-size: 13px;
}

.combobox-message {
  padding: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Shipment type cards */
.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-card { position: relative; cursor: pointer; }

.choice-card input,
.segmented-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  height: 100%;
  padding: 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.choice-card-body .icon { grid-row: span 2; width: 24px; height: 24px; color: var(--color-text-muted); }
.choice-card-title { font-weight: 600; line-height: 1.3; }
.choice-card-hint { color: var(--color-text-muted); font-size: 13px; line-height: 1.35; }

.choice-card:hover .choice-card-body { border-color: #94A3B8; }

.choice-card input:checked + .choice-card-body {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.choice-card input:checked + .choice-card-body .icon { color: var(--color-primary); }

.choice-card input:focus-visible + .choice-card-body,
.segmented-option input:focus-visible + span {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 379px) {
  .choice-card-body { grid-template-columns: 1fr; row-gap: 4px; }
  .choice-card-body .icon { grid-row: auto; }
}

/* Packaging toggle */
.calc-packaging { margin-top: 14px !important; }
.calc-packaging[hidden] { display: none; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.segmented-option { position: relative; cursor: pointer; }

.segmented-option span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.segmented-option small { color: var(--color-text-muted); font-size: 12px; font-weight: 500; }

.segmented-option input:checked + span {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* Weight input with unit */
.input-suffix { position: relative; }

.input-suffix .field-input { padding-right: 48px; }

.input-suffix-unit {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--color-text-muted);
  font-weight: 600;
  transform: translateY(-50%);
  pointer-events: none;
}

.calc-submit { margin-top: 2px; }
.calc-submit[aria-busy="true"] { cursor: progress; }

.calc-status { font-size: 14px; }
.calc-status:empty { display: none; }
.calc-status.is-error { color: var(--color-danger); }

/* Result panel */
.calc-result { display: grid; gap: 20px; }
.calc-result[hidden] { display: none; }
.calc-result:focus { outline: none; }

.calc-result-head {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(115deg, #2563EB, #4F46E5);
  color: #fff;
}

.calc-result-label {
  color: #DCE6FF;
  font-size: 14px;
  font-weight: 500;
}

.calc-result-price {
  margin-top: 4px;
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.calc-result-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.calc-result-details div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.calc-result-details dt { color: var(--color-text-muted); font-size: 14px; }
.calc-result-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 419px) {
  .calc-result-details div { grid-template-columns: 1fr; gap: 2px; }
}

.calc-result-notes {
  display: grid;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.calc-result-notes li { display: flex; gap: 8px; }
.calc-result-notes .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--color-success); }

.calc-result-actions {
  display: grid;
  gap: 10px;
}

@media (min-width: 480px) {
  .calc-result-actions { grid-template-columns: 1fr auto; }
}

.calc-result-unsupported {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.calc-result-unsupported .icon-badge { margin-bottom: 6px; }

.calc-result-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.calc-result-text { color: var(--color-text-muted); }

.calc-result-route {
  margin-top: 4px;
  font-weight: 600;
}

/* Desktop: keep the whole calculator above the fold on a 900px-high screen */
@media (min-width: 1024px) {
  .calc-form { gap: 14px; }
  .calc-legend { margin-bottom: 8px; }
  .calc-route { gap: 12px; }
  .choice-card-body { padding: 10px 14px; }
  .calc-packaging { margin-top: 10px !important; }
}

/* Facts band */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid #E3ECFA;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .85);
}

.fact:nth-child(1) .fact-value { color: var(--tone-blue-fg); }
.fact:nth-child(2) .fact-value { color: var(--tone-peach-fg); }
.fact:nth-child(3) .fact-value { color: var(--tone-mint-fg); }
.fact:nth-child(4) .fact-value { color: var(--tone-violet-fg); }

.fact-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.fact-label {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (min-width: 1024px) {
  .facts { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
  .fact { padding: 28px; }
  .fact-value { font-size: 34px; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  gap: 16px;
}

.service-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.service-card .card-title { margin-top: 20px; }

@media (hover: hover) {
  .service-card:hover {
    border-color: #BFD0F7;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
  }
}

@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.service-featured {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid #DCE7FB;
  background: linear-gradient(110deg, #EAF1FF 0%, #F4EFFF 55%, #FFEFE3 100%);
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.service-featured:hover { color: var(--color-text); box-shadow: var(--shadow); }
.service-featured-body { display: grid; gap: 4px; }
.service-featured .card-title { font-size: 20px; }
.service-featured .card-text { margin-top: 0; }

.service-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 700;
  white-space: nowrap;
}

.icon-badge-accent {
  background: #fff;
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .service-featured { grid-template-columns: auto 1fr auto; gap: 24px; padding: 28px 32px; }
}

/* ---------- Directions ---------- */
.directions-grid {
  display: grid;
  gap: 16px;
}

.direction-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-card);
}

.mode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.mode-tags li {
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.directions-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--color-primary-soft);
  color: var(--color-text);
}

.directions-note .icon { color: var(--color-primary); }
.directions-note a { font-weight: 600; }

@media (min-width: 600px) {
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .directions-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.process-number {
  display: block;
  margin-bottom: 16px;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

@media (min-width: 600px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .process-list { grid-template-columns: repeat(5, 1fr); gap: 16px; }

  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 40px;
    right: -12px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-border-strong);
    border-right: 2px solid var(--color-border-strong);
    transform: rotate(45deg);
  }
}

/* ---------- Advantages ---------- */
.advantages-grid {
  display: grid;
  gap: 16px;
}

.advantage {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid #E6E9F5;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Quote form ---------- */
.quote-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.quote-benefits {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.quote-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.quote-benefits .icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.quote-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 14px;
  font-weight: 600;
}

.req { color: var(--color-danger); }

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 16px; /* prevents iOS zoom on focus */
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.field-input::placeholder { color: #94A3B8; }

.field-input:hover { border-color: #94A3B8; }

.field-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .2);
}

.field-input[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.field-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .18);
}

textarea.field-input { resize: vertical; min-height: 96px; }

.select-wrap { position: relative; }

.select-wrap select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.field-error {
  color: var(--color-danger);
  font-size: 13px;
  font-weight: 500;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-hint {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

.form-status:empty { display: none; }
.form-status.is-error { color: var(--color-danger); }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 32px 8px;
  text-align: center;
}

.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success .card-title { margin-top: 16px; font-size: 22px; }
.form-success .btn { margin-top: 24px; }

@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field-full { grid-column: 1 / -1; }
  .quote-card { padding: 32px; }
}

@media (min-width: 1024px) {
  .quote-layout { grid-template-columns: 1fr 1.25fr; gap: 64px; }
  .quote-intro { position: sticky; top: calc(var(--header-height) + 32px); }
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  gap: 8px;
}

.faq-list { display: grid; gap: 12px; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  transition: border-color var(--duration) var(--ease);
}

.faq-item[open] { border-color: #BFD0F7; }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary .icon {
  color: var(--color-text-muted);
  transition: transform var(--duration) var(--ease);
}

.faq-item[open] summary .icon { transform: rotate(180deg); }

.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }

.faq-item p {
  padding: 0 20px 20px;
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
}

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.contact-card .icon-badge { margin-bottom: 12px; }

.contact-label {
  color: var(--color-text-muted);
  font-size: 14px;
}

.contact-value {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-value:hover { color: var(--color-primary); }

@media (min-width: 600px) {
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .contacts-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: 48px;
  background: linear-gradient(115deg, #2563EB 0%, #4F46E5 60%, #7C3AED 100%);
  color: #fff;
}

.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.cta-band-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
}

.cta-band-text {
  margin-top: 8px;
  color: #E4E9FF;
}

.cta-band .btn-accent { background: #fff; color: var(--color-accent); }
.cta-band .btn-accent:hover { background: #FFF1E6; color: var(--color-accent-hover); }

@media (min-width: 768px) {
  .cta-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 56px;
  border-top: 1px solid #E3ECFA;
  background: #F3F6FC;
  color: var(--color-text-muted);
  font-size: 15px;
}

.footer-inner {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-text { max-width: 340px; margin-top: 16px; }

.footer-heading {
  margin-bottom: 12px;
  color: var(--color-text);
  font-weight: 700;
}

.footer-nav ul { display: grid; gap: 8px; }

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--color-primary); }

.footer-bottom {
  display: grid;
  gap: 4px;
  padding-block: 20px;
  border-top: 1px solid #E3ECFA;
  font-size: 14px;
}

.footer-attribution { font-size: 13px; }
.footer-attribution a { color: var(--color-text-muted); }

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

/* ---------- Messenger & social buttons ---------- */
.messenger-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 16px 6px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.messenger-btn:hover { color: var(--color-text); box-shadow: var(--shadow); transform: translateY(-1px); }

.messenger-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.icon-brand { width: 18px; height: 18px; fill: currentColor; }

.messenger-whatsapp { --brand: #25D366; --brand-soft: #E3F9EB; }
.messenger-telegram { --brand: #229ED9; --brand-soft: #E2F3FC; }
.messenger-facebook { --brand: #1877F2; --brand-soft: #E7F0FE; }

.messenger-btn.is-pending { cursor: default; opacity: .75; }
.messenger-btn.is-pending:hover { box-shadow: none; transform: none; }

.messenger-soon {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.messenger-buttons-compact .messenger-btn { font-size: 14px; min-height: 40px; padding-right: 14px; }
.messenger-buttons-compact .messenger-icon { width: 28px; height: 28px; }
.messenger-buttons-footer { margin-top: 20px; }

.header-whatsapp {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  transition: transform var(--duration) var(--ease);
}

.header-whatsapp:hover { color: #fff; transform: scale(1.05); }
.header-whatsapp .icon-brand { width: 20px; height: 20px; }

/* Messengers take a full row; phone, office and hours share the row above (dense flow). */
.contact-card-wide { gap: 12px; }
.contacts-grid { grid-auto-flow: row dense; }
@media (min-width: 600px) { .contacts-grid .contact-card-wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .contacts-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Carriers: text-only wordmarks ----------
   Typography + brand-inspired colours only. Intentionally not replicating official logos
   (no logo typefaces, slants, shapes or two-tone splits). */
.section-soft {
  background:
    radial-gradient(520px 260px at 100% 0%, #EEF4FF, transparent 70%),
    #F8FAFE;
}

.carriers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.carrier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 132px;
  padding: 22px 14px 18px;
  border: 1px solid #E6EBF5;
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

@media (hover: hover) {
  .carrier-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
}

/* Wordmark: name in the brand-inspired main colour, short accent rule in the secondary colour */
.wordmark {
  --mark: var(--color-navy-900);
  --mark-accent: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--mark);
  font-family: var(--font-heading);
  line-height: 1.05;
}

.wordmark::after {
  content: "";
  width: 32px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--mark-accent);
}

.wordmark-main {
  font-size: clamp(24px, 6.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wordmark-second {
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 700;
  letter-spacing: .32em;
  margin-right: -.32em; /* optically centre tracked text */
}

.wordmark-sub {
  font-family: var(--font-body);
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
}

.wordmark-dhl { --mark: #C8102E; --mark-accent: #FFC600; }
.wordmark-dhl .wordmark-main { font-weight: 800; letter-spacing: .04em; }

.wordmark-ups { --mark: #3B2314; --mark-accent: #F2A900; }
.wordmark-ups .wordmark-main { letter-spacing: .2em; margin-right: -.2em; }

.wordmark-fedex { --mark: #4D148C; --mark-accent: #FF6200; }
.wordmark-fedex .wordmark-main { font-weight: 700; letter-spacing: -0.02em; }

.wordmark-pony { --mark: #B91C3C; --mark-accent: #1F2A44; }
.wordmark-pony .wordmark-main { letter-spacing: .12em; margin-right: -.12em; }
.wordmark-pony .wordmark-second { color: #1F2A44; }

.wordmark-globalink { --mark: #0B5E8E; --mark-accent: #22A06B; }
.wordmark-globalink .wordmark-main { font-weight: 700; font-size: clamp(22px, 5.6vw, 29px); }
.wordmark-globalink .wordmark-sub { color: #22A06B; opacity: 1; }

.wordmark-transavia { --mark: #1E3A8A; --mark-accent: #38BDF8; }
.wordmark-transavia .wordmark-main { font-weight: 700; font-size: clamp(22px, 5.6vw, 29px); }

.carrier-type {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.carriers-note {
  max-width: 760px;
  margin-top: 20px;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* Very narrow phones: one card per row so long names never overflow */
@media (max-width: 359px) {
  .carriers-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .carriers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .carrier-card { min-height: 164px; }
  .carrier-type { font-size: 13px; }
}

@media (min-width: 1024px) {
  .wordmark-main { font-size: 36px; }
  .wordmark-globalink .wordmark-main,
  .wordmark-transavia .wordmark-main { font-size: 32px; }
}

/* ---------- Combobox flags ---------- */
.combobox-control { position: relative; }

.combobox-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
  object-fit: cover;
  transform: translateY(-50%);
  pointer-events: none;
}

.combobox-icon[hidden] { display: none; }
.combobox.has-icon .combobox-input { padding-left: 48px; }

.combobox-option.has-icon {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.combobox-option-text { display: flex; flex-direction: column; gap: 1px; }

.combobox-option-icon {
  flex-shrink: 0;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
  object-fit: cover;
}

/* ---------- Request form extras ---------- */
.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox a { font-weight: 500; }

/* ---------- Floating quick-contact bar ---------- */
.float-contacts {
  position: fixed;
  top: 50%;
  right: 14px;
  z-index: 40; /* below the sticky header and mobile menu */
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
  animation: float-contacts-in 600ms var(--ease) 300ms both;
}

@keyframes float-contacts-in {
  from { opacity: 0; transform: translate(32px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

.float-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.float-btn .icon-brand,
.float-btn .icon { width: 24px; height: 24px; }

.float-btn:hover { color: #fff; transform: scale(1.07); box-shadow: 0 10px 26px rgba(15, 23, 42, .24); }

.float-whatsapp { --brand: #25D366; }
.float-telegram { --brand: #229ED9; }
.float-facebook { --brand: #1877F2; }
.float-2gis { --brand: #2FA84F; }

.float-btn.is-pending { opacity: .5; cursor: default; box-shadow: 0 4px 12px rgba(15, 23, 42, .12); }
.float-btn.is-pending:hover { transform: none; }

/* Tooltip label to the left of the button (mouse / keyboard) */
.float-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-navy-900);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  pointer-events: none;
}

.float-btn:hover .float-label,
.float-btn:focus-visible .float-label { opacity: 1; transform: translate(0, -50%); }

/* Tablets / small laptops: compact and hugging the edge so the bar sits in the page gutter,
   clear of the calculator fields */
@media (min-width: 600px) and (max-width: 1279px) {
  .float-contacts { right: 4px; gap: 8px; }
  .float-btn { width: 40px; height: 40px; }
  .float-btn .icon-brand, .float-btn .icon { width: 20px; height: 20px; }
}

/* Phones: smaller buttons, moved down so they don't cover the calculator fields */
@media (max-width: 599px) {
  .float-contacts { top: auto; right: 4px; bottom: 96px; gap: 8px; transform: none; animation-name: float-contacts-in-mobile; }
  .float-btn { width: 40px; height: 40px; }
  .float-btn .icon-brand, .float-btn .icon { width: 20px; height: 20px; }
}

@keyframes float-contacts-in-mobile {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

@media print { .float-contacts { display: none; } }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Legal pages (legal/*.html) ---------- */
.legal-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.legal-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

.legal-page {
  padding-block: 40px 72px;
  background: var(--color-hero-bg);
}

.legal-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .legal-toc { position: sticky; top: 24px; }
}

.legal-toc {
  padding: 20px;
  border: 1px solid #E3ECFA;
  border-radius: var(--radius-lg);
  background: #fff;
  font-size: 14px;
}

.legal-toc p { margin-bottom: 10px; font-weight: 700; }
.legal-toc ol { display: grid; gap: 6px; padding-left: 18px; list-style: decimal; }
.legal-toc a { color: var(--color-text-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--color-primary); }

.legal-doc {
  padding: 24px;
  border: 1px solid #E3ECFA;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  line-height: 1.7;
}

@media (min-width: 768px) { .legal-doc { padding: 48px 56px; } }

.legal-doc h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.legal-doc h2 { margin-top: 36px; font-size: 21px; font-weight: 800; scroll-margin-top: 24px; }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin-top: 12px; }
.legal-doc ul { padding-left: 22px; list-style: disc; }
.legal-doc ol { padding-left: 22px; list-style: decimal; }
.legal-doc li + li { margin-top: 6px; }
.legal-meta { margin-top: 8px; color: var(--color-text-muted); font-size: 14px; }

.legal-draft {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid #F5C9A8;
  border-radius: var(--radius);
  background: var(--tone-peach-bg);
  color: #7C2D12;
  font-size: 14px;
}

/* Placeholder for legal details the company must provide */
.placeholder {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--tone-sun-bg);
  color: var(--tone-sun-fg);
  font-weight: 600;
}

/* Provisions that must be confirmed by a Kazakhstan-qualified lawyer before publication */
.review-note {
  display: block;
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 4px solid #A78BFA;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--tone-violet-bg);
  color: #3B2A8C;
  font-size: 14px;
}

.legal-footer { padding-block: 28px; border-top: 1px solid #E3ECFA; background: #F3F6FC; color: var(--color-text-muted); font-size: 14px; }
.legal-footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-footer a { color: var(--color-text-muted); }
.legal-footer a[aria-current="page"] { color: var(--color-primary); font-weight: 600; }
