:root {
    --color-w: #ffffff;
    --color-1: #719178;
    --color-2: #EAD7A1;
    --color-3: #A8BAA4;
    --color-4: #3F575B;
    --font-main: 'Advent Pro', sans-serif;
}
.main-container {
    width: 1500px;
    max-width: 100%;
    margin: 60px auto;
    padding: 0 20px;
}
/* ========== ПЕРВАЯ СЕКЦИЯ СТРАНИЦЫ "О НАС" ========== */
.about-section {
    position: relative;
    width: 100%;
    max-width: 1307px;
    margin: 0 auto;
    min-height: 543px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.background-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 60px;
}

.background-shape-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1307px;
    height: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-card {
    position: absolute;
    width: 584px;
    height: 349px;
    background: var(--color-w);
    border-radius: 40px;
    box-shadow: 0 15px 30px rgba(63, 87, 91, 0.2);
    overflow: hidden;
    transition: all 0.5s ease;
}

.slider-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Подпись под слайдером */
.slider-caption {
    text-align: center;
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-w);
    margin-bottom: 30px;
    letter-spacing: 2.5px;
    position: relative;
    z-index: 2;
}

/* Десктопная версия */
@media screen and (min-width: 768px) {
    .card-left {
        left: calc(50% - 600px);
        transform: scale(0.8);
        opacity: 0.6;
        z-index: 1;
        filter: blur(1px);
    }
    
    .card-center {
        left: 50%;
        transform: translateX(-50%) scale(1);
        z-index: 3;
        box-shadow: 0 20px 40px rgba(63, 87, 91, 0.3);
    }
    
    .card-right {
        right: calc(50% - 600px);
        transform: scale(0.8);
        opacity: 0.6;
        z-index: 1;
        filter: blur(1px);
    }
}

/* Мобильная версия */
@media screen and (max-width: 767px) {
    .about-section {
        min-height: 400px;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slider-card {
        width: 90%;
        max-width: 350px;
        height: 250px;
        left: 50% !important;
        transform: translateX(-50%) scale(1) !important;
        opacity: 1 !important;
        filter: none !important;
        border-radius: 30px;
    }
    
    .slider-card {
        display: none;
    }
    
    .slider-card.active {
        display: block;
    }
    
    .slider-caption {
        margin-top: 50px;
        font-size: 1rem;
    }
}

/* Стрелки слайдера */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-w);
    border: 2px solid var(--color-2);
    box-shadow: 0 5px 15px rgba(63, 87, 91, 0.2);
    cursor: pointer;
    font-size: 28px;
    color: var(--color-4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 4;
    font-family: Arial, sans-serif;
}

.slider-arrow:hover {
    background: var(--color-2);
    color: var(--color-w);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--color-2);
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

/* Точки */
.slider-dots {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--color-4);
}

.dot.active {
    background: var(--color-1);
    transform: scale(1.3);
    border-color: var(--color-1);
}

/* Адаптация для планшетов */
@media screen and (max-width: 1200px) and (min-width: 768px) {
    .card-left {
        left: calc(50% - 450px);
    }
    
    .card-right {
        right: calc(50% - 450px);
    }
    
    .slider-card {
        width: 450px;
        height: 270px;
    }
}

@media screen and (max-width: 1000px) and (min-width: 768px) {
    .card-left {
        left: calc(50% - 380px);
    }
    
    .card-right {
        right: calc(50% - 380px);
    }
    
    .slider-card {
        width: 380px;
        height: 230px;
    }
}

@media screen and (max-width: 767px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .arrow-left {
        left: 10px;
    }
    
    .arrow-right {
        right: 10px;
    }
    
    .slider-dots {
        bottom: -30px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* ===== СЕКЦИЯ "НАША ДЕЯТЕЛЬНОСТЬ" ===== */

.activity-section {
    width: 100%;
    max-width: 1307px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
}

.activity-container {
    width: 100%;
    position: relative;
}

/* 1. Заголовок секции по центру */
.activity-title {
    font-family: var(--font-main);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-4);
    text-align: center;
    margin-bottom: 70px;
    margin-top: 80px;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}
.activity-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-2);
}

/* 2. Основной текст (прозрачный блок с песочной рамкой, прижат к левому краю) */
.activity-main-text-block {
    max-width: 80%;
    margin: 100px auto 30px 0;
    padding: 30px 40px;
    background: transparent;
    border: 2px solid var(--color-2);
    border-radius: 30px;
    position: relative;
    z-index: 2;
}
.activity-main-text-block p {
    font-family: var(--font-main);
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--color-4);
    text-align: left;
    margin: 0;
}

/* 3. Первая фигура (тёмная, на всю ширину) */
.activity-shape-1 {
    position: relative;
    width: 100%;
    margin: 20px 0;
}
.shape-1-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Слой текста поверх первой фигуры */
.shape-1-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5% 5%;
    z-index: 2;
    gap: 50px;
}

