:root {
    --primary-color: #035F47;
    --secondary-color: #D75349;
    --accent-color: #FCEDC6;
    --light-color: #FFFFFF;
    --dark-color: #000000;
    --gray-color: #888888;
    --font-family-Font-2: Nunito;
}


.new-courses-page div li:is(.program-card-body li) {
    padding-left: unset;
}

.hero-text p {
    align-self: stretch;
    font-family: Stem-Medium, serif;
    font-size: clamp(24px, 2.083vw, 40px);
    font-style: normal;
    font-weight: 500;
    line-height: clamp(33px, 2.865vw, 55px);
}

/* Course Content Section */
.course-content {
    background-color: var(--light-color);
}

.course-content .container > p, .program-section > p {
    font-size: clamp(24px, 2.083vw, 40px);
    font-weight: 500;
    margin-bottom: clamp(20px, 1.563vw, 30px);
}

.content-layout {
    display: flex;
    gap: clamp(20px, 1.563vw, 30px);
    margin-bottom: clamp(20px, 1.563vw, 30px);
    align-items: stretch;
    flex-wrap: wrap;
}

.content-image {
    width: 100%;
    max-width: clamp(400px, 33.333vw, 640px);
    height: clamp(365px, 30.417vw, 584px);
    /*background-color: #eee;*/
    border-radius: clamp(15px, 1.563vw, 30px);
}

.content-cards {
    flex: 1;
    min-width: min(100%, 400px);
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 1.042vw, 20px);
}

