/* ---------- STAGE 0: GLOBAL STYLES ---------- */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

/* CSS Variables */
:root {
    --font-main: 'Manrope', sans-serif;
    
    --color-bg: #F9F9F9;
    --color-text: #2D3748;
    --color-primary: #4A90E2;
    --color-secondary-bg: #F6F8FA;
    --color-accent: #50E3C2;
    --color-border: #E2E8F0;
    --color-white: #FFFFFF;

    --header-height: 70px;
}

/* Base & Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ---------- STAGE 1: HEADER ---------- */

.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    color: var(--color-text);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav__link {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav__link--cta:hover {
    background-color: #357ABD;
    color: var(--color-white);
    transform: translateY(-2px);
}
.nav__link--cta:hover::after {
    width: 0;
}

.burger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 24px;
    height: 18px;
    position: relative;
}

.burger__line {
    display: block;
    background-color: var(--color-text);
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}
.burger__line::before,
.burger__line::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}
.burger__line::before {
    top: -8px;
}
.burger__line::after {
    bottom: -8px;
}

/* ---------- STAGE 2: FOOTER ---------- */

.footer {
    background-color: var(--color-secondary-bg);
    padding: 60px 0 0;
    border-top: 1px solid var(--color-border);
    color: #555;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    margin-bottom: 15px;
    display: inline-block;
}

.footer__tagline {
    font-size: 14px;
    line-height: 1.5;
}

.footer__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--color-primary);
}

.footer__list--contact .footer__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* --- Responsive Styles (Mobile-First) --- */

@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none; /* Будет реализовано позже с JS */
    }
    .burger {
        display: block;
    }
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__list--contact .footer__item {
        justify-content: center;
    }
}

/* ---------- STAGE 0: GLOBAL STYLES ---------- */
/* ... (код из предыдущего шага без изменений) ... */

/* --- Utility Classes (New) --- */
.button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
}


/* ---------- STAGE 1: HEADER ---------- */
/* ... (код из предыдущего шага без изменений) ... */


/* ---------- STAGE 2: FOOTER ---------- */
/* ... (код из предыдущего шага без изменений) ... */


/* ---------- STAGE 3: HERO SECTION ---------- */
/* ▼▼▼ НОВЫЙ КОД ▼▼▼ */
.hero {
    padding: 80px 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background-color: var(--color-white);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero__content {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 500px;
}

.hero__subtitle {
    font-size: 20px;
    color: var(--color-primary);
    font-weight: 600;
    height: 30px; /* Фиксированная высота для предотвращения "прыжка" контента */
    margin-bottom: 25px;
}

.hero__cursor {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero__description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scaleIn 1s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero__img {
    max-width: 100%;
    border-radius: 20px;
}

/* --- Responsive Styles (Mobile-First) --- */

/* ... (предыдущие медиа-запросы без изменений) ... */

@media (max-width: 992px) {
    /* ... (стили для футера) ... */
    .hero__title {
        font-size: 36px;
    }
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content {
        order: 2; /* Текст будет под картинкой */
    }
    .hero__visual {
        order: 1;
    }
    .hero__title, .hero__description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* ... (стили для хедера и футера) ... */
    .hero {
        padding: 60px 0;
    }
    .hero__title {
        font-size: 32px;
    }
    .hero__subtitle {
        font-size: 18px;
    }
    .hero__description {
        font-size: 16px;
    }
}

/* ... (все предыдущие стили остаются без изменений) ... */

/* --- Utility Classes (Updated) --- */
.button { /*...*/ }

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.section__description {
    font-size: 18px;
    line-height: 1.7;
    max-width: 500px;
}


/* ---------- STAGE 3.1: CREATIVITY SECTION ---------- */
/* ▼▼▼ НОВЫЙ КОД ▼▼▼ */
.creativity {
    background-color: var(--color-secondary-bg);
}

.creativity__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.creativity__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.07);
}

