/* ============================================================
   ТАРИФЫ — LYNXREACTOR (НА ВСЮ ШИРИНУ)
   ============================================================ */

.tariffs-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 100px 0;
    background: var(--color-primary-dark);
    overflow-x: hidden;
}

.tariffs-container-full {
    max-width: 100%;
    padding: 0 40px;
    margin: 0 auto;
}

.tariffs-header .section-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Переключатель валют */
.currency-switcher {
    display: inline-flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin: 30px auto 50px;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-btn .currency-icon {
    font-size: 11px !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}
.currency-btn .currency-label { font-size: 11px; }
.currency-btn:hover { color: var(--color-text-primary); }
.currency-btn.active {
    background: var(--color-gold);
    color: var(--color-text-dark);
}
.currency-btn.active .currency-icon { color: var(--color-text-dark); }

/* Сетка тарифов — на всю ширину */
.tariffs-grid-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.tariff-card {
    background: var(--color-card-bg);
    border-radius: 16px;
    padding: 32px 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.tariff-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold-rgba);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}
.tariff-card.popular { border-color: var(--color-gold); }
.tariff-card.custom {
    border-color: rgba(200, 154, 91, 0.15);
    background: linear-gradient(145deg, var(--color-card-bg), rgba(200, 154, 91, 0.02));
}

/* Бейджи */
.tariff-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--color-gold);
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 0 0 6px 6px;
}
.tariff-badge.custom-badge {
    background: linear-gradient(135deg, #9A6D35, #C89A5B);
    color: var(--color-text-primary);
}

/* Иконка тарифа */
.tariff-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(200, 154, 91, 0.08);
    margin-bottom: 16px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}
.tariff-card:hover .tariff-icon-wrapper {
    background: rgba(200, 154, 91, 0.15);
    transform: scale(1.05);
}
.tariff-icon-wrapper i {
    font-size: 28px;
    color: var(--color-gold);
    transition: var(--transition-smooth);
}
.tariff-card:hover .tariff-icon-wrapper i { color: var(--color-gold-light); }

/* Заголовок */
.tariff-header { margin-bottom: 20px; }
.tariff-name {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--color-text-primary);
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.tariff-format {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.tariff-format .format-icon {
    width: 14px;
    height: 14px;
    stroke: var(--color-gold);
    flex-shrink: 0;
}

.tariff-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 4px 0 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Цена */
.tariff-price-wrapper {
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tariff-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px;
}

.price-from {
    font-size: 14px;
    color: var(--color-text-secondary);
    opacity: 0.6;
    margin-right: 4px;
}

.price-value {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-gold);
    transition: all 0.3s ease;
    line-height: 1;
}

.price-symbol {
    font-size: 14px !important;
    color: var(--color-text-secondary);
    margin-left: 2px;
    line-height: 1;
}
.price-symbol.nbrb-icon {
    font-size: 14px !important;
    line-height: 1 !important;
}

.price-period {
    font-size: 12px;
    color: var(--color-text-secondary);
    opacity: 0.5;
    margin-left: 4px;
}

.price-custom {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--color-gold);
    display: block;
}
.price-sub {
    font-size: 12px;
    color: var(--color-text-secondary);
    opacity: 0.5;
    display: block;
    margin-top: 2px;
}

/* ============================================================
   ⭐ ОПИСАНИЕ
   ============================================================ */

.tariff-description-wrapper {
    margin-bottom: 16px;
    flex: 1;
}

.tariff-description {
    position: relative;
    overflow: visible !important;
    max-height: none !important;
    transition: none !important;
}

.tariff-description.collapsed {
    max-height: none !important;
}

.tariff-description.expanded {
    max-height: none !important;
}

.tariff-description p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================================
   ОСОБЕННОСТИ
   ============================================================ */

.tariff-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1;
}
.tariff-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.check-icon {
    width: 14px;
    height: 14px;
    stroke: var(--color-gold);
    flex-shrink: 0;
}

.tariff-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.clock-icon {
    width: 14px;
    height: 14px;
    stroke: var(--color-gold);
    flex-shrink: 0;
}

/* Кнопка */
.tariff-cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    padding: 12px 20px;
    font-size: 12px;
}
.tariff-card.popular .tariff-cta,
.tariff-card.custom .tariff-cta {
    background: var(--color-gold);
    color: var(--color-text-dark);
}
.tariff-card.popular .tariff-cta:hover,
.tariff-card.custom .tariff-cta:hover {
    background: var(--color-gold-light);
}

