:root {
    --orange: #E85D2C;
    --orange-dark: #C94A1F;
    --blue: #00A8E8;
    --blue-dark: #0088BE;
    --dark: #1a1a2e;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(0,0,0,.08);
    --radius: 12px;
    --font: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); line-height: 1.6; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top-bar { background: var(--dark); color: #94a3b8; font-size: .85rem; padding: 8px 0; }
.top-bar__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--blue); }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 20px; }
.logo__img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav > a, .nav__dropdown-btn { font-weight: 600; color: var(--dark); font-size: .95rem; }
.nav > a:hover, .nav__dropdown-btn:hover { color: var(--orange); }
.nav__dropdown { position: relative; }
.nav__dropdown-btn { background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.nav__dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 12px 0; margin-top: 8px;
}
.nav__dropdown:hover .nav__dropdown-menu { display: block; }
.nav__dropdown-menu a { display: block; padding: 8px 20px; color: var(--dark); font-weight: 500; }
.nav__dropdown-menu a:hover { background: var(--gray-light); color: var(--orange); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 3px; background: var(--dark); border-radius: 2px; transition: .3s; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 1rem;
    border: none; cursor: pointer; transition: all .25s; font-family: inherit;
}
.btn--primary { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: var(--white); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,93,44,.35); color: var(--white); }
.btn--outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--white { background: var(--white); color: var(--orange); }
.btn--white:hover { background: var(--gray-light); color: var(--orange-dark); }

/* Hero */
.hero {
    position: relative; min-height: 560px; display: flex; align-items: center;
    background: linear-gradient(105deg, rgba(26,26,46,.88) 0%, rgba(26,26,46,.55) 55%, transparent 100%),
                url('/assets/hero.jpg') center/cover no-repeat;
    color: var(--white); padding: 80px 0;
}
.hero__content { max-width: 620px; }
.hero__badge {
    display: inline-block; background: rgba(0,168,232,.25); border: 1px solid var(--blue);
    padding: 6px 16px; border-radius: 50px; font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.15rem; opacity: .9; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__stats {
    display: flex; gap: 40px; margin-top: 48px; padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.2);
}
.hero__stat strong { display: block; font-size: 2rem; color: var(--blue); }
.hero__stat span { font-size: .9rem; opacity: .8; }

/* Sections */
.section { padding: 80px 0; }
.section--gray { background: var(--gray-light); }
.section__header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section__label {
    display: inline-block; color: var(--orange); font-weight: 700; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.section__header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.section__header p { color: var(--gray); font-size: 1.05rem; }

/* Cards grid */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.card__img { height: 200px; object-fit: cover; width: 100%; }
.card__body { padding: 24px; }
.card__icon { font-size: 2.5rem; margin-bottom: 12px; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: .95rem; margin-bottom: 16px; }
.card__link { font-weight: 700; color: var(--orange); }
.card__link:hover { color: var(--blue); }

/* Features */
.feature { display: flex; gap: 20px; padding: 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature__icon {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--blue));
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--gray); font-size: .95rem; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split ul { list-style: none; margin-top: 20px; }
.split li { padding: 8px 0 8px 28px; position: relative; }
.split li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* Steps */
.step { text-align: center; padding: 32px 20px; }
.step__num {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--orange), var(--blue));
    color: var(--white); font-size: 1.5rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--gray); font-size: .95rem; }

/* Doctors */
.doctor { text-align: center; }
.doctor__avatar {
    width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--gray-light), #e2e8f0);
    display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.doctor h3 { font-size: 1.05rem; }
.doctor span { color: var(--gray); font-size: .9rem; }

/* Reviews */
.review { background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.review__stars { color: #fbbf24; margin-bottom: 12px; }
.review p { color: var(--gray); font-style: italic; margin-bottom: 16px; }
.review__author { font-weight: 700; }

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--orange) 0%, var(--blue) 100%);
    border-radius: var(--radius); padding: 60px; text-align: center; color: var(--white);
}
.cta h2 { font-size: 2rem; margin-bottom: 16px; }
.cta p { opacity: .95; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-item__q {
    width: 100%; text-align: left; padding: 20px 0; background: none; border: none;
    font-family: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; color: var(--dark);
}
.faq-item__q::after { content: '+'; font-size: 1.5rem; color: var(--orange); transition: transform .3s; }
.faq-item.active .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .35s; color: var(--gray); }
.faq-item.active .faq-item__a { max-height: 300px; padding-bottom: 20px; }

/* Form */
.form { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: var(--radius);
    font-family: inherit; font-size: 1rem; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--blue);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form__note { font-size: .85rem; color: var(--gray); margin-top: 12px; }

/* Page hero */
.page-hero {
    padding: 60px 0; color: var(--white);
    background: linear-gradient(105deg, rgba(26,26,46,.9), rgba(26,26,46,.6)),
                var(--hero-bg, url('/assets/hero.jpg')) center/cover no-repeat;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.page-hero p { opacity: .9; max-width: 600px; }

/* Content */
.content { padding: 60px 0; }
.content h2 { font-size: 1.75rem; margin: 32px 0 16px; }
.content h3 { font-size: 1.3rem; margin: 24px 0 12px; }
.content p, .content li { color: var(--gray); margin-bottom: 12px; }
.content ul { padding-left: 24px; margin-bottom: 20px; }
.content .info-box {
    background: var(--gray-light); border-left: 4px solid var(--orange);
    padding: 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0;
}

/* Thank you */
.thanks { text-align: center; padding: 100px 20px; }
.thanks__icon { font-size: 5rem; margin-bottom: 24px; }
.thanks h1 { font-size: 2.5rem; margin-bottom: 16px; }
.thanks p { color: var(--gray); font-size: 1.1rem; max-width: 500px; margin: 0 auto 32px; }

/* Contacts bar */
.contacts-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow);
    margin-top: -40px; position: relative; z-index: 2;
}
.contacts-bar__item { text-align: center; }
.contacts-bar__item strong { display: block; color: var(--orange); font-size: 1.1rem; margin-bottom: 4px; }

/* Prices table */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.price-table th { background: var(--dark); color: var(--white); }
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { font-weight: 700; color: var(--orange); white-space: nowrap; }

/* Responsive */
@media (max-width: 992px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .contacts-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .burger { display: flex; }
    .nav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--white); flex-direction: column; align-items: flex-start;
        padding: 80px 24px 24px; box-shadow: -4px 0 24px rgba(0,0,0,.15);
        transition: right .3s; z-index: 99;
    }
    .nav.open { right: 0; }
    .nav__dropdown-menu { position: static; box-shadow: none; padding-left: 16px; display: block; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .hero__stats { flex-direction: column; gap: 20px; }
    .contacts-bar { grid-template-columns: 1fr; margin-top: 0; }
    .cta { padding: 40px 24px; }
    .top-bar__inner { justify-content: center; text-align: center; }
}
