/* ------------------------------------------------------------------
   Anna Leunina Agency — базовые стили.
   Палитра, типографика и сетка из ТЗ. Обычный CSS, без фреймворков.
------------------------------------------------------------------ */

:root {
  --ground: #f5f2ec;
  --panel: #e7e0d7;
  --ink: #20201e;
  --muted: #66635e;
  --muted-on-panel: #5c5955;
  --accent: #5b2635;
  --rule: #d7d0c7;

  --on-dark: #f5f2ec;
  --on-dark-muted: #d8d4cd;
  --on-wine-muted: #eadfe1;
  --on-wine-faint: #d4bec3;
  --dark: #20201e;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --section: clamp(56px, 7vw, 120px);

  --fs-h1: clamp(38px, 5.4vw, 78px);
  --fs-h2: clamp(30px, 3.6vw, 54px);
  --fs-h3: clamp(23px, 2vw, 28px);
  --fs-body: 17px;
  --fs-lead: 18px;
  --fs-small: 13px;
  --fs-kicker: 12px;

  --dur: 200ms;
}

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

/* hidden должен побеждать любые display из макета */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
}

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

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

.section--dark :focus-visible,
.section--wine :focus-visible {
  outline-color: var(--on-dark);
}

/* секции получают tabindex только программно — рамку им не рисуем */
section:focus {
  outline: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--panel {
  background: var(--panel);
}

.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}

.section--wine {
  background: var(--accent);
  color: var(--on-dark);
}

.section--ruled {
  border-top: 1px solid var(--rule);
}

.kicker {
  font-size: var(--fs-kicker);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--panel .kicker {
  color: var(--muted-on-panel);
}

.section--dark .kicker {
  color: #b7b1a8;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  left: 16px;
  top: 16px;
  z-index: 60;
  background: var(--accent);
  color: var(--on-dark);
  padding: 10px 18px;
  text-decoration: none;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 28px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}

.btn--sm {
  min-height: 44px;
  padding-inline: 20px;
  font-size: 14px;
}

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

.btn--primary:hover {
  background: #471d29;
  color: var(--on-dark);
}

.btn--ghost {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--accent);
  color: var(--on-dark);
}

.btn--light {
  background: var(--on-dark);
  color: var(--accent);
}

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

.btn--outline-light {
  border-color: rgba(245, 242, 236, 0.6);
  color: var(--on-dark);
  background: transparent;
}

.btn--outline-light:hover {
  background: rgba(245, 242, 236, 0.12);
  color: var(--on-dark);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--accent);
}

/* ---------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 242, 236, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header__inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.logo__name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
}

.logo__sub {
  font-size: 9px;
  letter-spacing: 0.42em;
  color: var(--muted);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.lang a,
.lang span {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 2px;
}

.lang a:hover {
  color: var(--ink);
}

/* подчёркивание текстом, а не рамкой: на телефоне у пункта зона нажатия
   44 px, и рамка уехала бы далеко вниз от буквы */
.lang [aria-current='true'] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.lang__sep {
  color: var(--rule);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--ground);
  padding: 20px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
}

.menu__top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu__close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}

.menu__links a {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
  text-decoration: none;
  padding-block: 12px;
  border-bottom: 1px solid var(--rule);
}

.menu__cta {
  margin-top: 32px;
}

/* ---------------------------------------------------------------- hero */

.hero__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  align-items: center;
}

.hero__text {
  flex: 3 1 420px;
  min-width: 0;
}

.hero__media {
  flex: 2 1 320px;
  min-width: 0;
}

.hero__grid--text .hero__text {
  flex: 1 1 100%;
  max-width: 24ch;
}

/* строка отраслей: на широком экране — через точку,
   на телефоне — переносом по словам без повисших разделителей */
