/* ===========================
   СБРОС СТИЛЕЙ
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #0f0f1a;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   ШАПКА САЙТА
   =========================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(15, 15, 26, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__icon {
    font-size: 28px;
}

.header__title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.header__nav {
    display: flex;
    gap: 24px;
}

.header__link {
    font-size: 16px;
    color: #a0a0b0;
    transition: color 0.3s;
}

.header__link:hover {
    color: #ffffff;
}
/* ===========================
   ГЛАВНЫЙ ЭКРАН (HERO)
   =========================== */

.hero {
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.hero__title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: 18px;
    color: #a0a0b0;
    margin-bottom: 50px;
}

/* ===========================
   СЕТКА КАРТОЧЕК РЕЖИМОВ
   =========================== */

.modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
   ОДНА КАРТОЧКА
   =========================== */

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
}

.mode-card:hover {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.1);
}

.mode-card__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.mode-card__title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.mode-card__desc {
    font-size: 14px;
    color: #a0a0b0;
    line-height: 1.5;
}
/* ===========================
   ЦВЕТОВЫЕ АКЦЕНТЫ КАРТОЧЕК
   =========================== */

.mode-card--work:hover {
    border-color: #6c5ce7;
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.2);
}

.mode-card--sport:hover {
    border-color: #e74c3c;
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.2);
}

.mode-card--sleep:hover {
    border-color: #0984e3;
    box-shadow: 0 8px 30px rgba(9, 132, 227, 0.2);
}

.mode-card--meditate:hover {
    border-color: #00b894;
    box-shadow: 0 8px 30px rgba(0, 184, 148, 0.2);
}

/* ===========================
   СЕКЦИЯ "КАК ЭТО РАБОТАЕТ"
   =========================== */

.how-it-works {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
}

.steps {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.step {
    flex: 1;
    text-align: center;
    padding: 24px;
    max-width: 260px;
}

.step__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #6c5ce7;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step__title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.step__text {
    font-size: 14px;
    color: #a0a0b0;
    line-height: 1.5;
}
/* ===========================
   ПОДВАЛ САЙТА (FOOTER)
   =========================== */

.footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

.footer__text {
    font-size: 14px;
    color: #606070;
    margin-bottom: 12px;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer__link {
    font-size: 14px;
    color: #a0a0b0;
    transition: color 0.3s;
}

.footer__link:hover {
    color: #ffffff;
}
/* ===========================
   ПЛАНШЕТЫ (экран до 768px)
   =========================== */

@media (max-width: 768px) {

    .header {
        padding: 16px 20px;
    }

    .header__title {
        font-size: 20px;
    }

    .header__link {
        font-size: 14px;
    }

    .hero {
        padding: 50px 16px 40px;
    }

    .hero__title {
        font-size: 30px;
    }

    .hero__subtitle {
        font-size: 16px;
        margin-bottom: 36px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
    }
}

/* ===========================
   ТЕЛЕФОНЫ (экран до 480px)
   =========================== */

@media (max-width: 480px) {

    .header {
        padding: 12px 16px;
    }

    .header__title {
        font-size: 18px;
    }

    .header__nav {
        gap: 16px;
    }

    .header__link {
        font-size: 13px;
    }

    .hero {
        padding: 36px 12px 30px;
    }

    .hero__title {
        font-size: 24px;
    }

    .hero__subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .modes {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mode-card {
        padding: 30px 20px;
    }

    .mode-card__icon {
        font-size: 40px;
    }

    .mode-card__title {
        font-size: 20px;
    }

    .section-title {
        font-size: 22px;
    }
}