:root {
  --bg: #0b0d0c;
  --surface: #111411;
  --surface-2: #171b17;
  --surface-3: #20251f;
  --text: #f0f3ee;
  --muted: #aeb6ac;
  --subtle: #737b72;
  --accent: #b6d96b;
  --accent-dark: #18200c;
  --line: rgba(232, 240, 229, 0.12);
  --line-strong: rgba(232, 240, 229, 0.2);
  --radius: 24px;
  --radius-inner: 19px;
  --radius-button: 12px;
  --container: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
  --nav-layer: 20;
  --menu-layer: 15;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 28px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 73% 9%, rgba(182, 217, 107, 0.055), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

.section-shell {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.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-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-160%);
  transition: transform 350ms var(--ease);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: relative;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--nav-layer);
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 12, 0.78);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 64px), var(--container));
  min-height: var(--nav-h);
  margin-inline: auto;
  padding-block: 8px;
}

.brand,
.footer-brand {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand {
  font-size: 18.2px;
}

.footer-brand {
  font-size: 14px;
}

.brand span,
.footer-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  color: var(--muted);
  font-size: 17px;
}

.nav-links a {
  transition: color 420ms var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

/* Спрайт не малюється сам, лише віддає <symbol> для <use> */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Іконки соцмереж лишаються в шапці на всіх ширинах: удвох вони вужчі за
   одне слово навігації, тож ховати їх разом із меню немає за що. Розмір
   кнопки — 44px, мінімальна зона натискання, а сам знак дрібніший, щоб не
   перетягувати увагу з CTA */
.nav-social,
.footer-social {
  display: flex;
  align-items: center;
  gap: 2px;
}

.social-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: color 420ms var(--ease), background-color 420ms var(--ease);
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-link:hover {
  background: var(--surface-3);
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 7px 8px 7px 20px;
  border: 0;
  border-radius: var(--radius-button);
  white-space: nowrap;
  cursor: pointer;
  transition: color 600ms var(--ease), background-color 600ms var(--ease), transform 600ms var(--ease), box-shadow 600ms var(--ease);
}

.nav-cta {
  background: var(--text);
  color: #141814;
  font-size: 13px;
  font-weight: 650;
}

.nav-cta:hover,
.button-primary:hover {
  box-shadow: 0 10px 34px rgba(182, 217, 107, 0.14);
  transform: translateY(-2px);
}

.nav-cta:active,
.button:active {
  transform: scale(0.98);
}

.button-orbit {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 13, 10, 0.08);
  transition: transform 600ms var(--ease), background-color 600ms var(--ease);
}

.nav-cta:hover .button-orbit,
.button:hover .button-orbit {
  transform: translate(3px, -2px) scale(1.04);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
}

.menu-line {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 520ms var(--ease);
}

.menu-line:nth-child(2) {
  transform: translateY(-3px);
}

.menu-line:nth-child(3) {
  transform: translateY(3px);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--menu-layer);
  background: rgba(8, 10, 8, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-links {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  /* Стартуємо одразу під шапкою, а не по центру екрана */
  justify-content: flex-start;
  gap: 18px;
  width: min(calc(100% - 48px), 520px);
  margin-inline: auto;
  padding: calc(var(--nav-h) + 44px) 0 48px;
}

.mobile-menu-links a {
  font-size: clamp(2.1rem, 11vw, 4.2rem);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.045em;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), color 350ms var(--ease);
}

.mobile-menu.is-open .mobile-menu-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu-links a:nth-child(2) {
  transition-delay: 55ms;
}

.mobile-menu.is-open .mobile-menu-links a:nth-child(3) {
  transition-delay: 110ms;
}

.mobile-menu.is-open .mobile-menu-links a:nth-child(4) {
  color: var(--accent);
  transition-delay: 165ms;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  /* Стеля висоти: на високих екранах hero не розтягується порожнечею,
     а віддає низ екрана наступній секції — вона й підказує, що є скрол */
  min-height: min(100dvh, 900px);
  align-items: start;
  align-content: start;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 44px;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 26%, rgba(11, 13, 12, 0.96) 39%, rgba(11, 13, 12, 0.72) 54%, rgba(11, 13, 12, 0.08) 78%, transparent 100%),
    linear-gradient(180deg, rgba(11, 13, 12, 0.78) 0%, transparent 17%, transparent 70%, var(--bg) 100%);
}

