/* ==========================================================================
   Clientum — лендинг
   ========================================================================== */

/* ---------- Шрифты (Inter, вариативный, 400–700) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

/* ---------- Токены ---------- */

:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-divider: rgba(233, 233, 237, 0.16);

  --color-accent-100: #f5f4ff;
  --color-accent-200: #e7e5fe;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-500: #968ae0;
  --color-accent-600: #796cbf;
  --color-accent-700: #5d5294;
  --color-accent-800: #423a6a;
  --color-accent-900: #2b2741;

  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  --color-section: #262a60;
  --color-section-ghost: #4c5397;

  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0, 0, 0, 0.65);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-gap: 112px;

  --transition: 150ms ease;
}

/* ---------- База ---------- */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

a {
  color: var(--color-accent-300);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus {
  outline: none;
}

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

::selection {
  background: rgba(145, 132, 217, 0.3);
}

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

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

/* ---------- Раскладка ---------- */

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

.section {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: var(--section-gap);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.section-title {
  max-width: 18ch;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-subtitle {
  max-width: 50ch;
  font-size: 16px;
  line-height: 26px;
  color: rgba(233, 233, 237, 0.72);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
  background: rgba(145, 132, 217, 0.12);
  color: var(--color-accent);
}

.btn:active {
  background: rgba(145, 132, 217, 0.22);
}

.btn--lg {
  padding: 12px 28px;
}

.btn--block {
  width: 100%;
}

/* Светящаяся кнопка в hero */
.btn--glow {
  font-size: 15px;
  border-color: var(--color-accent-300);
  color: var(--color-text);
  background: linear-gradient(180deg, rgba(150, 138, 224, 0.35), rgba(66, 58, 106, 0.5));
  box-shadow: 0 0 36px -4px rgba(145, 132, 217, 0.7), inset 0 1px 0 rgba(245, 244, 255, 0.3);
}

.btn--glow:hover {
  color: var(--color-text);
  background: linear-gradient(180deg, rgba(150, 138, 224, 0.5), rgba(66, 58, 106, 0.65));
}

/* Мягкая акцентная кнопка (AI, Pro) */
.btn--soft {
  border-color: var(--color-accent-200);
  color: var(--color-text);
  background: rgba(150, 138, 224, 0.25);
}

.btn--soft:hover {
  color: var(--color-text);
  background: rgba(150, 138, 224, 0.38);
}

.btn--soft-glow {
  box-shadow: 0 0 36px -6px rgba(210, 206, 253, 0.7);
}

.btn--secondary {
  border-color: var(--color-divider);
  color: var(--color-text);
}

.btn--secondary:hover {
  color: var(--color-text);
  background: rgba(233, 233, 237, 0.07);
}

.btn--secondary:active {
  background: rgba(233, 233, 237, 0.14);
}

/* ---------- Мелкие компоненты ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--color-accent-700);
  border-radius: 999px;
  background: rgba(43, 39, 65, 0.6);
  font-size: 13px;
  color: var(--color-accent-200);
}

.badge--section {
  border-color: var(--color-section-ghost);
  background: transparent;
  color: var(--color-accent-100);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--color-accent-800);
  color: var(--color-accent-100);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 500;
}

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

.logo__mark {
  flex: none;
  width: auto;
  height: 28px;
}

/* Базовая «стеклянная» карточка */
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--color-neutral-800);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(63, 66, 77, 0.7), rgba(41, 43, 49, 0.5));
  box-shadow: inset 0 1px 0 rgba(233, 233, 237, 0.06);
}

/* Акцентная карточка (первая фича, Pro-тариф) */
.card--accent {
  border-color: var(--color-accent-500);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(150, 138, 224, 0.4), transparent),
    var(--color-section);
  box-shadow: 0 0 80px -30px rgba(145, 132, 217, 0.7), inset 0 1px 0 rgba(245, 244, 255, 0.2);
}

.card__title {
  font-size: 18px;
}

.card__text {
  font-size: 14px;
  line-height: 22px;
  color: rgba(233, 233, 237, 0.7);
}

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

