* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.header-top,
.header-main,
.nav,
.nav-link,
.nav-logo--compact {
    transition: all 0.3s ease;
}

/* Header Styles */
/* Класс для скрытия верхней части шапки */
.header.hide-top .header-top,
.header.hide-top .header-main {
    display: none;
}

.header-top,
.header-main {
    transition: height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    overflow: hidden; /* чтобы содержимое не вылезало при уменьшении высоты */
}

/* Обычное состояние (высоты задайте фактические, как в вашей вёрстке) */



/* Компактное состояние – обнуляем высоту и скрываем */


/* Навигация при компактном режиме может оставаться без изменений,
   но если нужно добавить тень или отступы – сделайте это здесь */
.header-compact .nav {
    /* опционально */
}

.header {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-top {
    height: 28px;
    background: #EFEFF0;
    padding: 5px 0;
}

.header-top-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-compact .header-top,
.header-compact .header-main {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0;
    display: none;
}

.header-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.header-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition-smooth);
    opacity: 0.9;
    color: var(--text-dark);
}

.header-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.header-contact {
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.header-contact a {
    color: var(--white);
    text-decoration: none;
    margin-left: 8px;
    color: var(--text-dark);
}

.header-main {
    height: 92px;
    padding: 20px 24px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 800;
    font-family: "Playfair Display", serif;
    white-space: nowrap;
}

.logo-accent {
    color: var(--primary-red);
}

.search-container {
    flex: 1;
    max-width: 500px;
    min-width: 200px;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    border: 2px solid var(--medium-grey);
    border-radius: 50px;
    font-size: 15px;
    font-family: "Manrope", sans-serif;
    transition: var(--transition-smooth);
    background: var(--light-grey);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--white);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.15);
}

.search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-red);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: var(--dark-red);
    transform: translateY(-50%) scale(1.05);
}

.search-icon {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    fill: none;
}

.header-cta {
    background: var(--primary-red);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
}

.header-cta:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}





/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--light-grey);
    transition: box-shadow 0.2s;
    border-top: 1px solid var(--medium-grey);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 16px 24px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* ===== SCROLLED HEADER (COMPACT) ===== */
/* При скролле скрываем верхнюю и основную части */
.header.scrolled .header-top,
.header.scrolled .header-main {
    display: none;
}

/* Навигация при скролле получает тень и фиксированную позицию */
.header.scrolled .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-medium);
    z-index: 1001;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Компактный логотип в nav по умолчанию скрыт */
.nav-logo--compact {
    display: none;
    align-items: center;
    margin-right: 24px;
}

/* При скролле показываем компактный логотип */
.header.scrolled .nav-logo--compact {
    display: flex;
}

/* Уменьшаем отступы в nav для экономии высоты */
.header.scrolled .nav-link {
    padding: 12px 16px;
    font-size: 14px;
}

/* Уменьшаем шрифты в header-top при скролле, если он ещё виден (на случай, если не скрыт полностью) */
.header.scrolled .header-top {
    font-size: 10px;
    padding: 2px 0;
}

.header.scrolled .header-top .header-contact,
.header.scrolled .header-top .header-links a {
    font-size: 10px;
}

/* ===== MOBILE MENU IMPROVEMENTS ===== */

/* Бургер-кнопка — всегда сверху */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Анимация бургера в крестик при открытом меню */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Навигация в мобильной версии — скрыта по умолчанию, появляется сверху */
@media (max-width: 768px) {
    .nav {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-medium);
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-content {
        flex-direction: column;
        padding: 0;
    }
    
    .nav-link {
        display: block;
        padding: 16px 24px;
        font-size: 18px;
        border-bottom: 1px solid var(--medium-grey);
    }
    
    .nav-link::after {
        display: none; /* Убираем подчёркивание */
    }
    
    /* Компактный логотип внутри мобильного меню (если нужно) */
    .nav-logo--compact {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        padding: 10px;
    }
    
    /* Затемнение фона при открытом меню */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Блокируем скролл body при открытом меню */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .nav-logo--compact {
        margin: 20px auto 0;
        justify-content: center;
    }
}

/* ========== FULL RESPONSIVE OVERHAUL ========== */
/* Базовые медиа-запросы: планшеты (до 1024px) и мобильные (до 768px, до 480px) */

/* Планшеты и небольшие ноутбуки */
@media (max-width: 1024px) {
    /* Отступы секций */
    .hero, .services, .why-choose, .doctors, .cta, .news, .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Сетки */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .why-choose__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .documents-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .doctors-row {
        gap: 20px;
    }

    /* Хлебные крошки */
    .breadcrumbs {
        margin-bottom: 30px;
    }

    /* Заголовки */
    .section-title, .hero-text h1, .documents-header h1 {
        font-size: 40px;
    }

    /* Контакты: карта и форма */
    .contacts-grid {
        gap: 40px;
    }
}

/* Мобильные устройства (горизонтальные и вертикальные) */
@media (max-width: 768px) {
    /* Универсальные отступы */
    body {
        overflow-x: hidden;
    }

    .container, .header-main, .nav-content, .footer-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Шапка и навигация (уже частично есть, но дополним) */
    .header-main {
        flex-wrap: wrap;
        gap: 16px;
        padding: 12px 16px;
    }

    .logo img {
        width: 60% !important; /* уменьшаем логотип */
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .header-cta {
        padding: 10px 20px;
        font-size: 14px;
        margin-left: auto;
    }

    /* Hero-блоки */
    .hero {
        padding: 40px 16px 60px;
    }

    .hero-text h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    /* Секции */
    .services, .why-choose, .doctors, .cta, .news, .footer {
        padding: 60px 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Сетки - везде 1 колонка */
    .services-grid,
    .why-choose__grid,
    .news-grid,
    .documents-grid,
    .doctors-row,
    .prices-section .price-category {
        grid-template-columns: 1fr;
    }

    /* Карточки услуг */
    .service-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        height: auto;
    }

    .service-icon {
        margin-bottom: 12px;
    }

    /* Карточки врачей (на главной) */
    .doctor-card {
        margin: 0;
    }

    /* Блок "Почему мы" */
    .why-choose__item {
        padding: 24px 20px;
        max-height: none;
    }

    .why-choose__item.image-item--large {
        grid-column: span 1;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* Таблица цен */
    .price-category {
        padding: 20px;
    }

    .price-table-header {
        display: none;
    }

    .price-table-row {
        display: flex;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--medium-grey);
    }

    .price-table-col {
        padding: 6px 0;
        border: none !important;
    }

    .code-col::before {
        content: "Код: ";
        font-weight: 600;
        display: inline-block;
        width: 80px;
    }

    .name-col::before {
        content: "Услуга: ";
        font-weight: 600;
        display: inline-block;
        width: 80px;
    }

    .price-col::before {
        content: "Цена: ";
        font-weight: 600;
        display: inline-block;
        width: 80px;
    }

    .price-col {
        justify-content: flex-start;
    }

    /* Контакты */
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    /* Формы */
    .cta-form {
        flex-direction: column;
    }

    .cta-input, .cta-button {
        width: 100%;
    }

    .appointment-container {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Футер */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-section ul {
        text-align: center;
    }

    /* Новости */
    .news-card {
        margin-bottom: 0;
    }

    .news-title {
        font-size: 18px;
    }

    /* Пагинация */
    .pagination {
        gap: 8px;
    }

    .pagination__link {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        padding: 0 8px;
    }

    /* Аккордеон FAQ */
    .faq-question {
        padding: 1rem;
    }

    .question-text {
        font-size: 0.95rem;
    }

    .faq-answer {
        margin-left: 1.5rem;
        padding-right: 1rem;
    }

    /* Отзывы (слайдер) */
    .reviews {
        padding: 24px 16px;
    }

    .reviews-header h2 {
        font-size: 28px;
    }

    .review-card {
        flex: 0 0 280px;
        padding: 20px;
    }

    /* Этапы имплантации */
    .step-stage {
        padding: 20px;
    }

    .stage-items {
        gap: 20px;
        justify-content: center;
    }

    .stage-item {
        min-width: 70px;
    }

    .stage-img {
        width: 50px;
        height: 50px;
    }

    .stage-item span {
        font-size: 12px;
    }

    .stage-total {
        font-size: 16px;
        border-left: none;
        padding-left: 0;
        text-align: center;
        margin-top: 16px;
    }

    .total-block {
        padding: 20px;
    }

    /* Блок контактной формы (главная) */
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-form-left, .contact-form-right {
        padding: 32px 24px;
    }

    .primary-form-title {
        font-size: 24px;
        text-align: center;
    }

    .laptop-image {
        display: none;
    }

    /* Модальное окно */
    .modal-container {
        padding: 32px 20px;
        width: 95%;
    }

    .modal-title {
        font-size: 24px;
    }

    /* Документы */
    .documents-header h1 {
        font-size: 32px;
    }
}

/* Очень маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .header-main {
        gap: 10px;
    }


    .header-cta {
        padding: 8px 16px;
        font-size: 12px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-card {
        padding: 16px;
    }

    .service-title {
        font-size: 16px;
    }

    .doctor-name {
        font-size: 18px;
    }

    .doctor-specialty {
        font-size: 14px;
    }

    .doctor-appoint-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .price-category-title {
        font-size: 20px;
    }

    .price-category-badge {
        font-size: 12px;
        padding: 4px 12px;
    }

    .breadcrumbs {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .news-date {
        font-size: 12px;
    }

    .news-title {
        font-size: 16px;
    }

    .news-excerpt {
        font-size: 14px;
    }

    .pagination__link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 16px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .footer-section li, .footer-section a {
        font-size: 13px;
    }

    /* Кнопки в карточках врача */
    .doctor-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .doctor-appoint-btn, .doctor-detail-link {
        justify-content: center;
    }

    /* Этапы имплантации */
    .stage-title {
        font-size: 20px;
    }

    .stage-items {
        gap: 12px;
    }

    .stage-img {
        width: 40px;
        height: 40px;
    }

    .total-sum {
        font-size: 18px;
    }

    .total-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Исправление для планшетов в портретной ориентации */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctors-row {
        grid-template-columns: 1fr;
    }
}

/* ===== ОТМЕНА КОМПАКТНОГО РЕЖИМА НА МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    /* Запрещаем скрывать верхнюю и основную части шапки */
    .header.scrolled .header-top,
    .header.scrolled .header-main {
        display: flex !important;  /* или block, в зависимости от вашей вёрстки */
    }
    
    /* Убираем фиксацию навигации на мобильных */
    .header.scrolled .nav {
        position: static !important;
        box-shadow: none !important;
        animation: none !important;
    }
    
    /* Скрываем компактный логотип на мобильных (он не нужен) */
    .nav-logo--compact {
        display: none !important;
    }
    
    /* Возвращаем стандартные отступы и шрифты навигации */
    .header.scrolled .nav-link {
        padding: 16px 24px !important;
        font-size: 18px !important;
    }
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-grey) 0%, var(--white) 100%);
    padding: 80px 24px 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: "Playfair Display", serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-text h1 .highlight {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 400;
}









