body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.thank_title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
}

.thank_you_text {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
}

.check_details {
    text-align: center;
    font-size: 1.2rem;
    color: #34495e;
    font-weight: 500;
    margin-top: 10px;
}

.check_details span {
    font-weight: bold;
}

.back-btn {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 30px;
    background-color: #27ae60;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #219150;
}

.offer_time {
    text-align: center;
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 30px 0;
}

.offer_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.offer_item {
    background-color: #fff;
    width: calc(30% - 20px);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
    position: relative;
}

.offer_item:hover {
    transform: translateY(-10px);
}

.item_img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.discount-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
}

.item_title {
    font-size: 1.3rem;
    color: #34495e;
    margin: 15px 0;
    font-weight: bold;
    text-align: center;
}

.item_price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.item_old_price {
    font-size: 1.1rem;
    color: #e74c3c;
    text-decoration: line-through;
}

.item_new_price {
    font-size: 1.4rem;
    color: #27ae60;
    font-weight: bold;
}

.discount-btn {
    padding: 12px;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    width: 100%;
    margin-top: 20px;
}

.discount-btn:hover {
    background-color: #1f6391;
}

/* Спойлер */
.spoiler-content {
    display: none;
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.spoiler-btn {
    background-color: #34495e;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.spoiler-btn:hover {
    background-color: #2c3e50;
}

/* Логотип студии */
.studio-logo {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.studio-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%; /* Процентное значение для мобильных устройств */
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.modal-content p {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 1rem;
}

.close-btn, .view-offer-btn {
    padding: 10px 20px;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px;
    text-transform: uppercase;
    font-size: 1rem;
}

.close-btn:hover, .view-offer-btn:hover {
    background-color: #1f6391;
}

.view-offer-btn {
    background-color: #27ae60;
}

.view-offer-btn:hover {
    background-color: #219150;
}


@media screen and (max-width: 1024px) {
    .offer_item {
        width: calc(45% - 20px);
    }
}



.price__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    background-color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.price__old {
    color: #e74c3c;
    font-size: 18px;
    text-decoration: line-through;
    text-align: center;
}

.price__discount {
    background-color: #f1c40f;
    /* color: #fff; */
    color: #493f3f;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px; 

}

.price__new {
    color: #27ae60;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}
@media screen and (max-width: 768px) {

    .offer_item {
        width: 100%;
    }

    .studio-logo {
        width: 33px;
        height: 33px;
     
        position: relative;
        bottom: 40px;
        left: 90%;
    }
    
    .modal-content {
        width: 95%; /* На мобильных уменьшаем ширину */
        max-width: 90%; /* Максимальная ширина для мобильных */
    }

    .modal-content h2 {
        font-size: 1.2rem; /* Уменьшаем размер заголовка на мобильных */
    }

    .modal-content p {
        font-size: 0.9rem; /* Уменьшаем размер текста на мобильных */
    }

    .close-btn, .view-offer-btn {
        padding: 8px 16px; /* Уменьшаем отступы на мобильных */
        font-size: 0.9rem; /* Уменьшаем шрифт на мобильных */
    }
}