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

:root {
  color-scheme: light dark;

    /* Базовые цвета (палитра) */
    --red-primary: #D42020;
    --red-dark: #A81818;
    --red-light: #FF3B3B;
    --red-glow: #FF2D2D;

    /* Нейтральные цвета (Светлая тема по умолчанию) */
    --white: #FFFFFF;
    --off-white: #F5F5F5;
    --light-gray: #E8E8E8;
    --mid-gray: #999999;
    --dark-gray: #333333;
    --black: #111111;
    --black-table: #111111;

    /* Специфичные элементы */
    --footer-bg: #1A1A1A;
    --footer-text: #AAAAAA;

    /* Эффекты */
    --shadow: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-sm: 8px;

    /* --- ПЕРЕМЕННЫЕ ТЕМЫ (СВЕТЛАЯ ПО УМОЛЧАНИЮ) --- */
    --bg-body: var(--white);
    --text-body: var(--dark-gray);
    --bg-card: var(--white);
    --border-color: var(--light-gray);
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    :root {
        /* Меняем нейтральные цвета для темной темы */
        --off-white: #2a2a2a;   /* Чуть светлее фона */
        --light-gray: #404040;  /* Границы */
        --mid-gray: #b0b0b0;    /* Второстепенный текст */
        --dark-gray: #e0e0e0;   /* Основной текст (был черным, стал светлым) */
        --black: #ffffff;       /* Заголовки (были черными, стали белыми) */

        /* Переопределяем переменные темы */
        --bg-body: #1c1c1c;     /* Фон страницы */
        --text-body: #e0e0e0;   /* Цвет текста страницы */
        --bg-card: #1e1e1e;     /* Фон карточек */
        --border-color: #333333;
        --menu-bg: #252525;

        /* Красный делаем чуть ярче для темного фона */
        --red-primary: #ff4c4c;
        --red-dark: #d42020;

        /* Тени для темной темы (более глубокие) */
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.7);
    }
}

/* Дополнительные стили для таблиц в темной теме */
@media (prefers-color-scheme: dark) {
    .pricing-table {
        border: 1px solid var(--border-color);
    }
    .pricing-table thead {
        background: #141414;
    }
    .pricing-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* ============================================
   BASE STYLES (ПРИМЕНЯЕМ ПЕРЕМЕННЫЕ)
   ============================================ */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;

    /* ИСПОЛЬЗУЕМ ТОЛЬКО ПЕРЕМЕННЫЕ ЗДЕСЬ */
    background-color: var(--bg-body);
    color: var(--text-body);

    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    /* Используем --black, который в темной теме станет белым */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Карточки и блоки должны использовать переменную фона */
.service-card,
.review-card,
.blog-card,
.library-card,
.visit-feature,
.modal,
.form-control,
.pricing-table,
.contact-info-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-body) !important;
}

/* Инпуты в формах */
.form-control {
    background-color: var(--bg-card);
    color: var(--text-body);
    border-color: var(--border-color);
}

.form-control:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 4px rgba(212, 32, 32, 0.2); /* Полупрозрачная тень */
}

/* Хедер */
.header {
    background-color: rgba(255, 255, 255, 0.97); /* Для светлой */
}

@media (prefers-color-scheme: dark) {
    .header {
        background-color: rgba(30, 30, 30, 0.95); /* Для темной */
        border-bottom: 1px solid var(--border-color);
    }
}

/* Футер остается темным всегда, но текст адаптируем */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes revPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 32, 32, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(212, 32, 32, 0); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--red-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 32, 32, 0.3);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 32, 32, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--red-primary);
}

.btn-outline-dark {
    background: transparent;
    color: var(--red-primary);
    border: 2px solid var(--red-primary);
}

.btn-outline-dark:hover {
    background: var(--red-primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--red-primary);
}