.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}







.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
}

/* Services Section */


.section-header {
    max-width: 1400px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
/*    text-align: left;*/
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}









.service-card:hover .service-icon svg {
    fill: var(--white);
}





/* Why Choose Us */
.why-choose {
    padding: 40px 24px;
    background: var(--light-grey);
}

.why-choose__container {
    max-width: 1400px;
    margin: 0 auto;
}

.why-choose__header {
    text-align: center;
    margin-bottom: 30px;
}

.why-choose__header .section-title {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.why-choose__header .section-subtitle {
    font-size: 24px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.why-choose__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-choose__item {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    transition: var(--transition-smooth);
    border: 2px solid var(--medium-grey);
    max-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-choose__item:hover {
    border-color: var(--primary-red);
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.why-choose__item.text-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.3;
}

.why-choose__item.text-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.why-choose__item.image-item {
    padding: 0;
    overflow: hidden;
    background: var(--medium-grey);
    border: 2px solid var(--medium-grey);
}

.why-choose__item.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.why-choose__item.image-item:hover img {
    transform: scale(1.05);
}

/* Класс для больших картинок, занимающих 2 колонки */
.why-choose__item.image-item--large {
    grid-column: span 2;
    width: 684px;
    height: 276px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .why-choose__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-choose__item.image-item--large {
        grid-column: span 1; /* на планшетах большая картинка занимает одну колонку */
    }
}

@media (max-width: 768px) {
    .why-choose__header .section-title {
        font-size: 36px;
    }

    .why-choose__grid {
        grid-template-columns: 1fr;
    }

    .why-choose__item {
        min-height: auto;
        padding: 24px 20px;
    }

    .why-choose__item.image-item {
        aspect-ratio: 16 / 9; /* фиксируем пропорции для картинок на мобильных */
    }
}

@media (max-width: 480px) {
    .why-choose__item.text-item h3 {
        font-size: 18px;
    }
    .why-choose__item.text-item p {
        font-size: 14px;
    }
}

/* Doctors Section */
.doctors {
    padding: 100px 24px;
    background: var(--white);
}

/* Карточка врача */
.doctor-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 5px;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-red);
}

.doctor-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--light-grey);
}





.doctor-experience {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 8px;
}



.doctor-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    flex-wrap: wrap;
}

.doctor-appoint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    border: 2px solid var(--primary-red);
    cursor: pointer;
    flex: 1 1 auto;
    text-align: center;
}

.doctor-appoint-btn:hover {
    background: transparent;
    color: var(--primary-red);
    transform: translateY(-2px);
}

.doctor-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.doctor-detail-link:hover {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.doctor-detail-link .arrow {
    font-size: 18px;
    transition: transform 0.2s;
}

.doctor-detail-link:hover .arrow {
    transform: translateX(4px);
}

/* Стили Swiper */
.swiper {
    width: 100%;
    padding: 10px 0 50px;
}

.swiper-slide {
    height: auto;
    width: 280px;
}

.swiper-pagination-bullet {
    background: var(--medium-grey);
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: var(--primary-red);
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--primary-red);
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--white);
    box-shadow: var(--shadow-medium);
}
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

/* На мобильных стрелки скрываем, используем пагинацию */
@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

/* CTA Section */
.cta {
    padding: 100px 24px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.cta p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-form {
    display: flex;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-input {
    flex: 1;
    min-width: 250px;
    padding: 18px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: "Manrope", sans-serif;
}

.cta-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cta-input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.cta-button {
    background: var(--white);
    color: var(--primary-red);
    padding: 18px 40px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: "Manrope", sans-serif;
}

.cta-button:hover {
    background: var(--light-grey);
    transform: translateY(-2px);
}

/* News Section */
.news {
    padding: 100px 24px;
    background: var(--light-grey);
}

.news-grid {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--light-grey);
}

.news-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date::before {
    content: "📅";
    font-size: 12px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-read-more {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    margin-top: auto;
}

.news-read-more:hover {
    color: var(--dark-red);
    gap: 12px;
}

.news-read-more::after {
    content: "→";
    transition: var(--transition-smooth);
}

.news-button-container {
    text-align: center;
    margin-top: 40px;
}

.news-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-red);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.news-button:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    gap: 16px;
}

.news-button::after {
    content: "→";
    transition: var(--transition-smooth);
}

/* Footer */


.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 48px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 15px;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .why-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .nav-content {
        flex-wrap: wrap;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-wrap: wrap;
        gap: 20px;
    }

    /*.header-compact .header-main {
        display: flex !important; 
    }*/

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav-content {
        flex-direction: column;
        padding: 16px 0;
    }

    .nav-link {
        padding: 12px 24px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .service-card {
        height: 140px;
        padding: 16px 8px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .service-title {
        font-size: 14px;
    }

    .doctors-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .cta h2 {
        font-size: 36px;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-input {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Scroll animations */







/*Контакты*/

/* Контакты - Hero Section */
.contacts-hero {
    padding: 30px 24px 0px;
}

.contacts-hero .hero-text h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Breadcrumbs */










/* Контакты - основной контент */
.contacts-content {
    padding: 100px 24px;
    background: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Список контактов */
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--light-grey);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    font-size: 24px;
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--medium-grey);
}

.contact-details {
    flex: 1;
}

.contact-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-link {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-family: "Playfair Display", serif;
}

.contact-link:hover {
    color: var(--dark-red);
}

.contact-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Социальные ссылки */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.social-link {
    padding: 8px 16px;
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
}

/* Карта */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 32px;
}

.map-info {
    padding: 32px;
    background: var(--light-grey);
    border-radius: 16px;
}

.info-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.info-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contacts-hero .hero-content {
        grid-template-columns: 1fr;
    }
    
    .contacts-hero .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .contacts-hero {
        padding: 40px 24px 60px;
    }
    
    .contacts-hero .hero-text h1 {
        font-size: 36px;
    }
    
    .contacts-content {
        padding: 60px 24px;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .contact-link {
        font-size: 18px;
    }
    
    .social-links {
        flex-direction: column;
    }
}

/* Цены - Hero Section */
.prices-hero {
    background: linear-gradient(135deg, var(--light-grey) 0%, var(--white) 100%);
    padding: 60px 24px 80px;
}

.prices-hero .hero-text h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Price info box */
.price-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--light-red);
    padding: 24px;
    border-radius: 16px;
    margin: 32px 0;
    border-left: 4px solid var(--primary-red);
}

