/* style.css - Черный фон, красные акценты, белый текст */
:root {
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --black-lighter: #2a2a2a;
    --white: #ffffff;
    --white-dark: #f0f0f0;
    --red: #d00000;
    --red-dark: #a00000;
    --red-light: #ff4d4d;
    --gray: #888888;
    --gray-light: #333333;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

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

.wrapper {
    overflow: hidden;
    overflow-x: clip;
    background: var(--black);
}

/* Типографика */
.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--white);
    border-left: 6px solid var(--red);
    padding-left: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 800px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    background: transparent;
    text-align: center;
}

.btn--full {
    width: 100%;
}

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

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

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

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

.btn--large {
    padding: 18px 40px;
    font-size: 18px;
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
}

.btn--large:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn--small {
    padding: 8px 16px;
    font-size: 12px;
}

/* ШАПКА */
.header {
    background: var(--black-light);
    border-bottom: 1px solid var(--gray-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--white);
    text-transform: uppercase;
}

.logo__accent {
    font-weight: 800;
    color: var(--red);
}

.nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav__link:hover,
.nav__link.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

.header__badge {
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
    padding: 6px 12px;
    background: transparent;
    border: 2px solid var(--red);
}

/* HERO */
.hero {
    padding: 60px 0;
    background: var(--black);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.hero__subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hero__title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero__title span {
    color: var(--white);
    background: var(--red);
    padding: 0 12px;
    display: inline-block;
}

.hero__slogan {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero__features {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.feature__number {
    font-size: 32px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.feature__text {
    font-size: 14px;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 600;
}

.hero__location {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 10px 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    color: var(--white);
}

.hero__location strong {
    color: var(--red);
}

/* Правый блок в hero */
.discount-card {
    background: rgba(26, 26, 26, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 28px;
    margin-bottom: 18px;
    border-left: 6px solid var(--red);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.discount-card__percent {
    font-size: 64px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.discount-card__text {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.discount-card__note {
    font-size: 14px;
    color: var(--gray);
    border-top: 1px solid var(--gray-light);
    padding-top: 16px;
    margin-top: 8px;
}

.contact-card {
    background: rgba(26, 26, 26, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 4px solid var(--red);
    border-radius: 14px;
}

.contact-card__hours {
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.contact-card__phones {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-card__phone {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.contact-card__phone:hover {
    color: var(--red);
}

.contact-card__note {
    font-size: 12px;
    color: var(--gray);
    font-style: italic;
    margin-top: 16px;
    border-top: 1px solid var(--gray-light);
    padding-top: 16px;
}

/* Информационный блок */
.location-info {
    padding: 60px 0;
    background: var(--black-light);
}

.info-block {
    background: var(--black);
    border: 1px solid var(--gray-light);
    padding: 40px;
}

.info-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.info-block__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.info-block__col h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--red);
    border-bottom: 2px solid var(--red);
    padding-bottom: 8px;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 14px;
    color: var(--white);
}

.info-list li strong {
    color: var(--red);
}

.info-link {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.info-link:hover {
    text-decoration: underline;
}

/* Описание */
.description {
    padding: 60px 0;
    background: var(--black);
}

.description__card {
    background: var(--black-light);
    padding: 40px;
    border: 1px solid var(--gray-light);
    border-left: 6px solid var(--red);
}

.description__text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--white);
}

.description__actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Районы */
.districts {
    padding: 60px 0;
    background: var(--black-light);
}

.districts__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.districts__col {
    border: none;
}

.districts__col summary {
    list-style: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    cursor: default;
}

.districts__col summary::-webkit-details-marker {
    display: none;
}

.districts__col ul {
    list-style: none;
}

.districts__col li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray);
    border-bottom: 1px dotted var(--gray-light);
}

.districts__col li:hover {
    color: var(--red);
}

.districts__note {
    text-align: center;
    padding: 20px;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Транспорт */
.transport {
    padding: 60px 0;
    background: var(--black);
}

.transport__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.transport-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--black-light);
    border: 1px solid var(--gray-light);
    font-weight: 600;
    transition: all 0.2s;
    color: var(--white);
}

.transport-item:hover {
    border-color: var(--red);
    color: var(--red);
}

.transport-item__arrow {
    color: var(--red);
    font-size: 20px;
}

/* Цены */
.prices {
    padding: 60px 0;
    background: var(--black-light);
}

.prices__table {
    margin-bottom: 30px;
}

.price-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-light);
    background: var(--black);
    color: var(--white);
}

.price-row--header {
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    border-bottom: 3px solid var(--white);
}

.price-row__value {
    font-weight: 700;
    color: var(--red);
}

.prices__extra {
    background: var(--black);
    padding: 20px;
}

/* Калькулятор */
.calculator-section {
    padding: 60px 0;
    background: var(--black);
}

.calculator {
    background: var(--black-light);
    padding: 40px;
    border: 1px solid var(--gray-light);
    border-top: 4px solid var(--red);
}

.calculator__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 20px;
}

.calculator__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 8px;
}

.form__input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--gray-light);
    font-size: 16px;
    background: var(--black);
    color: var(--white);
}

