/* COGNITIVA website. Tokens, rules and rationale: DESIGN.md */

/* ---------- Fonts (self-hosted Google Sans Flex, OFL; weight axis 100-900) ---------- */
@font-face {
  font-family: "Google Sans Flex";
  src: url("../fonts/GoogleSansFlex-wght-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("../fonts/GoogleSansFlex-wght-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --c-canvas: #ffffff;
  --c-surface: #f5f6f8;
  --c-ink: #121821;
  --c-ink-2: #3d4757;
  --c-ink-3: #5e6876;
  --c-navy: #0b2545;
  --c-navy-deep: #071a33;
  --c-rule: #d9dee5;

  --font: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.5rem, 1.2rem + 5.6vw, 6.5rem);
  --fs-page: clamp(2rem, 1rem + 3.6vw, 4.5rem);
  --fs-block: clamp(1.75rem, 1.3rem + 1.6vw, 3rem);
  --fs-figure: clamp(2.75rem, 1.7rem + 3.6vw, 4.75rem);
  --fs-lead: clamp(1.25rem, 1.08rem + 0.6vw, 1.625rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  --w-rest: 420;
  --w-focus: 720;
  --w-recede: 300;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-y: clamp(64px, 8vw, 120px);
  --gutter: clamp(16px, 2vw, 28px);
  --pad-x: clamp(20px, 4vw, 48px);
  --max: 1280px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-weight: 360ms;
  --t-fast: 150ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--c-navy);
  outline-offset: 3px;
  border-radius: 1px;
}

[id] {
  scroll-margin-top: 24px;
}

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

