:root {
    --color-w: #ffffff;
    --color-1: #719178;
    --color-2: #EAD7A1;
    --color-3: #A8BAA4;
    --color-4: #3F575B;
    --font-main: 'Advent Pro', sans-serif;
    --font-logo: 'Siemreap', sans-serif;
    --hero-height: 800px;
    --second-height: 1400px;
    --radius-large: 60px;
    --radius-medium: 40px;
    --radius-small: 20px;
    --radius-xs: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--color-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
}

.main-container {
    width: 1500px;
    max-width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-large);
    transition: border-radius 0.3s ease;
}

/* ========== ПЕРВАЯ СЕКЦИЯ (ДЕСКТОП) ========== */
.hero {
    position: relative;
    width: 100%;
    height: 800px;
    margin-bottom: 40px;
    margin-top: 80px;
}

.hero_block-1 {
    position: absolute;
    left: 66px;
    top: 26px;
    width: 961px;
    height: 653px;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    z-index: 2;
}

.hero_block-1-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    max-width: 600px;
    pointer-events: auto;
}

.hero_block-1-title {
    font-family: 'Ysabeau Office', sans-serif;
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--color-w);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 7px;
}

.hero_block-1-subtext {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-w);
    line-height: 1;
    opacity: 0.9;
}

.hero_block-1-btn {
    display: inline-block;
    padding: 16px 38px;
    background: var(--color-w);
    color: var(--color-4);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-top: 5px;
    margin-bottom: 15px;
    margin-right: 10px;
    margin-left: 270px;
    position: relative;
    z-index: 101;
    cursor: pointer;
    pointer-events: auto;
}

