.page-template-mk {
    margin: 0;
}



.wrapper_masterclass h2 {
    line-height: normal;
}

.wrapper_masterclass .container {
    max-width: 1920px;
    padding: 0 100px;
}
.wrapper_masterclass .quiz {
    padding: 120px 0 50px 0;
    border-bottom: 4px solid #C3C3C3;
    transition: min-height 0.3s ease;
}


        @media (max-width: 768px) {
            .wrapper_masterclass .quiz {
                padding: 0 0 40px 0;
                display: none;
            }
        }




/* Ефект тряски кнопки при помилці */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.error_shake {
    animation: shake 0.2s ease-in-out 0s 2;
    background-color: #ff4d4d !important;
}

/* Підсвітка блоків, щоб звернути увагу юзера */
.highlight_prompt {
    border: 2px solid #ffcc00 !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Стилі для нових параграфів замість заголовків */
.quiz_p_title {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: normal;
}

.quiz_p_title.quiz_header_fade + .all_mk.mobile {
    margin-top: 3em;
    margin-bottom: 3em;
}

.quiz_p_title.quiz_header_fade + .all_mk.mobile a{
    display: inline-block;
}

.quiz_p_desc {
    font-size: 25px;
    color: #000;
    margin-bottom: 20px;
}

.quiz_step_title {
    margin-top: 60px;
    font-weight: 700;
    font-size: 25px;
    margin-bottom: 25px;
}


.wrapper_masterclass h1 {
    color: #000000;
    font-family: "Montserrat", sans-serif;
    font-size: 48px;
    font-style: normal;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 100%; /* 50.4px */
    text-align: center;
    font-weight: 400;
}

.wrapper_masterclass .description h2 {
    color: #000000;
    margin-bottom: 42px;
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%; 
    text-align: center;
}

@media (max-width: 768px) {

    .wrapper_masterclass.quiz_p_title.quiz_header_fade {
        font-size: 26px;
        text-align: center;
    }
    
    .wrapper_masterclass .description h2 {
        margin-top: 1em;
    }

    .quiz_section .quiz_step_title.quiz_header_fade #quiz_container {
        min-height: auto;
    }

    .quiz_p_title {
        font-size: 30px;
        text-align: center;
    }


}

.wrapper_masterclass .quiz_content {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin-bottom: 50px;
}

@media (max-width: 1280px) {
    .wrapper_masterclass .quiz_content {
        display: block;
    }
}

.wrapper_masterclass .quiz_content .choice_wrap{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


.wrapper_masterclass .quiz_content .choice_item {
    padding: 10px;
    flex-direction: column;
}

.wrapper_masterclass .quiz_content .choice_item_link {
    display: block;
    text-align: center;
    color: #fff;
    text-decoration: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    height: 100%;
}
.wrapper_masterclass .quiz_content .choice_item_link p {
    padding: 25px;
    background-color:  #B88C55;
    font-size: 18px;
    font-weight: 700;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.wrapper_masterclass .quiz_content .choice_item_link .adress {
    font-size: 12px;
    font-weight: 400;
    font-size: 14px;
    padding: 10px;
}

.quiz_content.quiz_content_fade .choice_item_link p {
    padding: 5px;
}


/* Контейнер квізу з фіксованою мін-висотою, щоб не було різких стрибків */
#quiz_container {
    min-height: 400px; 
    position: relative;
    transition: all 0.3s ease;
}

#quiz_container button { 
    color: #fff;
    background-color: #000;
    border-radius: 50px;
    font-size: 28px;
    padding: 14px 50px;
    border: 0;
    display: block;
    cursor: pointer;
}



#quiz_container button:hover {
    background-color: #b98e59;
} 

.quiz_content_fade .choice_item .adress {
    display: none;
}


/* Анімація появи контенту */
.quiz_content_fade {
    animation: quizFadeIn 0.4s ease-in-out;
    justify-content: left;
}


