@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #111111;
    --secondary-color: #2c2c2c;
    --accent-color: #5cb85c;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    padding-top: 72px; /* Отступ для фиксированного хэдера */
}

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

/* Шапка сайта */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

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

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
    padding: 8px 10px;
    border-radius: 8px;
}

.nav-list li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 12px 0;
    z-index: 1001;
    list-style: none;
    margin: 0;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.dropdown.open .dropdown-menu {
    display: block;
}

/* Hover эффекты только для десктопа */
@media (min-width: 992px) {
    .nav-list > li > a:hover {
        color: var(--primary-color);
        background: var(--bg-light);
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.dropdown.open > a {
    background: var(--bg-light);
    color: var(--primary-color);
}

.header-phone a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.header-phone a:hover {
    color: var(--secondary-color);
}

/* Главный баннер */
.hero {
    position: relative;
    color: var(--white);
    padding: 130px 50px;
    text-align: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('data/preview_bg.png') center/cover no-repeat;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-description {
    font-size: 1.35rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #4a9d4a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.news-actions {
    margin-top: 30px;
    text-align: center;
}

.news-actions.inside {
    text-align: left;
    margin-top: 16px;
}
.news-page {
    padding: 80px 0;
    background: var(--white);
}

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

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.news-card.large {
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    align-items: center;
}

.news-card.large .news-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    max-width: 100%;
}

.news-card.large .news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.simple-page {
    padding: 80px 0;
    background: var(--white);
}

.simple-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    line-height: 1.7;
    color: var(--text-light);
}

/* Страница документов */
.documents-page {
    padding: 80px 0;
    background: var(--white);
}

.documents-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.documents-nav {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.doc-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-nav-list li {
    margin-bottom: 8px;
}

.doc-nav-list a {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.doc-nav-list a:hover,
.doc-nav-list a.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.documents-content {
    min-height: 400px;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.document-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: var(--bg-light);
    border-radius: 8px;
    flex-shrink: 0;
}

.document-icon svg {
    width: 32px;
    height: 32px;
}

.document-info {
    flex: 1;
}

.document-name {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0 0 6px 0;
    font-weight: 600;
}

.document-type {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.document-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--accent-color);
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    flex-shrink: 0;
}

.document-download:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.document-download svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .documents-layout {
        grid-template-columns: 1fr;
    }

    .documents-nav {
        position: static;
    }

    .doc-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .doc-nav-list li {
        margin-bottom: 0;
    }

    .doc-nav-list a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card.large {
        grid-template-columns: 1fr;
    }

    .news-card.large .news-image img {
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
/* Блок с информацией */
.info-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--text-color);
    margin: 5px 0;
}

.info-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f1f1;
    border: 1px dashed var(--border-color);
}

/* Секции */
section {
    padding: 80px 0;
}

#news {
    margin-bottom: 60px;
}

#about {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

#news .section-title,
#about .section-title {
    margin-bottom: 45px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Услуги */
.services {
    background-color: var(--white);
}

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

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .employees-grid,
    .vacancies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--primary-color);
}

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

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--secondary-color);
}

/* О клинике */
.about {
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 20px;
}

.advantages {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.advantage-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
}

.advantage-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.advantage-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.advantage-number {
    color: #5cb85c !important;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
    display: block;
    line-height: 1.1;
}

/* Врачи */
.doctors {
    background-color: var(--white);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.doctor-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

/* Сетка сотрудников */
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.employee-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

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

.employee-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-photo svg {
    width: 100%;
    height: 100%;
}

.employee-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.employee-position {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* Сетка вакансий */
.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.vacancy-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

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

.vacancy-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vacancy-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vacancy-icon svg {
    width: 100%;
    height: 100%;
}

.vacancy-position {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.vacancy-qualification {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

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

.doctor-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.doctor-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.doctor-specialty {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.doctor-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.doctor-link:hover {
    color: var(--secondary-color);
}

/* Футер */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.map-section {
    width: 100%;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.map-section #map {
    width: 100%;
    height: 420px;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 360px;
    z-index: 2;
    border: 1px solid var(--border-color);
}

.map-overlay h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.map-overlay p {
    margin: 6px 0;
    color: var(--text-color);
    line-height: 1.5;
}

.map-overlay a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.map-overlay a:hover {
    color: var(--secondary-color);
}
.map-marker {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Больший отступ для мобильных, где хэдер выше */
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-list {
        justify-content: center;
        gap: 15px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.15rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid,
    .doctors-grid,
    .employees-grid,
    .vacancies-grid {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .map-overlay {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: none;
        max-width: none;
    }
}

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

    .hero-title {
        font-size: 1.5rem;
    }

    section {
        padding: 50px 0;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