.form__input:focus {
    outline: none;
    border-color: var(--red);
}

.form__input::placeholder {
    color: var(--gray);
}

/* Подсказки адресов (yandex_suggest.php) */
.address-suggest-wrap {
    position: relative;
    width: 100%;
}

.address-suggest-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 100;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--black);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.address-suggest-list li {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 15px;
    color: var(--white);
    line-height: 1.35;
}

.address-suggest-list li:hover {
    background: var(--black-light);
}

.result-price {
    color: var(--red);
    font-size: 24px;
    font-weight: 800;
}

/* Карта */
.map-section {
    padding: 60px 0;
    background: var(--black-light);
}

#map {
    width: 100%;
    height: 500px;
    border: 2px solid var(--red);
}

/* НАШИ РАБОТЫ (новый стиль) */
.works {
    padding: 60px 0;
    background: var(--black);
}

.works__grid--dark {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-card--dark {
    background: var(--black-light);
    border: 1px solid var(--gray-light);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.work-card--dark:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(208, 0, 0, 0.2);
}

.work-card--dark .work-card__image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.work-card--dark .work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-card--dark:hover .work-card__image img {
    transform: scale(1.05);
}

.work-card--dark .work-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.work-card--dark:hover .work-card__overlay {
    transform: translateY(0);
}

.work-card--dark .work-card__overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
}

.work-card--dark .work-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid var(--gray-light);
    background: var(--black);
}

.work-card--dark .work-card__footer span {
    color: var(--white);
    font-weight: 500;
}

.work-card--dark .work-card__date {
    color: var(--red);
    font-weight: 700;
}

/* Форма заказа */
.order {
    padding: 60px 0;
    background: var(--black-light);
}

.order__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form__checkbox {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.order__info {
    background: var(--black);
    padding: 30px;
    border-left: 4px solid var(--red);
}

.order__info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--red);
}

.order__info p {
    color: var(--gray);
    line-height: 1.6;
}

/* Отзывы */
.reviews {
    padding: 60px 0;
    background: var(--black);
}

/* Контакты */
.contacts-page {
    padding: 60px 0;
    background: var(--black-light);
}

.contacts__info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--white);
    border-left: 4px solid var(--red);
    padding-left: 15px;
}

.contact-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.contact-item strong {
    display: block;
    font-size: 16px;
    color: var(--red);
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    font-size: 16px;
    color: var(--white);
    text-decoration: none;
    line-height: 1.5;
}

.contact-item a:hover {
    color: var(--red);
}

.requisites {
    list-style: none;
    margin-top: 10px;
}

.requisites li {
    padding: 5px 0;
    font-size: 14px;
    color: var(--gray);
}

/* Футер */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
    border-top: 1px solid var(--gray-light);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    border-left: 4px solid var(--red);
    padding-left: 15px;
}

.footer__col p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.footer__col ul {
    list-style: none;
}

.footer__col li {
    margin-bottom: 12px;
}

.footer__col a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer__bottom {
    border-top: 1px solid var(--gray-light);
    padding-top: 30px;
}

.footer__callback {
    background: var(--black-light);
    color: var(--white);
    padding: 20px;
    margin-bottom: 30px;
}

.footer__callback span {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer__phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.footer__copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--gray);
}

.footer__payments {
    display: flex;
    gap: 20px;
    color: var(--gray);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero__grid,
    .order__grid,
    .info-block__grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }
    
    .districts__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .transport__grid,
    .works__grid--dark {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overscroll-behavior-x: none;
    }

    .hero__title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .districts__grid,
    .transport__grid,
    .works__grid--dark,
    .calculator__options-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator__tabs {
        flex-direction: column;
    }
    
    .calc-tab {
        width: 100%;
    }

    .districts__grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .districts__col {
        background: var(--black);
        border: 1px solid var(--gray-light);
        border-radius: 6px;
        padding: 12px 14px;
        width: 100%;
        overflow: hidden;
    }

    .districts__col summary {
        margin-bottom: 0;
        font-size: 15px;
        color: var(--red);
        cursor: pointer;
    }

    .districts__col ul {
        display: none;
        margin-top: 10px;
    }

    .districts__col[open] ul {
        display: block;
    }

    .districts__note {
        display: none;
    }
}
/* Стили для кнопки наверх */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(208, 0, 0, 0.3);
}

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

.scroll-top-btn:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(208, 0, 0, 0.4);
}

/* Стили для FAQ */
.faq {
    padding: 60px 0;
    background: var(--black-light);
}

.faq__container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--black);
    border: 1px solid var(--gray-light);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
    font-size: 16px;
    color: var(--white);
}

