/* ======== 0. GLOBAL STYLES ======== */

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

/* CSS Variables */
:root {
    --color-primary: #0A4D68;       /* Deep Tech Blue */
    --color-secondary: #088395;     /* Medium Blue */
    --color-accent: #05BFDB;        /* Bright Cyan Accent */
    --color-background: #F4F7FA;    /* Light Gray Background */
    --color-text-dark: #1A1A2E;     /* Dark Text */
    --color-text-muted: #5A5A72;    /* Muted Text */
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;
    
    --header-height: 80px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

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

/* Utility */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======== 1. HEADER ======== */

.header {
    background-color: var(--color-white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

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

.header__logo {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
}

.header__logo:hover {
    color: var(--color-secondary);
}

/* Mobile Menu (Default) */
.header__nav {
    position: fixed;
    top: var(--header-height);
    left: -100%; /* Hidden by default */
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease-in-out;
}

.header__nav--active {
    left: 0;
}

.header__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.header__menu-link {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

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

.header__menu-link--cta {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.header__menu-link--cta:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Burger Button */
.header__burger-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
}

/* Desktop Menu (Media Query) */
@media (min-width: 992px) {
    .header__burger-btn {
        display: none;
    }

    .header__nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        transition: none;
    }

    .header__menu {
        flex-direction: row;
        gap: 1.5rem;
    }

    .header__menu-link {
        font-size: 1rem;
    }
}

/* ======== 2. FOOTER ======== */

.footer {
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem; /* Placeholder margin */
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.footer__logo {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-white);
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--color-background);
    opacity: 0.8;
    margin-top: 0.5rem;
}

.footer__col-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: var(--color-background);
    opacity: 0.8;
    transition: all 0.3s ease;
}

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

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-background);
    opacity: 0.8;
}

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

.footer__contact-item span {
    flex-grow: 1;
}

.footer__bottom {
    border-top: 1px solid var(--color-secondary);
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--color-background);
    opacity: 0.7;
}

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

@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    }
}
/* ... (попередні стилі для Global, Header, Footer) ... */

/* ======== 3. GLOBAL COMPONENTS (Buttons) ======== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(5, 191, 219, 0.3);
}

.btn--primary i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn--primary:hover i {
    transform: translateX(5px);
}


/* ======== 4. HERO SECTION ======== */

.hero {
    background-color: var(--color-white);
    padding: 4rem 0;
    overflow-x: hidden; /* Prevent horizontal scroll from AOS */
}

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

.hero__content {
    text-align: center;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero__title--highlight {
    color: var(--color-accent);
}

.hero__description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero__image {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* Decorative background shape */
.hero__image-bg {
    position: absolute;
    width: 80%;
    height: 80%;
    background-color: var(--color-primary);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    animation: morph 8s ease-in-out infinite both alternate;
}

/* Morphing animation for the background shape */
@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    100% {
        border-radius: 58% 42% 43% 57% / 46% 50% 50% 54%;
        transform: rotate(10deg) scale(1.05);
    }
}

/* Desktop layout */
@media (min-width: 992px) {
    .hero {
        padding: 6rem 0;
    }
    
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero__content {
        text-align: left;
    }
    
    .hero__title {
        font-size: 3.5rem;
    }

    .hero__description {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ... (попередні стилі) ... */

/* ======== 5. PLATFORM SECTION ======== */

.platform {
    padding: 4rem 0;
    /* Используем основной фон для чередования секций */
    background-color: var(--color-background); 
}

.platform__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.platform__title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.platform__title--highlight {
    color: var(--color-accent);
}

.platform__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Content Area (Image + Features) */
.platform__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.platform__image-wrapper {
    width: 100%;
}

.platform__image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 4px solid var(--color-white);
}

/* Features List */
.platform__features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.platform__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 10px;
    /* Убираем тень по умолчанию, добавим на hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(10, 77, 104, 0.1); /* Тень в цвет --color-primary */
}

.platform__feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Делаем иконку в основном цвете, а не акцентном */
    background-color: var(--color-primary); 
    color: var(--color-white);
}

.platform__feature-icon i {
    width: 24px;
    height: 24px;
}

.platform__feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.platform__feature-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Desktop layout */
@media (min-width: 992px) {
    .platform {
        padding: 6rem 0;
    }

    .platform__header {
        margin-bottom: 2rem;
    }

    .platform__title {
        font-size: 2.8rem;
    }
    
    .platform__content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .platform__features {
        gap: 2rem;
    }
}

/* ... (попередні стилі) ... */

/* 3.1. Button Secondary (New Style) */
.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-accent);
    padding: 0.7rem 1.65rem;
}

.btn--secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(5, 191, 219, 0.3);
}

.btn--secondary i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn--secondary:hover i {
    transform: translateX(4px);
}

/* ======== 6. COURSES SECTION ======== */

.courses {
    padding: 4rem 0;
    background-color: var(--color-white); /* Чередуем фон с .platform */
}

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

.courses__title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.courses__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Accordion */
.courses__accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.courses__item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background-color: var(--color-white);
    overflow: hidden; /* Важно для анимации max-height */
    transition: box-shadow 0.3s ease;
}

.courses__item:hover {
    box-shadow: 0 8px 30px rgba(10, 77, 104, 0.08);
}

.courses__item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.courses__item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0;
}

