:root {
    --primary: #4a4a4a;
    --primary-dark: #2d2d2d;
    --primary-light: #6b6b6b;
    --text: #4a4a4a;
    --text-light: #9a9a9a;
    --text-muted: #b8b8b8;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-gray: #f0f0f0;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 50px;
    --transition: all 0.3s ease;
    --shadow-section: 0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-section-hover: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-content { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.preloader-wheel {
    position: absolute; width: 100%; height: 100%;
    border: 3px solid transparent; border-top-color: var(--primary); border-right-color: var(--primary-light);
    border-radius: 50%; animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.preloader-wheel::before {
    content: ''; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 3px solid transparent; border-top-color: var(--primary-light); border-right-color: var(--primary);
    border-radius: 50%; animation: spin 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}
.preloader-wheel::after {
    content: ''; position: absolute; top: 18px; left: 18px; right: 18px; bottom: 18px;
    border: 3px solid transparent; border-top-color: var(--primary); border-right-color: var(--primary-light);
    border-radius: 50%; animation: spin 2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.preloader-logo {
    position: relative; z-index: 10; width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    color: white; font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700;
    box-shadow: 0 10px 30px rgba(45, 45, 45, 0.3); animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.9; } }
.preloader-text {
    position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
    font-family: 'Playfair Display', serif; font-size: 18px; color: var(--primary-dark);
    font-weight: 600; letter-spacing: 1px; white-space: nowrap;
}
.preloader-dots { display: inline-flex; gap: 4px; margin-left: 4px; }
.preloader-dots span {
    width: 6px; height: 6px; background: var(--primary); border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.preloader-dots span:nth-child(1) { animation-delay: -0.32s; }
.preloader-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text); line-height: 1.6;
    background: #e8eaed;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-large { width: 32px; height: 32px; }
.icon-xl { width: 40px; height: 40px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 40px; background: var(--primary-dark); color: white;
    font-weight: 500; border-radius: var(--radius-xl); border: none;
    cursor: pointer; transition: var(--transition); font-size: 16px; gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: white; }
.section { padding: 100px 0; }
.section-title {
    text-align: center; font-family: 'Playfair Display', serif;
    font-size: 42px; font-weight: 600; margin-bottom: 20px; color: var(--primary-dark); line-height: 1.2;
}
.section-subtitle {
    text-align: center; font-size: 18px; color: var(--text-light);
    max-width: 600px; margin: 0 auto 60px; line-height: 1.6;
}


.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 1500;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.sidebar {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100%;
    background: white; z-index: 1600; transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15); display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar.active { left: 0; }
.sidebar-header { padding: 30px 24px 20px; border-bottom: 1px solid var(--bg-gray); }
.sidebar-header .logo-wrapper { display: flex; align-items: center; gap: 12px; }
.sidebar-nav { padding: 20px 0; flex: 1; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 14px; padding: 16px 24px;
    font-size: 16px; font-weight: 500; color: var(--text); transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--bg-light); color: var(--primary-dark); border-left-color: var(--primary-dark); }
.sidebar-nav a .icon { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-footer { padding: 20px 24px; border-top: 1px solid var(--bg-gray); }
.sidebar-footer .phone { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary-dark); font-size: 16px; margin-bottom: 16px; }
.sidebar-footer .btn { width: 100%; padding: 14px; font-size: 15px; }

.mobile-tap-zone { display: none; position: fixed; top: 0; left: 0; width: 25%; height: 100%; z-index: 1400; cursor: pointer; }
.mobile-tap-zone::after {
    content: '☰'; position: fixed; top: 50%; left: 12px; transform: translateY(-50%);
    width: 40px; height: 40px; background: rgba(45, 45, 45, 0.8); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 18px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: var(--transition); z-index: 1450;
}


header {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
    z-index: 1000; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-wrapper { display: flex; align-items: center; gap: 12px; }
.logo { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; color: var(--primary-dark); letter-spacing: -0.5px; }
.logo-placeholder {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 24px; font-weight: bold; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.logo-text { line-height: 0.9; }
.logo-subtitle { font-size: 11px; color: var(--text-light); font-weight: 400; letter-spacing: 0.5px; font-family: 'Inter', sans-serif; }
.nav { display: flex; gap: 40px; }
.nav a { font-weight: 400; font-size: 15px; color: var(--primary); position: relative; padding: 5px 0; }
.nav a:hover, .nav a.active { color: var(--primary-dark); }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--primary-dark); transition: var(--transition); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-contacts { display: grid; align-items:end; gap: 18px; }
.phone { font-weight: 450; color: var(--primary); font-size: 85%; }
.header-btn { padding: 12px 28px; font-size: 14px; }

.section-wrapper {
    background: white; margin: 0 0 20px 0; border-radius: 24px;
    box-shadow: var(--shadow-section); overflow: hidden; transition: box-shadow 0.3s ease;
}
.section-wrapper:hover { box-shadow: var(--shadow-section-hover); }
.section-wrapper:last-child { margin-bottom: 0; }


.hero { padding-top: 180px; padding-bottom: 120px; background: linear-gradient(135deg, #ffffff 0%, #f3f5f8 50%, #eef1f5 100%); }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1100px; margin: 0 auto; }
.hero-text { text-align: left; }
.hero-text h1 { font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 600; line-height: 1.2; margin-bottom: 30px; color: var(--primary-dark); }
.hero-text p { font-size: 20px; color: var(--text-light); margin-bottom: 40px; line-height: 1.8; font-weight: 300; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 30px; margin-top: 50px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; color: var(--text-light); }
.badge-icon { width: 20px; height: 20px; color: var(--primary-dark); }
.hero-logo { display: flex; align-items: center; justify-content: center; }
.hero-logo-box {
    width: 100%; max-width: 420px; aspect-ratio: 1;
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
    border-radius: 32px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.1); border: 1px solid rgba(0,0,0,0.04);
}
.hero-logo-box svg { width: 65%; height: 65%; color: var(--primary-light); opacity: 0.35; }

.features { background: linear-gradient(180deg, #eef1f5 0%, #ffffff 100%); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-card {
    text-align: center; padding: 40px 25px; border-radius: 16px; background: white;
    transition: var(--transition); border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 20px; color: var(--primary-dark); }
.feature-title { font-weight: 600; font-size: 18px; margin-bottom: 12px; color: var(--primary-dark); font-family: 'Playfair Display', serif; }
.feature-desc { font-size: 14px; color: var(--text-light); line-height: 1.6; }


.about { background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text h3 { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 600; margin-bottom: 25px; color: var(--primary-dark); line-height: 1.2; }
.about-text p { margin-bottom: 20px; color: var(--text-light); line-height: 1.8; font-size: 16px; }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 30px; }
.about-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); }
.about-item .icon { width: 22px; height: 22px; flex-shrink: 0; }
.about-image-slider {
    position: relative; border-radius: 24px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3; background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%); border: 1px solid rgba(0,0,0,0.04);
}
.about-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.2s ease-in-out;
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
}
.about-slide.active { opacity: 1; }
.about-slide-placeholder { width: 80px; height: 80px; color: var(--primary-light); opacity: 0.4; }
.about-slide-label { font-size: 14px; color: var(--text-light); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.about-slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.about-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, 0.2); cursor: pointer; transition: all 0.3s ease; border: none; padding: 0; }
.about-dot.active { background: var(--primary-dark); transform: scale(1.3); }
.about-slider-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%); transition: width 0.1s linear; border-radius: 0 0 24px 24px; z-index: 10; }


