/* ==============================
   ROOT / DESIGN SYSTEM (STABLE)
   ============================== */

:root {
    --bg-main: #f8fafc;
    --bg-soft: #f1f5f9;
    --bg-card: #ffffff;

    --text-main: #0f172a;
    --text-muted: #475569;

    --primary: #1e40af;
    --secondary: #0ea5e9;
    --accent: #22c55e;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 6px 18px rgba(15,23,42,.08);
    --shadow-md: 0 16px 36px rgba(15,23,42,.12);

    --container-width: 1200px;
    --transition: .25s ease;
}

/* ==============================
   RESET
   ============================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==============================
   LAYOUT
   ============================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: clamp(40px, 7vw, 72px) 0;
}

section h2 {
    font-size: clamp(26px, 4.5vw, 38px);
    margin-bottom: 24px;
}

/* ==============================
   HEADER
   ============================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff; /* полностью непрозрачный */
    border-bottom: 1px solid #e2e8f0;
}

.header::before,
.header::after {
    pointer-events: none;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    position: relative;
}

.logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

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

.nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 10px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.nav a:hover {
    color: var(--secondary);
    background: rgba(14,165,233,0.1);
}

.header-contacts a {
    font-weight: 700;
    color: var(--accent);
}

/* ==============================
   BURGER (MOBILE)
   ============================== */

.burger {
    display: none !important;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 110;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--text-main);
    transition: transform var(--transition), opacity var(--transition);
}

.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 {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 12vw, 120px) 0;
    background: linear-gradient(180deg, #ffffff, var(--bg-soft));
}

.hero h1 {
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.15;
    max-width: 760px;
}

.hero p {
    margin-top: 16px;
    font-size: 18px;
    color: var(--text-muted);
    max-width: 720px;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-features {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-features span {
    padding: 8px 14px;
    background: #e0f2fe;
    color: var(--primary);
    border-radius: 999px;
    font-size: 14px;
}

/* HERO BACKGROUND */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/images/hero.webp");
    background-repeat: no-repeat;
    background-position: 85% bottom;
    background-size: contain;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.98) 0%,
        rgba(255,255,255,0.95) 45%,
        rgba(255,255,255,0.75) 65%,
        rgba(255,255,255,0.0) 100%
    );
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* ==============================
   BUTTONS
   ============================== */

.btn {
    height: 54px;
    padding: 0 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(34,197,94,.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: #eff6ff;
}

/* ==============================
   SERVICES + WHY US
   ============================== */

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

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.service-icon .material-symbols-outlined {
    font-size: 28px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ==============================
   PROCESS
   ============================== */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.step {
    background: var(--bg-card);
    padding: 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    font-weight: 600;
}

/* ==============================
   PRICES
   ============================== */

.prices p {
    max-width: 720px;
    color: var(--text-muted);
    font-size: 18px;
}

/* ==============================
   CONTACTS
   ============================== */

.contacts form {
    display: grid;
    gap: 14px;
    max-width: 520px;
}

input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #cbd5e1;
    font-size: 15px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    min-height: 110px;
}

button {
    height: 54px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

/* ==============================
   FOOTER
   ============================== */

.footer {
    padding: 32px 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* ==============================
   MOBILE (OPAQUE MENU)
   ============================== */

@media (max-width: 768px) {

    .burger {
        display: block !important;
    }

    .nav {
        position: fixed;
        inset: 72px 0 0 0;
        background: #ffffff;              /* полностью непрозрачный */
        box-shadow: 0 10px 40px rgba(0,0,0,.15);
        flex-direction: column;
        padding: 28px 24px;
        gap: 18px;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 95;
    }

    .nav.nav-open {
        transform: translateX(0);
    }

    .nav a {
        font-size: 18px;
        padding: 10px 12px;
    }

    .btn {
        width: 100%;
    }

    .hero::before {
        background-position: center bottom;
        background-size: 80%;
    }

    .hero::after {
        background: linear-gradient(
            180deg,
            rgba(255,255,255,0.98) 0%,
            rgba(255,255,255,0.9) 55%,
            rgba(255,255,255,0.0) 100%
        );
    }
}

/* ==============================
   FORM STATUS MESSAGE
   ============================== */

.form-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity .3s ease;
}

.form-message.success {
    background: rgba(34,197,94,0.12);
    color: #166534;
    border: 1px solid rgba(34,197,94,0.25);
}

.form-message.error {
    background: rgba(239,68,68,0.12);
    color: #7f1d1d;
    border: 1px solid rgba(239,68,68,0.25);
}