/* ===== Сброс и базовая типографика ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ===== Типографика заголовков (антиква-дисплей) ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.005em;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.2vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}
.section__title--left { text-align: left; margin-inline: 0; }
.section__hint {
  text-align: center;
  color: var(--ink-soft);
  margin-top: calc(var(--space-5) * -.7);
  margin-bottom: var(--space-5);
  font-size: 16px;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 17px;
  text-align: center;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s;
  will-change: transform;
}
.btn:active { transform: translateY(0) scale(.98); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow-accent);
}
.btn--accent:hover { background: #cf3327; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(226, 59, 46, .38); }
/* мягкий блик при наведении */
.btn--accent::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 60%);
  opacity: 0; transition: opacity .2s var(--ease);
}
.btn--accent:hover::after { opacity: 1; }
.btn { position: relative; overflow: hidden; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink-soft); transform: translateY(-2px); }

.btn--lg { min-height: 56px; padding: 18px 34px; font-size: 18px; }

/* однократный «pop» CTA при появлении в зоне видимости */
@keyframes ctaPop { 0% { transform: scale(1); } 45% { transform: scale(1.035); } 100% { transform: scale(1); } }
.btn--pop { animation: ctaPop .6s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .btn--pop { animation: none; } }

/* ===== Карточка ===== */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--e1);
  padding: clamp(24px, 4vw, 36px);
  /* мягкий светлый кант сверху — «тёплая глина» */
  background-image: linear-gradient(180deg, rgba(255,255,255,.6), transparent 22%);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
/* подъём карточек-«плиток» при наведении/тапе */
.learn__card, .review, .trust__item, .fit__row { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.learn__card:hover, .review:hover, .fit__row:hover { transform: translateY(-4px); box-shadow: var(--e2); }
@media (hover: none) {
  .learn__card:active, .review:active, .tariff:active { transform: scale(.99); }
}

/* ===== Иконки (Lucide-спрайт) ===== */
.ic { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-chip {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.icon-chip .ic { width: 26px; height: 26px; stroke-width: 2; }
.icon-chip--amber { background: var(--tint-amber); color: var(--accent-2); }
.icon-chip--accent { background: var(--tint-accent); color: var(--accent-ink); }
.icon-chip--ok { background: var(--tint-ok); color: var(--ok); }

/* ===== Секции: воздух ===== */
.section {
  padding-block: clamp(64px, 11vw, 128px);
}
.section--alt { background: linear-gradient(180deg, #FFFDFA, #FBF4EA); }

.section__cta { text-align: center; margin-top: var(--space-5); }

/* ===== Reveal (стартовое состояние, GSAP добавит видимость) ===== */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.is-ready [data-reveal] { will-change: opacity, transform; }

/* reduced-motion: без анимаций, всё видно */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Доступность: видимый фокус ===== */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

/* табличные цифры — цены/счётчики не дёргаются */
.tariff__price, .trust__num, .review__stars { font-variant-numeric: tabular-nums; }

/* ===== Утилиты ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 12px 4px 8px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.tag .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.tag--pain { background: var(--tint-accent); color: var(--accent-ink); }
.tag--gain { background: var(--tint-ok); color: var(--ok); }
