:root {
    --primary: #FF6B4A;
    --primary-dark: #E85A3A;
    --primary-light: #FF8A6B;
    --secondary: #4ECDC4;
    --secondary-dark: #3DBDB4;
    --accent: #FFE66D;
    --text: #2C3E4E;
    --text-secondary: #5A6E7A;
    --bg: #FFFFFF;
    --surface: #FEF9F5;
    --border: #FFE4D6;
    --radius: 28px;
    --radius-sm: 20px;
    --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

body {
    font-family: system-ui, -apple-system, 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* ИНТЕРАКТИВНЫЙ ФОН — ЖИВОЙ ГРАДИЕНТ ЗА КУРСОРОМ */
.interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE9E0 100%);
}

.interactive-bg::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
                rgba(255, 107, 74, 0.12) 0%,
                rgba(78, 205, 196, 0.08) 40%,
                transparent 70%);
    transition: background 0.05s linear;
    pointer-events: none;
}

.interactive-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, 
                rgba(255,107,74,0.02) 0px, 
                rgba(255,107,74,0.02) 2px,
                transparent 2px, 
                transparent 8px);
    pointer-events: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,245,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo__mark {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo__badge {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 40px;
}

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

.nav__link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.nav__link:hover::after {
    width: 100%;
}

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

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border-radius: 60px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 14px 32px;
    box-shadow: 0 4px 12px rgba(255,107,74,0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,74,0.35);
}

.btn--secondary {
    background: transparent;
    color: var(--text);
    padding: 14px 32px;
    border: 1px solid var(--border);
}

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

.btn--small {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* Hero */
.hero {
    padding: 120px 0 80px;
    position: relative;
}

.hero__inner {
    max-width: 800px;
}

.hero__badge {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 600;
    background: rgba(255,107,74,0.1);
    padding: 4px 12px;
    border-radius: 40px;
}

.hero__title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 24px 0;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section__tag {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 600;
    background: rgba(255,107,74,0.1);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 40px;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 16px 0;
}

.section__description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services {
    padding: 80px 0;
    background: var(--surface);
    border-radius: 48px 48px 0 0;
}

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

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(255,107,74,0.12);
    border-color: var(--primary-light);
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card__price {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.service-card__desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.service-card__link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.service-card__fact {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 12px 20px;
    font-size: 0.875rem;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: bottom 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    text-align: center;
}

.service-card:hover .service-card__fact {
    bottom: 0;
}

/* Doctors Grid */
.doctors {
    padding: 80px 0;
}

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

.doctor-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,74,0.1), transparent);
    transition: left 0.6s ease;
}

.doctor-card:hover::before {
    left: 100%;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}

.doctor-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.doctor-card__name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.doctor-card__spec {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Prices */
.prices {
    padding: 80px 0;
    background: var(--surface);
    border-radius: 0 0 48px 48px;
}

.prices__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    margin-bottom: 48px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.price-item:hover {
    transform: translateX(4px);
    background: var(--surface);
    border-color: var(--primary);
}

.price-item__name {
    font-weight: 500;
}

.price-item__value {
    font-weight: 700;
    color: var(--primary);
}

.price-item__fact {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 8px 16px;
    font-size: 0.75rem;
    text-align: center;
    transition: bottom 0.25s ease;
}

.price-item:hover .price-item__fact {
    bottom: 0;
}

.prices__footnote {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.prices__footnote p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

/* Form Section */
.form-section {
    padding: 80px 0;
}

.form-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 48px;
    background: var(--surface);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}

.form-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-card__description {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form__input {
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(255,107,74,0.1);
}

.form__consent {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

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

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 64px 0 48px;
}

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

.footer__logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.footer__info p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.footer__info a {
    color: var(--text);
    text-decoration: none;
}

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

.footer__helpers-title {
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.helpers-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.helpers-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.helpers-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.helper-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 24px;
}

.footer__legal {
    text-align: right;
}

.footer__legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

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

.footer__legal p {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer__socials {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.footer__socials a {
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer__socials a:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

/* Counter Section */
.counter-section {
    background: linear-gradient(135deg, rgba(255,107,74,0.05) 0%, rgba(78,205,196,0.05) 100%);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: var(--radius);
}

.counter-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.counter-item {
    flex: 1;
    min-width: 150px;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    font-feature-settings: "tnum";
}

.counter-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal__content {
    background-color: var(--bg);
    margin: 5% auto;
    padding: 32px;
    border-radius: var(--radius);
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal__close {
    position: absolute;
    right: 24px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Animations */
.services, .doctors, .prices, .form-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.services { animation-delay: 0.1s; }
.doctors { animation-delay: 0.2s; }
.prices { animation-delay: 0.3s; }
.form-section { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }
    .hero__title {
        font-size: 2.5rem;
    }
    .section__title {
        font-size: 2rem;
    }
    .nav {
        display: none;
    }
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__legal {
        text-align: center;
    }
    .footer__socials {
        justify-content: center;
    }
    .form-card {
        padding: 32px 24px;
    }
    .services__grid {
        grid-template-columns: 1fr;
    }
    .service-card__fact,
    .price-item__fact {
        position: static;
        margin-top: 12px;
        border-radius: 40px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.2s, transform 0.2s;
    }
    .service-card:hover .service-card__fact,
    .price-item:hover .price-item__fact {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Скругление фото врачей */
.doctor-card__photo {
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
}
