:root {
    --primary: #7B61FF;
    --secondary: #00D4AA;
    --accent: #FF6B35;
    --dark: #1A1A2E;
    --light: #F8F9FA;
    --success: #06D6A0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
}

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

/* Хедер */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-container {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin: 0 10px 0 0;
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
}

/* Кнопка бургера (по умолчанию скрыта) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 1.6rem;
    color: var(--primary);
    margin-right: 25px;
}

/* Отступ под фиксированный хедер */
main {
    padding-top: 82px;
}

/* Навигация в хедере (десктоп) */
.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Группа ссылок меню */
.header-nav-main {
    display: flex;
    gap: 10px;
}

/* Блок контактов справа */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 24px;
}

.header-phone {
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.95rem;
}

.header-phone:hover {
    color: var(--primary);
}

/* Мессенджеры */
.header-messengers {
    display: flex;
    gap: 6px;
}

.header-messenger {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(123, 97, 255, 0.06);
    color: var(--primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.header-messenger-wa {
    color: #25D366;
}

.header-messenger-tg {
    color: #0088cc;
}

.header-messenger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Кнопки в хедере */
.header-nav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
    transform: none;
    flex: 0 0 auto;
}

.header-nav .btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.header-nav .btn-primary {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: none;
}

.header-nav .btn-primary:hover {
    background: #08e3b8;
    color: var(--dark);
    box-shadow: none;
}

.header-nav .btn-ghost {
    background: transparent;
    color: var(--primary);
    border-color: rgba(123, 97, 255, 0.48);
    padding: 0 16px;
    box-shadow: none;
}

.header-nav .btn-ghost:hover {
    background: rgba(123, 97, 255, 0.06);
    color: var(--primary);
    box-shadow: none;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 0;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: 0 12px 30px rgba(0, 212, 170, 0.28);
}

.btn-primary:hover {
    background: #08e3b8;
    color: var(--dark);
    box-shadow: 0 16px 38px rgba(0, 212, 170, 0.34);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(123, 97, 255, 0.5);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(123, 97, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: none;
}

@media (max-width: 768px) {
    /* Показываем бургер, прячем меню в дропдаун */
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 10px 20px 16px;
        background: rgba(255,255,255,0.98);
        border-bottom: 1px solid rgba(0,0,0,0.08);
        display: none;                 /* скрыто по умолчанию */
        flex-direction: column;
        gap: 12px;
    }

    .header-nav.is-open {
        display: flex;                 /* показываем, когда открыт */
    }

    .header-nav-main {
        flex-direction: column;
        gap: 8px;
    }

    .header-contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-left: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.06);
    }

    .header-messengers {
        margin-bottom: 4px;
    }

    .header-nav .btn {
        width: 100%;
        min-height: 42px;
        height: auto;
        text-align: center;
        padding: 12px 16px;
    }
}

footer {
    background: #1A1A2E;
    color: #ffffff;
    padding: 40px 0 24px;
    /* margin-top: 40px; */
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}
.footer-description {
    font-size: 0.9rem;
    opacity: 0.8;
}
.footer-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}
.footer-links li {
    margin-bottom: 4px;
}
.footer-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}
.footer-links a:hover {
    opacity: 1;
}
.social-links {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
}
.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 8px;
}


footer .logo {
    color: #ffffff;
    gap: 12px;
    line-height: 1.2;
}

footer .logo-icon {
    width: 56px;
    height: 56px;
    margin: 0;
    flex-shrink: 0;
}

.footer-brand {
    min-width: 0;
}

