/* ==========================================================================
   LENADIZ — стили сайта
   --------------------------------------------------------------------------
   Структура файла:
     1. Переменные и базовые настройки
     2. Типографика
     3. Сетка и контейнер
     4. Кнопки и ссылки
     5. Шапка и мобильное меню
     6. Hero (первый экран)
     7. Бегущая строка
     8. Секции и заголовки секций
     9. Обо мне
    10. Услуги
    11. Возражения
    12. Процесс
    13. Сравнение
    14. Проекты (кейсы)
    15. Цены
    16. Webflow (светлая секция)
    17. Менторинг
    18. FAQ
    19. Контакты и форма
    20. Футер
    21. Страница блога и статьи
    22. Страница 404
    23. Анимации появления
    24. Адаптив
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ
   -------------------------------------------------------------------------- */
:root {
  /* Цвета */
  --black: #000000;
  --white: #ffffff;
  --accent: #ff4d00;
  --lemon: #ffd400;

  /* Прозрачности белого (для тёмного фона) */
  --w-90: rgba(255, 255, 255, 0.9);
  --w-75: rgba(255, 255, 255, 0.75);
  --w-65: rgba(255, 255, 255, 0.65);
  --w-50: rgba(255, 255, 255, 0.5);
  --w-40: rgba(255, 255, 255, 0.4);
  --w-25: rgba(255, 255, 255, 0.25);
  --w-15: rgba(255, 255, 255, 0.15);

  /* Прозрачности чёрного (для светлого фона) */
  --b-70: rgba(0, 0, 0, 0.7);
  --b-60: rgba(0, 0, 0, 0.6);
  --b-40: rgba(0, 0, 0, 0.4);
  --b-15: rgba(0, 0, 0, 0.15);

  /* Шрифты */
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-badge: "Michroma", "Inter", sans-serif;

  /* Плавность */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --speed: 0.5s;

  /* Отступы секций */
  --section-pad: 96px;
  --container-max: 1600px;
  --container-pad: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

/* Плавный инерционный скролл (Lenis).
   Когда Lenis активен, нативный scroll-behavior отключаем,
   чтобы не было конфликта двух анимаций. Без JS (CDN не загрузился)
   остаётся нативный smooth из правила выше. */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}


li svg {
  max-width: 14px;

  }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--black);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 20px;
}

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

/* --------------------------------------------------------------------------
   2. ТИПОГРАФИКА
   -------------------------------------------------------------------------- */
.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* H1 — только на главной */
.h1 {
  font-size: clamp(2.6rem, 6.6vw, 9.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* H2 — заголовки секций, единый размер на всём сайте */
.h2 {
  font-size: clamp(2.1rem, 4.8vw, 4.5rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

/* H3 — заголовки карточек, единый размер */
.h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Заголовок проекта — чуть крупнее карточного */
.case-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

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

.lead {
  font-size: 15px;
  line-height: 1.625;
  color: var(--w-75);
}

@media (min-width: 768px) {
  .lead {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   3. СЕТКА И КОНТЕЙНЕР
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 16px;
}

/* --------------------------------------------------------------------------
   4. КНОПКИ И ССЫЛКИ
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  transition: color var(--speed) var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform var(--speed) var(--ease);
}

.btn:hover::after {
  transform: translateY(0);
}

.btn span,
.btn svg {
  position: relative;
  z-index: 1;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--speed) var(--ease);
}

.btn:hover svg {
  transform: rotate(45deg);
}

.btn--primary {
  background: var(--white);
  color: var(--black);
}
.btn--primary::after {
  background: var(--accent);
}
.btn--primary:hover {
  color: var(--black);
}

.btn--outline {
  border: 1px solid var(--w-50);
  color: var(--white);
}
.btn--outline::after {
  background: var(--white);
}
.btn--outline:hover {
  color: var(--black);
}

.btn--dark {
  background: var(--black);
  color: var(--white);
}
.btn--dark::after {
  background: var(--accent);
}
.btn--dark:hover {
  color: var(--black);
}

.btn--accent {
  background: var(--accent);
  color: var(--black);
}

.btn--lg {
  height: 56px;
  padding: 0 36px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Текстовая ссылка с подчёркиванием */
.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--w-25);
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.link svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   5. ШАПКА И МОБИЛЬНОЕ МЕНЮ
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background-color var(--speed) var(--ease), backdrop-filter var(--speed) var(--ease);
}

/* Подложка появляется после прокрутки (класс добавляет js/main.js) */
.header.is-scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  transition: padding var(--speed) var(--ease);
}

.header.is-scrolled .header__inner {
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--white);
}

.logo__name {
  font-family: var(--font-badge);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.logo__tag {
  color: var(--w-40);
  display: none;
}

.nav {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--w-25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--w-90);
  transition: color 0.3s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--white);
}

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