.content-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-card h3, .program-card-header h4, .payment-option h3 {
    color: var(--primary-color);
    font-size: clamp(24px, 1.875vw, 36px);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.content-card p {
    align-self: stretch;
    color: #000;
    font-family: var(--font-family-Font-2, Nunito), serif;
    font-size: clamp(16px, 1.25vw, 24px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.content-card, .benefit-card {
    background: linear-gradient(to bottom, #FFFFFF, #F0F6FF);
    border-radius: clamp(12px, 1.042vw, 20px);
    padding: clamp(15px, 1.042vw, 20px);
    box-shadow: 0px 0px 4px rgba(31, 64, 114, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover, .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(31, 64, 114, 0.3);
}

.content-card h3, .benefit-card h3 {
    margin-top: 0;
}

.content-card p {
    margin-bottom: 0;
}

.program-section h3 {
    color: var(--primary-color);
    font-size: clamp(32px, 3.333vw, 64px);
    font-weight: 700;
    line-height: normal;
}

.program-cards {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 1.042vw, 20px);
}

.program-card {
    background-color: var(--light-color);
    border-radius: clamp(12px, 1.042vw, 20px);
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.program-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 1.563vw, 30px);
    background-color: #EAEFF6;
    border-radius: clamp(12px, 1.042vw, 20px) clamp(12px, 1.042vw, 20px) 0 0;
    transition: background-color 0.3s ease;
}

.program-card:hover .program-card-header {
    background-color: #dce5f0;
}

.toggle-icon {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(30px, 2.083vw, 40px);
    height: clamp(30px, 2.083vw, 40px);
}

.program-card.active .toggle-icon, .faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-item {
    margin-bottom: clamp(10px, 0.781vw, 15px);
    border-radius: clamp(10px, 0.781vw, 15px);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.faq-item-header {
    padding: clamp(15px, 1.042vw, 20px);
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    justify-content: space-between;
}

.faq-item-header h3 {
    color: var(--primary-color);
    font-family: Stem-Medium;
    font-size: clamp(18px, 1.25vw, 24px);
    font-weight: 400;
    line-height: normal;
}

.faq-item-body {
    padding: 0 clamp(15px, 1.042vw, 20px);
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.faq-item.active .faq-item-header, .faq-item:hover .faq-item-header {
    background-color: var(--primary-color);
}

.faq-item.active .faq-item-header h3, .faq-item:hover .faq-item-header h3 {
    color: var(--light-color);
}

.faq-item.active .faq-item-header svg > path, .faq-item:hover .faq-item-header svg > path {
    stroke: #fff;
}

.faq-item.active .faq-item-body {
    padding: clamp(15px, 1.042vw, 20px);
    max-height: 500px;
}

.program-card-body-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.program-card-body {
    padding: clamp(10px, 0.781vw, 15px) 0 clamp(15px, 1.042vw, 20px) clamp(35px, 2.865vw, 55px);
}

.program-card.active .program-card-body-wrapper {
    max-height: 500px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 1.563vw, 30px);
    margin-top: clamp(20px, 1.563vw, 30px);
}

.payment-option {
    background: linear-gradient(to bottom, #FFFFFF, #F0F6FF);
    border-radius: clamp(12px, 1.042vw, 20px);
    padding: clamp(20px, 1.563vw, 30px);
    box-shadow: 0px 0px 4px rgba(31, 64, 114, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(31, 64, 114, 0.3);
}

.faq-content {
    display: flex;
    gap: clamp(20px, 1.563vw, 30px);
    align-items: flex-start;
    margin-top: clamp(20px, 1.563vw, 30px);
    flex-wrap: wrap;
}

.faq-questions {
    flex: 1;
    min-width: min(100%, 400px);
}

.faq-image {
    flex: 0 0 100%;
    max-width: clamp(400px, 33.333vw, 640px);
    height: clamp(250px, 24.133vw, 460px);
    border-radius: clamp(12px, 1.042vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-image img {
    height: 100%;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(15px, 1.042vw, 20px);
    margin-top: clamp(20px, 1.563vw, 30px);
}

.benefit-card h3 {
    color: var(--primary-color);
    font-family: Stem-Medium;
    font-size: clamp(20px, 1.667vw, 32px);
    font-weight: 400;
    line-height: normal;
    margin-bottom: 5px;
}

.benefit-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.benefit-card-ico {
    width: clamp(60px, 5.208vw, 100px);
    position: absolute;
    right: clamp(10px, 1.042vw, 20px);
    bottom: clamp(10px, 1.042vw, 20px);
}

.benefit-card p {
    font-family: var(--font-family-Font-2, Nunito), serif;
    font-size: clamp(14px, 0.833vw, 16px);
    line-height: normal;
    width: 72%;
}

.doc__left ul li, .trainers .cont li {
    padding-left: clamp(20px, 1.406vw, 20px);
}

.trainers {
    padding-bottom: clamp(50px, 5.208vw, 100px);
    overflow: hidden;
}

@media (max-width: 768px) {
    .trainers {
        padding-bottom: 30px;
        padding-top: 50px;
    }
}

.trainers__wrapper {
    display: flex;
    column-gap: clamp(20px, 1.563vw, 30px);
    row-gap: clamp(20px, 1.563vw, 30px);
    flex-wrap: wrap;
}

.trainers__left {
    width: 100%;
    min-width: min(100%, 400px);
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: clamp(15px, 1.563vw, 30px);
    min-height: clamp(300px, 24.479vw, 470px);
    max-height: clamp(600px, 46.875vw, 900px);
}

.trainers__left img {
    object-fit: cover;
    width: 100%;
    max-height: clamp(600px, 46.875vw, 900px);
    object-position: center;
}

.trainers__content--hidden.trainers__content {
    height: 100%;
    max-height: clamp(150px, 13.021vw, 250px);
    text-overflow: ellipsis;
    overflow: hidden;
}

.trainers__wrapper:has(.trainers__content--hidden) .trainers__left,
.trainers__wrapper:has(.trainers__content--hidden) .trainers__left img {
    max-height: clamp(400px, 36.458vw, 700px);
}

.trainers__right {
    flex: 1;
    min-width: min(100%, 400px);
    display: flex;
    flex-direction: column;
    row-gap: clamp(20px, 1.563vw, 30px);
}

.trainers__suboffer {
    color: #035F47;
    font-family: Nunito;
    font-size: clamp(20px, 1.667vw, 32px);
    font-weight: 500;
    line-height: 100%;
    margin-bottom: clamp(20px, 1.563vw, 30px);
    margin-top: 5px;
}

.trainers__content-new {
    transition: 0.3s ease;
    max-height: clamp(600px, 46.875vw, 900px);
}

.trainers__elems {
    display: flex;
    flex-direction: column;
    row-gap: clamp(30px, 3.125vw, 60px);
}

.trainers__content-new ul {
    padding-left: 0px;
    margin-bottom: 0px;
}

.trainers__content-new ul {
    margin-bottom: clamp(20px, 1.563vw, 30px);
}

.trainers__more {
    display: none;
    align-items: center;
    column-gap: clamp(15px, 1.042vw, 20px);
    margin-top: clamp(20px, 1.563vw, 30px);
    cursor: pointer;
}

.trainers__more--visible {
    display: flex;
}

.trainers__more svg {
    display: flex;
    align-items: center;
    transition: 0.3s ease;
}

.trainers__btn {
    padding: clamp(10px, 0.677vw, 13px) clamp(25px, 2.083vw, 40px) clamp(12px, 0.938vw, 18px);
    display: inline-block;
    border-radius: clamp(8px, 0.521vw, 10px);
    background: #FCEDC6;
    color: #272727;
    text-align: center;
    font-family: Nunito;
    font-size: clamp(14px, 0.833vw, 16px);
    font-style: normal;
    font-weight: 500;
    line-height: clamp(18px, 1.25vw, 24px);
    max-width: fit-content;
    white-space: nowrap;
}
.sale-mob, .costul-mob {display: none}

.doc__body {
    gap: 20px;
    flex-direction: row-reverse;
}
@media screen and (max-width: 992px) {
    .doc__body {
        flex-direction: column;
    }
    .doc__right-img {margin-inline: auto;margin-top: 2%;
        margin-bottom: 3%;width: 100%}
}
.doc__left {
    padding: 30px;
    padding-right: 10px;
}
.doc__left ul {
    margin-top: 20px;
}
.doc__right-img {
    width: 640px;
    margin-top: 40px;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .sale.sale-mob {
        display: block;
        height: 3rem;
        width: 3rem;
        font-size: 1rem;
        line-height: 3rem;
        font-weight: 700;
        right: 32px;
        top: -7px;
    }

    .sale, .sale-old, .costul {
        display: none
    }

    .costul.costul-mob {
        display: block
    }

    .offer-content-main-wrapper {
        position: relative
    }

    .special-offer {
        gap: 0
    }

    .special-offer .break-line {
        display: block;
        margin: 0;
    }

    .countdown-wrapper .countdown {
        flex-wrap: nowrap;
        justify-content: center;
        margin-block: 15px
    }

    .trainers__wrapper {
        display: block
    }

    .trainers__suboffer {
        font-size: 14px;
    }

    .trainers__left {
        min-width: unset;
        width: 133px;
        height: auto;
        min-height: unset;
        float: left;
        display: block;
        margin-right: 10px;
    }

    .trainers__bio-text {
        margin-bottom: 3%
    }

    .trainers__right {
        display: block;
    }

    .trainers .cont li::before {
        top: 8px;
        left: 8px;
        width: 5px;
        height: 5px;
    }

    .trainers .cont li {
        font-size: 12px;
        line-height: normal;
    }

    .trainers__elems {
        row-gap: 30px;
    }

    .trainers__btn {
        padding: 13px 0 18px;
        width: 100%;
        display: block;
        max-width: 100%;
    }

    .program .offer {
        display: flex;
        font-size: 24px !important;
    }

    .program .costul {
        margin: 0 0 0 5px;
    }

    .program .sale-old {
        margin: 20px;
        top: 0;
        left: unset;
        right: 56px;
        aspect-ratio: 1;
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 10px !important;
    }


    .new-courses-page .offer:not(.program .offer) {
        font-size: 5.13vw !important;
        line-height: normal;
    }

    .course-content .container > p, .program-section > p {
        font-size: 4.1vw;
    }

    .program-card-header h4 {
        color: var(--primary-color);
        font-size: 4.1vw;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    .payment-option h3 {
        color: var(--primary-color);
        font-size: 5.13vw;
        line-height: normal;
    }

    .benefit-card-ico {
        width: 80px !important;
    }
}

@media (min-width: 769px) {
    .new-courses-page section {
        padding-inline: 3.90625vw;
    }

    .trainers__left {
        width: 40%;
    }
    .trainers__right {
        width: 60%;
    }
    .faq-image {
        flex: 0 0 clamp(400px, 33.333vw, 640px);
    }
}

.program__elem {
    padding: 0;
}

.program__elem-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(15px, 1.042vw, 20px);
}

.program__elem-wrapper .btn {
    margin: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none!important;
    font-weight: 500;
}

button {
    font-family: var(--font-default);
    cursor: pointer;
}

.page li {
    padding-left: clamp(15px, 1.042vw, 20px);
}

ul {
    box-sizing: border-box;
}

/* Блок с акцией */
.sale {
    margin-top: clamp(10px, 0.781vw, 15px);
    margin-right: clamp(15px, 1.198vw, 23px);
}

.offer-content-main-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(15px, 1.042vw, 20px);
}

.btn-secondary {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(16px, 1.354vw, 26px);
    padding: clamp(10px, 0.781vw, 15px) clamp(30px, 2.604vw, 50px);
    border-radius: clamp(8px, 0.625vw, 12px);
    border: none;
    cursor: pointer;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 0.521vw, 10px);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: 400;
}

.btn-secondary:hover {
    border: 1px solid var(--stem-blue);
    background: transparent;
    border-color: var(--text);
    color: var(--text);
}

.special-offer {
    background: linear-gradient(135deg, var(--primary-color), #2a5496);
    color: var(--light-color);
    border-radius: clamp(15px, 1.563vw, 30px);
    padding: clamp(20px, 1.563vw, 30px);
    padding-inline: clamp(2%, 3%, 3%);
    display: flex;
    justify-content: space-between;
    margin-bottom: clamp(20px, 1.563vw, 30px);
    box-shadow: 0 10px 30px rgba(31, 64, 114, 0.3);
    flex-wrap: wrap;
    gap: clamp(20px, 1.563vw, 30px);
}

.offer-content {
    flex: 1;
    min-width: min(100%, 300px);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 0.521vw, 10px);
}

.offer-content h3 {
    margin: 0;
}

.offer-content p {
    margin: 0;
}

small {
    margin-top: 5px;
    font-size: clamp(16px, 1.25vw, 24px);
    font-weight: 500;
    letter-spacing: -3.25%;
}

.offer-tag {
    background-color: var(--secondary-color);
    color: var(--light-color);
    font-family: 'Nunito', sans-serif;
    font-size: clamp(10px, 0.667vw, 12.8px);
    font-weight: 800;
    width: clamp(60px, 4.271vw, 82px);
    height: clamp(60px, 4.271vw, 82px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.special-offer h3 {
    font-size: clamp(24px, 2.083vw, 40px);
    font-weight: 500;
    margin: 0;
}

.special-offer p {
    margin: 0;
}

.special-offer p span:first-child {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(20px, 1.823vw, 35px);
    font-weight: 600;
    letter-spacing: -3%;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
}

.countdown-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: min(100%, 200px);
}

.countdown {
    display: flex;
    align-items: center;
    gap: clamp(10px, 0.781vw, 15px);
    margin-top: clamp(15px, 1.042vw, 20px);
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: clamp(8px, 0.521vw, 10px);
    padding: clamp(8px, 0.521vw, 10px);
    min-width: clamp(60px, 4.167vw, 80px);
}

.countdown-number {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(32px, 3.333vw, 64px);
    font-weight: 600;
}

.countdown-label {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(12px, 1.042vw, 20px);
    font-weight: 500;
}

.countdown-separator {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(32px, 3.333vw, 64px);
    font-weight: 600;
}

.offer-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
    flex: 1;
    min-width: min(100%, 300px);
    gap: clamp(10px, 0.781vw, 15px);
}

.offer-details h4 {
    font-size: clamp(20px, 1.875vw, 36px);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.offer-details ul {
    list-style: none;
    margin: 0 5px;
    padding: 0;
}

.offer-details li {
    position: relative;
    padding-left: clamp(15px, 1.042vw, 20px);
    margin-bottom: clamp(8px, 0.521vw, 10px);
    font-size: clamp(16px, 1.25vw, 24px);
    font-weight: 500;
}

.offer-details li::before {
    content: "";
    background: #FFF;
    position: absolute;
    left: 0;
    top: 0.6em;
    font-weight: bold;
    border-radius: 50%;
    width: clamp(8px, 0.521vw, 10px);
    aspect-ratio: 1;
}

.offer-details .btn-secondary {
    align-self: flex-end;
    margin-top: auto;
}

@media (max-width: 768px) {

    .content-layout,
    .faq-content,
    .trainers__wrapper {
        flex-direction: column;
    }

    .content-image,
    .faq-image,
    .trainers__right {
        width: 100%;
        max-width: 100%;
    }
    .new-courses-page .hero-image img {
        max-width: unset;
    }

    .new-courses-page .hero-text h1 {
        font-family: Stem-Medium;
        font-size: 6.15vw;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .new-courses-page .hero-text  p {
        align-self: stretch;
        color: #FFF;
        font-family: Stem-Medium;
        font-size: 5.13vw;
        font-style: normal;
        font-weight: 500;
        width: 90%;
    }


    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .special-offer {
        flex-direction: column;
    }

    .offer-details .btn-secondary {
        align-self: stretch;
        width: 100%;
    }

    .doc__right-img{
        width: 100%;
        height: 100%;
    }

    .countdown {
        gap: 2.56vw;
        margin-top: 3.85vw;
    }

    .countdown-item {
        border-radius: 2.05vw;
        padding: 2.05vw;
        min-width: 15.38vw;
    }

    .countdown-number {
        font-size: 8.21vw;
    }

    .countdown-label {
        font-size: 3.08vw;
    }

    .countdown-separator {
        font-size: 8.21vw;
    }

    .main__desc {
        padding-left: 20px !important;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
}

/* Slide Card Styles */
:root {
    --primary-blue: #1b3a6b;
    --accent-red: #d9534f;
    --text-dark: #333333;
    --text-gray: #555555;
    --border-color: #e0e0e0;
    --bg-white: #ffffff;
}

.slide-card {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100%;
    max-width: 600px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 1000;
    transform: translateX(120%);
    animation: slideIn 0.5s forwards ease-out;
    border: 1px solid rgba(0,0,0,0.1);
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

.card-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 20px 40px 20px 20px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.close-btn:hover {
    color: white;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.highlight-red {
    color: #ff8a80;
    font-weight: bold;
}

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

.star-badge {
    background: var(--accent-red);
    color: white;
    padding: 8px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    border-radius: 50%;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 0 #b92b27;
    transform: rotate(-10deg);
    flex-shrink: 0;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.body-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.dates-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.date-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    flex: 1;
    background: #fdfdfd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.date-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #b0c4de;
}

.date-highlight {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 10px;
    display: block;
}

.info-row {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 500;
}

.info-days {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.spots-left {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.spots-count {
    color: var(--accent-red);
    font-weight: bold;
}

.slide-card .btn-outline {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: 1px solid var(--primary-blue);
    border-radius: 6px;
    background: white;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.slide-card .btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

@media (max-width: 500px) {
    .dates-container {
        flex-direction: column;
    }
    .slide-card {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 10px;
    }
}


.about-v3 .who__left {
    width: 100%;
}
.about-v3 .who__items {
    display: block;
}

.academy__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    row-gap: 18px;
}

.academy__list li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: flex-start;
}

.academy__badge {
    width: clamp(34px, 2.625vw + 23.763px, 65px);
    height: clamp(34px, 2.625vw + 23.763px, 65px);
    border-radius: 50%;
    background: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    flex-shrink: 0;
}

.academy__list p {
    margin: 0;
    line-height: 1.5;
}

/* Font styles for new-courses-v2.php block (lines 374-429) */
h3.about__offer {
    font-size: clamp(20px, 0.952vw * 1 + 16.286px, 36px);
}

p.about__desc {
    font-size: clamp(14px, 0.571vw * 1 + 11.771px, 24px);
}

h3.suboffer {
    font-size: clamp(20px, 1.905vw * 1 + 12.571px, 50px);
}

.academy__badge {
    font-size: clamp(14px, 0.762vw * 1 + 11.029px, 26px);
}

.academy__list p {
    font-size: clamp(14px, 0.762vw * 1 + 11.029px, 26px);
}

.about__logo {
    width: clamp(151.515px, 9.161vw + 115.785px, 300px);
    height: clamp(100.354px, 6.068vw + 76.689px, 198px);
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.academy__list strong {
    font-weight: 700;
}


.rating__items {
    gap: 0;
    display: flex;
    justify-content: space-between;
}

@media(max-width: 1440px) {
    .rating__items {
        flex-direction: column;
        align-items: center;
        gap:  20px;

    }
}

.rating-card {
     width: clamp(360px, calc(360px + 70.12 * (100vw - 390px) / 1050), 520px);
     background-color: #ffffff;
     border-radius: 30px;
     border: 1px solid #e5e7eb;
     padding: clamp(15px, calc(15px + 9.81 * (100vw - 390px) / 1050), 30px);
     box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
     0 1px 2px 0 rgba(0, 0, 0, 0.06);
     box-sizing: border-box;
     font-family: 'Inter', sans-serif;
 }

.rating-card__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20.77px, calc(20.77px + 4.04 * (100vw - 390px) / 1050), 30px);
    margin-bottom: clamp(6.92px, calc(6.92px + 1.35 * (100vw - 390px) / 1050), 10px);
}

.rating-card__icon-wrapper {
    width: clamp(63.69px, calc(63.69px + 12.409 * (100vw - 390px) / 1050), 92px);
    height: clamp(63.69px, calc(63.69px + 12.409 * (100vw - 390px) / 1050), 92px);
    overflow: hidden;
    flex-shrink: 0;
}

.rating-card__icon {
    width: 100%;
    height: 100%;
    display: block;
}

.rating-card__rating-text {
    display: flex;
    align-items: baseline;
}

.rating-card__rating-value {
    font-size: clamp(55.38px, calc(55.38px + 10.79 * (100vw - 390px) / 1050), 80px);
    font-weight: 700;
    color: #1E1E1E;
    line-height: 1;
}

.rating-card__rating-total {
    font-size: clamp(41.54px, calc(41.54px + 8.09 * (100vw - 390px) / 1050), 60px);
    color: #1E1E1E7F;
    font-weight: 300;
    line-height: 1;
}

.rating-card__stars {
    display: flex;
    gap: clamp(16.74px, calc(16.74px + 8.07 * (100vw - 390px) / 1050), 27.5px);
    justify-content: center;
}

.rating-card__star {
    width: clamp(42.61px, calc(42.61px + 15.29 * (100vw - 390px) / 1050), 70px);
    height: clamp(42.61px, calc(42.61px + 15.29 * (100vw - 390px) / 1050), 70px);
    color: #F9E14F;
    fill: currentColor;
}

section.rating {
    padding-bottom: 0 !important;
}



/* ============================================
       REVIEW CARD - Основные стили (BEM)
    ============================================ */
.review-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    /*max-width: 320px;*/
    min-height: 220px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Активная карточка (с синей рамкой) - BEM modifier */
.review-card--active {
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1),
    0 10px 20px -5px rgba(59, 130, 246, 0.15);
}

/* ============================================
   PROFILE SECTION - BEM Elements
============================================ */
.review-card__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f5f9;
    flex-shrink: 0;
}

.review-card__info {
    flex: 1;
    min-width: 0;
}

.review-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card__date {
    font-size: 14px;
    color: #94a3b8;
}

/* Индикатор онлайн */
.review-card__avatar-wrapper {
    position: relative;
}

.review-card__online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ============================================
   RATING STARS - BEM Elements
============================================ */
.review-card__rating {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.review-card__star {
    width: 18px;
    height: 18px;
    color: #fbbf24;
    fill: #fbbf24;
}

.review-card__star--empty {
    color: #e2e8f0;
    fill: #e2e8f0;
}

/* ============================================
   REVIEW CONTENT - BEM Element
============================================ */
.review-card__content {
    flex: 1;
}

.review-card__content p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.6;
}

.review-card__content p:last-child {
    margin-bottom: 0;
}

/* Ограничение по высоте с градиентом - BEM modifier */
.review-card__content--truncate {
    max-height: 90px;
    overflow: hidden;
    position: relative;
}

.review-card__content--truncate::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, #fff, transparent);
    pointer-events: none;
}

/* ============================================
   NAVIGATION ARROW - BEM Element
============================================ */
.review-card__nav-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #cbd5e1;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

/* Мобильные устройства */
@media (max-width: 480px) {
    body {
        padding: 20px 16px;
    }

    .review-card {
        padding: 18px;
        min-height: 200px;
    }

    .review-card__avatar {
        width: 42px;
        height: 42px;
    }

    .review-card__name {
        font-size: 15px;
    }

    .review-card__date {
        font-size: 13px;
    }

    .review-card__star {
        width: 16px;
        height: 16px;
    }

    .review-card__content p {
        font-size: 13px;
    }
}

/* Планшеты */
@media (min-width: 481px) and (max-width: 768px) {
    .swiper-wrapper {
        gap: 16px;
    }

    /*.review-card {*/
    /*    max-width: 340px;*/
    /*}*/
}

/* Десктоп */
@media (min-width: 769px) {
    .swiper-wrapper {
        gap: 24px;
    }

    .review-card {
        /*max-width: 300px;*/
        padding: 26px;
    }
}

/* Большие экраны */
@media (min-width: 1200px) {
    /*.review-card {*/
    /*    max-width: 320px;*/
    /*}*/
}

/* ============================================
   АНИМАЦИИ
============================================ */
@keyframes card-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: card-appear 0.5s ease-out forwards;
}

.review-card:nth-child(2) { animation-delay: 0.1s; }
.review-card:nth-child(3) { animation-delay: 0.2s; }
.review-card:nth-child(4) { animation-delay: 0.3s; }

/* ============================================
    SWIPER CONTAINER STYLES
    ============================================ */
.review-as-ya {
    padding: 60px 0;
    /*background: #f8fafc;*/
}

.review-as-ya__body {
    margin-top: 30px;
    position: relative;
}

#reviews-swiper {
    width: 100%;
    padding-bottom: 50px;
    overflow: visible !important;
    position: relative;
}

#reviews-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

#reviews-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    /*box-sizing: content-box;*/
}

/* Swiper Navigation Buttons */
#reviews-swiper .swiper-button-prev,
#reviews-swiper .swiper-button-next {
    width: 50px !important;
    height: 50px !important;
    /*background: #fff !important;*/
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    color: #035F47 !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#reviews-swiper .swiper-button-prev:hover,
#reviews-swiper .swiper-button-next:hover {
    /*background: #035F47 !important;*/
    color: #fff !important;
}

#reviews-swiper .swiper-button-prev::after,
#reviews-swiper .swiper-button-next::after {
    font-size: 20px !important;
    font-weight: bold !important;
}

#reviews-swiper .swiper-button-prev {
    left: -25px !important;
}

#reviews-swiper .swiper-button-next {
    right: -25px !important;
}

/* Swiper Pagination */
#reviews-swiper .swiper-pagination {
    bottom: 0 !important;
    position: relative !important;
    margin-top: 20px;
}

#reviews-swiper .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: #cbd5e1 !important;
    opacity: 1 !important;
}

#reviews-swiper .swiper-pagination-bullet-active {
    background: #035F47 !important;
}

/* Responsive */
@media (max-width: 768px) {
    #reviews-swiper .swiper-button-prev,
    #reviews-swiper .swiper-button-next {
        width: 40px !important;
        height: 40px !important;
    }
    
    #reviews-swiper .swiper-button-prev {
        left: 5px !important;
    }
    
    #reviews-swiper .swiper-button-next {
        right: 5px !important;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    #reviews-swiper .swiper-button-prev {
        left: -15px !important;
    }
    
    #reviews-swiper .swiper-button-next {
        right: -15px !important;
    }
}
