/* MAIN STYLES */

.container {
    width: 100%;
    max-width: 1240px;
}

.header .container {
    max-width: 1735px;
}

.header-form-agree {
    margin: 15px 0;
}

.study-form {
    flex-wrap: wrap;
}

.study-form-agree {
    width: 100%;
    padding-left: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #ccc;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #d4a853;
}

.checkbox-input:checked ~ .checkbox-custom {
    background-color: #d4a853;
    border-color: #d4a853;
}

.checkbox-input:checked ~ .checkbox-custom:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text a {
    color: #d4a853;
    text-decoration: underline;
}

.checkbox-text a:hover {
    text-decoration: none;
}

.service-list-item-content .service-item-flex .button-service {
    opacity: 1;
}

.content-button-row {
    margin-bottom: 32px;
}

.content-button-row .button-service {
    font: normal bold 18px/25px "Open Sans", sans-serif;
    background: #DFB15C;
    filter: drop-shadow(0 0 10px rgba(255, 237, 0, .5));
    border: 2px solid #DFB15C;
    width: 132px;
    height: 46px;
    border-radius: 60px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    margin-inline: auto;
}

.service-list-item-content .service-item-name {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 1.8em;
    margin-top: 0.8em;
}


/* MAIN STYLES */

/* PROGRAM LIST */
.program-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 32px;
    padding-inline: 16px;

    > * {
        width: 100%;
    }

}

.program-list-item-content .program-content-price {
    font-size: 32px;
    color: #DFB15C;
    color: hsl(from #DFB15C h s calc(l - 10));
    line-height: 24px;
    margin: 0;
}

.program-list-item-content .program-content-name {
    margin-bottom: 24px;
    flex: 0;
}

.program-list-item-content {
    box-shadow: none;
    filter: none;
    margin: 0;
    background-color: transparent;
    position: relative;
    padding-top: 52px;
}

.program-list-item {
    border: 1px solid #00000033;
    border-radius: 8px;
    background-color: #fff;
    transition: 150ms;
    flex-direction: column;
    padding-bottom: 32px;
    position: relative;

    &:hover {
        border: 1px solid #DFB15C;
        box-shadow: 0 8px 16px #DFB15C33;
        translate: 0 -4px;

        img.before {
            opacity: 0;
        }
    }
}

.program-list-item-content .program-table-item-text span {
    display: inline;
    font-weight: 600;
}

.program-content-add {
    position: absolute;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: #DFB15C;
    color: hsl(from #DFB15C h s calc(l - 15));
    top: 28px;
    left: 32px;
    flex: 0;

    br {
        display: none;
    }
}

.program-list-item__control {
    display: flex;
    margin-top: auto;
    padding-inline: 32px;

    .button-service {

        font: normal bold 18px/25px "Open Sans", sans-serif;
        background: #DFB15C;
        filter: drop-shadow(0 0 10px rgba(255, 237, 0, .5));
        border: 2px solid #DFB15C;
        width: 100%;
        height: 48px;
        border-radius: 60px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px 10px;
        margin-inline: auto;

    }
}

/* PROGRAM LIST */

/* TOP BANNER */
.header-center-title {
    padding: 90px 0 0;
}

.header-center {
    margin-bottom: 32px;
}

.header-bullets {
    strong {
        font-weight: 600;
    }
}

.header-bullets__list {
    max-width: 840px;
    list-style: disc;
    padding-left: 1.1em;
}

.header-bullets__list-item:not(:last-child) {
    margin-bottom: 8px;
}

body:has(.breadcrumbs-wrap) .header-bullets {
    display: none;
}


.header:after {
    background: url(/img/header-after.webp);
    background-repeat: no-repeat;
    background-size: contain;
    width: 700px;
    height: auto;
    aspect-ratio: 578 / 320;
    left: 976px;
    top: 359px;
}

/* TOP BANNER */

/* MAIN FAQ */
.faq {
    margin-top: 64px;
    margin-bottom: 64px;

    h3 {
        text-align: left;
        margin-bottom: 0.1em;
        font-style: normal;
        font-weight: 700;
        font-size: 28px;
        line-height: 46px;
    }

    p {
        line-height: 2;
    }

    p:not(:last-child) {
        margin-bottom: 16px;
    }
}

.faq__title {
    font-style: normal;
    font-weight: 700;
    font-size: 42px;
    line-height: 51px;
    margin-bottom: 1em;
    text-decoration: underline;
    text-underline-offset: -15px;
    text-decoration-skip-ink: none;
    text-decoration-color: #dfb15c;
    text-decoration-thickness: 24px;
}

/* MAIN FAQ */

/* EXAM PAGE */
.exams {
    .exams-description {
        margin-top: 64px;
        margin-bottom: 64px;
    }

    .exams-faq {
        h3 {
            text-align: left;
            margin-bottom: 0.4em;
        }
    }

    h3 {
        font-weight: 600;
        font-size: 22px;
        text-align: center;
        margin-top: 1.6em;
        margin-bottom: 1em;
    }

    strong {
        font-weight: 600;
    }

    ul {
        margin-top: 20px;
        padding-left: 1.1em;
        list-style: disc;

        li:not(:last-child) {
            margin-bottom: 0.8em;
        }
    }
}

/* EXAM PAGE */

/* SVO BLOCK */
.svo-discount {
    padding: 30px 8px;
    /* background-color: #f8f9fa; */
    margin-block: 32px;
}


.svo-discount__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 2px solid #DFB15C;
    /* Акцентный цвет сайта */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.svo-discount__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #DFB15C;
    /* Акцентный цвет сайта */
    color: #ffffff;
    border-radius: 50%;
}

.svo-discount__icon svg {
    width: 24px;
    height: 24px;
}

.svo-discount__content {
    flex-grow: 1;
}

.svo-discount__title {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
    color: #212529;
}

.svo-discount__text {
    margin: 0;
    font-size: 16px;
    color: #495057;
    line-height: 1.5;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .svo-discount__inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .svo-discount__title {
        font-size: 18px;
    }

    .svo-discount__text {
        font-size: 14px;
    }
}

/* SVO BLOCK */

/* PROMO */
.promo *,
.promo *::before,
.promo *::after {
    box-sizing: border-box;
}

.promo {
    --promo-accent: #DFB15C;
    --promo-accent-hover: #D2A347;
    --promo-accent-text: #8A6A25;
    --promo-accent-soft: rgba(223, 177, 92, 0.16);
    --promo-text: #222222;
    --promo-muted: #5F666F;
    --promo-border: #E7E7E7;

    padding: 72px 8px;
    background-color: #ffffff;
    color: var(--promo-text);
    scroll-margin-top: 90px;
}

.promo__title {
    margin: 0 0 36px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 700;
}

.promo__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

.promo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #00000033;
    border-radius: 8px;
    transition: 150ms;

    &:hover {
        border: 1px solid #DFB15C;
        box-shadow: 0 8px 16px #DFB15C33;
        translate: 0 -4px;
    }
}

