/* /srv/tpult/app/landing/static/landing/css/main.css */
/* оформляет главную страницу ТПульт с акцентом на мобильную версию */

:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #171923;
    --muted: #5f6573;
    --accent: #315cff;
    --accent-dark: #2346c7;
    --border: #e1e5ef;
    --shadow: 0 18px 50px rgba(21, 31, 61, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(246, 247, 251, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    display: block;
    height: 46px;
    width: auto;
    max-width: 220px;
}

.header-link {
    text-decoration: none;
    font-weight: 700;
    color: var(--accent);
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
}

.badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--accent);
    background: #e9eeff;
    font-size: 14px;
    font-weight: 700;
}

h1 {
    max-width: 720px;
    margin: 20px 0 16px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-text {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.55;
}

.primary-button,
.secondary-button,
.phone-form button {
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    color: #ffffff;
    background: var(--accent);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(49, 92, 255, 0.25);
}

.primary-button:hover,
.phone-form button:hover {
    background: var(--accent-dark);
}

.secondary-button {
    width: 100%;
    color: #ffffff;
    background: var(--text);
}

.mini-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.mini-points span {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    font-size: 14px;
}

.login-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.login-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.login-card p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.5;
}

.phone-form {
    display: grid;
    gap: 12px;
}

.phone-form label {
    font-weight: 700;
}

.phone-form input {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--text);
    font-size: 18px;
}

.phone-form input:focus {
    outline: 3px solid rgba(49, 92, 255, 0.18);
    border-color: var(--accent);
}

.phone-form button {
    width: 100%;
    color: #ffffff;
    background: var(--accent);
}

.form-note {
    margin-top: 16px !important;
    font-size: 14px;
}

.advantages {
    padding: 34px 0;
}

.advantages h2,
.cta h2 {
    margin: 0 0 20px;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.06em;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.advantage-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
}

.advantage-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    letter-spacing: -0.03em;
}

.advantage-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.contacts-section {
    padding: 34px 0;
}

.section-lead {
    max-width: 680px;
    margin: -8px 0 22px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.contact-panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(21, 31, 61, 0.08);
}

.contact-panel h3 {
    margin: 0 0 18px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.social-list {
    display: grid;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--text);
    background: #ffffff;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.social-link:hover {
    transform: translateY(-1px);
    border-color: rgba(49, 92, 255, 0.35);
    box-shadow: 0 10px 24px rgba(21, 31, 61, 0.08);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.social-link strong {
    display: block;
    margin-bottom: 3px;
    font-size: 16px;
}

.social-link small {
    display: block;
    color: var(--muted);
    font-size: 14px;
    word-break: break-word;
}

.social-max .social-icon {
    background: #315cff;
}

.social-vk .social-icon {
    background: #0077ff;
}

.social-tg .social-icon {
    background: #229ed9;
}

.social-phone .social-icon {
    background: #16a34a;
}

.social-mail .social-icon {
    background: #171923;
}

.cta {
    padding: 24px 0 56px;
}

.cta-box {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--text);
    color: #ffffff;
    text-align: center;
}

.cta-box p {
    max-width: 680px;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.62);
}

.modal-window {
    position: absolute;
    left: 50%;
    bottom: 16px;
    width: min(520px, calc(100% - 32px));
    transform: translateX(-50%);
    padding: 26px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f0f2f7;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.modal-window h2 {
    margin: 0 44px 14px 0;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.modal-window p {
    color: var(--muted);
    line-height: 1.5;
}

.modal-phone {
    color: var(--text) !important;
}

.modal-phone strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.modal-small {
    font-size: 14px;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .contacts-grid {
    grid-template-columns: 1fr;
    }

    .contact-panel {
        padding: 20px;
    }

    .social-link {
        min-height: 64px;
        padding: 11px 12px;
    }

    .social-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }


    .container {
        width: min(100% - 24px, 1120px);
    }

    .logo img {
    height: 38px;
    max-width: 180px;
    }

    .header-inner {
        min-height: 58px;
    }

    .hero {
        padding: 28px 0 20px;
    }

    h1 {
        margin-top: 16px;
        font-size: 42px;
    }

    .hero-text {
        font-size: 17px;
    }

    .primary-button {
        width: 100%;
    }

    .mini-points {
        display: grid;
    }

    .login-card {
        padding: 20px;
        border-radius: 22px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .advantage-card {
        padding: 20px;
    }

    .cta-box {
        padding: 24px 18px;
    }

    .modal-window {
        bottom: 0;
        width: 100%;
        border-radius: 26px 26px 0 0;
    }
}
