/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --bg: #2a2e36;
    --bg-soft: #343944;
    --card: #3f4552;
    --border: #4a505c;
    --text: #f0f3f8;
    --muted: #b0b7c5;
    --accent: #E11D2E;
    --accent-2: #8B0F1A;
    --accent-rgb: 225, 29, 46;
    --radius: 16px;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
.accent { color: var(--accent); }

.gradient {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn--primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 10px 30px -10px var(--accent);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px var(--accent); }
.btn--outline { border-color: var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { color: var(--muted); font-weight: 500; }
.btn--ghost:hover { color: var(--accent); }
.btn--full { width: 100%; }

/* ===== ХЕДЕР ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 8px 0;
    transition: background .3s ease, border-color .3s ease;
    background: transparent;
}
.header.scrolled {
    background: rgba(42, 46, 54, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 40px;
}

.nav { display: flex; gap: 48px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; position: relative; }
.nav a::after {
    content: ''; position: absolute; bottom: -6px; left: 0;
    width: 0; height: 2px; background: var(--accent); transition: var(--transition);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__phone {
    font-size: 14px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===== ГЕРОЙ ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
}
.hero__glow {
    position: absolute;
    top: -200px;
    left: -300px;
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), .45), rgba(var(--accent-rgb), .15) 35%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 1100px; }

/* Логотип и заголовок в одну строку */
.hero__top {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 40px;
    animation: fadeUp .8s both;
}
.hero__logo-link {
    flex-shrink: 0;
    display: block;
}
.hero__logo {
    height: 200px;
    width: auto;
    display: block;
}

.hero__title {
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 900; line-height: 1.05;
    letter-spacing: -2px; margin-bottom: 0;
}
.hero__subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
    animation: fadeUp .8s .15s both;
}
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp .8s .3s both;
}
.hero__stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 70px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    animation: fadeUp .8s .4s both;
}
.stat__num { display: block; font-size: 34px; font-weight: 900; color: var(--accent); }
.stat__label { font-size: 14px; color: var(--muted); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== СЕКЦИИ ===== */
.section { padding: 110px 0; }
.section--dark { background: var(--bg-soft); }
.section__label {
    display: inline-block; color: var(--accent); font-weight: 600;
    font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px;
}
.section__title {
    font-size: clamp(30px, 4vw, 48px); font-weight: 900;
    letter-spacing: -1px; margin-bottom: 50px; text-align: center;
}
.section__title--left { text-align: left; }
.section__label + .section__title--left { text-align: left; }
#about .section__label { text-align: left; }

/* ===== СЕТКА ===== */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== КАРТОЧКИ УСЛУГ ===== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(140deg, rgba(var(--accent-rgb), .14), transparent 60%);
    opacity: 0; transition: var(--transition);
}
.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 24px 50px -24px rgba(var(--accent-rgb), .55);
}
.card:hover::before { opacity: 1; }
.card__icon { font-size: 40px; margin-bottom: 20px; position: relative; }
.card__title { font-size: 20px; margin-bottom: 12px; position: relative; }
.card__text { color: var(--muted); font-size: 15px; position: relative; }

/* ===== КАРТОЧКИ КАТЕГОРИЙ ===== */
.car-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition);
}
.car-card:hover { border-color: var(--accent); transform: translateY(-8px); }
.car-card__emoji { font-size: 60px; margin-bottom: 16px; transition: var(--transition); }
.car-card:hover .car-card__emoji { transform: scale(1.15) rotate(-5deg); }
.car-card h3 { font-size: 20px; margin-bottom: 6px; }
.car-card p { color: var(--muted); font-size: 14px; }

