/* ============================================================
   Car ID — лендинг. Самодостаточный файл: общий style.css не нужен.
   Палитра бренда: терракотовый #d4502e, голубой #51c9e6, крем #faf6f1.
   ============================================================ */

/* ---------- Мини-reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

:root {
    --bg: #faf6f1;
    --card: #ffffff;
    --ink: #241914;
    --muted: #7c6a5f;
    --orange: #d4502e;
    --orange-dark: #b03e20;
    --orange-tint: #f8e3da;
    --blue: #51c9e6;
    --blue-tint: #e3f7fd;
    --radius: 20px;
    --shadow: 0 10px 30px rgba(36, 25, 20, .08);
    --font-display: 'Comfortaa', 'Golos Text', sans-serif;
    --font-body: 'Golos Text', -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 28px; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
}

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .float-card, .marquee-track { animation: none !important; }
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 22px; font-size: .9rem; }

.btn-solid { background: var(--orange); color: #fff; }
.btn-solid:hover { background: var(--orange-dark); box-shadow: 0 8px 20px rgba(212, 80, 46, .35); }

.btn-ozon { background: var(--orange); color: #fff; box-shadow: 0 8px 24px rgba(212, 80, 46, .3); }
.btn-ozon:hover { background: var(--orange-dark); }
.btn-wb { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-wb:hover { background: var(--orange-tint); }

.btn-light { background: #fff; color: var(--orange); }
.btn-light:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Шапка ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 246, 241, .85);
    backdrop-filter: blur(10px);
    transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(36, 25, 20, .08); }
.header-inner { display: flex; align-items: center; gap: 32px; padding-block: 14px; }
.logo { flex-shrink: 0; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    color: var(--muted);
    transition: color .15s ease;
}
.nav a:hover { color: var(--orange); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 48px;
    padding-block: 64px 88px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { font-size: 1.15rem; color: var(--muted); margin-top: 20px; max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-cta.center { justify-content: center; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; padding-block: 24px; }
.hero-sticker {
    position: relative;
    z-index: 2;
    width: min(290px, 70%);
    transform: rotate(-4deg);
    filter: drop-shadow(0 24px 40px rgba(36, 25, 20, .28));
}
.blob {
    position: absolute;
    inset: 8% 6%;
    background: radial-gradient(circle at 30% 25%, var(--blue-tint), #bdebf8 65%, #a5e2f4);
    border-radius: 48% 52% 55% 45% / 50% 44% 56% 50%;
    z-index: 1;
}

/* Уголки-скобки как на стикере */
.qr-bracket { position: absolute; width: 56px; height: 56px; z-index: 3; }
.qr-bracket.br-tl { top: 4%; left: 4%; border-top: 5px solid var(--orange); border-left: 5px solid var(--orange); border-top-left-radius: 18px; }
.qr-bracket.br-br { bottom: 4%; right: 4%; border-bottom: 5px solid var(--blue); border-right: 5px solid var(--blue); border-bottom-right-radius: 18px; }

.float-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .85rem; line-height: 1.3; }
.float-card small { color: var(--muted); font-size: .72rem; }
.fc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Инлайн-иконки (наследуют цвет текста) */
.ic { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.fc-1 { top: 7%; right: -2%; }
.fc-2 { bottom: 0; left: -1%; animation-delay: 2.5s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- Бегущая строка ---------- */
.marquee {
    background: var(--orange);
    color: #fff;
    overflow: hidden;
    padding-block: 14px;
    transform: rotate(-1deg) scale(1.02);
}
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    padding-right: 16px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding-block: 88px; }
.section-tint { background: var(--orange-tint); }
.section-blue { background: var(--blue-tint); }

/* ---------- Шаги ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 16px;
    counter-reset: step;
}
.step {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}
.step:hover { transform: translateY(-6px); }
.step-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--orange);
    opacity: .35;
}
.step h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.step p { font-size: .92rem; color: var(--muted); }

/* ---------- Сценарии (push-карточки) ---------- */
.scenarios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;
}
.push-card {
    background: var(--card);
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--orange);
}
.push-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.push-card p { font-size: .95rem; color: var(--muted); }

