* {
    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;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
}


.header > .container {
    position: relative;
    z-index: 1;
}

/* Элемент волны для эффекта воды - как при касании воды */
.water-ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(56, 142, 60, 0.7);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: water-ripple-animation 1.2s ease-out;
    width: 0;
    height: 0;
    left: 0;
    top: 0;
    --ripple-size: 200px;
    background: radial-gradient(circle, rgba(56, 142, 60, 0.1) 0%, transparent 70%);
}

@keyframes water-ripple-animation {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 3px;
    }
    20% {
        opacity: 0.9;
        border-width: 2px;
    }
    50% {
        opacity: 0.6;
        border-width: 1.5px;
    }
    80% {
        opacity: 0.3;
        border-width: 1px;
    }
    100% {
        width: var(--ripple-size);
        height: var(--ripple-size);
        opacity: 0;
        border-width: 0.5px;
    }
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: -12cm;
}

.logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo-icon-symbol {
    width: 100%;
    height: 100%;
    color: var(--green);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 60px);
    grid-template-rows: repeat(2, 60px);
    gap: 2px;
}

.logo-square {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
}

.logo-square.red {
    background-color: var(--red);
}

.logo-square.green {
    background-color: var(--green);
}

.logo-icon {
    width: 45px;
    height: 45px;
    display: block;
}

/* Стиль для изображения логотипа (если используется вместо SVG) */
.logo-image {
    height: 180px;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    margin-left: 3cm;
}

/* Дополнительное изображение рядом с логотипом */
.logo-additional {
    height: 120px;
    width: auto;
    min-width: 100px;
    max-width: 200px;
    object-fit: cover;
    display: block;
    margin-right: 15px;
    margin-left: -3cm;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text-top {
    font-size: 20px;
    font-weight: bold;
    color: var(--red);
    letter-spacing: 1px;
}

.logo-text-bottom {
    font-size: 24px;
    font-weight: bold;
    color: var(--green);
    letter-spacing: 2px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 30px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.header-phone {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.5;
    text-align: right;
}

.header-phone strong {
    color: var(--red);
    font-weight: 600;
    display: block;
}

.btn-header {
    background: var(--green);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-header:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 142, 60, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Navigation */
.nav {
    padding: 15px 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    justify-content: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--red);
    font-weight: 700;
    transition: color 0.3s;
    position: relative;
    font-size: 16px;
    display: inline-block;
}

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

.nav-list a span {
    transition: transform 0.3s ease, color 0.3s ease;
}

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

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

.nav-list a.active {
    color: var(--green) !important;
}

.nav-list a.active::after {
    width: 100% !important;
    background: var(--green) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-dark);
    padding: 120px 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: 20px !important;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--gray);
    line-height: 1.6;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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(--green);
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background: var(--green);
    opacity: 0.7;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--gray);
    line-height: 1.6;
}

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

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

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

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

/* Stats Section */
.stats {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--gray);
}

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

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--red);
}

.service-icon {
    font-size: 56px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 16px;
}

/* Doctors Section */
.doctors {
    padding: 100px 0;
    background: var(--light-gray);
}

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

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

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

.doctor-avatar {
    font-size: 80px;
    margin-bottom: 20px;
}

/* Стиль для фото врача (если используется вместо эмодзи) */
.doctor-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 4px solid var(--light-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.doctor-specialty {
    font-size: 16px;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 15px;
}

.doctor-experience {
    font-size: 18px;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 15px;
}

.doctor-education {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    max-width: 500px;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

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

.about-text .lead {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.about-text .highlight {
    font-size: 20px;
    font-weight: 600;
    color: var(--red);
    margin-top: 30px;
    font-style: italic;
}

.about-list {
    list-style: none;
    margin: 30px 0;
}

.about-list li {
    font-size: 18px;
    padding: 12px 0;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Prices Section */
.prices {
    padding: 100px 0;
    background: var(--light-gray);
}

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

.price-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.price-card.featured {
    border-color: var(--red);
    transform: scale(1.05);
}

.price-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

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

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 30px;
}

.price-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

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

.prices-note {
    text-align: center;
    color: var(--gray);
    font-size: 16px;
    font-style: italic;
}

/* FAQ Section */
.faq {
    padding: 100px 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 Section */
.contact {
    padding: 100px 0;
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

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

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

.contact-item p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
}

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

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

.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,
.form-group textarea {
    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,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

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

/* Responsive Design */
@media (max-width: 968px) {
    .header-contact {
        gap: 15px;
    }

    .header-phone {
        font-size: 16px;
    }

    .btn-header {
        padding: 10px 20px;
        font-size: 14px;
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-top {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-contact {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: block;
    }

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

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

    .hero-slider {
        max-width: 100%;
    }

    .slider-container {
        height: 300px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

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

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

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

    .logo-grid {
        grid-template-columns: repeat(2, 40px);
        grid-template-rows: repeat(2, 40px);
    }

    .logo-icon {
        width: 25px;
        height: 25px;
    }

    .logo-image {
        height: 120px;
        max-width: 350px;
    }

    .logo-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }

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

    .about-image {
        max-width: 100%;
        margin: 0 auto;
    }
}

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

    .hero-wrapper {
        gap: 30px;
    }

    .slider-container {
        height: 250px;
    }

    .hero-title {
        font-size: 20px;
    }

    .services,
    .doctors,
    .about,
    .prices,
    .faq,
    .contact {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 36px;
    }

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

    .logo-image {
        height: 100px;
        max-width: 300px;
    }
}