.price-info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.price-info-text {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Навигация по категориям */
.prices-navigation {
    padding: 60px 24px;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    background: var(--white);
    border: 2px solid var(--medium-grey);
    border-radius: 16px;
    padding: 24px 0;
    text-decoration: none;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover,
.category-card.active {
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.category-icon {
    font-size: 32px;
    width: 64px;
    height: 64px;
    background: var(--light-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.category-card:hover .category-icon {
    background: var(--primary-red);
    color: var(--white);
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Основной раздел с ценами */
.prices-section {
    padding: 60px 24px 0px;
    background: var(--light-grey);
}

.price-category {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-soft);
}

.price-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--light-grey);
}

.price-category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.price-category-badge {
    background: var(--primary-red);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

/* Таблица цен */
.price-table {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--medium-grey);
    border-radius: 8px;
    overflow: hidden;
}

.price-table-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    background: #EFEFF0;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.price-table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    background: var(--white);
    transition: var(--transition-smooth);
}

.price-table-row:hover {
    background: var(--light-red);
}

.price-table-col {
    padding: 16px 20px;
    display: flex;
    align-items: center;
}

.code-col {
    font-size: 13px;
    color: var(--text-dark);
}

.name-col {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.4;
    border-left: 1px solid var(--medium-grey);
    border-right: 1px solid var(--medium-grey);
}

.price-col {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    justify-content: flex-end;
}

.price-table-header .price-table-col {
    padding: 12px 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Примечание о ценах */
.price-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--light-grey);
    padding: 24px;
    border-radius: 16px;
    margin-top: 40px;
    border: 2px solid var(--medium-grey);
}

.price-note-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.price-note-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

.price-note-text strong {
    color: var(--primary-red);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .prices-hero .hero-content {
        grid-template-columns: 1fr;
    }
    
    .prices-hero .hero-image {
        order: -1;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .prices-hero {
        padding: 40px 24px 60px;
    }
    
    .prices-hero .hero-text h1 {
        font-size: 36px;
    }
    
    .price-info {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .price-category {
        padding: 20px;
    }
    
    .price-table-header,
    .price-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .price-table-header {
        display: none;
    }
    
    .price-table-col {
        padding: 12px;
        border: none !important;
    }
    
    .code-col::before {
        content: "Код услуги: ";
        font-weight: 600;
        color: var(--text-dark);
        margin-right: 8px;
    }
    
    .name-col::before {
        content: "Услуга: ";
        font-weight: 600;
        color: var(--text-dark);
        margin-right: 8px;
    }
    
    .price-col::before {
        content: "Стоимость: ";
        font-weight: 600;
        color: var(--text-dark);
        margin-right: 8px;
    }
    
    .price-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ---------- КОРПОРАТИВНЫЕ ЦВЕТА (дублируем для надёжности) ---------- */
:root {
    --primary-red: #FF0000;
    --secondary-red: #FF3333;
    --light-red: #FFE5E5;
    --dark-red: #CC0000;
    --light-grey: #F5F5F5;
    --medium-grey: #E0E0E0;
    --dark-grey: #424242;
    --text-dark: #212121;
    --text-light: #757575;
    --white: #FFFFFF;
    --shadow-soft: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --gray-bg: #EFEFF0;
}

/* ---------- HERO СЕРЫЙ ---------- */
.doctors-hero-gray {
    background: var(--gray-bg);
    padding: 60px 24px;
    text-align: center;
    border-bottom: 1px solid var(--medium-grey);
}

.doctors-hero-gray h1 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.doctors-hero-gray p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ---------- КОНТЕЙНЕР СЕТКИ ---------- */
.doctors-container {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* СТРОКА: две карточки врачей вплотную */
.doctors-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; /* Нет щелей между карточками */
    border-radius: 16px;
    overflow: hidden;
}

/* КАРТОЧКА ВРАЧА (общий блок с рамкой) */
.doctor-pair-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    border: 2px solid var(--medium-grey);
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    transition: var(--transition-smooth);
    /* Убираем правую границу у первой карточки, 
       чтобы при плотном прилегании не было двойной границы */
    border-right: none;
}

/* Последняя карточка в строке — восстанавливаем правую границу */
.doctors-row .doctor-pair-card:last-child {
    border-right: 2px solid var(--medium-grey);
}

.doctor-pair-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    z-index: 2;
}

/* Левая часть – фото (квадрат) */
.doctor-photo-block {
    flex: 0 0 50%; /* Ровно половина ширины карточки */
    aspect-ratio: 1 / 1;
    position: relative;
    background-color: var(--gray-bg);
    overflow: hidden;
}

.doctor-photo-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Затемнение в обычном состоянии */
.doctor-photo-block::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.doctor-pair-card:hover .doctor-photo-block::after {
    background: rgba(0, 0, 0, 0);
}

.doctor-pair-card:hover .doctor-photo-block img {
    transform: scale(1.05);
}

/* Правая часть – информация (квадрат) */
.doctor-info-block {
    flex: 0 0 50%;
    aspect-ratio: 1 / 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
    box-sizing: border-box;
}

.doctor-name {
    font-size: 22px;
    font-weight: 800;
    font-family: "Playfair Display", serif;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.2;
}

.doctor-specialty {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Стрелка-ссылка */
.doctor-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-top: auto;
}

.doctor-link span {
    padding-bottom: 2px;
}

.doctor-link .arrow {
    font-size: 20px;
    transition: transform 0.2s;
}

.doctor-link:hover {
    color: var(--primary-red);
    opacity: 0.9;
}

.doctor-link:hover .arrow {
    transform: translateX(6px);
}

/* ---------- ФОРМА ЗАПИСИ ---------- */




.appointment-container h2 {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
}









.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--medium-grey);
    border-radius: 10px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    transition: var(--transition-smooth);
    background: var(--white);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(255,0,0,0.08);
}



.checkbox-group input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-red);
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-light);
}

.checkbox-group a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-appointment {
    background: radial-gradient(126.6% 757.39% at -4.36% 82.61%, #0A0A2F 0%, #2F2C53 63.68%, #100E2E 100%);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 16px;
}

.btn-appointment:hover {
    background: #565382;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 14, 46, 1);
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 992px) {
    .doctors-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .doctor-pair-card {
        border-right: 2px solid var(--medium-grey); /* Восстанавливаем границу */
    }

    .doctors-row .doctor-pair-card:last-child {
        border-right: 2px solid var(--medium-grey);
    }
}

@media (max-width: 768px) {
    .doctors-hero-gray h1 {
        font-size: 36px;
    }

    .doctor-pair-card {
        flex-direction: column;
    }

    .doctor-photo-block,
    .doctor-info-block {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .appointment-container {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .doctor-name {
        font-size: 20px;
    }

    .doctor-specialty {
        font-size: 14px;
    }
}

.doctors-slider {
    padding: 40px 24px;
}

/* Услуги - Hero Section */
.services-hero {
    background: linear-gradient(135deg, var(--light-grey) 0%, var(--white) 100%);
    padding: 40px 24px 60px;
}

.services-hero .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.services-hero .hero-text h1 {
    font-size: 48px;
    margin-bottom: 24px;
    text-align: center;
}

/* Цитата по всей ширине */
.quote {
    width: 100%;
    margin: 0 auto 40px;
    padding: 32px;
    background: var(--light-red);
    border-radius: 16px;
    border-left: 4px solid var(--primary-red);
    position: relative;
}

.quote-icon {
    font-size: 64px;
    color: var(--primary-red);
    font-family: "Playfair Display", serif;
    position: absolute;
    top: -20px;
    left: 32px;
    line-height: 1;
}

.quote-text {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    padding-left: 20px;
    margin: 0;
}

/* Услуги - уменьшенные блоки */
.services {
    padding: 60px 24px;
    background: var(--white);
}

/*.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}*/

.service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: 16px;
    height: 100%;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-sizing: border-box;
}

.service-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--light-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 28px;
    transition: var(--transition-smooth);
    margin: 20px;
}

.service-card:hover .service-icon {
    background: var(--primary-red);
    color: var(--white);
}

.doctors-slider .swiper-wrapper {
    justify-content: center;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    flex: 1;
    margin-bottom: 12px;
}

.service-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    flex-grow: 1;
    margin: 0;
}

/* Форма записи на прием - по центру */
.appointment-section {
    padding: 80px 24px;
    background: var(--light-grey);
}

.appointment-wrapper {
    display: flex;
    justify-content: center;
}

.appointment-content {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    max-width: 500px;
    width: 100%;
}

.appointment-title {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
    text-align: center;
}

.appointment-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.6;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--medium-grey);
    border-radius: 12px;
    font-size: 15px;
    font-family: "Manrope", sans-serif;
    transition: var(--transition-smooth);
    background: var(--light-grey);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--white);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.15);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Чекбокс */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid var(--medium-grey);
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.checkbox-input:checked ~ .checkbox-custom {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.checkbox-input:checked ~ .checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    line-height: 1.8;
}

