/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #2c3e50;
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(42, 127, 143, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 32px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2a7f8f;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 36px;
}

.nav a {
    color: #5a6c7d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2a7f8f;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #2a7f8f;
}

.nav a:hover::after {
    width: 100%;
}

.header-phone {
    color: #2a7f8f;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-phone:hover {
    color: #1e5f6d;
    transform: scale(1.05);
}

/* ===== BURGER MENU ===== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: fixed;
    right: 16px;
    top: 12px;
    z-index: 102;
    width: 44px;
    height: 44px;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 2.5px;
    min-height: 2px;
    background: #2a7f8f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 100px;
    background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), 
                url('img/hero-bg.webp') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(42, 127, 143, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(42, 127, 143, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: #ffffff;
    border: 1px solid rgba(42, 127, 143, 0.2);
    border-radius: 50px;
    font-size: 13px;
    color: #2a7f8f;
    margin-bottom: 32px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(42, 127, 143, 0.1);
}

.hero h1 {
    font-size: clamp(36px, 6vw, 58px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #1a2a35;
    letter-spacing: -1px;
}

.hero p {
    font-size: 19px;
    color: #1a2a35;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #2a7f8f;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(42, 127, 143, 0.3);
}

.btn-primary:hover {
    background: #1e5f6d;
    box-shadow: 0 8px 30px rgba(42, 127, 143, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: #ffffff;
    color: #2a7f8f;
    border: 2px solid #2a7f8f;
}

.btn-outline:hover {
    background: #2a7f8f;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== ADVANTAGES ===== */
.advantages-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2a7f8f 0%, #1e5f6d 100%);
    position: relative;
}

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

.advantage-item {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.advantage-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.advantage-item h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
}

.advantage-item p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: #f8fafb;
}

.section-title {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: #1a2a35;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: #5a6c7d;
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(42, 127, 143, 0.15);
    border-color: #2a7f8f;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f7f8 0%, #e3f2f4 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #2a7f8f;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #2a7f8f 0%, #1e5f6d 100%);
    color: #ffffff;
    transform: scale(1.1);
}

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

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1a2a35;
    font-weight: 700;
}

.service-card p {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.7;
}

/* ===== DOCTORS SECTION ===== */
.doctors-section {
    background: #ffffff; /* Чистый белый фон для контраста */
    padding: 100px 0;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.doctor-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-10px);
}

.doctor-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0f7f8; /* Светлая рамка в тон сайта */
    box-shadow: 0 10px 30px rgba(42, 127, 143, 0.15);
    transition: all 0.3s ease;
}

.doctor-card:hover .doctor-photo {
    border-color: #2a7f8f; /* При наведении рамка становится фирменного цвета */
    box-shadow: 0 15px 40px rgba(42, 127, 143, 0.25);
}

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

.doctor-card h3 {
    font-size: 22px;
    color: #1a2a35;
    margin-bottom: 8px;
    font-weight: 700;
}

.doctor-role {
    color: #2a7f8f; /* Фирменный цвет для специальности */
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.doctor-exp {
    color: #5a6c7d;
    font-size: 14px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .doctors-grid {
        gap: 32px;
    }
    
    .doctor-photo {
        width: 150px;
        height: 150px;
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(42, 127, 143, 0.5) 0%, rgba(30, 95, 109, 0.5) 100%),
        url('img/cta-bg.webp') center/cover;
    text-align: center;
    position: relative;
}

.cta-section h2 {
    color: #ffffff;
    font-size: clamp(32px, 5vw, 44px);
    margin-bottom: 16px;
    font-weight: 800;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 19px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-section .btn-primary {
    background: #ffffff;
    color: #2a7f8f;
}

.cta-section .btn-primary:hover {
    background: #f8fafb;
    transform: translateY(-4px) scale(1.05);
}

/* ===== CONTACTS ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #2a7f8f;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f0f7f8 0%, #e3f2f4 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2a7f8f;
}

.contact-icon svg {
    width: 26px;
    height: 26px;
}

.contact-item h4 {
    font-size: 13px;
    color: #90a4ae;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a,
.contact-item p {
    color: #1a2a35;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.contact-item a:hover {
    color: #2a7f8f;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.map-iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: none;
}

/* ===== LEGAL SECTIONS ===== */
.legal-section {
    padding: 120px 0 80px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto 40px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.legal-content h3 {
    font-size: 20px;
    color: #1a2a35;
    margin: 32px 0 16px;
    font-weight: 700;
}

.legal-content p {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content li {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-date {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e8ecf0;
    font-style: italic;
    color: #90a4ae;
}

.requisites-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.requisites-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8ecf0;
    font-size: 15px;
}

.requisites-table td:first-child {
    color: #90a4ae;
    width: 40%;
    font-weight: 500;
}

.requisites-table td:last-child {
    color: #1a2a35;
    font-weight: 600;
}

.legal-section .btn {
    display: block;
    margin: 0 auto;
}

/* ===== DOCUMENTS ===== */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.document-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.document-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.document-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.document-card > p {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.document-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.document-info span {
    background: #edf2f7;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #4a5568;
}

.document-card .btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== MODAL & LIGHTBOX (NEW) ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.booking-form input, .booking-form select {
    padding: 12px 16px;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.booking-form input:focus, .booking-form select:focus {
    border-color: #2a7f8f;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* ===== COOKIE NOTICE ===== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a2a35;
    color: #ffffff;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e8ecf0;
}

.cookie-content a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-accept {
    padding: 10px 28px;
    background: #2a7f8f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept:hover {
    background: #1e5f6d;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a2a35;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #90a4ae;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2a7f8f;
}

.footer-copy {
    color: #90a4ae;
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-legal {
    color: #6a7d8a;
    font-size: 12px;
}

/* Фон для услуг */
.services-section-bg {
    background: linear-gradient(rgba(248,250,251,0.5), rgba(248,250,251,0.5)), 
                url('img/services-bg.webp') center/cover no-repeat;
}

/* Фон для контактов */
.contacts-section-bg {
    background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), 
                url('img/contacts-bg.webp') center/cover no-repeat;
}

/* ===== MENU OVERLAY ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 42, 53, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .container { padding: 0 20px; }
    .header-inner { gap: 20px; }
    .nav { gap: 24px; }
    .section { padding: 80px 0; }
    .contacts-grid { gap: 48px; }
}

@media (max-width: 768px) {
    .burger-menu { display: flex; }
    .header { position: fixed; z-index: 101; }
    .header-inner { height: 64px; position: relative; z-index: 101; gap: 16px; }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        gap: 0;
        overflow-y: auto;
    }

    .nav.active { right: 0; }
    .nav a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid #f0f0f0; }
    .header-phone { display: none; }
    
    .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
    .gallery-grid { grid-template-columns: 1fr; }
    
    .modal-content { padding: 24px; width: 95%; }
}

@media (max-width: 700px) {
    .hero {
        padding-top: 90px;
    }

    .hero-badge {
        padding: 6px 12px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: 26px
    }

    .hero p {
        font-size: 13px
    }
    .btn { width: 80%; justify-content: center; padding: 12px 12px;}

    .advantage-item {
        padding: 24px 18px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .service-card {
        padding: 20px 20px;
    }

    .documents-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .contacts-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

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

    .contact-item {
        padding: 12px;
    }

    .contact-item p,.contact-item a, .contact-item h4 {
        font-size: 12px
    }

    .service-card h3 {
    font-size: 18px;
}
}