.btn-white:hover {
    background: var(--off-white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--mid-gray);
    font-size: 1.05rem;
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background: var(--off-white);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 30px rgba(0,0,0,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 90%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-shrink: 0;
    flex: 0 0 auto;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--black);
}

.logo-text span {
    color: var(--red-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    padding: 8px 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--dark-gray);
    border-radius: 8px;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--red-primary);
    background: rgba(212, 32, 32, 0.06);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::after {
    content: '▾';
    margin-left: 4px;
    font-size: 0.7rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--menu-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 8px;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.dropdown-menu a:hover {
    background: rgba(212, 32, 32, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-phone {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--black);
}

.header-phone:hover {
    color: var(--red-primary);
}

.header-cta {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger span {
    width: 26px;
    height: 3px;
    background: var(--black);
    border-radius: 3px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 80px 20px 30px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--black);
    border-bottom: 1px solid var(--light-gray);
}

.mobile-menu a:hover {
    color: var(--red-primary);
}

.mobile-menu .mobile-sub {
    padding-left: 20px;
}

.mobile-menu .mobile-sub a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.mobile-menu .mobile-phone {
    margin-top: 20px;
    padding: 20px 0;
    text-align: center;
}

.mobile-menu .mobile-phone a {
    font-size: 1.3rem;
    color: var(--red-primary);
    border: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1010 50%, #1a1a1a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s infinite ease-in-out;
}

.hero-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.hero-particle:nth-child(3) { top: 40%; left: 30%; animation-delay: 2s; width: 6px; height: 6px; }
.hero-particle:nth-child(4) { top: 80%; left: 60%; animation-delay: 3s; }
.hero-particle:nth-child(5) { top: 10%; left: 70%; animation-delay: 4s; width: 3px; height: 3px; }
.hero-particle:nth-child(6) { top: 70%; left: 20%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 32, 32, 0.15);
    border: 1px solid rgba(212, 32, 32, 0.3);
    color: var(--red-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    animation: slideUp 0.6s ease 0.2s both;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--red-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    animation: slideUp 0.6s ease 0.3s both;
}

.hero h1 span {
    color: var(--red-primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 550px;
    animation: slideUp 0.6s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: slideUp 0.6s ease 0.5s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    animation: slideUp 0.6s ease 0.6s both;
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--white);
}

.hero-stat-number span {
    color: var(--red-primary);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.hero-image {
    position: absolute;
    right: -50px;
    bottom: 0;
    width: 55%;
    max-width: 700px;
    z-index: 2;
    opacity: 0.15;
}

.hero-image svg {
    width: 100%;
    height: auto;
}

.hero-red-accent {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 50%, rgba(212, 32, 32, 0.12) 0%, transparent 70%);
    z-index: 1;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--red-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 32, 32, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(212, 32, 32, 0.1), rgba(212, 32, 32, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--red-primary);
    transform: scale(1.05);
}

.service-card:hover .service-icon svg {
    filter: brightness(10);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--mid-gray);
    line-height: 1.6;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--red-primary);
    font-weight: 600;
    font-size: 0.88rem;
    font-family: 'Montserrat', sans-serif;
}

.service-card .card-link:hover {
    gap: 10px;
}

/* Featured service card (Can-Am) */
.service-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #1a1a1a, #2d1010);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
}

.service-card.featured h3 {
    color: var(--white);
    font-size: 1.4rem;
}

.service-card.featured p {
    color: rgba(255,255,255,0.7);
}

.service-card.featured .service-icon {
    background: rgba(212, 32, 32, 0.2);
    flex-shrink: 0;
}

.service-card.featured:hover .service-icon {
    background: var(--red-primary);
}

.service-card.featured .card-link {
    color: var(--red-light);
}

.featured-badge {
    display: inline-block;
    background: var(--red-primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* ============================================
   ADVANTAGES
   ============================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
}

.advantage-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(212, 32, 32, 0.3);
}

