:root {
    --primary: #1e40af;
    --accent: #06b6d4;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.hero-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a5f 100%);
    color: white;
    padding: 4rem 1rem 8rem;
}

.usp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.alarm-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background: white;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.submit-btn {
    position: relative;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.submit-btn.loading .btn-text-inner {
    visibility: hidden;
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 1.4rem;
    height: 1.4rem;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: btn-spin 0.75s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.form-error {
    display: none;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    color: #b91c1c;
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    height: 100%;
    transition: all 0.2s ease;
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

.faq-item details {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

.faq-item details[open] summary {
    color: var(--primary);
}

.faq-answer {
    padding: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.premium-teaser {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.premium-teaser:hover {
    background: #f1f5f9;
}

.badge-coming-soon {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.ad-container {
    margin: 2.5rem auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.telegram-info-box {
    display: none;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #1d4ed8;
    margin-top: 0.5rem;
}

/* Interstitial modal */
.ad-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ad-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ad-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    line-height: 1;
}

.ad-close-btn:hover {
    color: #374151;
}

@media (max-width: 768px) {
    .hero-gradient {
        padding: 3rem 1.25rem 7rem;
    }

    .alarm-card {
        padding: 1.5rem;
    }
}
