/* ==========================================================================
   SATTOROVA AGENCY — СТИЛИ САЙТА
   Чистый CSS без сторонних библиотек и сборщиков
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ПЕРЕМЕННЫЕ И НАСТРОЙКИ (:root)
   -------------------------------------------------------------------------- */
:root {
  /* Цветовая палитра проекта */
  --c-cream: #EAE4DB;          /* Светлый фон */
  --c-cream-2: #E1D9CD;        /* Чуть темнее, для полос и полей */
  --c-dark: #1B1815;           /* Тёмные секции */
  --c-dark-2: #25201C;         /* Карточки на тёмном */
  --c-ink: #1E1A17;            /* Основной текст на светлом */
  --c-muted: #7D746B;          /* Второстепенный текст */
  --c-light: #EFE9E1;          /* Текст на тёмном */
  --c-line: rgba(30, 26, 23, 0.14);      /* Разделители на светлом */
  --c-line-dark: rgba(239, 233, 225, 0.14); /* Разделители на тёмном */

  /* Типографика */
  --font-heading: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Размеры и сетка */
  --container-max: 1320px;
  --container-pad: clamp(16px, 4vw, 48px);
  --header-height: 80px;
  --header-height-mobile: 64px;

  /* Анимации по правилам проекта (cubic-bezier(.22,1,.36,1), 400–800 мс) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 300ms;
  --duration-normal: 500ms;
  --duration-slow: 800ms;
}

/* --------------------------------------------------------------------------
   2. СБРОС СТИЛЕЙ И БАЗОВЫЕ ПРАВИЛА
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--c-ink);
  background-color: var(--c-dark);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--c-cream);
  color: var(--c-ink);
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease);
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Доступность с клавиатуры */
:focus-visible {
  outline: 2px solid var(--c-light);
  outline-offset: 3px;
}

.section--light :focus-visible {
  outline-color: var(--c-ink);
}

/* Отключение анимаций при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__bg-img {
    animation: none !important;
    transform: none !important;
  }

  .hero__title,
  .hero__subtitle,
  .hero__heading,
  .hero__tags,
  .hero__action,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .process__col {
    transition-delay: 0ms !important;
  }

  .landscape__wrap {
    transform: none !important;
  }

  .case-card,
  .projects__tab-line {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   3. ТИПОГРАФИКА
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(38px, 6.5vw, 92px);
  font-weight: 300;
}

h2 {
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 400;
}

h3 {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
}

p {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
}

/* Мелкие подписи и акцентные надписи */
.eyebrow,
.nav__link,
.btn {
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. КОНТЕЙНЕР И СЕКЦИИ
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Классы секций (светлые и тёмные) */
.section {
  position: relative;
  padding-block: clamp(64px, 8vw, 120px);
  scroll-margin-top: var(--header-height);
}

.section--light {
  background-color: var(--c-cream);
  color: var(--c-ink);
}

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

/* Общий стиль номера секции («01», Cormorant) и подписи («/ О НАС», Manrope) */
.section-tag {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: clamp(16px, 2.5vw, 28px);
}

.section-tag__num {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  color: var(--c-muted);
}

.section--dark .section-tag__num {
  color: rgba(239, 233, 225, 0.45);
}

.section-tag__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.section--dark .section-tag__label {
  color: rgba(239, 233, 225, 0.65);
}

.section__title {
  margin-bottom: clamp(16px, 2.5vw, 32px);
}

/* Заглушка содержимого для этапа 1 */
.placeholder-box {
  padding: clamp(32px, 5vw, 56px);
  border: 1px dashed var(--c-line);
  background: rgba(225, 217, 205, 0.35);
  border-radius: 4px;
}

.section--dark .placeholder-box {
  border-color: var(--c-line-dark);
  background: var(--c-dark-2);
}

.placeholder-box__note {
  color: var(--c-muted);
  font-size: 14px;
  margin-top: 8px;
}

.section--dark .placeholder-box__note {
  color: rgba(239, 233, 225, 0.55);
}

/* --------------------------------------------------------------------------
   5. БАЗОВЫЙ СТИЛЬ КНОПОК
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  border-radius: 999px;
  transition:
    background-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

/* Прозрачная с тонкой рамкой (на тёмном) */
.btn--outline {
  background: transparent;
  color: var(--c-light);
  border: 1px solid rgba(239, 233, 225, 0.35);
}

.btn--outline:hover {
  background: var(--c-light);
  color: var(--c-dark);
  border-color: var(--c-light);
}

/* Сплошная тёмная (в форме и акцентах) */
.btn--primary {
  background: var(--c-dark);
  color: var(--c-light);
  border: 1px solid var(--c-dark);
}

.btn--primary:hover {
  background: #0d0b0a;
  border-color: #0d0b0a;
}

/* --------------------------------------------------------------------------
   6. ШАПКА (HEADER)
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: transparent;
  transition:
    background-color var(--duration-normal) var(--ease),
    backdrop-filter var(--duration-normal) var(--ease),
    -webkit-backdrop-filter var(--duration-normal) var(--ease),
    border-color var(--duration-normal) var(--ease),
    height var(--duration-normal) var(--ease);
}

/* Состояние при прокрутке */
.header--scrolled {
  background: rgba(27, 24, 21, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line-dark);
  height: clamp(64px, 7vw, 72px);
}

.header__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Логотип слева */
.header__logo {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--c-light);
  white-space: nowrap;
}

.header__logo:hover {
  opacity: 0.85;
}

/* Меню по центру/справа */
.nav {
  display: flex;
  align-items: center;
}

/* Кнопка «Обсудить проект» внутри меню — только для мобильной панели.
   На десктопе её место занимает .header__btn справа. */
.nav__action {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(239, 233, 225, 0.8);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color var(--duration-fast) var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-light);
  transition: width var(--duration-fast) var(--ease);
}

