/* АвтоМебельПро — общий CSS для маркетинговых лендингов.
   Не использует Tailwind. Подключается через <link rel="stylesheet" href="/marketing-assets/landing.css">.
   Тема через CSS-переменные + prefers-color-scheme. Mobile-first, breakpoint 768px. */

:root {
  --accent: #465fff;
  --accent-hover: #3a4fd9;
  --accent-contrast: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-soft: #161922;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #262a35;
    --card-bg: #161922;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --accent-contrast: #ffffff;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: 32px; }
h2 { font-size: 26px; margin-top: 8px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { margin: 0 0 16px; }

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.site-header__logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__logo:hover { text-decoration: none; }
.site-header__logo .accent { color: var(--accent); }

.site-nav {
  display: none;
}

.site-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
}

.site-nav__link {
  color: var(--text-muted);
  font-size: 15px;
}

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

.site-header__cta {
  display: inline-block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

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

.btn--secondary:hover {
  background: var(--bg-soft);
}

.btn--lg {
  padding: 14px 26px;
  font-size: 17px;
}

/* ===== Hero ===== */
.hero {
  padding: 48px 0 56px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero__title {
  font-size: 32px;
  margin: 0 0 16px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 720px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Sections ===== */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type { border-bottom: none; }

.section__title {
  text-align: center;
  margin-bottom: 12px;
}

.section__lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 720px;
  margin: 0 auto 36px;
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.features__item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.features__item-title {
  font-size: 18px;
  margin: 0 0 8px;
}

.features__item-text {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

.features__item-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(70, 95, 255, 0.1);
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 14px;
}

/* ===== Compare table ===== */
.compare {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.compare__table th,
.compare__table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare__table th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  text-transform: none;
}

.compare__table tr:last-child td { border-bottom: none; }

.compare__yes { color: #16a34a; font-weight: 600; }
.compare__no { color: #dc2626; font-weight: 600; }

@media (prefers-color-scheme: dark) {
  .compare__yes { color: #4ade80; }
  .compare__no { color: #f87171; }
}

/* ===== FAQ ===== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq__item[open] {
  box-shadow: var(--shadow);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-muted);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 15px;
}

.faq__answer p:last-child { margin-bottom: 0; }

/* ===== CTA-block ===== */
.cta-block {
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  margin: 8px 0;
}

.cta-block__title {
  color: var(--accent-contrast);
  font-size: 26px;
  margin: 0 0 12px;
}

.cta-block__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  margin: 0 auto 24px;
  max-width: 640px;
}

.cta-block .btn--primary {
  background: var(--accent-contrast);
  color: var(--accent);
  border-color: var(--accent-contrast);
}

.cta-block .btn--primary:hover {
  background: #f3f4f6;
  border-color: #f3f4f6;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer__col-title {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__list li { margin-bottom: 6px; }

.site-footer__list a {
  color: var(--text-muted);
}

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

.site-footer__bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.muted { color: var(--text-muted); }

/* ===== Desktop (>= 768px) ===== */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }

  .site-nav { display: block; }

  .hero { padding: 80px 0 96px; }
  .hero__title { font-size: 48px; }
  .hero__subtitle { font-size: 20px; }

  .section { padding: 80px 0; }

  .features { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .cta-block { padding: 56px 32px; }
  .cta-block__title { font-size: 32px; }

  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 54px; }
}