@media (max-width: 640px) {

    .wrapper_masterclass .quiz_content.quiz_content_fade .choice_item_link {
        padding: 15px;
    }
    .quiz_content_fade .choice_item .choice_item_icon {
        display: none;
    }

    .quiz_content_fade .choice_item p {
        height: auto;
    }

    .quiz_content_fade .choice_item .adress {
        display: block;
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 0 !important;
    }

    #quiz_container button {
        font-size: 20px;
    }

    #quiz_container .card_content {
        padding: 20px 0;
    }

    #quiz_container .card_content .short_desc ul li {
        padding-left: 50px;
    }

    .card_content .price {
        text-align: center;
    }
}


@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стильний прелоадер (пульсація) */
.quiz_loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    text-align: center;
}

.quiz_loader_spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#bottons_wrap {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

#quiz_back {
    background-color: #fff !important;
    border: 2px solid #000 !important;
    background-image: url('../images/arrow-down-dali.png');
    background-position: center;
    background-repeat: no-repeat;
    transform: rotate(90deg);
    padding: 0 !important;
    width: 60px;
    height: 100px;
    &:hover {
        background-color: rgba(185, 142, 89, .5) !important;
    }

}

#quiz_next {
    display: none;
    padding: 15px 60px;
    background: #27ae60; /* Зелений колір для кнопки "Далі" */
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 400;
    padding: 15px 110px !important;

}

#quiz_next:hover {
    background: #b98e59;
    transform: translateY(-2px);
}

/* Активна картка (вибрана) */
.choice_item.active {
    background-color: #f9f9f9;
    border: 2px solid #000;
}

.choice_item_icon img {
    display: block;
    width: 100%;       /* Обов'язково: розтягує на всю ширину контейнера */
    object-fit: cover; /* Важливо: заповнює область, обрізаючи краї, а не стискаючи фото */
    object-position: center; /* Центрує композицію фото */
    vertical-align: middle; /* Або display: block */
}


@media (max-width: 991px) {
    .quiz-step-2 .choice_item_icon img {
        display: none;
    }
}

.choice_item_icon {
    width: 100%;
    overflow: hidden;  /* Щоб нічого не вилазило за межі */
}

.choice_item_link {
    margin:0; 
    color:#fff;
    text-align:center; 
    background-color: #b98e59;
}

.choice_item_link.count {
    width: 300px;
    padding: 35px;
}


.choice_item_link .city_item_desc {
    display: block;
    padding: 0;
}


.choice_item_link p {
    margin: 0;
    padding: 25px;
    background-color: #b98e59;
    color: #fff;
    width: 100%;
    box-sizing: border-box; /* Щоб падінги не роздували ширину */
}

.choice_item_link span {
    font-size: 22px;
    font-weight: 700;
}

@media (max-width: 640px) {

    .wrapper_masterclass .description h2 {

        font-size: 28px;
    }
    .choice_item_link span {
        font-size: 18px;
    }

    .choice_item_icon img {
        width: 250px;
        margin: 0 auto;
    }

    .wrapper_masterclass .quiz_content .choice_item_link {
        background: transparent;
        display: block;
    }

    .wrapper_masterclass .quiz_content.quiz_content_fade .choice_item_link {
        background-color: #b98e59;
    }

    .wrapper_masterclass .quiz_content .choice_item_link p {
        display: inline-block;
        height: auto;
        width: 250px;
    }

    .quiz_p_title.quiz_header_fade {
        display: none;
    }

    .quiz_p_desc.quiz_header_fade,
    .quiz_step_title.quiz_header_fade {
        text-align: center;
    }

    #bottons_wrap {
            flex-direction: row-reverse !important;
            justify-content: space-evenly !important;
    }

    #quiz_back {
        padding: 35px 22px !important;
        width: 35px;
        height: auto;
    }

    #quiz_next {
        padding: 15px 70px !important;
    }
}

.quiz_results_grid {
    width: 100%;
}

.quiz_results_grid .quiz_product_card {
    border: 1px solid;
    padding: 15px;
}

.quiz_product_card .description {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center; /* Центрує заголовок, селект і кнопку по висоті */
    align-items: center;
    text-align: center;
    padding: 20px;
}


.quiz_product_card .buttons {
    display: grid;
    grid-template-columns: 1fr; /* Кнопки одна під одною */
    gap: 10px;
}

.wrapper_masterclass {
    position: relative;
}