.header__cta {
  display: none;
}

/* Кнопка «Меню» */
.burger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--w-75);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.burger__icon {
  position: relative;
  width: 16px;
  height: 12px;
}

.burger__icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform var(--speed) var(--ease);
}

.burger__icon i:first-child {
  top: 0;
}
.burger__icon i:last-child {
  bottom: 0;
}

.burger.is-open .burger__icon i:first-child {
  transform: translateY(5px) rotate(45deg);
}
.burger.is-open .burger__icon i:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* Полноэкранное мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 104px 16px 32px;
  background: var(--black);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--w-15);
}

.mobile-menu__link:first-child {
  border-top: 1px solid var(--w-15);
}

.mobile-menu__link .meta {
  color: var(--w-40);
}

/* Полоса прогресса прокрутки */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   6. HERO (ПЕРВЫЙ ЭКРАН)
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 96px;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--w-25);
  color: var(--w-50);
}

.hero__meta span.is-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.hero__title {
  margin-top: 48px;
}

.hero__title .accent {
  color: var(--accent);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 24px;
  margin-top: 40px;
}

.hero__lead-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

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

/* Фото с оверлеями */
.photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--w-15);
  border-radius: 8px;
  background: #050505;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.photo:hover img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.photo__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.75) 100%);
}

.photo__tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.tag--muted {
  color: var(--w-75);
  display: none;
}

.hero__est {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: clamp(1.5rem, 4.2vw, 4.4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: right;
}

.hero__caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  max-width: 230px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  font-size: 12px;
  line-height: 1.4;
  color: var(--w-90);
}

/* Вращающийся круглый бейдж */
.spin-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 96px;
  height: 96px;
}

.spin-badge__text {
  position: absolute;
  inset: 0;
  animation: spin 14s linear infinite;
}

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

.spin-badge__core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-badge__core span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
}

.spin-badge__core svg {
  width: 16px;
  height: 16px;
}

/* Показатели */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 16px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--w-15);
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat__value .meta {
  color: var(--accent);
}

.stat__label {
  margin-top: 24px;
  max-width: 240px;
  color: var(--w-50);
}

/* --------------------------------------------------------------------------
   7. БЕГУЩАЯ СТРОКА
   -------------------------------------------------------------------------- */
