.specialty__menu ul li a .link_tab {
    display: none;
}

.specialty__menu ul li a {
    line-height: 150%;
}

.specialty__menu ul li a.is-active .link_tab {
    display: inline;
    font-size: 12px;
    text-decoration: underline;
    color: #ADA9A9;
    line-height: 150%;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 100px;
}

.specialty__menu ul li a.is-active {
    text-align: center;
    position: relative;
    padding-bottom: 23px;
    padding-top: 7px;
}

.specialty__menu ul li:first-child a.is-active {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    padding-top: 15px;
}

.news__item__image {
    position: relative;
    cursor: pointer;
}

.news__col .news__item__image .prev {
    display: none;
}

.news__col:hover .news__item__image .prev {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding-top: 100px;
}

.news__item__content {
    cursor: pointer;
}

.specialty__item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
        height: 100%;
}

.get-city {
    display: flex;
    align-items: center;
    color: #FFFFFF;
}

.get-city {
    font-size: 4.73333vmin;
}

@media (min-width: 1024px) {
    .get-city {
        /* font-size: 0.97222vw; */
        font-size: 1.3vw;
    }
}

@media (min-width: 1440px) {
    .get-city {
        font-size: 18px;
    }
}

.modal-city {
    max-width: 80%;
}

.footer__bottom__col {
    min-width: 370px;
}

@media (max-width:1024px) {
    .header__logo__text {
        font-size: 12px;
    }
    .header__logo__image img {
        width: 17.86667vmin;
    }
}

@media (min-width: 1024px) {
    .director__image img {
        width: 65.77778vw;
    }
}

@media (min-width: 1700px) {
    .director__image img {
        width: 55.77778vw;
    }
}

.director_mobile {
    display: none;
}

@media (max-width: 1023px) {
    .director_mobile {
        display: block;
        margin-left: -18%;
    }
}

.about__text {
    text-align: justify;
    hyphens: auto;
}

.market__box__text {
    text-align: justify;
    hyphens: auto;
}

.recall__item__text {
    text-align: justify;
    hyphens: auto;
}

.news__detail__text {
    text-align: justify;
    hyphens: auto;
}

.geo__text {
    text-align: justify;
    hyphens: auto;
    letter-spacing: -0.4px;
}

.director__box__text {
    text-align: justify;
    hyphens: auto;
}

.arrow_up {
    display: none !important;
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e41922;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 5px;

}

.back-to-top {
    cursor: pointer;
    z-index: 9999999999;
}



/* Styles for policy pages */

.policy-page {
    padding: 40px 0;
}

.policy-page .intro-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
    text-align: justify;
}

.policy-page h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 50px;
    margin-bottom: 25px;
    margin-left: unset;
    line-height: 1.3;
    text-align: left;
}

.policy-page h2:first-of-type {
    margin-top: 0;
}

.policy-page h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 35px;
    margin-bottom: 20px;
    margin-left: unset;
    line-height: 1.4;
    text-align: left;
}

.policy-page p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.policy-page ul {
    margin: 20px 0 30px 25px;
    padding: 0;
}

.policy-page ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
    padding-left: 10px;
    position: relative;
}

.policy-page ul li:before {
    content: "•";
    color: #d32f2f;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.policy-page strong,
.policy-page b {
    font-weight: 600;
    color: #1a1a1a;
}

.policy-page .color-red {
    color: #d32f2f;
    font-weight: 700;
}

/* Requisites page specific styles */
.requisites-page {
    padding: 40px 0;
}

.requisites-page h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 25px;
    margin-left: unset;
    line-height: 1.3;
    text-align: left;
}

/* .requisites-page h2:first-of-type {
    margin-top: 0;
} */

.requisites-page p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.requisites-page ul {
    margin: 20px 0 30px 25px;
    padding: 0;
}

.requisites-page ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
    padding-left: 10px;
    position: relative;
}

.requisites-page ul li:before {
    content: "•";
    color: #d32f2f;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.requisites-page strong,
.requisites-page b {
    font-weight: 600;
    color: #1a1a1a;
}

.requisites-page .intro-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
    text-align: justify;
}



/* ============================================
   ЧЕКБОКСЫ ПОЛИТИК ДЛЯ БЛОКА .questions
   ============================================ */