.checkbox-link {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.checkbox-link:hover {
    text-decoration: underline;
}

.appointment-button {
    background: var(--primary-red);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: "Manrope", sans-serif;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.appointment-button:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .services-hero .hero-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
    .service-card {
        height: auto;
        min-height: 80px;
        padding: 12px 16px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
    }
    .service-card {
        height: auto;
        min-height: 70px;
    }
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .service-title {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 30px 20px 40px;
    }
    
    .services-hero .hero-text h1 {
        font-size: 36px;
    }
    
    .quote {
        padding: 24px;
        margin-bottom: 32px;
    }
    
    .quote-icon {
        font-size: 48px;
        top: -15px;
        left: 24px;
    }
    
    .quote-text {
        font-size: 16px;
        padding-left: 16px;
    }
    
    .services {
        padding: 40px 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
        min-height: 260px;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .service-title {
        font-size: 17px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    .appointment-section {
        padding: 60px 20px;
    }
    
    .appointment-content {
        padding: 32px;
    }
    
    .appointment-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        min-height: 240px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
    
    .appointment-button {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .quote {
        padding: 20px;
    }
    
    .quote-icon {
        left: 20px;
    }
    
    .quote-text {
        padding-left: 12px;
        font-size: 15px;
    }
}

/* Имплантация - Hero Section */
.implantation-hero {
    background: linear-gradient(135deg, var(--light-grey) 0%, var(--white) 100%);
    padding: 40px 24px 60px;
}

.implantation-hero .container {
    max-width: 1400px;
    margin: 0 auto;
}

.implantation-header {
    text-align: left;
    max-width: 100%;
}

.implantation-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.2;
}

/* Цитата для имплантации */
.implantation-quote {
    position: relative;
    background: var(--light-red);
    padding: 32px 32px 32px 60px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-red);
    margin-bottom: 40px;
    max-width: 1200px;
}

.implantation-quote .quote-icon {
    font-size: 64px;
    color: var(--primary-red);
    font-family: "Playfair Display", serif;
    position: absolute;
    top: -10px;
    left: 24px;
    line-height: 1;
}

.implantation-quote .quote-text {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* Кнопки имплантации */
.implantation-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.implantation-btn {
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    display: inline-block;
    text-align: center;
}

.implantation-btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.implantation-btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.implantation-btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.implantation-btn-secondary:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* Заголовок по центру */
.implantation-doctors {
    padding: 20px 24px;
    background: var(--white);
}

.section-title-center {
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 auto;
    max-width: 1200px;
}

/* Контент с цитатой и врачом - разделение 60/40 */
.implantation-content {
    padding: 0 24px 80px;
    background: var(--white);
}

.content-row {
    display: grid;
    grid-template-columns: 60% 38%;
    gap: 32px;
    margin-bottom: 60px;
    align-items: center;
}

.content-text {
    padding-right: 20px;
}

.content-quote {
    background: var(--light-grey);
    padding: 32px;
    border-radius: 16px;
    border-left: 4px solid var(--medium-grey);
    height: 100%;
    display: flex;
    align-items: center;
}

.content-quote p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Обновленная карточка врача с круглой фотографией */














/* Адаптивность */
@media (max-width: 1024px) {
    .content-row {
        grid-template-columns: 60% 38%;
        gap: 24px;
    }
    
    .implantation-header h1 {
        font-size: 42px;
    }
    
    .section-title-center {
        font-size: 32px;
    }
    
    .doctor-mini-card {
        padding: 24px;
    }
    
    .doctor-mini-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .implantation-hero {
        padding: 30px 20px 40px;
    }
    
    .implantation-header h1 {
        font-size: 36px;
        margin-bottom: 24px;
    }
    
    .implantation-quote {
        padding: 24px 24px 24px 48px;
        margin-bottom: 32px;
    }
    
    .implantation-quote .quote-icon {
        font-size: 48px;
        left: 20px;
    }
    
    .implantation-quote .quote-text {
        font-size: 16px;
    }
    
    .implantation-buttons {
        gap: 16px;
    }
    
    .implantation-btn {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    .implantation-doctors {
        padding: 40px 20px;
    }
    
    .section-title-center {
        font-size: 28px;
    }
    
    .implantation-content {
        padding: 0 20px 60px;
    }
    
    .content-row {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .content-text {
        padding-right: 0;
    }
    
    .content-quote {
        padding: 24px;
    }
    
    .doctor-mini-card {
        max-width: 300px;
        margin: 0 auto;
        padding: 32px;
    }
    
    .doctor-mini-image {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .implantation-header h1 {
        font-size: 32px;
    }
    
    .implantation-quote {
        padding: 20px 20px 20px 40px;
    }
    
    .implantation-quote .quote-icon {
        font-size: 40px;
        left: 16px;
    }
    
    .implantation-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .implantation-btn {
        width: 100%;
        padding: 16px 24px;
    }
    
    .section-title-center {
        font-size: 24px;
    }
    
    .doctor-mini-card {
        padding: 24px;
    }
    
    .doctor-mini-image {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .doctor-mini-name {
        font-size: 16px;
    }
    
    .doctor-mini-specialty {
        font-size: 14px;
    }
}

/* Протезирование - Hero Section */
.prosthetics-hero {
    background: linear-gradient(135deg, var(--light-grey) 0%, var(--white) 100%);
    padding: 40px 24px 60px;
}

.prosthetics-hero .container {
    max-width: 1400px;
    margin: 0 auto;
}

.prosthetics-header {
    text-align: left;
    max-width: 100%;
}

.prosthetics-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.2;
}

/* Цитата для протезирования */
.prosthetics-quote {
    position: relative;
    background: var(--light-red);
    padding: 32px 32px 32px 60px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-red);
    margin-bottom: 40px;
    max-width: 100%;
}

.prosthetics-quote .quote-icon {
    font-size: 64px;
    color: var(--primary-red);
    font-family: "Playfair Display", serif;
    position: absolute;
    top: -10px;
    left: 24px;
    line-height: 1;
}

.prosthetics-quote .quote-text {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* Кнопки протезирования */
.prosthetics-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.prosthetics-btn {
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    display: inline-block;
    text-align: center;
}

.prosthetics-btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.prosthetics-btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.prosthetics-btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.prosthetics-btn-secondary:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* Особенности протезирования */
.prosthetics-features {
    padding: 60px 24px;
    background: var(--white);
}

/* Контент с цитатой и врачами - разделение 60/40 */
.prosthetics-content {
    padding: 0 24px 80px;
    background: var(--white);
}

.prosthetics-content .content-row {
    display: grid;
    grid-template-columns: 60% 38%;
    gap: 32px;
    margin-bottom: 60px;
    align-items: start;
}

.prosthetics-content .content-text {
    padding-right: 20px;
}

.prosthetics-content .content-quote {
    background: var(--light-grey);
    padding: 32px;
    border-radius: 16px;
    border-left: 4px solid var(--medium-grey);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prosthetics-content .content-quote p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* Ссылка на способы протезирования */
.methods-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
    padding: 8px 0;
}

.methods-link:hover {
    color: var(--dark-red);
    gap: 8px;
}

.methods-link::after {
    content: "→";
    transition: var(--transition-smooth);
    margin-left: 8px;
}

.methods-link:hover::after {
    margin-left: 12px;
}

/* Сетка 3 врачей */
.content-doctors {
    display: flex;
    align-items: center;
}

.doctors-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 90px;
    width: 100%;
}

/* Обновленная карточка врача с круглой фотографией */
.doctor-mini-card {
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
}

.doctor-mini-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 24px;
    border: 4px solid var(--light-red);
    transition: var(--transition-smooth);
}

.doctor-mini-card:hover .doctor-mini-image {
    border-color: var(--primary-red);
    transform: scale(1.05);
}

.doctor-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-mini-info {
    width: 100%;
}

.doctor-mini-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.3;
}

.doctor-mini-specialty {
    font-size: 15px;
    color: var(--primary-red);
    font-weight: 600;
    line-height: 1.4;
}

/* Способы протезирования */
.prosthetics-methods {
    padding: 60px 24px;
    background: var(--light-grey);
}

.prosthetics-methods .content-row {
    display: grid;
    grid-template-columns: 60% 38%;
    gap: 32px;
    margin-top: 40px;
    align-items: center;
}

.prosthetics-methods .content-quote {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border-left: 4px solid var(--medium-grey);
    height: 100%;
    display: flex;
    align-items: center;
}

.prosthetics-methods .content-quote p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Полный протез челюсти */
.full-prosthesis {
    padding: 60px 24px 80px;
    background: var(--white);
}

.prosthesis-card {
    background: linear-gradient(135deg, var(--light-red) 0%, rgba(255, 229, 229, 0.8) 100%);
    padding: 48px;
    border-radius: 24px;
    border-left: 6px solid var(--primary-red);
    max-width: 1000px;
    margin: 0 auto;
}

.prosthesis-title {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}

.prosthesis-description {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.prosthesis-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.prosthesis-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.prosthesis-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    width: 60px;
    height: 60px;
    background: var(--light-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .prosthetics-content .content-row,
    .prosthetics-methods .content-row {
        grid-template-columns: 60% 38%;
        gap: 24px;
    }
    
    .prosthetics-header h1 {
        font-size: 42px;
    }
    
    .prosthesis-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .prosthetics-hero {
        padding: 30px 20px 40px;
    }
    
    .prosthetics-header h1 {
        font-size: 36px;
        margin-bottom: 24px;
    }
    
    .prosthetics-quote {
        padding: 24px 24px 24px 48px;
        margin-bottom: 32px;
    }
    
    .prosthetics-quote .quote-icon {
        font-size: 48px;
        left: 20px;
    }
    
    .prosthetics-quote .quote-text {
        font-size: 16px;
    }
    
    .prosthetics-buttons {
        gap: 16px;
    }
    
    .prosthetics-btn {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    .prosthetics-features,
    .prosthetics-methods {
        padding: 40px 20px;
    }
    
    .prosthetics-content {
        padding: 0 20px 60px;
    }
    
    .prosthetics-content .content-row,
    .prosthetics-methods .content-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .prosthetics-content .content-text {
        padding-right: 0;
    }
    
    .prosthetics-content .content-quote,
    .prosthetics-methods .content-quote {
        padding: 24px;
    }
    
    .doctors-mini-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .full-prosthesis {
        padding: 40px 20px 60px;
    }
    
    .prosthesis-card {
        padding: 32px;
    }
    
    .prosthesis-title {
        font-size: 28px;
    }
    
    .prosthesis-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .prosthetics-header h1 {
        font-size: 32px;
    }
    
    .prosthetics-quote {
        padding: 20px 20px 20px 40px;
    }
    
    .prosthetics-quote .quote-icon {
        font-size: 40px;
        left: 16px;
    }
    
    .prosthetics-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .prosthetics-btn {
        width: 100%;
        padding: 16px 24px;
    }
    
    .doctors-mini-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .doctor-mini-image {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .doctor-mini-name {
        font-size: 16px;
    }
    
    .doctor-mini-specialty {
        font-size: 14px;
    }
    
    .prosthesis-features {
        grid-template-columns: 1fr;
    }
    
    .prosthesis-card {
        padding: 24px;
    }
    
    .prosthesis-title {
        font-size: 24px;
    }
}

/* Документы - Hero Section */
.documents-hero {
    background: linear-gradient(135deg, var(--light-grey) 0%, var(--white) 100%);
    padding: 60px 24px 40px;
}

.documents-hero .container {
    max-width: 1400px;
    margin: 0 auto;
}

.documents-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
    text-align: center;
}

.documents-header p {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Breadcrumbs */










/* Сетка документов - 4 в строку */
.documents-section {
    padding: 60px 24px 100px;
    background: var(--white);
}

.documents-container {
    max-width: 1400px;
    margin: 0 auto;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.document-card {
    background: var(--white);
    border-radius: 16px;
    border: 2px solid var(--medium-grey);
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
}

.document-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.document-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.document-category {
    display: inline-block;
    background: var(--light-red);
    color: var(--primary-red);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    align-self: flex-start;
}

.document-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.4;
    flex-grow: 1;
}

.document-meta {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--light-grey);
    display: flex;
    justify-content: flex-end;
}

.document-download {
    background: var(--primary-red);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    border: 2px solid var(--primary-red);
    text-align: center;
    display: inline-block;
}

.document-download:hover {
    background: transparent;
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .documents-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .documents-hero {
        padding: 40px 24px 30px;
    }

    .documents-header h1 {
        font-size: 36px;
    }

    .documents-header p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .breadcrumbs {
        margin-bottom: 30px;
        justify-content: flex-start;
    }

    .documents-section {
        padding: 40px 24px 60px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .document-card {
        padding: 20px;
    }

    .document-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .documents-header h1 {
        font-size: 32px;
    }

    .document-content {
        padding: 0;
    }

    .document-title {
        font-size: 14px;
    }

    .document-download {
        width: 100%;
        padding: 12px;
    }
}

/* Дополнительные стили только для детальной страницы врача */
.doctor-detail {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 24px;
}

.doctor-detail-header {
    margin-bottom: 48px;
}

.doctor-detail-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.doctor-detail-header .specialty-badge {
    font-size: 18px;
    color: var(--primary-red);
    font-weight: 600;
}

.doctor-detail-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Фото чуть меньше половины */
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.doctor-photo {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    /* Фото занимает всю ширину своей колонки */
}

.doctor-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.doctor-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 18px;
}

.info-section {
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 24px;
}

.info-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-section h2 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.info-section p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.info-section li::before {
    content: "•";
    color: var(--primary-red);
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 40px 0 60px;
}

.certificate-card {
    background: var(--white);
    border: 2px solid var(--medium-grey);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.certificate-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.certificate-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.certificate-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.certificate-date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.certificate-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.certificate-link:hover {
    gap: 10px;
}

.certificate-link::after {
    content: "→";
}

@media (max-width: 992px) {
    .doctor-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .doctor-detail-header h1 {
        font-size: 36px;
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

 /* ================= FAQ ACCORDION ================= */
.service-faq {
    padding: 60px 24px 60px;
    background: var(--light-grey);
}

.reviews-contain {
    padding: 60px 24px 60px;
}

  .faq-container {
      max-width: 1400px;
      width: 100%;
      margin: 0 auto;
      background: var(--white);
      border-radius: 2rem;
      box-shadow: var(--shadow-medium);
      overflow: hidden;
      transition: var(--transition-smooth);
  }

  .faq-container:hover {
      box-shadow: 0 30px 50px -20px rgba(0, 50, 70, 0.2);
  }

  /* Заголовок секции */
  .faq-header {
      padding: 2rem 2rem 1rem 2rem;
      border-bottom: 1px solid var(--medium-grey);
  }

  .faq-header h2 {
      font-family: "Playfair Display", serif;
      font-size: 2rem;
      font-weight: 700;
      background: var(--text-dark);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      display: inline-block;
      margin-bottom: 0.5rem;
  }

  .title-decoration {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      justify-content: space-between;
  }

  .title-decoration .badge {
      background: var(--light-red);
      padding: 0.3rem 1rem;
      border-radius: 40px;
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--primary-red);
  }

  .subhead {
      color: var(--text-light);
      font-size: 0.95rem;
      margin-top: 0.5rem;
  }

  /* Список вопросов */
  .faq-list {
      padding: 0.5rem 0 1.5rem 0;
  }

  .faq-item {
      border-bottom: 1px solid var(--medium-grey);
      transition: background 0.2s;
  }

  .faq-item:last-child {
      border-bottom: none;
  }

  /* Вопрос – кликабельная область */
  .faq-question {
      padding: 1.5rem 2rem;
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      cursor: pointer;
      transition: var(--transition-smooth);
      background: var(--white);
      user-select: none;
  }
/*
  .faq-question:hover {
      background: var(--light-grey);
  }*/

  /* Иконка вопроса */
  .q-icon {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      background: var(--light-red);
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--primary-red);
      font-size: 0.9rem;
      font-weight: 700;
      margin-top: 2px;
  }

  .question-text {
      flex: 1;
      font-weight: 600;
      font-size: 1.1rem;
      line-height: 1.4;
      color: var(--text-dark);
      letter-spacing: -0.2px;
  }

  /* Иконка-стрелка */
  .toggle-icon {
      flex-shrink: 0;
      color: var(--text-light);
      font-size: 1rem;
      transition: transform 0.2s;
  }

  /* Ответ по умолчанию скрыт */
  .faq-answer {
      display: none;
      padding: 0 2rem 1.5rem 2rem;
      margin-left: 3rem;
      animation: fadeSlide 0.25s ease-out;
  }

  /* Активный элемент – показываем ответ */
  .faq-item.active .faq-answer {
      display: block;
  }

  /* Внутреннее содержимое ответа */
  .answer-content {
      color: var(--text-light);
      font-size: 1rem;
      line-height: 1.55;
      background: var(--light-grey);
      padding: 1.2rem 1.5rem;
      border-radius: 1.25rem;
      box-shadow: inset 0 1px 1px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.02);
  }

  .answer-content i {
      color: var(--primary-red);
      margin-right: 6px;
  }

  .answer-content strong {
      color: var(--text-dark);
      font-weight: 600;
  }

  .answer-content ul {
      margin-top: 8px;
      margin-left: 20px;
      list-style-type: circle;
  }

  .answer-content ol {
      margin-top: 8px;
      margin-left: 20px;
  }

  .answer-content li {
      margin-bottom: 4px;
  }

  /* Анимация появления ответа */
  @keyframes fadeSlide {
      0% {
          opacity: 0;
          transform: translateY(-6px);
      }
      100% {
          opacity: 1;
          transform: translateY(0);
      }
  }

  /* Адаптивность */
  @media (max-width: 768px) {
      .faq-header {
          padding: 1.5rem 1.25rem 0.75rem 1.25rem;
      }
      .faq-header h2 {
          font-size: 1.7rem;
      }
      .faq-question {
          padding: 1.2rem 1.25rem;
          gap: 0.75rem;
      }
      .question-text {
          font-size: 1rem;
      }
      .faq-answer {
          padding: 0 1.25rem 1.25rem 1.25rem;
          margin-left: 2rem;
      }
      .answer-content {
          padding: 1rem;
          font-size: 0.9rem;
      }
      .q-icon {
          width: 24px;
          height: 24px;
          font-size: 0.75rem;
      }
  }

  .reviews-container {
        max-width: 1400px;
        width: 100%;
        margin: 0 auto;
    }

    /* Блок отзывов */
    .reviews {
        background: var(--white);
        border-radius: 24px;
        padding: 48px;
        box-shadow: var(--shadow-soft);
    }

    /* Заголовок и ссылка на все отзывы */
    .reviews-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
        flex-wrap: wrap;
        gap: 20px;
    }

    .reviews-header h2 {
        font-family: "Playfair Display", serif;
        font-size: 42px;
        font-weight: 700;
        color: var(--text-dark);
    }

    .reviews-all-link {
        background: transparent;
        color: var(--primary-red);
        padding: 12px 32px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        border: 2px solid var(--primary-red);
        transition: var(--transition-smooth);
        display: inline-block;
    }

    .reviews-all-link:hover {
        background: var(--primary-red);
        color: var(--white);
    }

    /* Обёртка слайдера — убираем вертикальный скролл, оставляем горизонтальный */
    .reviews-slider-wrapper {
        position: relative;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;           /* скрываем вертикальную прокрутку */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Настройка полосы прокрутки для Webkit (Chrome, Safari) */
    .reviews-slider-wrapper::-webkit-scrollbar {
        height: 6px;
        background: var(--medium-grey);
        border-radius: 10px;
    }

    .reviews-slider-wrapper::-webkit-scrollbar-track {
        background: var(--medium-grey);
        border-radius: 10px;
    }

    .reviews-slider-wrapper::-webkit-scrollbar-thumb {
        background: var(--primary-red);
        border-radius: 10px;
    }

    /* Сетка карточек — flex, перенос запрещён */
    .reviews-grid {
        display: flex;
        gap: 30px;
        width: max-content;
        padding: 10px 0 8px;   /* небольшой отступ снизу, чтобы тени карточек не обрезались */
    }

    /* Карточка отзыва — фиксированная ширина как у врачей */
    .review-card {
        flex: 0 0 405px;
        background: var(--white);
        border: 2px solid var(--medium-grey);
        border-radius: 16px;
        padding: 32px 24px;
        transition: var(--transition-smooth);
    }

    .review-card:hover {
        border-color: var(--primary-red);
        transform: translateY(-6px);
        box-shadow: var(--shadow-medium);
    }

    .review-author {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 8px;
    }

    .review-date {
        font-size: 14px;
        color: var(--text-light);
        margin-bottom: 16px;
    }

    .review-rating {
        margin-bottom: 16px;
        color: #FFD700;
        font-size: 20px;
        letter-spacing: 2px;
    }

    .review-text {
        font-size: 15px;
        color: var(--text-light);
        line-height: 1.6;
        font-style: italic;
    }

    /* Адаптивность — на мобильных карточки чуть уже */
    @media (max-width: 768px) {
        .reviews {
            padding: 32px 24px;
        }

        .reviews-header h2 {
            font-size: 32px;
        }

        .review-card {
            flex: 0 0 280px;
            padding: 24px 20px;
        }

        .reviews-header {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    @media (max-width: 480px) {
        .reviews {
            padding: 24px 16px;
        }

        .review-card {
            flex: 0 0 260px;
        }
    }

    /* ===== Единая ширина и отступы для всех секций ===== */
/* Приводим блоки FAQ и Отзывы к единой ширине и отступам */
.faq-container,
.reviews-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Для мобильных устройств уменьшаем отступы */
@media (max-width: 768px) {
    .faq-container,
    .reviews-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}


.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 24px 24px;
    margin-top: auto;
}

.appointment-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
    margin-left: auto;
    margin-right: auto;
}

/* ===== Блок "Этапы имплантации" финальная версия ===== */
.implantation-steps-final {
    padding: 80px 0;
    background: var(--white);
}

.step-stage {
    max-width: 1200px;
    margin: 0 auto 48px auto;
    background: var(--white);
    border: 2px solid var(--medium-grey);
    border-radius: 24px;
    padding: 32px 40px;
    transition: var(--transition-smooth);
}

.step-stage:hover {
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.stage-title {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.stage-divider {
    height: 2px;
    background: var(--medium-grey);
    margin-bottom: 32px;
}

.stage-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stage-items {
    display: flex;
    flex-wrap: wrap;
    gap: 49px;
    flex: 1;
}

.stage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 90px;
}

.stage-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.step-stage:hover .stage-img {
    transform: scale(1.05);
}

.stage-item span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.stage-total {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    padding-left: 20px;
    border-left: 2px solid var(--light-grey);
}

.stage-total strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-red);
    margin-left: 8px;
}

.total-block {
    max-width: 600px;
    margin: 20px auto 0;
    text-align: center;
    background: var(--light-grey);
    border-radius: 24px;
    padding: 32px 40px;
}

.total-sum {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.total-sum span {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
}

.total-btn {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.total-btn:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

/* Адаптивность */
@media (max-width: 992px) {
    .step-stage {
        padding: 28px 32px;
    }
    .stage-title {
        font-size: 24px;
    }
    .stage-items {
        gap: 30px;
    }
    .stage-img {
        width: 60px;
        height: 60px;
    }
    .stage-total {
        font-size: 18px;
    }
    .stage-total strong {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .implantation-steps-final {
        padding: 60px 0;
    }
    .step-stage {
        padding: 24px 20px;
        margin-bottom: 32px;
    }
    .stage-title {
        font-size: 22px;
    }
    .stage-content {
        flex-direction: column;
        align-items: stretch;
    }
    .stage-items {
        justify-content: center;
    }
    .stage-item {
        min-width: 80px;
    }
    .stage-img {
        width: 50px;
        height: 50px;
    }
    .stage-item span {
        font-size: 14px;
    }
    .stage-total {
        border-left: none;
        border-top: 2px solid var(--light-grey);
        padding-left: 0;
        padding-top: 20px;
        text-align: center;
        white-space: normal;
    }
    .total-block {
        padding: 24px 20px;
    }
    .total-sum {
        font-size: 22px;
    }
    .total-btn {
        padding: 14px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .stage-items {
        gap: 20px;
    }
    .stage-img {
        width: 45px;
        height: 45px;
    }
    .stage-total strong {
        font-size: 20px;
    }
}


/*  Форма на главной */
/* Contact Form Section Styles */
.contact-form-section {
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact-form-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: stretch;
}

/* Left Side - Callback Form */
.contact-form-left {
    background: var(--white);
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-title {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: center;
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}





.form-input-custom::placeholder {
    color: var(--text-light);
}

.btn-submit-custom {
    background: var(--text-dark);
    color: var(--white);
    padding: 18px 32px;
    border: none;
    border-radius: 50px;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(33, 33, 33, 0.3);
}

.btn-submit-custom:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
}

.btn-full-width {
    width: 100%;
}

/* Checkbox Custom Styles */
.checkbox-group-custom {
    margin-top: 8px;
}



.checkbox-input-custom {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label-custom {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.9;
    position: relative;
    padding-left: 32px;
}

.checkbox-label-custom::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-grey);
    border-radius: 4px;
    background: var(--white);
    transition: var(--transition-smooth);
}

.checkbox-label-custom:has(.checkbox-input-custom:checked)::before {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.checkbox-label-custom:has(.checkbox-input-custom:checked)::after {
    content: "✓";
    position: absolute;
    left: 6px;
    top: 6px;
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text-custom {
    font-size: 13px;
    color: var(--text-light);
}

/* Right Side - Primary Form */
.contact-form-right {
    background: var(--white);
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.contact-form-right::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.primary-form-content {
    flex: 1;
    z-index: 1;
}

.primary-form-title {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.3;
}

.primary-form-title br {
    display: block;
}

.btn-primary-form {
    background: var(--text-dark);
    color: var(--white);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(33, 33, 33, 0.3);
}

.btn-primary-form:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
}

.laptop-image {
    flex-shrink: 0;
    max-width: 320px;
}

.laptop-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--white);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 48px;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-medium);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--light-grey);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-red);
    transform: rotate(90deg);
}

.modal-close svg {
    stroke: var(--text-dark);
    transition: var(--transition-smooth);
}

.modal-close:hover svg {
    stroke: var(--white);
}

.modal-content {
    padding-top: 20px;
}

.modal-title {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
}

.primary-form-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-input-custom {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--medium-grey);
    border-radius: 50px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    transition: var(--transition-smooth);
    background: var(--white);
    color: var(--text-dark);
}

.form-input-custom:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.08);
}

textarea.form-input-custom {
    border-radius: 16px;
    resize: vertical;
    min-height: 120px;
}

select.form-input-custom {
    cursor: pointer;
    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='%23757575' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-form-right {
        flex-direction: column;
        text-align: center;
    }
    
    .primary-form-content {
        width: 100%;
    }
    
    .laptop-image {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 60px 20px;
    }
    
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-left,
    .contact-form-right {
        padding: 32px 24px;
    }
    
    .contact-form-title,
    .primary-form-title {
        font-size: 24px;
    }
    
    .form-input-custom {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .btn-submit-custom,
    .btn-primary-form {
        padding: 16px 28px;
        font-size: 15px;
    }
    
    .checkbox-text-custom {
        font-size: 12px;
    }
    
    .laptop-image {
        display: none;
    }
    
    .modal-container {
        padding: 32px 24px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .contact-form-left,
    .contact-form-right {
        padding: 24px 20px;
    }
    
    .contact-form-title,
    .primary-form-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .callback-form {
        gap: 12px;
    }
    
    .form-input-custom {
        padding: 14px 18px;
    }
    
    .btn-submit-custom,
    .btn-primary-form {
        width: 100%;
        padding: 16px 24px;
    }
    
    .modal-container {
        padding: 24px 20px;
    }
}

/* ЖЁСТКИЙ СБРОС ДЛЯ МОБИЛЬНЫХ – гарантия видимости шапки */
@media (max-width: 768px) {
    /* 1. Шапка всегда статична, не фиксируется */
    .header {
        position: relative !important;
        top: auto !important;
    }
    
    /* 2. Все части шапки видны всегда */
    .header-top,
    .header-main,
    .nav {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        transform: none !important;
    }
    
    /* 3. Отменяем любые скрытия по классам */
    .header.scrolled .header-top,
    .header.scrolled .header-main,
    .header.scrolled .nav {
        display: block !important;
        position: relative !important;
        box-shadow: none !important;
        top: auto !important;
    }
    
    /* 4. Убираем компактный логотип */
    .nav-logo--compact {
        display: none !important;
    }
    
    /* 5. Навигация в мобильном меню – отдельно (бургер) */
    .nav {
        position: fixed !important; /* это нужно для выезжающего меню */
        left: -100% !important;
        top: 0 !important;
        width: 80% !important;
        height: 100vh !important;
        background: white !important;
        transition: left 0.3s ease !important;
        z-index: 1001 !important;
        padding-top: 80px !important;
    }
    .nav.active {
        left: 0 !important;
    }
    
    /* 6. Содержимое шапки – flex как обычно */
    .header-main {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 16px !important;
    }
    
    .header-top {
        display: flex !important;
        justify-content: space-between !important;
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}

/* ===== МОБИЛЬНАЯ ШАПКА (исправленная) ===== */
@media (max-width: 768px) {
    /* 1. Скрываем верхнюю строку */
    .header-top {
        display: none !important;
    }

    /* 2. Логотип по центру */
    .header-main {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 12px;
    }
    .logo {
        flex: 1;
        text-align: center;
        margin: 0 auto;
    }
    .logo img {
        width: auto;
        height: 40px;
        display: inline-block;
    }

    /* 3. Поиск – скрываем */
    .search-container {
        display: none !important;
    }

    /* 4. Кнопка «Записаться» – увеличиваем */
    .header-cta {
        padding: 10px 20px;
        font-size: 16px;
        white-space: nowrap;
        margin: 0;
        flex-shrink: 0;
    }

    /* 5. Бургер-кнопка (без трансформации в крестик) */
    .mobile-menu-btn {
        display: block;
        order: 3;
        margin-left: 8px;
    }
    /* Убираем анимацию превращения в крестик */
    .mobile-menu-btn.active span:nth-child(1),
    .mobile-menu-btn.active span:nth-child(2),
    .mobile-menu-btn.active span:nth-child(3) {
        transform: none;
        opacity: 1;
    }

    /* 6. Выезжающее меню */
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); /* светлая тень */
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 80px;
    }
    .nav.active {
        left: 0;
    }
    .nav-content {
        flex-direction: column;
        padding: 0 20px;
    }
    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--medium-grey);
    }
    .nav-logo--compact {
        display: none;
    }

    /* 7. Крестик закрытия (только один, внутри меню) */
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: var(--light-grey);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1002;
        transition: var(--transition-smooth);
    }
    .menu-close:hover {
        background: var(--primary-red);
    }
    .menu-close span {
        position: relative;
        width: 24px;
        height: 2px;
        background: var(--text-dark);
        transform: rotate(45deg);
    }
    .menu-close span::before {
        content: "";
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--text-dark);
        transform: rotate(90deg);
    }
    .menu-close:hover span,
    .menu-close:hover span::before {
        background: var(--white);
    }

    /* 8. Оверлей – светлый */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3); /* светлее */
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    .menu-overlay.active {
        opacity: 0.4;
        visibility: visible;
    }
    body.menu-open {
        overflow: hidden;
    }
}

