/* 1. Глобальные переменные и стили */
:root {
    --background-color: #f9f9f9;
    --text-color: #1a1a1a;
    --primary-color: #4f46e5;
    --secondary-color: #6b7280;
    --border-color: #e5e7eb;
    --font-family-base: 'Inter', sans-serif;
    --font-family-heading: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -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 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* 2. Стили хедера */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header__nav-list {
    display: flex;
    gap: 30px;
}

.header__nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
    transition: color 0.3s ease;
}

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

.header__nav-link:hover {
    color: var(--text-color);
}

.header__nav-link:hover::after {
    width: 100%;
}

/* 3. Стили футера */
.footer {
    padding: 60px 0;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer__column--logo {
    grid-column: span 1;
}

.footer__copy {
    margin-top: 16px;
    font-size: 14px;
    color: var(--secondary-color);
}

.footer__title {
    font-family: var(--font-family-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.footer__list--contacts li {
    display: flex;
    align-items: flex-start;
}

.footer__link {
    font-size: 15px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

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

.footer__icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer__address span {
    color: var(--secondary-color);
    font-size: 15px;
}

/* 4. Адаптивность */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none; /* В будущем можно будет добавить мобильное меню */
    }
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__list--contacts li {
        justify-content: center;
    }
    .footer__address {
       justify-content: center;
    }
}

/* 5. Стили Hero-секции */
.hero {
    padding: 80px 0;
    overflow: hidden; /* Скрываем элементы анимации за пределами блока */
}

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

.hero__title {
    font-family: var(--font-family-heading);
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Стили для основной кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-family-base);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}

.btn__icon {
    width: 20px;
    height: 20px;
}

/* Стили для блока анимации */
.hero__animation {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__animation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* Начальное состояние для родительского контейнера (для stagger) */
    opacity: 0; 
}

.hero__icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    /* Начальное состояние для дочерних элементов (для анимации) */
    opacity: 0; 
}

.hero__icon-wrapper i {
    width: 36px;
    height: 36px;
}


/* Адаптивность для Hero-секции */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content {
        order: 2; /* Текст будет под анимацией */
    }
    .hero__animation {
        order: 1;
        margin-bottom: 40px;
        height: 350px;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    .hero__title {
        font-size: 36px;
    }
    .hero__icon-wrapper {
        width: 70px;
        height: 70px;
    }
    .hero__animation-grid {
        gap: 20px;
    }
}

/* 6. Стили секции "Возможности" (Features) */
.features {
    padding: 80px 0;
    background-color: #ffffff;
}

.features__header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features__title {
    font-family: var(--font-family-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.features__subtitle {
    font-size: 18px;
    color: var(--secondary-color);
}

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

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-card__icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2ff; /* Светлый оттенок индиго */
}

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

.feature-card__title {
    font-family: var(--font-family-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card__description {
    font-size: 15px;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Адаптивность для секции "Возможности" */
@media (max-width: 992px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }
    .features__title {
        font-size: 32px;
    }
    .features__grid {
        grid-template-columns: 1fr;
    }
}

/* 7. Модификатор для секции "Возможности" */
.features--alt {
    background-color: var(--background-color);
}

.features--alt .feature-card {
    background-color: #ffffff;
}

/* 8. Стили секции "Творчество" */
.creative {
    padding: 80px 0;
    background-color: #ffffff;
}

.creative__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Левая колонка чуть меньше */
    gap: 80px;
    align-items: center;
}

.creative__image-wrapper img {
    border-radius: 16px;
    width: 100%;
}

/* Стили аккордеона */
.accordion__item {
    border-bottom: 1px solid var(--border-color);
}
.accordion__item:first-child {
    border-top: 1px solid var(--border-color);
}

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

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

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

.accordion__content p {
    color: var(--secondary-color);
    padding-bottom: 0;
}

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

.accordion__item.is-active .accordion__content {
    /* max-height будет установлен через JS */
    padding-bottom: 24px;
}


/* Адаптивность для секции "Творчество" */
@media (max-width: 992px) {
    .creative__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .creative__image-wrapper {
        text-align: center;
    }
    .creative__image-wrapper img {
        max-width: 400px;
    }
}

/* 9. Стили секции "Обучение" */
.learn {
    padding: 80px 0;
    background-color: var(--background-color);
}

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

.learn__image-wrapper img {
    border-radius: 16px;
    width: 100%;
}

.learn__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.learn__list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.learn__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--primary-color);
}

.learn__item-title {
    font-family: var(--font-family-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.learn__item-text {
    color: var(--secondary-color);
    font-size: 15px;
}

/* Адаптивность для секции "Обучение" */
@media (max-width: 992px) {
    .learn__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .learn__content {
        order: 2;
    }
    .learn__image-wrapper {
        order: 1;
        text-align: center;
    }
    .learn__image-wrapper img {
        max-width: 400px;
    }
}

/* 10. Стили секции "Контакты" */
.contact {
    padding: 80px 0;
}

.contact__container {
    max-width: 900px;
}

.contact__content {
    text-align: center;
    margin-bottom: 50px;
}

.contact__title {
    font-family: var(--font-family-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact__subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    max-width: 650px;
    margin: 0 auto;
}

.contact__form-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    position: relative;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

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

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input.is-invalid {
    border-color: #ef4444;
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.form-group--checkbox label {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--secondary-color);
}

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

.contact-form__btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 10px;
}

/* Сообщение об успехе */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.success-message.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.success-message__icon {
    width: 60px;
    height: 60px;
    color: #22c55e;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 18px;
    font-weight: 500;
    max-width: 350px;
}

/* 11. Стили Cookie Pop-up */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateY(200%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-popup__text {
    font-size: 14px;
    color: var(--secondary-color);
}

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

.btn--cookie {
    padding: 8px 16px;
    font-size: 14px;
    flex-shrink: 0;
}


/* 12. Стили для стандартных текстовых страниц (политики и т.д.) */
.pages {
    padding: 60px 0;
}

.pages .container {
    max-width: 800px; /* Делаем контейнер уже для лучшей читаемости */
}

.pages h1 {
    font-family: var(--font-family-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

.pages h2 {
    font-family: var(--font-family-heading);
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.pages ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.pages li {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

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

.pages a:hover {
    color: #3730a3; /* Более темный оттенок индиго */
}

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


/* Адаптивность для Cookie Pop-up */
@media (max-width: 576px) {
    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    .cookie-popup__content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}