/* ============================================================
 * Лендинг how-it-works.html — стили (extracted from inline <style> iter 4)
 * Chat: web-ce466870, iter 4 of p3-other-html-files-inline-style-blocks-extract
 * Strategy: verbatim extract of inline <style> block content.
 *   - Inline contained themed CSS using CSS variables (var(--primary), etc.)
 *   - landing-responsive.css has LEGACY hardcoded values for some shared classes
 *   - This file loads AFTER landing-responsive.css → overrides (same as inline did)
 *   - Pure refactor: same CSS source, no semantic changes
 * ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: var(--line-h);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ---- Шапка ---- */
.l-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  border-bottom: 1px solid var(--header-border-color, var(--gray-200));
}
.l-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 8px;
}
.l-logo {
  font-size: var(--logo-size);
  font-weight: var(--logo-weight);
  color: var(--logo-color);
  letter-spacing: var(--logo-spacing);
  white-space: nowrap;
}
.l-logo span {
  color: var(--logo-accent);
}

/* ---- Подвал ---- */
.l-footer {
  background: var(--footer-bg);
  color: var(--footer-color);
  padding: 48px 24px 24px;
}
.l-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.l-footer-logo {
  font-size: var(--footer-logo-size);
  font-weight: var(--footer-logo-weight);
  color: #fff;
  margin-bottom: 12px;
}
.l-footer-logo span {
  color: var(--footer-logo-accent, var(--cta-color));
}
.l-footer-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}
.l-footer-col h4 {
  font-size: var(--footer-col-header-size);
  font-weight: 600;
  text-transform: var(--footer-col-header-transform);
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 16px;
}
.l-footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
  transition: color 0.15s;
}
.l-footer-col a:hover {
  color: var(--footer-link-h);
}
.l-footer-copy {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  font-size: var(--footer-copy-size);
  color: var(--gray-400);
  text-align: center;
}
@media (max-width: 900px) {
  .l-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .l-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ---- Страница ---- */
.page-hero {
  background: var(--primary);
  padding: 64px 24px 56px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: var(--page-hero-h-weight, 800);
  color: #fff;
  letter-spacing: var(--page-hero-h-ls, -0.03em);
  margin-bottom: 14px;
}
.page-hero p {
  font-size: var(--page-hero-p-size, 16px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto;
}

.l-section {
  padding: var(--section-py) 24px;
}
.l-section-alt {
  background: var(--gray-50);
}
.l-inner {
  max-width: var(--hiw-inner-max-w);
  margin: 0 auto;
}
.l-inner-wide {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-badge {
  display: inline-block;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: var(--xs-size);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: var(--h2-size);
  font-weight: var(--h-weight);
  letter-spacing: var(--letter-h);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--gray-500);
  line-height: var(--line-h);
  max-width: 580px;
  margin-bottom: 48px;
}

/* ---- Большие шаги ---- */
.step-big {
  display: grid;
  grid-template-columns: var(--step-grid-cols);
  gap: var(--step-gap);
  align-items: start;
  background: var(--step-bg);
  border: var(--step-border);
  border-bottom: var(--step-border-bottom);
  border-radius: var(--step-radius);
  padding: var(--step-padding);
}
.step-big:last-child {
  border-bottom: none;
}
.step-num-big {
  width: var(--step-num-size);
  height: var(--step-num-size);
  border-radius: 50%;
  background: var(--step-num-bg);
  color: var(--step-num-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--step-num-fs);
  font-weight: var(--step-num-weight);
  flex-shrink: 0;
}
.step-title-big {
  font-size: 20px;
  font-weight: var(--h-weight);
  margin-bottom: 10px;
}
.step-text-big {
  font-size: var(--step-text-size);
  color: var(--gray-500);
  line-height: var(--step-text-lh);
}
.step-text-big strong {
  color: var(--text);
}

/* ---- Форматы ---- */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.format-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--sh);
}
.format-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.format-name {
  font-size: 16px;
  font-weight: var(--format-name-weight);
  margin-bottom: 8px;
}
.format-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---- Цены ---- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh);
}
.price-card.featured {
  border-color: var(--price-featured-border);
  background: var(--price-featured-bg);
  color: var(--price-featured-color);
}
.price-tag {
  font-size: 36px;
  font-weight: 900;
  color: var(--price-tag-color);
  margin-bottom: 4px;
}
.price-name {
  font-size: 16px;
  font-weight: var(--price-name-weight);
  margin-bottom: 10px;
}
.price-name-white {
  color: var(--price-name-w-color);
}
.price-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}
.price-desc-white {
  color: var(--price-desc-w-color);
}

@media (max-width: 600px) {
  .step-big {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-num-big {
    width: var(--step-num-mobile-size);
    height: var(--step-num-mobile-size);
    font-size: var(--step-num-mobile-fs);
  }
}