.nav__link:hover {
  color: var(--c-light);
}

.nav__link:hover::after {
  width: 100%;
}

/* Кнопка «Обсудить проект» справа */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__btn {
  white-space: nowrap;
}

/* Кнопка-бургер для телефонов */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 120;
}

.burger__line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--c-light);
  transition:
    transform var(--duration-normal) var(--ease),
    opacity var(--duration-normal) var(--ease);
  transform-origin: center;
}

/* Анимация бургера в крестик при открытии */
.burger--active .burger__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. МОБИЛЬНАЯ АДАПТАЦИЯ ШАПКИ И МЕНЮ (<= 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  html {
    scroll-padding-top: var(--header-height-mobile);
  }

  .header {
    height: var(--header-height-mobile);
  }

  .header--scrolled {
    height: var(--header-height-mobile);
  }

  .section {
    scroll-margin-top: var(--header-height-mobile);
  }

  .burger {
    display: flex;
  }

  .header__btn {
    display: none; /* Переносится внутрь мобильного меню */
  }

  /* Полноэкранная тёмная панель меню */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: var(--c-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 24px 40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity var(--duration-normal) var(--ease),
      visibility var(--duration-normal);
    z-index: 110;
  }

  .nav--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
  }

  /* Анимация появления пунктов по очереди */
  .nav__item {
    transform: translateY(24px);
    opacity: 0;
    transition:
      transform var(--duration-normal) var(--ease),
      opacity var(--duration-normal) var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms + 120ms);
  }

  .nav--open .nav__item {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__link {
    font-family: var(--font-heading);
    font-size: clamp(28px, 7vw, 38px);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--c-light);
  }

  .nav__link::after {
    display: none;
  }

  /* Кнопка внутри мобильного меню */
  .nav__action {
    display: block;
    transform: translateY(24px);
    opacity: 0;
    transition:
      transform var(--duration-normal) var(--ease),
      opacity var(--duration-normal) var(--ease);
    transition-delay: 450ms;
  }

  .nav--open .nav__action {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__action .btn {
    min-height: 48px;
    padding: 14px 32px;
  }
}

/* --------------------------------------------------------------------------
   8. HERO (ОБЛОЖКА)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 600px;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--c-dark);
  color: var(--c-light);
  padding-top: var(--header-height);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: heroBgZoom 2.5s var(--ease) forwards;
  will-change: transform;
}

@keyframes heroBgZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 24, 21, 0.72) 0%,
    rgba(27, 24, 21, 0.32) 25%,
    rgba(27, 24, 21, 0.28) 50%,
    rgba(27, 24, 21, 0.55) 75%,
    rgba(27, 24, 21, 0.9) 100%
  );
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero__content {
  text-align: center;
  max-width: 960px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(52px, 11vw, 140px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--c-light);
  margin-bottom: clamp(6px, 1.2vw, 12px);
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease) 0.15s forwards;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(13px, 1.8vw, 22px);
  letter-spacing: clamp(0.35em, 1.4vw, 0.55em);
  text-indent: clamp(0.35em, 1.4vw, 0.55em);
  text-transform: uppercase;
  color: rgba(239, 233, 225, 0.75);
  margin-bottom: clamp(24px, 4vw, 42px);
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease) 0.35s forwards;
}

.hero__heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-light);
  margin-bottom: clamp(16px, 2.4vw, 24px);
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease) 0.55s forwards;
}

.hero__tags {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 400;
  color: rgba(239, 233, 225, 0.78);
  letter-spacing: 0.04em;
  margin-bottom: clamp(28px, 4.5vw, 46px);
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease) 0.75s forwards;
}

.hero__action {
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease) 0.95s forwards;
}

.hero__btn {
  min-height: 48px;
  padding: 14px 38px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   9. ABOUT (01. О НАС)
   -------------------------------------------------------------------------- */
.about {
  padding-block: clamp(64px, 8vw, 120px);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 32px);
}

.about__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--c-ink);
}

.about__title-brand {
  text-transform: uppercase;
  font-weight: 400;
}

.about__desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 540px;
}

.about__media {
  position: relative;
  width: 100%;
}

.about__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  background-color: var(--c-cream-2);
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 44px);
  }

  .about__media {
    max-width: 480px;
  }
}

/* --------------------------------------------------------------------------
   10. SERVICES (02. УСЛУГИ)
   -------------------------------------------------------------------------- */
.services {
  padding-block: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--c-line);
}

.services__header {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(48px, 6vw, 80px);
}

.services__intro {
  display: flex;
  flex-direction: column;
}

.services__title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
}

.services__subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.6;
  color: var(--c-muted);
  margin-top: clamp(18px, 2.5vw, 28px);
  max-width: 500px;
}

.services__media {
  position: relative;
  width: 100%;
}

.services__img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 2px;
  background-color: var(--c-cream-2);
}

@media (max-width: 860px) {
  .services__header {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 36px);
    margin-bottom: clamp(36px, 5vw, 56px);
  }

  .services__media {
    max-width: 480px;
  }
}

/* --------------------------------------------------------------------------
   11. ACCORDION (АККОРДЕОН УСЛУГ)
   -------------------------------------------------------------------------- */