/* Стили для кнопки "Записаться" в навигации */
.nav-link--button {
    background: var(--primary-red);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 10px 24px;
    margin-left: 16px;
    transition: var(--transition-smooth);
    border: 2px solid var(--primary-red);
}

.nav-link--button:hover {
    background: transparent;
    color: var(--primary-red) !important;
    transform: translateY(-2px);
}

/* На мобильных устройствах кнопка растягивается на всю ширину */
@media (max-width: 768px) {
    .nav-link--button {
        margin: 16px 0 8px;
        text-align: center;
        background: var(--primary-red);
        color: var(--white) !important;
    }
    .nav-link--button:hover {
        background: var(--dark-red);
        color: var(--white) !important;
    }
}

/* Мобильные: шапка всегда статична, логотип скроллится */
@media (max-width: 768px) {
    .header {
        position: relative !important;
        top: auto !important;
    }
    .header.scrolled .header-top,
    .header.scrolled .header-main {
        display: flex !important;
    }
    .header.scrolled .nav {
        position: relative !important;
        box-shadow: none !important;
    }
    /* Компактный логотип в навигации скрываем на мобильных (он не нужен) */
    .nav-logo--compact {
        display: none !important;
    }
}

/* ===== FOOTER ACCORDION (mobile only) ===== */
@media (max-width: 768px) {
    .footer-section h3 {
        cursor: pointer;
        position: relative;
        padding-right: 30px;
        user-select: none;
        transition: color 0.2s;
    }
    .footer-section h3::after {
        content: "+";
        position: absolute;
        right: 0;
        top: 0;
        font-size: 22px;
        font-weight: 400;
        transition: transform 0.2s ease;
        color: var(--primary-red);
    }
    .footer-section.open h3::after {
        content: "−";
    }
    .footer-section ul {
        display: none;
        margin-top: 12px;
        animation: footerFadeSlide 0.25s ease-out;
    }
    .footer-section.open ul {
        display: block;
    }
    @keyframes footerFadeSlide {
        0% { opacity: 0; transform: translateY(-6px); }
        100% { opacity: 1; transform: translateY(0); }
    }
}