.kicker--list span + span::before {
  content: '·';
  margin-inline: 0.7em;
}

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.04;
  margin-block: 26px 0;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__lead {
  margin-top: 26px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 26px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

.trust__value {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
}

.trust__label {
  margin-top: 6px;
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 18ch;
}

.trust__label--lead {
  margin-top: 0;
  max-width: 22ch;
  color: var(--ink);
}

.trust__divider {
  width: 1px;
  height: 44px;
  background: var(--rule);
}

.photo {
  width: 100%;
  /* height: auto обязателен: иначе атрибут height в разметке
     перебивает aspect-ratio и кадр растягивается по высоте */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------------------------------------------------------------- clients */

.section--clients {
  padding-block: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}

.clients__title {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.3;
  color: var(--muted);
  letter-spacing: 0;
}

.clients {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 32px;
  align-items: center;
}

.client {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-align: center;
}

.client__name {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 25px);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* логотипы клиентов показываем чёрно-белыми */
.client__logo {
  max-height: 34px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.82;
}

.clients__note {
  margin-top: 24px;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---------------------------------------------------------------- services */

.lead-split {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 72px;
  align-items: flex-end;
  margin-bottom: 52px;
}

.lead-split h2 {
  flex: 3 1 400px;
  font-size: var(--fs-h2);
  line-height: 1.08;
}

.lead-split p {
  flex: 2 1 320px;
  max-width: 50ch;
}

.service {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  padding-block: 32px;
  border-top: 1px solid var(--rule);
}

.service:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.service__head {
  flex: 1 1 300px;
  display: flex;
  gap: 22px;
  min-width: 0;
}

.service__num {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 0.9;
  color: var(--accent);
  flex: 0 0 auto;
}

.service h3 {
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.service__text {
  flex: 2 1 420px;
  max-width: 62ch;
}

.services__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  align-items: flex-start;
  margin-top: 36px;
}

.services__footer p {
  flex: 2 1 420px;
  color: var(--muted);
  max-width: 70ch;
}

.services__footer strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------------------------------------------------------------- approach */

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

.pillar {
  border-top: 1px solid rgba(32, 32, 30, 0.18);
  padding-top: 22px;
}

.pillar h3 {
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.pillar--accent {
  border-top-color: var(--accent);
}

.pillar--accent h3 {
  color: var(--accent);
}

.section-title {
  font-size: var(--fs-h2);
  line-height: 1.06;
  margin-block: 20px 48px;
  max-width: 22ch;
}

.section-title--flush {
  margin-top: 0;
  max-width: 26ch;
}

.section-title--tight {
  margin-bottom: 40px;
}

/* ---------------------------------------------------------------- about */

.about {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 80px;
  align-items: flex-start;
}

.about__head {
  flex: 2 1 320px;
  min-width: 0;
}

.about__head h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  margin-top: 20px;
  max-width: 14ch;
}

.about__text {
  flex: 3 1 420px;
  min-width: 0;
}

.about__text p {
  max-width: 62ch;
}

.about__text p + p {
  margin-top: 18px;
}

.about__text p:first-child {
  font-size: var(--fs-lead);
  line-height: 1.6;
}

/* ---------------------------------------------------------------- process */

.section--process {
  padding-block: clamp(48px, 5.5vw, 88px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
}

.step {
  border-top: 1px solid rgba(245, 242, 236, 0.3);
  padding-top: 20px;
}

.step__num {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: #c9a3ae;
  margin-bottom: 12px;
}

.step h3 {
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 10px;
}

.step p {
  color: var(--on-dark-muted);
  font-size: 16px;
}

/* ---------------------------------------------------------------- faq */

.faq {
  max-width: 920px;
}

.faq__item {
  border-top: 1px solid rgba(32, 32, 30, 0.18);
}

.faq__item:last-child {
  border-bottom: 1px solid rgba(32, 32, 30, 0.18);
}

.faq__heading {
  margin: 0;
  font-size: inherit;
}

.faq__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 64px;
  padding: 18px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.3;
  color: var(--ink);
}

.faq__plus {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  transition: transform var(--dur) ease;
}

.faq__button[aria-expanded='true'] .faq__plus {
  transform: rotate(45deg);
}

.faq__panel {
  padding-bottom: 26px;
  max-width: 70ch;
}

/* ---------------------------------------------------------------- contact */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
}

.contact__intro {
  flex: 2 1 360px;
  min-width: 0;
}

.contact__intro h2 {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.04;
  margin-bottom: 22px;
}

.contact__intro > p {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--on-wine-muted);
  max-width: 48ch;
}

.contact__person {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 242, 236, 0.25);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--on-dark);
}