/* Внутренний «мини-экран» */
.screen {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--color-neutral-800);
  border-radius: 12px;
  background: var(--color-bg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  /* Свечение у скриншота выходит за край экрана — обрезаем без создания скролл-контейнера */
  overflow-x: clip;
}

/* Оба слоя начинаются выше страницы, чтобы заполнить оттягивание на телефоне.
   will-change даёт им свой слой: Safari за краем страницы рисует только такие слои */
.hero__grid,
.hero__glow {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  will-change: transform;
}

.hero__grid {
  top: -720px;
  height: 1820px;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(147, 151, 171, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(147, 151, 171, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  /* Нижняя часть — страница, верхняя — зона за краем; стыкуются на границе страницы */
  -webkit-mask:
    radial-gradient(ellipse 60% 605px at 50% 330px, black 20%, transparent 100%) bottom / 100% 1100px no-repeat,
    radial-gradient(ellipse 50% 100% at 50% 100%, rgba(0, 0, 0, 0.57), transparent 100%) top / 100% 720px no-repeat;
  mask:
    radial-gradient(ellipse 60% 605px at 50% 330px, black 20%, transparent 100%) bottom / 100% 1100px no-repeat,
    radial-gradient(ellipse 50% 100% at 50% 100%, rgba(0, 0, 0, 0.57), transparent 100%) top / 100% 720px no-repeat;
}

.hero__glow {
  top: -800px;
  height: 1240px;
  z-index: -2;
  background:
    radial-gradient(ellipse 50% 100% at 50% 100%, rgba(121, 108, 191, 0.45), transparent 100%) top / 100% 800px no-repeat,
    radial-gradient(ellipse 50% 100% at 50% 0%, rgba(121, 108, 191, 0.45), transparent 100%) bottom / 100% 440px no-repeat;
}

/* ---------- Навигация ---------- */

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 20px;
}

.nav__brand,
.nav__actions {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav__actions {
  justify-content: flex-end;
  gap: 8px;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.nav__links a {
  color: rgba(233, 233, 237, 0.8);
}

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

.nav__toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-divider);
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  transition: background-color var(--transition);
}

.nav__toggle:hover {
  background: rgba(233, 233, 237, 0.07);
}

.nav__toggle .icon--close {
  display: none;
}

.nav.is-open .nav__toggle .icon--open {
  display: none;
}

.nav.is-open .nav__toggle .icon--close {
  display: block;
}

/* ---------- Первый экран ---------- */

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

.hero__title {
  max-width: 15ch;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__text {
  max-width: 54ch;
  font-size: 17px;
  line-height: 28px;
  color: rgba(233, 233, 237, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
}

/* ---------- Скриншот продукта ---------- */

.showcase {
  padding-top: 72px;
}

.showcase__inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.showcase__spot {
  position: absolute;
  right: -40px;
  bottom: 40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(closest-side, rgba(181, 171, 252, 0.7), transparent);
  filter: blur(30px);
  pointer-events: none;
}

.showcase__line {
  position: absolute;
  top: -20px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent-400), transparent);
}

.showcase__frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--color-neutral-700);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(89, 93, 108, 0.6), rgba(41, 43, 49, 0.4));
  box-shadow: var(--shadow-lg);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.showcase__img {
  width: 100%;
  height: auto;
  aspect-ratio: 2560 / 1262;
  object-fit: cover;
  object-position: top left;
  border-radius: 8px;
}

/* ---------- Для кого ---------- */

.audience {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: var(--section-gap);
  text-align: center;
}

.audience__title {
  font-size: 15px;
  font-weight: 500;
}

.audience__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
}

.audience__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(233, 233, 237, 0.62);
}

.audience__item .icon {
  font-size: 22px;
  color: var(--color-accent-300);
}

/* ==========================================================================
   Возможности
   ========================================================================== */

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.features > .card {
  flex: 1 1 300px;
}

