/* ============================================
   Cars64 — style.css
   Современный CSS: custom props, clamp, grid
   ============================================ */

:root {
    --accent: #f47d32;
    --accent-light: #ff9a50;
    --accent-2: #ffb347;
    --accent-gradient: linear-gradient(135deg, #f47d32, #ffb347);
    --accent-glow: rgba(244, 125, 50, .2);
    --accent-shadow: 0 4px 24px rgba(244, 125, 50, .3);
    --bg: #141414;
    --bg-card: rgba(255, 255, 255, .04);
    --bg-elevated: rgba(255, 255, 255, .07);
    --bg-input: rgba(255, 255, 255, .06);
    --border: rgba(255, 255, 255, .1);
    --text: #e8e8e8;
    --text-2: #b0b0b0;
    --text-3: #777;
    --header-h: clamp(56px, 6vw, 80px);
    --pad: clamp(16px, 4vw, 40px);
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, .5);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, .5), 0 0 24px var(--accent-glow);
    --max: 1200px;
    --glass: saturate(180%) blur(14px);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: 'circe', 'Segoe UI', system-ui, Arial, sans-serif;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(244, 125, 50, .07), transparent),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: var(--header-h);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-light); }
ul, ol { padding-left: 1.5em; }
::selection { background: var(--accent); color: #000; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 5px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { filter: brightness(1.15); }

h1, h2 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    line-height: 1.25;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: .02em;
    margin: 2.5rem 0 1.5rem;
}

h3 {
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: .01em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
h3::before {
    content: "";
    width: 4px;
    height: 1.3em;
    background: var(--accent-gradient);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-gradient {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: var(--accent-shadow);
}
.btn-gradient:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(244, 125, 50, .45);
    filter: brightness(1.06);
}
.btn-gradient:active { transform: translateY(0); }

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    inset: 0 0 auto;
    height: var(--header-h);
    background: rgba(10, 10, 10, .85);
    -webkit-backdrop-filter: var(--glass);
    backdrop-filter: var(--glass);
    border-bottom: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad);
    gap: 1rem;
    z-index: 100;
}

.logo img { width: clamp(100px, 12vw, 160px); height: auto; }

.header-contacts {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 2px;
}

.header-phone {
    font-weight: 700;
    font-size: clamp(.8rem, 1.5vw, 1.05rem);
    color: #fff;
}
.header-phone:hover { color: var(--accent); }

.header-mail {
    font-size: clamp(.7rem, 1vw, .8rem);
    color: var(--text-3);
}

/* Nav */
.nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
}

.nav a {
    display: block;
    padding: 8px 14px;
    color: var(--accent);
    font-weight: 600;
    font-size: clamp(.85rem, 1.3vw, 1rem);
    border-radius: var(--radius);
    transition: background .2s, color .2s, transform .2s;
}
.nav a:hover { background: var(--accent-glow); color: #fff; transform: translateY(-1px); }
.nav a.active {
    background: var(--accent-glow);
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-close { display: none; }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    order: 3;
}
.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: .25s;
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero { width: 100%; }

.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    max-height: 500px;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 8s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}

/* Hero overlay + CTA */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 64px);
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.15) 100%);
    pointer-events: none;
}

.hero-cta {
    max-width: 640px;
    pointer-events: auto;
    animation: fadeUp .8s ease both;
    text-align: center;
}
.hero-cta h1 {
    background: none;
    -webkit-text-fill-color: #fff;
    text-align: center;
    margin: 0 0 .5rem;
    font-size: clamp(1.6rem, 5vw, 3rem);
    text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.hero-cta h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 12px auto 0;
}
.hero-cta p {
    color: #ddd;
    font-size: clamp(.9rem, 1.8vw, 1.15rem);
    margin-bottom: 1.4rem;
    text-shadow: 0 1px 8px rgba(0,0,0,.7);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 2px solid rgba(244, 125, 50, .7);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s, border-color .2s;
    opacity: .8;
}
.hero-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}
.hero-prev { left: 14px; }
.hero-next { right: 14px; }

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
    padding: 0;
}
.hero-dot:hover { transform: scale(1.3); }
.hero-dot.active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* ============================================
   LAYOUT
   ============================================ */

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