.questions .policy-checkboxes-wrapper {
    margin-top: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.questions .policy-checkboxes-wrapper.has-error {
    border-color: #EE1C29;
    background-color: #FFF0F0;
}

.questions .policy-checkbox-item {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

.questions .policy-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.questions .policy-checkbox-input-wrapper {
    position: relative;
    flex-shrink: 0;
}

.questions .policy-checkbox-custom {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
}

.questions .policy-checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #d32f2f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.questions .policy-checkbox-item:hover .policy-checkbox-custom {
    border-color: #d32f2f;
}

.questions .policy-checkbox-input:checked + .policy-checkbox-custom {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.questions .policy-checkbox-input:checked + .policy-checkbox-custom::after {
    display: block;
    border-color: #fff;
}

.questions .policy-checkbox-text {
    display: inline;
    margin-left: 12px;
}

.questions .policy-checkbox-text a {
    color: #d32f2f;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.questions .policy-checkbox-text a:hover {
    text-decoration: none;
    color: #b71c1c;
}

.questions .checkbox-error-banner {
    display: none;
    align-items: center;
    gap: 8px;
    background-color: #EE1C29;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(238, 28, 41, 0.3);
    animation: errorBannerFadeIn 0.3s ease;
}

.questions .checkbox-error-banner.--show {
    display: flex;
}

.questions .checkbox-error-banner .checkbox-error-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #fff;
    color: #EE1C29;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.questions .checkbox-error-banner .checkbox-error-banner__text {
    font-weight: 500;
}

@media (max-width: 767px) {
    .questions .policy-checkbox-item {
        font-size: 11px;
    }

    .questions .checkbox-error-banner {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* ============================================
   ЧЕКБОКСЫ ПОЛИТИК ДЛЯ БЛОКА .advice
   ============================================ */

.advice .policy-checkboxes-wrapper {
    margin-top: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.advice .policy-checkboxes-wrapper.has-error {
    border-color: #EE1C29;
    background-color: #FFF0F0;
}

.advice .policy-checkbox-item {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

.advice .policy-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.advice .policy-checkbox-input-wrapper {
    position: relative;
    flex-shrink: 0;
}

.advice .policy-checkbox-custom {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
}

.advice .policy-checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #d32f2f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.advice .policy-checkbox-item:hover .policy-checkbox-custom {
    border-color: #d32f2f;
}

.advice .policy-checkbox-input:checked + .policy-checkbox-custom {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.advice .policy-checkbox-input:checked + .policy-checkbox-custom::after {
    display: block;
    border-color: #fff;
}

.advice .policy-checkbox-text {
    display: inline;
    margin-left: 12px;
}

.advice .policy-checkbox-text a {
    color: #d32f2f;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.advice .policy-checkbox-text a:hover {
    text-decoration: none;
    color: #b71c1c;
}

.advice .checkbox-error-banner {
    display: none;
    align-items: center;
    gap: 8px;
    background-color: #EE1C29;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(238, 28, 41, 0.3);
    animation: errorBannerFadeIn 0.3s ease;
}

.advice .checkbox-error-banner.--show {
    display: flex;
}

.advice .checkbox-error-banner .checkbox-error-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #fff;
    color: #EE1C29;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.advice .checkbox-error-banner .checkbox-error-banner__text {
    font-weight: 500;
}

@media (max-width: 767px) {
    .advice .policy-checkbox-item {
        font-size: 11px;
    }

    .advice .checkbox-error-banner {
        font-size: 11px;
        padding: 6px 10px;
    }
}


/* ============================================
   ПЛАШКА ОШИБКИ ДЛЯ КВИЗА 
   ============================================ */

#modal-quiz2 .checkbox-error-banner--inline {
    display: none;
    align-items: center;
    gap: 8px;
    background-color: #EE1C29;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(238, 28, 41, 0.3);
    animation: errorBannerFadeIn 0.3s ease;
}

#modal-quiz2 .checkbox-error-banner--inline.--show {
    display: flex !important;
}

#modal-quiz2 .checkbox-error-banner--inline .checkbox-error-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #fff;
    color: #EE1C29;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
}

#modal-quiz2 .checkbox-error-banner--inline .checkbox-error-banner__text {
    font-weight: 500;
}

@keyframes errorBannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ЧЕКБОКСЫ ПОЛИТИК ДЛЯ КВИЗА
   ============================================ */

#modal-quiz2 .policy-checkboxes-wrapper {
    margin-top: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

@media (max-width: 767px) {
    .modal.modal-quiz {
        padding-bottom: 300px !important;
    }
}

#modal-quiz2 .policy-checkboxes-wrapper.has-error {
    border-color: #EE1C29;
    background-color: #FFF0F0;
}

#modal-quiz2 .policy-checkbox-item {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

#modal-quiz2 .policy-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

#modal-quiz2 .policy-checkbox-input-wrapper {
    position: relative;
    flex-shrink: 0;
}

#modal-quiz2 .policy-checkbox-custom {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
}

#modal-quiz2 .policy-checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #d32f2f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#modal-quiz2 .policy-checkbox-item:hover .policy-checkbox-custom {
    border-color: #d32f2f;
}

#modal-quiz2 .policy-checkbox-input:checked + .policy-checkbox-custom {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

