/* ========== СТРАНИЦА АКЦИЙ ========== */

/* Заголовок страницы */
.offers-header {
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
}

.offers-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #894c10;
}

.offers-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
    color: #894c10;
}

/* Секция акций */
.offers-section {
    padding: 60px 20px;
    background-color: #FFF8F0;
    transition: background-color 0.3s ease;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* КАРТОЧКИ - КОМПАКТНЫЕ И СТАТИЧНЫЕ */
.offer-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(93, 58, 26, 0.12);
}

/* Цветная полоска сверху */
.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5d3a1a, #b87c4a, #e6c8a8);
    z-index: 2;
}

/* Контент карточки */
.offer-content {
    padding: 24px 22px 28px;
    position: relative;
}

/* Иконка фоновая */
.offer-icon {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 38px;
    opacity: 0.1;
    z-index: 0;
    transition: opacity 0.3s;
}

.offer-card:hover .offer-icon {
    opacity: 0.15;
}

/* Лейбл */
.offer-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #f5ebe1;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    color: #b87c4a;
    position: relative;
    z-index: 1;
}

/* Значение скидки */
.offer-value {
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1;
    color: #5d3a1a;
    position: relative;
    z-index: 1;
}

.offer-value::after {
    content: '%';
    font-size: 20px;
    font-weight: 500;
    color: #b87c4a;
    margin-left: 2px;
}

/* Краткое описание */
.offer-description {
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 16px 0;
    color: #8a6e58;
    position: relative;
    z-index: 1;
}

/* Полное описание - скрыто */
.offer-full-description {
    display: none;
}

/* Блок с датой */
.offer-valid {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin: 14px 0;
    padding: 8px 0;
    border-top: 1px solid #eee5dc;
    border-bottom: 1px solid #eee5dc;
    color: #9b7a5a;
    position: relative;
    z-index: 1;
}

.offer-valid i {
    font-size: 12px;
    color: #b87c4a;
}

/* Кнопки */
.offer-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.btn {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #b87c4a;
    color: white;
    flex: 1;
    justify-content: center;
}

.btn-primary:hover {
    background: #9e6538;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 124, 74, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #e6d5c0;
    color: #6b4f34;
    flex: 1;
    justify-content: center;
}

.btn-outline:hover {
    background: #f5ebe1;
    border-color: #b87c4a;
    transform: translateY(-2px);
}

/* Нет акций */
.no-offers {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
    max-width: 500px;
    margin: 0 auto;
    transition: background-color 0.3s ease;
}

.no-offers i {
    font-size: 64px;
    color: #b87c4a;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-offers p {
    font-size: 18px;
    color: #6b4f34;
    margin-bottom: 10px;
}

.no-offers .suggestion {
    font-size: 14px;
    color: #9b7a5a;
    margin-bottom: 30px;
}

/* Преимущества */
.benefits-section {
    padding: 60px 20px;
    background-color: #FFF5EC;
    transition: background-color 0.3s ease;
}

.benefits-title {
    font-size: 36px;
    font-weight: 700;
    color: #5d3a1a;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    transition: color 0.3s ease;
}

.benefits-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #b87c4a, #e6d5c0);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: #FFF5EC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: background-color 0.3s ease;
}

.benefit-icon i {
    font-size: 32px;
    color: #b87c4a;
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #5d3a1a;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.benefit-card p {
    font-size: 14px;
    color: #6b4f34;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

/* FAQ */
.faq-section {
    padding: 60px 20px;
    background-color: #FFF8F0;
    transition: background-color 0.3s ease;
}

.faq-title {
    font-size: 36px;
    font-weight: 700;
    color: #5d3a1a;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    transition: color 0.3s ease;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #b87c4a, #e6d5c0);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 25px;
    cursor: pointer;
    background: white;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #FFF5EC;
}

.faq-question i:first-child {
    color: #b87c4a;
    font-size: 20px;
}

.faq-question span {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #5d3a1a;
    transition: color 0.3s ease;
}

.faq-toggle {
    color: #9b7a5a;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 10px 25px 18px 25px;
    border-top-color: #e6d5c0;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b4f34;
    margin: 0;
    transition: color 0.3s ease;
}

/* Подписка */
.subscribe-section {
    padding: 60px 20px 80px;
    background-color: #FFF5EC;
    transition: background-color 0.3s ease;
}

.subscribe-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #5d3a1a 0%, #8b5a2b 100%);
    padding: 50px 40px;
    border-radius: 30px;
    color: white;
}

.subscribe-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.subscribe-card p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 30px 0;
}