.marquee {
  margin-top: 80px;
  padding: 20px 0;
  border-top: 1px solid var(--w-15);
  border-bottom: 1px solid var(--w-15);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__item {
  padding: 0 40px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   8. СЕКЦИИ И ЗАГОЛОВКИ СЕКЦИЙ
   --------------------------------------------------------------------------
   Вертикальный ритм: у тёмных секций есть только ВЕРХНИЙ отступ, поэтому
   две соседние секции одного цвета дают ровно один промежуток, а не двойной.
   -------------------------------------------------------------------------- */
.section {
  padding-top: var(--section-pad);
}

.section--white {
  background: var(--white);
  color: var(--black);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.section-head__rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--w-25);
  color: var(--w-50);
}

.section--white .section-head__rule {
  border-top-color: var(--b-15);
  color: var(--b-40);
}

.section-head__rule .dot {
  animation: none;
}

.section-head__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

.section-head__sub {
  max-width: 448px;
  align-self: end;
}

.section--white .section-head__sub {
  color: var(--b-70);
}

/* --------------------------------------------------------------------------
   9. ОБО МНЕ
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 56px;
}

.about__photo-box {
  margin-bottom: 24px;
}

.about__photo {
  aspect-ratio: 4 / 3;
}

.photo__label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--w-15);
}

.facts .meta {
  color: var(--w-40);
}

.facts span:last-child {
  display: block;
  margin-top: 4px;
  color: var(--white);
}

.about__text {
  display: grid;
  gap: 20px;
}

.about__text p:last-child {
  color: var(--white);
}

/* Карточки с пунктирной рамкой и заливкой при наведении */
.card-dashed {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 20px;
  border: 1px dashed var(--w-25);
  border-radius: 16px;
  overflow: hidden;
}

.card-dashed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform var(--speed) var(--ease);
}

.card-dashed:hover::after {
  transform: translateY(0);
}

.card-dashed > * {
  position: relative;
  z-index: 1;
  transition: color var(--speed) var(--ease);
}

.card-dashed__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--w-50);
}

.card-dashed:hover .card-dashed__top {
  color: rgba(0, 0, 0, 0.6);
}

.card-dashed:hover .h3,
.card-dashed:hover p {
  color: var(--black);
}

.card-dashed p {
  margin-top: 16px;
  max-width: 384px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--w-65);
}

.about__cards {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

.about__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--w-15);
  color: var(--w-50);
}

.about__socials a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.about__socials a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   10. УСЛУГИ
   -------------------------------------------------------------------------- */
.rows {
  margin-top: 56px;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--w-25);
  transition: background-color 0.3s ease, padding var(--speed) var(--ease);
}

.row:first-child {
  border-top: 1px solid var(--w-25);
}

.row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.row__num {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--w-25);
  transition: color var(--speed) var(--ease);
}

.row:hover .row__num {
  color: var(--accent);
}

.row__label {
  margin-top: 16px;
  color: var(--w-40);
}

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

.row__body .h3 {
  transition: color var(--speed) var(--ease);
}

.row__text {
  margin-top: 16px;
  max-width: 672px;
  font-size: 15px;
  line-height: 1.625;
  color: var(--w-65);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag--outline {
  padding: 4px 12px;
  border: 1px solid var(--w-25);
  border-radius: 999px;
  color: var(--w-75);
}

.row__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--w-25);
  border-radius: 50%;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}

.row__arrow svg {
  width: 16px;
  height: 16px;
}

.row:hover .row__arrow {
  background: var(--white);
  color: var(--black);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   11. ВОЗРАЖЕНИЯ
   -------------------------------------------------------------------------- */
.fears {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

/* --------------------------------------------------------------------------
   12. ПРОЦЕСС
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 56px;
  border-top: 1px solid var(--w-25);
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 24px 0;
}

.step__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.step__num {
  font-size: clamp(3rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--w-25);
  border-radius: 999px;
  color: var(--w-75);
  white-space: nowrap;
}

.step__title {
  margin-top: 32px;
}

.step p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--w-65);
}

.process__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--w-25);
}

.process__foot .meta {
  max-width: 448px;
  color: var(--w-50);
}

/* --------------------------------------------------------------------------
   13. СРАВНЕНИЕ
   -------------------------------------------------------------------------- */
.table {
  margin-top: 56px;
}

.table__head {
  display: none;
  padding: 12px 0;
  color: var(--w-40);
}

.table__head span:last-child {
  color: var(--accent);
}

.table__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--w-15);
  transition: background-color 0.5s ease;
}