.accordion {
  border-top: 1px solid var(--c-line);
}

.accordion__item {
  border-bottom: 1px solid var(--c-line);
  transition: background-color var(--duration-fast) var(--ease);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
  padding-block: clamp(20px, 2.6vw, 32px);
  padding-inline: 0;
  text-align: left;
  cursor: pointer;
  min-height: 52px;
  background: transparent;
  border: none;
  color: var(--c-ink);
  transition:
    transform var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

/* Сдвиг вправо при наведении на десктопе */
@media (hover: hover) and (pointer: fine) {
  .accordion__trigger:hover {
    transform: translateX(12px);
  }
  .accordion__trigger:hover .accordion__title {
    color: #000;
  }
  .accordion__trigger:hover .accordion__icon {
    color: var(--c-ink);
  }
}

.accordion__num {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 500;
  color: var(--c-muted);
  width: 32px;
  flex-shrink: 0;
}

.accordion__title {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.35vw, 19px);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-ink);
  flex-grow: 1;
  transition: color var(--duration-fast) var(--ease);
}

.accordion__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: var(--c-muted);
  user-select: none;
  transition:
    transform var(--duration-normal) var(--ease),
    color var(--duration-fast) var(--ease);
}

/* Поворот «+» в «×» при открытии */
.accordion__item--open .accordion__icon {
  transform: rotate(45deg);
  color: var(--c-ink);
}

/* Плавное раскрытие через CSS grid-template-rows */
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-normal) var(--ease);
}

.accordion__item--open .accordion__panel {
  grid-template-rows: 1fr;
}

.accordion__body {
  overflow: hidden;
}

.accordion__text {
  padding-left: clamp(32px, 3.8vw, 48px);
  padding-bottom: clamp(20px, 2.5vw, 28px);
  padding-right: clamp(16px, 4vw, 64px);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 760px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity var(--duration-normal) var(--ease),
    transform var(--duration-normal) var(--ease);
}

.accordion__item--open .accordion__text {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   12. SCROLL REVEAL (.reveal)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slow) var(--ease),
    transform var(--duration-slow) var(--ease);
  will-change: opacity, transform;
}

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

/* --------------------------------------------------------------------------
   13. СТИЛИ КАРКАСА ДЛЯ ОСТАЛЬНЫХ СЕКЦИЙ
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   13. КОНТЕНТ-БАННЕР (.content-banner)
   Тёмная полоса: 50% фото слева, 50% текст справа + круглая кнопка
   -------------------------------------------------------------------------- */
.content-banner {
  background-color: var(--c-dark);
  color: var(--c-light);
  padding: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.content-banner__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: clamp(480px, 58vh, 700px);
}

.content-banner__media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--c-dark-2);
}

.content-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-banner__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 100px) clamp(28px, 6vw, 90px);
  background-color: var(--c-dark);
}

.content-banner__body {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(340px, 40vh, 460px);
}

.content-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-light);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.content-banner__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.content-banner__desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.5;
  color: rgba(239, 233, 225, 0.72);
  max-width: 320px;
}

/* Круглая кнопка со стрелкой */
.content-banner__btn {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(239, 233, 225, 0.35);
  background-color: transparent;
  color: var(--c-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.content-banner__btn-arrow {
  display: block;
  width: 20px;
  height: 20px;
  transition: transform var(--duration-fast) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .content-banner__btn:hover {
    background-color: var(--c-light);
    border-color: var(--c-light);
    color: var(--c-dark);
  }

  .content-banner__btn:hover .content-banner__btn-arrow {
    transform: translateX(5px);
  }
}

.content-banner__btn:active {
  background-color: var(--c-light);
  border-color: var(--c-light);
  color: var(--c-dark);
  transform: scale(0.96);
}

/* Адаптив баннера на планшетах и мобильных (картинка сверху, текст снизу) */
@media (max-width: 860px) {
  .content-banner__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .content-banner__media {
    height: clamp(280px, 45vh, 420px);
  }

  .content-banner__content {
    padding: clamp(36px, 6vw, 60px) var(--container-pad);
  }

  .content-banner__body {
    min-height: auto;
  }

  .content-banner__title {
    margin-bottom: clamp(24px, 4vw, 36px);
  }

  .content-banner__bottom {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .content-banner__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .content-banner__desc {
    max-width: 220px;
  }
}

/* --------------------------------------------------------------------------
   14. КАК МЫ РАБОТАЕМ (#process)
   4 колонки с тонкими вертикальными разделителями
   Планшет: 2x2, Телефон: 1 колонка с горизонтальными линиями
   -------------------------------------------------------------------------- */
.process {
  padding-block: clamp(64px, 8vw, 120px);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 5.5vw, 72px);
}

.process__col {
  padding: 0 clamp(20px, 2.4vw, 36px);
  border-right: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
}

.process__col:first-child {
  padding-left: 0;
}

.process__col:last-child {
  padding-right: 0;
  border-right: none;
}

/* Поочередное появление колонок */
.process__col:nth-child(1) { transition-delay: 0ms; }
.process__col:nth-child(2) { transition-delay: 120ms; }
.process__col:nth-child(3) { transition-delay: 240ms; }
.process__col:nth-child(4) { transition-delay: 360ms; }

.process__num {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1;
  color: var(--c-muted);
  margin-bottom: clamp(20px, 2.5vw, 36px);
  display: block;
}

.process__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: clamp(10px, 1.2vw, 16px);
}

.process__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.55;
  color: var(--c-muted);
}

