/* Spedeo Group — tokens from Figma file 79IWAs9oGhe0uUobQgUj3t */

:root {
  --color-text-primary: #111111;
  --color-text-secondary: #3d3d3d;
  --color-text-inverse: #ffffff;
  --color-text-placeholder: #8a93a0;
  --color-bg-navy: #00204d;
  --color-bg-navy-hover: #00183a;
  --color-bg-navy-pressed: #001228;
  --color-bg-surface: #ffffff;
  --color-bg-section: #e6edf7;
  --color-hero-start: #61b5ff;
  --color-border-strong: #111111;
  --color-border-subtle: #b9c7da;
  --color-border-error: #b42318;
  --color-state-error: #b42318;
  --color-link: #0054c4;
  --color-pill-bg: #ffffff;
  --color-pill-fg: #00204d;
  --color-pill-line: #b9c7da;
  --color-pill-dot: #00204d;
  --color-primary: #00204d; /* alias: solid button background */

  --radius-control: 6px;
  --radius-media: 16px;
  --radius-field: 10px;
  --radius-pill: 999px;
  --radius-icon: 12px;
  --radius-check: 4px;

  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-120: 120px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-none: none;

  --header-h: 76px;
  --content: 1200px;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--color-text-primary);
  background: var(--color-bg-section);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  font: inherit !important;
}
p, h1, h2, h3, ul, figure { margin: 0; }

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

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  padding: 10px 16px;
  background: var(--color-bg-navy);
  color: #fff;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--space-24);
  padding-right: var(--space-24);
}

.site-top {
  background: linear-gradient(
    180deg,
    var(--color-hero-start) 0%,
    #8ecaff 26%,
    #c5e2fa 58%,
    var(--color-bg-section) 100%
  );
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--color-hero-start);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-16);
}

.site-header.is-stuck {
  background: color-mix(in srgb, var(--color-bg-section) 86%, white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.logo img {
  width: 152px;
  height: 36.873px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-32);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-text-primary);
}
.nav-desktop a:hover { opacity: 0.7; }

.header-cta,
.btn.header-cta { display: none; }

.menu-toggle {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}
.menu-toggle img {
  width: 24px;
  height: 24px;
  display: block;
  flex: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 12px 20px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn--solid {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--solid:hover { background: var(--color-bg-navy-hover); border-color: var(--color-bg-navy-hover); }
.btn--solid:active { background: var(--color-bg-navy-pressed); border-color: var(--color-bg-navy-pressed); }

/* Outline variant: border + text use the primary token (solid button bg), never black.
   Hover/focus derive from the same primary (subtle tint). AA contrast vs white / 6% tint. */
.btn--outline {
  background: var(--color-bg-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover {
  background: rgba(0, 32, 77, 0.06);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:active {
  background: rgba(0, 32, 77, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:focus-visible {
  background: rgba(0, 32, 77, 0.06);
}

.btn--block { width: 100%; }
.btn--lg { height: 48px; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 6px 14px 6px 12px;
  background: var(--color-pill-bg);
  border: 1px solid var(--color-pill-line);
  border-radius: var(--radius-pill);
  color: var(--color-pill-fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-pill-dot);
  box-shadow: 0 0 0 4px rgba(0, 32, 77, 0.18);
  flex: 0 0 auto;
}

/* ---------- hero ---------- */
.hero {
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-32);
}
.hero h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -1.1px;
  color: var(--color-text-primary);
  max-width: none;
}
.hero-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-text-secondary);
  max-width: 40ch;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-note {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.1px;
  color: var(--color-text-secondary);
}

.hero-carousel {
  position: relative;
  margin-top: var(--space-48);
  border-radius: var(--radius-media);
  overflow: hidden;
  height: 220px;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 32, 77, 0.28);
}
.hero-dots button {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.hero-dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 200ms ease, background-color 200ms ease;
}
.hero-dots button[aria-current="true"]::after {
  width: 16px;
  background: #fff;
}

/* ---------- sections ---------- */
.section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}
.section-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.6px;
  color: var(--color-text-primary);
}
.section-body {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-secondary);
}