.table__row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.table__param {
  font-size: 16px;
  font-weight: 500;
}

.table__studio,
.table__me {
  font-size: 14px;
}

.table__studio {
  color: var(--w-40);
  text-decoration: line-through;
  text-decoration-color: var(--w-25);
}

.table__me {
  color: var(--white);
  transition: color var(--speed) var(--ease);
}

.table__row:hover .table__me {
  color: var(--accent);
}

.table__studio .meta,
.table__me .meta {
  margin-right: 8px;
  text-decoration: none;
}

.table__studio .meta {
  color: rgba(255, 255, 255, 0.3);
}

.table__me .meta {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   14. ПРОЕКТЫ (КЕЙСЫ)
   -------------------------------------------------------------------------- */
.case {
  display: block;
  padding: 32px 0;
  border-top: 1px solid var(--w-25);
  transition: background-color 0.3s ease;
}

.case:last-of-type {
  border-bottom: 1px solid var(--w-25);
}

.case:hover {
  background: rgba(255, 255, 255, 0.03);
}

.case__img {
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
}

.case__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--w-40);
}

.case__status .accent {
  color: var(--accent);
}

.case .case-title {
  margin-top: 24px;
  transition: color var(--speed) var(--ease);
}

.case:hover .case-title {
  color: var(--accent);
}

.case__text {
  margin-top: 24px;
  max-width: 576px;
  font-size: 15px;
  line-height: 1.625;
  color: var(--w-65);
}

.case__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--w-15);
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--w-50);
}

.case__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.case__more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--speed) var(--ease);
}

.case:hover .case__more {
  color: var(--accent);
}

.case:hover .case__more svg {
  transform: rotate(45deg);
}

.case--unavailable { cursor: default; }
.case--unavailable:hover { background: transparent; }
.case--unavailable:hover .case-title { color: inherit; }
.case--unavailable:hover .case__more { color: inherit; }

.cases__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
}

.cases__foot .meta {
  max-width: 384px;
  color: var(--w-50);
}

/* --------------------------------------------------------------------------
   15. ЦЕНЫ
   --------------------------------------------------------------------------
   До 900px тарифы идут вертикально (одна колонка на всю ширину).
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 56px;
}

.plan {
  position: relative;
  padding-top: 16px; /* место для плашки на верхней грани */
}

/* Плашка живёт ВНЕ карточки, поэтому не обрезается её рамкой */
.plan__badge {
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 20;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--black);
  color: var(--w-75);
  box-shadow: inset 0 0 0 1px var(--w-25);
}

.plan--featured .plan__badge {
  background: var(--accent);
  color: var(--black);
  box-shadow: none;
}

.plan__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border: 1px dashed var(--w-25);
  border-radius: 16px;
  overflow: hidden;
}

.plan--featured .plan__card {
  border: 1px solid var(--accent);
}

.plan__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform var(--speed) var(--ease);
}

.plan__card:hover::after {
  transform: translateY(0);
}

.plan__card > * {
  position: relative;
  z-index: 1;
  transition: color var(--speed) var(--ease);
}

.plan__term {
  color: var(--w-50);
}

.plan__card:hover .plan__term, 
.plan__card:hover .plan__price-note,
.plan__card:hover .plan__note  {
  color: rgba(0, 0, 0, 0.6);
}
.plan__card:hover svg  {
  color: #fff;
}

.plan__name {
  margin-top: 12px;
}

