/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:      #1d4ed8;
    --primary-dark: #1e40af;
    --accent:       #f59e0b;
    --accent-dark:  #d97706;
    --dark:         #0f172a;
    --text:         #1e293b;
    --text-muted:   #64748b;
    --light:        #f1f5f9;
    --border:       #e2e8f0;
    --white:        #ffffff;
    --radius:       12px;
    --shadow:       0 4px 24px rgba(0,0,0,.07);
    --shadow-lg:    0 12px 40px rgba(0,0,0,.12);
    --tr:           .22s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === Layout === */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 88px 0; }
.section--alt { background: var(--light); }

.section__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    color: var(--dark);
    margin-bottom: 12px;
}

.section__sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr);
    white-space: nowrap;
}
.btn:active { transform: scale(.98); }

.btn--primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn--accent {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 4px 16px rgba(245,158,11,.35); }

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: var(--white); }

.btn--lg { padding: 17px 40px; font-size: 1.1rem; }
.btn--full { width: 100%; }

/* === Header === */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--tr);
}
.header.scrolled { box-shadow: var(--shadow); }

.header__inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 8px;
}

/* === Logo === */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    flex-shrink: 0;
}
.logo__icon { font-size: 1.3rem; line-height: 1; }
.logo__text span { color: var(--primary); }
.logo--dark .logo__text span { color: var(--accent); }

/* === Nav === */
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}
.nav__link {
    padding: 6px 11px;
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--tr), background var(--tr);
}
.nav__link:hover { color: var(--primary); background: #eff6ff; }

.header__phone {
    margin-left: 12px;
    font-weight: 700;
    color: var(--primary);
    font-size: .9rem;
    white-space: nowrap;
    transition: color var(--tr);
}
.header__phone:hover { color: var(--primary-dark); }

/* === Burger === */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 8px;
    flex-shrink: 0;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform var(--tr), opacity var(--tr);
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
    padding: 116px 0 84px;
    background: linear-gradient(140deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
    color: var(--white);
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero__title {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.13;
    margin-bottom: 18px;
}
.hero__sub {
    font-size: 1.1rem;
    opacity: .82;
    margin-bottom: 28px;
}
.hero__list {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hero__list li {
    padding-left: 28px;
    position: relative;
    opacity: .9;
    font-size: 1.02rem;
}
.hero__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,158,11,.14);
    border: 1px solid rgba(245,158,11,.38);
    color: #fcd34d;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: .01em;
}
.hero__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.hero__card {
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: transform var(--tr), background var(--tr);
    backdrop-filter: blur(8px);
}
.hero__card:hover { transform: translateY(-4px); background: rgba(255,255,255,.15); }
.hero__card-icon { font-size: 2rem; margin-bottom: 10px; }
.hero__card-text { font-size: .9rem; font-weight: 600; opacity: .9; }

/* === Services === */
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 52px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow);
    transition: transform var(--tr), box-shadow var(--tr);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card__icon { font-size: 2.4rem; line-height: 1; }
.service-card__title { font-size: 1rem; font-weight: 700; color: var(--dark); line-height: 1.3; }
.service-card__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.service-card__list li {
    font-size: .88rem;
    color: var(--text-muted);
    padding-left: 14px;
    position: relative;
    line-height: 1.4;
}
.service-card__list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* === Why Us === */
.why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 52px;
}
.why-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--tr);
}
.why-card:hover { transform: translateY(-4px); }
.why-card__icon { font-size: 2.4rem; display: block; margin-bottom: 14px; line-height: 1; }
.why-card__title { font-size: .98rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.35; }
.why-card p { font-size: .88rem; color: var(--text-muted); }

/* === Prices === */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.prices-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 720px;
    margin: 0 auto;
}
.prices-table th,
.prices-table td {
    padding: 15px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.prices-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.prices-table th:last-child,
.prices-table td:last-child { text-align: right; white-space: nowrap; }
.prices-table td:last-child { font-weight: 700; color: var(--primary); }
.prices-table tr:nth-child(even) td { background: var(--light); }
.prices-table tr:hover td { background: #eff6ff; }
.prices-table tr:last-child td { border-bottom: none; }
.prices__cta { text-align: center; margin-top: 32px; }

/* === Coverage === */
.coverage__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.coverage__item {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 9px 20px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary);
    transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
    cursor: default;
}
.coverage__item:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-2px); }

