/* /otzyv/ — самостоятельная страница отзывов */

.otzyv-page {
    color: #101e31;
    background: #fff;
}

.otzyv-title {
    padding: 150px 0 0;
}

.otzyv-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #a7acba;
    font-size: 14px;
    line-height: 1.4;
    opacity: .6;
}

.otzyv-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.otzyv-title h1 {
    margin: 30px 0 0;
    color: #101e31;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}


/* ----------------------------------------------------------
   Видеоотзывы — Tilda 363×645
   ---------------------------------------------------------- */

.otzyv-stories {
    padding: 120px 0 0;
    overflow: hidden;
}

.otzyv-stories__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

.otzyv-stories__viewport.is-dragging {
    cursor: grabbing;
}

.otzyv-stories__track {
    width: max-content;
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
}

.otzyv-story-card {
    position: relative;
    width: 363px;
    height: 645px;
    flex: 0 0 363px;
    overflow: hidden;
    color: #fff;
    background: #101e31;
    border-radius: 4px;
}

.otzyv-story-card__photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.otzyv-story-card__shade {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 286px;
    background: linear-gradient(
        to bottom,
        rgba(16,30,49,0),
        rgba(16,30,49,1)
    );
}

.otzyv-story-card__play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    padding: 0;
    transform: translate(-50%, -50%);
    background: #101e31;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .2s ease;
}

.otzyv-story-card__play:hover,
.otzyv-story-card__play:focus-visible {
    transform: translate(-50%, -50%) scale(1.12);
    outline: none;
}

.otzyv-story-card__play i {
    width: 0;
    height: 0;
    display: block;
    margin: auto;
    transform: translateX(3px);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}

.otzyv-story-card__content {
    position: absolute;
    z-index: 2;
    top: 403px;
    left: 40px;
    width: 323px;
    height: 228px;
}

.otzyv-story-card h2 {
    width: 323px;
    min-height: 78px;
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
}

.otzyv-story-card__scores {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    margin-top: 16px;
}

.otzyv-story-card__scores span {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    padding: 3px 6px 2px;
    color: rgba(255,255,255,.8);
    font-size: 16px;
    line-height: 1.4;
    white-space: nowrap;
    border: 1px solid #e7eaf1;
    border-radius: 30px;
}

.otzyv-story-card__scores strong {
    margin-left: 4px;
    color: #fff;
    font-size: 14px;
    line-height: 1.55;
}

.otzyv-story-card small {
    position: absolute;
    right: 0;
    bottom: 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    padding: 3px 6px 2px;
    color: #fff;
    font-size: 16px;
    line-height: 1.55;
    background: #537294;
    border-radius: 4px;
}

