/*
Theme Name: EuroCarLink
Theme URI: https://eurocarlink.eu/
Author: EuroCarLink
Description: Dedykowany, trójjęzyczny motyw wizytówkowy EuroCarLink.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: eurocarlink
*/

:root {
  --ink: #101820;
  --ink-strong: #070b0f;
  --muted: #5b6470;
  --line: #d9dee4;
  --surface: #ffffff;
  --surface-soft: #f4f6f8;
  --charcoal: #14181f;
  --navy: #001e50;
  --blue: #0041ce;
  --accent: #d10040;
  --accent-dark: #aa0035;
  --accent-on-dark: #ff6f96;
  --success: #287d3c;
  --error: #b42318;
  --white: #ffffff;
  --shadow: 0 24px 64px rgba(7, 11, 15, 0.12);
  --radius: 6px;
  --max: 1240px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--white);
  background: var(--blue);
}

body.menu-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  color: var(--ink-strong);
  font-size: 4.85rem;
  line-height: 0.98;
  font-weight: 820;
}

h2 {
  margin-bottom: 20px;
  color: var(--ink-strong);
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 800;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
}

p {
  line-height: 1.68;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-height);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 222, 228, 0.82);
  transition: box-shadow 180ms ease, background 180ms ease;
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 34px rgba(7, 11, 15, 0.08);
}