.contact__person-role::before {
  content: ' · ';
}

.contact__direct {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.contact__email {
  margin-top: 24px;
}

.contact__email-intro {
  font-size: var(--fs-small);
  color: var(--on-wine-faint);
  margin-bottom: 6px;
}

.contact__email a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
  font-size: 16px;
}

.contact__email-intro {
  margin-bottom: 0;
}

.contact__form {
  flex: 3 1 400px;
  min-width: 0;
}

.no-js {
  font-size: 16px;
  color: var(--on-wine-muted);
  max-width: 44ch;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.field__label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-wine-faint);
}

.field__optional {
  text-transform: none;
  letter-spacing: 0;
  color: #c2a6ac;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 242, 236, 0.45);
  color: var(--on-dark);
  font-family: inherit;
  /* не меньше 16px — иначе iOS зумит страницу при фокусе */
  font-size: 17px;
  line-height: 1.5;
  padding: 10px 0;
  min-height: 44px;
  border-radius: 0;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 242, 236, 0.55);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--on-dark);
}

.field--invalid input,
.field--invalid textarea {
  border-bottom-color: #ffc9d2;
  border-bottom-width: 2px;
}

.field__hint {
  font-size: var(--fs-small);
  color: var(--on-wine-faint);
}

.field__error {
  font-size: var(--fs-small);
  color: #ffc9d2;
}

.form__service {
  font-size: var(--fs-small);
  color: var(--on-wine-muted);
}

.form__service-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--on-wine-faint);
}

.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}

.form__hint {
  font-size: var(--fs-small);
  color: var(--on-wine-faint);
  max-width: 34ch;
}

.form__status {
  font-size: var(--fs-small);
  color: var(--on-dark);
}