.hero_block-1-btn:hover {
    background: var(--color-3);
    color: var(--color-w);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.hero_block-1-btn:active {
    background: var(--color-1);
    color: var(--color-w);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.hero_notch {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 100px;
}

.hero_notch-svg {
    width: 100%;
    height: 100%;
}

.hero_title {
    position: absolute;
    top: 0px;
    left: 25px;
    font-family: var(--font-main);
    font-size: 0.9em;
    letter-spacing: 6px;
    line-height: 1.5;
    color: #2b1e10;
    padding: 0px 15px 0px 15px;
    border-radius: 50px 12px 50px 12px;
    z-index: 5;
    white-space: nowrap;
}

.hero_title_logo {
    letter-spacing: 30px;
    font-size: 1.8rem;
}

.hero_block-2 {
    position: absolute;
    left: 0;
    top: 0;
    width: 1500px;
    height: 800px;
    z-index: 20;
    pointer-events: none;
}

.hero_block-2-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    
}

.hero_block-2-content {
    position: absolute;
    left: 680px;
    top: 430px;
    width: 410px;
    height: 249px;
    z-index: 21;
    pointer-events: none;
}

.hero_inset {
    position: absolute;
    left: 18px;
    top: 12px;
    width: 378px;
    height: 237px;
    background: var(--color-2);
    border-radius: 28px 28px 25px 25px;
    z-index: 21;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.hero_inset-content {
    width: 85%;
    height: 85%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределяет заголовок и список по высоте */
}

.hero_inset-title {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 500;
    color: #000;
    margin: 0;
    text-align: left; /* Выравнивание по левому краю */
    letter-spacing: 1.2px;
}

.hero_inset-list {
    list-style-type: decimal;
    list-style-position: inside;
    /*padding-left: 10px;
    text-align: left; /* Выравнивание по левому краю */
    margin-bottom: 15px;
    
}

.hero_inset-list li {
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: #000;
    padding: 5px;
    position: relative;
    line-height: 1.2;
}


.hero_block-3 {
    position: absolute;
    left: 1044px;
    top: 101px;
    width: 362px;
    height: 578px;
    background: var(--color-1);
    border-radius: 50px 50px 30px 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero_block-3-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 40px 20px 0px 20px;
    text-align:center;
}

.hero_block-3-title {
    display: inline-block;
    background: var(--color-w);
    color: var(--color-4);
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: fit-content;
    cursor: default; /* Обычный курсор, не pointer */
}

.hero_block-3-text {
    font-family: var(--font-main);
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--color-w);
    margin-top: 20px;
    max-width: 255px;
}

.hero_block-3-vector {
    margin-top: 0;
    margin-left: 120px;
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero_block-3-vector img {
    max-width: auto;
    height: 150px;
    max-height: 200px;
}

/* ========== ВТОРАЯ СЕКЦИЯ (ДЕСКТОП) ========== */
.second {
    position: relative;
    width: 100%;
    min-height: 600px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.second_block-1 {
    position: relative;
    left: 59px;
    top: 0;
    width: 800px;
    height: 501px;
    background: var(--color-4);
    border-radius: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 2;
}
.second_block-1-content {
    max-width: 80%;
    margin-left: 60px;
    margin-top: 30px;        /* ← отступ сверху, как у 3-го блока */
    text-align: left;
}

/* Оформление как у hero_block-3-title, но с выравниванием по левому краю */
.second_block-1-title {
    display: inline-block;
    background: var(--color-w);
    color: var(--color-4);
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 20px;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Текст под заголовком */
.second_block-1-text {
    margin-top: 40px;
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-w);
    line-height: 1.5;
    opacity: 0.9;
}
.link-about_us {
    display: inline-block;
    margin-top: 15px;
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--color-w);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.link-about_us:hover {

    transform: translateY(-2px);
}

.second_block-2 {
    position: absolute;
    top: 0;
    width: 560px;
    height: 258px;
    z-index: 2;
    right: 30px !important;
}

.second_slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid var(--color-2);
    z-index: 2;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 1s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.slider-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--color-w);
    min-height: 268px;
    width: 100%;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev { left: 10px; }
.slider-btn-next { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.second_block-3 {
    position: absolute;
    left: 0;
    top: 0;
    width: 1500px;
    height: 800px;
    z-index: 20;
    pointer-events: none
}
.second_block-3-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.second_block-3-inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    left: 812px;
    top: 285px;
    width: 620px;
    height: 215px;
    background: var(--color-3);
    border-radius: 35px;
    z-index: 21;
}
.second_block-3-content {
    max-width: 90%;
    margin-left: 20px;
    margin-top: 15px;
    text-align: left;
}

/* Оформление заголовка как у 3-го блока 1-й секции */
.second_block-3-title {
    display: inline-block;
    color: var(--color-w);
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    padding: 7px 25px;
    border: 1px solid var(--color-2);
    border-radius: 30px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Текст под заголовком */
.second_block-3-text {
    padding-left: 10px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-w);
    line-height: 0.6;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.second_block-3-text p {
    margin-bottom: 15px;
}

.second_block-3-text ul {
    
    list-style: none;
    padding-left: 0;
}

.second_block-3-text li {
    line-height: 0.5;
    padding: 8px 0 8px 25px;
    position: relative;
}

.second_block-3-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-w);
    font-weight: bold;
}
.second {
    overflow: hidden;
}

/* ========== ТРЕТЬЯ СЕКЦИЯ (ДЕСКТОП) ========== */
.third {
    position: relative;
    width: 100%;
    min-height: 600px;
    margin-top: 80px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.third_slider-container {
    position: relative;
    width: 1337px;
    max-width: 100%;
    height: 565px;
}

.third_title {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-4);
    z-index: 10;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}

.third_slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 60px;
    background: var(--color-2);
    backdrop-filter: blur(5px);
}

.third_track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.third_slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 147px 20px 20px 20px;
    box-sizing: border-box;
}

.review-course {
    display: inline-block;
    border: 1px solid var(--color-2);
    border-radius: 20px;
    padding: 4px 12px;
    background: transparent
}
.third_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    color: var(--color-4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.third_btn-prev { left: 20px; }
.third_btn-next { right: 20px; }

.third_dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}
.review-text {
    flex: 1;    
    max-height: 300px;                 /* занимает всё свободное место */
    overflow-y: auto;           /* скролл при необходимости */
    padding-right: 10px;
    margin-bottom: 0;
}

/* Скрываем скроллбар в macOS (опционально) */
.review-text::-webkit-scrollbar {
    width: 4px;
}