.advantage-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.advantage-item p {
    font-size: 0.85rem;
    color: var(--mid-gray);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border-radius: var(--radius);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
}

.cta-banner .btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.review-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.review-source {
    font-size: 0.78rem;
    color: var(--mid-gray);
}

.review-stars {
    color: #FFB800;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.review-date {
    font-size: 0.78rem;
    color: var(--mid-gray);
    margin-top: 14px;
}

/* ============================================
   PRICING TABLE
   ============================================ */
.pricing-table {
    width: 100%;
    border-collapse: collapse; /* Оставляем как было */
    background: var(--bg-card); /* Используем переменную для темной темы */
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);

    /* ГЛАВНОЕ ИЗМЕНЕНИЕ: Фиксируем алгоритм раскладки */
    table-layout: fixed;
}

.pricing-table thead {
    background: var(--black-table);
    color: var(--white);
}

.pricing-table th {
    padding: 16px 24px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    /* Явно задаем ширину первой колонки */
    width: 70%;
}

/* Настройка второй колонки (Цена) */
.pricing-table th:nth-child(2),
.pricing-table td:nth-child(2) {
    width: 30%; /* Фиксируем ширину 30% для всех таблиц */
    text-align: right; /* Выравнивание по правому краю */
    /* Отступ у заголовка делаем обычным */
    padding-right: 24px;
}

.pricing-table th:nth-child(2) {
    padding-right: 100%; /* Или больше, если нужно больше воздуха */
}


.pricing-table td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    /* Убираем padding-right у самой ячейки, чтобы линия шла до края */
    padding-right: 24px; /* Возвращаем общий паддинг, но контролируем контент через span */
}

/* Стилизация содержимого ячейки цены (ваш span) */
.pricing-table .price span {
    display: inline-block;
    padding-right: 100%;
}

/* Обрезаем длинный текст услуг, чтобы не ломать верстку */
.pricing-table td:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pricing-table tbody tr:hover {
    background: rgba(212, 32, 32, 0.03);
}

.pricing-table .price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--red-primary);
    white-space: nowrap;
}

.pricing-category {
    margin-bottom: 40px;
}

.pricing-category h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid var(--red-primary);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    transition: var(--transition);
}

.contact-info-card:hover {
    background: rgba(212, 32, 32, 0.06);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--red-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 0.8rem;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-info-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.contact-map {
    width: 100%;
    height: 400px;
    background: var(--light-gray);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mid-gray);
    font-size: 1rem;
}

/* ============================================
   BLOG / LIBRARY
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2d1010, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.blog-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--red-primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-date {
    font-size: 0.78rem;
    color: var(--mid-gray);
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 0.88rem;
    color: var(--mid-gray);
    line-height: 1.6;
}

.blog-card-body .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--red-primary);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
}

/* ============================================
   PORTFOLIO / WORKS
   ============================================ */
.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.work-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #2d1010, #1a1a1a);
    cursor: pointer;
}

.work-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 40%, rgba(212, 32, 32, 0.9));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.work-overlay p {
    font-size: 0.8rem;
    opacity: 0.85;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    font-size: 2.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-section {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.form-group label .required {
    color: var(--red-primary);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark-gray);
}

.form-control:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 4px rgba(212, 32, 32, 0.1);
}

.form-control::placeholder {
    color: var(--mid-gray);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--mid-gray);
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--red-primary);
}

.form-checkbox a {
    color: var(--red-primary);
    text-decoration: underline;
}

/* ============================================
   VISIT REPAIR PAGE
   ============================================ */
.visit-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.visit-feature {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.visit-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.visit-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(212, 32, 32, 0.1), rgba(212, 32, 32, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.visit-feature h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.visit-feature p {
    font-size: 0.88rem;
    color: var(--mid-gray);
}

/* ============================================
   CAN-AM MAVERICK SPECIAL
   ============================================ */
.canam-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1010 100%);
    border-radius: var(--radius);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.canam-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 32, 32, 0.15), transparent);
    border-radius: 50%;
}