/* Широкая карточка «Онлайн-запись» */
.features > .feature-main {
  flex: 2 1 616px;
}

.feature-main {
  min-width: min(100%, 300px);
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 32px;
}

.feature-main__body {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-main__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-section-ghost);
  border-radius: 50%;
  background: rgba(22, 24, 38, 0.4);
  color: var(--color-accent-100);
  font-size: 22px;
}

.feature-main__title {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.feature-main__text {
  font-size: 15px;
  line-height: 24px;
  color: rgba(233, 233, 237, 0.86);
}

.feature-main .screen {
  flex: 1 1 260px;
  margin-top: 0;
  border-color: var(--color-section-ghost);
  background: rgba(22, 24, 38, 0.75);
}

/* Профиль клиента */
.profile {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-neutral-800);
  font-size: 13px;
}

.profile__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile__row dt {
  color: rgba(233, 233, 237, 0.6);
}

.profile__row dd {
  margin: 0;
  text-align: right;
}

.profile__note {
  padding: 8px 10px;
  border: 1px solid var(--color-accent-700);
  border-radius: 8px;
  background: rgba(43, 39, 65, 0.6);
  font-size: 12px;
  line-height: 18px;
  color: var(--color-accent-200);
}

/* Онлайн-запись */
.booking {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking__url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--color-neutral-700);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(233, 233, 237, 0.72);
  overflow-wrap: anywhere;
}

.booking__url .icon {
  color: var(--color-accent-300);
}

.booking__slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  font-size: 13px;
  text-align: center;
}

.slot {
  padding: 8px 0;
  border: 1px solid var(--color-neutral-700);
  border-radius: 8px;
}

.slot--active {
  border-color: var(--color-accent-500);
  background: rgba(66, 58, 106, 0.6);
  color: var(--color-accent-100);
}

.slot--busy {
  border-color: var(--color-neutral-800);
  color: rgba(233, 233, 237, 0.35);
  text-decoration: line-through;
}

/* Аналитика */
.revenue {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.revenue__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.revenue__value {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.revenue__delta {
  font-size: 12px;
  color: var(--color-accent-200);
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 72px;
}

.chart__bar {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, transparent, var(--c, var(--color-accent-700)));
}

.chart__bar--peak {
  box-shadow: 0 0 16px -2px rgba(145, 132, 217, 0.6);
}

/* Календарь команды */
.team {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.team__row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.team__name {
  color: rgba(233, 233, 237, 0.64);
}

.team__track {
  display: flex;
  gap: 4px;
}

.team__slot {
  flex: var(--f, 1);
  height: 22px;
}

.team__slot--a,
.team__slot--b,
.team__slot--c {
  border: 1px solid;
  border-radius: 6px;
}

.team__slot--a {
  border-color: var(--color-accent-500);
  background: rgba(93, 82, 148, 0.8);
}

.team__slot--b {
  border-color: var(--color-neutral-600);
  background: rgba(89, 93, 108, 0.8);
}

.team__slot--c {
  border-color: var(--color-accent-600);
  background: rgba(66, 58, 106, 0.8);
}

/* База клиентов */
.client {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-accent-600);
  border-radius: 50%;
  background: var(--color-accent-800);
  color: var(--color-accent-100);
  font-size: 14px;
}

.client__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.client__name {
  font-size: 14px;
  font-weight: 500;
}

.client__meta {
  font-size: 12px;
  color: rgba(233, 233, 237, 0.6);
}

/* Напоминания */
.reminder {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
}

.reminder__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-accent-600);
  border-radius: 10px;
  background: var(--color-accent-800);
  color: var(--color-accent-100);
  font-size: 18px;
}

.reminder__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reminder__title {
  font-size: 13px;
  font-weight: 500;
}

.reminder__text {
  font-size: 12px;
  line-height: 18px;
  color: rgba(233, 233, 237, 0.64);
}

/* ==========================================================================
   Кейсы
   ========================================================================== */