.wrapper_masterclass .all_mk {
    position: absolute;
    right: 100px;
    top: 8px;
}

.wrapper_masterclass .all_mk.mobile {
    display: none;
}

.wrapper_masterclass .all_mk a{
    color: #fff;
    font-size: 18px;
    padding: 8px 38px 14px 38px;
    background-color: #B88C55;
    border-radius: 32px;
    text-decoration: none;
}


.how-mk {
    padding: 60px 0;
    font-family: 'Montserrat', sans-serif; /* твій шрифт */
}

        @media (max-width: 640px) {
            .how-mk {
                padding: 0;
            }
        }

.how-mk__wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Ліва частина 1 частина, права 2 частини */
    gap: 40px;
    align-items: start;
}

/* Ліва колонка */
.how-mk__main-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.how-mk__main-description {
    font-size: 18px;
    line-height: 1.5;
    color: #333;
}

/* Права колонка (Сітка карток) */
.how-mk__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 20px;
    counter-reset: mk-counter; /* Ініціалізуємо лічильник */
}

.how-mk__card {
    border: 1px solid #333;
    padding: 30px;
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

/* Кружечок з номером */
.how-mk__card-number {
    counter-increment: mk-counter; /* Збільшуємо на 1 */
    width: 40px;
    height: 40px;
    background-color: #b98d58; /* Твій золотистий колір */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.how-mk__card-number::before {
    content: counter(mk-counter); /* Виводимо цифру */
}

.how-mk__card-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.how-mk__card-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* Адаптивність для мобілок */
@media (max-width: 991px) {
    .how-mk__wrapper {
        grid-template-columns: 1fr; /* Все в одну колонку */
    }
}

@media (max-width: 600px) {
    .how-mk__items {
        grid-template-columns: 1fr; /* Картки теж в одну колонку */
    }
}

@media (max-width: 640px) {
    .mk-present {
        padding: 80px 0;
        background-color: #fff;
    }
}
    .mk-present {
        padding: 0;
    }

.mk-present__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.mk-present__info {
    flex: 1;
    max-width: 500px;
}

.mk-present__title {
    font-size: 42px;
    font-weight: 400; /* На макеті шрифт виглядає елегантним, не надто жирним */
    line-height: 1.1;
    margin-bottom: 25px;
    color: #000;
}

.mk-present__description {
    font-size: 18px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 40px;
}

/* Кнопка "pill" як на макеті */
.mk-present__link {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mk-present__link:hover {
    background-color: #b98d58; /* Твій акцентний колір */
    color: #fff;
}

.mk-present__image {
    flex: 1;
}

.mk-present__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Адаптивність */
@media (max-width: 991px) {
    .mk-present__wrapper {
        flex-direction: column-reverse; /* Картинка зверху на мобілках */
        text-align: center;
        gap: 40px;
    }
    
    .mk-present__info {
        max-width: 100%;
    }
    
    .mk-present__title {
        font-size: 32px;
    }
}


.how-work {
    padding: 80px 0;
    background-color: #fff;
}

.how-work__main-title {
    font-size: 36px;
    font-weight: 400;
    text-align: left; /* на макеті заголовок зліва */
    margin-bottom: 50px;
    color: #000;
}

.how-work__grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.how-work__item {
    flex: 1;
    background-color: #fcf6f4; /* Ніжний бежевий фон як на макеті */
    padding: 40px 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Вирівнювання по лівому краю */
    transition: transform 0.3s ease;
}

.how-work__item:hover {
    transform: translateY(-5px); /* Легкий ефект при наведенні */
}

.how-work__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
}

.how-work__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.how-work__item-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #000;
    text-transform: none;
}