/* Планшет: 2x2 с вертикальными и горизонтальными разделителями */
@media (max-width: 960px) and (min-width: 601px) {
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: clamp(36px, 5vw, 56px);
  }

  .process__col {
    padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 32px);
    border-right: none;
    border-bottom: 1px solid var(--c-line);
  }

  .process__col:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--c-line);
  }

  .process__col:nth-child(even) {
    padding-right: 0;
  }

  .process__col:nth-child(1),
  .process__col:nth-child(2) {
    padding-top: 0;
  }

  .process__col:nth-child(3),
  .process__col:nth-child(4) {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Телефон: 1 колонка с горизонтальными линиями */
@media (max-width: 600px) {
  .process__grid {
    grid-template-columns: 1fr;
    margin-top: clamp(24px, 4vw, 36px);
  }

  .process__col {
    padding: 24px 0;
    border-right: none;
    border-bottom: 1px solid var(--c-line);
  }

  .process__col:first-child {
    padding-top: 0;
  }

  .process__col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .process__num {
    margin-bottom: 14px;
  }

  .process__title {
    margin-bottom: 8px;
  }
}

/* --------------------------------------------------------------------------
   15. ПОЛОСА С ПЕЙЗАЖЕМ (.landscape)
   Широкая полоса на всю ширину экрана с лёгким эффектом параллакса
   -------------------------------------------------------------------------- */
.landscape {
  width: 100%;
  height: clamp(320px, 45vh, 600px);
  position: relative;
  overflow: hidden;
  background-color: var(--c-cream-2);
}

.landscape__wrap {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  will-change: transform;
}

.landscape__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .landscape {
    height: clamp(200px, 30vh, 320px);
  }
}

/* --------------------------------------------------------------------------
   16. НАШИ КЕЙСЫ (#projects)
   - Заголовок секции Cormorant Garamond
   - Фильтры-вкладки с плавно скользящей подчеркивающей линией
   - Сетка карточек: 3 колонки (десктоп), 2 (планшет), 2 (телефон), 1 (<360px)
   - Карточки: медиа 4:5, скругление 2–4px, кнопка ▶, прогресс-бар, заголовок и теги
   - Плавная фильтрация без резких скачков сетки
   -------------------------------------------------------------------------- */
.projects {
  padding-block: clamp(64px, 8vw, 120px);
  background-color: var(--c-dark);
  color: var(--c-light);
}

.projects__title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--c-light);
  margin-bottom: 0;
}

/* Вкладки-фильтры */
.projects__filters {
  margin-top: clamp(24px, 3.5vw, 44px);
  margin-bottom: clamp(32px, 4.5vw, 56px);
  border-bottom: 1px solid var(--c-line-dark);
  position: relative;
}

.projects__tabs-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
  -webkit-overflow-scrolling: touch;
}

.projects__tabs-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.projects__tabs {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 36px);
  position: relative;
  white-space: nowrap;
  width: max-content;
  min-width: 100%;
}

.projects__tab {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 500;
  color: var(--c-muted);
  background: transparent;
  border: none;
  padding: 10px 0 14px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: color var(--duration-fast) var(--ease);
  flex-shrink: 0;
}

.projects__tab:hover,
.projects__tab:focus-visible {
  color: var(--c-light);
}

.projects__tab.is-active {
  color: var(--c-light);
}

/* Скользящая тонкая линия под активной вкладкой */
.projects__tab-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1.5px;
  background-color: var(--c-light);
  width: 0;
  transform: translateX(0);
  transition:
    transform var(--duration-normal) var(--ease),
    width var(--duration-normal) var(--ease);
  pointer-events: none;
  z-index: 2;
}

/* Сетка карточек */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 48px) clamp(16px, 2.2vw, 32px);
  position: relative;
  min-height: 200px;
}

/* Планшет: 2 колонки */
@media (max-width: 1024px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 24px);
  }
}

/* Телефон: 2 колонки */
@media (max-width: 768px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 14px;
  }
}

/* Очень узкие экраны (< 360px): 1 колонка */
@media (max-width: 359px) {
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Карточка кейса */
.case-card {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  outline: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 350ms var(--ease),
    transform 350ms var(--ease);
  will-change: opacity, transform;
}

.case-card:focus-visible {
  outline: 2px solid var(--c-light);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Состояния скрытия и анимации карточки при фильтрации */
.case-card.is-filtered-out {
  display: none !important;
}

.case-card.is-leaving {
  opacity: 0 !important;
  transform: translateY(12px) scale(0.98) !important;
  pointer-events: none;
}

.case-card.is-entering {
  opacity: 0 !important;
  transform: translateY(14px) !important;
  transition: none !important;
}

/* Медиа-обёртка (соотношение 4:5, скругление 2–4px) */
.case-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: clamp(2px, 0.3vw, 4px);
  overflow: hidden;
  background-color: var(--c-dark-2);
}

.case-card__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform var(--duration-normal) var(--ease),
    opacity var(--duration-fast) var(--ease);
}

.case-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 350ms var(--ease),
    transform var(--duration-normal) var(--ease);
}

/* Круглая кнопка ▶ по центру карточки */
.case-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(38px, 4vw, 46px);
  height: clamp(38px, 4vw, 46px);
  border-radius: 50%;
  background-color: rgba(27, 24, 21, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(239, 233, 225, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-light);
  pointer-events: none;
  transition:
    transform var(--duration-fast) var(--ease),
    opacity var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
  z-index: 2;
}

.case-card__play-icon {
  width: 13px;
  height: 13px;
  margin-left: 2px;
  fill: currentColor;
}

