/* 1. Глобальные переменные и стили */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;

    --color-bg: #F8F7F4;
    --color-text: #2C3E50;
    --color-primary: #E67E22;
    --color-secondary: #BDC3C7;
    --color-footer-bg: #2C3E50;
    --color-footer-text: #F8F7F4;

    --container-width: 1200px;
    --container-padding: 1.5rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    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;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* 2. Хедер */
.header {
    background-color: var(--color-bg);
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(248, 247, 244, 0.8);
}

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

.header__logo {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
}

.header__nav {
    display: none; /* Скрыто на мобильных */
}

.header__menu {
    display: flex;
    gap: 1.5rem;
}

.header__link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
}

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

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

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

.header__mobile-menu-button {
    display: block; /* Показываем кнопку на мобильных */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
}

/* 3. Футер */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 4rem 0 0;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer__logo {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--color-secondary);
    max-width: 250px;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: var(--color-secondary);
    font-size: 0.95rem;
}

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

.footer__list--contacts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.footer__bottom {
    border-top: 1px solid rgba(189, 195, 199, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-secondary);
}

/* 4. Адаптивность (Mobile-first) */
@media (min-width: 768px) {
    .header__mobile-menu-button {
        display: none;
    }

    .header__nav {
        display: block;
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 3rem;
    }
}

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

/* 5. Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden; /* Важно для декоративных элементов */
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 550px;
    color: rgba(44, 62, 80, 0.8);
}

.button {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.2);
}

.hero__visual img {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
}

/* Декоративные элементы для анимации */
.hero__deco {
    position: absolute;
    background-color: var(--color-primary);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.2s ease-out; /* Плавность для JS анимации */
}

.hero__deco--1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    opacity: 0.1;
}

.hero__deco--2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 15%;
    opacity: 0.15;
    background-color: var(--color-secondary);
}

/* Адаптивность для Hero */
@media (min-width: 768px) {
    .hero__title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 8rem 0;
    }
    .hero__container {
        grid-template-columns: 1fr 1fr;
    }
    .hero__title {
        font-size: 3.5rem;
    }
    .hero__subtitle {
        font-size: 1.2rem;
    }
}

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

/* 6. Секция "Features" (Бытовые задачи и др.) */
.features {
    padding: 6rem 0;
    background-color: white; /* Чередование фона для визуального разделения */
}

.features__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.features__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.features__subtitle {
    font-size: 1.1rem;
    color: rgba(44, 62, 80, 0.8);
    line-height: 1.7;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.features__card {
    background-color: var(--color-bg);
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
}

.features__icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(230, 126, 34, 0.1);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.features__icon-wrapper i {
    width: 32px;
    height: 32px;
}

.features__card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.features__card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(44, 62, 80, 0.8);
}

/* Адаптивность для Features */
@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .features__title {
        font-size: 2.5rem;
    }
}

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

/* 7. Секция "Alternating Features" (Работа и Учеба) */
.alternating-features {
    padding: 6rem 0;
    background-color: var(--color-bg); /* Возвращаемся к основному фону */
}

.alternating-features__header {
    text-align: center;
    margin-bottom: 4rem;
}

.alternating-features__title {
    font-size: 2.25rem;
}

.alternating-features__item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

.alternating-features__item:last-child {
    margin-bottom: 0;
}

.alternating-features__text {
    text-align: center;
}

.alternating-features__item-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.alternating-features__image img {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
    width: 100%;
}

/* Стили для анимации появления */
.hidden-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible-anim {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность для Alternating Features */
@media (min-width: 768px) {
    .alternating-features__item {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        text-align: left;
    }
    
    .alternating-features__item--reversed {
        grid-template-columns: 1fr 1fr; /* Уже определено, но для ясности */
    }

    /* Меняем порядок колонок для реверсивного блока */
    .alternating-features__item--reversed .alternating-features__image {
        order: -1;
    }
}

@media (min-width: 1024px) {
    .alternating-features__title {
        font-size: 2.5rem;
    }
}

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

/* 8. Секция "Creativity Showcase" (Творчество) */
.creativity-showcase {
    padding: 6rem 0;
    background-color: white; /* Снова белый фон для контраста */
}

.creativity-showcase__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.creativity-showcase__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.creativity-showcase__subtitle {
    font-size: 1.1rem;
    color: rgba(44, 62, 80, 0.8);
    line-height: 1.7;
}

.creativity-showcase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.creativity-showcase__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.1);
}

.creativity-showcase__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.creativity-showcase__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.5rem 1.5rem;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transition: background 0.4s ease;
}

.creativity-showcase__item-title {
    font-size: 1.5rem;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

/* Hover-эффекты для секции творчества */
.creativity-showcase__item:hover .creativity-showcase__image {
    transform: scale(1.05);
}

.creativity-showcase__item:hover .creativity-showcase__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 90%);
}

.creativity-showcase__item:hover .creativity-showcase__item-title {
    transform: translateY(0);
}


/* Адаптивность для Creativity */
@media (min-width: 1024px) {
    .creativity-showcase__title {
        font-size: 2.5rem;
    }
}

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

/* 9. Секция "Accordion" (Планирование) */
.accordion-section {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.accordion-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.accordion-section__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.accordion-section__subtitle {
    font-size: 1.1rem;
    color: rgba(44, 62, 80, 0.8);
    line-height: 1.7;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion__item {
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}
.accordion__item:first-child {
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.accordion__button {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    transition: background-color 0.3s ease;
}

.accordion__button:hover {
    background-color: rgba(44, 62, 80, 0.05);
}

.accordion__icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    color: var(--color-primary);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion__content p {
    padding: 0 1rem 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
    color: rgba(44, 62, 80, 0.9);
}

/* Стили для активного состояния */
.accordion__item.active .accordion__icon {
    transform: rotate(45deg);
}

.accordion__item.active .accordion__content {
    /* Достаточно большое значение для любого контента */
    max-height: 200px; 
}

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

/* 10. Секция "Contact" */
.contact-section {
    padding: 6rem 0;
    background-color: white;
}

.contact-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.contact-section__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.contact-section__subtitle {
    font-size: 1.1rem;
    color: rgba(44, 62, 80, 0.8);
    line-height: 1.7;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.form-group--checkbox input[type="checkbox"] {
    width: 1.25em;
    height: 1.25em;
    accent-color: var(--color-primary);
}

.form-group--checkbox label {
    font-size: 0.9rem;
}

.form-group--checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-form__button {
    width: 100%;
    max-width: 300px;
}

.form-message {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: none; /* Скрыто по умолчанию */
}

.form-message--success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message--error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Адаптивность для Contact Form */
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid .form-group:nth-child(3),
    .form-grid .form-group:nth-child(4) {
        grid-column: span 1;
    }
}

@media (min-width: 1024px) {
    .form-grid .form-group:nth-child(3) {
        grid-column: 1 / 3;
    }
}
/* ... (весь предыдущий код без изменений) ... */

/* 11. Cookie Pop-up */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 1rem;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 200;
}

.cookie-popup.active {
    transform: translateY(0);
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.cookie-popup p {
    font-size: 0.9rem;
    text-align: center;
}

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

.cookie-popup__button {
    padding: 0.5rem 1.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-popup__content {
        flex-direction: row;
    }
    .cookie-popup p {
        text-align: left;
    }
}


/* 12. Стили для статических страниц (Политики и т.д.) */
.pages {
    padding: 4rem 0;
}

.pages .container {
    max-width: 800px;
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.pages h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.pages p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.pages ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.pages li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

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

.pages strong {
    font-weight: 700;
}