.subscribe-wrapper {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 60px;
    padding: 5px;
}

.subscribe-input {
    flex: 1;
    height: 55px;
    padding: 0 25px;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    color: #5d3a1a;
    background: transparent;
    outline: none;
}

.subscribe-input::placeholder {
    color: #9b7a5a;
}

.subscribe-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 55px;
    padding: 0 30px;
    background: #b87c4a;
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.subscribe-btn:hover {
    background: #5d3a1a;
    transform: translateX(3px);
}

/* ========== МОДАЛЬНОЕ ОКНО - ЖИВОЙ, ПРОСТОЙ СТИЛЬ ========== */

.offer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.offer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.offer-modal-content {
    position: relative;
    background: #fffef7;
    border-radius: 28px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalAppear 0.25s ease;
    overflow: hidden;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Шапка — минималистичная */
.offer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #5d3a1a;
    color: white;
}

.offer-modal-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-modal-header-left i {
    font-size: 18px;
    opacity: 0.8;
}

.offer-modal-header-left h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.offer-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.offer-modal-close:hover {
    color: white;
}

/* Тело */
.offer-modal-body {
    padding: 28px 24px 20px;
}

/* Цифра скидки — просто и крупно */
.modal-discount-badge {
    display: inline-block;
    background: #e85d4a;
    padding: 6px 18px;
    border-radius: 40px;
    margin-bottom: 20px;
}

