:root {
    --primary: #AD1457;
    --primary-dark: #880E4F;
    --bg: #FFF5F7;
    --card: #FFFFFF;
    --text: #1a1a1a;
    --text-light: #555;
    --border: #F8BBD9;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(173,20,87,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Play', sans-serif;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    background: var(--bg);
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

input, textarea, [contenteditable] {
    cursor: text;
    -webkit-user-select: text;
    user-select: text;
}

.bg-waves {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
    opacity: 0.07;
}
.bg-waves svg { width: 100%; height: 100%; }

.header {
    background: var(--primary);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-badge { width: 48px; height: 48px; min-width: 48px; min-height: 48px; border: 2px solid #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; color: #fff; letter-spacing: 1px; }
.header-info { display: flex; flex-direction: column; }
.brand { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.2; }
.header-tagline { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.3; }
.header-center { flex: 1; display: flex; justify-content: center; gap: 32px; }
.header-center a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 17px; font-weight: 500; white-space: nowrap; }
.header-center a:hover { color: #fff; }
.header-right { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.btn-login { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 16px; font-family: 'Play', sans-serif; cursor: pointer; white-space: nowrap; }
.btn-login:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.menu-toggle { display: none; font-size: 26px; color: #fff; cursor: pointer; background: none; border: none; z-index: 11; }

.mobile-menu {
    display: none; position: fixed; top: 0; left: 0; width: 280px; height: auto; max-height: 100vh;
    background: #fff; padding: 24px 20px; z-index: 9999; flex-direction: column;
    gap: 4px; border-radius: 0 0 20px 0; box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: #1a1a1a; text-decoration: none; font-size: 20px; font-weight: 500; padding: 14px 16px; border-radius: 12px; display: flex; align-items: center; gap: 14px; }
.mobile-menu a:hover { background: #FFF5F7; }
.mobile-menu-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: #999; font-size: 24px; cursor: pointer; }
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 9998; }
.overlay.open { display: block; }

.container { max-width: 1050px; margin: 0 auto; padding: 40px 24px; position: relative; z-index: 1; flex: 1 0 auto; }

.hero { text-align: center; margin-bottom: 40px; }
.hero h2 { font-size: 34px; font-weight: 700; color: var(--primary-dark); line-height: 1.3; }
.hero p { font-size: 18px; color: #666; margin-top: 8px; max-width: 550px; margin-left: auto; margin-right: auto; }

.main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 56px; }

.card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.input-group { margin-bottom: 16px; position: relative; }
.input-number { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 2; }
.form-control { width: 100%; padding: 14px 14px 14px 44px; border: 1px solid var(--border); border-radius: 10px; font-size: 17px; font-family: 'Play', sans-serif; background: #FFFAFC; color: var(--text); }
.form-control:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(173,20,87,0.08); }
.form-control::placeholder { color: #BA8A9E; }
.btn-row { display: flex; gap: 8px; margin-bottom: 20px; }
.btn-row button { flex: 1; padding: 12px 8px; border: 1px solid var(--border); border-radius: 10px; background: #FFFAFC; font-size: 15px; font-family: 'Play', sans-serif; cursor: pointer; font-weight: 500; color: var(--primary); }
.btn-row button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary { width: 100%; padding: 16px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 18px; font-family: 'Play', sans-serif; cursor: pointer; letter-spacing: 0.5px; font-weight: 400; }
.btn-primary:hover { background: var(--primary-dark); }

.steps-col { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.step { display: flex; align-items: center; gap: 16px; }
.step-num { width: 50px; height: 50px; min-width: 50px; border: 2px solid #d0cccd; background: #f5f3f4; border-radius: 14px; font-weight: 700; font-size: 24px; color: #b0aaab; display: flex; align-items: center; justify-content: center; }
.step-info h4 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.step-info p { font-size: 16px; color: #777; line-height: 1.4; }

.pwa-block { background: #fff; border-radius: var(--radius); padding: 28px; margin-bottom: 56px; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; align-items: center; gap: 24px; }
.pwa-block.hidden { display: none; }
.pwa-icon { font-size: 48px; min-width: 64px; display: flex; justify-content: center; align-items: center; }
.pwa-content { text-align: left; }
.pwa-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--primary-dark); }
.pwa-content p { font-size: 15px; color: #777; line-height: 1.5; margin-bottom: 12px; }
.pwa-content .pwa-help { font-size: 14px; color: #999; margin-top: 6px; }
.pwa-content .pwa-help a { color: var(--primary); text-decoration: underline; }
.pwa-steps { display: flex; flex-direction: column; gap: 8px; }
.pwa-step { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--primary); font-weight: 500; }
.pwa-step span { width: 24px; height: 24px; min-width: 24px; min-height: 24px; flex-shrink: 0; background: var(--primary); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; line-height: 1; }

.section-title { text-align: center; font-size: 26px; font-weight: 700; margin-bottom: 28px; color: var(--primary-dark); }
.advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.adv-card { background: #fff; border-radius: 14px; padding: 28px 20px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.adv-icon { font-size: 36px; margin-bottom: 12px; }
.adv-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.adv-card p { font-size: 16px; color: #555; line-height: 1.5; }

.faq { margin-bottom: 56px; }
.faq-item { background: #fff; border-radius: 14px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(173,20,87,0.05); border: 1px solid var(--border); overflow: hidden; }
.faq-question { padding: 18px 24px; font-weight: 700; font-size: 17px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--primary-dark); }
.faq-question:hover { background: #FFF5F7; }
.faq-answer { padding: 0 24px 20px; font-size: 16px; color: #666; display: none; line-height: 1.5; }
.faq-item.open .faq-answer { display: block; }
.faq-arrow { font-size: 13px; color: var(--primary); transition: transform 0.2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); text-align: center; flex-shrink: 0;  padding: 32px 24px; font-size: 15px; line-height: 2; position: relative; z-index: 1; }
.footer a { color: #fff; text-decoration: none; font-weight: 500; }
.footer a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 8px; }

.fab { position: fixed; bottom: 32px; right: 24px; z-index: 9997; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-btn { width: 56px; height: 56px; background: var(--primary); color: #fff; border: none; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; position: relative; outline: none; font-size: 24px; text-decoration: none; }
.fab-btn i { font-size: 24px; }
.fab-btn:hover { background: var(--primary-dark); }
.fab-btn::after { content: 'Написать в поддержку'; position: absolute; right: 64px; background: #333; color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; font-family: 'Play', sans-serif; }
.fab-btn:hover::after { opacity: 1; }
.fab-panel { display: none; background: #fff; border-radius: 14px; padding: 24px; width: 380px; max-width: calc(100vw - 40px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); position: relative; }
.fab-panel.open { display: block; }
.fab-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 20px; cursor: pointer; color: #999; }
.fab-close:hover { color: #333; }
.fab-panel h4 { font-size: 17px; margin-bottom: 16px; color: var(--primary-dark); padding-right: 24px; }
.fab-panel input, .fab-panel textarea { width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: 'Play', sans-serif; resize: vertical; }
.fab-panel input[type="tel"] { font-family: 'Inter', 'Play', sans-serif; }
.fab-panel textarea { min-height: 80px; }
.fab-submit { width: 100%; padding: 12px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; font-family: 'Play', sans-serif; cursor: pointer; }
.fab-submit:hover { background: var(--primary-dark); }

@media (max-width: 768px) {
    .header { justify-content: space-between; }
    .header-center { display: none; }
    .header-right { margin-left: auto; }
    .menu-toggle { display: block; order: -1; }
    .header-left { flex: 1; justify-content: center; gap: 8px; }
    .main-grid { grid-template-columns: 1fr; }
    .advantages { grid-template-columns: 1fr 1fr; }
    .hero h2 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .pwa-block { flex-direction: column; text-align: left; }
    .pwa-steps { align-items: flex-start; }
    .fab-btn::after { display: none; }
}
@media (max-width: 480px) {
    .header { padding: 12px 16px; }
    .logo-badge { width: 42px; height: 42px; min-width: 42px; min-height: 42px; font-size: 20px; }
    .brand { font-size: 20px; }
    .header-tagline { font-size: 13px; max-width: 170px; }
    .btn-login { font-size: 14px; padding: 8px 14px; }
    .container { padding: 24px 14px; }
    .hero h2 { font-size: 26px; }
    .hero p { font-size: 16px; max-width: 300px; }
    .section-title { font-size: 24px; }
    .card { padding: 22px; }
    .form-control { font-size: 16px; }
    .btn-row button { font-size: 14px; }
    .btn-primary { font-size: 17px; }
    .advantages { grid-template-columns: 1fr; }
    .adv-card { padding: 24px 18px; }
    .adv-card h4 { font-size: 17px; }
    .adv-card p { font-size: 16px; }
    .faq-question { font-size: 17px; }
    .faq-answer { font-size: 16px; }
    .step-num { width: 46px; height: 46px; min-width: 46px; font-size: 22px; }
    .step-info h4 { font-size: 17px; }
    .step-info p { font-size: 16px; }
    .pwa-content h3 { font-size: 18px; }
    .pwa-content p { font-size: 15px; }
    .pwa-step { font-size: 15px; }
    .mobile-menu a { font-size: 22px; }
    .fab-panel { width: 280px; }
    .fab { right: 12px; bottom: 20px; }
    .fab-btn { width: 50px; height: 50px; }
}