.courses__item-icon {
    flex-shrink: 0;
    color: var(--color-accent);
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

/* Active State */
.courses__item--active .courses__item-icon {
    transform: rotate(45deg);
}

/* Content */
.courses__item-content {
    max-height: 0; /* Скрыто по умолчанию */
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.courses__item-content-inner {
    /* Внутренний отступ, чтобы не схлопывался при max-height: 0 */
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.courses__item-description {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.courses__item-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.courses__item-skill {
    font-size: 0.9rem;
    font-family: var(--font-primary);
    font-weight: 600;
    background-color: var(--color-background);
    color: var(--color-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* Desktop layout */
@media (min-width: 768px) {
    .courses {
        padding: 6rem 0;
    }

    .courses__title {
        font-size: 2.8rem;
    }
}

/* ... (попередні стилі) ... */

/* ======== 7. BENEFITS SECTION ======== */

.benefits {
    padding: 4rem 0;
    background-color: var(--color-background); /* Чередуем фон с .courses */
}

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

.benefits__title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.benefits__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Benefits Grid */
.benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefits__card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.benefits__card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    /* Тень для иконки */
    box-shadow: 0 5px 15px rgba(5, 191, 219, 0.3);
}

.benefits__card-icon i {
    width: 28px;
    height: 28px;
}

.benefits__card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.benefits__card-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Desktop layout */
@media (min-width: 768px) {
    .benefits {
        padding: 6rem 0;
    }

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

    .benefits__title {
        font-size: 2.8rem;
    }
}

@media (min-width: 1024px) {
    /* На десктопе можно оставить 2 колонки для более крупных
       и солидных карточек, либо сделать 4. 
       Оставим 2 - это выглядит чище. 
       Если нужно 4, можно поменять на repeat(4, 1fr) 
       и уменьшить .benefits__card padding.
       Давайте сделаем 2, как я и решил.
    */
}

/* ... (попередні стилі) ... */

/* ======== 8. ABOUT SECTION ======== */

.about {
    padding: 4rem 0;
    background-color: var(--color-white); /* Чередуем фон с .benefits */
}

.about__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about__image-wrapper {
    width: 100%;
}

.about__image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about__content {
    /* Контент по умолчанию */
}

.about__title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.about__description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Desktop layout */
@media (min-width: 992px) {
    .about {
        padding: 6rem 0;
    }
    
    .about__container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    /* Меняем порядок на десктопе, чтобы изображение было справа */
    .about__image-wrapper {
        order: 2;
    }
    
    .about__content {
        order: 1;
    }

    .about__title {
        font-size: 2.8rem;
    }
}

/* ... (попередні стилі) ... */

/* ======== 9. CONTACT SECTION ======== */

.contact {
    padding: 4rem 0;
    background-color: var(--color-background); /* Чередуем фон с .about */
}

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

.contact__title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.contact__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Form Wrapper */
.contact__form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(10, 77, 104, 0.08);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

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

.form__input::placeholder {
    color: #a0a0b8; /* Slightly darker than text-muted */
}

.form__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(5, 191, 219, 0.2);
}

/* Captcha styling */
.form__group--captcha {
    display: flex;
    flex-direction: column;
}

.form__captcha-question {
    font-weight: 700;
    color: var(--color-primary);
}

.form__input--captcha {
    max-width: 150px;
}

/* Checkbox styling */
.form__group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form__checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.form__checkbox-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: 0; /* Override default label margin */
}

.form__checkbox-label a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* Button styling */
.contact__form-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Success Message */
.form__success-message {
    display: none; /* !!! HIDDEN BY DEFAULT !!! */
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.form__success-message i {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.form__success-message h4 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

/* Active state for success message */
.form__success-message--active {
    display: block;
}


/* Desktop layout */
@media (min-width: 768px) {
    .contact {
        padding: 6rem 0;
    }

    .contact__form-wrapper {
        padding: 3rem;
    }

    .contact__title {
        font-size: 2.8rem;
    }

    /* Split Name and Email */
    .contact__form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .form__group:nth-child(3) { /* Phone */
        grid-column: 1 / -1; /* Full width */
    }
    .form__group:nth-child(4) { /* Captcha */
        grid-column: 1 / -1;
    }
    .form__group:nth-child(5) { /* Checkbox */
        grid-column: 1 / -1;
    }
    .contact__form-btn {
        grid-column: 1 / -1;
    }
}

/* ... (всі попередні стилі) ... */

/* ======== 10. COOKIE POP-UP ======== */

.cookie-popup {
    position: fixed;
    bottom: -100%; /* Скрыто по умолчанию */
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 -5px 20px rgba(10, 77, 104, 0.1);
    padding: 1.5rem;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
}

/* Состояние "показано" */
.cookie-popup--active {
    bottom: 0;
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-popup__text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

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

.cookie-popup__btn {
    padding: 0.6rem 1.5rem; /* Чуть меньше кнопка */
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-popup {
        padding: 1.5rem 2rem;
    }
    
    .cookie-popup__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .cookie-popup__text {
        font-size: 1rem;
    }
}


/* ======== 11. LEGAL PAGES (privacy.html, terms.html etc.) ======== */

/* Стили для страниц типа privacy.html.
   Структура HTML:
   <main>
     <section class="pages">
       <div class="container">
         <h1>Заголовок</h1>
         <p>Текст...</p>
         <h2>Подзаголовок</h2>
         ...
       </div>
     </section>
   </main>
*/

.pages {
    padding: 3rem 0;
    background-color: var(--color-white);
}

.pages .container {
    max-width: 900px; /* Более узкий контейнер для удобства чтения */
}

.pages h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.pages p,
.pages li {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.pages a {
    color: var(--color-secondary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

.pages ul,
.pages ol {
    list-style: disc; /* Стандартные маркеры для списков */
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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