.review-text::-webkit-scrollbar-thumb {
    background: var(--color-2);
    border-radius: 4px;
}
/* ========== ЧЕТВЕРТАЯ СЕКЦИЯ (ДЕСКТОП) ========== */
.fourth {
    position: relative;
    width: 100%;
    min-height: 800px;
    margin-top: 110px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.fourth_container {
    position: relative;
    width: 1500px;
    max-width: 100%;
    min-height: 800px;
}

.fourth_rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.ring {
    position: absolute;
    border: 2px solid var(--color-2);
    border-radius: 50%;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.ring-1 { width: 397px; height: 397px; border-color: var(--color-1); opacity: 0.5; }
.ring-2 { width: 477px; height: 477px; border-color: var(--color-2); opacity: 0.4; }
.ring-3 { width: 557px; height: 557px; border-color: var(--color-3); opacity: 0.3; }
.ring-4 { width: 637px; height: 637px; border-color: var(--color-4); opacity: 0.2; }

.fourth_title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-family: var(--font-main);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--color-4);
    text-align: center;
    background: rgba(255,255,255,0.8);
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    margin: 0;
}

.fourth_grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 366px);
    gap: 102px 387px;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 20px;
    margin-top: 50px;
}

.fourth_card {
    margin-top: 15px;
    width: 366px;
    height: 212px;
    background: var(--color-3);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    gap: 20px;
}

.fourth_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.fourth_card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}
.fourth_card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.60);
    border-radius: 50%;
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-4);
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Тень для текста (оставляем как есть) */
.fourth_card-title {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-w);
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.218);
}

.fourth_card-text {
    font-family: var(--font-main);
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--color-w);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.218);
}


/* ========== СТИЛИ ДЛЯ КАРТОЧЕК ОТЗЫВОВ ========== */
.review-card {
    width: 100%;
    max-width: 450px;
    min-width: 280px;
    background: var(--color-w);
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(63, 87, 91, 0.12);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    margin: 0 auto;
    height: auto;           /* ← убираем фиксированную высоту */
    min-height: 380px;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(63, 87, 91, 0.2);
}

/* Верхняя строка: фото и звёзды в одной линии */
.review-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
    gap: 45px;
}

.review-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-3);
    flex-shrink: 0;
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #c6c6c6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-w);
}

.review-stars {
    color: #f5a623;
    font-size: 1.1rem;
    letter-spacing: 3px;
}

/* Вторая строка: имя и курс */
.review-author-info {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.review-author {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-4);
}

.review-course {
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--color-1);
    font-weight: 500;
}

/* Текст отзыва */
.review-text {
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-4);
    text-align: left;
    margin: 0;
    padding-top: 10px;
    flex: 1;               
    overflow-y: auto;      
    max-height: 200px; 
}
/* Стилизация скроллбара */
.review-text::-webkit-scrollbar {
    width: 5px;
}

.review-text::-webkit-scrollbar-track {
    background: var(--color-3);
    border-radius: 5px;
}

.review-text::-webkit-scrollbar-thumb {
    background: var(--color-1);
    border-radius: 5px;
}



/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 40px;
    max-width: 450px;
    width: 90%;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== СТИЛИ ДЛЯ ФОРМ В МОДАЛЬНЫХ ОКНАХ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-4);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-2);
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-1);
}

.modal-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-1);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.modal-btn:hover {
    background: var(--color-4);
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.modal-footer a {
    color: var(--color-1);
    text-decoration: none;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-4);
    transition: all 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--color-1);
}

.modal-title {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-4);
    text-align: center;
    margin-bottom: 25px;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-1);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.modal-btn:hover {
    background: var(--color-4);
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.modal-footer a {
    color: var(--color-1);
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Тёмная тема для модальных окон */
body.dark-theme .modal-content {
    background: var(--color-0);
    border: 1px solid var(--color-12);
}

body.dark-theme .modal-title,
body.dark-theme .modal-footer {
    color: var(--text-light);
}

body.dark-theme .form-input {
    background: var(--color-15);
    color: var(--text-light);
    border-color: var(--color-12);
}