/* О сервисе */
.about-intro {
    display: grid;
    grid-template-columns: minmax(280px, 400px) 1fr;
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
    margin-bottom: 2rem;
}

.about-intro img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.about-intro img:hover { transform: scale(1.02); }

.about-intro p {
    color: var(--text-2);
    font-size: clamp(.9rem, 1.5vw, 1.05rem);
    text-align: justify;
}
.about-intro p + p { margin-top: .75rem; }

/* Преимущества */
.advantages {
    background: var(--bg-card);
    -webkit-backdrop-filter: var(--glass);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 40px);
    margin-bottom: 2rem;
}

.advantages ol {
    color: var(--text-2);
    font-size: clamp(.9rem, 1.4vw, 1rem);
}
.advantages li {
    margin-bottom: .75rem;
    line-height: 1.7;
    padding-left: .4em;
    position: relative;
}
.advantages li::marker {
    color: var(--accent);
    font-weight: 700;
}

/* ============================================
   CARDS (Услуги)
   ============================================ */

.card {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: clamp(16px, 2.5vw, 36px);
    margin-bottom: 2.5rem;
    align-items: start;
    background: var(--bg-card);
    -webkit-backdrop-filter: var(--glass);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2vw, 24px);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 125, 50, .35);
}

.card-reverse {
    grid-template-columns: 1fr minmax(260px, 380px);
}

.card > img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.card-body { min-width: 0; }

/* Таблицы */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(.78rem, 1.2vw, .95rem);
    min-width: 480px;
    font-variant-numeric: tabular-nums;
}

thead { background: var(--accent-gradient); color: #000; }

th {
    padding: 11px 14px;
    font-weight: 800;
    font-size: clamp(.7rem, 1vw, .85rem);
    white-space: nowrap;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}

td {
    padding: 9px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    color: var(--text);
}

tbody tr:nth-child(odd) { background: rgba(255,255,255,.02); }
tbody tr:nth-child(even) { background: rgba(255,255,255,.045); }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(244, 125, 50, .1); }
tbody tr:last-child td { border-bottom: none; }

tbody td:first-child {
    text-align: left;
    font-weight: 500;
    white-space: normal;
    min-width: 180px;
    color: var(--text-2);
}

/* Цены — акцентным цветом */
tbody td:not(:first-child) {
    color: var(--accent-light);
    font-weight: 700;
}

/* Список характеристик */
.features {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}
.features li {
    padding: 4px 0 4px 24px;
    position: relative;
    font-size: clamp(.85rem, 1.3vw, .95rem);
    color: var(--text-2);
}
.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Галерея в карточке */
.card-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius);
    margin-bottom: 0;
}
.card-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-gallery-slide.active { opacity: 1; z-index: 1; }
.card-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   О НАС
   ============================================ */

.about-text {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    -webkit-backdrop-filter: var(--glass);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 36px);
}
.about-text p {
    color: var(--text-2);
    font-size: clamp(.9rem, 1.4vw, 1.05rem);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text p:first-child::first-letter {
    color: var(--accent);
    font-size: 2.2em;
    font-weight: 800;
    float: left;
    line-height: .9;
    margin: .05em .1em 0 0;
}

/* ============================================
   КОНТАКТЫ
   ============================================ */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

.contacts-info {
    background: var(--bg-card);
    -webkit-backdrop-filter: var(--glass);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 32px);
}
.contacts-info p {
    margin-bottom: 1rem;
    color: var(--text-2);
    font-size: clamp(.9rem, 1.3vw, 1rem);
}
.contacts-info p:last-child { margin-bottom: 0; }
.contacts-info strong { color: #fff; display: block; margin-bottom: 2px; }
.contacts-info a { font-size: 1.2em; font-weight: 700; }

/* Форма */
.callback-form {
    background: var(--bg-card);
    -webkit-backdrop-filter: var(--glass);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 32px);
}

.callback-form label {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: 4px;
    color: var(--text-2);
}