.canam-content {
    position: relative;
    z-index: 1;
}

.canam-content h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.canam-content h2 span {
    color: var(--red-primary);
}

.canam-content p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
    line-height: 1.7;
}

.canam-models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.canam-model-tag {
    background: rgba(212, 32, 32, 0.2);
    border: 1px solid rgba(212, 32, 32, 0.3);
    color: var(--red-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.canam-image {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canam-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 2px dashed rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 4rem;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1010 100%);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.page-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.breadcrumbs a {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.breadcrumbs a:hover {
    color: var(--red-light);
}

.breadcrumbs span {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

.breadcrumbs .current {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   CALLBACK MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--off-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--mid-gray);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--red-primary);
    color: var(--white);
}

.modal h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal > p {
    color: var(--mid-gray);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.privacy-content h3 {
    font-size: 1.15rem;
    margin-top: 28px;
    margin-bottom: 12px;
}

.privacy-content p {
    margin-bottom: 14px;
    line-height: 1.8;
    color: var(--dark-gray);
}

.privacy-content ul {
    margin: 12px 0 16px 24px;
    list-style: disc;
}

.privacy-content ul li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--dark-gray);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social:hover {
    background: var(--red-primary);
    color: var(--white);
}

.footer h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    font-size: 0.88rem;
    color: var(--footer-text);
}

.footer ul li a:hover {
    color: var(--red-light);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
}

.footer-contact-item .icon {
    color: var(--red-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: var(--footer-text);
}

.footer-bottom a:hover {
    color: var(--red-light);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--red-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(212, 32, 32, 0.3);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 32, 32, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .header-phone {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card.featured {
        grid-column: span 2;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .work-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .canam-section {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card.featured {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 28px;
    }

    .cta-content h3 {
        font-size: 1.4rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .visit-features {
        grid-template-columns: 1fr;
    }

    .canam-section {
        padding: 30px 20px;
    }

    .canam-content h2 {
        font-size: 1.5rem;
    }

    .modal {
        padding: 28px 20px;
    }

    .hero-image {
        display: none;
    }

    .hero-red-accent {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .work-item:nth-child(1) {
        grid-column: span 1;
    }

    .canam-models {
        justify-content: center;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-red { color: var(--red-primary); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.service-detail-content h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.service-detail-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.service-detail-content ul {
    margin: 16px 0;
}

.service-detail-content ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.service-detail-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--red-primary);
    border-radius: 50%;
}

.service-sidebar {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 100px;
}

.service-sidebar h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.service-sidebar ul li {
    margin-bottom: 8px;
}

.service-sidebar ul li a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--dark-gray);
    transition: var(--transition);
}

.service-sidebar ul li a:hover,
.service-sidebar ul li a.active {
    background: var(--red-primary);
    color: var(--white);
}

.service-sidebar .sidebar-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

@media (max-width: 768px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }
}

/* ============================================
   LIBRARY PAGE
   ============================================ */
.library-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.library-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.library-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.library-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(212, 32, 32, 0.1), rgba(212, 32, 32, 0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.library-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.library-card p {
    font-size: 0.85rem;
    color: var(--mid-gray);
    line-height: 1.5;
}

.library-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    color: var(--red-primary);
    font-weight: 600;
    font-size: 0.82rem;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .library-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ONLINE BOOKING PAGE
   ============================================ */
.booking-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-step-num {
    width: 36px;
    height: 36px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--mid-gray);
}

.booking-step.active .booking-step-num {
    background: var(--red-primary);
    color: var(--white);
}

.booking-step-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--mid-gray);
}

.booking-step.active .booking-step-text {
    color: var(--black);
}

@media (max-width: 768px) {
    .booking-steps {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ============================================
   ARTICLE / POST DETAILS
   ============================================ */
.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--mid-gray);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 40px;
    background: var(--light-gray); /* Placeholder color */
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body); /* Используем переменную для темной темы */
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--black);
}

.article-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--black);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--red-primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--mid-gray);
    background: var(--off-white);
    padding: 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