.services { background: linear-gradient(180deg, #f8f9fa 0%, #f3f5f8 100%); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card {
    background: white; border-radius: 16px; padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05); transition: var(--transition); border: 1px solid rgba(0,0,0,0.04);
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 45px rgba(0,0,0,0.1); }
.service-icon { width: 60px; height: 60px; background: var(--bg-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 25px; color: var(--primary-dark); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.service-icon .icon { width: 32px; height: 32px; }
.service-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; margin-bottom: 15px; color: var(--primary-dark); line-height: 1.3; }
.service-desc { font-size: 15px; color: var(--text-light); margin-bottom: 25px; flex-grow: 1; line-height: 1.6; }
.service-link { color: var(--primary); font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.service-link:hover { color: var(--primary-dark); gap: 10px; }

.doctors-3d {
    background: linear-gradient(135deg, #f3f5f8 0%, #ffffff 100%);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.carousel-3d-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-3d-track {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.doc-card {
    position: absolute;
    width: 460px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, filter;
    cursor: pointer;
}

.doc-card:hover { box-shadow: 0 15px 45px rgba(0,0,0,0.12); }

.doc-card-inner {
    display: grid;
    grid-template-columns: 160px 1fr;
    min-height: 400px;
}

.doc-card-photo {
    background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.doc-card-photo svg { width: 90px; height: 90px; color: var(--primary-light); opacity: 0.4; }

.doc-card-photo::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(74, 159, 216, 0.06) 0%, rgba(30, 90, 142, 0.06) 100%);
}

.doc-card-body { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; }
.doc-card-name { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; color: var(--primary-dark); margin-bottom: 8px; line-height: 1.3; }
.doc-card-specialty { font-size: 15px; color: var(--primary); font-weight: 500; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--bg-gray); }
.doc-card-exp { font-size: 14px; color: var(--text-light); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.doc-card-exp .icon { width: 16px; height: 16px; }
.doc-card-desc { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 18px; flex-grow: 1; }
.doc-card-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.doc-skill { font-size: 11px; padding: 5px 12px; background: var(--bg-light); color: var(--primary); border-radius: 16px; font-weight: 500; border: 1px solid var(--bg-gray); }
.doc-card-btn { align-self: flex-start; padding: 11px 26px; font-size: 14px; }

.carousel-3d-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px; height: 60px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 30;
    color: var(--primary);
}
.carousel-3d-arrow:hover { background: var(--primary); color: white; transform: translateY(-50%) scale(1.08); box-shadow: 0 12px 40px rgba(0,0,0,0.18); }
.carousel-3d-arrow.prev { left: -10px; }
.carousel-3d-arrow.next { right: -10px; }
.carousel-3d-arrow svg { width: 24px; height: 24px; }

.carousel-3d-dots { display: flex; justify-content: center; gap: 10px; margin-top: 35px; }
.carousel-3d-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-gray); cursor: pointer; transition: var(--transition); border: none; padding: 0; }
.carousel-3d-dot.active { background: var(--primary-dark); transform: scale(1.3); width: 30px; border-radius: 5px; }