.callback-form input,
.callback-form textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 1rem;
    background: var(--bg-input);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-family: inherit;
}
.callback-form input::placeholder,
.callback-form textarea::placeholder { color: var(--text-3); }
.callback-form input:focus,
.callback-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255,255,255,.08);
}
.callback-form textarea { resize: vertical; min-height: 80px; }

.callback-form button[type="submit"] {
    width: 100%;
    padding: 13px;
    font-size: 1.05rem;
    font-weight: 800;
    background: var(--accent-gradient);
    color: #000;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
    box-shadow: var(--accent-shadow);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.callback-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(244, 125, 50, .45);
    filter: brightness(1.06);
}
.callback-form button[type="submit"]:active { transform: translateY(0); }

.form-message {
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}
.form-message.success { color: #4caf50; }
.form-message.error { color: #f44336; }

/* Карта */
#map {
    width: 100%;
    height: 350px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: rgba(10, 10, 10, .9);
    border-top: 3px solid var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem var(--pad);
    margin-top: 3rem;
    text-align: center;
}
.footer p { color: var(--accent); font-size: .85rem; }
.footer a { color: var(--text-2); text-decoration: underline; }
.footer a:hover { color: var(--accent); }

/* ============================================
   POPUP
   ============================================ */

.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.popup.show { display: flex; }

.popup-content {
    background: var(--bg-elevated);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 340px;
    width: calc(100vw - 40px);
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .7), var(--accent-shadow);
    animation: fadeUp .3s ease both;
}

.popup-message { margin-bottom: 1rem; font-size: 1rem; }

.popup-ok {
    padding: 10px 40px;
    background: var(--accent-gradient);
    border: none;
    color: #000;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, filter .2s;
}
.popup-ok:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ============================================
   FAB — Позвонить (мобильные)
   ============================================ */

.fab {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #000;
    align-items: center;
    justify-content: center;
    box-shadow: var(--accent-shadow);
    animation: fabPulse 2.4s ease-in-out infinite;
}
.fab svg { width: 26px; height: 26px; }
.fab:hover { color: #000; transform: scale(1.08); }

@keyframes fabPulse {
    0%, 100% { box-shadow: var(--accent-shadow); }
    50%      { box-shadow: 0 4px 24px rgba(244,125,50,.3), 0 0 0 12px rgba(244,125,50,.12); }
}

/* ============================================
   SCROLL ANIMATIONS — fade-in
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Стаггер для дочерних карточек */
.fade-in .card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible .card {
    opacity: 1;
    transform: translateY(0);
}
.fade-in.visible .card:nth-child(2) { transition-delay: .1s; }
.fade-in.visible .card:nth-child(3) { transition-delay: .2s; }
.fade-in.visible .card:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
    .fade-in, .fade-in .card { opacity: 1; transform: none; transition: none; }
    .hero-slide img { animation: none; }
    .hero-cta { animation: none; }
    .fab { animation: none; }
    html { scroll-behavior: auto; }
}

/* ============================================
   СТАТИСТИКА / СЧЁТЧИКИ
   ============================================ */

.stats {
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.stat-item {
    background: var(--bg-card);
    -webkit-backdrop-filter: var(--glass);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 32px);
    text-align: center;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 125, 50, .35);
}

.stat-number {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.stat-suffix {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: clamp(.8rem, 1.2vw, .95rem);
    color: var(--text-2);
    line-height: 1.3;
}

/* ============================================
   ИКОНКИ В ЗАГОЛОВКАХ КАРТОЧЕК
   ============================================ */

.card-icon {
    width: 1.35em;
    height: 1.35em;
    flex-shrink: 0;
    color: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

/* ============================================
   РАЗДЕЛИТЕЛИ СЕКЦИЙ
   ============================================ */

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: clamp(1rem, 3vw, 2rem) auto;
    max-width: 400px;
    opacity: .5;
    border: none;
}

/* ============================================
   ОТЗЫВЫ
   ============================================ */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.review-card {
    background: var(--bg-card);
    -webkit-backdrop-filter: var(--glass);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 2.5vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 125, 50, .35);
}

.review-stars {
    color: var(--accent);
    font-size: 1.15rem;
    letter-spacing: 3px;
    text-shadow: 0 0 8px var(--accent-glow);
}