.footer-description,
.footer-links li,
.footer-links a {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    footer {
        padding: 32px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }

    footer .logo {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    footer .logo-icon {
        width: 48px;
        height: 48px;
    }

    .footer-description,
    .footer-links {
        font-size: 0.92rem;
    }

    .footer-title {
        margin-bottom: 10px;
    }

    .footer-links li {
        margin-bottom: 6px;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .copyright {
        text-align: left;
        line-height: 1.5;
        padding-top: 10px;
    }
}


.playhub-floating-cta {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--dark);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 16px 42px rgba(0, 212, 170, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playhub-floating-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 52px rgba(0, 212, 170, 0.40);
}

.playhub-floating-cta i {
    font-size: 1rem;
}

@media (max-width: 600px) {
    body {
        padding-bottom: 78px;
    }

    .playhub-floating-cta {
        left: 16px;
        right: 16px;
        bottom: 14px;
        width: auto;
        min-height: 54px;
    }
}



.form-consent {
    margin-top: 12px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(26, 26, 46, 0.68);
}

.form-consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cta-section .form-consent,
.case-form .form-consent,
.lead-modal .form-consent {
    text-align: center;
}

.cta-section .form-consent {
    color: rgba(255, 255, 255, 0.68);
}

.cta-section .form-consent a {
    color: rgba(255, 255, 255, 0.88);
}

.lead-modal .form-consent {
    margin-top: 10px;
    color: rgba(249, 250, 251, 0.74);
}

.lead-modal .form-consent a {
    color: #ffffff;
    text-decoration-color: rgba(0, 212, 170, 0.85);
}

.lead-modal .form-consent a:hover {
    color: #00D4AA;
}

.privacy-page {
    padding: 150px 0 80px;
    background: #F8F9FA;
}

.privacy-card {
    max-width: 920px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    padding: 46px;
    box-shadow: 0 18px 48px rgba(26, 26, 46, 0.08);
}

.privacy-card h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.12;
    margin-bottom: 14px;
    color: var(--dark);
}

.privacy-updated {
    color: rgba(26, 26, 46, 0.62);
    margin-bottom: 30px;
}

.privacy-card h2 {
    font-size: 1.25rem;
    margin: 30px 0 10px;
    color: var(--dark);
}

.privacy-card p,
.privacy-card li {
    color: rgba(26, 26, 46, 0.82);
}

.privacy-card ul {
    padding-left: 22px;
    margin: 10px 0 0;
}

.privacy-card a {
    color: var(--primary);
}

@media (max-width: 640px) {
    .privacy-page {
        padding: 120px 0 56px;
    }

    .privacy-card {
        padding: 28px 20px;
        border-radius: 20px;
    }
}



[data-playhub-lead-form].is-submitting {
    cursor: wait;
}

[data-playhub-lead-form].is-submitting button[type="submit"],
[data-playhub-lead-form].is-submitting input[type="submit"] {
    opacity: 0.76;
    cursor: progress;
    pointer-events: none;
}

[data-playhub-lead-form].is-submitting input,
[data-playhub-lead-form].is-submitting select,
[data-playhub-lead-form].is-submitting textarea {
    transition: opacity 0.16s ease;
}

.playhub-hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Shared lead modal */
.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lead-modal.is-open {
    display: flex;
}

.lead-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
}

.lead-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 440px;
    width: 100%;
    background: #0b1120;
    color: #f9fafb;
    border-radius: 18px;
    padding: 20px 22px 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.lead-modal-title {
    margin: 0 32px 6px 0;
    font-size: 1.22rem;
    font-weight: 700;
}

.lead-modal-subtitle {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(249, 250, 251, 0.84);
}

.lead-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.lead-modal-close:hover {
    color: #ffffff;
}

.lead-modal-form-group {
    margin-bottom: 10px;
}

.lead-modal-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #020617;
    color: #e5e7eb;
    padding: 11px 12px;
    font-size: 0.92rem;
}