.otzyv-story-card iframe {
    position: absolute;
    z-index: 7;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ----------------------------------------------------------
   Заголовки с управляющими стрелками
   ---------------------------------------------------------- */

.otzyv-school-reviews,
.otzyv-course-reviews {
    padding: 150px 0 0;
    overflow: hidden;
}

.otzyv-section-head {
    min-height: 53px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
}

.otzyv-section-head h2 {
    margin: 0;
    color: #101e31;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.55;
    text-transform: uppercase;
}

.otzyv-section-head__arrows {
    display: flex;
    gap: 15px;
}

.otzyv-arrow {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 0;
    color: #6a829e;
    background: #f3f5f8;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.otzyv-arrow i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-35%, -50%) rotate(45deg);
}

.otzyv-arrow--next i {
    transform: translate(-65%, -50%) rotate(225deg);
}

.otzyv-arrow:hover,
.otzyv-arrow:focus-visible {
    color: #11408e;
    outline: none;
}


/* ----------------------------------------------------------
   Отзывы о школе — 570×434
   ---------------------------------------------------------- */

.otzyv-school-reviews__viewport {
    height: 456px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.otzyv-school-reviews__viewport::-webkit-scrollbar,
.otzyv-course-reviews__viewport::-webkit-scrollbar {
    display: none;
}

.otzyv-school-reviews__viewport.is-dragging,
.otzyv-course-reviews__viewport.is-dragging {
    cursor: grabbing;
}

.otzyv-school-reviews__track {
    width: max-content;
    height: 434px;
    display: flex;
    gap: 10px;
}

.otzyv-school-card {
    width: 570px;
    height: 434px;
    flex: 0 0 570px;
    box-sizing: border-box;
    padding: 30px 30px 40px;
    color: #3f5064;
    background: #f3f5f8;
    border-radius: 6px;
}

.otzyv-school-card__author,
.otzyv-course-card__author,
.otzyv-modal__author {
    display: flex;
    gap: 26px;
    align-items: center;
}

.otzyv-school-card__author img,
.otzyv-course-card__author img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    border-radius: 50%;
}

.otzyv-school-card__author h3,
.otzyv-course-card__author h3 {
    margin: 0;
    color: #101e31;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
}

.otzyv-school-card__author span {
    display: block;
    margin-top: 2px;
    color: #3f5064;
    font-size: 18px;
    line-height: 1.55;
}

.otzyv-school-card > p {
    margin: 26px 0 0;
    color: #3f5064;
    font-size: 18px;
    line-height: 1.55;
}


/* ----------------------------------------------------------
   Отзывы о курсах — 570×557
   ---------------------------------------------------------- */

.otzyv-course-reviews__viewport {
    height: 570px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.otzyv-course-reviews__track {
    width: max-content;
    height: 557px;
    display: flex;
    gap: 10px;
}

.otzyv-course-card {
    position: relative;
    width: 570px;
    height: 557px;
    flex: 0 0 570px;
    box-sizing: border-box;
    padding: 30px 30px 34px;
    color: #3f5064;
    background: #f3f5f8;
    border-radius: 6px;
}

.otzyv-course-card__author span {
    display: block;
    margin-top: 2px;
    color: #3f5064;
    font-size: 16px;
    line-height: 1.4;
}

.otzyv-course-card__excerpt {
    margin-top: 26px;
}

.otzyv-course-card__excerpt p {
    margin: 0 0 18px;
    color: #3f5064;
    font-size: 18px;
    line-height: 1.55;
}

.otzyv-course-card__more {
    position: absolute;
    left: 30px;
    bottom: 34px;
    padding: 0;
    color: #101e31;
    font: inherit;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #101e31;
    cursor: pointer;
}

.otzyv-course-card__more:hover,
.otzyv-course-card__more:focus-visible {
    color: #537294;
    border-color: #537294;
    outline: none;
}


/* ----------------------------------------------------------
   Bottom callback — same visible Tilda block, local handler
   ---------------------------------------------------------- */

.otzyv-callback {
    padding: 120px 0 0;
}

.otzyv-callback__card {
    width: 1160px;
    max-width: 100%;
    min-height: 464px;
    display: grid;
    grid-template-columns: 638px 522px;
    overflow: hidden;
    color: #fff;
    background: #476382;
    border-radius: 6px;
}

.otzyv-callback__content {
    padding: 34px 38px 36px 40px;
}

.otzyv-callback__content h2 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.4;
}

.otzyv-callback__content > p {
    margin: 16px 0 0;
    font-size: 20px;
    line-height: 1.55;
}

.otzyv-form {
    width: 560px;
    max-width: 100%;
    margin-top: 34px;
}

.otzyv-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.otzyv-form input[type="text"],
.otzyv-form input[type="tel"],
.otzyv-form input[type="email"] {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    display: block;
    margin: 0 0 14px;
    padding: 0 16px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    background: #5b7490;
    border: 1px solid #8d9cad;
    border-radius: 4px;
    outline: none;
}

.otzyv-form input::placeholder {
    color: #b7c5d3;
}

.otzyv-form input:focus {
    border-color: #fff;
}

.otzyv-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
}

.otzyv-form__consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #b7c5d3;
    font-size: 12px;
    line-height: 1.35;
}

.otzyv-form__consent input {
    margin-top: 2px;
    accent-color: #a9162e;
}

.otzyv-form__consent a {
    color: #b1c1d3;
}

.otzyv-form > button {
    width: 372px;
    height: 50px;
    margin-top: 18px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    background: #a9162e;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.otzyv-form > button:disabled {
    opacity: .65;
}