.carousel {
  --carousel-gap: 16px;
  /* Сколько видно от следующей карточки — подсказка, что блок листается */
  --carousel-peek: 72px;

  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Лента выходит в поля контейнера: края растворяются там, не задевая текст крайних карточек */
.cases {
  --carousel-fade: linear-gradient(
    to right,
    transparent,
    #000 var(--gutter),
    #000 calc(100% - var(--gutter)),
    transparent
  );

  display: flex;
  gap: var(--carousel-gap);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-mask-image: var(--carousel-fade);
  mask-image: var(--carousel-fade);
}

/* Мышью лента перетаскивается: иначе без стрелок её не пролистать */
@media (hover: hover) and (pointer: fine) {
  .cases {
    cursor: grab;
  }
}

.cases.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

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

.cases > .card {
  flex: 0 0 calc((100% - 3 * var(--carousel-gap) - var(--carousel-peek)) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.carousel__progress {
  height: 2px;
  overflow: hidden;
  border-radius: 1px;
  background: var(--color-divider);
}

.carousel__progress[hidden] {
  display: none;
}

.carousel__bar {
  display: block;
  width: var(--bar-size, 100%);
  height: 100%;
  border-radius: 1px;
  background: var(--color-accent-400);
  transform: translateX(var(--bar-offset, 0));
}

.case__feature {
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid var(--color-accent-700);
  border-radius: 999px;
  background: rgba(43, 39, 65, 0.7);
  font-size: 12px;
  line-height: 18px;
  color: var(--color-accent-200);
}

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

.case__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-accent-700);
  border-radius: 10px;
  background: rgba(43, 39, 65, 0.7);
  color: var(--color-accent-200);
  font-size: 20px;
}

.case__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case__name {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: normal;
}

.case__meta {
  font-size: 13px;
  color: rgba(233, 233, 237, 0.6);
}

.case__metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
}

.metric__value {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-accent-200);
}

.metric__label {
  font-size: 12px;
  line-height: 17px;
  color: rgba(233, 233, 237, 0.64);
}

.case__story {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 22px;
}

.case__problem {
  color: rgba(233, 233, 237, 0.64);
}

.case__problem b {
  font-weight: 500;
  color: var(--color-text);
}

.case__solution {
  color: rgba(233, 233, 237, 0.86);
}

.case__solution b {
  font-weight: 500;
  color: var(--color-accent-200);
}

.case__calc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-divider);
  font-size: 12px;
  line-height: 18px;
  color: rgba(233, 233, 237, 0.56);
}

/* ==========================================================================
   AI-агент
   ========================================================================== */

.ai {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-gap);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(150, 138, 224, 0.4), transparent 100%),
    var(--color-section);
}

.ai__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(231, 229, 254, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(231, 229, 254, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 20%, black, transparent);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 20%, black, transparent);
}

.ai__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.ai__head {
  gap: 18px;
}

.ai__title {
  max-width: 16ch;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.ai__text {
  max-width: 52ch;
  font-size: 17px;
  line-height: 28px;
  color: rgba(233, 233, 237, 0.86);
}

.dialogs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  width: 100%;
}

.dialog {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--color-section-ghost);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 24, 38, 0.55), rgba(22, 24, 38, 0.8));
  box-shadow: inset 0 1px 0 rgba(245, 244, 255, 0.12);
}

.dialog__question {
  align-self: flex-end;
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 12px 12px 4px 12px;
  background: var(--color-surface);
  font-size: 14px;
  line-height: 21px;
}

.dialog__answer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--color-accent-700);
  border-radius: 12px 12px 12px 4px;
  background: rgba(43, 39, 65, 0.6);
}

.dialog__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-accent-200);
}

.dialog__value {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dialog__text {
  font-size: 14px;
  line-height: 22px;
  color: rgba(233, 233, 237, 0.8);
}

/* ==========================================================================
   Тарифы
   ========================================================================== */

.pricing {
  align-items: center;
  gap: 40px;
  padding-top: var(--section-gap);
  padding-bottom: 96px;
}

.pricing .section-title {
  max-width: none;
}

.billing {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-neutral-700);
  border-radius: 999px;
  background: var(--color-surface);
}

