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

:root {
    --red: #d32f2f;
    --green: #388e3c;
    --dark-red: #b71c1c;
    --dark-green: #2e7d32;
    --light-gray: #f5f5f5;
    --gray: #757575;
    --white: #ffffff;
    --text-dark: #212121;
    --border-color: #e0e0e0;
    --blue: #42a5f5;
    --light-blue: #e3f2fd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Top Bar */
.topbar {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 13px;
    font-weight: 700;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
    left: 0;
    right: 0;
}

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

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-address {
    color: var(--green);
    font-weight: 700;
}

.topbar-divider {
    color: var(--green);
    font-weight: 700;
}

.topbar-phone {
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
}

.topbar-phone:hover {
    text-decoration: underline;
}

.topbar-schedule {
    display: flex;
    gap: 15px;
    font-weight: 700;
}

.schedule-label {
    color: var(--green);
}

.schedule-time {
    color: var(--red);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    z-index: 1001;
    width: 100%;
    left: 0;
    right: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
    position: relative;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo-additional-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    justify-content: center;
}

.logo-image {
    height: 160px;
    width: auto;
    object-fit: contain;
}

.logo-additional {
    height: 80px;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Navigation Menu - отдельно под шапкой */
.main-nav {
    background: var(--green);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    left: 0;
    right: 0;
}

.main-nav .container {
    padding: 0 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px 0;
    margin: 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-list a:hover {
    color: var(--red);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
    background: var(--red);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex: 1;
    justify-content: flex-end;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--light-blue);
    padding: 4px 8px;
    border-radius: 16px;
    border: 1px solid var(--green);
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-dark);
    padding: 2px 6px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(56, 142, 60, 0.1);
}

.lang-btn.active {
    background: var(--green);
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

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

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

.btn-header {
    background: var(--green);
    color: var(--white);
    white-space: nowrap;
}

.btn-header:hover {
    background: var(--dark-green);
}

.btn-small {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section со слайдером */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.hero-slider-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-slider {
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.slide {
    display: none;
    animation: fadeIn 0.5s;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.promo-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.promo-card.highlight {
    border-left: 5px solid var(--green);
}

.promo-card h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.promo-card p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: var(--red);
    pointer-events: all;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background: var(--red);
    color: var(--white);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--red);
    width: 30px;
    border-radius: 6px;
}

/* Section Title */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    font-weight: 700;
}

/* Что мы лечим */
.what-we-treat {
    padding: 80px 0;
    background: var(--white);
}

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

.treat-column {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.treat-column h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--red);
    font-weight: 600;
}

.treat-column ul {
    list-style: none;
}

.treat-column li {
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
}

.treat-column li:last-child {
    border-bottom: none;
}

/* Вестибулярная лаборатория */
.vestibular-lab {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.vestibular-text h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.vestibular-text ul {
    list-style: none;
    margin: 20px 0 30px;
}

.vestibular-text li {
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-dark);
}

.vestibular-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Врачи */
.doctors {
    padding: 80px 0;
    background: var(--white);
}

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

.doctor-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

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

.doctor-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--light-gray);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 14px;
}

.doctor-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.doctor-role {
    font-size: 14px;
    color: var(--red);
    margin-bottom: 10px;
    font-weight: 500;
}

.doctor-exp {
    font-size: 16px;
    color: var(--green);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Рейтинги */
.ratings {
    padding: 60px 0;
    background: var(--light-gray);
}

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

.rating-item {
    text-align: center;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rating-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 5px;
}

.rating-max {
    font-size: 18px;
    color: var(--gray);
}

/* Отзывы */
.reviews {
    padding: 80px 0;
    background: var(--white);
}

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

.review-card {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-header strong {
    font-size: 18px;
    color: var(--text-dark);
}

.review-date {
    font-size: 14px;
    color: var(--gray);
}

.review-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-doctor {
    font-size: 14px;
    color: var(--red);
    font-weight: 500;
}

.reviews-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* О клинике */
.about {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.about-text p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.8;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: var(--white);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active {
    border-color: var(--red);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    background: var(--white);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: var(--red);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 25px 30px;
    color: var(--gray);
    line-height: 1.7;
    font-size: 16px;
}

/* Контакты */
.contact {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--red);
}

.contact-info-section {
    padding: 60px 0;
    background: var(--white);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.contact-info-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-info-item p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 15px;
}

.contact-link {
    display: inline-block;
    color: var(--red);
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 14px;
}

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

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-phones a {
    color: var(--red);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

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

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-copy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 968px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .menu-toggle {
        display: block;
    }

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

    .ratings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

@media (max-width: 768px) {
    .topbar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 28px;
    }

    .promo-card {
        padding: 30px 20px;
    }

    .promo-card h2 {
        font-size: 22px;
    }

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

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

