/* ============================================
   Не один — стили сайта
   ============================================ */

/* ---------- Базовые настройки ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4f8fc;
    --card-bg: #ffffff;
    --text: #2b3a4a;
    --text-soft: #5a6b7c;
    --accent: #8db3d6;
    --accent-soft: #b8d0e6;
    --green: #a8c8b8;
    --shadow: 0 4px 16px rgba(141, 179, 214, 0.15);
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Шапка ---------- */
.header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(107, 163, 214, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--accent);
}

/* Бургер (скрыт на десктопе) */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: 0.3s;
}

/* ---------- Главный блок ---------- */
.hero {
    padding: 80px 0;
    background: #ffffff;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(107, 163, 214, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(107, 163, 214, 0.4);
}

.btn-secondary {
    background: var(--green);
    color: #2b3a4a;
    box-shadow: 0 4px 12px rgba(158, 212, 179, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(158, 212, 179, 0.4);
}

.hero-image {
    flex: 1;
    min-width: 240px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 280px;
    width: 100%;
}

/* ---------- Разделы ---------- */
.sections {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    color: var(--text);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(107, 163, 214, 0.2);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text);
}

.card p {
    font-size: 15px;
    color: var(--text-soft);
}

/* ---------- Финал ---------- */
.final {
    padding: 60px 0;
    text-align: center;
}

.final-text {
    font-size: 24px;
    color: var(--accent);
    font-weight: 600;
}

/* ---------- Подвал ---------- */
.footer {
    background: #e8f1f9;
    padding: 32px 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
}

.footer-note {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.8;
}

/* ---------- Внутренние страницы ---------- */
.page {
    padding: 60px 0;
}

.page h1 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--text);
}

.page h2 {
    font-size: 24px;
    margin: 32px 0 16px;
    color: var(--text);
}

.page p {
    font-size: 17px;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.page ul, .page ol {
    margin: 16px 0 16px 24px;
    color: var(--text-soft);
    font-size: 17px;
}

.page li {
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
}

.back-link:hover {
    text-decoration: underline;
}

/* ---------- Форма ---------- */
.contact-form {
    max-width: 520px;
    margin-top: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border: 1px solid #cfdde9;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: var(--text);
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(107, 163, 214, 0.15);
}

.form-note {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 12px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 34px;
    }
    .hero-inner {
        gap: 32px;
    }
    .section-title {
        font-size: 26px;
    }
    .page h1 {
        font-size: 28px;
    }

    .burger {
        display: flex;
    }
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        padding-top: 16px;
    }
    .nav.open {
        display: flex;
    }
   /* ---------- Блок «Помни» ---------- */
   .remember {
       padding: 60px 0;
       background: #eaf4fc;
   }
   
   .remember-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
       gap: 24px;
       margin-top: 32px;
   }
   
   .remember-item {
       text-align: center;
       padding: 24px 16px;
   }
   
   .remember-icon {
       font-size: 40px;
       margin-bottom: 12px;
   }
   
   .remember-item p {
       font-size: 17px;
       color: var(--text);
       font-weight: 500;
   }
   
   /* ---------- Блок «Не нашёл ответ?» ---------- */
   .cta {
       padding: 80px 0;
       text-align: center;
   }
   
   .cta h2 {
       font-size: 32px;
       margin-bottom: 16px;
       color: var(--text);
   }
   
   .cta p {
       font-size: 18px;
       color: var(--text-soft);
       margin-bottom: 28px;
   }
   
   /* ---------- Финальный блок — отступ снизу ---------- */
   .final {
       padding: 40px 0 80px;
   }
}