.skip {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 20;
  padding: var(--space-3) var(--space-4);
  background: var(--c-navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: var(--space-3);
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.arrow {
  flex: none;
  width: 18px;
  height: 12px;
  transition: transform var(--t-fast) var(--ease);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  color: var(--c-navy);
  text-decoration: none;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1;
}

.brand img {
  width: 44px;
  height: 32px;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link,
.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-ink);
  font-size: var(--fs-small);
  font-weight: 560;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  transition: text-decoration-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav__link:hover,
.lang a:hover {
  color: var(--c-navy);
  text-decoration-color: currentColor;
}

/* Current page: the attention rule (weight + navy) */
.nav__link[aria-current="page"] {
  color: var(--c-navy);
  font-weight: 720;
}

.lang {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-left: var(--space-5);
  border-left: 1px solid var(--c-rule);
}

.lang a[aria-current="page"] {
  color: var(--c-navy);
  font-weight: 720;
  text-decoration: none;
}

.lang__sep {
  color: var(--c-ink-3);
}

.nav-toggle {
  display: none;
}

/* ---------- Buttons and links ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 2px;
  background: var(--c-navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease);
}

.btn:hover {
  background: var(--c-navy-deep);
}

.btn:hover .arrow,
.btn:focus-visible .arrow,
.link-quiet:hover .arrow,
.link-quiet:focus-visible .arrow {
  transform: translateX(4px);
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--c-ink);
  font-weight: 560;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--c-ink-3);
  transition: text-decoration-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    text-decoration-thickness var(--t-fast) var(--ease);
}

.link-quiet:hover {
  color: var(--c-navy);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

.text-link {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--c-ink-3);
  transition: text-decoration-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    text-decoration-thickness var(--t-fast) var(--ease);
}

.text-link:hover {
  color: var(--c-navy);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

/* ---------- Page opening ---------- */
.hero {
  padding-block: clamp(40px, 6vw, 96px) 0;
}

/* Small label above a sub-page title (1:1 from the current site) */
.hero__kicker {
  grid-column: 1 / -1;
  margin-bottom: var(--space-5);
  color: var(--c-ink-2);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero__title {
  grid-column: 1 / -1;
  max-width: 11em;
  color: var(--c-ink);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

/* Longer home headline (PL): smaller scale, wider measure, same hierarchy */
.hero__title--long {
  max-width: 14em;
  font-size: clamp(2.125rem, 1.05rem + 4.6vw, 5.25rem);
  line-height: 1.02;
}

/* Sub-page titles */
.hero__title--page {
  max-width: 16em;
  font-size: var(--fs-page);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero__body {
  grid-column: 5 / 12;
  margin-top: clamp(28px, 3.4vw, 48px);
}

.hero__lead,
.lead {
  max-width: 40ch;
  color: var(--c-ink-2);
  font-size: var(--fs-lead);
  font-weight: 380;
  line-height: 1.4;
}

/* ---------- Sections ---------- */
.section {
  padding-top: var(--section-y);
}

main > .section:last-child:not(.section--band) {
  padding-bottom: var(--section-y);
}

.section--band {
  margin-top: var(--section-y);
  padding-block: var(--section-y);
  background: var(--c-surface);
}

.block-title {
  color: var(--c-ink);
  font-size: var(--fs-block);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Heading on the left, content on the right (Swiss two-column) */
.split__title {
  grid-column: 1 / 5;
  align-self: start;
}

.split__body {
  grid-column: 5 / -1;
}

.split__body > .lead + *,
.split__body > p + p {
  margin-top: var(--space-5);
}

/* ---------- Home: services index (attention: weight + navy) ---------- */
.services {
  margin: 0;
  padding: 0;
  list-style: none;
  container-type: inline-size;
  border-bottom: 1px solid var(--c-rule);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  padding-block: clamp(28px, 3.2vw, 44px) clamp(32px, 3.6vw, 52px);
  border-top: 1px solid var(--c-rule);
}

/* Attention rule: a navy line drawn in reading direction over the row in focus */
.service::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--c-navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-weight) var(--ease);
}

.service__title {
  grid-column: 1 / 8;
  /* size fitted per list from the longest name (--fit-* set by the build) */
  font-size: clamp(1.25rem, calc(var(--fit-narrow, 9) * 1cqi), 4.625rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.service__name {
  display: inline-block;
  color: var(--c-ink);
  font-weight: var(--w-rest);
  transition: font-weight var(--t-weight) var(--ease), color var(--t-weight) var(--ease);
}

.service__body {
  grid-column: 8 / -1;
  padding-top: 0.35em;
}

.service__text {
  margin-bottom: var(--space-4);
  color: var(--c-ink);
  transition: color var(--t-weight) var(--ease);
}

/* The "Learn more" link covers the whole row (one link per row for keyboard and screen readers) */
.service__more::after {
  content: "";
  position: absolute;
  inset: 0;
}

.service.is-active::before,
.service:focus-within::before {
  transform: scaleX(1);
}

.service.is-active .service__name,
.service:focus-within .service__name {
  color: var(--c-navy);
  font-weight: var(--w-focus);
}

.services.has-active .service:not(.is-active) .service__name,
.services:has(.service:focus-within) .service:not(:focus-within) .service__name {
  color: var(--c-ink-3);
  font-weight: var(--w-recede);
}

.services.has-active .service:not(.is-active) .service__text,
.services:has(.service:focus-within) .service:not(:focus-within) .service__text {
  color: var(--c-ink-3);
}

@media (hover: hover) and (pointer: fine) {
  .service:hover::before {
    transform: scaleX(1);
  }

  .service:hover .service__name {
    color: var(--c-navy);
    font-weight: var(--w-focus);
  }

  .service:hover .link-quiet {
    color: var(--c-navy);
    text-decoration-color: currentColor;
  }

  .service:hover .arrow {
    transform: translateX(4px);
  }

  .services:has(.service:hover) .service:not(:hover) .service__name {
    color: var(--c-ink-3);
    font-weight: var(--w-recede);
  }

  .services:has(.service:hover) .service:not(:hover) .service__text {
    color: var(--c-ink-3);
  }
}

/* ---------- Service pages: offer grid ---------- */
.offer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-7);
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer__item {
  position: relative;
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-rule);
}

.offer__item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--c-navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-weight) var(--ease);
}

.offer__item:hover::before {
  transform: scaleX(1);
}

.offer__name {
  margin-bottom: var(--space-3);
  color: var(--c-ink);
  font-size: var(--fs-h3);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.offer__text {
  color: var(--c-ink-2);
}

/* ---------- Service pages: what you receive ---------- */
.receive {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.receive__item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--c-rule);
}

.receive__item:last-child {
  border-bottom: 1px solid var(--c-rule);
}

.receive__num {
  color: var(--c-ink-3);
  font-size: var(--fs-small);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  line-height: 1.9;
}

.receive__label {
  margin-bottom: var(--space-2);
  color: var(--c-ink);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
}

.receive__text {
  max-width: 62ch;
  color: var(--c-ink-2);
}

/* ---------- Calls to action ---------- */
.cta-block {
  max-width: 52rem;
}

.cta-block__title {
  margin-bottom: var(--space-5);
}

.closing__text {
  max-width: 44ch;
  color: var(--c-ink);
  font-size: var(--fs-lead);
  font-weight: 380;
  line-height: 1.4;
}

/* ---------- FAQ (verbatim from the current site) ---------- */
.faq .split__title {
  position: sticky;
  top: var(--space-5);
}

.faq__item {
  border-top: 1px solid var(--c-rule);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--c-rule);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 56px;
  padding: var(--space-4) 0;
  color: var(--c-ink);
  font-size: 1.125rem;
  font-weight: 460;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), font-weight var(--t-weight) var(--ease);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--c-navy);
}

