/* ===== БАЗОВЫЕ СТИЛИ ===== */
:root {
    --primary: #2AA1AF;
    --primary-dark: #1E8C99;
    --primary-light: #E6F4F1;
    --text-dark: #2C2C2C;
    --text-light: #5A5A5A;
    --bg-white: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-gray: #F9F9F9;
    --dark-bg: #333333;
    --black: #1A1A1A;
    --border: #E0E0E0;
    --border-light: #EDEDED;
    --success: #4CAF50;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

.teal-filter {
    filter: brightness(0) saturate(100%) invert(18%) sepia(77%) saturate(1352%) hue-rotate(154deg) brightness(95%) contrast(89%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    padding-top: 6rem;
}

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

/* ===== ТИПОГРАФИЯ ===== */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== ШАПКА ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.phone-button {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.phone-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===== ГЕРОЙ СЕКЦИЯ ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../images/hero-background.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== КАРТОЧКИ ПРЕИМУЩЕСТВ ===== */
.features {
    padding: 5rem 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    max-width: 100%;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ===== УСЛУГИ И АККОРДЕОНЫ ===== */
.services {
    padding: 5rem 0;
}

.accordion {
    max-width: 800px;
    margin: 2rem auto 0;
    width: 100%;
}

.accordion-item {
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    background: white;
    transition: var(--transition);
    color: var(--text-dark);
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-icon {
    transition: var(--transition);
    color: var(--primary);
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    background: white;
}

.accordion-content.active {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: 1100px;
}

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.service-icon img {
    width: 60px;
    height: 60px;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.service-list li {
    position: relative;
    padding-left: 1.2rem;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ===== ГАЛЕРЕЯ (Старая) ===== */
.gallery {
    padding: 5rem 0;
    background: var(--bg-light);
}

/* ===== НОВАЯ ГАЛЕРЕЯ В БЛОКЕ О КЛИНИКЕ ===== */
.clinic-gallery {
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    background: #000;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.gallery-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
}

.gallery-content h3 {
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== ЭТАПЫ РАБОТЫ ===== */
.steps {
    padding: 5rem 0;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

/* .steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border);
    z-index: 1;
} */

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.step-number img {
    width: 60px;
    height: 60px;
    max-width: 100%;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===== КАРТОЧКИ ВРАЧЕЙ ===== */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.doctor-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.doctor-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}



.doctor-specialty {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-align: left;
}

.doctor-key-info {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
    text-align: left;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.doctor-key-info li {
    margin: 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.3;
    position: relative;
    padding-left: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.doctor-key-info li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.doctor-key-info li strong {
    color: var(--text-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 0.15rem;
}

.doctor-details-btn {
    margin-top: auto;
    background: var(--primary-light);
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
}

.doctor-details-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.text-light {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0.5rem 0 0.75rem;
    text-align: left;
}

.text-small {
    font-size: 0.9rem;
}

/* ===== ДОКУМЕНТЫ ===== */
.documents-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.document-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.document-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.document-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.download-btn {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--primary-dark);
}

/* ===== ПРАЙС-ЛИСТ ===== */
.price-warning {
    background: var(--primary-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.price-table th {
    background: var(--primary-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.doctor-card .doctor-details-btn {
    margin-top: auto;
}

.price-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    color: var(--primary);
}

/* ===== КОНТАКТЫ ===== */
.contacts-section {
    padding: 5rem 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: flex-start;
    /* Изменил с stretch на flex-start */
}

.contacts-left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contacts-right-col {
    display: flex;
    flex-direction: column;
    position: sticky;
    /* Делаем карту прилипающей */
    top: 100px;
    /* Отступ от верхнего края */
    height: fit-content;
    /* Высота по содержимому */
}

/* Заголовок для колонок на странице контактов */
.contacts-col-title {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contacts-right-col {
        position: static;
    }
}

/* Контактная информация в компактном виде */
.contact-info-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-col {
    display: flex;
    flex-direction: column;
}

.contact-compact-item {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.contact-compact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-icon-small {
    color: var(--primary);
    font-size: 1rem;
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-compact-content {
    flex: 1;
}

.contact-compact-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-compact-content p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.phone-number {
    margin: 0.5rem 0;
}

.phone-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-block;
    padding: 0.25rem 0;
}

.phone-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.contact-compact-note {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 0.5rem;
}

.contact-working-hours {
    margin-bottom: 0.25rem;
}

.contact-working-hours strong {
    color: var(--text-dark);
    font-weight: 500;
    min-width: 40px;
    display: inline-block;
}

.contact-email {
    color: var(--primary);
    text-decoration: none;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Информация об организациях в аккордеонах */
.org-info {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.org-info:last-child {
    border-bottom: none;
}

.org-info h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.org-info p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.org-info strong {
    color: var(--text-dark);
    min-width: 160px;
    display: inline-block;
    font-weight: 500;
}

.org-info a {
    color: var(--primary);
    text-decoration: none;
}

.org-info a:hover {
    text-decoration: underline;
}

/* Карта 2GIS */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 500px;
    /* Фиксированная высота вместо 100% */
    position: relative;
    background: var(--bg-light);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
    display: block;
}

/* Кнопка под картой */
.map-button-container {
    margin-top: 1rem;
    text-align: center;
}

/* Фото фасада */
.facade-photo {
    margin-top: 3rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.facade-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== МОДАЛЬНЫЕ ОКНА ДЛЯ ВРАЧЕЙ ===== */
.doctor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.doctor-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.modal-header h2 {
    margin-bottom: 0;
    color: var(--text-dark);
    padding-right: 50px;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.modal-body {
    padding: 2rem;
}

.doctor-detail-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.doctor-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.doctor-detail-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.doctor-detail-item p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.doctor-detail-item p strong {
    color: var(--text-dark);
    min-width: 160px;
    display: inline-block;
}

.doctor-detail-item ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.doctor-detail-item li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.5;
}

.doctor-detail-item li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-contact {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--primary);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    /* Aligns title text baseline approx with logo text or center of logo */
    padding-top: 0.5rem;
}

.footer-nav-col {
    padding-left: 1rem;
}

.footer-nav-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav-vertical a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.2rem 0;
    font-size: 0.95rem;
}

.footer-nav-vertical a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-social-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.copyright {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* ===== УТИЛИТЫ ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mt-5 {
    margin-top: 5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

.pb-2 {
    padding-bottom: 2rem;
}

/* ===== ЗАГЛУШКИ ДЛЯ ИЗОБРАЖЕНИЙ ===== */
.img-placeholder {
    background: linear-gradient(45deg, var(--primary-light), var(--bg-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 500;
    text-align: center;
    overflow: hidden;
}

.img-placeholder.hero {
    height: 100%;
    font-size: 1.5rem;
    padding: 2rem;
}

.img-placeholder.gallery {
    height: 100%;
    font-size: 1rem;
    padding: 1rem;
}

.img-placeholder.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    font-size: 2rem;
}

/* ===== СТИЛИ ДЛЯ ОТЗЫВОВ 2GIS ===== */
.reviews-container {
    position: relative;
    min-height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 2rem 0;
    background: var(--bg-light);
}

.reviews-widget {
    width: 100%;
    height: 824px;
    border: none;
    display: none;
}

.reviews-widget.loaded {
    display: block;
}

.reviews-widget iframe {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.reviews-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.reviews-placeholder.hidden {
    display: none;
}

/* Стили для карты 2GIS */
.map-container.loading {
    background: linear-gradient(45deg, var(--primary-light), var(--bg-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container.loading::before {
    content: 'Загрузка карты...';
    color: var(--primary);
    font-weight: 500;
}

/* ===== АКТИВНЫЙ ЯКОРЬ ===== */
:target {
    scroll-margin-top: 80px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contacts-left-col {
        order: 2;
    }

    .contacts-right-col {
        order: 1;
        position: static;
        /* Убираем sticky на мобильных */
        height: auto;
    }

    .map-container {
        height: 400px;
        /* Уменьшаем высоту карты на планшетах */
    }

    .contact-info-compact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .steps-container {
        flex-direction: column;
        gap: 3rem;
    }

    .steps-container::before {
        display: none;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-nav-col {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .phone-button span {
        display: none;
    }

    .hero {
        min-height: 80vh;
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .doctor-card {
        padding: 1.5rem;
    }



    .modal-content {
        max-height: 85vh;
        margin: 1rem;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
    }

    /* Контакты для мобильных */
    .map-container {
        height: 350px;
        min-height: auto;
        /* Убираем min-height */
    }

    .contacts-col-title {
        font-size: 1.3rem;
    }

    .contact-compact-item {
        padding: 1rem;
    }

    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding-top: 1rem;
    }

    .footer-nav {
        gap: 1rem;
    }

    .footer-title {
        margin-bottom: 1rem;
    }

    .social-links {
        justify-content: flex-start;
    }

    .header.scrolled {
        padding: 0.5rem 0;
    }

    html {
        scroll-padding-top: 85px;
    }

    body {
        padding-top: 80px;
    }

    :target {
        scroll-margin-top: 70px;
    }

    .logo-img {
        height: 35px;
    }

    .footer-logo-img {
        height: 35px;
    }

    .reviews-widget {
        height: 600px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Fix visual artifacts */
    body,
    html {
        box-shadow: none !important;
    }

    .footer {
        padding: 1.5rem 0 0.75rem;
    }

    /* Resize large buttons on mobile */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .footer-top {
        gap: 1.5rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-nav-vertical,
    .footer-social {
        text-align: center;
    }

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

    .footer-bottom {
        text-align: center;
    }

    .price-table {
        display: block;
        overflow-x: auto;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .doctor-card {
        padding: 1.25rem;
    }

    .doctor-key-info {
        max-width: 100%;
    }

    .doctor-details-btn {
        max-width: 100%;
    }

    .map-container {
        height: 300px;
    }

    .contact-icon-small {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .phone-link {
        font-size: 0.95rem;
    }

    .reviews-widget {
        height: 500px;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПРАЙС-ЛИСТА ===== */
.price-search-container {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 2;
}

.price-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.price-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 161, 175, 0.1);
}

.filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-select {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.price-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-light);
}

.price-table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    background: white;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.price-table th {
    background: var(--primary-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.price-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover {
    background: var(--bg-light);
}

.price-group-header {
    background: var(--bg-gray) !important;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

.price-code {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-light);
    min-width: 120px;
}

.price-name {
    color: var(--text-dark);
    line-height: 1.5;
}

.price-value {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    color: var(--primary);
    text-align: right;
    white-space: nowrap;
    min-width: 120px;
}

.price-free {
    color: var(--success);
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border);
}

.export-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-full-price {
    margin-top: 3rem;
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}