.fallback {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(245, 242, 236, 0.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fallback h3 {
  font-size: 21px;
}

.fallback p {
  font-size: var(--fs-small);
  color: var(--on-wine-muted);
}

.fallback pre {
  margin: 0;
  padding: 14px;
  background: rgba(32, 32, 30, 0.22);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 180px;
  overflow: auto;
}

.fallback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------------------------------- footer */

.footer {
  margin-top: clamp(44px, 5vw, 80px);
  padding-top: 26px;
  border-top: 1px solid rgba(245, 242, 236, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  align-items: center;
  justify-content: space-between;
}

.footer .logo__name {
  font-size: 19px;
  letter-spacing: 0.2em;
  color: var(--on-dark);
}

.footer .logo__sub {
  color: var(--on-wine-faint);
}

.footer a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: 14px;
}

.footer .lang a,
.footer .lang span {
  color: var(--on-wine-faint);
}

.footer .lang [aria-current='true'] {
  color: var(--on-dark);
  text-decoration-color: var(--on-dark);
}

.footer .lang__sep {
  color: rgba(245, 242, 236, 0.4);
}

.footer__rights {
  font-size: var(--fs-small);
  color: var(--on-wine-faint);
}

/* ---------------------------------------------------------------- mobile bar */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  gap: 10px;
  padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(245, 242, 236, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
}

/* панель — только для телефона и узкого планшета */
@media (max-width: 900px) {
  .mobile-bar--visible {
    display: flex;
  }
}

.mobile-bar .btn {
  min-height: 48px;
}

.mobile-bar__cta {
  flex: 1 1 auto;
}

.mobile-bar__wa {
  flex: 0 0 auto;
  width: 48px;
  padding-inline: 0;
}

/* ---------------------------------------------------------------- utilities */

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

/* ---------------------------------------------------------------- responsive */

/* компактное меню включаем раньше: в меню длинные пункты на RU и IT */
@media (max-width: 1199px) {
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .header__inner {
    height: 64px;
    gap: 12px;
  }

  .logo {
    min-width: 0;
  }

  .logo__name {
    font-size: 17px;
    letter-spacing: 0.14em;
  }

  .logo__sub {
    font-size: 8px;
    letter-spacing: 0.34em;
  }

  .header__actions {
    gap: 10px;
  }

  /* зоны нажатия на телефоне — не меньше 40–44 px */
  .header .logo {
    min-height: 44px;
    justify-content: center;
  }

  .header .lang {
    gap: 0;
    font-size: 12px;
  }

  .header .lang__sep {
    display: none;
  }

  .header .lang a,
  .header .lang span[aria-current] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 44px;
    padding: 0;
  }

  .footer a,
  .footer .lang span[aria-current] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer .lang a,
  .footer .lang span[aria-current] {
    justify-content: center;
    min-width: 44px;
  }

  html {
    scroll-padding-top: 76px;
  }
}

@media (max-width: 900px) {
  .grid-pairs,
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

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

@media (max-width: 767px) {
  :root {
    --fs-body: 16px;
    --fs-lead: 17px;
  }

  .hero__grid,
  .about,
  .contact {
    gap: 30px;
  }

  /* первый экран на телефоне плотнее: на iPhone SE (667 px по высоте)
     основная кнопка должна помещаться без прокрутки */
  .hero.section {
    padding-top: 26px;
  }

  .hero h1 {
    margin-top: 16px;
  }

  .hero__lead {
    margin-top: 16px;
    line-height: 1.55;
  }

  .hero__actions {
    margin-top: 22px;
    gap: 10px;
  }

  .trust {
    margin-top: 30px;
  }

  .kicker--list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 14px;
    row-gap: 4px;
  }

  .kicker--list span + span::before {
    content: none;
  }

  /* имя и роль — на отдельных строках */
  .contact__person-name,
  .contact__person-role {
    display: block;
  }

  .contact__person-role {
    margin-top: 4px;
    font-family: var(--sans);
    font-size: var(--fs-small);
    color: var(--on-wine-faint);
  }

  .contact__person-role::before {
    content: none;
  }

  .hero__actions .btn,
  .contact__direct .btn {
    width: 100%;
  }

  .trust {
    gap: 16px 22px;
  }

  .trust__divider {
    display: none;
  }

  .trust__item {
    flex: 0 0 auto;
  }

  .trust__item--wide {
    flex: 1 1 100%;
  }

  .service {
    padding-block: 24px;
  }

  .service__head {
    flex: 1 1 100%;
  }

  .service__text {
    flex: 1 1 100%;
    padding-left: 44px;
  }

  .faq__button {
    font-size: 21px;
    gap: 16px;
  }

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

  .section--clients {
    padding-block: clamp(32px, 8vw, 40px);
  }
}

@media (max-width: 480px) {
  .menu__links a {
    font-size: 27px;
  }

  .client__name {
    font-size: 18px;
  }
}

@media (max-width: 400px) {
  .logo__name {
    font-size: 15px;
    letter-spacing: 0.1em;
  }
}

/* самые узкие телефоны (iPhone SE 1, Galaxy Fold): логотип, три языка
   и бургер должны уместиться в одну строку без прокрутки */
@media (max-width: 374px) {
  .header__inner {
    gap: 8px;
  }

  .header__actions {
    gap: 2px;
  }

  .logo__name {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .logo__sub {
    font-size: 7px;
    letter-spacing: 0.3em;
  }

}

@media (max-width: 339px) {
  .header .lang a,
  .header .lang span[aria-current] {
    min-width: 38px;
  }
}

/* сверхузкие экраны (старый Galaxy Fold, 280 px) — без горизонтальной прокрутки */
@media (max-width: 319px) {
  .logo__name {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .header .lang a,
  .header .lang span[aria-current] {
    min-width: 30px;
  }
}

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

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

@media print {
  .header,
  .mobile-bar,
  .menu {
    display: none !important;
  }
}
