/* style.css */
:root {
    --primary-color: #28a745; /* Зеленый цвет */
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --font-family-primary: 'Open Sans', sans-serif;
    --font-family-secondary: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-family-primary);
    padding-top: 56px; /* Высота фиксированной навигационной панели */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-secondary);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    margin-top: -56px; /* Компенсация для фиксированной навигации */
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Навигационная панель */
.navbar-brand strong {
    font-family: var(--font-family-secondary);
}

.navbar-brand span {
    color: var(--primary-color);
}

/* Кнопки */
.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover, .btn-success:focus {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-success:hover, .btn-outline-success:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Секции */
.benefits-section,
.diagnosis-section,
.insoles-section,
.process-section,
.testimonials-section,
.booking-section,
.contact-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Карточки */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icon i {
    background-color: rgba(40, 167, 69, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.step-number .badge {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(40, 167, 69, 0.9), rgba(40, 167, 69, 0.9)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1953&q=80') no-repeat center center;
    background-size: cover;
}

/* Форма */
#booking-form {
    margin-bottom: 80px;
}

/* Контакты */
.contact-section .card {
    height: 100%;
}

/* Футер */
.footer {
    margin-top: auto;
}

/* Мобильная адаптация */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .benefits-section,
    .diagnosis-section,
    .insoles-section,
    .process-section,
    .testimonials-section,
    .booking-section,
    .contact-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .cta-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Фиксированная кнопка CTA для мобильных */
    .fixed-bottom-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: var(--primary-color);
        padding: 10px;
        text-align: center;
        display: none; /* Скрыта по умолчанию, будет показываться через JS */
    }

    .fixed-bottom-cta a {
        color: white;
        text-decoration: none;
        font-weight: bold;
    }
}

/* Стили для FAQ аккордеона */
.accordion-button:not(.collapsed) {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}

.accordion-button:focus {
    border-color: var(--bs-accordion-btn-focus-border-color);
    box-shadow: 0 0 0 var(--bs-accordion-btn-focus-box-shadow);
}

/* Стили для счётчика */
.counter-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Стили для модальных окон */
.modal-content {
    border-radius: 10px;
}

/* Стили для рейтинга */
.rating {
    color: #ffc107;
}

/* Стили для табов */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    border-top: none;
    border-left: none;
    border-right: none;
}

.nav-tabs .nav-link {
    border: none;
    font-weight: 500;
}