.faq__item[open] > .faq__q {
  color: var(--c-navy);
  font-weight: 640;
}

/* Plus that turns into a minus */
.faq__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.4em;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform var(--t-weight) var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__a {
  max-width: 68ch;
  padding-bottom: var(--space-5);
  color: var(--c-ink-2);
}

/* Smooth opening where supported (progressive enhancement) */
@supports selector(::details-content) {
  .faq__item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size var(--t-weight) var(--ease), content-visibility var(--t-weight) var(--ease) allow-discrete;
  }

  .faq__item[open]::details-content {
    block-size: auto;
  }

  @media (prefers-reduced-motion: reduce) {
    .faq__item::details-content {
      transition: none;
    }
  }
}

/* ---------- About ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-6);
  margin: 0;
}

.figure {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--c-rule);
}

.figure dd {
  margin: 0;
  color: var(--c-ink);
  font-size: var(--fs-figure);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}

.figure dt {
  color: var(--c-ink-2);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
}

.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-7);
  margin-top: var(--space-7);
}

.why__item {
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-rule);
}

.why__title {
  margin-bottom: var(--space-3);
  color: var(--c-ink);
  font-size: var(--fs-h3);
  font-weight: 560;
  line-height: 1.2;
}

.why__text {
  color: var(--c-ink-2);
}

.names__label {
  color: var(--c-ink);
  font-weight: 600;
}

.names {
  margin-top: var(--space-3) !important;
  color: var(--c-ink-2);
  font-size: var(--fs-small);
  line-height: 1.75;
}

.logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}

.logos li {
  border-top: 1px solid var(--c-rule);
  padding-block: var(--space-3);
}

/* Client logos in greyscale so they sit inside the palette; files unchanged */
.logos img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.85;
}

.person {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--c-rule);
}

/* Portrait in a 200 px circle, exactly as on the current site (file unchanged) */
.person__photo {
  grid-column: 1 / 4;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.person__text {
  grid-column: 5 / 12;
}

.person__name {
  color: var(--c-ink);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.person__bio {
  max-width: 62ch;
  margin-top: var(--space-4);
  color: var(--c-ink-2);
}

.person__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
}

/* ---------- Contact ---------- */
.contact__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-5);
  margin: 0;
}

