* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f4f7f6;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ================= ШАПКА ================= */
.topbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(30,60,114,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1e3c72;
}
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3c72, #3498db);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1.1rem; }
.logo-text small { font-size: 0.75rem; color: #667; }

.main-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.main-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.main-nav a:hover { color: #ff6b35; }

.contacts {
    display: flex;
    order: 3;
    line-height: 1.2;
}
.contacts-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}
.contacts .phone {
    font-weight: 700;
    color: #1e3c72;
    text-decoration: none;
    font-size: 1.05rem;
}
.contacts .phone:hover { color: #ff6b35; }
.contacts .work-time { font-size: 0.75rem; color: #667; }

.contacts-social {
    display: none;
    gap: 5px;
}
.contacts-social__link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    border-radius: 13px;
    background: #f4f7fb;
    cursor: pointer;
}
.contacts-social__link.telegram {
    background: url('../image/telegram.svg');
}
.menu-toggle {
    display: none;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(135deg, #1e3c72, #2a5298, #3498db);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
}
.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.25;
}
.hero-sub {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 760px;
    margin: 0 auto 25px;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}
.hero-badges span {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}
.hero-cta { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ================= КНОПКИ ================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
    background: #ff6b35;
    color: #fff;
    box-shadow: 0 6px 18px rgba(255,107,53,0.4);
}
.btn-primary:hover {
    background: #e85a26;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255,107,53,0.5);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-outline:hover { background: #fff; color: #1e3c72; }

/* ================= СЕКЦИИ ================= */
section { padding: 55px 0; }
section h2 {
    font-size: 1.8rem;
    color: #1e3c72;
    margin-bottom: 25px;
    text-align: center;
}
section h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: #ff6b35;
    margin: 12px auto 0;
    border-radius: 2px;
}
.note {
    font-size: 0.92rem;
    color: #667;
    margin-top: 15px;
    text-align: center;
}
.note.warn { color: #c0392b; font-weight: 500; }

/* ================= FEATURES ================= */
.features { background: #fff; }
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.card {
    background: #f9fbfd;
    border: 1px solid #e3ecf3;
    border-radius: 12px;
    padding: 26px 22px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(30,60,114,0.12);
}
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; color: #1e3c72; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: #455; }

/* ================= INTRO ================= */
.intro { background: #eef4fb; }
.intro p { font-size: 1.05rem; text-align: center; max-width: 900px; margin: 0 auto; }

/* ================= STEPS ================= */
.steps { background: #fff; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}
.step {
    background: #eef4fb;
    border-left: 4px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}
.step .num {
    display: inline-block;
    width: 34px;
    height: 34px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}
.step p { font-size: 0.95rem; }

/* ================= PRICING ================= */
.pricing { background: #f9fbfd; }
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.price-table th {
    background: #1e3c72;
    color: #fff;
    padding: 16px;
    text-align: left;
    font-size: 1rem;
}
.price-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eaeef2;
    font-size: 0.97rem;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: #f9fbfd; }

/* ================= CASES ================= */
.cases { background: #fff; }
.cases-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto 20px;
}
.cases-list li {
    padding: 12px 0 12px 34px;
    position: relative;
    font-size: 1rem;
    border-bottom: 1px dashed #dde5ec;
}
.cases-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

/* ================= FORM ================= */
.form-section { background: linear-gradient(135deg, #1e3c72, #2a5298); color: #fff; }
.form-section h2 { color: #fff; }
.form-section h2::after { background: #ff6b35; }
.form-section p { text-align: center; max-width: 700px; margin: 0 auto 25px; opacity: 0.95; }
.lead-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lead-form input,
.lead-form textarea {
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255,255,255,0.95);
    color: #2c3e50;
}
.lead-form textarea { min-height: 90px; resize: vertical; }
.lead-form button { margin-top: 6px; }
.form-note {
    font-size: 0.8rem;
    opacity: 0.75;
    text-align: center;
    margin-top: 8px;
}
.error {
    color: yellow;
}
div[data-success], .form-success {
    text-align: center;
    font-size: 20px;
}

/* ================= REVIEWS ================= */
.reviews { background: #fff; }
.review {
    background: #f9fbfd;
    border-radius: 10px;
    padding: 20px;
    border-top: 4px solid #3498db;
    font-size: 0.95rem;
}
.review .name {
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 8px;
}

/* ================= FAQ ================= */
.faq { background: #eef4fb; }
.faq details {
    background: #fff;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq summary {
    font-weight: 600;
    color: #1e3c72;
    cursor: pointer;
    font-size: 1.02rem;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
    content: "+";
    color: #ff6b35;
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.2rem;
}
.faq details[open] summary::before { content: "−"; }
.faq details p {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eaeef2;
    font-size: 0.96rem;
}

/* ================= WARNING ================= */
.warning { background: #fff5f0; border-top: 4px solid #ff6b35; border-bottom: 4px solid #ff6b35; }
.warning h2 { color: #c0392b; }
.warning h2::after { background: #c0392b; }
.warning p { text-align: center; max-width: 900px; margin: 0 auto; }

/* ================= ФУТЕР ================= */
.site-footer {
    background-color: #16294d;
    color: #cfd8e3;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 50px 15px 35px;
}
.footer-col {
    justify-self: flex-end;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #ff6b35;
}
.footer-col p { font-size: 0.9rem; line-height: 1.55; }

.req-list, .contact-list, .doc-list {
    list-style: none;
}
.req-list li,
.contact-list li,
.doc-list li {
    margin-bottom: 8px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.contact-list a,
.doc-list a {
    color: #cfd8e3;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-list a:hover,
.doc-list a:hover { color: #ff6b35; }

.footer-bottom {
    background: #0f1e39;
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: #8fa3bf;
}
.footer-bottom p { margin-bottom: 6px; }
.footer-bottom .disclaimer {
    font-size: 0.78rem;
    opacity: 0.8;
    max-width: 900px;
    margin: 0 auto;
}

/* ================= АДАПТИВ ================= */
@media (max-width: 991px) {
    .logo-mark { width: 38px; height: 38px; }
    .contacts { align-items: center; gap: 13px; order: 3; }
    .contacts-social {
        display: flex;
    }
    .contacts .phone {
        font-size: 1rem;
    }
    .topbar-inner { width: 100%; }
    .menu-toggle:not([hidden]) {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        order: 3;
        gap: 5px;
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        padding: 10px;
        border: 1px solid #dce5ef;
        border-radius: 10px;
        background: #f4f7fb;
        color: #1e3c72;
        cursor: pointer;
    }
    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
    }
    .menu-toggle:focus-visible,
    .main-nav a:focus-visible {
        outline: 2px solid #1e3c72;
        outline-offset: 3px;
    }
    .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .main-nav {
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        border-top: 1px solid #e6edf4;
        max-height: 55vh;
        overflow-y: auto;
    }
    .menu-ready .main-nav { display: none; }
    .menu-ready.menu-open .main-nav { display: flex; }
    .main-nav a {
        display: block;
        padding: 12px 0;
        border-radius: 8px;
        font-size: 1rem;
        text-align: left;
    }
    .main-nav a:hover { background: #f4f7fb; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-sub { font-size: 1rem; }
    .hero { padding: 50px 0 40px; }
    .logo-text { display: none; }
    section { padding: 40px 0; }
    section h2 { font-size: 1.35rem; }
    .container { width: 100%; }
    .hero-badges span { font-size: 0.8rem; padding: 6px 12px; }
    .btn { padding: 12px 24px; font-size: 0.95rem; }
    .price-table th, .price-table td { padding: 12px; font-size: 0.9rem; }
    .logo-text small { display: none; }
    .footer-grid { grid-template-columns: 1fr; padding: 35px 15px 25px; gap: 22px; }
    .footer-col { justify-self: flex-start; }
}

@media (max-width: 479px) {
    .container { width: 100%; }
}