/* Тонкая полоска прогресса внизу медиа */
.case-card__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(239, 233, 225, 0.16);
  z-index: 3;
  pointer-events: none;
}

.case-card__progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--c-light);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* Название и теги кейса */
.case-card__title {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-light);
  text-transform: none;
  letter-spacing: -0.01em;
  margin-top: clamp(10px, 1.2vw, 14px);
  margin-bottom: 4px;
  transition: transform 350ms var(--ease);
}

.case-card__tags {
  font-family: var(--font-body);
  font-size: clamp(12px, 0.95vw, 13px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-muted);
  letter-spacing: 0.01em;
}

/* Эффект наведения мыши на десктопе */
@media (hover: hover) and (pointer: fine) {
  /* Приглушение остальных карточек при наведении */
  .projects__grid.has-hover .case-card:not(.is-hovered) {
    opacity: 0.45;
    filter: saturate(0.4);
    transition:
      opacity 400ms var(--ease),
      filter 400ms var(--ease),
      transform 350ms var(--ease);
  }

  .projects__grid.has-hover .case-card.is-hovered {
    opacity: 1;
    filter: none;
  }

  /* Увеличение медиа внутри карточки (рамка не меняется) */
  .case-card.is-hovered .case-card__poster,
  .case-card.is-hovered .case-card__video {
    transform: scale(1.04);
  }

  /* Кнопка ▶ растворяется при наведении */
  .case-card.is-hovered .case-card__play {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
  }

  /* Подпись чуть поднимается */
  .case-card.is-hovered .case-card__title {
    transform: translateY(-3px);
    transition: transform 350ms var(--ease);
  }
}

/* Кнопка «Смотреть все проекты» под сеткой */
.projects__action {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 64px);
}

.projects__btn {
  padding: 14px clamp(28px, 3.5vw, 44px);
  letter-spacing: 0.1em;
  font-size: clamp(11px, 0.95vw, 13px);
  border-radius: 2px;
}



/* --------------------------------------------------------------------------
   17. АНИМАЦИЯ ЗАГРУЗКИ ВИДЕО (тонкая полоска снизу карточки)
   -------------------------------------------------------------------------- */
.case-card__progress.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--c-light), transparent);
  animation: caseLoadSlide 1.2s ease-in-out infinite;
  z-index: 4;
}

@keyframes caseLoadSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* --------------------------------------------------------------------------
   18. ЛАЙТБОКС (ПОЛНОЭКРАННЫЙ ПРОСМОТР КЕЙСОВ)
   -------------------------------------------------------------------------- */

/* Блокировка прокрутки при открытом лайтбоксе */
body.lb-open {
  overflow: hidden;
  touch-action: none;
}

/* Обёртка лайтбокса */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 400ms var(--ease),
    visibility 400ms;
}

.lb.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 11, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 0;
}

.lb__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  transform: scale(0.95) translateY(16px);
  transition: transform 400ms var(--ease);
}

.lb.is-open .lb__container {
  transform: scale(1) translateY(0);
}

/* Шапка лайтбокса */
.lb__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(12px, 2.2vw, 20px) 0;
  color: var(--c-light);
}

.lb__info {
  flex: 1;
  min-width: 0;
}

.lb__title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-light);
  line-height: 1.15;
  margin-bottom: 4px;
}

.lb__tags {
  font-family: var(--font-body);
  font-size: clamp(12px, 1vw, 14px);
  color: var(--c-muted);
  letter-spacing: 0.02em;
}

.lb__controls {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 20px);
  flex-shrink: 0;
}

.lb__counter {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 500;
  color: rgba(239, 233, 225, 0.6);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Крестик */
.lb__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-light);
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid rgba(239, 233, 225, 0.2);
  background: transparent;
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
}

.lb__close:hover {
  background: rgba(239, 233, 225, 0.1);
  border-color: rgba(239, 233, 225, 0.4);
}

/* Медиа (видео + обложка) */
.lb__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(88vh - 110px);
  border-radius: clamp(4px, 0.5vw, 8px);
  overflow: hidden;
  background-color: #000;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.lb__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  transition: opacity 400ms var(--ease);
  z-index: 1;
}

.lb__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  z-index: 2;
  transition: opacity 400ms var(--ease);
}

/* Индикатор загрузки в лайтбоксе */
.lb__loader {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 5;
  opacity: 0;
  transition: opacity 300ms;
  overflow: hidden;
}

.lb__loader.is-active {
  opacity: 1;
}

.lb__loader-bar {
  width: 30%;
  height: 100%;
  background: var(--c-light);
  animation: lbLoaderSlide 1.4s ease-in-out infinite;
}

@keyframes lbLoaderSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(430%); }
}