.review-text {
    color: var(--text-2);
    font-size: clamp(.88rem, 1.3vw, .95rem);
    line-height: 1.7;
    flex: 1;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #000;
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-author strong {
    display: block;
    color: #fff;
    font-size: .95rem;
}

.review-author span {
    color: var(--text-3);
    font-size: .8rem;
}

/* ============================================
   RIPPLE-ЭФФЕКТ
   ============================================ */

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    transform: scale(0);
    animation: rippleAnim .6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ============================================
   ТЕКСТУРА ФОНА
   ============================================ */

.advantages,
.stats,
.reviews-grid,
#about .about-text {
    position: relative;
}

.advantages::before,
.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: radial-gradient(rgba(244, 125, 50, .05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}
.advantages > *,
.stats > * { position: relative; z-index: 1; }

/* ============================================
   PRELOADER + PROGRESS BAR
   ============================================ */

#preloader img {
    animation: plPulse 1.4s ease-in-out infinite;
}
@keyframes plPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .7; transform: scale(1.04); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .burger { display: flex; }
    .header-contacts { order: 2; }
    .header-mail { display: none; }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100dvh;
        background: rgba(10, 10, 10, .96);
        -webkit-backdrop-filter: var(--glass);
        backdrop-filter: var(--glass);
        border-left: 3px solid var(--accent);
        z-index: 200;
        transition: right .35s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, .5);
        overflow-y: auto;
        padding-top: 1rem;
    }
    .nav.open { right: 0; }

    .nav ul { flex-direction: column; gap: 0; }
    .nav a {
        padding: 14px 24px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .nav-close {
        display: block;
        margin-left: auto;
        margin-right: 16px;
        background: none;
        border: none;
        color: var(--accent);
        font-size: 2.2rem;
        cursor: pointer;
        line-height: 1;
    }

    .about-intro { grid-template-columns: 1fr; }
    .card, .card-reverse { grid-template-columns: 1fr; }
    .card-reverse > :first-child { order: -1; }

    .fab { display: flex; }
}

@media (max-width: 600px) {
    .hero-slider { aspect-ratio: 4 / 3; max-height: 320px; }
    .hero-overlay { align-items: flex-end; padding-bottom: clamp(10px, 5vw, 20px); }
    .hero-arrow { width: 38px; height: 38px; font-size: 15px; }
    .hero-cta h1 { margin-bottom: .3rem; }
    .hero-cta h1::after { width: 56px; margin: 8px auto 0; }
    .hero-cta p { margin-bottom: .9rem; line-height: 1.4; }
    .hero-cta .btn { padding: 10px 24px; font-size: .9rem; }

    .contacts-grid { grid-template-columns: 1fr; }
    #map { height: 260px; }

    table { min-width: 420px; font-size: .8rem; }
    th { padding: 8px 10px; }
    td { padding: 7px 10px; }

    .fab { width: 52px; height: 52px; bottom: 12px; right: 12px; }
    .card-gallery { aspect-ratio: 4/3; }
}

/* ============================================
   Cars64 — Аркадная гонка
   ============================================ */
.race-lead {
    max-width: 720px;
    color: var(--text-2);
    margin: 0 auto 24px;
    text-align: center;
}

.race-wrap {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0d0d0d;
    box-shadow: var(--shadow);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: contain;
}

#raceCanvas {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
    cursor: pointer;
}

.race-hud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(0, 0, 0, .4);
    border-top: 1px solid var(--border);
    font-size: .95rem;
    color: var(--text-2);
}

.race-hud b {
    color: var(--accent);
}

.race-btn {
    background: var(--accent-gradient);
    color: #141414;
    border: none;
    padding: 9px 22px;
    border-radius: 22px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.race-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--accent-shadow);
}

.race-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, .85);
    text-align: center;
    padding: 20px;
    transition: opacity .3s;
}

.race-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.race-overlay-card {
    max-width: 460px;
}

.race-overlay-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--text);
}

.race-overlay-card p {
    color: var(--text-2);
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .race-hud {
        gap: 10px 14px;
        padding: 12px 14px;
        font-size: .88rem;
    }

    .race-overlay-card h3 {
        font-size: 1.35rem;
    }

    .race-btn {
        padding: 11px 24px;
    }
}

