/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9fb;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Навигация */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d47a1;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

.nav .logo {
    font-weight: bold;
    color: #ffffff;
    font-size: 1.5rem;
}

.nav .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Hero-блок */
.hero {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    border-radius: 0 0 50px 50px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки */
.btn-primary, .btn-secondary {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ff6d00;
    color: #fff;
}

.btn-primary:hover {
    background: #ff8f33;
}

.btn-secondary {
    background: #ffffff;
    color: #0d47a1;
    border: 2px solid #0d47a1;
}

.btn-secondary:hover {
    background: #e3f2fd;
}

/* Секция преимуществ */
.features {
    max-width: 1200px;
    margin: auto;
    padding: 4rem 2rem;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0d47a1;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    flex: 1 1 250px;
    max-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.card h3 {
    color: #0d47a1;
    margin-bottom: 1rem;
}

.card p {
    color: #4d4d4d;
    font-size: 0.95rem;
}

/* CTA-блок */
.cta {
    text-align: center;
    padding: 4rem 2rem;
    background: #e3f2fd;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #0d47a1;
}

/* Разделы страниц */
.about, .howto, .terms, .privacy {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: auto;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.about h2, .howto h2, .terms h2, .privacy h2 {
    color: #0d47a1;
    margin-bottom: 1rem;
}

/* Списки */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Футер */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #0d47a1;
    color: #ffffff;
    font-size: 0.9rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav { flex-direction: column; align-items: flex-start; }
    .nav .menu { flex-direction: column; width: 100%; gap: 0.5rem; margin-top: 0.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .cards { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}
