* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --accent: #3182ce;
    --gold: #d69e2e;
    --bg: #f7fafc;
    --text: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--primary);
    padding: 12px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.lang-switch {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}

.lang-switch option {
    color: var(--text);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 100px 20px 60px;
    text-align: center;
    color: var(--white);
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(214, 158, 46, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 158, 46, 0.5);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.5);
    margin-top: 12px;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Sections */
.section {
    padding: 50px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Advantages */
.advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.advantage {
    background: var(--white);
    padding: 20px 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.advantage-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.advantage h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.advantage p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Contacts */
.contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

.contact-telegram {
    background: #0088cc;
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}

/* Install banner */
.install-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 100;
    text-align: center;
}

.install-banner.show {
    display: block;
}

.install-btn {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.install-dismiss {
    background: none;
    border: none;
    color: var(--text-light);
    margin-left: 12px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Form (ask page) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
}

.page-content {
    padding-top: 80px;
}

/* Status page */
.status-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.95rem;
}

.status-row:last-child {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.not-found {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

/* RTL support (Arabic) */
html[dir="rtl"] .step {
    direction: rtl;
}

html[dir="rtl"] .status-row {
    direction: rtl;
}
