/* ============================================================
   Screen Recorder — стили лендинга
   Тёмная тема (без переключения на светлую)
   Адаптив: 320 → 1920 px, mobile-first
   Палитра: графитовый фон, бирюзовый акцент действия
   ============================================================ */

:root {
  /* ---- Основная палитра ---- */
  --bg: #0b0f14; /* фон страницы */
  --bg-alt: #10161d; /* фон секций-чередований */
  --card: #151d26; /* фон карточек */
  --border: #22303d;
  --text: #e6edf3;
  --muted: #94a6b8;

  --accent: #22d3ee; /* бирюзовый акцент: кнопки, ссылки, цены */
  --accent-2: #3b82f6; /* синий для градиентов */

  --accent-soft: rgba(
    34,
    211,
    238,
    0.12
  ); /* мягкая заливка акцентом: hover, бейджи */
  --accent-glow: rgba(34, 211, 238, 0.35); /* свечение кнопок и фокуса */
  --glow-blue: rgba(59, 130, 246, 0.25); /* свечение синих градиентов */
  --on-accent: #06222b; /* тёмный текст НА бирюзовой кнопке (контраст AA) */
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.45); /* тень, видимая на тёмном фоне */
  --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.55);
  --focus-ring: 0 0 0 3px rgba(34, 211, 238, 0.4); /* фокус с клавиатуры */
  --radius: 12px;
}

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

html {
  /* Плавный скролл по якорям (дубль в main.js для старых браузеров) */
  scroll-behavior: smooth;
  /* Якора не прячутся под фиксированной шапкой */
  scroll-padding-top: 80px;
  color-scheme: dark; /* нативные элементы браузера (инпуты, скроллбар) тоже тёмные */
}

body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Выделение текста мышью — в цвет акцента */
::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* Тонкий тёмный скроллбар (Chromium, Firefox частично) */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

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

.container-products {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.85); /* полупрозрачный фон + blur */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.header__logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 0 18px var(--accent-glow);
}

.header__nav {
  display: flex;
  gap: 20px;
}

.header__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

/* ---------- Первый экран ---------- */
.hero {
  padding: 64px 0;
  /* Градиентный фон: синий уходит вниз в цвет страницы */
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--glow-blue), transparent),
    var(--bg);
  text-align: center;
}

.hero__title {
  font-size: clamp(1.6rem, 4.5vw, 2.75rem); /* плавный размер от 320 до 1920 */
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 16px;
  /* Лёгкий градиент на заголовке — фирменный «техно»-приём */
  background: linear-gradient(120deg, var(--text) 40%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
}

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

.hero__points {
  list-style: none;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Кнопки: hover-эффекты ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
  filter: brightness(1.08);
}

.btn--primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

/* Фокус с клавиатуры — видимая рамка вокруг кнопок и ссылок */
.btn:focus-visible,
a:focus-visible,
.buy__input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--ghost:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ---------- Секции ---------- */
.section {
  padding: 56px 0;
}

/* Чередование фона: страницы нет — просто чередуем секции */
.section:nth-child(even) {
  background: var(--bg-alt);
}

/* Блок покупки: выделен градиентной панелью с рамкой */
.section--accent {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, var(--glow-blue), transparent),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.section__title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 32px;
  color: var(--text);
}

/* ============ ВОЗМОЖНОСТИ ============ */
#features {
  background: var(--bg-alt);
}

h2 {
  padding-top: 1rem;
  text-align: center;
}

.container p {
  text-align: center;
  padding: 1rem;
  padding-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

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

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Визуальный блок: скриншоты и видео ---------- */
.visuals-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  justify-content: center;
  align-items: center;
}

.scrinshoti {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
  margin-bottom: 2rem;
}

.scrinshoti .visual-card {
  max-width: 400px;
  margin: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.visual-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}

.visual-figure {
  margin: 0;
}