.reviews { background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%); }
.reviews-header { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.reviews-rating { text-align: center; }
.reviews-rating-value { font-size: 56px; font-weight: 700; color: var(--primary-dark); line-height: 1; font-family: 'Playfair Display', serif; }
.reviews-rating-stars { color: var(--primary-dark); font-size: 22px; margin: 8px 0; }
.reviews-rating-count { font-size: 14px; color: var(--text-light); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.review-card { background: white; border-radius: 16px; padding: 30px; box-shadow: 0 8px 30px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04); transition: var(--transition); }
.review-card:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.review-avatar { width: 52px; height: 52px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-dark); font-weight: 600; font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.review-author { font-weight: 600; font-size: 16px; color: var(--primary-dark); font-family: 'Playfair Display', serif; }
.review-date { font-size: 13px; color: var(--text-light); }
.review-stars { color: var(--primary-dark); font-size: 15px; margin-bottom: 12px; }
.review-text { font-size: 15px; color: var(--text-light); line-height: 1.7; }
.review-source { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(0,0,0,0.06); font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.load-more { text-align: center; margin-top: 50px; }


.contacts { background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); color: var(--text); }
.contacts .section-title { color: var(--primary-dark); }
.contacts .section-subtitle { color: var(--text-light); }
.contacts-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contacts-info {
    background: white; border-radius: 24px; padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05); border: 1px solid rgba(0,0,0,0.04);
}
.contacts-info h3 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid var(--bg-gray); color: var(--primary-dark); }
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; min-width: 44px; background: var(--bg-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary-dark); border: 1px solid var(--bg-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.contact-icon .icon { width: 22px; height: 22px; }
.contact-text { font-size: 15px; line-height: 1.6; color: var(--text); }
.contact-text strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--primary-dark); font-size: 16px; }
.contact-text a { color: var(--primary); }
.contact-text .time { color: var(--text-light); }
.contact-links { margin-top: 30px; }
.contact-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; background: var(--primary-dark); color: white; border-radius: var(--radius-xl); font-weight: 500; font-size: 15px; transition: var(--transition); border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.contact-btn:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.contacts-map-wrapper { border-radius: 24px; overflow: hidden; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); border: 1px solid rgba(0,0,0,0.04); min-height: 450px; }
.contacts-map-wrapper iframe { width: 100%; height: 100%; min-height: 450px; border: none; display: block; }