.scenarios-note {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: .95rem;
}
.scenarios-note-label { margin-right: 4px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: 0 3px 10px rgba(36, 25, 20, .07);
}
.chip .ic { color: var(--orange); }

/* ---------- Приватность ---------- */
.privacy-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}
.privacy-list { display: grid; gap: 22px; }
.privacy-list li {
    position: relative;
    padding-left: 38px;
    color: var(--muted);
}
.privacy-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--orange);
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
}
.privacy-list strong { color: var(--ink); display: block; margin-bottom: 2px; }

.sticker-stage {
    display: grid;
    place-items: center;
    padding: 48px;
    border-radius: var(--radius);
    background: radial-gradient(circle at 50% 38%, #fff 0%, var(--blue-tint) 70%, #d6f1fa 100%);
    box-shadow: var(--shadow);
}
.sticker-stage img {
    width: min(220px, 70%);
    filter: drop-shadow(0 16px 28px rgba(36, 25, 20, .22));
    transform: rotate(-3deg);
}
.privacy-photo figcaption { margin-top: 12px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Дизайны ---------- */
.designs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 16px;
    max-width: 720px;
}
.design-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .2s ease;
}
.design-card:hover { transform: translateY(-6px); }
.design-card img {
    height: 240px;
    width: auto;
    margin-inline: auto;
    object-fit: contain;
    border-radius: 12px;
}
.design-card figcaption { margin-top: 16px; font-size: .92rem; color: var(--muted); }

/* ---------- Приложение ---------- */
.app-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 56px;
    align-items: center;
}
.app-phone img { width: min(300px, 80%); margin-inline: auto; filter: drop-shadow(0 24px 36px rgba(36, 25, 20, .22)); }
.app-copy > p { color: var(--muted); max-width: 30em; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.store-badges img { transition: transform .15s ease; }
.store-badges a:hover img { transform: translateY(-3px); }
.app-tg { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.app-tg a { display: inline-flex; align-items: center; gap: 6px; color: #229ED9; font-weight: 600; vertical-align: bottom; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; }
.faq-item {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-item summary {
    position: relative;
    padding: 20px 56px 20px 24px;
    font-weight: 600;
    font-size: 1.02rem;
    transition: color .15s ease;
}
.faq-item summary:hover { color: var(--orange); }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    translate: 0 -50%;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--orange);
    transition: rotate .2s ease;
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item p { padding: 0 24px 22px; color: var(--muted); font-size: .96rem; }
.faq-item a { color: var(--orange); font-weight: 600; }

/* ---------- Финальный CTA ---------- */
.cta-final {
    position: relative;
    background: linear-gradient(135deg, var(--orange), #e8703f);
    color: #fff;
    text-align: center;
    padding-block: 88px;
    overflow: hidden;
}
.cta-final h2 { margin-bottom: 12px; }
.cta-final > .container > p { opacity: .9; font-size: 1.1rem; }
.cta-final .hero-cta { margin-top: 36px; }
.cta-final .qr-bracket.br-tl { border-color: rgba(255, 255, 255, .5); top: 28px; left: 28px; }
.cta-final .qr-bracket.br-br { border-color: rgba(255, 255, 255, .5); bottom: 28px; right: 28px; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #cdbfb7; padding-block: 36px; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer .logo img { filter: brightness(0) invert(1); opacity: .9; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }
.footer a { text-decoration: none; font-size: .9rem; transition: color .15s ease; }
.footer a:hover { color: #fff; }
.copyright { font-size: .85rem; opacity: .6; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1020px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; padding-block: 40px 64px; gap: 32px; }
    .hero-visual { order: -1; }
    .hero-sticker { width: min(220px, 60%); }
    .fc-1 { right: -4px; }
    .fc-2 { left: -4px; }
    .privacy-grid, .app-grid { grid-template-columns: 1fr; gap: 36px; }
    .app-phone { order: 2; }
    .nav { display: none; }
    .section { padding-block: 64px; }
}

@media (max-width: 560px) {
    .steps, .scenarios, .designs-grid { grid-template-columns: 1fr; }
    .hero-cta .btn { flex: 1 1 100%; }
    .float-card strong { font-size: .78rem; }
    .header-inner { gap: 16px; }
    .header-inner .btn { margin-left: auto; }
}
