/* GLOBAL SETTINGS */
:root {
    --primary-color: #4A55E7; /* Яркий синий */
    --secondary-color: #00F5D4; /* Неоновый бирюзовый */
    --background-color: #F8F9FA; /* Светло-серый фон */
    --text-color: #212529; /* Темный текст */
    --light-grey-color: #E9ECEF; /* Светло-серый для бордеров */
    --white-color: #FFFFFF;

    --font-main: 'Manrope', sans-serif;
    --font-accent: 'Roboto Mono', monospace;

    --header-height: 80px;
}

*,
*::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(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #3a45c7;
    transform: translateY(-2px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-color);
}

/* HEADER */
.header {
    width: 100%;
    height: var(--header-height);
    background-color: var(--white-color);
    border-bottom: 1px solid var(--light-grey-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

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

.header__nav {
    display: none; /* Скрыто по умолчанию для mobile-first */
}

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

.header__nav-link {
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

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

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

.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__cta {
    display: none; /* Скрыто по умолчанию для mobile-first */
}

.header__burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Скрыто за экраном */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 40px 20px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav.is-active {
    right: 0;
}

.mobile-nav__close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav__menu {
    margin-top: 60px;
}

.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav__link {
    font-size: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
}

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

.mobile-nav__link.btn {
    margin-top: 20px;
}


/* FOOTER */
.footer {
    background-color: var(--white-color);
    padding: 60px 0 0;
    border-top: 1px solid var(--light-grey-color);
}

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

.footer__column--about .logo {
    margin-bottom: 20px;
}

.footer__description {
    font-size: 14px;
    color: #6c757d;
}

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

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

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

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

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

.footer__bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--light-grey-color);
    font-size: 14px;
    color: #6c757d;
}


/* Media Queries */
@media (min-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .header__nav {
        display: block;
    }
    .header__cta {
        display: inline-block;
    }
    .header__burger-btn {
        display: none;
    }
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 2fr;
        gap: 30px;
    }
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
}

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

.hero__text-content {
    text-align: center;
}