/* ---------- why / stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}
.stat { min-width: 0; }
.stat-number {
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -1.4px;
  color: var(--color-text-primary);
}
.stat-label {
  margin-top: var(--space-8);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-secondary);
}

/* ---------- services ---------- */
.service-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-media);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-icon);
  background: var(--color-bg-section);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.service-icon img { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.2px;
}
.service-card p {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-secondary);
}

.services-track {
  --service-card-w: 300px;
  position: relative;
  display: flex;
  gap: var(--space-16);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  width: calc(100% + var(--space-24));
  margin-right: calc(var(--space-24) * -1);
  /* End padding must be at least (track client width - card width) so the last
     card can snap to the same start edge as the others. The previous 24px left
     the last snap point past max scrollLeft, which clipped the second-to-last
     card at the end of the carousel. 100% is the wrap content box. */
  padding-right: max(0px, calc(100% + var(--space-24) - var(--service-card-w)));
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.services-track::-webkit-scrollbar { display: none; }
.services-track .service-card {
  flex: 0 0 var(--service-card-w);
  width: var(--service-card-w);
  scroll-snap-align: start;
}

.pager {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 16px;
}
.pager button {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.pager button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c5d0de;
  transition: width 200ms ease, background-color 200ms ease;
}
.pager button[aria-current="true"]::after {
  width: 16px;
  background: var(--color-primary);
}

/* ---------- process ---------- */
.process-photo {
  border-radius: var(--radius-media);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 342 / 228;
  background: var(--color-bg-subtle, #e6edf7);
}
.process-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}
.process-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.process-row { display: flex; flex-direction: column; gap: var(--space-24); }
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: var(--space-48);
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding-top: 0;
}
.step-rule {
  height: 1px;
  width: 100%;
  background: var(--color-border-subtle);
}
.step-num {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-bg-navy);
}
.step-num img { width: 18px; height: 18px; }
.step-num span {
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -0.6px;
}
.step h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.2px;
}
.step p {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-secondary);
}

/* ---------- form ---------- */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: var(--space-16);
}
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-item dt {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.1px;
  color: var(--color-text-secondary);
}
.contact-item dd {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-primary);
}
.contact-item a,
.contact-item a[href^="tel:"],
.contact-item a[href^="mailto:"] { text-decoration: none; }
.contact-item a:hover { color: var(--color-link); }

.form-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-media);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  align-items: stretch;
}
.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-8);
  min-width: 0;
  flex: 1 1 0;
}
.field > span,
.field label.field-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.2px;
  color: var(--color-text-primary);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-field);
  padding: 14px 16px;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-primary);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-placeholder); opacity: 1; }
.field select {
  color: var(--color-text-placeholder);
  background-image: url("icons/chevron.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field select.has-value { color: var(--color-text-primary); }
.field--date input,
.field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 56px;
  height: 56px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  padding: 14px 44px 14px 16px;
  background-image: url("icons/calendar.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px 20px;
  color-scheme: light;
  overflow: hidden;
}
.field input[type="date"]:invalid:not(:focus):not(.has-value) {
  color: var(--color-text-placeholder);
}
.field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 26px;
  margin: 0;
  padding: 0;
}
.field input[type="date"]::-webkit-datetime-edit,
.field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.field input[type="date"]::-webkit-datetime-edit-text,
.field input[type="date"]::-webkit-datetime-edit-month-field,
.field input[type="date"]::-webkit-datetime-edit-day-field,
.field input[type="date"]::-webkit-datetime-edit-year-field {
  padding: 0;
  margin: 0;
}
.field input[type="date"]::-webkit-inner-spin-button,
.field input[type="date"]::-webkit-clear-button {
  display: none;
  -webkit-appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  border-width: 1.5px;
  padding: 13.5px 15.5px;
}
.field--date input:focus,
.field select:focus { padding-right: 43.5px; }

.field.is-error input,
.field.is-error select,
.field.is-error textarea {
  border-color: var(--color-border-error);
  border-width: 1.5px;
  padding: 13.5px 15.5px;
}
.field-error {
  display: none;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.1px;
  color: var(--color-state-error);
}
.field.is-error .field-error { display: block; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: var(--space-16);
}
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-top: 0;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-check);
  background: var(--color-bg-surface);
  display: grid;
  place-content: center;
}
.consent input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.consent input[type="checkbox"]:checked::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.consent.is-error input[type="checkbox"] { border-color: var(--color-border-error); }
.consent p,
.consent .consent-text {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.1px;
  color: var(--color-text-placeholder); /* same token as input::placeholder */
}
.consent a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-position: from-font;
}
.consent-error {
  display: none;
  width: 100%;
  font-size: 13px;
  line-height: 18px;
  color: var(--color-state-error);
}
.consent.is-error .consent-error { display: block; }

