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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background: #ffffff;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    flex: 1;
    align-items: center;
}

.landing-content {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.landing-visual {
    order: 1;
    display: flex;
    justify-content: center;
}

.landing-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
}

.landing-logo img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.landing-headline {
    margin: 0;
    color: #08244f;
    font-size: 30px;
    line-height: 1.15;
    text-align: center;
}

.landing-subheadline {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
    color: #475569;
    text-align: center;
    white-space: pre-line;
}

.landing-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-legal-box {
    border-radius: 10px;
    padding: 10px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.landing-legal-box.is-highlighted {
    background: #fef2f2;
    box-shadow: 0 0 0 2px #ef4444 inset;
}

.landing-legal-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.landing-legal-checkbox {
    margin-top: 3px;
}

.landing-legal-text {
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.landing-legal-text a {
    color: #0f4ca5;
    text-decoration: underline;
}

.landing-legal-hint {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

.landing-tooltip {
    background: #ef4444;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.3;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
}

.landing-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-buttons.is-shaking {
    animation: landing-shake 0.28s ease;
}

.landing-btn,
.landing-secondary-cta {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    min-height: 46px;
    padding: 10px 14px;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.landing-btn {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #2563eb;
}

.landing-btn:hover {
    transform: translateY(-1px);
}

.landing-btn.messenger-telegram {
    background: #0088cc;
}

.landing-btn.messenger-whatsapp {
    background: #25d366;
}

.landing-btn.messenger-vk {
    background: #4680c2;
}

.landing-btn.messenger-viber {
    background: #665cac;
}

.landing-btn[aria-disabled="true"],
.landing-secondary-cta[aria-disabled="true"] {
    background: #cbd5e1;
    color: #64748b;
    pointer-events: auto;
    cursor: not-allowed;
    transform: none;
}

.landing-secondary-cta {
    font-size: 14px;
    color: #0f172a;
    background: #f1f5f9;
}

.landing-footer {
    margin-top: auto;
    padding: 12px 16px 16px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

@keyframes landing-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@media (min-width: 768px) {
    .landing-main {
        padding: 36px 28px 20px;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .landing-content {
        order: 1;
        gap: 20px;
    }

    .landing-visual {
        order: 2;
        align-self: center;
    }

    .landing-image {
        max-width: 500px;
    }

    .landing-logo img {
        margin: 0;
        max-width: 170px;
    }

    .landing-headline,
    .landing-subheadline {
        text-align: left;
    }

    .landing-headline {
        font-size: 56px;
        line-height: 1.06;
        letter-spacing: -0.02em;
    }

    .landing-subheadline {
        font-size: 22px;
        line-height: 1.35;
        color: #334155;
    }

    .landing-legal-label {
        gap: 12px;
    }

    .landing-legal-checkbox {
        width: 18px;
        height: 18px;
        margin-top: 2px;
    }

    .landing-legal-text {
        font-size: 15px;
        line-height: 1.45;
    }

    .landing-legal-hint {
        font-size: 14px;
    }

    .landing-btn,
    .landing-secondary-cta {
        min-height: 56px;
        border-radius: 12px;
        font-size: 18px;
    }

    .landing-secondary-cta {
        font-size: 17px;
    }

    .landing-legal-hint {
        text-align: left;
    }
}

@media (min-width: 1280px) {
    .landing-main {
        max-width: 1320px;
    }
}

