:root {
    /* Фірмовий колір «Червоний маркет» — пурпурний (magenta), як на вивісках. */
    --red: #ec0003;
    --red-dark: #c40000;
    --ink: #16181d;
    --muted: #5b6270;
    --line: #e7e9ee;
    --bg: #ffffff;
    --bg-muted: #f6f7f9;
    --bg-dark: #16181d;
    --radius: 18px;
    --shadow: 0 24px 60px -28px rgba(20, 24, 33, .35);
    --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.container.narrow { max-width: 820px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); }
h3 { font-size: 1.25rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
    cursor: pointer; border: 2px solid transparent; transition: .2s ease; white-space: nowrap;
}
.btn-sm { padding: .6rem 1.2rem; font-size: .92rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { border-color: var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn.full { width: 100%; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 600; font-size: .96rem; }
.site-nav a:not(.btn):hover { color: var(--red); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* Hero */
.hero { position: relative; color: #fff; display: flex; align-items: center; min-height: 86vh; padding: 7rem 0; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: var(--hero-image) 70% 30%/cover no-repeat; transform: scale(1.03);
}
/* Текст тримається в лівій колонці; права частина з вивіскою лишається відкритою (як на SPAR). */
.hero-overlay { position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(92deg, rgba(13,15,20,.93) 0%, rgba(13,15,20,.86) 34%, rgba(13,15,20,.45) 56%, rgba(13,15,20,.12) 74%, rgba(13,15,20,0) 88%); }
.hero-content { position: relative; z-index: 2; max-width: 600px; }
/* Текст притиснуто до лівого краю (як на SPAR), права частина з вивіскою відкрита. */
.hero .container.hero-content {
    margin-inline: 0;
    margin-left: clamp(1.25rem, 6vw, 7rem);
    width: min(600px, 90vw);
}
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: #ffa39e; margin-bottom: 1.1rem; }
.hero-lead { font-size: 1.2rem; color: rgba(255,255,255,.85); margin: 1.3rem 0 1.8rem; max-width: 640px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.hero-points li {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    padding: .5rem 1rem; border-radius: 999px; font-size: .92rem; font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Stats — тёмний графітовий фон, червоні цифри (спокійний premium-вид) */
.stats {
    background: linear-gradient(180deg, #181a20 0%, #0f1115 100%);
    color: #fff;
    border-block: 1px solid rgba(255,255,255,.06);
}
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; padding: 1.9rem 0; }
.stat { text-align: center; padding: .3rem 1rem; }
.stat:not(:first-child) { border-left: 1px solid rgba(255,255,255,.08); }
.stat strong { display: block; white-space: nowrap; font-size: clamp(1.35rem, .9rem + 1.1vw, 2rem); font-weight: 800; color: #ff3236; margin-bottom: .25rem; }
.stat span { font-size: .8rem; color: rgba(255,255,255,.58); }

/* Sections */
.section { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }
.section-muted { background: var(--bg-muted); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .kicker { color: #ffa39e; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.kicker { text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; font-weight: 700; color: var(--red); margin-bottom: .7rem; }
.lead-text { color: var(--muted); margin-top: 1rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 1.6rem; max-width: 760px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.quote { margin-top: 1.8rem; padding: 1.2rem 1.4rem; border-left: 4px solid var(--red); background: var(--bg-muted); border-radius: 0 12px 12px 0; }
.quote strong { display: block; }
.quote span { color: var(--muted); }
.section-dark .quote, .section-muted .quote { background: rgba(0,0,0,.04); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-num { color: var(--red); font-weight: 800; font-size: 1.1rem; }
.card h3 { margin: .6rem 0 .5rem; }
.card p { color: var(--muted); font-size: .96rem; }
.model-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.8rem; }
.model-card h3 { margin-bottom: 1rem; }
.model-row { font-size: .92rem; color: rgba(255,255,255,.78); margin-bottom: .6rem; }
.model-row b { color: #fff; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid figure { position: relative; border-radius: 14px; overflow: hidden; }
.gallery-grid figure.wide { grid-column: span 2; }
.gallery-grid img { height: 100%; min-height: 220px; object-fit: cover; transition: .4s; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
    position: absolute; left: 0; bottom: 0; right: 0; padding: 1rem;
    color: #fff; font-weight: 600; font-size: .92rem;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
}

/* Finance */
.finance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.finance-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.finance-card small { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--muted); }
.finance-card strong { display: block; font-size: 1.5rem; color: var(--red); margin: .35rem 0 .5rem; }
.finance-card span { font-size: .9rem; color: var(--muted); }

/* Formats */
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.format-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: 0 18px 44px -30px rgba(20,24,33,.3); transition: .25s; }
/* Будь-яка картка підсвічується при наведенні (червоне кільце + підняття). */
.format-card:hover { transform: translateY(-12px); border-color: var(--red); box-shadow: 0 0 0 2px var(--red), 0 28px 56px -26px rgba(236,0,3,.42); }
.format-card .badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: .35rem .8rem; border-radius: 999px; }
.format-media { aspect-ratio: 16/10; overflow: hidden; }
.format-media img { height: 100%; object-fit: cover; }
.format-body { padding: 1.6rem; }
.format-specs { margin: 1rem 0 1.1rem; display: grid; gap: .5rem; }
.format-specs > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .5rem; }
.format-specs dt { color: var(--muted); font-size: .85rem; }
.format-specs dd { font-weight: 700; font-size: .9rem; text-align: right; }
.format-body p { color: var(--muted); font-size: .94rem; margin-bottom: 1.2rem; }

/* Timeline */
.timeline { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2.4rem; }
.timeline li { counter-increment: step; position: relative; padding-left: 3.4rem; }
.timeline li::before {
    content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
    width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--red); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.timeline strong { display: block; margin-bottom: .2rem; }
.timeline span { color: var(--muted); font-size: .94rem; }

/* Conditions */
.conditions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.condition-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; }
.condition-card h3 { margin-bottom: 1rem; }
.condition-card ul { list-style: none; display: grid; gap: .7rem; }
.condition-card li { position: relative; padding-left: 1.7rem; color: var(--muted); }
.condition-card li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.finterms { margin-top: 2rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; }
.finterms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.finterm { border-left: 3px solid var(--red); padding-left: .9rem; }
.finterm small { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--muted); }
.finterm span { font-weight: 600; font-size: .94rem; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.6rem; }
.calc-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.calc-form label, .lead-form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.calc-form input, .lead-form input, .lead-form select, .lead-form textarea {
    font: inherit; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.calc-form input:focus, .lead-form :focus { outline: 2px solid var(--red); border-color: transparent; }
.calc-result { background: var(--bg-dark); color: #fff; border-radius: var(--radius); padding: 1.8rem; align-self: start; }
.calc-result > div { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-result strong { font-size: 1.3rem; color: #ff8a82; }
.calc-result .note { color: rgba(255,255,255,.6); border: 0; }

/* FAQ */
.faq-list { display: grid; gap: .8rem; }
.faq-list details { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.4rem; }
.faq-list summary { cursor: pointer; padding: 1.1rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::after { content: '+'; color: var(--red); font-weight: 800; font-size: 1.3rem; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list p { color: var(--muted); padding-bottom: 1.2rem; }

/* Lead */
.lead-section { background: var(--bg-muted); }
.lead-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.lead-form .full { grid-column: 1 / -1; }
.lead-form textarea { resize: vertical; }
.form-note { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.form-note.is-error { color: var(--red); }
.form-note.is-success { color: #1e7d46; font-weight: 600; }

/* Final CTA */
.final-cta { position: relative; color: #fff; text-align: center; padding: clamp(4rem, 2rem + 6vw, 7rem) 0; }
.final-cta::before { content: ''; position: absolute; inset: 0; background: var(--cta-image) center/cover no-repeat; }
.final-cta .container { position: relative; z-index: 2; max-width: 760px; }
.final-cta p { color: rgba(255,255,255,.85); margin: 1rem 0 1.8rem; font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 2.6rem 0; }
.footer-inner { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-inner img { height: 36px; width: auto; }
.footer-inner p { font-size: .88rem; flex: 1 1 240px; }
.footer-contacts { display: flex; flex-direction: column; gap: .3rem; margin-left: auto; text-align: right; }
.footer-contacts a { color: #fff; font-weight: 600; font-size: .95rem; }
.footer-contacts a:hover { color: var(--red); }

/* Sticky mobile CTA */
.sticky-cta { display: none; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
    background: var(--red); color: #fff; text-align: center; padding: 1rem; border-radius: 14px; font-weight: 700;
    box-shadow: 0 16px 40px -16px rgba(236,0,3,.7); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
    .card-grid, .finance-grid, .format-grid { grid-template-columns: repeat(2, 1fr); }
    .split, .calc, .conditions-grid, .timeline, .lead-form { grid-template-columns: 1fr; }
    .split-media { order: -1; }
}
@media (max-width: 720px) {
    .menu-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
        padding: 1.2rem 5%; gap: .4rem; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: .3s; box-shadow: var(--shadow);
    }
    .site-nav.is-open { transform: none; }
    .site-nav a { padding: .7rem 0; }
    .stats-grid, .card-grid, .finance-grid, .format-grid, .gallery-grid { grid-template-columns: 1fr; }
    .stat:not(:first-child) { border-left: none; }
    .gallery-grid figure.wide { grid-column: auto; }
    .calc-form { grid-template-columns: 1fr 1fr; }
    .sticky-cta { display: block; }
    .hero { min-height: auto; padding: 5rem 0; }
}