.billing__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.billing__option:hover {
  background: rgba(145, 132, 217, 0.12);
}

.billing__option[aria-checked="true"] {
  border-color: var(--color-accent-600);
  background: var(--color-accent-900);
}

.billing__discount {
  font-size: 12px;
  color: var(--color-accent-300);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 920px;
}

.plan {
  gap: 24px;
  padding: 32px;
}

.plan.card--accent {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(150, 138, 224, 0.4), transparent 100%),
    var(--color-section);
  box-shadow: 0 0 80px -24px rgba(145, 132, 217, 0.7), inset 0 1px 0 rgba(245, 244, 255, 0.2);
}

.plan .btn {
  margin-top: 6px;
  padding: 6px 10px;
}

.plan__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan__name {
  font-size: 22px;
}

.plan__desc {
  font-size: 14px;
  line-height: 22px;
  color: rgba(233, 233, 237, 0.72);
}

.card--accent .plan__desc {
  color: rgba(233, 233, 237, 0.8);
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.plan__amount {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.plan__period {
  font-size: 14px;
  color: rgba(233, 233, 237, 0.64);
}

.card--accent .plan__period {
  color: rgba(233, 233, 237, 0.72);
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan__list-intro {
  font-size: 13px;
  color: rgba(233, 233, 237, 0.72);
}

.plan__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 21px;
}

.plan__feature .icon {
  margin-top: 2px;
  font-size: 16px;
  color: var(--color-accent);
}

.card--accent .plan__feature .icon {
  color: var(--color-accent-200);
}

/* Подпись внизу карточки — прижата к низу, чтобы в обеих карточках была на одной линии */
.plan__billing {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-divider);
  font-size: 13px;
  line-height: 20px;
  color: rgba(233, 233, 237, 0.64);
}

.card--accent .plan__billing {
  border-top-color: rgba(231, 229, 254, 0.18);
  color: rgba(233, 233, 237, 0.78);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 96px;
  padding: 72px clamp(24px, 5vw, 64px);
  border: 1px solid var(--color-neutral-800);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(121, 108, 191, 0.45), transparent 100%),
    linear-gradient(180deg, rgba(63, 66, 77, 0.7), var(--color-bg));
  text-align: center;
}

.cta__title {
  max-width: 18ch;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.cta__text {
  max-width: 50ch;
  font-size: 16px;
  line-height: 26px;
  color: rgba(233, 233, 237, 0.78);
}

/* ==========================================================================
   Футер
   ========================================================================== */

.footer {
  position: relative;
  padding: 48px 0 32px;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent, var(--color-divider) 48px,
    var(--color-divider) calc(100% - 48px), transparent);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 32px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  grid-column: span 2;
  min-width: 0;
}

.footer__about {
  max-width: 36ch;
  font-size: 14px;
  line-height: 22px;
  color: rgba(233, 233, 237, 0.64);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer__heading {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(233, 233, 237, 0.55);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(233, 233, 237, 0.55);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1100px) {
  .cases > .card {
    flex-basis: calc((100% - 2 * var(--carousel-gap) - var(--carousel-peek)) / 2);
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }

  .nav__toggle {
    display: grid;
  }

  .nav__links {
    position: absolute;
    top: calc(100% - 8px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 10;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--color-neutral-800);
    border-radius: 16px;
    background: rgba(35, 37, 50, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    font-size: 15px;
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links a {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav__links a:hover {
    background: rgba(233, 233, 237, 0.06);
  }

  .hero__content {
    padding-top: 48px;
  }

  .showcase {
    padding-top: 56px;
  }

  .feature-main {
    padding: 24px;
  }

  .plan {
    padding: 24px;
  }

  .cases > .card {
    flex-basis: min(84vw, 340px);
  }

  .cta {
    padding-block: 56px;
  }

}

@media (max-width: 420px) {
  .footer__brand {
    grid-column: auto;
  }

  .billing__option {
    padding-inline: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
