/*
 * Bookly — главная страница
 * Тёмное премиум-оформление (вариант B), тексты на языке владельца салона (вариант C).
 */

:root {
  --bg: #0d0c14;
  --bg-2: #13121c;
  --card: #17161f;
  --card-2: #1d1c27;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f3fb;
  --muted: #a3a1b8;
  --dim: #6f6d85;
  --violet: #7f77dd;
  --violet-strong: #534ab7;
  --violet-soft: rgba(127, 119, 221, 0.14);
  --coral: #f0997b;
  --teal: #5dcaa5;
  --amber: #ef9f27;
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 780px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

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

.btn--sm {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--lg {
  padding: 15px 26px;
  font-size: 16px;
  border-radius: 14px;
}

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

.btn--primary {
  background: var(--violet-strong);
  color: #fff;
  box-shadow: 0 8px 30px rgba(83, 74, 183, 0.45);
}

.btn--primary:hover {
  background: #6158c9;
  box-shadow: 0 10px 40px rgba(83, 74, 183, 0.6);
}

.btn--light {
  background: #fff;
  color: #111;
}

.btn--light:hover {
  background: #e9e8f3;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* ---------------------------------------------------------------------------
 * Шапка
 * ------------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(13, 12, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--violet-strong);
  color: #fff;
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav__link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav__link--mobile {
  display: none;
}

.header__actions {
  display: flex;
  gap: 8px;
}

/* Кнопка меню на телефоне: заметная «таблетка» с подписью */
.burger {
  display: none;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-left: auto;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.burger:hover,
.burger.is-open {
  border-color: var(--violet);
  background: var(--violet-strong);
}

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

.burger__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.burger__line:first-child {
  top: 1px;
}

.burger__line:last-child {
  top: 8px;
}

.burger.is-open .burger__line:first-child {
  top: 5px;
  transform: rotate(45deg);
}

.burger.is-open .burger__line:last-child {
  top: 5px;
  transform: rotate(-45deg);
}

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

.hero {
  position: relative;
  padding: 140px 0 40px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 1100px;
  height: 760px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(127, 119, 221, 0.38), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(240, 153, 123, 0.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(93, 202, 165, 0.18);
}

.hero__title {
  max-width: 880px;
  margin: 22px auto 0;
  font-size: clamp(38px, 6.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero__accent {
  background: linear-gradient(100deg, var(--coral) 0%, #f5c4b3 50%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}

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

.hero__note {
  margin-top: 16px;
  color: var(--dim);
  font-size: 13px;
}

/* Продукт в кадре: окно календаря + телефон + Telegram */
.showcase {
  position: relative;
  max-width: 980px;
  margin: 64px auto 0;
  padding-bottom: 40px;
  text-align: left;
}

.window {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.window__bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.window__url {
  margin-left: 12px;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--dim);
  font-size: 12px;
}

.cal-demo {
  padding: 18px 20px 22px;
}

.cal-demo__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cal-demo__title {
  font-size: 16px;
  font-weight: 600;
}

.cal-demo__tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.cal-demo__tabs b,
.cal-demo__tabs i {
  padding: 4px 12px;
  border-radius: 7px;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.cal-demo__tabs b {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.cal-demo__grid {
  display: grid;
  grid-template-columns: 52px repeat(3, minmax(0, 1fr));
  gap: 8px;
  height: 330px;
}

.cal-demo__times {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 28px;
  padding: 0 0 4px;
  color: var(--dim);
  font-size: 11px;
}

.cal-demo__col {
  position: relative;
  margin-top: 28px;
  border-radius: 12px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 50px
  );
}

.cal-demo__name {
  position: absolute;
  top: -26px;
  left: 0;
  right: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.ev {
  position: absolute;
  left: 4px;
  right: 4px;
  padding: 6px 9px;
  border-radius: 9px;
  border-left: 3px solid;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  overflow: hidden;
}

.ev b {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.ev--violet {
  background: rgba(127, 119, 221, 0.18);
  border-color: var(--violet);
}

.ev--teal {
  background: rgba(93, 202, 165, 0.15);
  border-color: var(--teal);
}

.ev--coral {
  background: rgba(240, 153, 123, 0.16);
  border-color: var(--coral);
}

.ev--amber {
  background: rgba(239, 159, 39, 0.15);
  border-color: var(--amber);
}

.ev--new {
  background: rgba(127, 119, 221, 0.32);
  border-color: #fff;
  animation: ev-pop 2.4s ease-in-out infinite;
}

@keyframes ev-pop {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(127, 119, 221, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(127, 119, 221, 0);
  }
}

/* Телефон со страницей записи */
.phone {
  position: absolute;
  right: -28px;
  bottom: 0;
  width: 220px;
  padding: 10px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: #fff;
  color: #18181b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.phone__notch {
  width: 70px;
  height: 6px;
  margin: 0 auto 8px;
  border-radius: 6px;
  background: #e4e4e7;
}

.phone__cover {
  height: 54px;
  margin: 0 -12px;
  background: radial-gradient(120% 140% at 100% 0%, #f5b49c 0%, transparent 55%), #d85a30;
}

.phone__logo {
  width: 42px;
  height: 42px;
  margin: -21px 0 6px;
  border: 3px solid #fff;
  border-radius: 13px;
  background: #faece7;
  color: #993c1d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  position: relative;
}

.phone__name {
  font-size: 14px;
  font-weight: 700;
}

.phone__label {
  margin: 8px 0 6px;
  color: #71717a;
  font-size: 11px;
}

.phone__masters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.phone__master {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: 1.5px solid #ececef;
  border-radius: 12px;
  font-size: 11px;
}

.phone__master.is-selected {
  border-color: #d85a30;
  background: #fdf5f2;
}

.phone__master i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #faece7;
  color: #993c1d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 700;
}

.phone__master span {
  padding: 1px 6px;
  border-radius: 999px;
  background: #faece7;
  color: #993c1d;
  font-size: 9px;
  font-weight: 600;
}

.phone__slots {
  display: flex;
  gap: 5px;
  margin: 10px 0;
}

.phone__slots span {
  flex: 1;
  padding: 6px 0;
  border: 1.5px solid #ececef;
  border-radius: 9px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}

.phone__slots .is-selected {
  border-color: #d85a30;
  background: #d85a30;
  color: #fff;
}

.phone__cta {
  padding: 10px;
  border-radius: 11px;
  background: #d85a30;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

/* Сообщение мастеру в Telegram */
.tg {
  position: absolute;
  left: -36px;
  bottom: 24px;
  width: 260px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(29, 28, 39, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.tg b {
  color: var(--text);
}

.tg__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tg__head i {
  color: var(--dim);
  font-style: normal;
  font-size: 11px;
}

.tg__logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2aabee;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.tg__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.tg__buttons span {
  padding: 6px 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  text-align: center;
  font-size: 11.5px;
}

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

.audience {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--dim);
  font-size: 15px;
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
 * Секции
 * ------------------------------------------------------------------------- */

.section {
  padding: 110px 0 0;
}

.section__header {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section__subtitle {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

/* Боль → решение */
.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pain-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.pain-card__problem {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.pain-card__solution {
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 15px;
}

.pain-card__solution span {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.stats li {
  padding: 24px;
  text-align: center;
}

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

.stats b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

/* Возможности */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.feature:hover {
  border-color: rgba(127, 119, 221, 0.4);
  background: var(--card-2);
  transform: translateY(-3px);
}

.feature__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--violet-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 15px;
}

/* Как это работает */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--violet-strong);
  color: #fff;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
}

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

/* Цены */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.price-card--pro {
  border-color: rgba(127, 119, 221, 0.55);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(127, 119, 221, 0.2), transparent 60%),
    var(--card);
  box-shadow: 0 30px 90px rgba(83, 74, 183, 0.25);
}

.price-card__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--violet-strong);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.price-card__name {
  font-size: 22px;
  font-weight: 800;
}

.price-card__desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 24px;
}

.price-card__price b {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-card__price span {
  color: var(--muted);
}

.price-card__list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card__list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
}

.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(93, 202, 165, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235DCAA5'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.price-card__list .is-muted {
  color: var(--dim);
}

.price-card__list .is-soon {
  color: var(--dim);
}

.price-card__list .is-soon::before {
  background: rgba(255, 255, 255, 0.06);
}

.price-card__list .is-soon span {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
}

.price-card__note {
  margin-top: 14px;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

/* Вопросы */
.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: border-color 0.2s ease;
}

.faq-item.is-open {
  border-color: var(--line-strong);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transition: transform 0.25s ease;
}

.faq-item__icon::after {
  transform: rotate(90deg);
}

.faq-item.is-open .faq-item__icon::after {
  transform: rotate(0deg);
}

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-item__answer {
  grid-template-rows: 1fr;
}

.faq-item__answer-inner {
  overflow: hidden;
}

.faq-item__answer p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* Финальный призыв */
.cta {
  padding: 110px 0;
}

.cta__card {
  position: relative;
  padding: 72px 32px;
  border: 1px solid rgba(127, 119, 221, 0.35);
  border-radius: 28px;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(127, 119, 221, 0.35), transparent 70%),
    radial-gradient(50% 80% at 90% 100%, rgba(240, 153, 123, 0.18), transparent 70%),
    var(--card);
  text-align: center;
  overflow: hidden;
}

.cta__title {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta__text {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Подвал */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.footer__links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

.footer__copy {
  width: 100%;
  color: var(--dim);
  font-size: 13px;
}

/* Появление при прокрутке */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal--delay-1 {
  transition-delay: 0.08s;
}

.reveal--delay-2 {
  transition-delay: 0.16s;
}

.reveal--delay-3 {
  transition-delay: 0.24s;
}

.reveal--delay-4 {
  transition-delay: 0.32s;
}

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

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

  .ev--new {
    animation: none;
  }
}

/* ---------------------------------------------------------------------------
 * Планшет и телефон
 * ------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .phone {
    right: 8px;
  }

  .tg {
    left: 8px;
  }
}

@media (max-width: 900px) {
  .pain__grid,
  .features__grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .stats li:nth-child(3) {
    border-left: 0;
  }

  .stats li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

@media (max-width: 768px) {
  .header__inner {
    gap: 12px;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(19, 18, 28, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link {
    padding: 12px 14px;
    font-size: 16px;
  }

  .nav__link--mobile {
    display: block;
  }

  .header__login {
    display: none;
  }

  .header__actions {
    margin-left: auto;
  }

  .burger {
    display: inline-flex;
    margin-left: 0;
  }

  .hero {
    padding-top: 112px;
  }

  .showcase {
    margin-top: 44px;
    padding-bottom: 0;
  }

  .cal-demo__grid {
    height: 270px;
    grid-template-columns: 40px repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .cal-demo {
    padding: 14px 12px 16px;
  }

  .ev {
    padding: 4px 6px;
    font-size: 10px;
  }

  .ev b {
    font-size: 11px;
  }

  .phone,
  .tg {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .phone {
    margin: -60px auto 0;
  }

  .tg {
    width: auto;
    max-width: 320px;
    margin: 16px auto 0;
  }

  .section {
    padding-top: 80px;
  }

  .section__header {
    margin-bottom: 36px;
  }

  .cta {
    padding: 80px 0;
  }

  .cta__card {
    padding: 52px 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  /* На узком экране в шапке — только логотип, язык и «Меню»; «Начать бесплатно» — в меню */
  .header__actions .btn {
    display: none;
  }

  .nav__link--cta {
    order: -1;
    margin-bottom: 4px;
    background: var(--violet-strong);
    color: #fff;
    font-weight: 700;
    text-align: center;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .pill {
    font-size: 12px;
  }

  .cal-demo__tabs {
    display: none;
  }

  .stats b {
    font-size: 28px;
  }

  .stats li {
    padding: 18px 10px;
  }

  .price-card {
    padding: 26px 22px;
  }

  .price-card__badge {
    position: static;
    align-self: flex-start;
    margin-bottom: 12px;
  }
}

/* ========== Язык: РУС | ҚАЗ ========== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.lang-switch button {
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--violet-soft);
  color: var(--text);
}

@media (max-width: 480px) {
  .lang-switch button {
    padding: 5px 7px;
    font-size: 11px;
  }
}

.logo__mark svg {
  width: 72%;
  height: 72%;
}
