.promocodes {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.promocodes__header {
    margin-bottom: 40px;
}

.promocodes__title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.promocodes__description {
    color: #666;
    line-height: 1.6;
}

.promocodes__update-date {
    color: #999;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.promocodes__update-date-value {
    color: #4CAF50;
    font-weight: 500;
}

.promocodes__views {
    font-size: 12px;
    color: #999;
}

.promocodes__views i {
    margin-right: 4px;
    font-size: 14px;
}

/* Карточки промокодов */
.promo-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.promo-card--featured {
    border: 2px solid #FF5722;
}

.promo-card__amount {
    font-size: 28px;
    font-weight: bold;
    color: #FF5722;
    margin-bottom: 10px;
}

.promo-card__type {
    text-transform: uppercase;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.promo-card__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.promo-card__condition {
    color: #666;
    font-size: 14px;
    margin: 15px 0 20px;
    line-height: 1.5;
}

.promo-card__audience {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.promo-card__steps h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.promo-card__steps-list {
    padding-left: 20px;
    margin: 0;
}

.promo-card__steps-list li {
    margin-bottom: 8px;
    color: #444;
    line-height: 1.4;
}

.promo-card__steps-list li:last-child {
    margin-bottom: 0;
}

.promo-card__button {
    background: #FF5722;
    color: white;
    border: none;
    padding: 15px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    transition: background 0.2s;
    display: block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.promo-card__button:hover {
    background: #f4511e;
}

.promo-card__expiry {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
}

.promo-card__code {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    color: #FF5722;
    cursor: pointer;
    transition: background 0.2s;
}

.promo-card__code:hover {
    background: #eeeeee;
}

.promo-card__code-text {
    margin-right: 8px;
}

.promo-card__code-icon {
    color: #999;
    font-size: 14px;
}

.promo-card__code.copied {
    background: #e8f5e9;
}

.promo-card__code.copied .promo-card__code-icon {
    color: #4CAF50;
}

.promo-card__code-hidden {
    color: transparent;
    text-shadow: 0 0 8px rgba(255, 87, 34, 0.5);
}

.promo-card__code-visible {
    color: #FF5722;
}

.promo-card__steps-list a {
    color: #FF5722;
    text-decoration: none;
    border-bottom: 1px dashed #FF5722;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding-right: 16px;
    position: relative;
}

.promo-card__steps-list a::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23FF5722' d='M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.promo-card__steps-list a:hover {
    color: #ff7043;
    border-bottom-color: transparent;
}

/* Модальное окно c промокодом*/
.promo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.promo-modal__content {
    position: relative;
    background: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.promo-modal__close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.promo-modal__header {
    text-align: center;
    margin-bottom: 20px;
}

.promo-modal__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.promo-modal__code-block {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.promo-modal__code-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #f5f5f5;
}

.promo-modal__copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.promo-modal__copy-btn.copied {
    color: #4CAF50;
}

.promo-modal__info {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.promo-modal__action-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #ffffff;
    color: #FF5722;
    text-align: center;
    border: 2px solid #FF5722;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-modal__action-btn:hover {
    background: #FF5722;
    color: white;
    border-color: #FF5722;
}

/* Адаптивность */
@media (max-width: 768px) {
    .promocodes__logo-row {
        flex-direction: column;
        gap: 20px;
    }

    .promocodes__title {
        font-size: 24px;
    }

    .promo-card__amount {
        font-size: 24px;
    }

    .promo-modal__copy-btn span {
        display: none;
    }

    .promo-modal__copy-btn {
        padding: 10px;
    }
}

.promocodes__text {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.promocodes__text h2 {
    color: #333333;
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF5722;
}

.promocodes__text h2:first-child {
    margin-top: 0;
}

.promocodes__text h3 {
    color: #444444;
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px;
}

.promocodes__text p {
    color: #333333;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.promocodes__text a {
    color: #FF5722;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 87, 34, 0.3);
    transition: all 0.2s ease;
}

.promocodes__text a:hover {
    color: #f4511e;
    border-bottom-color: transparent;
}

.promocodes__text ol {
    padding-left: 20px;
    margin: 15px 0;
}

.promocodes__text ol li {
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.6;
}

.promocodes__text strong {
    color: #222222;
    font-weight: 600;
}

.promocodes__text i {
    color: #666666;
    font-style: italic;
}

.img-responsive,
.b-lazy,
.b-loaded {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .promocodes__text {
        padding: 15px;
    }
    
    .promocodes__text h2 {
        font-size: 22px;
    }
    
    .promocodes__text h3 {
        font-size: 18px;
    }
    
    .promocodes__text p {
        font-size: 15px;
    }

    .promocodes {
        padding: 10px;
    }
    .main-content__body {
        padding: 0 1px;
    }
    .img-responsive,
    .b-lazy,
    .b-loaded {
        margin: 15px 0;
    }
}

.promocodes__faq {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.promocodes__faq h2 {
    color: #333333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF5722;
}

.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-item h3 {
    color: #444444;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    user-select: none;
}

.faq-item h3::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #666;
    border-right: 2px solid #666;
    transform: translateY(-70%) rotate(135deg);
    transition: transform 0.3s ease;
}

.faq-item.active h3::after {
    transform: translateY(-30%) rotate(-45deg);
}

.faq-item h3:hover::after {
    border-color: #FF5722;
}

.faq-item__content {
    display: none;
    padding-top: 10px;
}

.faq-item.active .faq-item__content {
    display: block;
}

.faq-item p {
    color: #333333;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.faq-item ol {
    padding-left: 20px;
    margin: 15px 0;
}

.faq-item ol li {
    color: #333333;
    margin-bottom: 8px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .promocodes__faq {
        padding: 15px;
        margin-top: 20px;
    }
    
    .promocodes__faq h2 {
        font-size: 22px;
    }
    
    .faq-item h3 {
        font-size: 16px;
    }
    
    .faq-item p {
        font-size: 15px;
    }
}

/* Стили для таблицы промокодов */
.promocodes__table-wrapper {
    margin: 20px 0 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.promocodes__table {
    width: 100%;
    border-collapse: collapse;
}

.promocodes__table th,
.promocodes__table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.promocodes__table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.promocodes__table td {
    color: #444;
    font-size: 15px;
}

.promocodes__table tbody tr:hover {
    background-color: #f8f9fa;
}

.promocodes__table tbody tr:last-child td {
    border-bottom: none;
}

.status-active {
    color: #4CAF50;
    font-weight: 500;
}

@media (max-width: 768px) {
    .promocodes__table {
        min-width: auto;
    }
    
    .promocodes__table th,
    .promocodes__table td {
        padding: 8px;
        font-size: 14px;
    }
    
    .promocodes__table th:nth-child(2),
    .promocodes__table td:nth-child(2) {
        width: 80px; /* Фиксированная ширина для колонки "Тип" */
    }
    
    .promocodes__table th:nth-child(3),
    .promocodes__table td:nth-child(3) {
        width: 90px; /* Фиксированная ширина для колонки "Статус" */
    }
    
    .promocodes__table td:first-child {
        /* Стили для первой ячейки, где находится длинный текст */
        word-wrap: break-word;
        min-width: 120px;
    }
    
    .promocodes__table-wrapper {
        margin: 15px 0;
        border-radius: 8px;
    }
}