/* ===== О НАС ===== */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 24px; }
.checklist { list-style: none; }
.checklist li { padding: 10px 0 10px 34px; position: relative; color: var(--text); }
.checklist li::before {
    content: '✓'; position: absolute; left: 0; top: 10px;
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 700;
}
.about__visual { position: relative; height: 340px; display: grid; place-items: center; }
.about__ring {
    position: absolute; width: 280px; height: 280px; border-radius: 50%;
    border: 2px dashed var(--border);
    animation: spin 20s linear infinite;
}
.about__gear {
    font-size: 140px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: spin 12s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== КОНТАКТЫ ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact__item span {
    font-size: 22px; width: 48px; height: 48px; flex-shrink: 0;
    display: grid; place-items: center; border-radius: 12px;
    background: var(--card); border: 1px solid var(--border);
}
.contact__item b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.contact__item a, .contact__item p { font-size: 17px; font-weight: 600; }
.contact__item a:hover { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form input, .form textarea {
    width: 100%; padding: 16px 20px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; color: var(--text);
    font-family: inherit; font-size: 15px;
    transition: var(--transition); resize: vertical;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: .8; }
.form input:focus, .form textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25);
}
.form__status { font-size: 14px; text-align: center; min-height: 20px; }
.form__status.ok { color: #4ade80; }
.form__status.error { color: #ff6b7a; }

/* ===== ФУТЕР ===== */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer__inner { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.footer a:hover { color: var(--accent); }

/* ===== АНИМАЦИЯ ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .about, .contact { grid-template-columns: 1fr; }
    .about__visual { height: 240px; }
    .hero__top { gap: 32px; }
    .hero__logo { height: 160px; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed; inset: 0 0 0 auto; width: 260px;
        background: var(--bg-soft); flex-direction: column;
        padding: 100px 32px; gap: 24px;
        transform: translateX(100%); transition: var(--transition);
        border-left: 1px solid var(--border);
    }
    .nav.open { transform: translateX(0); }
    .header__phone { display: none; }
    .burger { display: flex; position: absolute; right: 0; }
    .header__inner { justify-content: flex-start; }

    .hero__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 28px;
    }
    .hero__logo { height: 120px; }
    .hero { padding: 40px 0 60px; }
    .nav { gap: 24px; }

    .hero__stats { gap: 28px; }
    .stat__num { font-size: 26px; }
    .grid--4 { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
}

/* ===== КЛИКАБЕЛЬНЫЕ КАРТОЧКИ ===== */
.section__hint {
    text-align: center; color: var(--muted); font-size: 15px;
    margin-top: -30px; margin-bottom: 40px;
}
.category-card { cursor: pointer; position: relative; user-select: none; }
.category-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.category-card__cta {
    display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600;
    color: var(--accent); opacity: 0; transform: translateY(6px); transition: var(--transition);
}
.category-card:hover .category-card__cta,
.category-card:focus-visible .category-card__cta { opacity: 1; transform: translateY(0); }

.form--highlight { animation: formPulse 1.2s ease-out; }
@keyframes formPulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); }
    100% { box-shadow: 0 0 0 24px rgba(var(--accent-rgb), 0); }
}

/* ===== HONEYPOT ===== */
.hp-field {
    position: absolute; left: -9999px; width: 1px; height: 1px;
    overflow: hidden; opacity: 0; pointer-events: none;
}

/* ===== ЧЕК-БОКС ===== */
.checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--muted); cursor: pointer; user-select: none;
    line-height: 1.5; margin-top: 6px;
}
.checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
    accent-color: var(--accent); cursor: pointer;
}
.checkbox-label a {
    color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}
.checkbox-label a:hover { color: var(--accent-2); }

/* ===== ФУТЕР — ССЫЛКИ ===== */
.footer__links { display: flex; gap: 24px; align-items: center; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--accent); }

/* ===== ПОЛИТИКА ===== */
.policy { padding: 120px 0 80px; min-height: 100vh; }
.policy__inner { max-width: 860px; margin: 0 auto; }
.policy__logo {
    height: 200px;
    width: auto;
    display: block;
    margin-bottom: 40px;
}
.policy__meta {
    color: var(--muted); font-size: 14px; margin-bottom: 40px;
    padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.policy h1 {
    font-size: clamp(28px, 4vw, 42px); font-weight: 900;
    letter-spacing: -1px; margin-bottom: 8px; line-height: 1.15;
}
.policy h2 { font-size: 22px; font-weight: 700; margin: 40px 0 16px; color: var(--text); }
.policy p { color: var(--muted); margin-bottom: 14px; font-size: 16px; line-height: 1.7; }
.policy b { color: var(--text); }
.policy ul { color: var(--muted); margin: 0 0 16px 0; padding-left: 24px; }
.policy ul li { margin-bottom: 8px; line-height: 1.7; }

@media (max-width: 768px) {
    .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
    .footer__links { flex-direction: column; gap: 10px; }
    .policy { padding: 100px 0 60px; }
    .policy__logo { height: 140px; margin-bottom: 28px; }
}

/* ===== COOKIE-БАННЕР ===== */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: rgba(52, 57, 68, .97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 18px 24px;
    animation: cookieSlideUp .5s ease-out;
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 24px;
    flex-wrap: wrap; justify-content: space-between;
}
.cookie-banner__text {
    color: var(--text); font-size: 14px; line-height: 1.5;
    margin: 0; flex: 1 1 400px;
}
.cookie-banner__text a {
    color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}
.cookie-banner__text a:hover { color: var(--accent-2); }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn--sm { padding: 10px 22px; font-size: 14px; }

@media (max-width: 640px) {
    .cookie-banner { padding: 16px; }
    .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 14px; }
    .cookie-banner__actions { justify-content: stretch; }
    .cookie-banner__actions .btn { flex: 1; }
}

/* ===== КНОПКИ В COOKIE-БАННЕРЕ — ОДИНАКОВЫЙ СТИЛЬ ===== */
.cookie-banner .btn--outline {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 10px 30px -10px var(--accent);
}
.cookie-banner .btn--outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -12px var(--accent);
    border-color: transparent;
}