.faq-question:hover {
    background: var(--black-light);
}

.faq-icon {
    transition: transform 0.3s;
    color: var(--red);
    font-size: 18px;
}

.faq-answer {
    padding: 0 25px;
    background: var(--black-light);
    color: var(--gray);
    line-height: 1.6;
    font-size: 15px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

/* Когда ответ открыт, эти стили добавляются через JS */
.faq-answer[style*="display: block"] {
    padding: 20px 25px;
}

/* НОВЫЕ СТИЛИ ДЛЯ КАЛЬКУЛЯТОРА С РАССТОЯНИЕМ */

/* Строка с расстоянием */
.distance-row {
    background: var(--black-light);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid var(--gray-light);
    border-left: 4px solid var(--red);
}

.distance-row .form-label {
    display: inline-block;
    margin-right: 10px;
    color: var(--white);
    font-size: 16px;
}

#calc-distance {
    font-size: 24px;
    font-weight: 800;
    color: var(--red);
    margin: 0 5px;
}

/* Кнопка расчета расстояния */
.btn--secondary {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--red);
    padding: 14px 32px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

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

.btn--secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--gray);
}

.btn--secondary:disabled:hover {
    background: var(--black);
    color: var(--white);
}

/* Строки результатов */
/* Ошибки */
#calc-route-error {
    color: var(--red);
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(208, 0, 0, 0.1);
    border-left: 3px solid var(--red);
    display: none;
}

/* Анимация загрузки */
.btn--secondary.loading {
    position: relative;
    color: transparent;
}

.btn--secondary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid var(--white);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Обновленные стили для табов калькулятора */
.calc-tab {
    padding: 14px 28px;
    background: var(--black);
    border: 1px solid var(--gray-light);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-tab:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.calc-tab.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(208, 0, 0, 0.3);
}

/* Стили для детализации цены */
.calculator__result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--black);
    color: var(--white);
    font-weight: 600;
    margin: 10px 0;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
}

.calculator__result-row.total {
    background: var(--black);
    border: 2px solid var(--red);
}

.calculator__result-row.total .result-price {
    color: var(--red);
    font-size: 28px;
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
    .distance-row .form-label {
        display: block;
        margin-bottom: 10px;
    }
    
    #calc-distance {
        font-size: 20px;
    }
    
    .calculator__result-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .calculator__result-row.total {
        flex-direction: column;
    }
}

/* HERO background image (behind first screen content) */
.hero {
    position: relative;
    background-color: #000;
    background-image: url("images/joker3-Photoroom.png");
    background-repeat: no-repeat;
    background-position: 35% center;
    background-size: contain;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.calculator__options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.option-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: 0.3s ease;
    background: #d00000;
    color: #ffffff;
    border: 2px solid transparent;
}

.option-btn input {
    display: none;
}

.option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.option-btn:has(input:checked) {
    background: #555555;
    color: #ffffff;
}

/* ОТЗЫВЫ */

.reviews-slider{
display:flex;
align-items:center;
gap:20px;
}

.reviews-window{
overflow:hidden;
width:100%;
}

.reviews-track{
display:flex;
gap:20px;
transition:transform .4s ease;
}

.review-card{
flex: 0 0 calc((100% - 40px) / 3);
min-width: calc((100% - 40px) / 3);
max-width: calc((100% - 40px) / 3);
height:220px; /* одинаковая высота */
background:var(--black-light);
border:1px solid var(--gray-light);
padding:25px;
transition:.3s;

display:flex;
flex-direction:column;
justify-content:space-between; /* распределяет элементы */
}

.review-card:hover{
border-color:var(--red);
transform:translateY(-4px);
}

.review-stars{
color:var(--red);
font-size:18px;
margin-bottom:10px;
}

.review-card p{
font-size:14px;
color:var(--white);
line-height:1.5;

max-height:80px;      /* высота области текста */
overflow:hidden;
position:relative;
}

.review-author{
color:var(--gray);
font-size:13px;
margin-top:auto;
}

.reviews-arrow{
background:var(--black-light);
border:1px solid var(--gray-light);
color:var(--white);
width:45px;
height:45px;
cursor:pointer;
font-size:22px;
transition:.2s;
}

.reviews-arrow:hover{
background:var(--red);
border-color:var(--red);
}

.review-text{
display:block;
transform:translateY(0);
transition:transform 4s linear;
}

.review-card:hover .review-text{
transform:translateY(-50%);
}

/* ============================
   ОТЗЫВЫ — точки на мобильном
============================ */

.reviews-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .reviews-dots {
        display: flex;
    }

    .reviews-slider {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .reviews-window {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .reviews-track {
        flex-wrap: nowrap;
        gap: 0;
    }

    .review-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-right: 0 !important;
        height: auto !important;
        min-height: 220px;
    }

    .reviews-arrow {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        flex-shrink: 0;
    }
}