.hero__title {
    font-size: 1.5rem; /* 40px */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__title--accent {
    color: var(--primary-color);
    font-family: var(--font-accent);
}

.hero__description {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 30px;
    color: #6c757d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-wrapper::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background-color: var(--light-grey-color);
    border-radius: 16px;
    z-index: -1;
    transform: rotate(-5deg);
    transition: transform 0.4s ease;
}

.hero__image-wrapper:hover::before {
    transform: rotate(5deg);
}

.hero__image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* Media Queries */
@media (min-width: 768px) {
    .hero__title {
        font-size: 2rem; /* 48px */
    }
}

@media (min-width: 992px) {
    .hero {
        padding-top: var(--header-height);
        padding-bottom: 80px;
    }

    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .hero__text-content {
        text-align: left;
    }
    .hero__description {
        margin-left: 0;
        margin-right: 0;
    }

    .hero__title {
        font-size: 2.5rem; /* 56px */
    }
}

/* GLOBAL SECTION STYLES */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__pre-title {
    display: block;
    font-family: var(--font-accent);
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.section-header__title {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
}


/* COURSES SECTION */
.courses {
    padding: 80px 0;
}

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

.course-card {
    background-color: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.course-card__image-wrapper {
    height: 200px;
}

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

.course-card__content {
    padding: 30px;
}

.course-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-grey-color);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.course-card__icon svg {
    width: 24px;
    height: 24px;
}

.course-card__title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 10px;
}

.course-card__description {
    color: #6c757d;
    margin-bottom: 20px;
}

.course-card__link {
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.course-card__link:hover {
    gap: 12px;
}


/* Media Queries */
@media (min-width: 768px) {
    .courses__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .courses {
        padding: 100px 0;
    }
    .courses__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .section-header__title {
        font-size: 2.5rem; /* 40px */
    }
}

/* FEATURES SECTION */
.features {
    padding: 80px 0;
    background-color: var(--white-color);
}

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

.features__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.features__image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

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

.features__item-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8eafc; /* Light blue background */
    color: var(--primary-color);
}

.features__item-icon svg {
    width: 24px;
    height: 24px;
}

.features__item-title {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 5px;
}

.features__item-description {
    color: #6c757d;
}

/* Media Queries */
@media (min-width: 992px) {
    .features {
        padding: 100px 0;
    }
    .features__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* TECH SECTION */
.tech {
    padding: 80px 0;
}

.tech__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.tech__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px;
    background-color: var(--white-color);
    border: 1px solid var(--light-grey-color);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tech__item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.tech__item svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.tech__item span {
    font-weight: 700;
}

.tech__cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.tech__cta-title {
    font-size: 1.75rem; /* 28px */
    margin-bottom: 15px;
}

.tech__cta-description {
    color: #6c757d;
    margin-bottom: 25px;
}

/* Media Queries */
@media (min-width: 992px) {
    .tech {
        padding: 100px 0;
    }
    .tech__grid {
        gap: 30px;
    }
}

/* REVIEWS SECTION */
.reviews {
    padding: 80px 0;
    background-color: var(--white-color);
}

.reviews__slider-wrapper {
    position: relative;
    padding: 0 40px; /* Отступы для кнопок навигации */
}

.reviews__slider {
    padding-bottom: 50px !important; /* Отступ для пагинации */
}

.review-card {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--light-grey-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card__text {
    font-size: 1.125rem; /* 18px */
    font-style: italic;
    color: #6c757d;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.review-card__text::before {
    content: '“';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    left: -10px;
    top: -10px;
    font-style: normal;
    font-family: serif;
}


.review-card__author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card__author-name {
    font-size: 1.125rem;
    font-weight: 700;
}

.review-card__author-role {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Swiper Customization */
.swiper-pagination-bullet {
    background-color: var(--primary-color);
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    width: 44px !important;
    height: 44px !important;
    background-color: var(--white-color);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: 900;
}

/* Media Queries */
@media (max-width: 768px) {
    .reviews__slider-wrapper {
        padding: 0;
    }
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .reviews {
        padding: 100px 0;
    }
}

/* CONTACT SECTION */
.contact {
    padding: 80px 0;
}

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

.contact__description {
    font-size: 1.125rem;
    margin-bottom: 20px;
}
.contact__note {
    font-size: 0.9rem;
    color: #6c757d;
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}


.contact__form-wrapper {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

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

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-grey-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    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(74, 85, 231, 0.2);
}

.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox {
    margin-top: 5px;
    flex-shrink: 0;
    accent-color: var(--primary-color); /* Modern way to style checkbox color */
}

.form-checkbox-label {
    font-size: 0.9rem;
    color: #6c757d;
}
.form-checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-submit-btn {
    width: 100%;
    font-size: 1.1rem;
}

.form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: 700;
    padding: 10px;
    border-radius: 8px;
    display: none; /* Hide message by default */
}
.form-message--success {
    background-color: #d1e7dd;
    color: #0f5132;
    display: block;
}

/* Media Queries */
@media (min-width: 992px) {
    .contact {
        padding: 100px 0;
    }
    .contact__container {
        grid-template-columns: 1fr 1fr;
    }
}

/* COOKIE POP-UP */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 800px;
    background-color: var(--white-color);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    border-radius: 12px 12px 0 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
    bottom: 0;
}

.cookie-popup__text {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

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

.btn--small {
    padding: 8px 20px;
}

/* STYLES FOR POLICY PAGES (privacy.html, terms.html, etc.) */
.pages {
    padding: 120px 0 80px;
}

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

.pages h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    margin-bottom: 20px;
    line-height: 1.7;
}

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

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

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

/* Media Queries */
@media (min-width: 768px) {
    .cookie-popup {
        flex-direction: row;
        justify-content: space-between;
    }
    .cookie-popup__text {
        text-align: left;
    }
}