.how-work__item-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Адаптивність */
@media (max-width: 991px) {
    .how-work__grid {
        flex-wrap: wrap; /* Картки переносяться */
    }
    .how-work__item {
        flex: 0 0 calc(50% - 10px); /* 2 картки в ряд */
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {

    .how-work {
        padding: 0 0 40px;
    }

    .how-work__item {
        flex: 0 0 100%; /* 1 картка в ряд */
    }
    .how-work__main-title {
        font-size: 28px;
    }
}


.mk-slider {
    padding: 80px 0;
}

.mk-slider__title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.mk-slider__image {
    width: 100%;
    aspect-ratio: 3 / 4; /* Робимо вертикальні картки */
    background-color: #e0e0e0; /* Сірий фон для пустих місць */
    border: 2px solid transparent; /* Заготовка під рамку */
    transition: all 0.3s ease;
    overflow: hidden;
}

.mk-slider__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-slider__item-title {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
}


/* Стилі для стрілок (опціонально, щоб винести їх за межі) */
.splide__arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.splide__arrow {
    background: transparent;
    border: 1px solid #333;
    position: static; /* прибираємо абсолютне позиціювання */
    transform: none;
}

/* Крапки пагінації */
.splide__pagination__page.is-active {
    background: #b98d58; /* Твій золотистий колір */
}

.mk-socials {
    padding: 100px 0;
    text-align: center;
}

.mk-socials__title {
    font-size: 38px;
    font-weight: 400;
    margin-bottom: 15px;
}

.mk-socials__description {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

/* Контейнер для форми */
.mk-socials__form {
    display: flex;
    max-width: 600px;
    margin: 0 auto 50px;
    border: 1px solid #e0d8d5; /* Світла рамка */
    padding: 5px;
    border-radius: 50px; /* Овальна форма як на макеті */
}

.mk-socials__form input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    outline: none;
    background: transparent;
    font-size: 14px;
}

.mk-socials__form button {
    background: #000;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.mk-socials__form button:hover {
    background: #b98d58;
}

/* Іконки соціалок */
.mk-socials__icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mk-socials__link {
    width: 80px;
    height: 80px;
    background-color: #f9f4f2; /* Світло-бежевий фон квадратів */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.mk-socials__link:hover {
    transform: translateY(-5px);
}

.mk-socials__link img {
    width: 45px; /* Розмір самих іконок */
    height: auto;
}

.mk-socials__link:last-child img {
    width: 75px;
}

.wrapper_masterclass .container .mobile_section {
    display: none;
}

/* Адаптивність */
@media (max-width: 600px) {
    .mk-socials__form {
        flex-direction: column;
        border: none;
        padding: 0;
    }
    .mk-socials__form input {
        border: 1px solid #e0d8d5;
        margin-bottom: 15px;
        border-radius: 50px;
    }

    .mk-socials {
        padding: 40px 0;
    }
}

@media (max-width: 1024px) {
    .wrapper_masterclass .quiz_content {
        flex-direction: column;
    }
}


@media (max-width: 768px) {
    .wrapper_masterclass .container {
        padding: 22px;
    }

    .wrapper_masterclass .container .mobile_section {
        display: block;
        height: calc(100vh - 300px);
        position: relative;
    }

    .wrapper_masterclass .container .mobile_section h2{
        font-size: 35px;
        margin-bottom: 40px;
        text-align: center;
    }

    .wrapper_masterclass .container .mobile_section .all_mk.mobile {
        display: flex;
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
        width: 100%;
    }

    .wrapper_masterclass .container .mobile_section .all_mk.mobile .start_quiz {
        color: #fff;
        background-color: #000;
        border-radius: 50px;
        font-size: 28px;
        padding: 14px 50px;
        border: 0;
        display: block;
        cursor: pointer;
    }

    .mk-present .container {
        padding: 0;
    }

    .mk-present .container .mk-present__info{
        padding: 0 22px;
    }

    .wrapper_masterclass h1 {
        font-size: 35px;
        margin-bottom: 40px;
    }
    .wrapper_masterclass .all_mk {
        display: none;
    }

    .wrapper_masterclass .all_mk.mobile {
        display: block;
        position: relative;
        top: unset;
        right: inherit;
        text-align: center;
    }

    .wrapper_masterclass .quiz-step-2 .all_mk.mobile,
    .wrapper_masterclass .quiz-step-3 .all_mk.mobile,
    .wrapper_masterclass .quiz-step-4 .all_mk.mobile,
    .wrapper_masterclass .quiz-step-5 .all_mk.mobile {
        display: none;
    }
}


.quiz_results_grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.horizontal_card {
    display: flex;
    border: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
    min-height: 250px;
}

@media (max-width: 1024px) {
    .horizontal_card {
        flex-direction: column;
    }
}

.card_image {
    flex: 0 0 35%; /* Ширина картинки */
    max-width: 510px;
    max-height: 300px;
}

@media (max-width: 1024px) {
    .card_image {
        max-width: 100%;
        max-height: 100%;
    }
}

.card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .card_image img {
        max-height: 200px;
    }
}

.card_content {
    flex: 1;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card_content .price {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 700;
}

.card_header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    justify-content: space-between;
}

.card_header .conters {
    display: flex;
    gap: 15px;
}

.card_header h4 {
    margin: 0;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.gifted_stat {
    margin-left: auto;
    color: #c49a6c;
    font-size: 14px;
}

@media (max-width: 768px) {

    .card_header .reviews_count, 
    .card_header .gifted_stat {
        display: none;
    }

    .card_actions {
        flex-direction: column;
    }

    #bottons_wrap {
        flex-direction: column;
        gap: 5px;
    }
}

.card_features {
    margin: 36px 0 30px 0;

}

/* Список особливостей з іконками */
.short_desc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.short_desc ul li {
    position: relative;
    padding-left: 35px; 
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 14px;
    display: flex;
    align-items: center;

}

.short_desc ul li::before {
    content: '';
    position: absolute;
    left: 0;
    background-size: contain;
    background-repeat: no-repeat;
    /* Заміни посилання на свою іконку або використовуй base64 */
}

.short_desc ul li:first-child::before {
    background-image: url('../images/mk-desc-1.png'); 
    width: 30px;
    height: 16px;
}

.short_desc ul li:nth-child(2)::before {
    background-image: url('../images/mk-desc-2.png'); 
    width: 28px;
    height: 31px;
}


.short_desc ul li:last-child::before {
    background-image: url('../images/mk-desc-3.png'); 
    width: 26px;
    height: 28px;
}

/* Стилізація селекту */
.quiz_select_wrapper {
    padding: 5px;
    margin-bottom: 20px;
    max-width: 500px;
}


.custom-select-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 500px; /* або за шириною контенту */
    border: 1px solid #D1D1D1; /* колір рамки як на скріні */
    background-color: #fff;
}