.plan__price {
  margin-top: 28px;
  font-size: clamp(3rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.plan__price-note {
  margin-top: 8px;
  color: var(--w-50);
}

.plan__desc {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--w-75);
}

.plan__features {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--w-15);
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.plan__features svg {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  flex-shrink: 0;
  color: var(--accent);
}

.plan__note {
  margin-top: 24px;
  color: var(--w-40);
}

/* Кнопка прижата к низу карточки — все кнопки на одной линии */
.plan__cta {
  margin-top: auto;
  padding-top: 32px;
}

.plan__cta .btn {
  width: 100%;
}

.plan__card:hover .btn--primary {
  background: var(--black);
  color: var(--white);
}

.plan__card:hover .btn--primary::after {
  background: transparent;
}

.plan__card:hover .btn--outline {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.plan__card:hover .btn--outline::after {
  background: transparent;
}

/* Блок «включено в каждый проект» */
.included {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 80px;
  padding-bottom: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--w-25);
}

.included__sub {
  margin-top: 20px;
  max-width: 384px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--w-65);
}

.included__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--w-15);
  font-size: 15px;
  font-weight: 500;
}

.included__list .meta {
  color: var(--w-40);
}

.pricing__notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  color: var(--w-40);
}

/* --------------------------------------------------------------------------
   16. WEBFLOW (СВЕТЛАЯ СЕКЦИЯ)
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 56px;
  border-top: 1px solid var(--b-15);
}

.feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 24px 0;
  border-bottom: 1px solid var(--b-15);
}

.feature__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature__head .meta {
  color: var(--b-40);
}

.feature__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: background-color var(--speed) var(--ease);
}

.feature:hover .feature__dot {
  background: var(--accent);
}

.feature p {
  margin-top: 16px;
  max-width: 384px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--b-70);
}

.features__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
}

.features__foot .meta {
  max-width: 448px;
  color: var(--b-60);
}

/* --------------------------------------------------------------------------
   17. МЕНТОРИНГ
   -------------------------------------------------------------------------- */
.mentoring__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 56px;
}

.mentoring__photo {
  aspect-ratio: 4 / 3;
  margin-bottom: 32px;
}

.mentoring__photo .photo__scrim--bottom {
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  pointer-events: none;
  background: linear-gradient(to top, var(--black), rgba(0, 0, 0, 0.8) 55%, transparent);
}

.mentoring__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

.mentoring__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--white);
}

.mentor-list li {
  border-bottom: 1px solid var(--w-25);
}

.mentor-list li:first-child {
  border-top: 1px solid var(--w-25);
}

.mentor-list a {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  transition: padding var(--speed) var(--ease);
}

.mentor-list a:hover {
  padding-left: 12px;
}

.mentor-list .meta {
  width: 32px;
  flex-shrink: 0;
  margin-top: 8px;
  color: var(--w-40);
}

.mentor-list__body {
  flex: 1;
  min-width: 0;
}

.mentor-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}

.mentor-list__head .meta {
  width: auto;
  margin: 0;
}

.mentor-list a:hover .h3 {
  color: var(--accent);
}

.mentor-list p {
  margin-top: 12px;
  max-width: 576px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--w-65);
}

.mentor-list__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  transition: color 0.3s ease;
}

.mentor-list__more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--speed) var(--ease);
}

.mentor-list a:hover .mentor-list__more {
  color: var(--accent);
}

.mentor-list a:hover .mentor-list__more svg {
  transform: rotate(45deg);
}

.mentor-list__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--w-25);
  border-radius: 50%;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}

.mentor-list__arrow svg {
  width: 16px;
  height: 16px;
}

.mentor-list a:hover .mentor-list__arrow {
  background: var(--white);
  color: var(--black);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 56px;
}

.faq__aside {
  margin-bottom: 32px;
}

.faq__aside .meta {
  max-width: 260px;
  color: var(--w-50);
}

.faq__aside .link {
  margin-top: 24px;
}

.faq__item {
  border-bottom: 1px solid var(--w-25);
}

.faq__item:first-child {
  border-top: 1px solid var(--w-25);
}

.faq__q {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  transition: padding var(--speed) var(--ease);
}

.faq__q:hover {
  padding-left: 12px;
}

.faq__q .meta {
  width: 24px;
  flex-shrink: 0;
  color: var(--w-40);
}

.faq__q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.375;
  transition: color 0.3s ease;
}

