/* HEADER */
body {
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.97;
}

.dark-theme {
    background-color: rgba(0, 0, 0, 0.8);
}

.navbar-toggler {
    border: none;
    background: transparent;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255,255,255,0.7%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s;
}

.logo-text:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.brand-highlight {
    color: #ffc107;
    font-weight: 900;
}

.brand-sub {
    font-size: 0.9em;
    color: #adb5bd;
    font-style: italic;
    margin-left: 5px;
}

.call-button .btn {
    border-radius: 30px;
    font-weight: 500;
    padding: 6px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        margin-top: 1rem;
    }

    .nav {
        justify-content: center;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .call-button {
        align-self: center;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
}


.header__img {
  margin-right: 30px;
  border-right: 1px solid #eee;
  padding-right: 30px;
  height: 150px; /* Фиксированная высота логотипа */
  width: 300px;
}

.nav {
  gap: 15px; /* Отступ между пунктами меню */
}

/* Общие стили для темной темы */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
    min-height: 100vh;
}

/* Стили для логотипа */
.logo-link {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}


.logo-link:hover .header__img {
    transform: scale(1.05);
}

/* Стили навигации */
.nav-pills {
    gap: 10px;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Активная ссылка (Главная) */
.nav-link.active {
    background-color: #0d6efd !important;
    color: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Неактивные ссылки (О нас) */
.nav-link:not(.active) {
    background-color: transparent;
    color: #e0e0e0 !important;
    opacity: 0.8;
}

/* Эффект при наведении */
.nav-link:not(.active):hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Дополнительные стили контейнера */
.container {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Граница для header */
header {
    border-bottom-color: #333 !important;
}

/* Стили для футера */
.footer {
    background-color: #212529 !important;
    border-top: 1px solid #333;
}

.footer h5 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
}

.social-links i {
    font-size: 1.5rem;
    vertical-align: middle;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer .col-md-4 {
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Стили для текстового блока */
.hero-block {
    padding: 3rem 0;
    color: #e0e0e0;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative; /* нужно для оверлея */
    animation: fadeIn 1s ease-out;
}

/* Полупрозрачная тёмная маска */
.hero-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* тёмная маска поверх фона */
    z-index: 1;
}

/* Текст поверх маски */
.hero-block > * {
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    .hero-block::before {
        background: rgba(0,0,0,0.7);
    }
}

/* Для мобильных устройств — чтобы не глючил background-attachment */
@media (max-width: 768px) {
    .hero-block {
        background-attachment: scroll;
        background-position: center center;
    }
}

.hero-block h1 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.hero-block h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #ffc107;
}

.hero-block .lead {
    font-size: 1.5rem;
    color: #ffc107;
}

.about-text {
    background: rgba(33, 37, 41, 0.8);
    border-left: 3px solid #ffc107;
    position: relative;
}

.about-text::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    z-index: -1;
}

.features span {
    font-size: 1.1rem;
}

/* Анимация */
.hero-block {
    animation: fadeIn 1s ease-out;
}

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

/* Адаптация для мобильных */
@media (max-width: 992px) {
    .hero-block {
        text-align: center;
    }

    .hero-block h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-text {
        margin-top: 2rem;
    }
}
/* Стили для блока преимуществ */
.benefits-section {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255,193,7,0.1) 0%, transparent 50%);
    z-index: 0;
}

.section-header h2 {
    color: #ffc107;
    position: relative;
    display: inline-block;
}

.divider {
    width: 80px;
    height: 3px;
    background: #ffc107;
    margin-top: 15px;
}

.benefit-card {
    background: #252525;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 3px solid #ffc107;
    position: relative;
    z-index: 1;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,193,7,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: #ffc107;
}

.benefit-card h4 {
    color: #fff;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #adb5bd;
}

.why-us {
    background: rgba(33,37,41,0.8);
    border: 1px solid rgba(255,193,7,0.2);
}

.why-us h3 {
    color: #ffc107;
}

.why-us li {
    color: #e0e0e0;
    padding-left: 10px;
}

/* Анимации */
.benefit-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Задержки для анимации карточек */
.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .benefits-section {
        padding: 2rem 1rem;
    }

    .benefit-card {
        margin-bottom: 15px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}
/* Стили для таблиц цен блок about*/
.price-table {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.price-table h3 {
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
    display: inline-block;
}

.table-dark {
    background-color: #252525;
}

.table-primary {
    background-color: rgba(13, 110, 253, 0.2) !important;
}

.table-primary td {
    color: #121212;
    font-weight: bold;
}

.table-hover tbody tr:hover {
    background-color: #2c2c2c;
}

/* Карточки классов */
.car-classes .card {
    border: 1px solid #333;
    transition: transform 0.3s;
    height: 100%;
}

.car-classes .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.car-classes li {
    padding: 5px 0;
    border-bottom: 1px dashed #444;
}

/* Примечания */
.notes {
    border-left: 3px solid #ffc107;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .price-table {
        padding: 15px;
    }

    .table-responsive {
        font-size: 14px;
    }

    .car-classes .col-md-6 {
        margin-bottom: 15px;
    }
}
/* Стили для аккордеона */
.accordion-item {
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    transition: all 0.3s;
}

.accordion-button:not(.collapsed) {
    background-color: #252525 !important;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #ffc107;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffc107'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Иконки в заголовках */
.accordion-button i {
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Анимация раскрытия */
.accordion-collapse {
    transition: all 0.3s ease;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .accordion-button {
        padding: 12px 15px;
        font-size: 15px;
    }

    .accordion-body {
        padding: 15px;
    }
}
/* Стили для таблицы классов */
#carClassesTable {
    border-color: #444;
}

#carClassesTable th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #333;
    vertical-align: middle;
}

#carClassesTable td {
    vertical-align: middle;
    transition: all 0.2s ease;
}

#carClassesTable tr:hover td {
    background-color: #3a3a3a;
}

#brandSearch {
    background-color: #252525;
    color: white;
    border: 1px solid #ffc107;
}

#brandSearch:focus {
    background-color: #252525;
    color: white;
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.input-group-text {
    background-color: #252525;
    border: 1px solid #ffc107;
    color: #ffc107;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    #carClassesTable {
        font-size: 14px;
    }

    #carClassesTable th,
    #carClassesTable td {
        padding: 8px;
    }

    .display-4 {
        font-size: 2.2rem;
    }
}