.quiz-variation-select {
    width: 100%;
    border: 1px solid #B8B8B8;
    padding: 7px 50px 7px 15px;
    font-size: 16px;
    border: none;
    background: transparent;
    appearance: none; /* прибираємо стандартну стрілку */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    
}


.custom-select-container::after {
    content: url('../images/down.svg');
    position: absolute;
    top: 0;
    right: 0;
    width: 38px; /* ширина блока зі стрілкою */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* щоб клік проходив крізь стрілку на селект */
    
    /* Вертикальна лінія */
    border-left: 1px solid #D1D1D1;
    color: #333;
    font-size: 23px;
}

.custom-select-container:hover {
    border-color: #a0a0a0;
}
.custom-select-container:hover::after {
    border-left-color: #a0a0a0;
}

/* Кнопки */
.card_actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.card_actions a {
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    min-width: 165px;
    margin: 0;
}

.card_actions .btn-outline {
    color: #000;
}

.card_actions .added_to_cart {
    border: 1px solid #c49a6c;
    color: #c49a6c;
}

.btn-outline { border: 1px solid #000; color: #000; }
.btn-filled { background: #000; color: #fff; border: 1px solid #000; }
.btn-brown { background: #c49a6c; color: #fff; }
.btn-brown:hover {  color: #fff; }

.add_to_cart_button.disabled {
    opacity: 0.5;
    pointer-events: none;
}
/* Мобільна версія: дозволяємо Splide керувати розміткою */
@media (max-width: 1279px) {
    .quiz_results_grid.splide__list {
        display: flex !important; /* Splide потребує flex для списку */
        flex-direction: row !important; /* Слайди мають йти в ряд */
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important; /* Відступи регулює Splide через margin-right у слайдів */
    }

    .splide__slide {
        flex-shrink: 0; /* Щоб слайди не стискалися */
        width: 100%;
    }

    /* Примусово показуємо стрілки, якщо вони зникли */
    .splide__arrows {
        display: flex;
    }
}

/* Десктоп версія: повертаємо список */
@media (min-width: 1280px) {
    .quiz_results_grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }
    .quiz_results_grid .splide__slide {
        width: 100% !important;
    }
}

@media (min-width: 1280px) {
    /* Коли слайдер знищено, повертаємо звичайний список */
    #quiz-splide .splide__list {
        display: flex !important;
        flex-direction: column !important; /* Картки одна під одною */
        gap: 20px;
        transform: none !important; /* Прибираємо будь-які зсуви */
    }

    #quiz-splide .splide__track {
        overflow: visible !important; /* Щоб нічого не обрізалось */
    }

}

/* Змінюємо загальний .splide__list на специфічний для квізу */
@media (min-width: 1280px) {
    /* Додаємо ID квізу, щоб не ламати #mk-splide */
    #quiz-splide .splide__list {
        display: flex !important;
        flex-direction: column !important;
        transform: none !important;
        gap: 20px;
    }
    
    /* Для головного слайдера МК на десктопі примусово скидаємо цей флекс, 
       якщо він раптом успадкувався */
    #mk-splide .splide__list {
        display: flex !important;
        flex-direction: row !important; /* Повертаємо в рядок */
        transform: none; 
    }
}