/* Верхний текстовый блок – ширина 80% от родительской фигуры */
.shape-1_text-1-block {
    width: 96%;
    max-width: 96%;
}

/* Нижний текстовый блок – ширина 40% от родительской фигуры */
.shape-1_text-2-block {
    width: 47%;
    max-width: 47%;
}

/* Заголовки внутри первой фигуры (светлые, рамка песочная) */
.shape-1_title-1,
.shape-1_title-2 {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--color-w);
    margin-bottom: 30px;
    display: inline-block;
    padding: 5px 20px;
    border: 2px solid var(--color-2);
    border-radius: 30px;
    background: transparent;
    text-align: left;
}

/* Текст внутри первой фигуры (светлый, выравнивание по левому краю) */
.shape-1_text-1,
.shape-1_text-2 {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-w);
    text-align: left;
    margin: 0;
}

/* 4. Вторая фигура – прижата к правому краю и к низу первой фигуры */
.activity-shape-2 {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 47.7%;        /* подберите под вашу SVG-форму */
    z-index: 3;
}
.shape-2-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Слой текста поверх второй фигуры */
.shape-2-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   
    align-items: center;
    padding: 4% 6% 6% 6%;;
    z-index: 2;
    text-align: center;
}

/* Заголовок внутри второй фигуры (светлый, рамка песочная) */
.shape-2_title-3 {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--color-w);
    /*margin-bottom: 15px;*/
    margin-top: 0;
    display: inline-block;
    padding: 5px 20px;
    border: 2px solid var(--color-2);
    border-radius: 30px;
    text-align: center;
}

/* Текст внутри второй фигуры (светлый, выравнивание по левому краю) */
.shape-2_text-3 {
    font-family: var(--font-main);
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--color-w);
    text-align: left;
    margin-top: 15px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media screen and (max-width: 1200px) {
    .activity-main-text-block {
        max-width: 90%;
        margin-left: 5%;
    }
    .shape-1_text-1-block {
        width: 90%;
    }
    .shape-1_text-2-block {
        width: 60%;
    }
    .activity-shape-2 {
        width: 55%;
    }
}
@media screen and (max-width: 800px) {
    .activity-title {
        font-size: 2rem;
    }
    .activity-main-text-block p {
        font-size: 1rem;
    }
    .shape-1-content {
        padding: 4% 6%;
        gap: 20px;
    }
    .shape-1_title-1,
    .shape-1_title-2 {
        font-size: 1.4rem;
        padding: 4px 15px;
    }
    .shape-1_text-1-block,
    .shape-1_text-2-block {
        width: 100%;
    }
    .activity-shape-2 {
        position: relative;
        width: 90%;
        margin: 30px auto 0;
        right: auto;
        bottom: auto;
    }
    .shape-2_title-3 {
        font-size: 1.3rem;
    }
}
@media screen and (max-width: 500px) {
    .shape-1_title-1,
    .shape-1_title-2,
    .shape-2_title-3 {
        font-size: 1.2rem;
        padding: 3px 12px;
    }
    .shape-1_text-1,
    .shape-1_text-2,
    .shape-2_text-3 {
        font-size: 0.9rem;
    }
}

/*Секция наши ценности*/
.values-section {
    position: relative;
    width: 1307px;
    max-width: 100%;
    margin: 0px auto 0;
    padding: 20px 20px;
}

.values-title {
    font-family: var(--font-main);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-4);
    text-align: center;
    margin-bottom: 100px; 
    letter-spacing: 2px;
}

.values-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--color-2);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 375px));
    gap: 0px;
    justify-content: center;
    align-items: stretch;
    max-width: calc(375px * 4); 
    margin: 0 auto;
}

.values-card {
    position: relative;
    width: 100%;
    max-width: 375px;
    height: 395px;
    margin: 0;
    transition: all 0.3s ease;
}

.values-card svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.values-content {
    position: relative;
    z-index: 2;
    padding: 50px 30px 25px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.values-card:not(:nth-child(4)) .values-content {
    padding-left: 15px; 
}

.values-card:nth-child(4) .values-content {
    padding-left: 5px;
}


/* Ширина контейнера с текстом 190px для всех карточек */
.values-card-title,
.values-card-text {
    max-width: 190px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.values-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.values-icon svg {
    position: relative;
    width: 40px;
    height: 40px;
}

.values-card-title {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 530;
    color: var(--color-4);
    margin-bottom: 50px;
    margin-top: 20px;
    line-height: 0.8;
    word-wrap: break-word;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.158);

}

.values-card-text {
    font-family: var(--font-main);
    font-size: 1.2rem;
    line-height: 1.1;
    color: var(--color-4);
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.118);
}