.form-success {
  display: none;
  padding: 32px 8px;
  text-align: left;
}
.form-success.is-visible { display: block; }
.form-success h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}
.form-success p { color: var(--color-text-secondary); }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--color-bg-surface);
  color: var(--color-text-placeholder);
  padding-top: 28px;
  padding-bottom: 20px;
  border: none;
}
.site-footer .footer-logo img {
  width: auto;
  height: 24px; /* mobile: much smaller than header 37px */
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 20px;
  align-items: start;
}
.footer-logo { grid-column: 1; }
.footer-contact {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-placeholder);
}
.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-phones .tel-sep { display: none; }
.footer-social {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.social-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-btn img { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 20px;
  padding-top: 0;
  border: none;
  font-size: 13px;
  line-height: 18px;
  color: var(--color-text-placeholder);
}
.footer-bottom p { margin: 0; }
.site-footer,
.site-footer p,
.site-footer span { text-decoration: none; }
.site-footer hr,
.site-footer::before,
.site-footer::after,
.footer-top::before,
.footer-top::after,
.footer-bottom::before,
.footer-bottom::after {
  display: none;
  content: none;
  border: none;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
}
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-underline-position: from-font;
}

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--color-bg-surface);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 16px 24px;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 8px 24px;
}
.mobile-menu-links a {
  display: flex;
  align-items: center;
  height: 48px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.mobile-menu-cta {
  padding: 16px 24px 24px;
}
body.menu-open { overflow: hidden; }

/* ---------- legal page ---------- */
.legal-main { padding: 48px 0 80px; }
.legal-main h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -1.1px;
  margin: 16px 0 24px;
}
.legal-main h2 {
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.2px;
  margin: 32px 0 12px;
}
.legal-main p, .legal-main li {
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  max-width: 68ch;
}
.legal-main ul { padding-left: 1.2em; }

/* ---------- tablet ---------- */
@media (min-width: 768px) {
  :root { --header-h: 92px; }
  .wrap { padding-left: var(--space-40); padding-right: var(--space-40); }
  .site-header { height: 92px; }
  .nav-desktop { display: flex; gap: 16px; }
  .header-cta,
  .btn.header-cta { display: inline-flex; }
  .menu-toggle { display: none; }

  .hero { padding-top: 56px; padding-bottom: 56px; }
  .hero h1 {
    font-size: 40px;
    line-height: 48px;
    max-width: 688px;
  }
  .hero-lead { max-width: 688px; }
  .hero-carousel { height: 360px; margin-top: 48px; }

  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-title { font-size: 36px; line-height: 44px; }
  .section-intro { margin-bottom: 48px; }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px 24px;
  }
  .stat { display: flex; gap: 32px; align-items: center; }
  .stat + .stat .stat-rule { display: block; }
  .stat-rule {
    display: none;
    width: 1px;
    align-self: stretch;
    background: var(--color-border-subtle);
    flex: 0 0 1px;
  }
  .stat-number { font-size: 56px; line-height: 60px; }

  .pager { display: none; }
  .services-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    overflow: visible;
    width: auto;
    margin: 0;
    padding: 0;
    scroll-snap-type: none;
  }
  .services-track .service-card {
    flex: unset;
    width: auto;
  }
  .service-card { padding: 29px; }
  .service-card h3 {
    font-size: 22px;
    line-height: 28px;
  }

  .process-row {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
  .process-photo {
    width: 300px;
    flex: 0 0 300px;
    aspect-ratio: 300 / 200;
  }
  .process-intro { flex: 1; }
  .steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
  }
  .step-num img { width: 20px; height: 20px; }
  .step h3 { font-size: 22px; line-height: 28px; }

  .form-row {
    flex-direction: row;
    gap: 24px;
  }
  .form-card { padding: 48px; }
  .contact-layout { gap: 48px; }

  .site-footer { padding-top: 32px; padding-bottom: 22px; }
  .site-footer .footer-logo img { height: 26px; }
  .footer-top {
    grid-template-columns: auto 1fr auto;
    gap: 16px 28px;
    align-items: start;
  }
  .footer-logo,
  .footer-contact,
  .footer-social { grid-column: auto; grid-row: auto; }
  .footer-phones {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 0;
  }
  .footer-phones .tel-sep { display: inline; }
  .footer-bottom {
    gap: 0 20px;
    margin-top: 20px;
    padding-top: 0;
    border: none;
  }
}