/* ============================================
   ДОСТУПНОСТЬ И ПОЛИРОВКА
   ============================================ */

/* Видимый фокус только при клавиатурной навигации */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Подсказка свайпа/скролла таблиц на мобильных */
.table-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

/* Фото услуг: лёгкий зум при наведении */
.card > img {
    transition: transform .4s ease, filter .4s ease;
}
.card:hover > img {
    transform: scale(1.04);
    filter: brightness(1.06);
}

/* Строки таблиц: аккуратнее ховер на тач-устройствах */
@media (hover: none) {
    tbody tr:hover { background: inherit; }
    .card:hover > img { transform: none; filter: none; }
}

/* Уважение к reduced-motion для счётчиков и ripple */
@media (prefers-reduced-motion: reduce) {
    .ripple-wave { display: none; }
}

/* ============================================
   DESIGN UPGRADE 2026-10 — polish layer
   Точечные улучшения поверх базовых стилей
   ============================================ */

/* — Типографика: заголовки секций с подчёркиванием и обводкой — */
h2 {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: .45em;
    filter: drop-shadow(0 2px 14px rgba(244, 125, 50, .25));
}
h2::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--accent-gradient);
    box-shadow: 0 2px 10px rgba(244, 125, 50, .5);
}
h2 + .container h2, .container > h2 { white-space: normal; }

/* — Hero: глубина и фокус на CTA — */
.hero-overlay {
    background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.25) 40%, rgba(10,10,10,.65) 100%);
}
.hero-cta .btn-gradient {
    padding: 16px 44px;
    font-size: 1.05rem;
    box-shadow: 0 4px 24px rgba(244, 125, 50, .35), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.hero-cta .btn-gradient::after {
    content: "→";
    display: inline-block;
    margin-left: 8px;
    transition: transform .25s;
}
.hero-cta .btn-gradient:hover::after { transform: translateX(5px); }

/* — Шапка: тонкая линия-градиент вместо сплошной — */
.header {
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 70%, transparent) 1;
}

/* — Навигация: активный вид и магия ховера — */
.nav a {
    position: relative;
    padding: 6px 10px;
    border-radius: 6px;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

/* — Карточки услуг: деликатный ховер-image — */
.card > img, .card-gallery {
    transition: transform .35s ease;
}
.card:hover > img, .card:hover .card-gallery { transform: scale(1.015); }

/* — Числа в таблицах цен: выравнивание и «пружинка» — */
tbody td:not(:first-child) { font-variant-numeric: tabular-nums; }

/* — Преимущества: сетка вместо списка на десктопе — */
@media (min-width: 900px) {
    .advantages ol {
        columns: 2;
        column-gap: clamp(24px, 4vw, 48px);
    }
    .advantages li { break-inside: avoid; }
}

/* — Статистика: бегущий блик — */
.stat-item { overflow: hidden; position: relative; }
.stat-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .7s ease;
}
.stat-item:hover::before { transform: translateX(100%); }

/* — Отзывы: цитата-кавычка — */
.review-card { position: relative; }
.review-card::before {
    content: "“";
    position: absolute;
    top: 6px; right: 18px;
    font-size: 4.5rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(244, 125, 50, .18);
    pointer-events: none;
}

/* — Кнопки: блик при ховере — */
.btn-gradient { position: relative; overflow: hidden; }
.btn-gradient::before {
    content: "";
    position: absolute;
    top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
}
.btn-gradient:hover::before { left: 130%; }

/* — Форма: фокус с акцентным кольцом — */
.callback-form input:focus,
.callback-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(244, 125, 50, .18);
}

/* — Футер: лёгкое свечение разделителя — */
.footer {
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(244,125,50,.4), transparent) 1;
}

/* — Скроллбар: акцентный ховер — */
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }

/* — Плавное появление карточек уже есть (fade-in); ускорим чуть — */
.fade-in { transition: opacity .6s ease, transform .6s ease; }

/* — Мелкая типографика: разрядка для надзаголовков-меток — */
.stat-label, th { letter-spacing: .08em; }