.header-inner {
  width: min(var(--max), calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.brand {
  width: 108px;
  height: 70px;
  display: grid;
  align-items: center;
}

.brand img {
  width: 108px;
  height: 70px;
  object-fit: contain;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 720;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}

.main-nav a:hover {
  color: var(--blue);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, 36px);
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.language-switcher a {
  width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.language-switcher a[aria-current="true"] {
  color: var(--white);
  background: var(--navy);
}

.header-phone {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink-strong);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 780;
  transition: background 150ms ease;
}

.header-phone:hover {
  background: var(--navy);
}

.header-phone svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.menu-close-icon,
.site-header.is-menu-open .menu-open-icon {
  display: none;
}

.site-header.is-menu-open .menu-close-icon {
  display: block;
}

.hero {
  position: relative;
  height: min(780px, calc(100svh - 32px));
  min-height: 640px;
  padding-top: var(--header-height);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-soft);
}

.hero-motion-frame {
  position: absolute;
  top: var(--header-height);
  bottom: 0;
  left: 50%;
  z-index: -3;
  width: min(var(--max), calc(100% - 44px));
  height: calc(100% - var(--header-height));
  transform: translateX(-50%);
  overflow: hidden;
}

.hero-motion-frame > picture,
.motion-picture > picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform-origin: 66% 55%;
  animation: hero-media-motion 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hero-shade {
  position: absolute;
  top: var(--header-height);
  bottom: 0;
  left: max(22px, calc((100% - var(--max)) / 2));
  z-index: -2;
  width: min(62%, 680px);
  background: var(--white);
  border-right: 1px solid rgba(217, 222, 228, 0.72);
}

.hero-content {
  width: min(var(--max), calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  padding: 92px 0 150px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.hero-content > * {
  max-width: 610px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lead {
  margin-bottom: 30px;
  color: #444e59;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 20px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.mobile-call {
  display: none;
  color: var(--white);
  background: var(--ink-strong);
}

.text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-strong);
  text-decoration: none;
  font-weight: 800;
}

.text-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.hero-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-facts {
  position: absolute;
  inset: auto 50% 0 auto;
  transform: translateX(50%);
  width: min(var(--max), calc(100% - 44px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: var(--white);
  background: var(--charcoal);
}

.hero-facts div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts strong {
  font-size: 1.08rem;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.section-inner {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.intro-section {
  padding: 96px 0;
  background: var(--surface-soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(360px, 1fr);
  align-items: center;
  gap: 90px;
}

.intro-grid h2 {
  margin-bottom: 0;
}

.intro-grid > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.11rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 0.72fr);
  align-items: end;
  gap: 90px;
}

.section-heading-split h2 {
  margin-bottom: 0;
}

.offer-visual {
  position: relative;
  height: 470px;
  margin-bottom: 0;
  overflow: hidden;
  background: var(--surface-soft);
}

.motion-picture {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.offer-visual img,
.offer-visual video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 56%;
}

.offer-visual img {
  transform-origin: center 58%;
  animation: fleet-media-motion 4.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.offer-visual figcaption {
  position: absolute;
  inset: auto auto 0 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: var(--white);
  background: rgba(20, 24, 31, 0.92);
  font-size: 0.9rem;
  font-weight: 750;
}

.process-section {
  padding: 104px 0 110px;
  color: var(--white);
  background: var(--charcoal);
}

.section-heading-light {
  max-width: 720px;
}

.process-section .eyebrow,
.newsletter-section .eyebrow {
  color: var(--accent-on-dark);
}

.section-heading-light h2 {
  color: var(--white);
}

.section-heading-light > p:last-child {
  color: rgba(255, 255, 255, 0.66);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.process-item {
  min-height: 224px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.process-number {
  display: block;
  margin-bottom: 42px;
  color: #ff557f;
  font-size: 0.82rem;
  font-weight: 850;
}

.process-item h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.process-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.91rem;
}

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

.story-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 76px;
}

.story-image {
  position: relative;
  height: 590px;
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-image img,
.story-image video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.story-image img {
  transform-origin: 52% 48%;
  animation: handover-media-motion 4.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.media-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(7, 11, 15, 0.82);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero > .media-toggle {
  right: max(36px, calc((100% - var(--max)) / 2 + 14px));
  bottom: 110px;
}

.media-toggle:hover {
  background: var(--navy);
}

.media-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-play-icon,
.media-toggle.is-paused .media-pause-icon {
  display: none;
}

.media-toggle.is-paused .media-play-icon {
  display: block;
}

.hero-image.is-paused,
.offer-visual img.is-paused,
.story-image img.is-paused {
  animation-play-state: paused;
}

body.admin-bar .site-header {
  top: 32px;
}

@keyframes hero-media-motion {
  0%,
  100% {
    transform: scale(1.07) translate3d(-1.2%, 0.4%, 0);
  }

  46% {
    transform: scale(1.14) translate3d(1.8%, -0.8%, 0);
  }

  72% {
    transform: scale(1.1) translate3d(0.8%, 0.5%, 0);
  }
}

@keyframes fleet-media-motion {
  0%,
  100% {
    transform: scale(1.07) translate3d(-1.6%, 0.5%, 0);
  }

  50% {
    transform: scale(1.13) translate3d(1.7%, -0.8%, 0);
  }
}

@keyframes handover-media-motion {
  0%,
  100% {
    transform: scale(1.08) translate3d(-1.1%, 0.7%, 0);
  }

  48% {
    transform: scale(1.15) translate3d(1.5%, -1%, 0);
  }
}

.story-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.proof-item {
  min-height: 116px;
  padding: 10px 14px 10px 18px;
  border-left: 3px solid var(--accent);
}

.proof-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: 1rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.newsletter-section {
  position: relative;
  padding: 90px 0;
  color: var(--white);
  background: var(--navy);
}

.newsletter-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--accent);
}

.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.78fr) minmax(420px, 1fr);
  align-items: center;
  gap: 86px;
}

.newsletter-copy h2 {
  margin-bottom: 16px;
  color: var(--white);
}

.newsletter-copy p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.newsletter-form {
  display: grid;
  gap: 16px;
}

.newsletter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
}

.newsletter-form input[type="email"]::placeholder {
  color: #76808a;
}

.newsletter-form input[type="email"]:focus {
  outline: 3px solid rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

.consent-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
  line-height: 1.55;
  cursor: pointer;
}

.consent-field a {
  color: inherit;
  font-weight: 760;
  text-underline-offset: 3px;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #b8f4c3;
  font-size: 0.84rem;
  font-weight: 720;
}

.form-status.is-error {
  color: #ffb4a9;
}

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

.contact-section {
  background: var(--surface-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 0.86fr) minmax(260px, 0.64fr);
  align-items: start;
  gap: 52px;
}

.lead-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  gap: 28px 44px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.lead-form-heading h3 {
  max-width: 360px;
  margin: 0;
  font-size: 1.65rem;
}

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

.field-grid label,
.message-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 760;
}

.lead-form input:not([type="checkbox"]),
.lead-form textarea {
  width: 100%;
  border: 1px solid #c7ccd3;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.lead-form input:not([type="checkbox"]) {
  min-height: 48px;
}

.lead-form textarea {
  min-height: 140px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 3px solid rgba(0, 65, 206, 0.14);
  border-color: var(--blue);
}

.lead-form .message-field,
.lead-form > .consent-field,
.lead-form-footer {
  grid-column: 2;
}

.lead-form > .consent-field {
  color: var(--muted);
}

.lead-form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lead-form-footer .form-status {
  color: #137333;
}

.lead-form-footer .form-status.is-error {
  color: #b3261e;
}

button[disabled] {
  opacity: 0.65;
  cursor: wait;
}

button[aria-busy="true"]::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: submit-spin 700ms linear infinite;
}

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

.contact-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.button.whatsapp {
  margin-top: 14px;
  color: var(--white);
  background: var(--ink-strong);
}

.button.whatsapp:hover {
  background: var(--blue);
}

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

.contact-person {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-role {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-person h3 {
  margin: 2px 0 8px;
}

.contact-person a,
.company-details a {
  width: fit-content;
  color: var(--ink);
  text-decoration-color: rgba(0, 65, 206, 0.4);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.company-details {
  padding: 26px;
  color: var(--white);
  background: var(--navy);
}

.company-details h3 {
  margin-bottom: 18px;
  color: var(--white);
}

.company-details address {
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  line-height: 1.72;
}

.legal-entity-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.company-details a {
  color: var(--white);
}

.company-details details {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.company-details summary {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.company-details details p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.62);
  background: var(--ink-strong);
}

.footer-inner {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  font-size: 0.8rem;
}

.footer-inner img {
  width: 96px;
  height: 56px;
  object-fit: contain;
  filter: invert(1);
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  text-align: center;
}

.footer-legal-links a,
.footer-legal-links button {
  color: inherit;
  text-underline-offset: 4px;
}

.footer-legal-links button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.analytics-consent {
  position: fixed;
  inset: auto auto 14px 50%;
  z-index: 50;
  width: min(920px, calc(100% - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px;
  color: var(--white);
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(7, 11, 15, 0.28);
  transform: translateX(-50%);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent h2 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 1rem;
}

.analytics-consent p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.55;
}

.analytics-consent p a {
  color: var(--white);
  text-underline-offset: 3px;
}

.analytics-consent-actions {
  display: flex;
  gap: 8px;
}

.analytics-consent .button {
  min-height: 44px;
  white-space: nowrap;
}

.consent-reject {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
}

.content-page {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(76px, 9vw, 132px) 0;
  background: var(--white);
}

.content-page-inner {
  width: min(820px, calc(100% - 44px));
  margin: 0 auto;
}

.content-page h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.content-page-intro {
  max-width: 720px;
  margin-bottom: 44px;
  color: var(--muted);
  font-size: 1.14rem;
}

.content-featured-image {
  width: 100%;
  max-height: 480px;
  margin: 0 0 44px;
  object-fit: cover;
}

.rich-text {
  color: var(--ink);
  line-height: 1.75;
}

.rich-text h2,
.rich-text h3 {
  margin: 2em 0 0.7em;
}

.rich-text a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.search-form {
  display: grid;
  gap: 10px;
  margin: 34px 0 54px;
  font-size: 0.82rem;
  font-weight: 760;
}

.search-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c7ccd3;
  border-radius: var(--radius);
  padding: 0 14px;
}

.search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-results li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.search-results h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.search-results p {
  margin: 0;
  color: var(--muted);
}

.search-pagination {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  font-weight: 760;
}

.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;
}

:focus-visible {
  outline: 3px solid rgba(0, 65, 206, 0.36);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 126px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .main-nav a {
    padding: 0 9px;
    font-size: 0.84rem;
  }

  .header-phone span {
    display: none;
  }

  .header-phone {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .hero-content > * {
    max-width: min(550px, calc(62% - 30px));
  }

  .story-grid {
    gap: 48px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .proof-item {
    min-height: auto;
  }

  .contact-grid {
    grid-template-columns: minmax(340px, 1fr) minmax(320px, 0.9fr);
  }

  .company-details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: minmax(132px, 1fr) auto;
  }

  .main-nav {
    position: absolute;
    inset: var(--header-height) 0 auto;
    width: 100%;
    justify-self: stretch;
    display: none;
    padding: 14px 22px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 38px rgba(7, 11, 15, 0.1);
  }

  .site-header.is-menu-open .main-nav {
    display: grid;
  }

  .main-nav a {
    min-height: 50px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.96rem;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .menu-toggle {
    display: grid;
  }

  .hero-shade {
    width: 68%;
  }

  .hero-content > * {
    max-width: min(560px, calc(68% - 32px));
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .intro-grid,
  .section-heading-split,
  .story-grid,
  .newsletter-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .section-heading-split,
  .newsletter-grid {
    gap: 34px;
  }

  .story-grid {
    gap: 54px;
  }

  .section-heading-split > p:last-child {
    max-width: 700px;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-image {
    height: 520px;
  }

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

@media (max-width: 720px) {
  :root {
    --header-height: 70px;
  }

  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-content {
    width: calc(100% - 32px);
  }

  .brand {
    width: 98px;
    height: 64px;
  }

  .brand img {
    width: 98px;
    height: 64px;
  }

  .header-phone {
    display: none;
  }

  .language-switcher {
    grid-template-columns: repeat(3, 44px);
  }

  .language-switcher a {
    width: 44px;
    height: 44px;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding-top: var(--header-height);
    display: grid;
    grid-template-areas:
      "content"
      "media"
      "facts";
  }

  .hero-motion-frame {
    position: relative;
    inset: auto;
    grid-area: media;
    z-index: 0;
    width: 100%;
    height: clamp(168px, 52vw, 240px);
    transform: none;
  }

  .hero > .media-toggle {
    display: none;
  }

  .hero-image,
  .hero-video {
    object-position: 64% 54%;
  }

  .hero-shade {
    display: none;
  }

  .hero-content {
    grid-area: content;
    height: auto;
    padding: 48px 0 40px;
    align-content: start;
  }

  .hero-content > * {
    max-width: 520px;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-lead {
    max-width: 500px;
    margin-bottom: 22px;
    font-size: 1rem;
  }

  .hero-note {
    display: none;
  }

  .hero-facts {
    position: static;
    inset: auto;
    grid-area: facts;
    width: 100%;
    transform: none;
  }

  .mobile-call {
    display: inline-flex;
  }

  .hero-facts div {
    min-height: 82px;
    padding: 12px 10px;
  }

  .hero-facts strong {
    font-size: 0.9rem;
  }

  .hero-facts span {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .section,
  .process-section {
    padding: 76px 0;
  }

  .intro-section {
    padding: 70px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .offer-visual {
    height: 310px;
    margin-bottom: 26px;
  }

  .process-list,
  .proof-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-list {
    gap: 0;
  }

  .process-item {
    min-height: 190px;
  }

  .process-number {
    margin-bottom: 26px;
  }

  .story-image {
    height: 390px;
  }

  .newsletter-section {
    padding: 72px 0;
  }

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

  .newsletter-row .button {
    width: 100%;
  }

  .contact-grid {
    gap: 34px;
  }

  .lead-form {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lead-form .message-field,
  .lead-form > .consent-field,
  .lead-form-footer {
    grid-column: 1;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .lead-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-details {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
  }

  .footer-legal-links {
    justify-content: flex-start;
    text-align: left;
  }

  .analytics-consent {
    inset: auto 0 0;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 16px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    transform: none;
  }

  .analytics-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .search-form > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 430px) {
  .header-inner {
    width: calc(100% - 24px);
    grid-template-columns: minmax(88px, 1fr) auto;
    gap: 6px;
  }

  .header-actions {
    gap: 6px;
  }

  .brand,
  .brand img {
    width: 88px;
  }

  .language-switcher {
    grid-template-columns: repeat(3, 44px);
    gap: 1px;
    padding: 2px;
  }

  .language-switcher a {
    width: 44px;
    height: 44px;
    font-size: 0.72rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1;
  }

  h2 {
    font-size: 1.88rem;
  }

  .hero-content {
    padding: 38px 0 32px;
  }

  .hero-actions {
    align-items: stretch;
    gap: 6px 8px;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    min-height: 44px;
  }

  .hero-actions .button {
    padding-inline: 14px;
  }

  .hero-facts strong {
    font-size: 0.82rem;
  }

  .offer-visual {
    height: 260px;
  }

  .offer-visual figcaption {
    max-width: calc(100% - 20px);
    font-size: 0.82rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .hero-image,
  .offer-visual img,
  .story-image img {
    animation: none !important;
    transform: none !important;
  }
}