.promo-card:hover,
.promo-card:focus-within {
    border-color: var(--promo-accent);
    box-shadow: 0 12px 30px rgba(223, 177, 92, 0.18);
}

.promo-card__badge {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background-color: var(--promo-accent-soft);
    color: var(--promo-accent-text);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.promo-card__title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.promo-card__benefit {
    margin-bottom: 10px;
    font-size: clamp(32px, 4vw, 40px);
    line-height: 1.1;
    font-weight: 800;
    color: hsl(from rgb(223, 177, 92) h s calc(-10 + l));
}

.promo-card__description {
    margin: 0 0 16px;
    color: var(--promo-muted);
    line-height: 1.5;
}

.promo-card__conditions {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.promo-card__condition-item {
    position: relative;
    margin-bottom: 8px;
    padding-left: 22px;
    color: var(--promo-muted);
    line-height: 1.45;
}

.promo-card__condition-item:last-child {
    margin-bottom: 0;
}

.promo-card__condition-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--promo-accent);
}

.promo .promo-card__button {
    font: normal bold 18px / 25px "Open Sans", sans-serif;
    background: #DFB15C;
    filter: drop-shadow(0 0 10px rgba(255, 237, 0, .5));
    border: 2px solid #DFB15C;
    width: auto;
    height: 48px;
    border-radius: 60px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    margin-inline: 32px;
    margin-top: auto;
}

.promo .promo-card__button:hover {
    background-color: var(--promo-accent-hover);
}

.promo .promo-card__button:focus-visible {
    outline: 2px solid var(--promo-accent-text);
    outline-offset: 3px;
}

.promo .promo-card__button:active {
    transform: translateY(1px);
}

.promo__note {
    margin: 28px 0 0;
    max-width: 860px;
    padding: 14px 18px;
    border-radius: 12px;
    background-color: var(--promo-accent-soft);
    color: var(--promo-accent-text);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1023px) {
    .promo {
        padding: 56px 0;
    }

    .promo__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 639px) {
    .promo {
        padding: 48px 0;
    }

    .promo__grid {
        grid-template-columns: 1fr;
    }

    .promo-card:last-child {
        grid-column: auto;
    }
}

@media (width <=425px) {
    .button-service.promo-card__button {
        margin-inline: auto;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .promo *,
    .promo *::before,
    .promo *::after {
        transition: none;
    }
}

/* PROMO */

/* MEDIA */
@media (width <=1550px) {
    .header:after {
        width: 620px;
        max-width: 40%;
        left: 50%;
        bottom: 0;
    }

    .header-center,
    .header-bullets {
        max-width: 50%;
    }
}
@media (width <= 1440px) {
    .header:after {
        top: unset;
        left: 54%;
        bottom: 450px;
    }
}
@media (width <= 1370px) {
    .header:after {
        bottom: 520px;
    }
}

@media (width <=1340px) {
    .header-top-item-content .logotype-image {
        width: 48px;
    }

    .header-top-item-content .header-recall {
        width: auto;
        padding-inline: 20px;
    }

    .header-top-item-content .header-phone {
        font-size: 16px;
    }
}

@media (width <=1300px) {
    .hamburger-menu {
        order: 10;
        margin: 0;
    }

    .header-top-item-content .header-recall {
        margin-right: 16px;
    }

    .header_sticky.sticky .header-phone {
        margin-right: 16px;
    }

    .header-top-item-content .logotype-image {
        width: 40px;
    }

    .header:after {
        bottom: 600px;
        max-width: 450px;
    }
}

@media (width <=1260px) {
    .reviews-list {
        margin: unset;
    }

    .license-images .license-list {
        margin: 0;
    }
}

@media (width <=1250px) {
    .header:after {
        left: 55%;
        top: 260px;
    }
}

@media (width <=980px) {

    .header-center,
    .header-bullets {
        max-width: unset;
    }
}

@media (width <=800px) {
    .header-link {
        top: 200px;
    }

    .header-center-title {
        padding: 40px 0 0;
    }
}

@media (width <=580px) {
    .map-info {
        left: unset;
        right: unset;
    }

    .container {
        padding-inline: 10px;
    }

    .header .container {
        width: 100%;
    }

    .reviews-list-item-content {
        padding-inline: 10px;
        margin-inline: 0;
    }

    .reviews-list-item-content .reviews-content-header .reviews-content-info-name {
        padding: 0 0 0 0;
    }

}

@media (width <=460px) {

    .header-center-title {
        font-size: 26px;
        line-height: 1.1;
        font-weight: 600;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* MEDIA */