/* Стрелки навигации */
.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-light);
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid rgba(239, 233, 225, 0.2);
  background: rgba(27, 24, 21, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.lb__nav:hover {
  background: rgba(27, 24, 21, 0.9);
  border-color: rgba(239, 233, 225, 0.45);
  transform: translateY(-50%) scale(1.05);
}

.lb__nav--prev {
  left: -64px;
}

.lb__nav--next {
  right: -64px;
}

/* Мобильная адаптация лайтбокса */
@media (max-width: 768px) {
  .lb__container {
    max-width: 100%;
    padding: 0 12px;
  }

  .lb__media {
    max-height: calc(85vh - 90px);
  }

  .lb__nav {
    width: 38px;
    height: 38px;
  }

  .lb__nav--prev {
    left: 4px;
  }

  .lb__nav--next {
    right: 4px;
  }

  .lb__header {
    padding: 12px 0;
  }
}

/* prefers-reduced-motion: без автозапуска видео и анимаций */
@media (prefers-reduced-motion: reduce) {
  .case-card__progress.is-loading::before {
    animation: none !important;
  }

  .lb__loader-bar {
    animation: none !important;
  }

  .projects__grid.has-hover .case-card:not(.is-hovered) {
    opacity: 1 !important;
    filter: none !important;
  }

  .case-card.is-hovered .case-card__poster,
  .case-card.is-hovered .case-card__video {
    transform: none !important;
  }
}

/* ==========================================================================
   19. КЕЙСЫ ПОДРОБНО (#cases-detail — слайдер с результатами)
   ========================================================================== */
.cases-detail {
  padding: clamp(60px, 8vw, 120px) 0;
  background-color: var(--c-dark);
  color: var(--c-light);
  position: relative;
  overflow: hidden;
}

.cases-detail__slider {
  position: relative;
  width: 100%;
}

/* Стопка слайдов (все слайды в одной ячейке CSS Grid) */
.cases-detail__slides {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

.cases-detail__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 600ms var(--ease),
    visibility 600ms;
}

.cases-detail__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.cases-detail__slide.is-leaving {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
}

/* Верхняя широкая картинка (~2:1) */
.cases-detail__media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: clamp(2px, 0.4vw, 4px);
  overflow: hidden;
  background-color: var(--c-dark-2);
}

.cases-detail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  opacity: 0.85;
  transition:
    transform 1200ms var(--ease),
    opacity 600ms var(--ease);
  will-change: transform, opacity;
}

.cases-detail__slide.is-active .cases-detail__img {
  transform: scale(1.035);
  opacity: 1;
}

.cases-detail__slide.is-leaving .cases-detail__img {
  transform: scale(1.035);
  opacity: 0;
}

/* Затемняющий градиент снизу картинки для идеальной читаемости */
.cases-detail__media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3.5vw, 40px);
  background: linear-gradient(
    to top,
    rgba(27, 24, 21, 0.9) 0%,
    rgba(27, 24, 21, 0.35) 45%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Крупное название кейса на картинке (Cormorant, заглавными) */
.cases-detail__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-light);
  margin: 0;
  max-width: 75%;
}

/* Мелкая плашка / КЕЙС справа */
.cases-detail__badge {
  font-family: var(--font-body);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239, 233, 225, 0.65);
  margin-bottom: 6px;
  white-space: nowrap;
}

/* Две колонки под картинкой */
.cases-detail__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4.5vw, 64px);
  margin-top: clamp(28px, 4vw, 48px);
  align-items: start;
}

.cases-detail__col--left {
  display: flex;
  flex-direction: column;
}

.cases-detail__col--right {
  display: flex;
  flex-direction: column;
}

.cases-detail__block {
  margin-bottom: clamp(20px, 2.8vw, 32px);
}

.cases-detail__block:last-child {
  margin-bottom: 0;
}

/* Подписи-рубрикаторы: ЗАДАЧА, ЧТО МЫ СДЕЛАЛИ, РЕЗУЛЬТАТ */
.cases-detail__label {
  font-family: var(--font-body);
  font-size: clamp(11px, 0.85vw, 12px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: clamp(6px, 0.9vw, 10px);
}

.cases-detail__text {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  color: var(--c-light);
  max-width: 520px;
}

/* Блок результата */
.cases-detail__result {
  display: flex;
  flex-direction: column;
}

.cases-detail__result-lead {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 500;
  color: var(--c-light);
  margin-bottom: 4px;
  line-height: 1.25;
}

.cases-detail__result-val {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--c-light);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
}

.cases-detail__result-prefix,
.cases-detail__result-suffix {
  font-family: var(--font-heading);
}

.cases-detail__result-note {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(13px, 1vw, 15px);
  color: var(--c-muted);
  margin-top: clamp(6px, 0.8vw, 10px);
  line-height: 1.4;
}

/* Нижняя панель управления: счётчик «01/06» и стрелки ← → */
.cases-detail__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(24px, 3.5vw, 40px);
}

.cases-detail__counter {
  font-family: var(--font-body);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(239, 233, 225, 0.6);
  user-select: none;
}

.cases-detail__counter-cur {
  color: var(--c-light);
}

.cases-detail__counter-sep {
  margin: 0 2px;
  opacity: 0.5;
}

.cases-detail__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cases-detail__arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--c-light);
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  transition:
    color var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.cases-detail__arrow:hover {
  color: #fff;
  background: rgba(239, 233, 225, 0.08);
}

.cases-detail__arrow--prev:hover {
  transform: translateX(-3px);
}

.cases-detail__arrow--next:hover {
  transform: translateX(3px);
}

.cases-detail__arrow:focus-visible {
  outline: 2px solid var(--c-light);
  outline-offset: 2px;
}

/* Поочерёдное появление текстов снизу */
.cases-detail__title,
.cases-detail__badge,
.cases-detail__block--task,
.cases-detail__block--done,
.cases-detail__block--result {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 550ms var(--ease),
    transform 550ms var(--ease);
  will-change: opacity, transform;
}

.cases-detail__slide.is-active .cases-detail__title,
.cases-detail__slide.is-active .cases-detail__badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 80ms;
}

.cases-detail__slide.is-active .cases-detail__block--task {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 200ms;
}

.cases-detail__slide.is-active .cases-detail__block--done {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 320ms;
}