@media screen and (max-width: 1200px) {
    .values-grid {
        grid-template-columns: repeat(2, minmax(280px, 375px));
        gap: 0px; 
        justify-content: center;
    }
    
    .values-card {
        width: 100%;
        max-width: 375px;
        height: 395px;
    }
    
    .values-content {
        padding: 45px 12px 20px 22px;
    }
    
    .values-card:not(:nth-child(4)) .values-content {
        padding-left: 12px; 
    }
    
    .values-card:nth-child(4) .values-content {
        padding-left: 2px;
    }
    
    .values-card-title,
    .values-card-text {
        max-width: 190px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 800px) {
    .values-section {
        padding: 30px 15px;
    }
    
    .values-title {
        font-size: 2.5rem;
        margin-bottom: 35px;
    }
    
    .values-grid {
        grid-template-columns: minmax(280px, 375px);
        gap: 0px; 
        justify-content: center;
    }
    
    .values-card {
        width: 100%;
        max-width: 375px;
        height: 395px;
        margin-bottom: 0;
    }
    
    .values-content {
        padding: 45px 12px 20px 22px;
    }
    
    .values-card:not(:nth-child(4)) .values-content {
        padding-left: 12px;
    }
    
    .values-card:nth-child(4) .values-content {
        padding-left: 2px;
    }
    
    .values-card-title,
    .values-card-text {
        max-width: 190px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .values-icon {
        width: 65px;
        height: 65px;
        margin: 0 auto 15px;
    }
    
    .values-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .values-card-title {
        font-size: 1.3rem;
    }
    
    .values-card-text {
        font-size: 1rem;
    }
}

@media screen and (max-width: 500px) {
    .values-title {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 0px; 
    }
    
    .values-card {
        width: 100%;
        max-width: 350px;
        height: 380px;
        margin: 0 auto 0; 
    }
    
    .values-content {
        padding: 40px 10px 18px 20px;
    }
    
    .values-card:not(:nth-child(4)) .values-content {
        padding-left: 10px; 
    }
    
    .values-card:nth-child(4) .values-content {
        padding-left: 0px;
    }
    
    .values-card-title,
    .values-card-text {
        max-width: 190px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .values-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 12px;
    }
    
    .values-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .values-card-title {
        font-size: 1.2rem;
    }
    
    .values-card-text {
        font-size: 1rem;
    }
}

@media screen and (max-width: 400px) {
    .values-card {
        max-width: 320px;
        height: 370px;
    }
    
    .values-content {
        padding: 35px 8px 15px 18px;
    }
    
    .values-card:not(:nth-child(4)) .values-content {
        padding-left: 8px; 
    }
    
    .values-card:nth-child(4) .values-content {
        padding-left: 0px;
    }
    
    .values-card-title,
    .values-card-text {
        max-width: 190px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .values-icon {
        width: 55px;
        height: 55px;
        margin: 0 auto 10px;
    }
    
    .values-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .values-card-title {
        font-size: 1.1rem;
    }
    
    .values-card-text {
        font-size: 0.8rem;
    }
}
/* ========== СЕКЦИЯ СЕРТИФИКАТОВ ========== */
.certificates-section {
    width: 100%;
    max-width: 1307px;
    margin: 80px auto 0;
    padding: 40px 0;
}

.certificates-container {
    position: relative;
    width: 100%;
}

.certificates-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-4);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.certificates-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-2);
    margin: 15px auto 0;
}

.certificates-slider {
    position: relative;
    width: 97%;
    overflow: hidden;
    border-radius: 60px;
    background: #a8baa486;
    backdrop-filter: blur(5px);
    padding: 40px 40px;
    margin-bottom: 0;
    border: 1px solid var(--color-2);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.21);
}

.certificates-track {
    display: flex;
    transition: transform 0.5s ease;
}

.certificates-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 20px;
    background: transparent; 
}

/* Карточка сертификата - увеличиваем размер */
.certificate-card {
    flex: 1;
    max-width: 600px;
    background: var(--color-w);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 0;
    border: none;
    line-height: 0;  /* убирает лишнюю высоту от текста */
    font-size: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.certificate-card img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;  
    padding: 0;
    
}

.certificate-title {
    display: none;;
}

/* Кнопки как на главной странице */
.certificates-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--color-2);
    cursor: pointer;
    font-size: 35px;
    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.17);
}

.certificates-btn-prev { left: 80px; }
.certificates-btn-next { right: 80px; }

.certificates-btn:hover {
    background: var(--color-2);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Точки */
.certificates-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.certificates-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.certificates-dot.active {
    background: var(--color-1);
    transform: scale(1.2);
}

/* Адаптивность */
@media screen and (max-width: 900px) {
    .certificates-slide {
        gap: 20px;
        padding: 20px;
    }
    
    .certificate-card {
        max-width: 400px;
    }
}

@media screen and (max-width: 700px) {
    .certificates-slide {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .certificate-card {
        max-width: 350px;
        width: 100%;
    }
}