#quiz_container .splide__arrows button {
    padding: 0;
    background-color: transparent;
}


#quiz_container .splide__pagination button {
    padding: 0;
    background-color: #EBC79A;
    width: 20px;
    height: 20px;
    transform: none;
}


#quiz_container .splide__pagination button.is-active {
    background-color: #000000;
}
.page-template-mk #form_mk {
    text-align: center;
}

.page-template-mk #form_mk h2{
    font-size: 26px;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
}

.page-template-mk #form_mk p{
    font-size: 16px;
}

.page-template-mk .wpcf7-form input {
    border: 1px solid #B88C55;
}

.page-template-mk .wpcf7-form input[type="submit"] {
    margin-top: 2em;
    border-radius: 67px;
}

.page-template-mk .wpcf7-form input::placeholder {
    text-align: center;
}

.page-template-mk .wpcf7-form  br {
    display: none;
}

.wrapper_masterclass .quiz-step-3 .quiz_content {
    justify-content: flex-start;
}


#quiz_container .splide__arrows {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    width: 110%;
    justify-content: space-between;
    left: -5%;
}


#mk-splide .splide__slide {
    width: inherit; 
    max-width: none !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
}

/* 2. Захищаємо внутрішній контент від розтягування */
#mk-splide .mk-slider__item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* 3. Переконуємось, що список - це флекс (база Splide) */
#mk-splide .splide__list {
    display: flex !important;
    flex-direction: row !important;
}

/* Примусово прибираємо відступи, які можуть створювати ефект "півтора слайда" */
#mk-splide .splide__track {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#mk-splide .splide__slide {
    box-sizing: border-box !important;
}

/* Переконайся, що картинки всередині не ламають ширину */
.mk-slider__image img {
    width: 100%;
    height: auto;
    display: block;
}

#mk-splide .splide__pagination {
    bottom: -2em;
}

#mk-splide .splide__arrows {
    justify-content: space-between;
    width: 110%;
    position: absolute;
    left: -5%;
    top: 50%;
    transform: translate(0, -50%);
}

.mk-slider-wrapper {
    padding: 40px 0;
    font-family: 'Inter', sans-serif; /* або твій шрифт */
}

/* Глобальний селект міста */
.page-template-mk .slider-header {
    display: flex;
    justify-content: space-between; /* Розносить елементи по краях */
    align-items: center;           /* Вирівнює по вертикалі */
    margin-bottom: 30px;           /* Відступ від слайдера */
    gap: 20px;
}


.page-template-mk .slider-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    color: #000;
     font-family: "Montserrat", sans-serif;
}


.page-template-mk .splide__arrows {
    justify-content: space-between;
    position: absolute;
    left: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 110%;
}


    @media (max-width: 640px) {
        .splide {
            padding: 0 5%;
        }
    }



 @media (max-width: 992px) {
        .page-template-mk .slider-header {
            flex-direction: column;
        }

        .page-template-mk .slider-title {
            font-size: 30px;
        }

        .page-template-mk .city-selector {
            width: 100%;
        }
    }

