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

:root {
    --primary: #1a1a2e;
    --primary-light: #4a4a5a;
    --silver: #8892a0;
    --silver-light: #a8b2c0;
    --silver-dark: #5a6575;
    --bg-light: #eef1f5;
    --bg-white: #ffffff;
    --bg-dark: #1a1a2e;
    --text: #1a1a2e;
    --text-light: #5a6575;
    --white: #ffffff;
    --accent: #6b7a8f;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--silver), var(--silver-light));
    border-radius: 2px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Шапка */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(178, 190, 195, 0.2);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    mix-blend-mode: multiply;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.btn-nav::after {
    display: none !important;
}

.btn-nav:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero секция */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #e8ecf2 50%, #c5ced8 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(107, 122, 143, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(168, 178, 192, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 120px 20px 80px;
    max-width: 800px;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo img {
    width: 100%;
    max-width: 400px;
    height: auto;
    mix-blend-mode: multiply;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 400;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--silver);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--silver-light);
    border-color: var(--silver-light);
    color: var(--primary);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

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

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

.about-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(178, 190, 195, 0.2);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--silver);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--silver-light), var(--white));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary);
    border: 1px solid var(--silver-light);
}

.about-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.about-card p {
    color: var(--text);
    line-height: 1.8;
}

.about-hint {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Услуги */
.services {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.service-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: var(--shadow);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--bg-light), var(--silver-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    transition: all 0.3s ease;
    border: 1px solid var(--silver-light);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--silver-light), var(--white));
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.services-note {
    text-align: center;
    margin-top: 50px;
    padding: 24px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--silver-light);
    box-shadow: var(--shadow);
}

.services-note p {
    font-size: 1rem;
    color: var(--text);
}

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

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

.faq-item {
    background: var(--bg-light);
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(178, 190, 195, 0.2);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: var(--bg-light);
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--text);
    font-family: inherit;
}

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

.faq-arrow {
    color: var(--primary-light);
    transition: transform 0.3s ease;
    display: flex;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 28px;
    background: var(--white);
}

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

.faq-answer p {
    margin-bottom: 12px;
    color: var(--text-light);
}

.faq-answer ul {
    margin: 12px 0;
    padding-left: 24px;
    color: var(--text-light);
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Форма записи */
.booking {
    padding: 100px 0;
    background: linear-gradient(180deg, #e8ecf2 0%, #b8c4d0 100%);
    position: relative;
}

.booking .section-title {
    color: var(--primary);
}

.booking .section-title::after {
    background: var(--silver);
}

.booking-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    margin-top: -40px;
    font-size: 1.1rem;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(178, 190, 195, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--silver-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--silver);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(178, 190, 195, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.success-message h3 {
    color: #38a169;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-light);
}

/* Контакты */
.contacts {
    padding: 100px 0;
    background: var(--white);
}

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

.contact-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(178, 190, 195, 0.2);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--silver);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--silver-light), var(--white));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    border: 1px solid var(--silver-light);
}

.contact-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.contact-card p {
    color: var(--text);
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link.whatsapp {
    background: #25d366;
    color: white;
}

.contact-link.whatsapp:hover {
    background: #1da851;
    color: white;
}

.contact-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.contact-link.instagram:hover {
    opacity: 0.9;
    color: white;
}

.contact-link.telegram {
    background: #0088cc;
    color: white;
}

.contact-link.telegram:hover {
    background: #0077b5;
    color: white;
}

/* Подвал */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0;
}

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: invert(1);
    opacity: 0.9;
}

.footer-copy {
    font-size: 0.9rem;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--silver-light);
        box-shadow: var(--shadow-lg);
    }

    .nav a::after {
        display: none;
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }

    .hero-logo img {
        max-width: 280px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .about,
    .services,
    .faq,
    .booking,
    .contacts {
        padding: 70px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 30px 24px;
        margin: 0 16px;
    }

    .booking-subtitle {
        margin-top: -30px;
        font-size: 1rem;
    }
}

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

    .hero-logo img {
        max-width: 220px;
    }
}