.cases-detail__slide.is-active .cases-detail__block--result {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 440ms;
}

/* Адаптация для мобильных экранов и планшетов */
@media (max-width: 860px) {
  .cases-detail__body {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 24px;
  }

  .cases-detail__title {
    max-width: 82%;
  }

  .cases-detail__controls {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .cases-detail__media {
    min-height: 200px;
  }

  .cases-detail__media-overlay {
    padding: 16px;
  }

  .cases-detail__title {
    max-width: 85%;
  }
}

/* prefers-reduced-motion: отключение анимаций для доступности */
@media (prefers-reduced-motion: reduce) {
  .cases-detail__slide,
  .cases-detail__img,
  .cases-detail__title,
  .cases-detail__badge,
  .cases-detail__block--task,
  .cases-detail__block--done,
  .cases-detail__block--result,
  .cases-detail__arrow {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .cases-detail__slide:not(.is-active) {
    display: none !important;
  }
}

/* ==========================================================================
   20. КОМАНДА (#team — карточки команды)
   ========================================================================== */
.team {
  border-top: 1px solid var(--c-line-dark);
}

.team__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(36px, 5vw, 64px);
  flex-wrap: wrap;
}

.team__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.8vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-light);
  max-width: 680px;
}

.team__subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: var(--c-muted);
  max-width: 440px;
  margin-bottom: 4px;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.team-card {
  display: flex;
  flex-direction: column;
  position: relative;
  outline: none;
}

.team-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--c-dark-2);
  border-radius: 2px;
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1);
  transition:
    transform var(--duration-normal) var(--ease),
    filter var(--duration-normal) var(--ease);
  will-change: transform, filter;
}

/* Наведение: фото слегка увеличивается и из ч/б становится цветным */
@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-card__img,
  .team-card:focus-visible .team-card__img {
    filter: grayscale(0%);
    transform: scale(1.05);
  }
}

/* На тач-устройствах без курсора фото цветные */
@media (hover: none) {
  .team-card__img {
    filter: grayscale(0%);
  }
}

.team-card__info {
  margin-top: clamp(12px, 1.3vw, 18px);
}

.team-card__name {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--c-light);
  text-transform: none;
}

.team-card:focus-visible {
  outline: 2px solid var(--c-light);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Мобильная адаптация: горизонтальная лента со scroll-snap */
@media (max-width: 768px) {
  .team__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .team__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 16px;
    margin-inline: calc(-1 * var(--container-pad));
    padding-inline: var(--container-pad);
    scroll-padding-inline: var(--container-pad);
    scrollbar-width: none;
    padding-bottom: 12px;
  }

  .team__grid::-webkit-scrollbar {
    display: none;
  }

  .team-card {
    flex: 0 0 clamp(230px, 72vw, 300px);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

/* ==========================================================================
   21. ОТЗЫВЫ (#reviews — слайдер с цитатами)
   ========================================================================== */
.reviews {
  border-top: 1px solid var(--c-line);
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.reviews__content {
  display: flex;
  flex-direction: column;
}

.reviews__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.8vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.reviews__quote-wrap {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
}

.reviews__blockquote {
  width: 100%;
  margin: 0;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
  will-change: opacity, transform;
}

.reviews__blockquote.is-fading-out {
  opacity: 0;
  transform: translateY(8px);
}

.reviews__text {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--c-ink);
  max-width: 620px;
}

.reviews__author {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: clamp(16px, 2vw, 24px);
}

.reviews__controls {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(28px, 4vw, 44px);
}

.reviews__counter {
  font-family: var(--font-body);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  user-select: none;
}

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

.reviews__counter-sep {
  margin: 0 2px;
  opacity: 0.6;
}

.reviews__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews__arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  transition:
    color var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.reviews__arrow:hover {
  background-color: var(--c-ink);
  color: var(--c-cream);
  border-color: var(--c-ink);
}

.reviews__arrow--prev:hover {
  transform: translateX(-3px);
}

.reviews__arrow--next:hover {
  transform: translateX(3px);
}

.reviews__arrow:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 2px;
}

.reviews__media {
  position: relative;
  width: 100%;
}

.reviews__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--c-cream-2);
}

.reviews__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Адаптация блока отзывов */
@media (max-width: 900px) {
  .reviews__grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 44px);
  }

  .reviews__quote-wrap {
    min-height: 140px;
  }

  .reviews__media {
    max-width: 440px;
    margin-inline: auto;
  }
}