/* Дополнительные стили только для страницы "О нас" */
.about-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Хлебные крошки (как на других страницах) */










/* Hero секция */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin: 40px 0 80px;
}

.about-hero-content h1 {
    font-family: "Playfair Display", serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 24px;
}

.about-hero-content h1 .highlight {
    color: var(--primary-red);
}

.about-hero-content p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

.about-hero-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-hero-image:hover img {
    transform: scale(1.02);
}

/* Миссия (цитата) */
.mission {
    background: linear-gradient(135deg, var(--light-red) 0%, rgba(255, 229, 229, 0.6) 100%);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 80px;
    position: relative;
    border-left: 6px solid var(--primary-red);
}

.mission-icon {
    font-size: 80px;
    color: var(--primary-red);
    font-family: "Playfair Display", serif;
    position: absolute;
    top: -20px;
    left: 40px;
    line-height: 1;
    opacity: 0.3;
}

.mission-text {
    font-size: 24px;
    color: var(--text-dark);
    line-height: 1.5;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mission-author {
    margin-top: 24px;
    font-weight: 600;
    color: var(--primary-red);
    text-align: center;
}

/* Преимущества */
.advantages {
    margin-bottom: 80px;
}

.advantages h2 {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
}

.advantages-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    background: var(--white);
    border: 2px solid var(--medium-grey);
    border-radius: 16px;
    padding: 32px 24px;
    transition: var(--transition-smooth);
    text-align: center;
}