#modal-quiz2 .policy-checkbox-input:checked + .policy-checkbox-custom::after {
    display: block;
    border-color: #fff;
}

#modal-quiz2 .policy-checkbox-text {
    display: inline;
    margin-left: 12px;
}

#modal-quiz2 .policy-checkbox-text a {
    color: #d32f2f;
    text-decoration: underline;
    transition: color 0.2s ease;
}

#modal-quiz2 .policy-checkbox-text a:hover {
    text-decoration: none;
    color: #b71c1c;
}

#modal-quiz2 .checkbox-error-banner {
    display: none;
    align-items: center;
    gap: 8px;
    background-color: #EE1C29;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 15px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(238, 28, 41, 0.3);
    animation: errorBannerFadeIn 0.3s ease;
}

#modal-quiz2 .checkbox-error-banner.--show {
    display: flex;
}

#modal-quiz2 .checkbox-error-banner .checkbox-error-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #fff;
    color: #EE1C29;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
}

#modal-quiz2 .checkbox-error-banner .checkbox-error-banner__text {
    font-weight: 500;
}

@media (max-width: 767px) {
    #modal-quiz2 .policy-checkbox-item {
        font-size: 11px;
    }

    #modal-quiz2 .checkbox-error-banner {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* ============================================
   ЧЕКБОКСЫ ПОЛИТИК — для всех модалок
   ============================================ */

.modal-offer .policy-checkboxes-wrapper,
.modal-calculation .policy-checkboxes-wrapper {
    margin-top: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.modal-offer .policy-checkboxes-wrapper.has-error,
.modal-calculation .policy-checkboxes-wrapper.has-error {
    border-color: #EE1C29;
    background-color: #FFF0F0;
}




.modal-offer .policy-checkboxes-wrapper,
.modal-calculation .policy-checkboxes-wrapper {
    margin-top: 0; /* Прилегает вплотную к плашке */
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

/* Состояние ошибки — красная рамка + розовый фон */
.modal-offer .policy-checkboxes-wrapper.has-error,
.modal-calculation .policy-checkboxes-wrapper.has-error {
    border-color: #EE1C29;
    background-color: #FFF0F0;
}

.modal-offer .policy-checkbox-item,
.modal-calculation .policy-checkbox-item {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

.modal-offer .policy-checkbox-input,
.modal-calculation .policy-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.modal-offer .policy-checkbox-input-wrapper,
.modal-calculation .policy-checkbox-input-wrapper {
    position: relative;
    flex-shrink: 0;
}

.modal-offer .policy-checkbox-custom,
.modal-calculation .policy-checkbox-custom {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
}

.modal-offer .policy-checkbox-custom::after,
.modal-calculation .policy-checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #d32f2f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modal-offer .policy-checkbox-item:hover .policy-checkbox-custom,
.modal-calculation .policy-checkbox-item:hover .policy-checkbox-custom {
    border-color: #d32f2f;
}

.modal-offer .policy-checkbox-input:checked + .policy-checkbox-custom,
.modal-calculation .policy-checkbox-input:checked + .policy-checkbox-custom {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.modal-offer .policy-checkbox-input:checked + .policy-checkbox-custom::after,
.modal-calculation .policy-checkbox-input:checked + .policy-checkbox-custom::after {
    display: block;
    border-color: #fff;
}

.modal-offer .policy-checkbox-text,
.modal-calculation .policy-checkbox-text {
    display: inline;
    margin-left: 12px;
}

.modal-offer .policy-checkbox-text a,
.modal-calculation .policy-checkbox-text a {
    color: #d32f2f;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modal-offer .policy-checkbox-text a:hover,
.modal-calculation .policy-checkbox-text a:hover {
    text-decoration: none;
    color: #b71c1c;
}

/* ============================================
   ПЛАШКА ОШИБКИ — В ПОТОКЕ ДОКУМЕНТА
   ============================================ */

.checkbox-error-banner--inline {
    display: none;
    align-items: center;
    gap: 8px;
    background-color: #EE1C29;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 15px; /* Отступ от кнопки сверху */
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(238, 28, 41, 0.3);
    animation: errorBannerFadeIn 0.3s ease;
}

.checkbox-error-banner--inline.--show {
    display: flex;
}

.checkbox-error-banner--inline .checkbox-error-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #fff;
    color: #EE1C29;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.checkbox-error-banner--inline .checkbox-error-banner__text {
    font-weight: 500;
}

@keyframes errorBannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 767px) {
    .modal-offer .policy-checkbox-item,
    .modal-calculation .policy-checkbox-item {
        font-size: 11px;
    }

    .checkbox-error-banner--inline {
        font-size: 11px;
        padding: 6px 10px;
    }
}

.calculation-modal{
	max-height: none;
}