/* prefers-reduced-motion для команды, отзывов и контактов */
@media (prefers-reduced-motion: reduce) {
  .team-card__img,
  .reviews__blockquote,
  .reviews__arrow,
  .form-field__label,
  .form-field__input,
  .form-field__select,
  .footer__social-link {
    transition: none !important;
    transform: none !important;
  }

  .form-success {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   22. КОНТАКТЫ (#contacts — форма заявки и contacts.webp)
   ========================================================================== */
.contacts {
  border-top: 1px solid var(--c-line);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.contacts__content {
  display: flex;
  flex-direction: column;
}

.contacts__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.8vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: clamp(14px, 2vw, 20px);
}

.contacts__subtitle {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: var(--c-muted);
  max-width: 520px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.contacts__form {
  position: relative;
  width: 100%;
  max-width: 520px;
}

/* Поля формы с плавающим плейсхолдером (Floating Label) */
.form-field {
  position: relative;
  margin-bottom: clamp(16px, 2.2vw, 22px);
}

.form-field__input,
.form-field__select {
  width: 100%;
  height: 56px;
  padding: 22px 18px 8px 18px;
  /* Размер шрифта 16px обязателен, чтобы iOS Safari не увеличивал экран при фокусе */
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--c-ink);
  background-color: rgba(225, 217, 205, 0.3);
  border: 1px solid var(--c-line);
  border-radius: 3px;
  outline: none;
  transition:
    border-color var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.form-field__input:hover,
.form-field__select:hover {
  border-color: rgba(30, 26, 23, 0.35);
}

.form-field__input:focus,
.form-field__select:focus,
.form-field.is-focused .form-field__input,
.form-field.is-focused .form-field__select {
  border-color: var(--c-ink);
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px var(--c-ink);
}

/* Лейбл-плейсхолдер: плавно уезжает наверх */
.form-field__label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--c-muted);
  pointer-events: none;
  transition:
    top var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease),
    font-size var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.form-field__input:focus ~ .form-field__label,
.form-field__input:not(:placeholder-shown) ~ .form-field__label,
.form-field__select:focus ~ .form-field__label,
.form-field.is-filled .form-field__label,
.form-field.is-focused .form-field__label {
  top: 9px;
  transform: translateY(0);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

.form-field__input:focus ~ .form-field__label,
.form-field__select:focus ~ .form-field__label,
.form-field.is-focused .form-field__label {
  color: var(--c-ink);
}

/* Стилизация выпадающего списка (select) */
.form-field--select .form-field__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 44px;
}

.form-field__select option {
  background-color: var(--c-cream);
  color: var(--c-ink);
  font-size: 15px;
  padding: 8px 12px;
}

.form-field__arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--c-muted);
  display: inline-flex;
  align-items: center;
  transition:
    transform var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.form-field.is-focused .form-field__arrow {
  color: var(--c-ink);
}

/* Ошибки валидации полей */
.form-field.has-error .form-field__input,
.form-field.has-error .form-field__select {
  border-color: #b33927;
  background-color: rgba(179, 57, 39, 0.04);
  box-shadow: 0 0 0 1px #b33927;
}

.form-field.has-error .form-field__label {
  color: #b33927;
}

.form-field__error {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #b33927;
  min-height: 16px;
  margin-top: 5px;
  margin-left: 2px;
  display: none;
  opacity: 0;
  transform: translateY(-3px);
  transition:
    opacity var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.form-field.has-error .form-field__error {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Тёмная кнопка на всю ширину */
.form__submit {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
}

/* Аккуратное сообщение об успешной проверке формы */
.form-success {
  padding: clamp(32px, 5vw, 48px) 24px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background-color: rgba(225, 217, 205, 0.35);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInSuccess var(--duration-normal) var(--ease) forwards;
}

.form-success__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--c-ink);
  color: var(--c-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.form-success__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: 8px;
}

.form-success__text {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--c-muted);
  line-height: 1.5;
  max-width: 380px;
}

@keyframes fadeInSuccess {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Картинка contacts.webp справа */
.contacts__media {
  position: relative;
  width: 100%;
}

.contacts__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--c-cream-2);
}

.contacts__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Адаптация формы контактов */
@media (max-width: 900px) {
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 48px);
  }

  .contacts__form {
    max-width: 100%;
  }

  .contacts__media {
    max-width: 440px;
    margin-inline: auto;
  }
}

/* ==========================================================================
   23. ПОДВАЛ (.footer — фон footer.webp с затемнением)
   ========================================================================== */
.footer {
  position: relative;
  background-color: var(--c-dark);
  color: var(--c-light);
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(32px, 4vw, 48px);
  overflow: hidden;
  border-top: 1px solid var(--c-line-dark);
}

.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.footer__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.footer__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 24, 21, 0.72) 0%, rgba(27, 24, 21, 0.88) 100%);
}

.footer__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: clamp(340px, 46vh, 480px);
  justify-content: space-between;
}

.footer__main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(48px, 7vw, 84px);
}

.footer__brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--c-light);
  transition: opacity var(--duration-fast) var(--ease);
}

.footer__brand:hover {
  opacity: 0.85;
}

.footer__logo-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 6.2vw, 80px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.footer__logo-sub {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.3vw, 18px);
  font-weight: 500;
  letter-spacing: 0.32em;
  color: rgba(239, 233, 225, 0.7);
  margin-top: 6px;
  text-transform: uppercase;
}

.footer__slogan {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.5;
  color: rgba(239, 233, 225, 0.9);
  max-width: 380px;
  text-align: right;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--c-line-dark);
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  flex-wrap: wrap;
}

.footer__link {
  font-family: var(--font-body);
  font-size: clamp(12px, 0.95vw, 14px);
  color: rgba(239, 233, 225, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--duration-fast) var(--ease);
}

.footer__link:hover {
  color: var(--c-light);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line-dark);
  color: rgba(239, 233, 225, 0.85);
  transition:
    background-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.footer__social-link:hover {
  background-color: var(--c-light);
  color: var(--c-dark);
  border-color: var(--c-light);
  transform: translateY(-2px);
}

.footer__social-link:focus-visible {
  outline: 2px solid var(--c-light);
  outline-offset: 2px;
}

/* Адаптация подвала: на телефоне всё в столбик по центру */
@media (max-width: 768px) {
  .footer {
    padding-top: clamp(60px, 12vw, 84px);
    padding-bottom: 32px;
  }

  .footer__main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 40px;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__slogan {
    text-align: center;
    max-width: 320px;
    font-size: 15px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding-top: 24px;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer__socials {
    justify-content: center;
    gap: 16px;
  }
}