.hero-credit {
  position: absolute;
  left: min(calc(100% - min(78vw, 1240px) * 0.38), calc(100% - 262px));
  bottom: 32px;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  color: var(--subtle);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-credit span {
  padding: 0 2px;
  color: var(--accent);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: min(78vw, 1240px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 6%, #000 22%, #000 82%, rgba(0, 0, 0, 0.4) 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 6%, #000 22%, #000 82%, rgba(0, 0, 0, 0.4) 92%, transparent 100%);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 13, 12, 0.98) 14%, rgba(11, 13, 12, 0.86) 28%, rgba(11, 13, 12, 0.56) 39%, rgba(11, 13, 12, 0.2) 48%, transparent 56%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  opacity: 0.94;
  filter: saturate(0.78) contrast(1.05) brightness(0.92);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 5%, #000 15%, #000 72%, rgba(0, 0, 0, 0.45) 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 5%, #000 15%, #000 72%, rgba(0, 0, 0, 0.45) 86%, transparent 100%);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.approach-heading h2,
.contact-copy h2 {
  margin: 0;
  font-weight: 520;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.55vw, 1.4rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hero-offer {
  display: grid;
  /* Одна колонка на всіх ширинах: панелі читаються як послідовність
     напрямів, а не як порівняння двох рівнозначних колонок */
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 560px;
  margin-top: 24px;
}

/* Панелі лежать поверх портрета, тож фон напівпрозорий, а blur тримає текст
   спокійним на неоднорідному тлі. На мобільному blur знімається — там під
   панелями саме обличчя, і воно має бути видимим */
.hero-offer-group {
  padding: 20px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(23, 27, 23, 0.72), rgba(17, 20, 17, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: border-color 600ms var(--ease), transform 700ms var(--ease);
}

.hero-offer-group:nth-child(2) {
  background:
    linear-gradient(120deg, rgba(182, 217, 107, 0.09), transparent 52%),
    linear-gradient(160deg, rgba(23, 27, 23, 0.72), rgba(17, 20, 17, 0.5));
}

.hero-offer-group:hover {
  border-color: rgba(182, 217, 107, 0.34);
  transform: translateY(-4px);
}

.hero-offer-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-offer-group h2::before {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.hero-offer-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-offer-group li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

.hero-offer-group li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 14px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 58px;
  padding-left: 24px;
  font-weight: 650;
}

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

.button-primary .button-orbit {
  background: rgba(10, 14, 8, 0.11);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button-secondary .button-orbit {
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  border-color: rgba(232, 240, 229, 0.32);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.experience {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 8% 32%, rgba(182, 217, 107, 0.09), transparent 30rem),
    rgba(255, 255, 255, 0.012);
}

.experience-layout {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
}

.experience-lead {
  display: flex;
  min-width: 0;
  min-height: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px clamp(34px, 4.8vw, 82px) 48px;
  border-right: 1px solid var(--line-strong);
  text-align: center;
}

.experience-lead strong {
  color: var(--accent);
  font-size: clamp(5rem, 8vw, 8.6rem);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.experience-lead p {
  max-width: 390px;
  margin: 38px auto 0;
  color: #d8ddd5;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.45;
}

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

.experience-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px clamp(26px, 3.2vw, 56px) 48px;
  text-align: center;
}

.experience-stat + .experience-stat {
  border-left: 1px solid var(--line);
}

.experience-stat strong {
  color: var(--accent);
  font-size: clamp(2.8rem, 4vw, 4.35rem);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

/* Два рядки зарезервовано навмисно: «проєктів трансформував» у цьому
   кеглі не вміщається в рядок, і без резерву його цифра стояла б вище
   за сусідні */
.experience-stat span {
  max-width: 220px;
  min-height: 3em;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}

.proof {
  overflow: hidden;
  padding: 14px 0 34px;
  border-bottom: 1px solid var(--line);
}

.proof-label {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(0.7rem, 1.05vw, 0.95rem);
  letter-spacing: -0.015em;
  text-align: center;
}

/* Базовий стан — статична сітка в два ряди. Стрічка вмикається лише на
   вузьких екранах (див. @media 820px), де десять знаків у два ряди не
   влазять. На десктопі рух тут коштував би читачу хвилину очікування
   заради інформації, яка й так уміщається на екран. */
.marquee {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.2vw, 44px);
}

.marquee-line {
  display: flex;
  justify-content: center;
}

.marquee-track {
  display: flex;
}

/* Дубль ряду потрібен лише для безшовного циклу мобільної стрічки. */
.marquee-track .company-row[aria-hidden="true"] {
  display: none;
}

.company-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 4.8vw, 80px);
  padding: 0 32px;
  color: #c8cec5;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 620;
  letter-spacing: -0.02em;
}

.company-row span {
  display: inline-flex;
  align-items: center;
}

/* Логотипи малюються маскою поверх currentColor: так вони лишаються
   монохромними й успадковують колір ряду замість брендових кольорів,
   які розсипають палітру секції. */
.company-logo {
  display: none;
  flex: none;
  height: var(--logo-h);
  aspect-ratio: var(--logo-r);
  background: currentColor;
}

/* Висоти підібрані по оптичній вазі, а не по bounding box: широкі й
   насичені знаки притиснуті, легкі та двоярусні — підняті. */
.logo-nova-digital {
  --logo-src: url("assets/logos/nova-digital.svg");
  --logo-r: 3.042;
  --logo-h: 1.03em;
}

.logo-nova-poshta {
  --logo-src: url("assets/logos/nova-poshta-lockup.svg");
  --logo-r: 7.64;
  --logo-h: 0.93em;
}

.logo-nova-post {
  --logo-src: url("assets/logos/nova-post.svg");
  --logo-r: 8.848;
  --logo-h: 0.59em;
}

.logo-p2h {
  --logo-src: url("assets/logos/p2h.svg");
  --logo-r: 1.859;
  --logo-h: 1.08em;
}

.logo-ideals {
  --logo-src: url("assets/logos/ideals.svg");
  --logo-r: 3.566;
  --logo-h: 0.9em;
}

.logo-creatio {
  --logo-src: url("assets/logos/creatio.svg");
  --logo-r: 3.386;
  --logo-h: 1.02em;
}

.logo-wesoftyou {
  --logo-src: url("assets/logos/wesoftyou.svg");
  --logo-r: 1.517;
  --logo-h: 1.19em;
}

.logo-sportlabs {
  --logo-src: url("assets/logos/sportlabs.png");
  --logo-r: 4.941;
  --logo-h: 0.92em;
}

.logo-livingsecurity {
  --logo-src: url("assets/logos/livingsecurity.png");
  --logo-r: 5.969;
  --logo-h: 0.92em;
}

.logo-nhr {
  --logo-src: url("assets/logos/nhr.svg");
  --logo-r: 1.955;
  --logo-h: 1.22em;
}

/* Без підтримки маски лишається текстова назва — порожній прямокутник
   currentColor гірший за слово. */
@supports ((mask-image: url("assets/logos/creatio.svg")) or (-webkit-mask-image: url("assets/logos/creatio.svg"))) {
  .company-logo {
    display: block;
    -webkit-mask: var(--logo-src) no-repeat center / contain;
    mask: var(--logo-src) no-repeat center / contain;
  }

  .company-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* translate3d, а не translateX: доріжка гарантовано їде окремим шаром
   композитора замість перемальовки щокадру. Обидва кадри виписані явно —
   неявний from підтягнув би базовий transform елемента, а він у
   marquee-reverse інший (див. .marquee-track-reverse). */
@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Другий ряд їде назустріч першому: так за один цикл читач бачить обидві
   половини списку, а не чекає, поки повз нього пройде вся стрічка. */
@keyframes marquee-reverse {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.services {
  padding-top: 152px;
  padding-bottom: 152px;
}

.approach-heading h2,
.contact-copy h2 {
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 1;
}

.approach-heading > p {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "large accent"
    "dark career";
  grid-auto-rows: 1fr;
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: border-color 600ms var(--ease), transform 700ms var(--ease), background-color 600ms var(--ease);
}

.service-card:hover {
  border-color: rgba(182, 217, 107, 0.34);
  transform: translateY(-5px);
}

.service-card-large {
  grid-area: large;
  background:
    radial-gradient(circle at 90% 10%, rgba(182, 217, 107, 0.13), transparent 16rem),
    var(--surface-2);
}

.service-card-accent {
  grid-area: accent;
  background:
    radial-gradient(circle at 15% 90%, rgba(182, 217, 107, 0.12), transparent 14rem),
    var(--surface-2);
}

.service-card-dark {
  grid-area: dark;
  background:
    radial-gradient(circle at 85% 15%, rgba(182, 217, 107, 0.1), transparent 15rem),
    var(--surface-2);
}

.service-card-career {
  grid-area: career;
  background:
    linear-gradient(120deg, rgba(182, 217, 107, 0.06), transparent 45%),
    var(--surface);
}

.card-index {
  color: var(--subtle);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Плитки 01, 02 і 04: номер та водяний знак виводимо з потоку, щоб текст
   стояв по центру самої плитки, а не по центру того, що від неї лишилось.
   03 має стовпчики-сигнали як частину композиції й лишається як є. */
.service-card-large,
.service-card-accent,
.service-card-dark,
.service-card-career {
  justify-content: center;
}

.service-card-large > .card-index,
.service-card-accent > .card-index,
.service-card-dark > .card-index,
.service-card-career > .card-index {
  position: absolute;
  top: clamp(28px, 4vw, 52px);
  left: clamp(28px, 4vw, 52px);
}

/* Слово-знак живе за тими самими правилами, що й фонові піктограми
   решти плиток: правий нижній кут, той самий відступ від краю. */
.service-card-large > .service-mark {
  position: absolute;
  right: 5%;
  bottom: 7%;
}

.card-body {
  position: relative;
  z-index: 1;
}

.service-card h3 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3.35rem);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.service-card p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.service-mark {
  color: var(--accent);
  opacity: 0.13;
  font-size: clamp(4rem, 8.8vw, 10rem);
  font-weight: 700;
  line-height: 0.7;
  letter-spacing: -0.09em;
}

/* Фонова піктограма в плитках без власної графіки: та сама мова, що в
   стовпчиках-сигналах — акцент на низькій непрозорості, у нижньому куті. */
.card-glyph {
  position: absolute;
  right: 5%;
  bottom: 7%;
  width: auto;
  height: 56%;
  color: var(--accent);
  opacity: 0.13;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ширший viewBox — компенсуємо товщину штриха, щоб обидві піктограми
   виглядали однаково важкими. */
.card-glyph-steps {
  stroke-width: 1.85;
}

.signal-lines {
  position: absolute;
  right: 4%;
  bottom: 6%;
  display: flex;
  align-items: end;
  gap: 3.4%;
  width: 34%;
  height: 52%;
  opacity: 0.13;
}

.signal-lines span {
  flex: 1;
  height: 30%;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: bottom;
}

.signal-lines span:nth-child(2) {
  height: 58%;
}

.signal-lines span:nth-child(3) {
  height: 100%;
  opacity: 0.82;
}

.signal-lines span:nth-child(4) {
  height: 70%;
}

.signal-lines span:nth-child(5) {
  height: 42%;
}

.approach {
  display: grid;
  gap: clamp(48px, 5vw, 70px);
  padding-top: 76px;
  padding-bottom: 152px;
  border-top: 1px solid var(--line);
}

.approach-band {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.approach-band b {
  flex: none;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.approach-band p {
  margin: 0;
  color: var(--muted);
}

.approach-band-out {
  border-style: solid;
  border-color: rgba(182, 217, 107, 0.35);
  background: rgba(182, 217, 107, 0.06);
}

.approach-band-out p {
  color: var(--text);
}

.approach-drop {
  display: block;
  width: 1px;
  height: 44px;
  margin: 0 auto;
  background: linear-gradient(var(--line-strong), var(--accent));
}

.approach-row {
  --flow-gap: clamp(26px, 3.6vw, 54px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--flow-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.approach-node {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.approach-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: calc(-0.5 * var(--flow-gap) - 17px);
  width: 34px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14' fill='none'%3E%3Cpath d='M0 7h36M30 1l6 6-6 6' stroke='%23b6d96b' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}

.approach-node-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.approach-node h3 {
  margin: 20px 0 0;
  font-size: clamp(1.35rem, 1.9vw, 1.85rem);
  font-weight: 520;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.approach-node ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.approach-node li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
}

.approach-node li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  content: "";
}

.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(56px, 9vw, 150px);
  padding-top: 76px;
  padding-bottom: 152px;
  border-top: 1px solid var(--line);
}

.about-media {
  position: relative;
  width: 100%;
  max-width: 720px;
}

/* Той самий прийом, що в герої: фото гасне не лише маскою по кромці, а й
   заливкою кольором фону — так прямокутник перестає читатись як обʼєкт. */
.about-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(
    ellipse 82% 82% at 47% 56%,
    transparent 0%,
    rgba(11, 13, 12, 0.1) 55%,
    rgba(11, 13, 12, 0.45) 76%,
    rgba(11, 13, 12, 0.85) 91%,
    var(--bg) 100%
  );
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: contrast(1.02);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.07) 7%, rgba(0, 0, 0, 0.28) 14%, rgba(0, 0, 0, 0.66) 21%, #000 27%, #000 75%, rgba(0, 0, 0, 0.6) 84%, rgba(0, 0, 0, 0.18) 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 5%, rgba(0, 0, 0, 0.35) 11%, rgba(0, 0, 0, 0.74) 17%, #000 23%, #000 66%, rgba(0, 0, 0, 0.55) 80%, rgba(0, 0, 0, 0.18) 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.07) 7%, rgba(0, 0, 0, 0.28) 14%, rgba(0, 0, 0, 0.66) 21%, #000 27%, #000 75%, rgba(0, 0, 0, 0.6) 84%, rgba(0, 0, 0, 0.18) 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 5%, rgba(0, 0, 0, 0.35) 11%, rgba(0, 0, 0, 0.74) 17%, #000 23%, #000 66%, rgba(0, 0, 0, 0.55) 80%, rgba(0, 0, 0, 0.18) 92%, transparent 100%);
  mask-composite: intersect;
}

.about-body {
  align-self: end;
  padding-bottom: 8px;
}

.about-body p {
  max-width: 570px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.text-link,
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(182, 217, 107, 0.42);
  color: var(--accent);
  font-weight: 650;
  transition: border-color 400ms var(--ease), gap 400ms var(--ease);
}

.text-link:hover,
.contact-link:hover {
  gap: 12px;
  border-color: var(--accent);
}

.contact {
  padding-top: 100px;
  padding-bottom: 100px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(48px, 8vw, 120px);
  padding: clamp(34px, 6vw, 84px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 0% 0%, rgba(182, 217, 107, 0.1), transparent 25rem),
    var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.contact-copy h2 {
  max-width: 580px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 9px;
}

.field label {
  color: #d8ddd5;
  font-size: 13px;
  font-weight: 650;
}

.field label span {
  color: var(--subtle);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(232, 240, 229, 0.18);
  border-radius: 14px;
  outline: 0;
  background: rgba(7, 10, 7, 0.58);
  color: var(--text);
  transition: border-color 420ms var(--ease), background-color 420ms var(--ease), box-shadow 420ms var(--ease);
}

.field input,
.field select {
  height: 54px;
  padding: 0 16px;
}

.field textarea {
  min-height: 136px;
  padding: 14px 16px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(232, 240, 229, 0.3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgba(7, 10, 7, 0.8);
  box-shadow: 0 0 0 3px rgba(182, 217, 107, 0.12);
}

.field [aria-invalid="true"] {
  border-color: #f2937f;
  box-shadow: 0 0 0 3px rgba(242, 147, 127, 0.1);
}

.field-error {
  min-height: 18px;
  color: #f7a692;
  font-size: 12px;
  line-height: 1.4;
}

.submit-button {
  justify-self: start;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.66;
}

.form-status {
  min-height: 24px;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status.is-success {
  color: var(--accent);
}

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

.contact-forms {
  display: grid;
  align-content: start;
  gap: 30px;
}

.form-tabs {
  display: inline-flex;
  gap: 4px;
  justify-self: start;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 10, 7, 0.42);
}

.form-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  outline-offset: 3px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 420ms var(--ease), color 420ms var(--ease);
}

.form-tab:hover {
  color: var(--text);
}

.form-tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-dark);
}

.form-panel {
  display: grid;
  gap: 26px;
  outline-offset: 6px;
}

/* display: grid перебиває атрибут hidden — повертаємо його для всіх таких блоків. */
.form-panel[hidden],
.booking-step[hidden],
.booking-fallback[hidden],
.contact-form[hidden] {
  display: none;
}

.captcha-field {
  display: grid;
  gap: 9px;
  margin-top: -6px;
}

/* Віджет hCaptcha має фіксовані ~303px. На вузьких екранах даємо йому
   прокрутитись усередині себе, щоб не тягнути за собою всю сторінку. */
.h-captcha {
  max-width: 100%;
  overflow-x: auto;
  min-height: 78px;
}

.h-captcha iframe {
  border-radius: 8px;
}

/* Приманка для ботів: Web3Forms відкидає сабміт, якщо поле заповнене. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 650;
  transition: color 420ms var(--ease);
}

.flow-step-num {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition: border-color 420ms var(--ease), background-color 420ms var(--ease), color 420ms var(--ease);
}

.flow-step.is-current {
  color: var(--text);
}

.flow-step.is-current .flow-step-num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-dark);
}

.flow-step.is-done .flow-step-num {
  border-color: rgba(182, 217, 107, 0.5);
  color: var(--accent);
}

.booking-step {
  display: grid;
  gap: 18px;
}

.booking-title {
  margin: 0;
  outline-offset: 6px;
}

/* Фокус на заголовку ставиться програмно, щоб озвучити перехід на крок 2.
   Рамка потрібна лише клавіатурі — миші вона читається як артефакт. */
.booking-title:focus:not(:focus-visible) {
  outline: none;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.booking-lead {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 15px;
}

.duration-pick {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.duration-label {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 650;
}

.duration-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 10, 7, 0.42);
}

.duration-option {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  outline-offset: 3px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 420ms var(--ease), color 420ms var(--ease);
}

.duration-option:hover {
  color: var(--text);
}

.duration-option[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-dark);
}

/* Ембед Cal.com сам керує своєю висотою; контейнер лише не дає йому
   розсунути сторінку і тримає місце, поки календар вантажиться. */
.cal-embed {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: auto;
  border-radius: var(--radius-inner);
  /* Темна підкладка, щоб іфрейм не блимав білим, поки вантажиться. */
  background: var(--surface-3);
}

/* Cal малює власний світлий скелет, доки не застосує тему. Тримаємо іфрейм
   прозорим до події linkReady і показуємо свій підпис на темному тлі — але лише
   доки іфрейма немає, інакше підпис накладається на спінер самого Cal. */
.cal-embed.is-loading:not(:has(iframe))::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--subtle);
  font-size: 14px;
  content: "Завантажую календар…";
}

.cal-embed iframe {
  opacity: 0;
  transition: opacity 500ms var(--ease);
}

.cal-embed.is-ready iframe {
  opacity: 1;
}

.cal-embed:empty {
  min-height: 0;
}

.booking-fallback {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-inner);
  background: rgba(182, 217, 107, 0.06);
}

.booking-fallback p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
}

.form-status a {
  color: inherit;
  text-decoration: underline;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 36px;
  padding-top: 44px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 13px;
}

.footer-brand {
  color: var(--text);
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

/* Кнопка лишається 44px заради пальця, але у футері рядок текстовий і
   низький — від'ємні поля не дають іконкам розігнати його висоту */
.footer-social {
  margin-block: -12px;
  margin-inline: -10px;
}

.footer-social .social-link {
  color: var(--muted);
}

.footer-links a {
  transition: color 400ms var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .about,
  .contact-panel {
    gap: 64px;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-h: 62px;
  }

  /* Тут десять знаків у два статичні ряди не влазять, тому кожен ряд
     їде окремо. Половина списку на ряд плюс зустрічний напрямок дають
     повний цикл за 18 с замість хвилини одного довгого ряду. */
  .marquee-line {
    position: relative;
    justify-content: flex-start;
    overflow: hidden;
  }

  /* Краї гасимо накладками, а не mask: маска на контейнері затягує
     рухому доріжку у свою поверхню і змушує перемальовувати її щокадру
     замість дешевого зсуву готового шару. Колір — це --bg зі спаданням
     альфи до нуля; під секцією рівний фон, градієнта тут уже немає. */
  .marquee-line::before,
  .marquee-line::after {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 11%;
    content: "";
    pointer-events: none;
  }

  .marquee-line::before {
    left: 0;
    background: linear-gradient(90deg, rgb(11, 13, 12), rgba(11, 13, 12, 0));
  }

  .marquee-line::after {
    right: 0;
    background: linear-gradient(270deg, rgb(11, 13, 12), rgba(11, 13, 12, 0));
  }

  .marquee-track {
    /* flex: none — щоб доріжка не стискалась під ширину рядка-контейнера
       і чесно виїжджала за край, який ріже .marquee-line */
    flex: none;
    width: max-content;
    will-change: transform;
    animation: marquee 18s infinite linear;
  }

  .marquee-track-reverse {
    /* Базовий transform мусить збігатися з першим кадром анімації. Інакше
       на стику циклу браузер встигає показати кадр із базовим значенням
       (тут — none), і ряд стрибає на свою ширину: саме це видно як
       блимання. Геометрія стику при цьому точна — половина доріжки
       дорівнює ширині ряду до третього знака. */
    transform: translate3d(-50%, 0, 0);
    animation-name: marquee-reverse;
  }

  .marquee-track .company-row[aria-hidden="true"] {
    display: flex;
  }

  .company-row {
    flex-wrap: nowrap;
    gap: clamp(40px, 9vw, 64px);
    padding: 0 clamp(40px, 9vw, 64px) 0 0;
    font-size: clamp(1.5rem, 5.4vw, 2rem);
    white-space: nowrap;
  }

  .section-shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    width: calc(100% - 32px);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: max(820px, 100dvh);
    align-items: start;
    padding-top: calc(var(--nav-h) + 56px);
    padding-bottom: 88px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(11, 13, 12, 0.92) 0%, rgba(11, 13, 12, 0.7) 42%, rgba(11, 13, 12, 0.18) 100%),
      linear-gradient(180deg, rgba(11, 13, 12, 0.9) 0%, rgba(11, 13, 12, 0.5) 30%, rgba(11, 13, 12, 0.16) 62%, var(--bg) 100%);
  }

  /* Портрет лежить під панелями, тож на мобільному вони віддають йому
     непрозорість: розмиття прибране повністю, фон майже прозорий —
     інакше обличчя перетворюється на пляму за матовим склом */
  .hero-offer-group {
    background: linear-gradient(160deg, rgba(23, 27, 23, 0.34), rgba(17, 20, 17, 0.2));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-offer-group:nth-child(2) {
    background:
      linear-gradient(120deg, rgba(182, 217, 107, 0.09), transparent 52%),
      linear-gradient(160deg, rgba(23, 27, 23, 0.34), rgba(17, 20, 17, 0.2));
  }

  .hero-copy {
    width: min(calc(100% - 32px), var(--container));
  }

  /* Центруємо по екрану: на десктопі підпис прив'язаний до фото, на мобільному фото поза центром */
  /* Розтягуємо на всю ширину замість left+translate: інакше абсолютний блок
     ужимається до простору праворуч від left і рве рядок раніше часу */
  /* У потоці підпис має жити в тій самій колонці, що текст і кнопки,
     інакше він ліпиться до краю екрана */
  .hero-credit {
    position: static;
    width: min(calc(100% - 32px), var(--container));
    margin: 28px auto 0;
    font-size: 18px;
    text-align: center;
    transform: none;
  }

  .hero-media {
    inset: 2% -24% 8% 7%;
    width: auto;
  }

  /* Коротший верхній fade: на вузькому екрані довгий градієнт з'їдав усю верхню частину кадру */
  .hero-media img {
    object-position: 53% 34%;
    opacity: 0.9;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, #000 7%, #000 74%, rgba(0, 0, 0, 0.45) 88%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, #000 7%, #000 74%, rgba(0, 0, 0, 0.45) 88%, transparent 100%);
  }

  .experience-layout {
    grid-template-columns: 1fr;
  }

  .experience-lead {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .experience-support {
    min-height: 190px;
  }

  .services {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .approach,
  .about {
    padding-top: 56px;
    padding-bottom: 112px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "large" "accent" "dark" "career";
  }

  .service-card-large,
  .service-card-accent,
  .service-card-dark,
  .service-card-career {
    min-height: 350px;
  }

  /* В одну колонку плитка вдвічі ширша, тож слово-знак масштабуємо
     від ширини екрана, інакше воно провалюється на планшеті.
     Стелю тримає ширина плитки: «Audit» приблизно вдвічі ширший за свій
     кегль, і на 31vw він займає ~70% плитки — далі поліз би за край. */
  .service-mark {
    font-size: clamp(5rem, 31vw, 9.5rem);
  }

  .about,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .approach-row {
    grid-template-columns: 1fr;
    --flow-gap: 44px;
  }

  .approach-node:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: calc(-0.5 * var(--flow-gap) - 7px);
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .about-body {
    padding-bottom: 0;
  }

  .footer {
    grid-template-columns: 1fr auto;
  }

  .footer > p:not(.copyright) {
    display: none;
  }

  .footer-links {
    order: 3;
  }

  .copyright {
    order: 4;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  /* Бренд і дві іконки соцмереж мусять лишитись в один рядок навіть на 320px:
     інакше ім'я переноситься і шапка стає вдвічі вищою */
  .brand {
    font-size: clamp(12.5px, 4vw, 18.2px);
    white-space: nowrap;
  }

  .section-shell {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: calc(var(--nav-h) + 44px);
    padding-bottom: 72px;
  }

  .hero-media {
    inset: 3% -12% 9% 4%;
  }

  .hero-media img {
    object-position: 57% 32%;
    opacity: 0.88;
  }

  .hero-offer-group {
    padding: 20px 20px 22px;
  }

  .hero-credit {
    font-size: 13px;
    letter-spacing: 0.13em;
    white-space: normal;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 28px;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: space-between;
  }

  .experience-lead {
    min-height: 240px;
    padding: 34px 20px 38px;
  }

  .experience-lead strong {
    font-size: clamp(5rem, 27vw, 7rem);
  }

  .experience-lead p {
    max-width: 330px;
    margin: 34px auto 0;
    font-size: 17px;
  }

  .experience-support {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .experience-stat {
    padding: 26px 20px 30px;
  }

  .experience-stat + .experience-stat {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .experience-stat strong {
    font-size: clamp(2.4rem, 11vw, 3.1rem);
  }

  /* У вузькій плитці підпис вміщається в рядок, тож резерв на два
     рядки тут лише додав би порожнечі */
  .experience-stat span {
    max-width: none;
    min-height: 0;
    font-size: 16px;
  }

  .proof {
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .services {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .approach,
  .about {
    padding-top: 44px;
    padding-bottom: 88px;
  }

  .approach-heading h2,
  .contact-copy h2 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .approach-heading > p,
  .about-body p,
  .contact-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .service-grid {
    gap: 12px;
  }

  .approach-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
  }

  .approach-node {
    padding: 24px;
  }

  .service-card {
    padding: 26px;
  }

  .service-card-large,
  .service-card-accent,
  .service-card-dark,
  .service-card-career {
    min-height: 320px;
  }


  .contact {
    width: 100%;
    padding: 48px 12px;
  }

  .contact-panel {
    gap: 46px;
    padding: 28px 20px;
    border-radius: var(--radius);
  }

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

  .form-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .form-tab {
    padding: 0 10px;
    font-size: 13px;
  }

  .booking-fallback {
    justify-items: stretch;
    padding: 20px 16px;
  }

  .duration-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .duration-option {
    padding: 0 8px;
  }

  .cal-embed {
    min-height: 480px;
  }

  .submit-button {
    width: 100%;
    justify-content: space-between;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .copyright {
    order: 5;
  }
}

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

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

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

  /* Без анімації ряд нікуди не їде, тож він мусить вміститись у ширину
     екрана. Інакше видно лише перші логотипи, решта висить за кадром
     назавжди, а сторінка отримує горизонтальний скрол. */
  .marquee-line {
    justify-content: center;
    overflow: visible;
  }

  .marquee-line::before,
  .marquee-line::after {
    content: none;
  }

  .marquee-track {
    /* скидаємо flex: none з мобільного блоку, інакше доріжка лишиться
       завширшки з ряд і ряд ніколи не перенесеться */
    flex: 0 1 auto;
    width: auto;
    animation: none;
    transform: none;
    will-change: auto;
  }

  .marquee-track .company-row[aria-hidden="true"] {
    display: none;
  }

  .company-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(28px, 6vw, 64px);
    padding: 0 20px;
    white-space: normal;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav,
  .mobile-menu {
    background: #111411;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-offer-group {
    background: var(--surface-2);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-offer-group:nth-child(2) {
    background:
      linear-gradient(120deg, rgba(182, 217, 107, 0.09), transparent 52%),
      var(--surface-2);
  }
}