/* Sidebar for articles (optional) */
.article-sidebar {
    background: var(--off-white);
    padding: 24px;
    border-radius: var(--radius);
    position: sticky;
    top: 100px;
}

@media (max-width: 768px) {
    .article-image {
        height: 250px;
    }
    .article-content {
        font-size: 1rem;
    }
}

.mav {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FFD700, #DAA520);  /* Золотой градиент */
    color: #000;
    text-decoration: none;
    border-radius: 25px;  /* Закругленные углы */
    font-weight: bold;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.4),  /* Золотая тень */
        inset 0 1px 0 rgba(255,255,255,0.3);  /* Блик внутри */
    transition: all 0.3s ease;  /* Плавная анимация */
    border: 2px solid #FFD700;
}

.mav:hover {
    transform: translateY(-3px) scale(1.05);  /* Подъем и рост */
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.6),  /* Усиленное свечение */
        inset 0 1px 0 rgba(255,255,255,0.4);
    background: linear-gradient(135deg, #FFED4E, #FFB300);  /* Ярче на hover */
}

.mav::after {
    content: '★';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    color: #DAA520;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: sparkle 2s infinite;  /* Мерцание звездочки */
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--footer-bg); /* Темный фон как у футера */
    color: var(--footer-text);
    padding: 16px 0;
    z-index: 9999; /* Поверх всего */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.1);

    /* Анимация появления */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-content {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--red-light);
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-banner-text a:hover {
    color: var(--white);
}

.cookie-banner-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 10px 24px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }

    .cookie-banner-content {
        text-align: center;
    }

    .cookie-banner-btn {
        width: 100%;
    }

    .cookie-banner-text {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    }
}

/* ============================================
   MOBILE FIXES (< 481px)
   ============================================ */