.licenses { background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); text-align: center; }
.licenses .section-title { text-align: left; font-size: 38px; margin-bottom: 12px; }
.licenses .section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--primary-dark); margin-top: 12px; }
.licenses .section-subtitle { text-align: left; max-width: 700px; margin-left: 0; margin-bottom: 50px; }
.licenses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.license-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05); transition: var(--transition); border: 1px solid rgba(0,0,0,0.04); }
.license-card:hover { transform: translateY(-5px); box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1); }
.license-card-image { width: 100%; aspect-ratio: 3 / 4; background: linear-gradient(135deg, #fef9f0 0%, #fdf3e7 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--bg-gray); }
.license-card-image::before { content: ''; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; border: 2px solid rgba(180, 130, 80, 0.3); border-radius: 4px; }
.license-card-image::after { content: ''; position: absolute; top: 16px; left: 16px; right: 16px; bottom: 16px; border: 1px solid rgba(180, 130, 80, 0.15); border-radius: 2px; }
.license-card-image svg { width: 80px; height: 80px; color: rgba(180, 130, 80, 0.3); z-index: 1; }
.license-card-body { padding: 24px 20px; text-align: left; }
.license-card-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--primary-dark); line-height: 1.4; }


footer { background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%); color: rgba(255,255,255,0.7); padding: 60px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-brand .logo-wrapper { margin-bottom: 20px; }
.footer-brand .logo { color: white; }
.footer-brand .logo-placeholder { background: linear-gradient(135deg, white 0%, var(--bg-light) 100%); color: var(--primary-dark); }
.footer-brand p { color: rgba(255,255,255,0.7); margin-bottom: 25px; max-width: 350px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: var(--transition); color: white; border: 1px solid rgba(255,255,255,0.1); }
.footer-social a:hover { background: white; color: var(--primary-dark); transform: translateY(-2px); }
.footer-links h4 { color: white; font-weight: 600; margin-bottom: 20px; font-size: 16px; font-family: 'Playfair Display', serif; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.6; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-content { background: white; border-radius: 20px; padding: 40px; max-width: 500px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; animation: modalSlideIn 0.3s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 20px; right: 20px; font-size: 32px; background: none; border: none; cursor: pointer; color: var(--text-light); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); }
.modal-close:hover { background: var(--bg-light); color: var(--primary-dark); }
.modal-title { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--primary-dark); margin-bottom: 10px; text-align: center; }
.modal-subtitle { color: var(--text-light); text-align: center; margin-bottom: 30px; font-size: 15px; }
.appointment-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 500; font-size: 14px; color: var(--primary-dark); }
.form-group input, .form-group select, .form-group textarea { padding: 14px 18px; border: 1px solid var(--bg-gray); border-radius: 12px; font-size: 15px; font-family: 'Inter', sans-serif; transition: var(--transition); background: var(--bg-white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74, 159, 216, 0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit { margin-top: 10px; padding: 16px; font-size: 16px; font-weight: 600; }
.form-note { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 10px; }
.success-icon { width: 80px; height: 80px; background: #4caf50; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.modal-content.success { text-align: center; padding: 50px 40px; }
.modal-content.success h2 { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--primary-dark); margin-bottom: 15px; }
.modal-content.success p { color: var(--text-light); margin-bottom: 25px; }

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .hero-text { text-align: center; }
    .hero-text h1, .hero-text p { text-align: center; }
    .hero-buttons, .hero-badges { justify-content: center; }
    .hero-logo { order: -1; }
    .hero-logo-box { max-width: 300px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .about-list { justify-content: center; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .licenses-grid { grid-template-columns: repeat(2, 1fr); }
    .contacts-wrapper { grid-template-columns: 1fr; }
    .contacts-map-wrapper { min-height: 350px; }
    .contacts-map-wrapper iframe { min-height: 350px; }
    .about-image-slider { aspect-ratio: 16 / 10; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .doc-card { width: 380px; }
    .doc-card-inner { grid-template-columns: 140px 1fr; }
    .carousel-3d-wrapper { padding: 0 40px; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .header-contacts .btn { display: none; }
    .section { padding: 70px 0; }
    .section-title { font-size: 30px; }
    .hero-text h1 { font-size: 34px; }
    .hero-text p { font-size: 17px; }
    .features-grid, .services-grid, .reviews-grid { grid-template-columns: 1fr; }
    .about-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .modal-content { padding: 30px 20px; }
    .modal-title { font-size: 26px; }
    .logo { font-size: 18px; }
    .logo-placeholder { height: 40px; width: 40px; }
    .logo-subtitle { display: none; }
    .about-image-slider { aspect-ratio: 4 / 3; border-radius: 20px; }
    .licenses-grid { grid-template-columns: 1fr; }
    .licenses .section-title { text-align: center; font-size: 28px; }
    .licenses .section-title::after { margin: 12px auto 0; }
    .licenses .section-subtitle { text-align: center; }
    .contacts-wrapper { gap: 40px; }
    .contacts-info { padding: 30px 24px; }
    .contacts-info h3 { font-size: 24px; }

    .mobile-tap-zone { display: block; }

    .hero .btn, .hero .btn-outline { padding: 20px 48px; font-size: 18px; min-height: 60px; width: 100%; max-width: 320px; }
    .contact-btn { padding: 18px 36px; font-size: 17px; min-height: 56px; width: 100%; justify-content: center; }
    .btn-submit { padding: 18px; font-size: 17px; min-height: 54px; }
    .services .btn-outline { padding: 16px 36px; font-size: 16px; min-height: 52px; }

    .carousel-3d-wrapper { padding: 0 10px; }
    .carousel-3d-track { height: 520px; }
    .doc-card { width: 340px; }
    .doc-card-inner { grid-template-columns: 1fr; min-height: 460px; }
    .doc-card-photo { min-height: 200px; }
    .doc-card-photo svg { width: 80px; height: 80px; }
    .doc-card-body { padding: 28px 24px; }
    .doc-card-name { font-size: 22px; }
    .doc-card-specialty { font-size: 14px; }
    .doc-card-desc { font-size: 13px; margin-bottom: 16px; }
    .doc-card-skills { margin-bottom: 18px; }
    .doc-skill { font-size: 11px; padding: 4px 10px; }
    .doc-card-btn { width: 100%; text-align: center; padding: 12px 24px; font-size: 15px; }
    .carousel-3d-arrow { width: 48px; height: 48px; }
    .carousel-3d-arrow.prev { left: 0; }
    .carousel-3d-arrow.next { right: 0; }
    .carousel-3d-arrow svg { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
    .header-contacts { display: none ; }
    .hero-text h1 { font-size: 28px; }
    .hero-text p { font-size: 15px; }
    .hero .btn, .hero .btn-outline { padding: 18px 36px; font-size: 16px; min-height: 54px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-logo-box { max-width: 240px; border-radius: 24px; }
    .contact-btn { padding: 16px 28px; font-size: 15px; min-height: 52px; }
    .section-subtitle {display: none;}
    .carousel-3d-track { height: 540px; }
    .doc-card { width: 300px; }
    .doc-card-photo { min-height: 170px; }
    .doc-card-photo svg { width: 65px; height: 65px; }
    .doc-card-body { padding: 24px 20px; }
    .doc-card-name { font-size: 20px; }
    .doc-card-specialty { font-size: 13px; margin-bottom: 12px; padding-bottom: 12px; }
    .doc-card-exp { font-size: 13px; margin-bottom: 14px; }
    .doc-card-desc { font-size: 12px; margin-bottom: 14px; }
    .doc-skill { font-size: 10px; padding: 3px 8px; }
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate { opacity: 0; animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s ;}