.card__icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: var(--color-primary-light, #e9f2ff); /* Добавим новый цвет для фона иконок */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.card__icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card__text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* --- Responsive Styles (дополнения) --- */
@media (max-width: 992px) {
    /* ... */
    .section__title {
        font-size: 32px;
    }
    .creativity__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .creativity__intro {
        text-align: center;
    }
    .section__description {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* ... */
    .section {
        padding: 60px 0;
    }
    .creativity__grid {
        grid-template-columns: 1fr;
    }
}

/* ... (все предыдущие стили остаются без изменений) ... */

/* ---------- STAGE 3.2: ROUTINE SECTION ---------- */
/* ▼▼▼ НОВЫЙ КОД ▼▼▼ */
.routine {
    background-color: var(--color-white);
}

.routine__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.routine__img {
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.routine__content .section__description {
    margin-bottom: 30px;
}

/* Accordion Styles */
.accordion {
    border-top: 1px solid var(--color-border);
}

.accordion__item {
    border-bottom: 1px solid var(--color-border);
}

.accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text);
}

.accordion__icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.accordion__text {
    padding-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.accordion__item--active .accordion__icon {
    transform: rotate(180deg);
}

.accordion__item--active .accordion__header {
    color: var(--color-primary);
}


/* --- Responsive Styles (дополнения) --- */
@media (max-width: 992px) {
    /* ... */
    .routine__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .routine__content {
        order: -1; /* Контент будет над картинкой */
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* ... */
    .routine__content {
        text-align: left;
    }
}

/* ... (все предыдущие стили остаются без изменений) ... */

/* --- Utility Classes (Updated) --- */
.section__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* ---------- STAGE 3.3: LEARNING SECTION ---------- */
/* ▼▼▼ НОВЫЙ КОД ▼▼▼ */
.learning {
    background-color: var(--color-secondary-bg);
}

.learning__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.feature__icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.feature__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature__text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* --- Responsive Styles (дополнения) --- */
@media (max-width: 992px) {
    /* ... */
    .learning__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* ... */
    .learning__grid {
        grid-template-columns: 1fr;
    }
}

/* ... (все предыдущие стили остаются без изменений) ... */

/* ---------- STAGE 3.4: TOOLS SECTION ---------- */
/* ▼▼▼ НОВЫЙ КОД ▼▼▼ */
.tools {
    background-color: var(--color-white);
}

.tools__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tool-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.tool-card__logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background-color: var(--color-secondary-bg); /* Placeholder bg */
}

.tool-card__name {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* --- Responsive Styles (дополнения) --- */
@media (max-width: 992px) {
    /* ... */
    .tools__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* ... */
    .tool-card__name {
        font-size: 16px;
    }
}

/* ... (все предыдущие стили остаются без изменений) ... */

/* ---------- STAGE 4: CONTACT SECTION ---------- */
/* ▼▼▼ НОВЫЙ КОД ▼▼▼ */
.contact {
    background-color: var(--color-secondary-bg);
    padding: 100px 0;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact__title,
.contact__description {
    color: var(--color-text);
}

.contact__description {
    margin-bottom: 30px;
}

.contact__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
}

.contact__item a:hover {
    color: var(--color-primary);
}

.contact__icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

/* Form Styles */
.form__group {
    position: relative;
    margin-bottom: 25px;
}

.form__input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-white);
    font-size: 16px;
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form__label {
    position: absolute;
    top: 13px;
    left: 13px;
    background-color: var(--color-white);
    padding: 0 5px;
    color: #888;
    transition: all 0.2s ease;
    pointer-events: none;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
    top: -10px;
    left: 10px;
    font-size: 13px;
    color: var(--color-primary);
}

.form__label--static {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.form__group--checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.form__checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.form__checkbox-label {
    font-size: 14px;
}
.form__checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form__button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.form__message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none; /* Скрыто по умолчанию */
}
.form__message--success {
    background-color: #e6f9f1;
    color: #128e5a;
}
.form__message--error {
    background-color: #fdeeee;
    color: #d93025;
}

/* --- Responsive Styles (дополнения) --- */
@media (max-width: 992px) {
    /* ... */
    .contact__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact__info {
        text-align: center;
    }
    .contact__list {
        justify-content: center;
    }
}

/* ... (все предыдущие стили остаются без изменений) ... */

/* ---------- STAGE 5.1: COOKIE POP-UP ---------- */
/* ▼▼▼ НОВЫЙ КОД ▼▼▼ */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 600px;
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 200;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cookie-popup--visible {
    opacity: 1;
    visibility: visible;
}

.cookie-popup__text {
    font-size: 15px;
}

.cookie-popup__link {
    text-decoration: underline;
    color: var(--color-accent);
}

.cookie-popup__button {
    flex-shrink: 0;
    padding: 8px 20px;
    font-size: 14px;
    background-color: var(--color-primary);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
}
/* ▲▲▲ КОНЕЦ НОВОГО КОДА ▲▲▲ */


/* ---------- STAGE 5.2: POLICY PAGES STYLES ---------- */
/* ▼▼▼ НОВЫЙ КОД ▼▼▼ */
.pages .container {
    max-width: 800px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.pages h1, .pages h2 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.pages h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
}

.pages p, .pages ul {
    font-size: 18px;
    line-height: 1.8;
    color: #4A5568; /* Немного светлее основного текста для лучшей читаемости */
    margin-bottom: 20px;
}

.pages ul {
    padding-left: 25px;
    list-style: disc;
}

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

.pages a {
    color: var(--color-primary);
    text-decoration: underline;
}

.pages strong {
    font-weight: 700;
    color: var(--color-text);
}