.page-template-mk .city-selector {
    flex-shrink: 0;                /* Щоб селект не стискався */
}

.page-template-mk .global-city-select {
    border: 1px solid #d1b181;
    padding: 8px 15px;
    border-radius: 4px;
    outline: none;
}

/* Картка */
.page-template-mk .product-card {
    background: #fff;
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
    height: 100%; /* важливо для вирівнювання */
    position: relative;
    padding: 15px;
}

.page-template-mk .badge-top {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(209, 177, 129, 0.6);
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.page-template-mk .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-template-mk .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    justify-content: space-between;
}

.page-template-mk .card-content h3 {
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 400;
    line-height: normal;
    font-family: "Montserrat", sans-serif;
}

.page-template-mk .card-desc {
    font-size: 15px;
    color: #000;
    line-height: 1.4;
    margin-bottom: 20px;
}

.page-template-mk .card-desc li {
    list-style: none;
}

/* Рядок з селектом та іконками */
.page-template-mk .card-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #B88C55;
    padding: 5px 10px;
    margin-bottom: 20px;
    font-size: 13px;
    background: transparent;
}

.page-template-mk .card-features select {
    border: none;
    background: transparent;
    cursor: pointer;
    outline: none;
    font-weight: 600;
    width: 100%;
}

/* Ціна та кнопки */
.page-template-mk .card-footer {
    text-align: center;
}

.page-template-mk .price-block {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-template-mk .price-block .regular-price-value {
    margin-right: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
}

.page-template-mk .price-block .regular-price-value:not(:empty)::after {
    content: ' UAH';
}

.page-template-mk .card-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.page-template-mk .btn-black, .btn-gold {
    flex: 1;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 25px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    max-width: 165px;
}

.page-template-mk .btn-black {
    background: #000;
    color: #fff;
}

.page-template-mk .btn-gold {
    background: #c2996b;
    color: #fff;
}

.page-template-mk .btn-black:hover { opacity: 0.8; }
.page-template-mk .btn-gold:hover { background: #a67f56; }

.page-template-mk .global-city-select {
    max-width: 100%; /* щоб селект не вилазив за межі екрана на мобільних */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* додасть три крапки, якщо текст занадто довгий */
    border: 1px solid #d1b181;
    padding: 8px;
    border-radius: 4px;
    font-weight: 500;
    background: transparent;
}


.page-template-mk .video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-template-mk .email_block {
    display: none;
}


/* Контейнер-сітка */
.vi-wcaio-sidebar-cart-pd-meta dl.variation {
    display: grid !important;
    grid-template-columns: max-content 1fr; /* Назва підлаштовується під контент, значення займає все інше */
    column-gap: 10px; /* Відступ між назвою та значенням */
    row-gap: 5px;    /* Відступ між рядками */
    margin: 10px 0 !important;
    align-items: baseline;
}

/* Назва атрибута */
.vi-wcaio-sidebar-cart-pd-meta dl.variation dt {
    grid-column: 1; /* Завжди в першій колонці */
    font-weight: bold !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Значення атрибута */
.vi-wcaio-sidebar-cart-pd-meta dl.variation dd {
    grid-column: 2; /* Завжди в другій колонці */
    margin: 0 !important;
    padding: 0 !important;
}

/* Прибираємо блочність параграфів всередині dd */
.vi-wcaio-sidebar-cart-pd-meta dl.variation dd p {
    display: inline !important;
    margin: 0 !important;
}

/* Видаляємо псевдоелементи, які можуть заважати сітці */
.vi-wcaio-sidebar-cart-pd-meta dl.variation::before,
.vi-wcaio-sidebar-cart-pd-meta dl.variation::after,
.vi-wcaio-sidebar-cart-pd-meta dl.variation dd::after {
    display: none !important;
}

.mk-slider-section {
    margin-top: 50px;
}

.page-template-mk .wpcf7 form.sent .wpcf7-response-output {
    border: 0 !important;
    margin-top: 10px !important;
}