/* ---------- desktop ---------- */
@media (min-width: 1200px) {
  :root { --header-h: 108px; }
  .wrap { padding-left: var(--space-120); padding-right: var(--space-120); }
  .site-header { height: 108px; }
  .nav-desktop { gap: var(--space-32); }

  .hero { padding-top: 80px; padding-bottom: 80px; }
  .hero h1 {
    font-size: 52px;
    line-height: 60px;
    max-width: 920px;
  }
  .hero-lead { max-width: 680px; }
  .hero-carousel { height: 560px; }

  .section { padding-top: 80px; padding-bottom: 80px; }

  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .stat { min-height: 94px; }
  .stat:first-child { padding-left: 0; }
  .stat:first-child .stat-rule { display: none; }

  .services-track { grid-template-columns: repeat(3, 1fr); }
  .service-card { padding: 32px; }

  .process-row { gap: 48px; }
  .process-photo {
    width: 576px;
    flex: 0 0 576px;
    aspect-ratio: 576 / 384;
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .contact-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .contact-intro {
    flex: 0 0 400px;
    width: 400px;
  }
  .form-card { flex: 1 1 auto; min-width: 0; }

  .site-footer { padding-top: 36px; padding-bottom: 22px; }
  .site-footer .footer-logo img { height: 28px; }
  .footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
  }
  .footer-contact { max-width: 340px; }
  .footer-bottom {
    flex-wrap: nowrap;
    gap: 24px;
    margin-top: 20px;
    padding-top: 0;
    border: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
  .btn { transition: none; }
}



@media (max-width: 767px) {
  #form-wycena .btn[type="submit"] { width: 100%; height: 48px; }
}

.form-card .btn[type="submit"] { align-self: flex-start; }

.services .section-title { max-width: 720px; }

.field--date { position: relative; }
.field--date input[type="date"] { position: relative; }
.field--date input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  background: transparent;
}

@media (max-width: 767px) {
  .form-card .btn[type="submit"] { align-self: stretch; }
}

/* footer v2: contact under the logo on tablet + desktop (2026-11-10) */
@media (min-width: 768px) {
  .footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 32px;
    align-items: start;
  }
  .footer-logo { grid-column: 1; grid-row: 1; }
  .footer-contact { grid-column: 1; grid-row: 2; max-width: none; gap: 4px; }
  .footer-social { grid-column: 2; grid-row: 1; justify-self: end; }
  .footer-bottom { margin-top: 24px; }
}
@media (min-width: 768px) { .footer-phones .tel-sep { padding: 0 8px; } }

/* header v2: lower bar + frosted glass, Calmdash-style (2026-11-10) */
:root { --header-h: 64px; }
.site-header {
  transition: background-color .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, #ffffff 72%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: color-mix(in srgb, #00204d 8%, transparent);
}
.logo img { width: 112px; height: auto; }
@media (min-width: 768px) {
  :root { --header-h: 68px; }
  .site-header { height: 68px; }
}
@media (min-width: 1200px) {
  :root { --header-h: 72px; }
  .site-header { height: 72px; }
  .logo img { width: 120px; }
  .btn.header-cta { padding-top: 10px; padding-bottom: 10px; min-height: 44px; }
}
@media (min-width: 1200px) { .footer-bottom p:nth-child(3) { margin-left: auto; } }
.site-footer .footer-bottom a { color: var(--color-text-placeholder); font-weight: 600; }
.consent .consent-text a { color: var(--color-text-placeholder); font-weight: 600; text-decoration: none; }
.consent .consent-text a:hover, .consent .consent-text a:focus-visible { text-decoration: underline; }