.contact__item {
  padding-top: var(--space-4);
  border-top: 1px solid var(--c-rule);
}

.contact__item dt {
  color: var(--c-ink-2);
  font-size: var(--fs-small);
  font-weight: 600;
}

.contact__item dd {
  margin: var(--space-1) 0 0;
  color: var(--c-ink);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-8) var(--space-7);
  border-top: 1px solid var(--c-rule);
  color: var(--c-ink-2);
  font-size: var(--fs-small);
}

.section--band + .site-footer,
main:has(> .section--band:last-child) + .site-footer {
  border-top: 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-6);
}

.site-footer__brand {
  grid-column: 1 / 4;
}

.site-footer__col {
  grid-column: span 3;
}

.site-footer__heading {
  margin-bottom: var(--space-3);
  color: var(--c-ink);
  font-weight: 600;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.site-footer__claim {
  margin-top: var(--space-3);
  color: var(--c-navy);
  font-weight: 600;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-rule);
}

/* ---------- Responsive ---------- */
@media (min-width: 960px) {
  .service__title {
    font-size: clamp(1.75rem, calc(var(--fit-wide, 5.8) * 1cqi), 4.625rem);
  }
}

@media (max-width: 1023px) {
  .site-header__inner {
    gap: var(--space-4);
  }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--space-4);
    border: 1px solid var(--c-rule);
    border-radius: 2px;
    background: transparent;
    color: var(--c-ink);
    font: inherit;
    font-size: var(--fs-small);
    font-weight: 560;
    cursor: pointer;
  }

  .js .nav-toggle[aria-expanded="true"] {
    border-color: var(--c-navy);
    color: var(--c-navy);
  }

  .nav__list {
    flex-wrap: wrap;
  }

  .js .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--pad-x) var(--space-5);
    background: var(--c-canvas);
    border-bottom: 1px solid var(--c-rule);
  }

  .js .nav[data-open="true"] .nav__list {
    display: flex;
    animation: nav-in 160ms var(--ease);
  }

  .js .nav__link {
    width: 100%;
    min-height: 52px;
    border-top: 1px solid var(--c-rule);
    font-size: 1.125rem;
  }

  .lang {
    padding-left: var(--space-4);
  }
}

@media (max-width: 959px) {
  .hero__body,
  .split__title,
  .split__body,
  .service__title,
  .service__body {
    grid-column: 1 / -1;
  }

  .split__body {
    margin-top: var(--space-5);
  }

  .faq .split__title {
    position: static;
  }

  .service__body {
    max-width: 62ch;
    padding-top: var(--space-4);
  }

  .offer,
  .why {
    grid-template-columns: 1fr;
    row-gap: var(--space-6);
  }

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

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

  .person__photo {
    grid-column: 1 / 5;
  }

  .person__text {
    grid-column: 5 / -1;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__col {
    grid-column: span 4;
  }
}

@media (max-width: 599px) {
  .logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .person {
    display: block;
  }

  .person__photo {
    margin-bottom: var(--space-5);
  }

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

  .site-footer__col {
    grid-column: 1 / -1;
  }

  .receive__item {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }
}

@keyframes nav-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Very narrow phones (e.g. 320 px): compact header, slightly smaller headline */
@media (max-width: 400px) {
  .site-header__inner {
    gap: var(--space-3);
  }

  .brand {
    gap: var(--space-2);
    font-size: 1rem;
  }

  .brand img {
    width: 36px;
    height: 26px;
  }

  .js .nav-toggle {
    padding: 0 var(--space-3);
  }

  .lang {
    gap: 6px;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 360px) {
  :root {
    --pad-x: 16px;
  }

  .lang__sep {
    display: none;
  }

  .hero__title {
    font-size: 2.05rem;
  }

  .hero__title--long,
  .hero__title--page {
    font-size: 1.85rem;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