.lead-modal-input:focus {
    outline: none;
    border-color: rgba(0, 212, 170, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

.lead-modal-input::placeholder {
    color: #94a3b8;
}

.lead-modal-result {
    margin-top: 10px;
    font-size: 0.86rem;
    line-height: 1.45;
}

.lead-modal-result--success {
    color: #22c55e;
}

.lead-modal-result--error {
    color: #f97373;
}

.lead-modal .form-consent {
    margin-top: 10px;
    color: rgba(249, 250, 251, 0.78) !important;
    text-align: center;
}

.lead-modal .form-consent a {
    color: #ffffff !important;
    text-decoration-color: rgba(0, 212, 170, 0.9);
}

.lead-modal .form-consent a:hover {
    color: #00D4AA !important;
}

@media (max-width: 600px) {
    .lead-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .lead-modal-dialog {
        max-width: none;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        padding: 18px 16px 20px;
        border-radius: 18px 18px 14px 14px;
    }
}

.thanks-page {
    min-height: calc(100vh - 82px);
    background:
        radial-gradient(circle at top left, rgba(123, 97, 255, 0.18), transparent 36%),
        radial-gradient(circle at bottom right, rgba(0, 212, 170, 0.16), transparent 34%),
        #F8F9FA;
}

.thanks-hero {
    padding: 70px 0 82px;
}

.thanks-card {
    max-width: 920px;
    color: var(--dark);
    margin: 0 auto;
    background: #ffffff;
    border-radius: 32px;
    padding: 46px;
    box-shadow: 0 22px 70px rgba(26, 26, 46, 0.10);
    border: 1px solid rgba(123, 97, 255, 0.08);
}

.thanks-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 170, 0.14);
    color: #00A985;
    font-size: 1.75rem;
    margin-bottom: 18px;
}

.thanks-kicker {
    margin: 0 0 8px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.thanks-card h1 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
}

.thanks-subtitle {
    max-width: 690px;
    margin: 16px 0 0;
    color: rgba(26, 26, 46, 0.76);
    font-size: 1.05rem;
}

.thanks-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 32px 0 0;
}

.thanks-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #F8F9FA;
    border: 1px solid rgba(123, 97, 255, 0.10);
    border-radius: 18px;
    padding: 16px;
}

.thanks-step-num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
}

.thanks-step h2 {
    margin: 0 0 4px;
    color: var(--dark);
    font-size: 0.98rem;
}

.thanks-step p {
    margin: 0;
    color: rgba(26, 26, 46, 0.70);
    font-size: 0.88rem;
    line-height: 1.45;
}

.thanks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.thanks-actions .btn {
    min-height: 48px;
    padding: 14px 24px;
}

.thanks-contact-panel {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(26, 26, 46, 0.08);
}

.thanks-contact-title {
    margin-bottom: 10px;
    color: rgba(26, 26, 46, 0.68);
    font-size: 0.88rem;
    font-weight: 600;
}

.thanks-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thanks-contact-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(123, 97, 255, 0.06);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.thanks-contact-links a:hover {
    background: rgba(0, 212, 170, 0.14);
    color: #008A70;
}

@media (max-width: 820px) {
    .thanks-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .thanks-hero {
        padding: 42px 0 58px;
    }

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

    .thanks-actions .btn {
        width: 100%;
        text-align: center;
    }

    .thanks-contact-links a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    header .header-container {
        min-height: 66px;
        position: relative;
    }

    header .logo {
        min-width: 0;
        line-height: 1;
    }

    header .logo-icon {
        width: 52px;
        height: 52px;
        margin: 0 8px 0 0;
        flex: 0 0 auto;
    }

    header .logo-text {
        font-size: 1.05rem;
        white-space: nowrap;
    }

    .menu-toggle {
        margin-right: 0;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-nav {
        max-height: calc(100vh - 66px);
        overflow-y: auto;
        box-shadow: 0 18px 34px rgba(26,26,46,0.08);
    }

    main {
        padding-top: 76px;
    }

    .lead-modal-input,
    .lead-modal select,
    .lead-modal textarea {
        font-size: 16px;
    }

    .lead-modal-close {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .playhub-floating-cta {
        bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .lead-modal {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .lead-modal-dialog {
        -webkit-overflow-scrolling: touch;
    }
}

/* Release UX: form submit states */
form.is-submitting button[type="submit"],
button[disabled],
input[type="submit"][disabled] {
    opacity: 0.72;
    cursor: progress;
    pointer-events: none;
}
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
}
