/* Critical CSS — ранняя отрисовка без скачка */
:root {
    --primary-color: #2563EB;
    --primary-dark: #1D4ED8;
    --accent-color: #22C55E;
    --text-dark: #0F172A;
    --text-light: #64748B;
    --white: #FFF;
    --gray-light: #F1F5F9;
    --card-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #F8FAFC;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

@media (min-width: 1024px) {
    .header {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.header-content {
    display: flex;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    line-height: 1;
}

.logo-mark img {
    width: 32px;
    height: 32px;
    display: block;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.175rem;
    font-weight: 800;
    letter-spacing: -0.038em;
    white-space: nowrap;
}

.logo-brand {
    color: #0F172A;
}

.logo-tld {
    color: var(--primary-color);
}

.hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    padding: 90px 0 70px;
    min-height: auto;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.88fr);
    gap: 20px 20px;
    align-items: end;
    width: 100%;
    position: relative;
    z-index: 2;
    padding-top: 16px;
}

.hero-text h1 {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.1;
}

.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

@media (max-width: 1023px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .hero-text {
        display: contents;
    }

    .hero-intro {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .calc-card {
        order: 3;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    .hero {
        padding: 44px 0 40px;
    }

    .hero-text h1 {
        font-size: clamp(1.45rem, 6.2vw, 1.75rem);
    }

    .hero-woman {
        display: block;
        width: min(58%, 210px);
        max-height: 220px;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-trust {
        display: none;
    }

    .hero-visual {
        order: 2;
        margin: 4px auto -36px;
        max-width: 280px;
    }

    .hero-intro {
        order: 1;
    }

    .calc-card {
        order: 3;
        position: relative;
        z-index: 3;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .hero-text h1 {
        font-size: 1.4rem;
    }

    .hero {
        padding: 32px 0 24px;
    }
}

@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.75rem;
        line-height: 1.18;
    }
}
