@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #10b981;
    --success-light: #34d399;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    background: var(--bg-card);
    color: var(--text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.auth-section, .user-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Кнопки */
.btn {
    padding: 0.65rem 1.4rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-download {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-donate {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    width: 100%;
    margin-top: 1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(245, 158, 11, 0.35);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(245, 158, 11, 0.45);
}

/* Главная секция */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0f2fe 100%);
    color: var(--text);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.feature p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

/* Секции */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Скачать */
.download-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.download-info h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 800;
}

.download-features {
    list-style: none;
    margin: 2rem 0;
}

.download-features li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 600;
}

.download-image {
    text-align: center;
}

.placeholder-image {
    font-size: 8rem;
    opacity: 0.25;
    color: var(--primary);
}

/* Инструкция */
.guide-section {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border-bottom: 1px solid var(--border);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

.step {
    background: var(--bg-card);
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 800;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Донат */
.donate-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: var(--text);
    border-top: 1px solid var(--border);
}

.donate-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
    font-weight: 600;
}

.donate-rate {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2rem;
}

.donate-form {
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
}

.donate-form .form-group {
    margin-bottom: 1.25rem;
}

.donate-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
}

.donate-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
}

.donate-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.donate-form input::placeholder {
    color: var(--text-muted);
    opacity: 0.9;
}

/* Обратная связь */
.contact-section {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    color: var(--text);
    border-top: 1px solid var(--border);
}

.contact-notice {
    text-align: center;
    font-size: 1rem;
    margin: -1.5rem 0 2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-form {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.9;
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    width: 100%;
    margin-top: 0.5rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.85rem;
    box-shadow: 0 2px 15px rgba(37, 99, 235, 0.35);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(37, 99, 235, 0.4);
}

.contact-form-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-form-message.success {
    color: var(--success);
}

.contact-form-message.error {
    color: #dc2626;
}

/* Футер */
.footer {
    background: var(--bg-card);
    color: var(--text-muted);
    padding: 2rem 0;
    border-top: 2px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Ссылка входа для админа в футере */
.footer-admin-login {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.7;
    font-weight: 600;
}

.footer-admin-login:hover {
    opacity: 1;
    color: var(--primary);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
}

.modal-content {
    background: var(--bg-card);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close:hover {
    color: var(--primary);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 800;
}

.modal-content input {
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-weight: 600;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary);
}

.error-message {
    color: #dc2626;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: 2rem;
    }

    .download-content {
        grid-template-columns: 1fr;
    }

    .guide-steps {
        grid-template-columns: 1fr;
    }
}