.advantage-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.advantage-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Технологии + фото */
.technology {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    background: var(--light-grey);
    border-radius: 32px;
    padding: 40px;
}

.technology-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.technology-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.technology-list {
    list-style: none;
    padding: 0;
}

.technology-list li {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.technology-list li::before {
    content: "✓";
    color: var(--primary-red);
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 0;
}

.technology-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.technology-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Команда (кратко) */
.team-preview {
    text-align: center;
    margin-bottom: 80px;
}

.team-preview h2 {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.team-preview p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

.team-button {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.team-button:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

/* Форма обратной связи (как на других страницах) */








/* Адаптивность */
@media (max-width: 1024px) {
    .about-hero,
    .technology {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-hero-content h1 {
        font-size: 48px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-text {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .breadcrumbs {
        margin: 20px 0;
    }

    .about-hero-content h1 {
        font-size: 42px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .technology {
        padding: 24px;
    }

    .technology-content h2 {
        font-size: 32px;
    }

    .mission {
        padding: 32px;
    }

    .mission-icon {
        font-size: 60px;
        left: 20px;
    }

    .mission-text {
        font-size: 18px;
    }

    .feedback-container {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .about-hero-content h1 {
        font-size: 36px;
    }

    .team-button {
        padding: 14px 32px;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--white);
    border: 2px solid var(--medium-grey);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.pagination__link:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.pagination__link.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    cursor: default;
    pointer-events: none;
}

.pagination__link.prev-next {
    font-size: 20px;
    line-height: 1;
    padding: 0 16px;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПОРТФОЛИО ===== */

/* Герой портфолио */
.portfolio-hero {
    background: var(--light-grey);
    padding: 40px 24px 60px;
    border-bottom: 1px solid var(--medium-grey);
}
.portfolio-hero .container {
    max-width: 1400px;
    margin: 0 auto;
}
.portfolio-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
}
.portfolio-hero .subhead {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 32px;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-light);
    justify-content: flex-start;
    margin: 40px 0 20px;
}
.breadcrumbs__link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.breadcrumbs__link:hover {
    color: var(--primary-red);
}
.breadcrumbs__separator {
    color: var(--medium-grey);
}
.breadcrumbs__current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Фильтры */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}
.filter-btn {
    background: transparent;
    border: 2px solid var(--medium-grey);
    border-radius: 50px;
    padding: 10px 24px;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.filter-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}
.filter-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

/* ===== КАРТОЧКА ДО / ПОСЛЕ ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.portfolio-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--medium-grey);
    transition: var(--transition-smooth);
    cursor: pointer;
}
.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-medium);
}

/* Блок с изображениями До/После */
.before-after {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--light-grey);
}

.before-after__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.before-after__image--before {
    z-index: 2;
    opacity: 1;
}
.before-after__image--after {
    z-index: 1;
    opacity: 0;
}

/* При наведении на карточку показываем «После» */
.portfolio-card:hover .before-after__image--before {
    opacity: 0;
    transform: scale(1.05);
}
.portfolio-card:hover .before-after__image--after {
    opacity: 1;
    transform: scale(1.05);
}

/* Подписи на изображении */
.before-after__labels {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
}
.before-after__label {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}
.before-after__label--before {
    background: rgba(255, 0, 0, 0.8);
}
.before-after__label--after {
    background: rgba(0, 180, 80, 0.85);
}

/* Стрелка-разделитель по центру */
.before-after__divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: var(--transition-smooth);
}
.portfolio-card:hover .before-after__divider {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-red);
    color: var(--white);
}

/* Контент карточки */
.portfolio-card__content {
    padding: 20px 24px 24px;
}
.portfolio-card__badge {
    display: inline-block;
    background: var(--light-red);
    color: var(--primary-red);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.portfolio-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}
.portfolio-card__desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 14px;
}
.portfolio-card__link {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}
.portfolio-card__link:hover {
    gap: 12px;
    color: var(--dark-red);
}
.portfolio-card__link::after {
    content: "→";
    transition: var(--transition-smooth);
}

/* Кнопка "Показать еще" */
.portfolio-load-more {
    text-align: center;
    margin: 0 0 60px;
}
.btn-load-more {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 16px 48px;
    border-radius: 50px;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-load-more:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

/* Секция записи */
.portfolio-appointment {
    padding: 60px 24px 80px;
    background: var(--light-grey);
}
.portfolio-appointment .container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}
.portfolio-appointment h2 {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.portfolio-appointment p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}
.portfolio-appointment .btn-primary {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}
.portfolio-appointment .btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 36px;
    }
    .portfolio-hero .subhead {
        font-size: 16px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }
    .portfolio-filters {
        gap: 8px;
    }
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .portfolio-appointment .container {
        padding: 32px 24px;
    }
    .portfolio-appointment h2 {
        font-size: 28px;
    }
    .portfolio-card__title {
        font-size: 16px;
    }
    .before-after__divider {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .before-after__label {
        font-size: 11px;
        padding: 3px 12px;
    }
}

@media (max-width: 480px) {
    .portfolio-hero h1 {
        font-size: 30px;
    }
    .filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }
    .btn-load-more {
        padding: 14px 32px;
        font-size: 14px;
    }
    .before-after__divider {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .before-after__label {
        font-size: 10px;
        padding: 2px 10px;
    }
}

/* Дополнительные стили для страницы правил */
.rules-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 100px;
    background: var(--white);
}
.rules-content h1 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}
.rules-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 48px 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-red);
}
.rules-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 32px 0 16px 0;
}
.rules-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 28px 0 12px 0;
}
.rules-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.rules-content ul, .rules-content ol {
    margin: 0 0 20px 24px;
    padding-left: 0;
}
.rules-content li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.rules-content strong {
    color: var(--primary-red);
    font-weight: 700;
}
.rules-content em {
    font-style: italic;
    color: var(--text-light);
}
.rules-content .warning-block {
    background: var(--light-red);
    border-left: 4px solid var(--primary-red);
    padding: 20px 24px;
    margin: 32px 0;
    border-radius: 12px;
}
.rules-content .warning-block strong {
    color: var(--primary-red);
}
.rules-content .info-note {
    background: var(--light-grey);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
    font-size: 15px;
}
.rules-content .divider {
    height: 2px;
    background: var(--medium-grey);
    margin: 40px 0;
}
.rules-content .sub-section {
    margin-left: 20px;
}
.rules-content .highlight {
    font-weight: 600;
    color: var(--primary-red);
}
.rules-content .table-style {
    overflow-x: auto;
    margin: 24px 0;
}
@media (max-width: 768px) {
    .rules-content {
        padding: 40px 20px 80px;
    }
    .rules-content h1 {
        font-size: 36px;
    }
    .rules-content h2 {
        font-size: 28px;
    }
    .rules-content h3 {
        font-size: 22px;
    }
}
@media (max-width: 480px) {
    .rules-content h1 {
        font-size: 32px;
    }
    .rules-content h2 {
        font-size: 24px;
    }
    .rules-content h3 {
        font-size: 20px;
    }
    .rules-content .warning-block {
        padding: 16px;
    }
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.page-header {
    margin-bottom: 48px;
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 20px;
}
.page-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}
.page-header .subhead {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 8px;
}