.otzyv-form__message {
    min-height: 20px;
    margin-top: 8px;
    font-size: 13px;
}

.otzyv-form__message.is-success {
    color: #d6f1df;
}

.otzyv-form__message.is-error {
    color: #ffe0e0;
}

.otzyv-callback__visual {
    height: 464px;
}

.otzyv-callback__visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}


/* ----------------------------------------------------------
   Course review modal — based on Tilda popup 800px
   ---------------------------------------------------------- */

body.otzyv-modal-open {
    overflow: hidden;
}

.otzyv-modal {
    position: fixed;
    z-index: 3000;
    inset: 0;
}

.otzyv-modal[hidden] {
    display: none !important;
}

.otzyv-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16,30,49,.58);
}

.otzyv-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(800px, calc(100vw - 40px));
    max-height: min(82vh, 700px);
    box-sizing: border-box;
    overflow-y: auto;
    padding: 40px;
    transform: translate(-50%, -50%);
    color: #3f5064;
    background: #fff;
    border-radius: 6px;
}

.otzyv-modal__close {
    position: sticky;
    z-index: 2;
    top: 0;
    float: right;
    width: 34px;
    height: 34px;
    margin: -15px -15px 0 15px;
    padding: 0;
    background: rgba(255,255,255,.92);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.otzyv-modal__close::before,
.otzyv-modal__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 1px;
    background: #101e31;
}

.otzyv-modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.otzyv-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.otzyv-modal__author img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    border-radius: 50%;
}

.otzyv-modal__author h2 {
    margin: 0;
    color: #101e31;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
}

.otzyv-modal__author span {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.4;
}

.otzyv-modal__text {
    margin-top: 26px;
}

.otzyv-modal__text p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.55;
}


/* ----------------------------------------------------------
   Tablet
   ---------------------------------------------------------- */