/* === Reviews === */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px;
}
.review-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform var(--tr), box-shadow var(--tr);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-card::before {
    content: '"';
    position: absolute;
    top: -8px; right: 16px;
    font-size: 7rem;
    color: var(--primary);
    opacity: .07;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}
.review-card__stars {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 14px;
}
.review-card__text {
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}
.review-card__author {
    font-weight: 700;
    font-size: .85rem;
    color: var(--text-muted);
}

/* === About === */
.about__content {
    max-width: 780px;
    margin: 40px auto 0;
}
.about__content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 14px;
}
.about__stats {
    display: flex;
    margin-top: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}
.about__stat {
    flex: 1;
    text-align: center;
    padding: 28px 20px;
    border-right: 1px solid var(--border);
}
.about__stat:last-child { border-right: none; }
.about__stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}
.about__stat-label {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* === Contacts === */
.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    margin-top: 52px;
    align-items: start;
}
.contacts__logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 28px;
}
.contacts__item { margin-bottom: 22px; }
.contacts__label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.contacts__value { font-size: .98rem; font-weight: 500; }
.contacts__phone {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    transition: color var(--tr);
    line-height: 1.2;
}
.contacts__phone:hover { color: var(--primary-dark); }

/* === Form === */
.contact-form {
    background: var(--light);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
}
.contact-form__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}
.contact-form__sub {
    color: var(--text-muted);
    font-size: .88rem;
    margin-bottom: 24px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--tr), box-shadow var(--tr);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.form-success {
    display: none;
    text-align: center;
    padding: 14px;
    background: #dcfce7;
    border-radius: 8px;
    margin-top: 12px;
    color: #166534;
    font-weight: 700;
    font-size: .95rem;
}

/* === Footer === */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.6);
    padding: 44px 0;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer .logo__text { color: var(--white); }
.footer .logo__text span { color: var(--accent); }
.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__links a {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    font-weight: 500;
    transition: color var(--tr);
}
.footer__links a:hover { color: var(--white); }
.footer__copy { font-size: .82rem; }

/* === Scroll reveal === */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* === 1024px === */
@media (max-width: 1024px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .why__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__inner { gap: 40px; }
}

/* === 768px === */
@media (max-width: 768px) {
    .section { padding: 60px 0; }

    .burger { display: flex; }
    .header__phone { display: none; }

    .nav {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        gap: 4px;
        transform: translateY(-110%);
        transition: transform .3s ease;
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
        z-index: 100;
    }
    .nav.open { transform: translateY(0); }
    .nav__link { padding: 11px 14px; font-size: .98rem; border-radius: 8px; }

    .hero { padding: 96px 0 56px; }
    .hero__inner { grid-template-columns: 1fr; gap: 36px; }
    .hero__cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero__card { padding: 20px 14px; }

    .services__grid { grid-template-columns: 1fr; gap: 16px; }
    .reviews__grid { grid-template-columns: 1fr; }
    .contacts__inner { grid-template-columns: 1fr; gap: 36px; }

    .about__stats { flex-direction: column; border: none; border-radius: 0; }
    .about__stat { border-right: none; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
    .about__stat:last-child { margin-bottom: 0; }

    .footer__inner { flex-direction: column; text-align: center; }
    .footer__links { justify-content: center; }
}

/* === 480px === */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero__card { padding: 16px 10px; }
    .hero__card-icon { font-size: 1.6rem; }
    .contact-form { padding: 24px 18px; }
    .why__grid { grid-template-columns: 1fr; }
    .coverage__item { padding: 8px 14px; font-size: .85rem; }
    .btn--lg { padding: 15px 28px; font-size: 1rem; }
}