/* Цветовые акценты */
.tariff-card.accent-blue .tariff-icon-wrapper { background: rgba(52, 152, 219, 0.08); }
.tariff-card.accent-blue .tariff-icon-wrapper i { color: #3498db; }
.tariff-card.accent-blue .tariff-format { color: #3498db; }
.tariff-card.accent-blue .price-value { color: #3498db; }
.tariff-card.accent-blue .check-icon { stroke: #3498db; }
.tariff-card.accent-blue .clock-icon { stroke: #3498db; }

.tariff-card.accent-green .tariff-icon-wrapper { background: rgba(46, 204, 113, 0.08); }
.tariff-card.accent-green .tariff-icon-wrapper i { color: #2ecc71; }
.tariff-card.accent-green .tariff-format { color: #2ecc71; }
.tariff-card.accent-green .price-value { color: #2ecc71; }
.tariff-card.accent-green .check-icon { stroke: #2ecc71; }
.tariff-card.accent-green .clock-icon { stroke: #2ecc71; }

.tariff-card.accent-purple .tariff-icon-wrapper { background: rgba(155, 89, 182, 0.08); }
.tariff-card.accent-purple .tariff-icon-wrapper i { color: #9b59b6; }
.tariff-card.accent-purple .tariff-format { color: #9b59b6; }
.tariff-card.accent-purple .price-value { color: #9b59b6; }
.tariff-card.accent-purple .check-icon { stroke: #9b59b6; }
.tariff-card.accent-purple .clock-icon { stroke: #9b59b6; }

.tariff-card.accent-orange .tariff-icon-wrapper { background: rgba(243, 156, 18, 0.08); }
.tariff-card.accent-orange .tariff-icon-wrapper i { color: #f39c12; }
.tariff-card.accent-orange .tariff-format { color: #f39c12; }
.tariff-card.accent-orange .price-value { color: #f39c12; }
.tariff-card.accent-orange .check-icon { stroke: #f39c12; }
.tariff-card.accent-orange .clock-icon { stroke: #f39c12; }

/* Цветовые акценты для кнопок */
.tariff-card.accent-blue .btn-primary { background: #3498db; }
.tariff-card.accent-blue .btn-primary:hover { background: #2980b9; }
.tariff-card.accent-green .btn-primary { background: #2ecc71; }
.tariff-card.accent-green .btn-primary:hover { background: #27ae60; }
.tariff-card.accent-purple .btn-primary { background: #9b59b6; }
.tariff-card.accent-purple .btn-primary:hover { background: #8e44ad; }
.tariff-card.accent-orange .btn-primary { background: #f39c12; }
.tariff-card.accent-orange .btn-primary:hover { background: #d68910; }

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

/* -------- 1920x1200 -------- */
@media (min-width: 1400px) and (max-width: 1920px) {
    .tariffs-grid-full {
        gap: 16px;
        padding: 0 10px;
    }
    .tariffs-container-full {
        padding: 0 30px;
    }
    .tariff-card {
        padding: 24px 18px 20px;
        border-radius: 14px;
    }
    .price-value {
        font-size: 30px;
    }
    .tariff-name {
        font-size: 20px;
    }
    .tariff-features li {
        font-size: 12px;
        padding: 3px 0;
    }
    .tariff-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    .tariff-icon-wrapper i {
        font-size: 24px;
    }
    .tariff-format {
        font-size: 9px;
        padding: 3px 10px;
    }
    .tariff-subtitle {
        font-size: 13px;
    }
    .tariff-description p {
        font-size: 12px;
    }
    .tariff-cta {
        font-size: 11px;
        padding: 10px 16px;
    }
}

/* -------- 1200-1400px -------- */
@media (min-width: 1200px) and (max-width: 1400px) {
    .tariffs-grid-full {
        gap: 14px;
    }
    .tariffs-container-full {
        padding: 0 20px;
    }
    .tariff-card {
        padding: 20px 14px 16px;
        border-radius: 12px;
    }
    .price-value {
        font-size: 26px;
    }
    .tariff-name {
        font-size: 18px;
    }
    .tariff-features li {
        font-size: 11px;
        padding: 3px 0;
    }
    .tariff-icon-wrapper {
        width: 42px;
        height: 42px;
    }
    .tariff-icon-wrapper i {
        font-size: 20px;
    }
    .tariff-format {
        font-size: 8px;
        padding: 2px 8px;
    }
    .tariff-subtitle {
        font-size: 12px;
    }
    .tariff-description p {
        font-size: 11px;
    }
    .tariff-cta {
        font-size: 10px;
        padding: 8px 14px;
    }
}

@media (max-width: 1400px) {
    .tariffs-grid-full {
        gap: 20px;
    }
    .tariffs-container-full {
        padding: 0 30px;
    }
}

@media (max-width: 1200px) {
    .tariffs-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .tariffs-section {
        padding: 70px 0;
    }
    .tariffs-grid-full {
        gap: 16px;
    }
    .tariff-card {
        padding: 28px 20px 24px;
    }
    .price-value {
        font-size: 32px;
    }
    .tariffs-container-full {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .tariffs-section {
        padding: 50px 0;
    }
    .tariffs-grid-full {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
        gap: 16px;
    }
    .currency-switcher {
        flex-wrap: wrap;
        justify-content: center;
    }
    .currency-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    .currency-btn .currency-icon {
        font-size: 11px !important;
        width: 14px;
        height: 14px;
    }
    .tariff-card {
        padding: 24px 18px 20px;
        border-radius: 14px;
    }
    .tariff-name {
        font-size: 20px;
    }
    .price-value {
        font-size: 30px;
    }
    .price-custom {
        font-size: 22px;
    }
    .tariff-badge {
        right: 16px;
        font-size: 9px;
        padding: 4px 14px;
    }
    .tariff-icon-wrapper {
        width: 44px;
        height: 44px;
    }
    .tariff-icon-wrapper i {
        font-size: 22px;
    }
    .tariff-description p {
        font-size: 12px;
    }
    .tariff-features li {
        font-size: 12px;
        padding: 4px 0;
    }
    .tariff-features .check-icon {
        width: 12px;
        height: 12px;
    }
    .clock-icon {
        width: 12px;
        height: 12px;
    }
    .tariffs-container-full {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .tariffs-grid-full {
        max-width: 100%;
    }
    .currency-btn {
        padding: 4px 10px;
        font-size: 10px;
    }
    .currency-btn .currency-icon {
        font-size: 10px !important;
        width: 12px;
        height: 12px;
    }
    .price-value {
        font-size: 26px;
    }
    .price-from {
        font-size: 12px;
    }
    .tariff-features li {
        font-size: 11px;
        padding: 3px 0;
    }
    .tariff-features .check-icon {
        width: 11px;
        height: 11px;
    }
    .tariff-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    .tariff-icon-wrapper i {
        font-size: 20px;
    }
    .tariff-format {
        font-size: 9px;
        padding: 3px 10px;
    }
    .tariff-subtitle {
        font-size: 12px;
    }
    .tariff-description p {
        font-size: 12px;
    }
    .tariffs-container-full {
        padding: 0 12px;
    }
}

@media (max-width: 360px) {
    .tariffs-grid-full {
        padding: 0 4px;
    }
    .tariff-card {
        padding: 16px 12px 14px;
        border-radius: 12px !important;
    }
    .price-value {
        font-size: 22px;
    }
    .tariff-name {
        font-size: 17px !important;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .tariffs-grid-full {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .tariff-card {
        padding: 16px 12px;
    }
    .price-value {
        font-size: 20px;
    }
    .tariff-name {
        font-size: 16px;
    }
    .tariff-features li {
        font-size: 10px;
        padding: 2px 0;
    }
    .tariff-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    .tariff-icon-wrapper i {
        font-size: 16px;
    }
    .tariff-format {
        font-size: 8px;
        padding: 2px 8px;
    }
    .tariff-subtitle {
        font-size: 10px;
    }
    .tariff-description p {
        font-size: 10px;
    }
    .tariff-time {
        font-size: 10px;
    }
    .tariffs-container-full {
        padding: 0 16px;
    }
}

/* ============================================================
   АДАПТАЦИЯ ТАРИФОВ ДЛЯ АНГЛИЙСКОГО
   ============================================================ */

html[lang="en"] .tariff-card {
    padding: 24px 16px 20px;
}

html[lang="en"] .tariff-name {
    font-size: 18px;
}

html[lang="en"] .tariff-features li {
    font-size: 12px;
    padding: 3px 0;
}

html[lang="en"] .tariff-description p {
    font-size: 12px;
    line-height: 1.5;
}

html[lang="en"] .tariff-subtitle {
    font-size: 12px;
}

html[lang="en"] .price-value {
    font-size: 30px;
}

@media (max-width: 768px) {
    html[lang="en"] .tariff-card {
        padding: 18px 12px 16px;
    }

    html[lang="en"] .tariff-name {
        font-size: 16px;
    }

    html[lang="en"] .tariff-features li {
        font-size: 11px;
    }

    html[lang="en"] .price-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    html[lang="en"] .tariff-name {
        font-size: 14px;
    }

    html[lang="en"] .tariff-features li {
        font-size: 10px;
    }
}