/* Глобальные настройки и переменные */
:root {
    --primary-color: #4A4E69;
    --secondary-color: #9A8C98;
    --accent-color: #F7A072;
    --text-color: #22223B;
    --bg-color: #F2E9E4;
    --light-gray: #C9ADA7;
    --white-color: #FFFFFF;

    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Roboto', sans-serif;
}

/* Сброс стилей и базовые стили */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

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

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

ul {
    list-style: none;
}

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

.button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--white-color);
    font-family: var(--font-family-headings);
    font-weight: 500;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #e68a5d;
    color: var(--white-color);
    transform: translateY(-2px);
}

/* Стили хедера */
.header {
    background-color: var(--bg-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(242, 233, 228, 0.8);
}

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

.header__logo {
    font-family: var(--font-family-headings);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.header__nav-link {
    font-weight: 500;
    font-size: 16px;
    padding-bottom: 5px;
    position: relative;
}

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

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

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

.header__burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 101;
}

/* Стили футера */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 60px 0;
}

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

.footer__logo {
    font-family: var(--font-family-headings);
    font-size: 28px;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 15px;
    display: inline-block;
}

.footer__copyright {
    font-size: 14px;
    color: var(--light-gray);
}

.footer__title {
    font-family: var(--font-family-headings);
    font-size: 18px;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 20px;
}

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

.footer__link {
    color: var(--light-gray);
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 15px;
    position: relative;
}

.footer__link:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer__list--contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer__text {
    color: var(--light-gray);
    font-size: 15px;
}


