/* ========================================
   TESTING FORM - Основные стили
======================================== */

.testingform * {
    box-sizing: border-box;
    font-family: "Jost";
}

.testingform {
    max-width: 946px;
    margin: 0 auto;
    padding: 40px 20px;
}

.testingform .testingform__result-description br {
    display: none;
}
.header_banner_testing{display: flex;max-height: 158px; background: #F3F3F3;}
.header_banner_testing img{width:100%; max-width:1430px;margin:0 auto;}

/*10 sale*/
.testingform_header_row {display: flex; flex-direction: row; justify-content: space-between; align-items: center;}
.testing_10_code {  border: 1px solid #FF4438;  border-radius: 16px;  padding: 14px 20px; display: flex; align-items: center; max-height: 60px; gap: 20px;}
.testing_10_code .testing_number_10{font-size:40px;color:#FF4438;font-weight: 500;}
.testing_10_code .testing_text_10{text-transform:uppercase;font-size:14px;}
.testing_10_code .testing_text_10 span{text-transform:uppercase;font-size:14px;color:#FF4438;font-weight: 500;}



.testing_10_code_step { border: 1px solid #FF4438; border-radius: 16px; padding: 0 0 5px 0; display: flex; align-items: center;  width: 280px; flex-direction: column;}
.testing_10_code_step .testing_number_10{font-size:40px;color:#FF4438;font-weight: 500;}
.testing_10_code_step .testing_text_10{text-transform:uppercase;font-size:14px;}
.testing_10_code_step .testing_text_10 span{text-transform:uppercase;font-size:14px;color:#FF4438;font-weight: 500;}
.testing_10_code_step_mobile{display:none;}


/* ========================================
   ФОРМА ШАГОВ - HEADER
======================================== */

.testingform__header {
text-align: center;
    margin-bottom: 20px;
    display: flex;
    gap: 40px;
}

.testingform__title {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1D1D1B;
    line-height: 1.4;
    margin: 0;
}

/* ========================================
   ФОРМА ШАГОВ - WRAPPER
======================================== */

.testingform__wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-bottom: 40px;
}

/* Левая колонка — картинка */
.testingform__image-block {
    flex: 0 0 280px;
}

.testingform__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Правая колонка — шапка + контент */
.testingform__right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ========================================
   ФОРМА ШАГОВ - STEP HEADER
======================================== */

.testingform__step-header {
    margin-bottom: 20px;
}

.testingform__step-number {
    font-size: 28px;
    font-weight: 500;
    color: #FF4438;
    display: inline-block;
    margin-right: 20px;
    letter-spacing: 1px;
}

.testingform__step-title {
    font-size: 20px;
    font-weight: 400;
    color: #1D1D1B;
    display: inline-block;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ========================================
   ФОРМА ШАГОВ - CONTENT
======================================== */

.testingform__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ========================================
   ФОРМА ШАГОВ - QUESTION
======================================== */

.testingform__question {
    background: #FF4438;
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========================================
   ФОРМА ШАГОВ - ANSWERS
======================================== */

.testingform__answers {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.testingform__answer-item {
    margin-bottom: 12px;
}

.testingform__answer-input {
    display: none;
}

.testingform__answer-label {
    display: block;
    padding: 11px;
    background: #FFE6E6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 400;
    color: #1D1D1B;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid #FFE6E6;
}

.testingform__answer-label:hover {
    background: #FFCECC;
    color: #FF4438;
    border: 1px solid #FF4438;
}

.testingform__answer-input:checked + .testingform__answer-label {
    background: #FFCECC;
    color: #FF4438;
    font-weight: 400;
    border: 1px solid #FF4438;
}

/* ========================================
   ФОРМА ШАГОВ - FOOTER
======================================== */

.testingform__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}

.testingform_steps_informer {
    display: flex;
    align-items: center;
    flex: 0 0 280px;
}

.testingform__back-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
}

.testingform__back-icon {
    width: 50px;
    height: 50px;
    transition: all 0.3s;
    pointer-events: none;
}

.testingform__back-btn:hover {
    background: transparent;
}

.testingform__back-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testingform__back-btn:disabled:hover {
    background: transparent;
}

.testingform__step-counter {
    font-size: 18px;
    font-weight: 400;
    color: #1D1D1B;
    margin-left: 20px;
}

.testingform__progress-wrapper {
    flex: 1;
    margin-left: 40px;
}

.testingform__progress-bar {
    display: flex;
    gap: 8px;
    height: 8px;
}

.testingform__progress-segment {
    flex: 1;
    background: #FFE6E6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.testingform__progress-segment.completed {
    background: #FF4438;
}

.testingform__progress-segment.active {
    background: linear-gradient(90deg, #FF4438 32.21%, #FFE6E6 100%);
}

.testingform__next-btn {
    padding: 15px 40px;
    background: #E8402B;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    margin-left: 40px;
}

.testingform__next-btn:hover {
    background: #d63520;
}

.testingform__next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.testingform__next-btn:disabled:hover {
    background: #E8402B;
}

/* ========================================
   LOADER
======================================== */

.testingform__loader {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.testingform__loader.active {
    display: block;
}

.testingform__loader-spinner {
    border: 4px solid #F5E8E8;
    border-top: 4px solid #E8402B;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: testingform-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes testingform-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.testingform__loader-text {
    font-size: 16px;
    color: #666;
}

/* ========================================
   СТРАНИЦА РЕЗУЛЬТАТА
======================================== */

.testingform__result {
    display: none;
}

.testingform__result.active {
    display: block;
    overflow: hidden;
}

.testingform__result-title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1D1D1B;
    margin-bottom: 30px;
    line-height: 1.4;
}

.testingform__result-info {
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    color: #1D1D1B;
}

.testingform__result-info p {
    margin: 5px 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    color: #1D1D1B;
}

.testingform__result-info p span {
    margin: 5px 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    color: #1D1D1B;
    margin-right: 5px;
}

.testingform__result-description {
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    color: #1D1D1B;
    white-space: pre-line;
}

.scheme-title {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    display: block;
}

/* ========================================
   ССЫЛКА "ПРОКАЧАТЬ СХЕМУ"
======================================== */

.testingform__boost-link {
    display: inline-flex;
    align-items: center;
    color: #FF4438;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 40px;
    transition: all 0.3s;
    cursor: pointer;
}

.testingform__boost-link img {
    margin-right: 6px;
}

.testingform__boost-link:hover {
    color: #d63520;
}

.testingform__boost-link.hidden {
    display: none !important;
}

/* ========================================
   СЕТКА ТОВАРОВ
======================================== */

.testingform__products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* ========================================
   ТОВАР
======================================== */

.testingform__product-item {
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testingform__product-item:hover {
    transform: translateY(-5px);
}

.testingform__product-item:hover .testingform__product-image-wrapper {
    box-shadow: 0 5px 15px rgba(232, 64, 43, 0.2);
}

.testingform__product-item:hover .testingform__product-name {
    color: #E8402B;
}

.testingform__product-number {
    font-size: 24px;
    font-weight: 700;
    color: #E8402B;
    margin-bottom: 15px;
    display: none;
}

.testingform__product-image-wrapper {
    margin-bottom: 15px;
    position: relative;
    padding-top: 100%;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    max-width: 230px;
}

.testingform__product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.testingform__product-name {
    font-size: 16px;
    font-weight: 300;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1.2;
    transition: all 0.3s;
    text-align: left;
}

.testingform__product-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: none;
}

.testingform__product-item--boost {
    display: flex;
    flex-direction: row;
}

.testingform__product-image-wrapper-boost {
    min-width: 230px;
}

.testingform_row {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testingform__product-image-wrapper-boost img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 100%;
}

.testingform__boost-product {
    border-radius: 8px;
    background: #FFDFDD;
    margin-bottom: 60px;
    max-width: 790px;
}

.testingform__product-item--boost .testingform__product-name {
    padding: 0px 30px;
    font-size: 16px;
    font-weight: 400;
    display: none;
}

.testingform__product-item--boost .testingform__product-boosttext {
    padding: 0 30px;
    font-size: 16px;
    font-weight: 400;
}

/* ========================================
   СЕКЦИЯ BOOST
======================================== */

.testingform__boost-section {
    display: none;
}

.testingform__boost-text {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
    white-space: pre-line;
}

/* ========================================
   КНОПКИ ДЕЙСТВИЙ НА РЕЗУЛЬТАТЕ
======================================== */

.testingform__result-actions {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.testingform__btn {
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    flex: 1;
    font-family: 'Montserrat', sans-serif;
}

.testingform__btn span{font-size: 20px;}



.testingform__btn--primary {
    background: #FF4438;
    color: #fff;
}

.testingform__btn--primary:hover {
    background: #d63520;
}

.testingform__btn--secondary {
    background: transparent;
    color: #FF4438;
    border: 2px solid #FF4438;
}

.testingform__btn--secondary:hover {
    background: #FF4438;
    color: #fff;
}


.testingform__result-bottom {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    margin-top: 30px;
}

.testingform__result-bottom .testingform__result-actions {
    flex: 0 1 480px;
    flex-direction: column;
    gap: 10px;
}

.testingform__gift-actions {
    flex: 0 1 300px;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.testingform__btn--gift {
    min-width: 260px;
    background: #FF4438;
    color: #fff;
}

.testingform__btn--gift:hover {
    background: #d63520;
}

.testingform__btn--gift:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ========================================
   СКРЫТИЕ ШАГОВ
======================================== */

.testingform__steps {
    display: block;
}

.testingform__steps.hidden {
    display: none;
}


/* ─── Контейнер формы Б24: визуально скрыт, но существует в DOM ─── */
#tfB24FormContainer {
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
    opacity: 0 !important;
}

/* Скрываем ВСЁ внутри контейнера Б24 на случай если форма выбивается наружу */
#tfB24FormContainer *,
#tfB24FormContainer iframe,
#tfB24FormContainer .b24-form,
#tfB24FormContainer .b24-form-wrapper {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ─── Модальное окно ─────────────────────────────────── */
.tf-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tf-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.tf-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.tf-modal__window {
    position: relative;
    z-index: 1;
    background: #FDF0EF;
    border-radius: 16px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.tf-modal.is-open .tf-modal__window {
    transform: translateY(0);
}

/* Кнопка закрытия */
.tf-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    padding: 0;
    z-index: 2;
}

.tf-modal__close:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Заголовок */
.tf-modal__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 28px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding-right: 32px;
}

/* Форма */
.tf-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* Поля */
.tf-modal__field {
    display: flex;
    flex-direction: column;
/*    gap: 4px;*/
    position: relative;
}

.tf-modal__input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
}

.tf-modal__input::placeholder {
    color: #aaa;
}

.tf-modal__input:focus {
    box-shadow: 0 0 0 2px rgba(211, 60, 50, 0.35);
}

.tf-modal__input.has-error {
    box-shadow: 0 0 0 2px rgba(211, 60, 50, 0.7);
}

/* Скрываем стрелки у input[type=number] */
.tf-modal__input[type="number"]::-webkit-inner-spin-button,
.tf-modal__input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ошибки */
.tf-modal__error {
    font-size: 12px;
    color: #d33c32;
    min-height: 16px;
/*    padding-left: 4px;*/
    position: absolute;
    right: 10px;
    top: 15px;
}

.tf-modal__consent {
position: relative;
}

.tf-modal__consent .tf-modal__error{position:relative;right:unset;top:unset;margin-left: 37px;}



/* Чекбокс */
.tf-modal__consent {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.tf-modal__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.tf-modal__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tf-modal__checkbox-custom {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
    margin-top: 1px;
}

.tf-modal__checkbox:checked + .tf-modal__checkbox-custom {
    background: #d33c32;
    border-color: #d33c32;
}

.tf-modal__checkbox:checked + .tf-modal__checkbox-custom::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.tf-modal__checkbox-custom.has-error {
    border-color: #d33c32;
}

.tf-modal__consent-text {
    font-size: 16px;
    color: #000000;
    line-height: 1.1;
    margin-top: 5px;
}

.tf-modal__consent-link {
    font-size: 16px;
    color: #000000;
    text-decoration: underline;
    margin-left: 38px;
    transition: color 0.2s;
}

.tf-modal__consent-link:hover {
    color: #d33c32;
}

/* Кнопки */
.tf-modal__buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.tf-modal__btn-pdf {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #FF4438;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    padding: 0;
}

.tf-modal__btn-pdf:hover {
    background: #b8302a;
    transform: translateY(-1px);
}

.tf-modal__btn-pdf:active {
    transform: translateY(0);
}

.tf-modal__btn-pdf:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.tf-modal__btn-email {
    flex: 1;
    height: 56px;
    background: #FF4438;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
}

.tf-modal__btn-email:hover {
    background: #b8302a;
    transform: translateY(-1px);
}

.tf-modal__btn-email:active {
    transform: translateY(0);
}

.tf-modal__btn-email:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Статус */
.tf-modal__status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-top: 4px;
}

.tf-modal__status--success {
    background: #e8f5e9;
    color: #2e7d32;
}

.tf-modal__status--error {
    background: #fdecea;
    color: #c62828;
}

/* Лоадер */
.tf-modal__loader {
    position: absolute;
    inset: 0;
    background: rgba(253, 240, 239, 0.92);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
}

.tf-modal__loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #f0c9c7;
    border-top-color: #d33c32;
    border-radius: 50%;
    animation: tf-spin 0.8s linear infinite;
}

.tf-modal__loader p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

@keyframes tf-spin {
    to { transform: rotate(360deg); }
}

.testingform__carousel-arrows{display:none;}





.popupstep2{
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    vertical-align: middle;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    flex: 0 0 24px;
    margin-top: -5px;
}




.testingform__answer-preview-trigger {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    vertical-align: middle;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    flex: 0 0 24px;
}

.popupstep2 {
    background-image: url('/testing/images/step2_popup.svg');
}

.testingform__answer-preview-trigger {
    background-image: url('/testing/images/popup.svg');
}

.testingform__answer-label--with-popup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.testingform__answer-label-text {
    flex: 1 1 auto;
}

.testingform-popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99998;
}

.testingform-popup-overlay.is-active {
    display: block;
}

.testingform-step2-popup {
    position: absolute;
    display: none;
    width: 580px;
    height: auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0px 0px 10.2903px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    z-index: 99999;
    box-sizing: border-box;
}

.testingform-step2-popup.is-active {
    display: block;
}

.testingform-step2-popup__content {
    width: 100%;
    height: 100%;
    font-family: "Jost";
    font-weight:300;
    font-size:14px;
}

.testingform-step2-popup__content b{
font-family: "Jost";
font-weight:400;
text-transform:uppercase;
font-size:16px;
}

.testingform-step2-popup__content br{margin:0;padding:0;}

.testingform-step3-preview {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9997;
    pointer-events: none;
}

.testingform-step3-preview.is-active {
    display: flex;
}

.testingform-step3-preview__image {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
}

.testingform-step2-popup__close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.testingform-popup-overlay.is-active {
    display: block;
}




@media (max-width: 767px) {
    .testingform-step2-popup {
        width: calc(100vw - 32px);
        max-width: 580px;
        height: auto;
        top:50px !important;
        left: 0 !important;
        right: 0 !important;
        margin: auto;
        background: rgb(255 255 255);
    }

    .testingform-step2-popup__close {
        display: flex;
    }

 .testingform-popup-overlay {
        background: rgba(0, 0, 0, 0.45);
        cursor: pointer;
    }


.testingform-step2-popup__content {
    width: 100%;
    height: 100%;
    font-family: "Jost";
    font-weight:300;
    font-size:14px;
}

.testingform-step2-popup__content b{
font-family: "Jost";
font-weight:400;
text-transform:uppercase;
font-size:16px;
color:#FF4438;
}



}





@media (min-width: 576px) {
    .testingform__boost-link--mobile {
        display: none !important;
    }
}

/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ (max-width: 575px)
======================================== */

@media (max-width: 575px) {




.testingform_header_row {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.testing_10_code {
    border: 1px solid #FF4438;
    border-radius: 16px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    max-height: 100%;
    gap: 0px;
    flex-direction: column;
    text-align: center;
}

.testing_10_code_step {
        border: none;
        border-radius: unset;
        padding: 0 10px 10px;
        display: flex;
        align-items: center;
        max-width: 100px;
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 15px;
        background: #fff;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }
.testing_10_code_step .testing_number_10{font-size:30px;color:#FF4438;font-weight: 500;}
.testing_10_code_step .testing_text_10{text-transform:uppercase;font-size:11px;margin-left: 5px;}
.testing_10_code_step .testing_text_10 span{text-transform:uppercase;font-size:11px;color:#FF4438;font-weight: 500;}
.testing_10_code_step_mobile{display:block;}



.testingform__boost-link--desktop {
        display: none !important;
    }

    .testingform {
        max-width: 570px;
        margin: 0 auto;
        padding: 20px 0;
    }

    .testingform__header {
        text-align: center;
        margin-bottom: 50px;
        margin-left: 0;
        display:none;
    }

    .testingform__wrapper {
        flex-direction: column;
        gap: 0;
        margin-bottom: 40px;
    }

.tf-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}


.testingform__carousel-arrows {
    display: none; 
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 0 4px;
    box-sizing: border-box;
}

.testingform__carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s;
    position: absolute;
    top: 200px;
}

.testingform__carousel-arrow:active {
    opacity: 0.5;
}
.testingform__carousel-arrow--prev {
    margin-right: auto;
   left: 20px;
}

.testingform__carousel-arrow--next {
    margin-left: auto;
    right:20px;
}


    .testingform__right-col {
        display: contents; 
    }


    .testingform__step-header {
        order: 1;
        margin-bottom: 16px;
    }

    .testingform__image-block {
        order: 2;
        margin-bottom: 16px;
    }

    .testingform__content {
        order: 3;
    }

    .testingform__products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .testingform__product-image-wrapper {
        min-width: 230px;
    }

    .testingform__result-actions {
        flex-direction: row-reverse;
        display: flex;
	margin-top: 30px;
    }

.testingform__btn {
    padding: 18px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    flex: 1;
    font-family: 'Montserrat', sans-serif;
}
.testingform__btn span{ font-size: 20px;}


.testingform_steps_informer {
    display: flex;
    align-items: center;
    flex: 0 0 0px;
}

.testingform__step-title {
    font-size: 20px;
    font-weight: 500;
    color: #FF4438;
    display: inline-block;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.testingform__step-number {
    font-size: 20px;
    font-weight: 500;
    color: #FF4438;
    display: inline-block;
    margin-right: 20px;
    letter-spacing: 1px;
}

.testingform__question {
    background: #FF4438;
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.testingform__title {
    width: 400px;
}


    .tf-modal__window {
        padding: 32px 20px 28px;
        border-radius: 12px;
        max-height: 95vh;
        margin: 0 12px;
    }

    .tf-modal__title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .tf-modal__btn-email {
        font-size: 13px;
    }







} /* end max-width: 575px */


/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ (max-width: 575px) — ДОПОЛНЕНИЯ
======================================== */
.testingform_mobile_show{display:none;}
.testingform_mobile_hide{display:block;}

@media (max-width: 575px) {
    /* ── Аккордеон "Подробнее" ── */
    .testingform__accordion-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: none;
        border: none;
        padding: 0;
        margin-bottom: 20px;
        cursor: pointer;
        font-size: 20px;
        font-weight: 400;
        color: #1D1D1B;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-family: "Jost";
    }

.testingform_mobile_show{display:block;}
.testingform_mobile_hide{display:none;}

.testingform__product-item:hover .testingform__product-name {
    color: #1D1D1B;
}

.testingform__product-item:hover .testingform__product-image-wrapper {
    box-shadow: unset;
}

    .testingform__accordion-toggle .accordion-arrow {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .testingform__accordion-toggle.is-open .accordion-arrow {
        transform: rotate(180deg);
    }

    .testingform__result-description--mobile-hidden {
        display: none;
        animation: accordionFadeIn 0.35s ease forwards;
    }

    .testingform__result-description--mobile-hidden.is-open {
        display: block;
    }

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

    /* ── Обёртка карусели ── */
    .testingform__carousel-wrapper {
	position: relative;
        overflow: hidden;
        background: #FFCECC;
        border-radius: 16px;
        width: calc(100% + 24px);
        margin: 0 -12px;
    }



    /* ── Трек (сам скроллируемый ряд) ── */
    .testingform__products-grid {
        /* Сбрасываем grid */
        display: flex !important;
        grid-template-columns: unset !important;

        flex-direction: row;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;

        /* Отступы: слева 20px (= padding страницы), справа 20px */
        padding: 12px 20px 16px;
        gap: 12px;

        margin-bottom: 0; /* отступ снизу переносим на обёртку */
    }

    .testingform__products-grid::-webkit-scrollbar {
        display: none;
    }

    /* ── Карточка товара: почти 100% ширины трека ── */
    /*
     *  calc(100% - 40px)  = ширина экрана минус padding обёртки (20px*2)
     *  минус 32px        = "peek" — ровно столько видно от следующей карточки
     */
    .testingform__products-grid .testingform__product-item {
        flex: 0 0 calc(100vw - 40px - 32px);
        width:  calc(100vw - 40px - 32px);
      /*  scroll-snap-align: start;*/

        /* Стили карточки */
        background: #fff;
        border-radius: 16px;
        padding: 0 0 16px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.07);
        border: 1.5px solid transparent;
        transition: border-color 0.3s, box-shadow 0.3s;
        text-align: left;
        overflow: hidden;
    }

    /* Активная карточка */
    .testingform__products-grid .testingform__product-item.is-active {
     /*   border-color: #FF4438;*/
        box-shadow: 0 4px 20px rgba(255, 68, 56, 0.18);
    }


.testingform__product-image-wrapper-boost img {
    width: 100%;
    border-radius: 100%;
    object-fit: cover;
    height: 100%;
}

    /* Картинка — квадрат, на всю ширину карточки */
    .testingform__products-grid .testingform__product-image-wrapper {
	min-width: 230px;
        max-width: unset;
        width: 100%;
        padding-top: 100%; /* квадрат */
        border-radius: 0;
        margin-bottom: 0;
        background: #fafafa;
    }

    /* Название товара */
    .testingform__products-grid .testingform__product-name {
        font-size: 16px;
        font-weight: 300;
        line-height: 1.35;
        color: #1D1D1B;
        text-align: left;
        padding: 12px 16px 0;
        margin-bottom: 0;
    }

    /* ── Точки пагинации карусели ── */
    .testingform__carousel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin: 12px 0 24px;
    }

    .testingform__carousel-dots .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #FFE6E6;
        transition: background 0.3s, width 0.3s;
        flex-shrink: 0;
    }

    .testingform__carousel-dots .dot.is-active {
        background: #FF4438;
        width: 18px;
        border-radius: 3px;
    }

    /* ── Блок прокачки ── */


.testingform__boost-section {
/*/        margin: 0 -20px;*/
        margin: 0;
        padding: 0 20px 24px;
        background: linear-gradient(180deg, #FF4438 0.08%, #FFDFDD 100.08%);
        border-radius: 16px 16px 0 0;
        animation: boostSlideUp 0.4s ease forwards;
        border-top-left-radius: 50vw;
        border-top-right-radius: 50vw;
    }

    @keyframes boostSlideUp {
        from { opacity: 0; transform: translateY(30px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .testingform__boost-product {
        max-width: 100%;
        background: none;
        border-radius: 12px;
        overflow: hidden;
    }

    .testingform__product-item--boost {
        flex-direction: column;
    }

    .testingform__product-image-wrapper-boost {
        min-width: unset;
        width: 100%;
        aspect-ratio: 1 / 1;
	margin-top: 20px;
    }

    .testingform__product-item--boost .testingform__product-name {
        display: block;
        padding: 12px 16px 0;
        font-size: 16px;
    }

    .testingform__product-item--boost .testingform__product-boosttext {
        padding: 8px 16px 16px;
        font-size: 16px;
        line-height: 1.5;
    }

.testingform_row {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testingform__btn--secondary {
     background: #FF4438;
     color: #fff;
}


    /* ── Пагинация карусели (точки) ── */
    .testingform__carousel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-bottom: 20px;
    }

    .testingform__carousel-dots .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #FFE6E6;
        transition: background 0.3s, width 0.3s;
    }

    .testingform__carousel-dots .dot.is-active {
        background: #FF4438;
        width: 18px;
        border-radius: 3px;
    }

} /* end max-width: 575px */



/*enddop*/



@keyframes stepNumHighlight {
    0%   { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Анимация появления всего контента шага */
@keyframes stepContentFadeIn {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Класс который навешивается при смене шага */
.testingform__step-header.step-animate {
    animation: stepNumHighlight 0.4s ease forwards;
}

.testingform__content.step-animate {
    animation: stepContentFadeIn 0.4s ease forwards;
}

.testingform__image-block.step-animate {
    animation: stepContentFadeIn 0.4s ease forwards;
}

.banner_footer_testing{display:flex;margin-top: 30px;}
.banner_footer_testing img{width:100%;}

@media (max-width: 400px) {
    .testingform__btn {
        padding: 18px 26px;
        font-size: 20px;
    }
    .testingform__btn span{
        font-size: 20px;
    }
}

@media (max-width: 756px) {
    #main .testingform {
        padding: 12px;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {
    .testingform__result-bottom {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    .testingform__result-bottom .testingform__result-actions,
    .testingform__gift-actions {
        flex: 1 1 auto;
        width: 100%;
    }

    .testingform__btn--gift {
        width: 100%;
        min-width: 0;
    }
}
