/* ===== Tokens ===== */
:root {
    --color-accent: #462f73;
    --color-accent-dark: #3b2861;
    --color-accent-deep: #342356;
    --color-light: #f9f9fc;
    --color-text: #0b0b0b;
    --color-text-muted: rgba(11, 11, 11, 0.7);
    --color-on-accent: #ffffff;
    --color-on-accent-muted: rgba(255, 255, 255, 0.85);
    --color-on-accent-50: rgba(255, 255, 255, 0.5);
    --color-card-on-accent: rgba(255, 255, 255, 0.1);
    --color-card-on-accent-border: rgba(255, 255, 255, 0.15);

    --gradient-accent: linear-gradient(160deg, #462F73 0%, #3B2861 100%);

    --radius-sm: 2px;
    --radius-md: 6px;
    --radius-lg: 50px;

    --fz-base: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
    --fz-h1: clamp(1.75rem, 3.5vw + 0.6rem, 3.25rem);
    --fz-h2: clamp(1.5rem, 2.8vw + 0.45rem, 2.5rem);
    --fz-h3: clamp(1.125rem, 2.2vw + 0.35rem, 1.75rem);
    --fz-h5: clamp(1rem, 1.4vw + 0.3rem, 1.25rem);

    --container-max: 1200px;
    --section-pad-y: clamp(60px, 8vw, 120px);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--fz-base);
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-light);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ===== Layout ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 640px; }

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.muted { color: var(--color-on-accent-muted); }

.section-light .h1 { color: #3F2A66; }
#form .subtitle { color: #3F2A66; }

/* ===== Typography ===== */
.h1 {
    font-size: var(--fz-h1);
    line-height: 1.15;
    font-weight: 500;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}
.h1 strong { font-weight: 700; }

h2.h1 { margin-bottom: 0.4em; }

.subtitle {
    font-size: var(--fz-h3);
    font-weight: 500;
    margin: 0 0 2em;
    opacity: 0.85;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--gradient-accent);
    color: var(--color-on-accent);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: inline-flex;
    align-items: center;
}
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-link {
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.nav-link:hover { opacity: 1; }
.nav-phone { font-weight: 600; white-space: nowrap; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }

.btn-white {
    background: #fff;
    color: var(--color-accent);
}
.btn-ghost {
    background: transparent;
    color: var(--color-on-accent);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 10px 22px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-dark {
    background: var(--color-accent);
    color: #fff;
}

/* ===== Sections ===== */
.section {
    position: relative;
    padding: var(--section-pad-y) 0;
    overflow: hidden;
}
.section-light {
    background: var(--color-light);
    color: var(--color-text);
}
.section-accent {
    background: var(--gradient-accent);
    color: var(--color-on-accent);
}
.section-decoration::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/static/images/decoration/planet-orbits.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.18;
    pointer-events: none;
}
.section-decoration-fade::before {
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
            mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.section-decoration-accent::before {
    background-image: none;
    background-color: var(--color-accent);
    -webkit-mask-image: url('/static/images/decoration/planet-orbits.svg');
            mask-image: url('/static/images/decoration/planet-orbits.svg');
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: cover;
            mask-size: cover;
    opacity: 0.18;
}
.section > .container { position: relative; z-index: 1; }

/* ===== Hero ===== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.hero-left .btn { margin-top: 8px; }
.hero-image {
    border-radius: var(--radius-md);
}

/* ===== Bento ===== */
.bento {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            'item1 item2'
            'item1 item2'
            'item3 item2'
            'item3 item4'
            'item3 item4';
    }
    .bento-1 { grid-area: item1; }
    .bento-2 { grid-area: item2; }
    .bento-3 { grid-area: item3; }
    .bento-4 { grid-area: item4; }
}

.card {
    position: relative;
    background: var(--color-card-on-accent);
    border: 1px solid var(--color-card-on-accent-border);
    border-radius: var(--radius-md);
    padding: 24px;
    color: var(--color-on-accent);
    backdrop-filter: blur(6px);
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    transition: transform 0.25s, background 0.25s;
}
.card h5,
.card p { overflow-wrap: break-word; hyphens: auto; }
.card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.15); }
.card h5 {
    font-size: var(--fz-h5);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}
.card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-on-accent-muted);
}
.card-net::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.card-net > * { position: relative; z-index: 1; }

/* ===== Two col ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 900px) {
    .two-col { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ===== Method ===== */
.method-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-top: 48px;
}
@media (min-width: 768px) {
    .method-grid { grid-template-columns: 1fr 1fr 2fr; }
}
.method-card {
    padding: 32px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.method-card h5 {
    font-size: var(--fz-h5);
    margin: 0;
    line-height: 1.35;
    font-weight: 500;
}
.method-card p {
    margin: 0;
    font-size: 0.95rem;
}
.method-icon {
    width: 96px; height: 96px;
    display: grid; place-items: center;
    font-size: 2.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    margin-bottom: 8px;
}
.method-card-muted {
    color: #9785BD;
    background: transparent;
}
.method-card-muted .method-icon {
    color: #9785BD;
    background: rgba(151, 133, 189, 0.12);
}
.method-card-solid {
    background: rgba(255,255,255,0.12);
    color: var(--color-on-accent);
    border: 1px solid rgba(255,255,255,0.18);
    text-align: left;
    align-items: flex-start;
}
.method-card-solid .method-icon {
    background: #fff;
    color: var(--color-accent);
}
.method-card-solid p { color: var(--color-on-accent-muted); }

/* ===== Form ===== */
.lead-form {
    margin-top: 32px;
    display: grid;
    gap: 18px;
}
.form-group {
    position: relative;
}
.form-input {
    width: 100%;
    padding: 22px 18px 10px;
    border: 1px solid rgba(11,11,11,0.15);
    border-radius: var(--radius-md);
    background: #fff;
    font: inherit;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(70,47,115,0.12);
}
.form-label {
    position: absolute;
    left: 18px;
    top: 16px;
    color: var(--color-text-muted);
    transition: transform 0.18s ease, font-size 0.18s ease, color 0.18s ease;
    pointer-events: none;
}
.form-input:not(:placeholder-shown) + .form-label,
.form-input:focus + .form-label {
    transform: translateY(-10px);
    font-size: 0.75rem;
    color: var(--color-accent);
}
.form-submit {
    text-align: center;
    margin-top: 12px;
}
.form-status {
    text-align: center;
    min-height: 1.4em;
    margin-top: 4px;
    font-weight: 500;
}
.form-status.is-success { color: #1b7a3e; }
.form-status.is-error { color: #b53030; }

/* ===== Footer ===== */
.section-footer { padding: 40px 0; }
.section-footer p { margin: 4px 0; font-size: 0.95rem; }
.footer-link { text-decoration: underline; opacity: 0.9; }
.footer-link:hover { opacity: 1; }

/* ===== Motion ===== */
@media (prefers-reduced-motion: no-preference) {
    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .h1, .subtitle, .btn, .card, .method-card, .hero-image {
        animation: fadeUp 0.8s ease both;
    }
    .subtitle { animation-delay: 0.1s; }
    .btn { animation-delay: 0.2s; }
}