.visual-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.visual-figure figcaption {
  padding: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.visual-card--video {
  grid-column: span 2; /* на планшетах и выше занимает 2 колонки из 3 */
  margin: 0 auto;
}

@media (min-width: 768px) {
  .visual-card--video {
    grid-column: span 3; /* на больших экранах занимает всю строку */
  }
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.visual-caption {
  padding: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- Блок покупки ---------- */
.buy__price {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}

.buy__note {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.buy__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}

.buy__input {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.buy__input::placeholder {
  color: var(--muted);
}

.buy__input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
  outline: none;
}

.buy__legal {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

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

/* ---------- FAQ ---------- */
.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.faq:hover {
  border-color: var(--muted);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.faq summary:hover {
  color: var(--accent);
}

/* Убираем нативный маркер details в Safari/Chrome, оставляем стрелку */
.faq summary::-webkit-details-marker {
  display: none;
}

.faq[open] summary {
  color: var(--accent);
}

.faq p {
  margin-top: 8px;
  color: var(--muted);
}

/* ---------- Подвал ---------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--bg-alt);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  /* выравнивание колонок */
  align-items: flex-start;
}

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

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__col {
  max-width: 320px;
}

.footer__brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.footer__tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.footer__legal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer__legal p {
  margin-bottom: 6px;
}

/* На узких экранах колонки футера становятся вертикальными */
@media (max-width: 700px) {
  .footer__inner {
    flex-direction: column;
    gap: 20px;
  }
}

/* ---------- Анимация появления при скролле ----------
   Элемент с классом .reveal изначально сдвинут вниз и прозрачен;
   main.js добавляет .reveal--visible, когда элемент входит в экран. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* Уважение к системной настройке «уменьшить анимации» */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .card,
  .visual-card {
    transition: none;
  }
}

/* ============================================================
   Бургер-меню: кнопка видна на планшетах и телефонах (<= 900 px),
   на десктопе скрыта, навигация показывается строкой.
   ============================================================ */

.burger {
  display: none; /* на десктопе не нужен */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; /* удобный размер тапа: минимум 44x44 по гайдлайнам */
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.burger:hover,
.burger:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

/* Когда меню открыто (класс .is-open вешает JS):
   полоски складываются в крестик */
.burger.is-open .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open .burger__line:nth-child(2) {
  opacity: 0;
}
.burger.is-open .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Мобильная панель навигации ---------- */

/* По умолчанию: десктоп — навигация строкой, панель как обычный флекс */
.header__nav {
  display: flex;
}

@media (max-width: 900px) {
  .burger {
    display: flex;
  } /* кнопка появляется */

  /* Навигация превращается в выпадающую панель под шапкой */
  .header__nav {
    position: absolute;
    top: 100%; /* сразу под шапкой */
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(16, 22, 29, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;

    /* Анимация раскрытия: сворачиваем через max-height */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition:
      max-height 0.3s ease,
      opacity 0.25s ease,
      visibility 0.3s;
  }

  /* Открытая панель (класс вешает JS) */
  .header__nav.is-open {
    max-height: 400px; /* запас под 6 ссылок */
    visibility: visible;
    opacity: 1;
  }

  .header__nav a {
    display: block;
    padding: 12px 8px;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }

  .header__nav a:last-child {
    border-bottom: none;
  }

  .header__nav a:hover,
  .header__nav a:focus-visible {
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 8px;
  }
}

/* На очень узких экранах (320 px) шапка не ломается */
@media (max-width: 400px) {
  .header__nav a {
    font-size: 0.95rem;
    padding: 11px 8px;
  }
}

/* ============================================================
   Каталог товаров: сетка адаптивная, карточки с тенями
   ============================================================ */
.products {
  margin: 60px 0;
}

.section-title {
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 40px;
  text-align: center;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.product-card.is-popular {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.15);
  position: relative;
}

/* Бейдж «Популярный» */
.product-card.is-popular::before {
  content: "Популярное";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #000;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card__header {
  margin-bottom: 16px;
}

.product-card__name {
  color: var(--text);
  font-size: 1.15rem;
  margin: 0;
}

.product-card__price {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0 12px;
}

.product-card__period {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.product-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}

.product-card__features li {
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  padding-left: 22px;
}

.product-card__features li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 2px;
}

.product-card__devices {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: auto;
}

@media (max-width: 768px) {
  .products__grid {
    gap: 16px;
  }
  .product-card {
    padding: 16px;
  }
}

/* ============================================================
   Checkout: форма оплаты
   ============================================================ */
.checkout {
  margin: 60px 0;
}

.checkout__preview,
.checkout__empty {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
}

.checkout__card h3 {
  color: var(--text);
  margin: 0 0 16px;
}

.checkout__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.checkout__name {
  color: var(--text);
  font-weight: 600;
}

.checkout__price {
  color: var(--accent);
  font-weight: 700;
}

.checkout__optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.checkout__desc {
  color: var(--muted);
  margin: 0 0 20px;
}

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

.checkout__label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.input {
  width: 100%;
  padding: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-large {
  padding: 14px 24px;
  font-size: 1.1rem;
  width: 100%;
}

.checkout__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 500px) {
  .checkout__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .checkout__price {
    align-self: flex-end;
  }
}

.checkout__eula {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
}

.checkout__eula input {
  margin-top: 3px;
  flex-shrink: 0;
}

.checkout__eula a {
  color: var(--primary, #4a9eff);
}

/* ---------- Секция «Важно» ---------- */
.vajno h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.vajno p {
  padding: 0 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.vajno p::first-letter {
  padding-right: 5px;
  initial-letter: 2 1;
  color: #3b82f6;
  font-weight: 700;
}

/* ============================================================
   Отзывы: горизонтальная лента
   Карточки 380 px, скролл + snap + drag мышью, стрелки.
   ============================================================ */

.rv-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.reviews__list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 20px;
  margin-bottom: 8px;
  /* Курсор-рука: намекает, что ленту можно тянуть */
  cursor: grab;
  /* Скрываем полосу прокрутки, оставляем скролл */
  scrollbar-width: none;
}

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

.reviews__list.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none; /* во время перетаскивания не прилипаем */
}

.review-card {
  flex: 0 0 380px; /* ширина карточки 380 px */
  max-width: 440px;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  user-select: none; /* чтобы не выделялся текст при перетаскивании */
}

.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.review-card__name {
  font-weight: 600;
}

.review-card__rating {
  color: #f5b301;
  letter-spacing: 2px;
  white-space: nowrap;
}

.review-card__text {
  margin: 0;
  line-height: 1.5;
  /* Длинные отзывы не ломают ленту: обрезаем на 5 строках с многоточием */
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* На узких экранах карточка тянется почти на всю ширину */
@media (max-width: 520px) {
  .review-card {
    flex-basis: 88vw;
  }
}

/* Стрелки навигации */
.reviews__nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.reviews__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.reviews__arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

.reviews__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

/* Форма «Оставить отзыв» */
.review-form-wrap {
  margin-top: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.review-form-wrap h3 {
  margin-bottom: 12px;
  color: var(--text);
}

/* ============================================================
   Блог: статьи. Правило .post переопределяет центровку .container p
   — для чтения текст нужен слева, не по центру.
   ============================================================ */

.post {
  padding: 48px 0 64px;
}

/* Отключаем центровку и паддинги из .container p внутри статей */
.post p,
.post ol,
.post ul {
  text-align: left;
  padding: 0;
  margin-bottom: 14px;
}

.post li {
  margin-bottom: 8px;
  margin-left: 1.4em;
}

.post__meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.post__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 16px;
  text-align: left;
  padding-top: 0;
}

.post__lead {
  font-size: 1.1rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 24px;
}

/* Оглавление */
.post__toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 32px;
}

.post__toc p {
  margin-bottom: 8px;
}

.post__toc ol {
  margin: 0;
  padding-left: 1.4em;
}

.post__toc a {
  color: var(--accent);
  text-decoration: none;
}

.post__toc a:hover {
  text-decoration: underline;
}

/* Заголовки внутри статьи */
.post h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-top: 0;
  text-align: left;
}

.post h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  text-align: left;
}

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

.post a:hover {
  text-decoration: underline;
}

/* Клавиши в тексте */
.post kbd {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
  font-family: inherit;
  font-size: 0.9em;
  white-space: nowrap;
}

/* Скриншот в статье */
.post__figure {
  margin: 24px 0;
}

.post__figure img {
  width: 100%;
  max-width: 720px;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.post__figure figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Таблица сравнения */
.post__table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
}

.post__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}

.post__table th,
.post__table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.post__table th {
  background: var(--bg-alt);
  color: var(--text);
}

.post__table td:first-child {
  color: var(--muted);
}

/* CTA в конце статьи */
.post__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 24px;
}
.post__cta .btn--primary {
  color: var(--on-accent);
}
/* Навигация между статьями */
.post__nav {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.post__nav a {
  color: var(--accent);
  text-decoration: none;
}

.post__nav a:hover {
  text-decoration: underline;
}

/* FAQ переиспользует .faq со главной — дополнительных правил не нужно */