.faq__item.is-open .faq__q-text,
.faq__q:hover .faq__q-text {
  color: var(--accent);
}

.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--w-25);
  border-radius: 50%;
  transition: transform var(--speed) var(--ease), background-color var(--speed) var(--ease),
    color var(--speed) var(--ease);
}

.faq__icon svg {
  width: 16px;
  height: 16px;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  background: var(--white);
  color: var(--black);
}

.faq__a {
  display: none;
  padding: 0 0 24px 44px;
  max-width: 672px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--w-75);
  animation: fade-in 0.4s var(--ease);
}

.faq__item.is-open .faq__a {
  display: block;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.faq__note {
  margin-top: 24px;
  color: var(--w-50);
}

/* --------------------------------------------------------------------------
   19. КОНТАКТЫ И ФОРМА
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 56px;
}

.contact__intro .lead {
  font-size: 16px;
}

.contact__intro .btn {
  margin-top: 32px;
}

.direct {
  margin-top: 48px;
}

.direct li {
  border-bottom: 1px solid var(--w-25);
}

.direct li:first-child {
  border-top: 1px solid var(--w-25);
}

.direct a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  transition: padding var(--speed) var(--ease);
}

.direct a:hover {
  padding-left: 12px;
}

.direct .meta {
  color: var(--w-50);
}

.direct__value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  transition: color 0.3s ease;
}

.direct__value svg {
  width: 14px;
  height: 14px;
  transition: transform var(--speed) var(--ease);
}

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

.direct a:hover .direct__value svg {
  transform: rotate(45deg);
}

.contact__hours {
  margin-top: 16px;
  color: var(--w-40);
}

/* Карточка формы */
.form-card {
  position: relative;
  margin-top: 16px;
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--w-40);
  border-radius: 24px;
}

.form-card__label {
  position: absolute;
  top: 0;
  left: 24px;
  transform: translateY(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--black);
  box-shadow: inset 0 0 0 1px var(--w-25);
  color: var(--w-75);
}

.form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  height: 100%;
}

.form__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 32px;
}

.field {
  position: relative;
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--w-25);
}

.field > span {
  display: block;
  color: var(--w-50);
  transition: color 0.3s ease;
}

.field:focus-within > span {
  color: var(--accent);
}

.field__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}

.field:focus-within .field__line {
  transform: scaleX(1);
}

.input,
.textarea {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 16px;
  color: var(--white);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--w-25);
}

.textarea {
  resize: none;
  min-height: 76px;
}

/* Выбор типа задачи */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip-btn {
  padding: 6px 14px;
  border: 1px solid var(--w-25);
  border-radius: 999px;
  color: var(--w-75);
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.chip-btn:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* Активный — только тот, на который нажали */
.chip-btn.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--black);
  font-weight: 600;
}

.form__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.form__foot .meta {
  max-width: 300px;
  color: var(--w-40);
}

/* Состояние «отправлено» */
.form-success {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}

.form-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
}

.form-success__icon svg {
  width: 24px;
  height: 24px;
}

.form-success .h2 {
  margin-top: 32px;
}

.form-success p {
  margin-top: 20px;
  max-width: 448px;
  font-size: 15px;
  line-height: 1.625;
  color: var(--w-75);
}

.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.form-success__again {
  color: var(--w-50);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-success__again:hover {
  color: var(--white);
}

.form-success[hidden],
.form[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   20. ФУТЕР
   -------------------------------------------------------------------------- */
.footer {
  padding-top: var(--section-pad);
  padding-bottom: 24px;
}

.footer__title {
  display: block;
  transition: color var(--speed) var(--ease);
}

.footer__title-link:hover .footer__title {
  color: var(--accent);
}

.footer__tagline {
  margin-top: 24px;
  max-width: 448px;
  font-size: 15px;
  line-height: 1.625;
  color: var(--w-65);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
  margin-top: 40px;
}

.footer__cols .meta {
  color: var(--w-40);
}

.footer__cols ul {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
}

.footer__cols a {
  position: relative;
  color: var(--w-75);
  transition: color 0.3s ease;
}

.footer__cols a:hover {
  color: var(--white);
}

.footer__cols a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}

.footer__cols a:hover::after {
  transform: scaleX(1);
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--w-15);
  color: var(--w-40);
}

