/* css/style.css */

:root {
    --primary-dark: #0A2F44;
    --primary-medium: #1A5F7A;
    --primary-light: #2C7DA0;
    --accent-blue: #4A9FC1;
    --text-dark: #0A2F44;
    --text-light: #6B7B8E;
    --background-light: #FFFFFF;
    --background-off: #F8FAFC;
    --border-light: #E9EDF2;
    --shadow-sm: 0 4px 20px rgba(10, 47, 68, 0.08);
    --shadow-hover: 0 20px 30px rgba(10, 47, 68, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Адаптация прайс-листа для мобильных ===== */

/* Для главной страницы (блок .prices с карточками в grid) */
@media screen and (max-width: 768px) {
    /* Сетка прайса на главной */
    .prices div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    /* Карточки в ряд (иконка слева, текст справа) */
    .prices div[style*="display: flex; align-items: center; gap: 20px"] {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px !important;
    }
    .prices div[style*="width: 60px; height: 60px;"] {
        margin: 0 auto 10px !important;
    }
    .prices h3 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }
    .prices p[style*="font-size: 1.5rem"] {
        font-size: 1.3rem !important;
    }
}

/* Для страницы price.html */
@media screen and (max-width: 768px) {
    /* Консультационный блок */
    .consult-badge {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px !important;
    }
    .consult-price {
        font-size: 1.5rem !important;
        padding: 8px 20px !important;
        align-self: center !important;
    }
    /* Карточки услуг */
    .price-card {
        padding: 20px !important;
    }
    /* Заголовок + иконка */
    .price-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    .price-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
        margin: 0 auto !important;
    }
    .price-title {
        font-size: 1.2rem !important;
    }
    /* Строки с ценой (для операций) */
    .price-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 12px 0 !important;
    }
    .price-row span:last-child {
        margin-top: 5px !important;
        font-size: 1rem !important;
        padding: 5px 15px !important;
        background: rgba(26, 95, 122, 0.1) !important;
        border-radius: 20px !important;
        display: inline-block !important;
    }
    /* Сетка с генетическими тестами */
    .genetic-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .genetic-item {
        padding: 15px !important;
    }
    .genetic-item span:last-child {
        font-size: 1.2rem !important;
    }
    /* Сетка с описаниями процедур (ФДТ, PRP) */
    .desc-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    /* Кнопка записи */
    .btn-primary-custom {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px !important;
        font-size: 1rem !important;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media screen and (max-width: 480px) {
    .price-value {
        font-size: 1.3rem !important;
    }
    .price-row span:first-child {
        font-size: 0.95rem !important;
    }
    .price-row span:last-child {
        font-size: 0.95rem !important;
        padding: 4px 12px !important;
    }
    .consult-price {
        font-size: 1.3rem !important;
    }
    .section-header h2 {
        font-size: 1.8rem !important;
    }
}
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Типографика */
h1, h2, h3, h4 {
    font-weight: 300;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
}

/* Хедер */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 300;
    text-decoration: none;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    position: relative;
}

.logo-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary-medium);
    border-radius: 50%;
    margin-left: 2px;
    animation: pulse 2s infinite;
}

.nav-list {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-medium);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-medium);
}

/* Кнопки */
.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-dark);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    transition: var(--transition);
}

/* Hero секция */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

#instruments-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-accent {
    color: var(--primary-medium);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.hero-image:hover .hero-img {
    transform: scale(1.05);
}

/* Прайс секция */
.prices {
    padding: 100px 0;
    background: var(--background-off);
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.price-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.price-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.1), rgba(42, 125, 160, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-medium);
}

.price-info {
    flex: 1;
}

.price-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Новости и карусель */
.news {
    padding: 100px 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.news-card {
    min-width: calc(33.333% - 20px);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.news-date {
    font-size: 0.9rem;
    color: var(--primary-medium);
    margin-bottom: 16px;
    font-weight: 500;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-medium);
    gap: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: var(--shadow-hover);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-medium);
    width: 24px;
    border-radius: 4px;
}