/* ===== ОСНОВНОЙ КОНТЕНТ (ДОКУМЕНТ) ===== */
.agreement-content {
    background: var(--white);
    border-radius: 16px;
    padding: 48px 56px;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--medium-grey);
    transition: var(--transition-smooth);
}
.agreement-content:hover {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-medium);
}

/* Текст документа */
.agreement-content p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

.agreement-content strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* Нумерованные и маркированные списки */
.agreement-content ol,
.agreement-content ul {
    margin: 16px 0 24px 0;
    padding-left: 28px;
}
.agreement-content ol li,
.agreement-content ul li {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 10px;
}

.agreement-content ol li::marker {
    color: var(--primary-red);
    font-weight: 700;
}

.agreement-content ul li::marker {
    color: var(--primary-red);
}

/* Вложенные списки */
.agreement-content ol ol,
.agreement-content ol ul,
.agreement-content ul ol,
.agreement-content ul ul {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 24px;
}

/* ===== ВЫДЕЛЕНИЕ ВАЖНЫХ БЛОКОВ ===== */
.highlight-box {
    background: var(--light-red);
    border-left: 4px solid var(--primary-red);
    padding: 20px 28px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
}
.highlight-box p {
    margin-bottom: 0;
    color: var(--text-dark);
}

/* ===== ИНФОРМАЦИЯ ОБ ОПЕРАТОРЕ ===== */
.operator-info {
    background: var(--light-grey);
    border-radius: 12px;
    padding: 24px 32px;
    margin: 28px 0;
    border: 1px solid var(--medium-grey);
}
.operator-info p {
    margin-bottom: 6px;
    font-size: 15px;
}
.operator-info p:last-child {
    margin-bottom: 0;
}
.operator-info strong {
    color: var(--text-dark);
}

/* ===== КНОПКА ОТПРАВКИ (для интерактива) ===== */
.agreement-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 32px;
    border-top: 2px solid var(--light-grey);
}


.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-dark);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--medium-grey);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: "Manrope", sans-serif;
}
.btn-secondary:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
    border-color: var(--primary-red);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    .page-header h1 {
        font-size: 32px;
    }
    .page-header .subhead {
        font-size: 16px;
    }
    .agreement-content {
        padding: 32px 24px;
    }
    .agreement-content p,
    .agreement-content ol li,
    .agreement-content ul li {
        font-size: 15px;
    }
    .highlight-box {
        padding: 16px 20px;
    }
    .operator-info {
        padding: 20px 24px;
    }
    .agreement-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-primary,
    .btn-secondary {
        text-align: center;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
    }
    .page-header h1 {
        font-size: 28px;
    }
    .agreement-content {
        padding: 24px 16px;
    }
    .agreement-content p,
    .agreement-content ol li,
    .agreement-content ul li {
        font-size: 14px;
    }
    .breadcrumbs {
        font-size: 12px;
        flex-wrap: wrap;
    }
    .operator-info {
        padding: 16px;
    }
    .operator-info p {
        font-size: 14px;
    }
}

/* ===== ДЛЯ ПЕЧАТИ ===== */
@media print {
    .breadcrumbs,
    .agreement-actions {
        display: none !important;
    }
    .agreement-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    .container {
        padding: 20px !important;
    }
}

/* ===== ДОПОЛНИТЕЛЬНО: АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Дополнительные стили для детальной страницы новости */
.article-header {
    margin-bottom: 40px;
}
.article-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}
.article-meta {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 15px;
}
.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-date::before {
    content: "📅";
    font-size: 14px;
}
.article-author {
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-author::before {
    content: "✍️";
    font-size: 14px;
}
.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-medium);
}
.article-content {
    max-width: 900px;
    margin: 0 auto 60px;
}
.article-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 40px 0 20px;
}
.article-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 16px;
    color: var(--text-dark);
}
.article-content p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
    padding-top: 2%;
    margin-bottom: 24px;
}
.article-content ul, 
.article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
}
.article-content li {
    margin-bottom: 8px;
}
.article-content li::marker {
    color: var(--primary-red);
}
.article-content blockquote {
    margin: 40px 0;
    padding: 24px 32px;
    background: var(--light-red);
    border-left: 4px solid var(--primary-red);
    border-radius: 16px;
    font-style: italic;
    font-size: 18px;
    color: var(--text-dark);
    position: relative;
}
.article-content blockquote::before {
    content: "“";
    font-size: 64px;
    color: var(--primary-red);
    font-family: "Playfair Display", serif;
    position: absolute;
    top: -10px;
    left: 16px;
    opacity: 0.5;
}
.share-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 24px 0;
    border-top: 2px solid var(--medium-grey);
    border-bottom: 2px solid var(--medium-grey);
}
.share-label {
    font-weight: 600;
    color: var(--text-dark);
}
.share-links {
    display: flex;
    gap: 12px;
}
.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light-grey);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 20px;
}
.share-link:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
}

/* Похожие новости */
.related-news {
    margin-top: 80px;
}
.related-news .section-title {
    text-align: left;
    margin-bottom: 40px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
/* Форма обратной связи (как на других страницах) */
.feedback-section {
    background: var(--light-grey);
    padding: 80px 24px;
}

.feedback-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
}

.feedback-container h2 {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
}

.feedback-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    text-align: center;
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 36px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .share-block {
        flex-direction: column;
        align-items: flex-start;
    }
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    border: 2px solid var(--medium-grey);
    border-radius: 30px;
    transition: border-color 0.3s ease;
    background: var(--white);
    overflow: hidden;;
}

.search-form:focus-within {
    border-color: var(--primary-red);
}

.search-form .search-input {
    flex: 1;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    background: transparent;
    min-width: 120px;
    color: var(--text-dark)
}



.search-form .search-input::placeholder {
    color: var(--medium-grey);
    font-size: 13px;
}

.search-form .search-button {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    border-radius: 0 30px 30px 0;
}

.search-form .search-button:hover {
    border-color: var(--primary-red);
}

.search-form .search-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-dark);
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

/* ========== СТРАНИЦА ПОИСКА ========== */

.search-results .search-page {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.search-results .search-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--light-grey);
}

.search-results .search-item:last-child {
    border-bottom: none;
}

.search-results .search-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-results .search-item-title:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.search-results .search-item-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 8px 0 4px;
}

.search-results .search-item-url {
    font-size: 13px;
    color: var(--medium-grey);
}

.search-results .search-item-url a {
    color: var(--medium-grey);
    text-decoration: none;
}

.search-results .search-item-url a:hover {
    text-decoration: underline;
}

.search-results .search-item .search-item-date {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Пагинация поиска */
.search-results .modern-page-navigation {
    margin-top: 30px;
    text-align: center;
}

.search-results .modern-page-navigation a,
.search-results .modern-page-navigation span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-results .modern-page-navigation a {
    border: 2px solid var(--medium-grey);
    color: var(--text-dark);
}

.search-results .modern-page-navigation a:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.search-results .modern-page-navigation .modern-page-current {
    background: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.search-results .search-query {
    background: var(--light-grey);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-dark);
}

.search-results .search-query strong {
    color: var(--primary-red);
}

/* Адаптация */
@media (max-width: 768px) {
    .search-results .search-item-title {
        font-size: 16px;
    }
    .search-results .search-item-text {
        font-size: 14px;
    }
}

/* Полноширинный фон */
.hero-full-width {
    width: 100%;
    background-color: #eef1f6;
    padding: 60px 0 0;
    min-height: 620px;
    overflow: hidden;
}

/* Контейнер для контента */
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px 40px;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 520px;
    padding-top: 20px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.15;
    margin-bottom: 8px;
}

.hero-title span {
    color: #d42027;
    display: block;
    font-size: 52px;
}

.hero-description {
    font-size: 17px;
    color: #777;
    margin-bottom: 36px;
    margin-top: 16px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    background: #fff;
    color: #1a1a2e;
    border: 1.5px solid #d0d5dd;
}

.btn-outline:hover {
    border-color: #1a1a2e;
}

.btn-primary {
    background: #d42027;
    color: #fff;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
    display: inline-block;
    border: 1.5px solid #d42027;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
}

.btn-primary:hover {
    background: #b81a20;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.hero-image-wrapper {
    position: relative;
    width: 520px;
    height: 420px;
    flex-shrink: 0;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-top: -2%;
    position: relative;
    z-index: 2;
    padding: 0 0 40px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    flex: 1;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.stat-card::after {
    content: url("img/stars.png");
    position: absolute;
    top: 18px;
    right: 20px;
    color: #d42027;
    font-size: 14px;
    opacity: 0.7;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a2e;
    font-family: "Playfair Display", serif;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: #888;
    margin-top: 8px;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .hero-container {
        padding: 0 40px 40px;
    }

    .hero-top {
        flex-direction: column;
    }

    .hero-image-wrapper {
        width: 100%;
        height: 350px;
    }

    .stats-row {
        flex-wrap: wrap;
        margin-top: -40px;
    }

    .stat-card {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .hero-full-width {
        padding: 40px 0 0;
    }

    .hero-container {
        padding: 0 20px 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-title span {
        font-size: 38px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stat-card {
        flex: 1 1 100%;
    }
}