.footer__brand {
  font-family: var(--font-badge);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--white);
}

.to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  transition: transform var(--speed) var(--ease);
}

.to-top:hover {
  transform: rotate(45deg);
}

.to-top svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   21. СТРАНИЦА БЛОГА И СТАТЬИ
   -------------------------------------------------------------------------- */
/* Сетка футера: 1 колонка на мобильном, 7/5 на desktop */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-head {
  padding-top: 128px;
}

.page-head .lead {
  max-width: 640px;
  margin-top: 32px;
}

.posts {
  display: grid;
  gap: 32px;
  margin-top: 56px;
}

.post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--w-25);
  transition: background-color 0.3s ease;
}

.post:hover {
  background: rgba(255, 255, 255, 0.03);
}

.post__img {
  aspect-ratio: 4 / 3;
}

.post .case-title {
  transition: color var(--speed) var(--ease);
}

.post:hover .case-title {
  color: var(--accent);
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--w-40);
}

.post__text {
  margin-top: 16px;
  max-width: 576px;
  font-size: 15px;
  line-height: 1.625;
  color: var(--w-65);
}

/* Статья */
.article {
  max-width: 900px;
  margin-top: 40px;
}

.article__hero {
  aspect-ratio: 16 / 9;
  margin: 40px 0;
}

.article h2 {
  margin: 48px 0 16px;
}

.article p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--w-75);
}

.article ul {
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.article ul li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--w-75);
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.article blockquote {
  margin: 32px 0;
  padding: 24px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 12px 12px 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--white);
}

.article__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--w-15);
}

/* --------------------------------------------------------------------------
   22. СТРАНИЦА 404
   -------------------------------------------------------------------------- */
.error {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 128px 0 64px;
}

.error .h1 {
  color: var(--accent);
}

.error p {
  max-width: 480px;
}

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

/* --------------------------------------------------------------------------
   23. АНИМАЦИИ ПОЯВЛЕНИЯ ПРИ ПРОКРУТКЕ
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Появление на первом экране (после прелоадера, а не по прокрутке) */
[data-reveal-onload] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal-onload].is-visible {
  opacity: 1;
  transform: none;
}

/* Картинка на первом экране появляется чуть заметнее и дольше */
.hero .photo[data-reveal-onload] {
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

/* Прелоадер */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--black);
  transition: transform 0.9s var(--ease);
}

.preloader.is-hidden {
  transform: translateY(-100%);
}

.preloader__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.preloader__top .meta {
  color: var(--w-50);
  text-align: right;
}

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

.preloader__bottom .meta {
  max-width: 220px;
  color: var(--w-50);
}

.preloader__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.preloader__bar {
  width: 160px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--w-15);
  overflow: hidden;
}