/* FAQ секция */
.faq {
    padding: 100px 0;
    background: var(--background-off);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(26, 95, 122, 0.02);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-medium);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 24px 24px;
}

/* Футер */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .logo {
    color: white;
    font-size: 2rem;
}

.copyright {
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    margin-left: 12px;
}

.social-link:hover {
    background: var(--primary-medium);
    transform: translateY(-4px);
}

/* Страница "О нас" */
.page-banner {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7fc 100%);
}

.page-title {
    font-size: 3rem;
    margin: 0;
}

.team {
    padding: 60px 0 100px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.doctor-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.doctor-image {
    height: 400px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-card h3 {
    font-size: 1.8rem;
    margin: 24px 24px 8px;
}

.doctor-spec {
    color: var(--primary-medium);
    font-weight: 500;
    margin: 0 24px 4px;
    font-size: 1.1rem;
}

.doctor-exp {
    color: var(--text-light);
    margin: 0 24px 12px;
}

.doctor-desc {
    margin: 0 24px 24px;
    line-height: 1.6;
}

.doctor-diplomas {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diploma-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.diploma-icon:hover {
    background: rgba(26, 95, 122, 0.05);
}

.diploma-icon i {
    font-size: 1.5rem;
    color: var(--primary-medium);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-dark);
    color: white;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

/* Страница отзывов */
.reviews-grid-section {
    padding: 60px 0 100px;
}

.masonry-grid {
    columns: 3 300px;
    column-gap: 30px;
}

.review-card {
    break-inside: avoid;
    margin-bottom: 30px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.review-meta h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.review-stars {
    color: #FFB800;
}

.review-text {
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
}

.review-platforms {
    text-align: center;
    margin-top: 60px;
    padding: 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    border-radius: 24px;
    color: white;
}

.platforms-title {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.platform-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: white;
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.platform-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

/* Страница контактов */
.contacts-section {
    padding: 60px 0 100px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacts-info {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.info-title {
    font-size: 2rem;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-medium);
    width: 40px;
    height: 40px;
    background: rgba(26, 95, 122, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.info-item p,
.info-item a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.6;
}

.info-item a:hover {
    color: var(--primary-medium);
}

.btn-route {
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contacts-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    height: fit-content;
}

.contacts-map iframe {
    display: block;
}
/* Дополнительные стили для новых разделов */

/* Видео секция */
.video-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff, #f0f7ff);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}

.video-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* Шаги процесса */
.video-process-steps {
    margin-top: 60px;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-medium);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 15px;
}

.step h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Статистика на главной */
.hero-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Секции врачей */
.surgeon-about, .trichologist-about {
    padding: 80px 0;
}

.surgeon-grid, .trichologist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.surgeon-photo img, .trichologist-photo img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.surgeon-info h2, .trichologist-info h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.surgeon-title, .trichologist-title {
    font-size: 1.2rem;
    color: var(--primary-medium);
    margin-bottom: 20px;
}

.stats-mini {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--text-light);
    font-weight: 500;
}

.surgeon-bio, .trichologist-bio {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-dark);
}

.surgeon-education, .trichologist-education {
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
}

.surgeon-education h4, .trichologist-education h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.surgeon-education ul, .trichologist-education ul {
    list-style: none;
    padding: 0;
}

.surgeon-education li, .trichologist-education li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.surgeon-education li:last-child, .trichologist-education li:last-child {
    border-bottom: none;
}

/* Прайс-листы */
.tricho-prices {
    padding: 60px 0;
    background: var(--background-off);
}

.price-list {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.price-list h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.price-list h4 {
    margin: 25px 0 15px;
    color: var(--primary-medium);
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-light);
}

.price-item:last-child {
    border-bottom: none;
}

.price-value {
    font-weight: 600;
    color: var(--primary-dark);
}

.consultation-price {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
}

.consultation-price strong {
    color: var(--primary-medium);
    font-size: 1.5rem;
}

.procedure-description {
    margin-top: 30px;
    padding: 20px;
    background: #e6f2f9;
    border-radius: 12px;
}

/* Галерея работ */
.works-gallery {
    padding: 80px 0;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    background: white;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tab-btn.active {
    background: var(--primary-medium);
    color: white;
}

.gallery-content {
    display: none;
}

.gallery-content.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Фотоотзывы */
.photo-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.photo-review-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1/1;
}

.photo-review-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo-review-card:hover img {
    transform: scale(1.1);
}

.review-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 47, 68, 0.9), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-review-card:hover .review-overlay {
    transform: translateY(0);
}

.review-overlay p {
    margin-bottom: 5px;
    font-style: italic;
}

.review-overlay span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Статистика платформ */
.platform-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.platform-stats .stat {
    text-align: center;
}

/* Адаптивность для новых блоков */
@media (max-width: 768px) {
    .surgeon-grid, .trichologist-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .gallery-tabs {
        flex-wrap: wrap;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .platform-stats {
        flex-direction: column;
        gap: 20px;
    }
}
/* ===== FAQ без JavaScript ===== */

/* Вариант 1: Стили для тега <details> */
.faq-container-native {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item-native {
    margin-bottom: 16px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(10, 47, 68, 0.08);
    overflow: hidden;
    border: 1px solid #e9edf2;
    transition: all 0.3s ease;
}

.faq-item-native:hover {
    box-shadow: 0 10px 25px rgba(10, 47, 68, 0.15);
}

.faq-question-native {
    padding: 20px 24px;
    font-weight: 500;
    font-size: 1.1rem;
    color: #0A2F44;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Убираем стандартный маркер */
}

.faq-question-native::-webkit-details-marker {
    display: none; /* Скрываем стандартную стрелку в Chrome/Safari */
}

.faq-icon {
    font-size: 0.8rem;
    color: #1A5F7A;
    transition: transform 0.3s ease;
}

details[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer-native {
    padding: 0 24px 24px 24px;
    color: #6B7B8E;
    line-height: 1.7;
    border-top: 1px solid #e9edf2;
    margin-top: 0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Вариант 2: Стили для чекбоксов ===== */

.faq-container-checkbox {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item-checkbox {
    margin-bottom: 16px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(10, 47, 68, 0.08);
    overflow: hidden;
    border: 1px solid #e9edf2;
}

.faq-checkbox {
    display: none; /* Прячем чекбокс */
}

.faq-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-weight: 500;
    font-size: 1.1rem;
    color: #0A2F44;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-label:hover {
    background-color: #f8fafc;
}

.faq-arrow {
    color: #1A5F7A;
    transition: transform 0.3s ease;
}

/* Когда чекбокс отмечен, поворачиваем стрелку */
.faq-checkbox:checked + .faq-label .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer-checkbox {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    color: #6B7B8E;
    line-height: 1.7;
    transition: all 0.3s ease;
    border-top: 0 solid transparent;
}

/* Когда чекбокс отмечен, показываем ответ */
.faq-checkbox:checked ~ .faq-answer-checkbox {
    max-height: 500px; /* Достаточно большое значение */
    padding: 0 24px 24px 24px;
    border-top: 1px solid #e9edf2;
}

/* Стили для списков внутри ответов */
.faq-answer-checkbox ul,
.faq-answer-native ul {
    margin: 10px 0 10px 20px;
}

.faq-answer-checkbox li,
.faq-answer-native li {
    margin-bottom: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-question-native,
    .faq-label {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .faq-answer-native,
    .faq-checkbox:checked ~ .faq-answer-checkbox {
        padding: 0 20px 20px 20px;
    }
}

/* Анимация для открытия */
details[open] .faq-question-native {
    border-bottom: 1px solid #e9edf2;
}

/* Стили для заголовков внутри FAQ */
.faq-answer-native strong,
.faq-answer-checkbox strong {
    color: #0A2F44;
}
/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
@media screen and (max-width: 768px) {
    /* Показываем кнопку бургер */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: 15px;
        z-index: 1001;
    }
    
    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: #0A2F44;
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }
    
    /* Скрываем обычное меню */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 1000;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Показываем меню при активном классе */
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    /* Анимация бургера при открытом меню */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}