@media (max-width: 480px) {

    /* 1. ГЛАВНАЯ: Центрирование статистики (Hero Stats) */
    .hero-stats {
        flex-direction: column; /* Оставляем столбик */
        align-items: center;    /* Центрируем по горизонтали */
        text-align: center;     /* Центрируем текст внутри блоков */
        gap: 20px;              /* Увеличиваем отступ между элементами для воздуха */
        width: 100%;            /* На всю ширину */
    }

    .hero-stat {
        width: 100%;            /* Блок на всю ширину контейнера */
        display: flex;
        flex-direction: column;
        align-items: center;    /* Центрируем число и подпись внутри блока */
    }

    /* 2. СТРАНИЦА ЦЕН: Центрирование кнопок в CTA баннере */
    /* Выбираем конкретный баннер на странице цен или общий класс, если он уникален */
    .cta-banner {
        /* Если кнопки уже в столбик благодаря flex-direction: column из общих стилей,
           нам нужно просто центрировать содержимое */
        align-items: center;
        text-align: center;
    }

    /* Принудительно центрируем кнопки, если они ведут себя странно */
    .cta-banner .btn,
    .cta-banner a.btn {
        width: 100%;            /* Кнопка на всю ширину контейнера баннера */
        max-width: 300px;       /* Но не шире 300px, чтобы не выглядела огромной */
        margin-left: auto;      /* Магия центрирования flex-элемента */
        margin-right: auto;     /* Магия центрирования flex-элемента */
        display: block;         /* Чтобы margin auto сработал корректно */
    }

    /* 3. ФУТЕР: Специфичная перестановка колонок */
    /*
       Структура футера обычно такая:
       1. Бренд (Мотопульс)
       2. Услуги
       3. Информация
       4. Контакты

       Нам нужно:
       Row 1: Бренд
       Row 2: Услуги + Информация (рядом)
       Row 3: Контакты
    */

    .footer-grid {
        display: grid;
        /* Создаем сетку из 2 колонок одинаковой ширины */
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* Распределяем элементы по ячейкам сетки */

    /* 1-й элемент (Бренд) - занимает обе колонки сверху */
    .footer-brand {
        grid-column: 1 / -1; /* От начала до конца */
        grid-row: 1;
        text-align: center; /* Опционально: центрируем лого и текст бренда */
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 20px;
    }

    /* 2-й элемент (Услуги) - левая колонка второго ряда */
    .footer:nth-child(2),
    .footer-grid > div:nth-of-type(2) {
        grid-column: 1;
        grid-row: 2;
    }

    /* 3-й элемент (Информация) - правая колонка второго ряда */
    .footer:nth-child(3),
    .footer-grid > div:nth-of-type(3) {
        grid-column: 2;
        grid-row: 2;
    }

    /* 4-й элемент (Контакты) - занимает обе колонки снизу */
    .footer:nth-child(4),
    .footer-grid > div:nth-of-type(4) {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 20px;
        text-align: center; /* Опционально: центрируем контакты */
    }
}

/* ============================================
   DARK MODE: BURGER MENU FIX
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Меняем цвет полосок бургера на светло-серый для видимости */
    .burger span {
        background: var(--red-primary); /* Светло-серый, почти белый */
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1); /* Легкое свечение для четкости */
    }

    /* При наведении делаем красным (акцент) */
    .burger:hover span {
        background: var(--red-primary);
        box-shadow: 0 0 8px rgba(212, 32, 32, 0.4);
    }

    /* Когда меню открыто (класс .active), тоже красный */
    .burger.active span {
        background: var(--red-primary);
        box-shadow: 0 0 8px rgba(212, 32, 32, 0.4);
    }

    /* Дополнительно: убедимся, что фон мобильного меню тоже корректен */
    .mobile-menu {
        background: #1a1a1a; /* Чуть светлее черного фона body, чтобы было видно разделение */
        border-left: 1px solid #333; /* Тонкая граница справа для эстетики */
    }
}

/* ============================================
   MOBILE DROPDOWN FIX
   ============================================ */
@media (max-width: 1024px) {
    /* Сбрасываем абсолютное позиционирование для мобильного меню */
    .mobile-menu .nav-dropdown {
        position: relative;
    }

    .mobile-menu .dropdown-menu {
        /* Делаем блок видимым и статичным, чтобы он раздвигал соседние элементы */
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        min-width: 100%;

        /* ГЛАВНОЕ ИСПРАВЛЕНИЕ: Явный фон */
        background-color: var(--bg-card); /* Или #ffffff для светлой, #1e1e1e для темной */

        /* Скрываем по умолчанию через высоту или display, но лучше max-height для анимации */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;

        /* Убираем лишние отступы у ссылок внутри, если они есть */
        border-radius: 0;
    }

    /* Когда добавляем класс .open через JS */
    .mobile-menu .nav-dropdown.open .dropdown-menu {
        max-height: 500px; /* Достаточно большое значение, чтобы вместить контент */
        margin-top: 10px;
        margin-bottom: 10px;
        border: 1px solid var(--border-color); /* Легкая рамка для красоты */
    }

    /* Стилизация ссылок внутри выпадающего списка на мобильном */
    .mobile-menu .dropdown-menu a {
        padding-left: 30px; /* Отступ слева, чтобы показать вложенность */
        font-size: 0.95rem;
        color: var(--mid-gray);
        border-bottom: 1px solid rgba(0,0,0,0.05); /* Разделитель для тем */
    }

    /* Исправление фона для темной темы specifically */
    @media (prefers-color-scheme: dark) {
        .mobile-menu .dropdown-menu {
            background-color: #252525; /* Чуть светлее основного фона меню */
        }
        .mobile-menu .dropdown-menu a {
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
    }
}