.modal-discount-value {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.modal-discount-percent {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.modal-discount-text {
    display: none;
}

/* Название акции */
.offer-modal-body h4 {
    font-size: 24px;
    font-weight: 700;
    color: #5d3a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Описание — простой текст */
.offer-modal-description {
    font-size: 14px;
    line-height: 1.5;
    color: #5e3e25;
    margin: 0 0 20px 0;
}

/* Блок "что вы получите" — без фонов, просто пункты */
.modal-benefit {
    margin: 20px 0;
    padding: 0;
    border: none;
    background: none;
}

.modal-benefit p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #5d3a1a;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.modal-benefit p:last-child {
    margin-bottom: 0;
}

.modal-benefit i {
    margin-top: 2px;
    color: #e85d4a;
    font-size: 12px;
}

/* Таймер — простая рамка */
.modal-timer {
    background: #faf0e8;
    border-radius: 16px;
    padding: 12px 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.modal-timer i {
    font-size: 16px;
    color: #e85d4a;
}

.modal-timer-text {
    font-size: 13px;
    color: #8b5a2b;
}

.modal-timer-value {
    font-weight: 700;
    font-size: 14px;
    color: #e85d4a;
    background: white;
    padding: 3px 10px;
    border-radius: 30px;
}

/* Срок действия — незаметный */
.offer-modal-valid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #a08262;
    padding: 8px 0;
    background: none;
    margin: 10px 0 0;
}

.offer-modal-valid i {
    font-size: 11px;
}

/* Кнопки — простые */
.offer-modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 28px 24px;
}

.modal-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.modal-btn-primary {
    background: #e85d4a;
    color: white;
}

.modal-btn-primary:hover {
    background: #d14a38;
}

.modal-btn-secondary {
    background: #f0e8e0;
    color: #6b4f34;
    border: none;
}

.modal-btn-secondary:hover {
    background: #e5d8cc;
}

/* Адаптив */
@media screen and (max-width: 550px) {
    .offer-modal-body {
        padding: 22px 18px 16px;
    }

    .modal-discount-value {
        font-size: 32px;
    }

    .offer-modal-body h4 {
        font-size: 20px;
    }

    .offer-modal-footer {
        flex-direction: column;
        gap: 10px;
        padding: 0 18px 22px 18px;
    }
}
/* ========== ТЕМНАЯ ТЕМА ========== */
body.dark-theme .offers-section {
    background-color: #1a120e;
}

body.dark-theme .benefits-section {
    background-color: #0d0a08;
}

body.dark-theme .faq-section {
    background-color: #1a120e;
}

body.dark-theme .subscribe-section {
    background-color: #0d0a08;
}

body.dark-theme .offer-card {
    background: #2c1a12;
}

body.dark-theme .offer-card::before {
    background: linear-gradient(90deg, #8b5a2b, #b87c4a, #d4a373);
}

body.dark-theme .offer-label {
    background: #3d261a;
    color: #d4a373;
}

body.dark-theme .offer-value {
    color: #e8dcd0;
}

body.dark-theme .offer-value::after {
    color: #d4a373;
}

body.dark-theme .offer-description {
    color: #c4b8aa;
}

body.dark-theme .offer-valid {
    border-top-color: #3d261a;
    border-bottom-color: #3d261a;
    color: #c4b8aa;
}

body.dark-theme .offer-valid i {
    color: #d4a373;
}

body.dark-theme .btn-primary {
    background: #b87c4a;
}

body.dark-theme .btn-primary:hover {
    background: #9e6538;
}

body.dark-theme .btn-outline {
    border-color: #5a3a2a;
    color: #c4b8aa;
}

body.dark-theme .btn-outline:hover {
    background: #3d261a;
    border-color: #b87c4a;
}

body.dark-theme .no-offers {
    background: #2c1a12;
}

body.dark-theme .no-offers p {
    color: #e8dcd0;
}

body.dark-theme .no-offers .suggestion {
    color: #a08e7a;
}

body.dark-theme .benefits-title {
    color: #e8dcd0;
}

body.dark-theme .benefit-card {
    background: #2c1a12;
}

body.dark-theme .benefit-card h3 {
    color: #e8dcd0;
}

body.dark-theme .benefit-card p {
    color: #c4b8aa;
}

body.dark-theme .benefit-icon {
    background: #1a120e;
}

body.dark-theme .faq-title {
    color: #e8dcd0;
}

body.dark-theme .faq-item {
    background: #2c1a12;
}

body.dark-theme .faq-question {
    background: #2c1a12;
}

body.dark-theme .faq-question:hover {
    background: #3d261a;
}

body.dark-theme .faq-question span {
    color: #e8dcd0;
}

body.dark-theme .faq-answer p {
    color: #c4b8aa;
}

body.dark-theme .faq-item.active .faq-answer {
    border-top-color: #4a2e20;
}

body.dark-theme .subscribe-card {
    background: linear-gradient(135deg, #2c1a12 0%, #1a120e 100%);
}

body.dark-theme .subscribe-input {
    background: #1a120e;
    color: #e8dcd0;
}

body.dark-theme .subscribe-input::placeholder {
    color: #8a6e58;
}

body.dark-theme .offer-modal-content {
    background: #2c1a12;
}

body.dark-theme .offer-modal-body h4 {
    color: #e8dcd0;
}

body.dark-theme .offer-modal-description {
    color: #c4b8aa;
}

body.dark-theme .modal-benefit {
    background: #1a120e;
    border-color: #3d261a;
}

body.dark-theme .modal-benefit p {
    color: #e8dcd0;
}

body.dark-theme .modal-timer {
    background: #1a120e;
    border-color: #3d261a;
}

body.dark-theme .modal-timer-text {
    color: #c4b8aa;
}

body.dark-theme .modal-timer-value {
    background: #2c1a12;
    color: #e85d4a;
}

body.dark-theme .offer-modal-valid {
    background: #1a120e;
    color: #d4a373;
}

body.dark-theme .modal-btn-secondary {
    border-color: #5a3a2a;
    color: #c4b8aa;
}

body.dark-theme .modal-btn-secondary:hover {
    background: #3d261a;
    border-color: #b87c4a;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media screen and (max-width: 992px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .offers-title {
        font-size: 36px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .offer-content {
        padding: 20px 18px 24px;
    }

    .offer-value {
        font-size: 32px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .offer-actions {
        flex-direction: column;
        gap: 8px;
    }

    .subscribe-wrapper {
        flex-direction: column;
        background: transparent;
        padding: 0;
    }

    .subscribe-input {
        background: white;
    }

    .subscribe-btn {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 550px) {
    .offer-modal-body {
        padding: 22px 18px 16px;
    }

    .modal-discount-value {
        font-size: 34px;
    }

    .offer-modal-body h4 {
        font-size: 20px;
    }

    .offer-modal-footer {
        flex-direction: column;
        padding: 0 18px 22px 18px;
    }
}

@media screen and (max-width: 480px) {
    .offers-header {
        padding: 60px 20px 40px;
    }

    .offers-title {
        font-size: 28px;
    }

    .offers-subtitle {
        font-size: 16px;
    }

    .offers-section {
        padding: 40px 15px;
    }

    .offer-content {
        padding: 18px 16px 22px;
    }

    .offer-value {
        font-size: 28px;
    }

    .benefits-title,
    .faq-title {
        font-size: 28px;
    }

    .subscribe-card {
        padding: 30px 20px;
    }

    .subscribe-card h3 {
        font-size: 24px;
    }

    .btn {
        padding: 10px 16px;
    }
}