/* Адаптивность */
@media (min-width: 768px) {
    .header__nav {
        display: block;
    }
    
    .header__button {
        display: inline-block;
    }

    .header__burger-btn {
        display: none;
    }

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

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

/* --- Hero Section --- */
.hero {
    padding: 60px 0;
    overflow: hidden; /* Важно для анимации */
}

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

.hero__title {
    font-family: var(--font-family-headings);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.hero__image-wrapper {
    width: 80%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: transform 0.3s ease-out; /* Плавность для JS анимации */
}

.hero__image {
    border-radius: 20px;
}

.hero__decorative-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.5;
    z-index: 1;
    transition: transform 0.3s ease-out; /* Плавность для JS анимации */
    animation: blob-animation 15s infinite ease-in-out;
}

/* Анимация для декоративной фигуры */
@keyframes blob-animation {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%; }
    50% { border-radius: 60% 40% 70% 30% / 50% 50% 50% 50%; }
    75% { border-radius: 40% 60% 50% 50% / 70% 30% 60% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Адаптивность для Hero */
@media (min-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .hero__title {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
     .hero__container {
        gap: 80px;
    }
}

/* --- About Section --- */
.about {
    padding: 60px 0;
    background-color: var(--white-color);
}

.about__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.about__title {
    font-family: var(--font-family-headings);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about__subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    line-height: 1.7;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card__icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white-color);
    margin-bottom: 20px;
}

.feature-card__icon i {
    width: 30px;
    height: 30px;
}

.feature-card__title {
    font-family: var(--font-family-headings);
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-card__description {
    font-size: 16px;
    color: var(--secondary-color);
}


/* Адаптивность для About */
@media (min-width: 768px) {
    .about {
        padding: 80px 0;
    }
    
    .about__title {
        font-size: 40px;
    }

    .about__features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Courses Section --- */
.courses {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.courses__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.courses__title {
    font-family: var(--font-family-headings);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.courses__subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    line-height: 1.7;
}

.courses__tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.courses__tab-button {
    padding: 10px 25px;
    font-family: var(--font-family-headings);
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-color);
    background-color: transparent;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.courses__tab-button:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.courses__tab-button--active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.courses__panel {
    display: none;
    grid-template-columns: 1fr;
    gap: 30px;
}

.courses__panel--active {
    display: grid;
}

.course-card {
    background-color: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card__body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card__category {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.course-card__title {
    font-family: var(--font-family-headings);
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.course-card__description {
    font-size: 15px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-card__button {
    align-self: flex-start;
}

/* Адаптивность для Courses */
@media (min-width: 768px) {
    .courses {
        padding: 80px 0;
    }
    .courses__title {
        font-size: 40px;
    }
    .courses__panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* --- Benefits Section --- */
.benefits {
    padding: 60px 0;
    background-color: var(--white-color);
}

.benefits__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
}

.benefits__title {
    font-family: var(--font-family-headings);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefits__description {
    font-size: 18px;
    color: var(--secondary-color);
    line-height: 1.7;
    margin-bottom: 30px;
}

.benefits__image {
    border-radius: 16px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: none; /* Скрыто на мобильных, появится на десктопе */
}

.accordion__item {
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--bg-color);
}

.accordion__title {
    font-family: var(--font-family-headings);
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-right: 15px;
}

.accordion__icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion__icon::before,
.accordion__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.accordion__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

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

.accordion__text {
    padding: 0 20px;
    font-size: 16px;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Active state for accordion */
.accordion__item--active .accordion__icon {
    transform: rotate(180deg);
}

.accordion__item--active .accordion__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.accordion__item--active .accordion__content {
    padding: 20px;
    max-height: 300px; /* Установите значение, превышающее высоту контента */
}


/* Адаптивность для Benefits */
@media (min-width: 768px) {
    .benefits {
        padding: 80px 0;
    }
    .benefits__title {
        font-size: 40px;
    }
}

@media (min-width: 1024px) {
    .benefits__container {
        grid-template-columns: 1fr 1.2fr;
        gap: 60px;
        align-items: center;
    }
    .benefits__image {
        display: block;
    }
}


/* --- Reviews Section --- */
.reviews {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.reviews__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.reviews__title {
    font-family: var(--font-family-headings);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.reviews__subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    line-height: 1.7;
}

.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.review-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.review-card__icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 80px;
    height: 80px;
    color: var(--bg-color);
    z-index: 1;
}

.review-card__text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.review-card__author {
    font-family: var(--font-family-headings);
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

/* Адаптивность для Reviews */
@media (min-width: 768px) {
    .reviews {
        padding: 80px 0;
    }
    .reviews__title {
        font-size: 40px;
    }
    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* --- Contact Section --- */
.contact {
    padding: 60px 0;
    background-color: var(--white-color);
}

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

.contact__title {
    font-family: var(--font-family-headings);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact__description {
    font-size: 18px;
    color: var(--secondary-color);
    line-height: 1.7;
    margin-bottom: 25px;
}

.contact__notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--bg-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--secondary-color);
}

.contact__notice-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact__form-wrapper {
    position: relative;
}

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

.form__group {
    position: relative;
}

.form__input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-family-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: border-color 0.3s ease;
}

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

.form__label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 16px;
    color: var(--secondary-color);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--primary-color);
    background-color: var(--white-color);
    padding: 0 5px;
}

.form__label--static {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.form__group--consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form__checkbox {
    margin-top: 5px;
    flex-shrink: 0;
}

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

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

.form__message {
    display: none; /* Скрыто по умолчанию */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.form__message--success {
    background-color: #d4edda;
    color: #155724;
}

.form__message--error {
    background-color: #f8d7da;
    color: #721c24;
    margin-top: 15px;
}

/* Адаптивность для Contact */
@media (min-width: 768px) {
    .contact {
        padding: 80px 0;
    }
    .contact__title {
        font-size: 40px;
    }
}

@media (min-width: 1024px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 200;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-popup--visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

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

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

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

.cookie-popup__button {
    padding: 8px 24px;
    background-color: var(--accent-color);
}

@media (min-width: 768px) {
    .cookie-popup {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 30px;
    }

    .cookie-popup__text {
        text-align: left;
    }
}

/* --- Styles for Static Policy Pages --- */
.pages {
    padding: 60px 0;
    background-color: var(--white-color);
}

.pages .container {
    max-width: 800px; /* Ограничиваем ширину для лучшей читабельности */
}

.pages h1 {
    font-family: var(--font-family-headings);
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
}

.pages h2 {
    font-family: var(--font-family-headings);
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

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

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

.pages li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text-color);
}

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

.pages a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
}

.pages a:hover {
    text-decoration: none;
}

/* Адаптивность для страниц */
@media (min-width: 768px) {
    .pages {
        padding: 80px 0;
    }

    .pages h1 {
        font-size: 42px;
    }

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