.preloader__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.preloader__num {
  font-size: clamp(2.6rem, 8.6vw, 9.6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* Кастомный курсор (только desktop) */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}

/* --------------------------------------------------------------------------
   24. АДАПТИВ
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  :root {
    --container-pad: 24px;
  }

  .tag--muted {
    display: inline-block;
  }

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

  .table__param {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  :root {
    --section-pad: 112px;
    --container-pad: 32px;
  }

  .hero__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__grid {
    grid-template-columns: 5fr 7fr;
  }

  .hero__lead-box .meta {
    display: flex;
  }

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

  .section-head__grid {
    grid-template-columns: 8fr 4fr;
  }

  .grid-12 {
    gap: 48px 24px;
  }

  .about__grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .about__left {
    grid-column: 1 / 6;
  }

  .about__right {
    grid-column: 6 / 13;
    padding-left: 32px;
  }

  .about__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .rows .row {
    grid-template-columns: 3fr 8fr 1fr;
    gap: 24px;
    padding: 36px 0;
  }

  .row__num {
    grid-column: 1;
  }

  .row__label {
    display: block;
    margin-top: 16px;
  }

  .row__arrow {
    display: flex;
  }

  .fears {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .card-dashed {
    min-height: 320px;
    padding: 28px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
  }

  .process__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cases__foot,
  .features__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

  .included {
    grid-template-columns: 5fr 7fr;
    gap: 32px 24px;
  }

  .pricing__notes {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .features__foot {
    margin-top: 32px;
  }

  .mentoring__grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .mentoring__left {
    grid-column: 1 / 6;
  }

  .mentoring__right {
    grid-column: 6 / 13;
    padding-left: 32px;
  }

  .faq__grid {
    grid-template-columns: repeat(12, 1fr);
  }

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

  .faq__left-inner {
    position: sticky;
    top: 112px;
  }

  .faq__right {
    grid-column: 5 / 13;
  }

  .faq__aside {
    margin-bottom: 0;
  }

  .contact__grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .contact__intro {
    grid-column: 1 / 6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .contact__form {
    grid-column: 6 / 13;
    padding-left: 40px;
  }

  .form-card {
    padding: 40px;
  }

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

  .field--wide {
    grid-column: 1 / -1;
  }

  .form__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__grid {
    grid-template-columns: 7fr 5fr;
    gap: 40px 24px;
  }

  .footer__cols {
    margin-top: 0;
    padding-left: 32px;
  }

  .footer__bottom {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }

  .footer__copy {
    max-width: 430px;
    justify-self: end;
    text-align: right;
    line-height: 1.45;
  }

  .footer__services {
    max-width: 240px;
    line-height: 1.45;
  }

  .posts .post {
    grid-template-columns: 5fr 7fr;
    gap: 24px;
    padding: 32px 0;
  }
}

@media (min-width: 900px) {
  /* Тарифы в три колонки только от 900px */
  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .logo__tag {
    display: inline;
  }

  .nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .burger,
  .mobile-menu {
    display: none;
  }

  .table__head {
    display: grid;
    grid-template-columns: 4fr 4fr 4fr;
    gap: 16px;
  }

  .table__row {
    grid-template-columns: 4fr 4fr 4fr;
    align-items: start;
    gap: 16px;
    padding: 20px 0;
  }

  .table__param {
    grid-column: auto;
  }

  .table__studio .meta,
  .table__me .meta {
    display: none;
  }

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

  .step {
    min-height: 380px;
    padding: 24px 24px 24px 0;
  }

  .step + .step {
    padding-left: 20px;
    border-left: 1px solid var(--w-25);
    border-bottom: 0;
  }

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

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

  .feature {
    min-height: 300px;
    padding: 24px 24px 24px 0;
  }

  .feature + .feature {
    padding-left: 24px;
    border-left: 1px solid var(--b-15);
    border-bottom: 0;
  }

  .feature:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .feature:nth-child(n + 4) {
    border-top: 1px solid var(--b-15);
  }

  .cursor {
    display: block;
  }

  .case {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    padding: 48px 0;
  }

  .case--reverse .case__media {
    order: 2;
  }

  .case__img {
    margin-bottom: 0;
  }

  .case__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .spin-badge {
    width: 128px;
    height: 128px;
  }

  .hero__caption {
    left: 24px;
    bottom: 24px;
    max-width: 270px;
  }

  .photo__tags,
  .hero__est {
    top: 24px;
  }

  .photo__tags {
    left: 24px;
  }

  .hero__est {
    right: 24px;
  }

  .spin-badge {
    right: 24px;
    bottom: 24px;
  }
}

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

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