@media (min-width: 960px) and (max-width: 1199px) {
    .otzyv-story-card {
        width: 363px;
        height: 645px;
        flex-basis: 363px;
    }

    .otzyv-story-card__content {
        top: 402px;
        left: 29px;
    }

    .otzyv-school-reviews__viewport {
        height: 530px;
    }

    .otzyv-school-reviews__track {
        height: 520px;
    }

    .otzyv-school-card {
        width: 460px;
        height: 520px;
        flex-basis: 460px;
    }

    .otzyv-school-card__author img,
    .otzyv-course-card__author img {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .otzyv-course-reviews__viewport {
        height: 660px;
    }

    .otzyv-course-reviews__track {
        height: 647px;
    }

    .otzyv-course-card {
        width: 460px;
        height: 647px;
        flex-basis: 460px;
    }

    .otzyv-callback__card {
        min-height: 502px;
        grid-template-columns: 451px 489px;
    }

    .otzyv-callback__content {
        padding: 30px 40px;
    }

    .otzyv-form {
        width: 371px;
    }

    .otzyv-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .otzyv-form > button {
        width: 100%;
    }

    .otzyv-callback__visual {
        height: 502px;
    }

    .otzyv-modal__dialog {
        width: min(700px, calc(100vw - 40px));
        padding: 40px;
    }
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 959px) {
    .otzyv-title {
        padding-top: 90px;
    }

    .otzyv-breadcrumb {
        font-size: 10px;
    }

    .otzyv-title h1 {
        margin-top: 20px;
        font-size: 30px;
    }

    .otzyv-stories {
        padding-top: 120px;
    }

    .otzyv-stories__viewport {
        width: min(300px, 100%);
        margin: 0 auto;
    }

    .otzyv-story-card {
        width: 220px;
        height: 398px;
        flex-basis: 220px;
    }

    .otzyv-story-card__shade {
        height: 180px;
    }

    .otzyv-story-card__play {
        width: 40px;
        height: 40px;
    }

    .otzyv-story-card__play i {
        transform: translateX(2px);
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-left-width: 10px;
    }

    .otzyv-story-card__content {
        top: 224px;
        left: 22px;
        width: 196px;
        height: 159px;
    }

    .otzyv-story-card h2 {
        width: 196px;
        min-height: 36px;
        font-size: 14px;
    }

    .otzyv-story-card__scores {
        gap: 4px;
        margin-top: 6px;
    }

    .otzyv-story-card__scores span,
    .otzyv-story-card__scores strong,
    .otzyv-story-card small {
        font-size: 11px;
    }

    .otzyv-story-card__scores span {
        min-height: 19px;
        padding: 1px 6px 0;
    }

    .otzyv-story-card small {
        right: auto;
        left: 0;
        min-height: 19px;
        padding: 1px 6px 0;
    }

    .otzyv-school-reviews,
    .otzyv-course-reviews {
        padding-top: 150px;
    }

    .otzyv-section-head {
        width: min(300px, 100%);
        min-height: 28px;
        margin: 0 auto 30px;
    }

    .otzyv-section-head h2 {
        font-size: 20px;
        line-height: 1.4;
    }

    .otzyv-arrow {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .otzyv-arrow i {
        width: 7px;
        height: 7px;
        border-width: 0 0 1px 1px;
        border-style: solid;
    }

    .otzyv-school-reviews__viewport,
    .otzyv-course-reviews__viewport {
        width: min(300px, 100%);
        margin: 0 auto;
    }

    .otzyv-school-reviews__viewport {
        height: 330px;
    }

    .otzyv-school-reviews__track {
        height: 325px;
    }

    .otzyv-school-card {
        width: 260px;
        height: 325px;
        flex-basis: 260px;
        padding: 16px 16px 18px;
    }

    .otzyv-school-card__author,
    .otzyv-course-card__author {
        gap: 10px;
    }

    .otzyv-school-card__author img,
    .otzyv-course-card__author img {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .otzyv-school-card__author h3,
    .otzyv-course-card__author h3 {
        font-size: 14px;
    }

    .otzyv-school-card__author span,
    .otzyv-course-card__author span {
        font-size: 11px;
    }

    .otzyv-school-card > p {
        margin-top: 14px;
        font-size: 12px;
        line-height: 1.45;
    }

    .otzyv-course-reviews__viewport {
        height: 430px;
    }

    .otzyv-course-reviews__track {
        height: 420px;
    }

    .otzyv-course-card {
        width: 260px;
        height: 420px;
        flex-basis: 260px;
        padding: 16px 16px 18px;
    }

    .otzyv-course-card__excerpt {
        margin-top: 14px;
    }

    .otzyv-course-card__excerpt p {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.45;
    }

    .otzyv-course-card__more {
        left: 16px;
        bottom: 18px;
        font-size: 12px;
    }

    .otzyv-callback {
        padding-top: 120px;
    }

    .otzyv-callback__card {
        width: min(300px, 100%);
        min-height: 357px;
        display: block;
        margin: 0 auto;
    }

    .otzyv-callback__content {
        padding: 16px 16px 20px;
    }

    .otzyv-callback__content h2 {
        font-size: 24px;
        line-height: 1.05;
    }

    .otzyv-callback__content > p {
        width: 246px;
        max-width: 100%;
        margin-top: 14px;
        font-size: 12px;
    }

    .otzyv-form {
        margin-top: 16px;
    }

    .otzyv-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .otzyv-form input[type="text"],
    .otzyv-form input[type="tel"],
    .otzyv-form input[type="email"] {
        height: 40px;
        margin-bottom: 10px;
        font-size: 12px;
    }

    .otzyv-form__consent {
        font-size: 8px;
    }

    .otzyv-form > button {
        width: 100%;
        height: 40px;
        margin-top: 12px;
        font-size: 12px;
    }

    .otzyv-callback__visual {
        display: none;
    }

    .otzyv-modal__dialog {
        width: min(300px, calc(100vw - 20px));
        max-height: 82vh;
        padding: 16px 16px 18px;
    }

    .otzyv-modal__author {
        gap: 10px;
    }

    .otzyv-modal__author img {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .otzyv-modal__author h2 {
        font-size: 14px;
    }

    .otzyv-modal__author span {
        font-size: 11px;
    }

    .otzyv-modal__text {
        margin-top: 16px;
    }

    .otzyv-modal__text p {
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .otzyv-story-card__play,
    .otzyv-modal__dialog {
        transition: none;
    }
}
