/* Стили для страницы учебных абонементов - обновлено 29.08.2025 12:40:00 */

/* Базовые стили страницы */
.subscriptions-page {
    background: var(--color-bg-pages);
}

/* === ГЛАВНЫЙ БАННЕР === */
.hero-banners {
    padding: 2rem 0 0 0;
    background: var(--color-bg-pages);
}

.banners-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.6rem;
    align-items: stretch;
}

/* Когда используется single-banner, баннер занимает всю ширину */
.banners-wrapper.single-banner {
    grid-template-columns: 1fr;
}

.banners-wrapper.single-banner .banner-left {
    grid-column: 1 / -1;
}

/* === ОСНОВНОЙ БАННЕР === */
.banner-left {
    background: url('../img/webp/About_us_Background_hero.webp') center/cover;
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    align-items: center;
    min-height: 400px;
    position: relative;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: var(--color-text-main);
}

.banner-content h1 {
    margin-bottom: 4px;
    color: var(--color-white);
}

.banner-content h4 {
    color: var(--color-white);
    opacity: 0.9;
}

.banner-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--color-white);
}

/* === БЛОК С ПЛАШКАМИ ИНФОРМАЦИИ === */
.info-cards-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    margin-top: 2rem;
}

/* === ПЛАШКА СО СТАТИСТИКОЙ === */
.stats-card {
    background: url('../img/webp/subscriptions_mainbanner.webp') center/cover;
    border-radius: 20px;
    height: 420px;
    position: relative;
    grid-row: 1 / 3;
}

.stats-wrapper {
    display: flex;
    gap: 1.5rem;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.stat-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 25px;
    min-width: 300px;
    max-width: 350px;
}

.stat-item h1 {
    color: var(--color-text-main);
}

.stat-item .text-p2 {
    color: var(--color-text-secondary);
}
.stat-label {
    opacity: 0.8;
    color: var(--color-text-plashka);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-text-main);
}

/* === ИНФОРМАЦИОННЫЕ ПЛАШКИ === */
.info-card {
    border-radius: 20px;
    padding: 1.25rem;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.info-card-subscription {
    background: var(--color-white);
    height: 100%;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.info-card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.info-card h1 {
    margin-bottom: 1.25rem;
    color: var(--color-text-primary);
}

.info-card .text-p2 {
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.info-card-subscription .info-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.info-card-subscription .btn {
    margin-top: auto;
    align-self: flex-start;
}

.info-card-subscription .btn:hover {
    background: var(--color-success);
}

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

/* Критическая точка для предотвращения наложений */
@media screen and (max-width: 1280px) {
    .info-cards-wrapper {
        gap: 0.75rem;
    }
    
    .stats-wrapper {
        gap: 1rem;
        bottom: 15px;
        left: 15px;
    }
    
    .stat-item {
        min-width: 240px;
        max-width: 280px;
        padding: 1rem;
    }
    
    .info-card {
        padding: 1rem;
    }
}

/* Улучшенная адаптация для средних экранов */
@media screen and (max-width: 1200px) {
    .hero-banners {
        padding: clamp(1.5rem, 2.5vw, 2rem) 0;
    }
    
    .banner-left {
        padding: clamp(2rem, 3.5vw, 3rem);
        min-height: clamp(350px, 35vh, 420px);
    }
    
    .info-cards-wrapper {
        gap: clamp(0.75rem, 1.5vw, 1rem);
        margin-top: clamp(1.5rem, 2.5vw, 2rem);
    }
    
    .stats-wrapper {
        gap: clamp(1rem, 2vw, 1.5rem);
        bottom: clamp(15px, 2vw, 20px);
        left: clamp(15px, 2vw, 20px);
    }
    
    .info-card {
        padding: clamp(1rem, 2vw, 1.5rem);
    }
}

/* Планшеты */
@media screen and (max-width: 1024px) {
    .hero-banners {
        padding: 1.5rem 0;
    }
    
    .banner-left {
        padding: 2.5rem;
        min-height: 350px;
    }
    
    .info-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-card {
        height: 350px;
        border-radius: 20px;
        grid-row: auto;
    }
    
    .info-card-subscription {
        height: auto;
        grid-row: auto;
    }
    
    .stats-wrapper {
        bottom: 15px;
        left: 15px;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.25rem;
    }
    
    .stat-item {
        min-width: 250px;
        max-width: 300px;
        padding: 1.25rem;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .hero-banners {
        padding: 1rem 0;
    }
    
    .banner-left {
        padding: 2rem;
        min-height: 300px;
        border-radius: 20px;
    }
    
    .info-cards-wrapper {
        margin-top: 1.5rem;
    }
    
    .stats-card {
        height: 300px;
        border-radius: 20px;
    }
    
    .stats-wrapper {
        flex-direction: row;
        gap: 0.75rem;
        bottom: 15px;
        left: 15px;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .stat-item {
        min-width: auto;
        max-width: none;
        padding: 1rem;
        border-radius: 20px;
    }
    
    .banner-content h1 {
        margin-bottom: 0.75rem;
    }
    
    .banner-content p {
        margin-bottom: 1.5rem;
    }
}

/* Планшеты (769–1024px): увеличить фон на 0.01% по ширине */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .faq-header {
        background-size: 100.02% auto;
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 480px) {
    .banner-left {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .stats-card {
        border-radius: 20px;
    }
    
    .stats-wrapper {
        bottom: 12px;
        left: 12px;
        flex-direction: column;
    }
    
    .info-card {
        padding: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
        border-radius: 15px;
    }
}

/* === БЛОК ВЫГОД ОТ ДОЛГОСРОЧНОГО ПАРТНЕРСТВА === */
.benefits-section {
    padding: 80px 0 0 0;
    background: var(--color-bg-pages);
}

.benefits-title {
    margin-left: 28px;
    margin-bottom: 26px;
    color: var(--color-text-primary);
}

.benefits-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.benefit-card {
    background: var(--color-white);
    border-radius: 30px;
    padding: 1.5rem;
    min-height: 280px;
    display: flex;
    align-items: flex-start;
    position: relative;
    transition: all 0.3s ease;
}

.benefit-content {
    width: 100%;
}

.benefit-card h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.benefit-card .text-p3 {
    color: var(--color-text-secondary);
    margin: 0;
}

/* === ФОНОВЫЕ ИЗОБРАЖЕНИЯ ДЛЯ КАРТОЧЕК ВЫГОД === */
.benefit-card-1 {
    background: url('../img/webp/subscriptions_benefits_1.webp') center/cover, var(--color-white);
}

.benefit-card-2 {
    background: url('../img/webp/subscriptions_benefits_2.webp') center/cover, var(--color-white);
}

.benefit-card-3 {
    background: url('../img/webp/subscriptions_benefits_3.webp') center/cover, var(--color-white);
}

.benefit-card-4 {
    background: url('../img/webp/subscriptions_benefits_4.webp') center/cover, var(--color-white);
}

.benefit-card-5 {
    background: url('../img/webp/subscriptions_benefits_5.webp') center/cover, var(--color-white);
}

.benefit-card-6 {
    background: url('../img/webp/subscriptions_benefits_6.webp') center/cover, var(--color-white);
}

/* === АДАПТИВНОСТЬ БЛОКА ВЫГОД === */

/* Планшеты */
@media screen and (max-width: 1024px) {
    .benefits-section {
        padding: 80px 0 0 0;
    }
    
    .benefits-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1.25rem;
        min-height: 160px;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .benefits-section {
        padding: 60px 0 0 0;
    }
    
    .benefits-title {
        margin-left: 20px;
        margin-bottom: 2rem;
    }
    
    .benefits-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1rem;
        min-height: auto;
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 480px) {
    .benefits-section {
        padding: 48px 0 0 0;
    }
    
    .benefit-card {
        padding: 0.875rem;
    }
}

/* === БЛОК КАК НАЧАТЬ ПОЛЬЗОВАТЬСЯ АБОНЕМЕНТОМ === */
.how-to-start-section {
    padding: 80px 0 0 0;
    background: var(--color-bg-pages);
}

.how-to-start-title {
    margin-left: 28px;
    margin-bottom: 26px;
    color: var(--color-text-primary);
}

.steps-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 30px;
    padding-top: 50px;
    padding-bottom: 0;
}

.step-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: auto;
    transition: none;
}

.step-card:hover {
    transform: none;
    box-shadow: none;
}

.step-card-1 {
    gap: 10px;
}

.step-number {
    background: transparent;
    color: var(--color-success);
    opacity: 0.3;
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 80px;
    margin-right: 1rem;
    /* Стили font-weight берутся из fonts.css */
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.step-content .text-p3 {
    color: var(--color-text-secondary);
    margin: 0;
}

.how-to-start-actions {
    margin-left: 28px;
}

.how-to-start-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

/* === АДАПТИВНОСТЬ БЛОКА ШАГОВ === */

/* Планшеты */
@media screen and (max-width: 1024px) {
    .how-to-start-section {
        padding: 80px 0 0 0;
    }
    
    .steps-wrapper {
        grid-template-columns: 1fr;
        gap: 5rem;
        margin-bottom: 60px;
        margin-left: 28px;
    }
    
    .step-card {
        padding: 0;
        min-height: auto;
        gap: 1rem;
    }
    
    .step-number {
        font-size: var(--font-size-5xl);
        margin-right: 0.75rem;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .how-to-start-section {
        padding: 60px 0 0 0;
    }
    
    .how-to-start-title {
        margin-left: 20px;
        margin-bottom: 2rem;
    }
    
    .step-card {
        padding: 0;
        gap: 1rem;
    }
    
    .step-number {
        font-size: var(--font-size-4xl);
        margin-right: 0.75rem;
    }
    
    .steps-wrapper {
        gap: 5rem;
        margin-bottom: 4rem;
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 480px) {
    .how-to-start-section {
        padding: 48px 0 0 0;
    }
    
    .step-card {
        padding: 0;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }
    
    .step-number {
        align-self: flex-start;
        font-size: var(--font-size-3xl);
        margin-right: 0;
        min-width: 60px;
        flex-shrink: 0;
    }
    
    .step-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .steps-wrapper {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-bottom: 2rem;
    }
    
    .how-to-start-actions .btn {
        min-width: auto;
        width: 100%;
    }

    .how-to-start-actions {
        margin-left: 0;
    }
}

/* === БЛОК ТАРИФОВ === */
.tariffs-section {
    padding: 80px 0 0 0;
    background: var(--color-bg-pages);
}

.tariffs-title {
    margin-left: 28px;
    margin-bottom: 26px;
    color: var(--color-text-primary);
}

.tariffs-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

/* Стили для скроллбара в адаптивных тарифах */
@media screen and (max-width: 1200px) {
    .tariffs-wrapper::-webkit-scrollbar {
        height: 6px;
    }
    
    .tariffs-wrapper::-webkit-scrollbar-track {
        background: var(--color-bg-secondary);
        border-radius: 3px;
    }
    
    .tariffs-wrapper::-webkit-scrollbar-thumb {
        background: var(--color-secondary);
        border-radius: 3px;
    }
    
    .tariffs-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--color-primary);
    }
}

.tariff-card {
    background: var(--color-white);
    border-radius: 30px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.tariff-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tariff-icon {
    width: 52px;
    height: 52px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tariff-header-content {
    flex: 1;
}

.tariff-header h4 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.tariff-subtitle {
    color: var(--color-text-secondary);
}

.tariff-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 0.8fr 0.6fr 0.6fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.table-header .table-cell {
    color: var(--color-text-secondary);
    text-align: center;
    padding: 0.5rem;
    position: relative;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.table-header .table-cell::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-bg-burgundy-shield);
}

.table-row {
    display: grid;
    grid-template-columns: 0.8fr 0.6fr 0.6fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    text-align: center;
    color: var(--color-text-primary);
    padding: 0.25rem;
}

.price-highlight {
    color: var(--color-secondary);
}

.payment-info {
    text-align: left;
    padding: 0;
    margin-left: 28px;
    background: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.payment-info h3 {
    color: var(--color-text-primary);
    margin: 0;
}

.text-highlight {
    color: var(--color-secondary);
}

/* === АДАПТИВНОСТЬ БЛОКА ТАРИФОВ === */

/* Средние экраны - переход к горизонтальному скроллу */
@media screen and (max-width: 1200px) {
    .tariffs-wrapper {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        margin-bottom: 3rem;
        padding: 0 0 1rem 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .tariff-card {
        min-width: 280px;
        flex-shrink: 0;
    }
}

/* Планшеты */
@media screen and (max-width: 1024px) {
    .tariffs-section {
        padding: 80px 0 0 0;
    }
    
    .tariffs-wrapper {
        margin-bottom: 2.5rem;
    }
    
    .tariff-card {
        padding: 1.5rem;
        min-width: 250px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 0.8fr 0.6fr 0.6fr;
        gap: 0.25rem;
    }
    
    .table-header .table-cell,
    .table-cell {
        padding: 0.125rem;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .tariffs-section {
        padding: 60px 0 0 0;
    }
    
    .tariffs-title {
        margin-left: 20px;
        margin-bottom: 2rem;
    }
    
    .tariffs-wrapper {
        margin-bottom: 20px;
    }
    
    .tariff-card {
        padding: 1.25rem;
        min-width: 220px;
    }
    
    .tariff-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .tariff-icon {
        width: 40px;
        height: 40px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 0.8fr 0.6fr 0.6fr;
        gap: 0.2rem;
    }
    
    .table-header .table-cell,
    .table-cell {
        padding: 0.125rem;
    }
    
    .payment-info {
        margin-left: 20px;
        gap: 1rem;
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 480px) {
    .tariffs-section {
        padding: 48px 0 0 0;
    }
    
    .tariffs-wrapper {
        gap: 0.75rem;
        margin-bottom: 20px;
    }
    
    .tariff-card {
        border-radius: 20px;
        padding: 28px;
        min-width: 180px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 0.8fr 0.6fr 0.6fr;
        gap: 0.15rem;
    }
    
    .table-header .table-cell,
    .table-cell {
        text-align: center;
        padding: 0.125rem;
    }
    
    .payment-info {
        margin-left: 20px;
    }
}

/* === БЛОК ПРЕИМУЩЕСТВ ТАРИФОВ === */
.tariff-benefits-section {
    padding: 80px 0 0 0;
    background: var(--color-bg-pages);
}

.tariff-benefits-title {
    margin-left: 28px;
    margin-bottom: 26px;
    color: var(--color-text-primary);
}

.tariff-benefits-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: stretch;
}

.tariff-benefit-card {
    background: var(--color-white);
    border-radius: 30px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.tariff-benefit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tariff-benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tariff-benefit-header h4 {
    color: var(--color-primary);
    margin: 0;
}

.tariff-benefit-list {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.benefit-item {
    margin-bottom: 1rem;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

/* === ВЫДЕЛЕНИЕ СТРОК === */
.benefit-item-highlighted {
    background: rgba(40, 167, 69, 0.08);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

/* === СПЕЦИАЛЬНЫЙ СТИЛЬ ДЛЯ СЕРТИФИКАТА === */
.benefit-item-certificate,
.tariff-benefit-brilliant .benefit-item-certificate,
.tariff-benefit-gold .benefit-item-certificate,
.tariff-benefit-silver .benefit-item-certificate {
    background: #F7FAF5 !important;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

/* === СПЕЦИАЛЬНЫЙ СТИЛЬ ДЛЯ ДОСТУПА К ЗАПИСЯМ === */
.benefit-item-access,
.tariff-benefit-brilliant .benefit-item-access,
.tariff-benefit-gold .benefit-item-access,
.tariff-benefit-silver .benefit-item-access {
    background: #F1F5EE !important;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.benefit-item-highlighted:last-child {
    margin-bottom: 0.5rem;
}

/* === СПЕЦИАЛЬНЫЙ СТИЛЬ ДЛЯ ДЕТАЛЬНОГО ОПИСАНИЯ === */
.benefit-item-detailed,
.tariff-benefit-brilliant .benefit-item-detailed,
.tariff-benefit-gold .benefit-item-detailed,
.tariff-benefit-silver .benefit-item-detailed {
    background: #EBF1E7 !important;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0;
}

/* === СТИЛИ ДЛЯ СПИСКОВ === */
.benefit-list {
    margin: 0.75rem 0 0 0;
    padding-left: 1.2rem;
    list-style: none;
}

.benefit-list li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.benefit-list li:before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    position: absolute;
    left: -0.5rem;
}

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

/* === ОБЕРТКА ДЛЯ ПОДАРОЧНОЙ КАРТЫ И ИНФОРМАЦИИ === */
.gift-card-info-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 2rem;
    align-items: stretch;
}

.benefit-gift-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    padding: 1.5rem;
    width: calc(33.333% - 6.67px);
    min-width: 0;
}

.benefit-gift-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.benefit-gift-card .text-p2 {
    color: var(--color-primary);
    margin: 0;
}

.benefit-item-new {
    position: relative;
}

.benefit-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    z-index: 2;
}



.benefit-item-gift {
    border: 2px solid var(--color-secondary);
    border-radius: 12px;
    padding: 1rem;
    background: var(--color-bg-secondary);
    margin: 0.5rem 0;
}

.benefit-item-gift .benefit-icon-gift {
    color: var(--color-secondary);
}



.benefit-item-gift span {
    color: var(--color-secondary);
}

/* === АДАПТИВНОСТЬ БЛОКА ПРЕИМУЩЕСТВ ТАРИФОВ === */

/* Вертикальное расположение для узких экранов */
@media screen and (max-width: 1200px) {
    .tariff-benefits-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
        align-items: start;
    }
    
    .tariff-benefit-card,
    .tariff-benefit-brilliant-wrapper {
        width: 100%;
        min-width: auto;
        flex-shrink: 0;
        min-height: auto;
    }
}

/* Средние экраны */
@media screen and (max-width: 1200px) and (min-width: 1025px) {
    .tariff-benefits-section {
        padding: 80px 0 0 0;
    }
    
    .tariff-benefit-card {
        width: 100%;
        min-width: auto;
        min-height: auto;
        padding: 1.5rem;
    }
    
    .benefit-item-highlighted,
    .benefit-item-detailed,
    .benefit-item-certificate,
    .benefit-item-access {
        padding: 0.625rem;
        margin-bottom: 0.375rem;
        font-size: 0.95rem;
    }
    
    .benefit-list {
        padding-left: 1rem;
        margin: 0.5rem 0 0 0;
    }
    
    .benefit-list li {
        margin-bottom: 0.375rem;
        font-size: 0.9rem;
    }
}

/* Планшеты */
@media screen and (max-width: 1024px) {
    .tariff-benefits-section {
        padding: 60px 0 0 0;
    }
    
    .tariff-benefits-wrapper {
        margin-bottom: 2rem;
    }
    
    .tariff-benefit-card,
    .tariff-benefit-brilliant-wrapper {
        width: 100%;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .tariff-benefit-card {
        padding: 1.25rem;
        min-height: auto;
    }
    
    .tariff-benefit-list {
        flex-grow: 0;
    }
    
    .tariff-benefit-header {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        align-items: center;
    }
    
    .tariff-benefit-header h4 {
        text-align: left;
        margin: 0;
        line-height: 1.2;
        display: flex;
        align-items: center;
    }
    
    .tariff-benefit-icon {
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .tariff-benefit-icon img {
        width: 24px !important;
        height: 24px !important;
    }
    
    .tariff-benefit-brilliant .tariff-benefit-icon {
        transform: translateY(-2px) !important;
    }
    
    .benefit-item-gift {
        padding: 0.75rem;
    }
    
    .gift-card-info-wrapper {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .gift-card-info {
        padding: 1rem;
        width: 100% !important;
    }
    
    .benefit-gift-card {
        width: 100% !important;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .benefit-item-highlighted,
    .benefit-item-detailed,
    .benefit-item-certificate,
    .benefit-item-access {
        padding: 0.5rem;
        margin-bottom: 0.375rem;
    }
    
    .benefit-list {
        padding-left: 1rem;
        margin: 0.5rem 0 0 0;
    }
    
    .benefit-list li {
        margin-bottom: 0.375rem;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .tariff-benefits-section {
        padding: 40px 0 0 0;
    }
    
    .tariff-benefits-title {
        margin-left: 20px;
        margin-bottom: 1.5rem;
    }
    
    .tariff-benefits-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .gift-card-info-wrapper {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .gift-card-info {
        padding: 0.75rem;
        width: 100% !important;
    }
    
    .benefit-gift-card {
        width: 100% !important;
        padding: 0.75rem;
        gap: 0.625rem;
    }
    
    .benefit-gift-card .text-p2 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .gift-card-info .text-p3 {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .tariff-benefit-card {
        width: 100%;
        min-width: auto;
        flex-shrink: 0;
        padding: 1rem;
        min-height: auto;
    }
    
    .tariff-benefit-list {
        flex-grow: 0;
    }
    
    .benefit-item-highlighted,
    .benefit-item-detailed,
    .benefit-item-certificate,
    .benefit-item-access {
        padding: 0.375rem;
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }
    
    .benefit-list {
        padding-left: 0.8rem;
        margin: 0.375rem 0 0 0;
    }
    
    .benefit-list li {
        margin-bottom: 0.25rem;
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .tariff-benefit-header {
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        align-items: center;
    }
    
    .tariff-benefit-header h4 {
        text-align: left;
        margin: 0;
        line-height: 1.2;
        display: flex;
        align-items: center;
    }
    
    .tariff-benefit-icon {
        width: 20px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .tariff-benefit-icon img {
        width: 20px !important;
        height: 20px !important;
    }
    
    .tariff-benefit-brilliant .tariff-benefit-icon {
        transform: translateY(-2px) !important;
    }
    
    .benefit-item {
        margin-bottom: 0.5rem;
    }
    
    
    .benefit-item-gift {
        padding: 0.5rem;
        margin: 0.25rem 0;
    }
    
    .benefit-badge {
        top: -4px;
        left: -4px;
        padding: 0.125rem 0.25rem;
        font-size: 0.75rem;
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 480px) {
    .tariff-benefits-section {
        padding: 30px 0 0 0;
    }
    
    .tariff-benefits-title {
        margin-left: 15px;
        margin-bottom: 1rem;
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .tariff-benefits-wrapper {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .gift-card-info-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .gift-card-info {
        padding: 0.5rem;
        width: 100% !important;
    }
    
    .benefit-gift-card {
        width: 100% !important;
        padding: 0.5rem;
        gap: 0.375rem;
        border-radius: 12px;
    }
    
    .benefit-gift-card .text-p2 {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .gift-card-info .text-p3 {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .benefit-gift-icon {
        width: 16px;
        height: 16px;
    }
    
    .tariff-benefit-card {
        width: 100%;
        min-width: auto;
        flex-shrink: 0;
        padding: 0.75rem;
        border-radius: 15px;
        min-height: auto;
    }
    
    .tariff-benefit-list {
        flex-grow: 0;
    }
    
    .benefit-item-highlighted,
    .benefit-item-detailed,
    .benefit-item-certificate,
    .benefit-item-access {
        padding: 0.25rem;
        margin-bottom: 0.125rem;
        border-radius: 4px;
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .benefit-list {
        padding-left: 0.6rem;
        margin: 0.25rem 0 0 0;
    }
    
    .benefit-list li {
        margin-bottom: 0.125rem;
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .tariff-benefit-header {
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.375rem;
        align-items: center;
    }
    
    .tariff-benefit-header h4 {
        font-size: 1rem;
        text-align: left;
        margin: 0;
        line-height: 1.2;
        display: flex;
        align-items: center;
    }
    
    .tariff-benefit-icon {
        width: 18px !important;
        height: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .tariff-benefit-icon img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .tariff-benefit-brilliant .tariff-benefit-icon {
        transform: translateY(-2px) !important;
    }
    
    .benefit-item {
        margin-bottom: 0.25rem;
    }
    
    
    .benefit-item-gift {
        padding: 0.375rem;
        border-radius: 6px;
        margin: 0.125rem 0;
    }
    
    .benefit-badge {
        font-size: 0.625rem;
        padding: 0.0625rem 0.125rem;
    }
}

/* === ИНФОРМАЦИЯ О ПОДАРОЧНОЙ КАРТЕ === */
.gift-card-info {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    width: calc(66.667% - 3.33px);
    min-width: 0;
}

.gift-card-info .text-p3 {
    color: var(--color-text-secondary);
    margin: 0;
}

.gift-card-info .text-p3:first-child {
    margin-bottom: 0.5rem;
}

/* === БЛОК ПРИМЕРА РАСЧЕТА И КАЛЬКУЛЯТОРА === */
.calculator-section {
    padding: 80px 0 0 0;
    background: var(--color-bg-pages);
}

/* === ПРИМЕР РАСЧЕТА === */
.calculation-example {
    margin-bottom: 80px;
}

.calculation-title {
    margin-left: 28px;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.calculation-info {
    margin-bottom: 10px;
    background: var(--color-white);
    border-radius: 30px;
    padding: 1.5rem;
    display: inline-block;
    width: 100%;
}

.calculation-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calculation-info-item:last-child {
    margin-bottom: 0;
}

.calculation-label {
    color: var(--color-text-primary);
    margin-bottom: 0;
}

.calculation-separator {
    color: var(--color-text-primary);
    margin-left: 0.5rem;
}

.price-highlight {
    color: var(--color-secondary);
}

.units-highlight {
    color: var(--color-primary);
}

.savings-highlight {
    color: var(--color-primary);
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.comparison-card {
    background: var(--color-white);
    border-radius: 28px;
    padding: 2rem;
    position: relative;
}

.comparison-card .events-tag {
    margin-bottom: 1rem;
}

.comparison-card h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: left;
    margin-top: 1rem;
}

.tariff-name-black {
    color: var(--color-text-main);
}

.tariff-units-burgundy {
    color: var(--color-secondary);
}

.comparison-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comparison-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.comparison-card-label {
    color: var(--color-text-main);
}

.comparison-card-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 4px solid var(--color-bg-green-shield);
    margin-top: 1rem;
}

/* Специфичные цвета полосок для каждой карточки */
.comparison-card:first-child .comparison-card-total {
    border-top: 4px solid var(--color-bg-button-login);
}

.comparison-card:last-child .comparison-card-total {
    border-top: 4px solid var(--color-bg-burgundy-shield);
}


.comparison-card-value.burgundy-value {
    color: var(--color-secondary);
}

.comparison-card-total .green-value {
    color: var(--color-primary);
}

.comparison-card-savings {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
}

/* === КАЛЬКУЛЯТОР === */
.calculator-wrapper {
    background: var(--color-bg-secondary);
    border-radius: 20px;
}

.calculator-title {
    margin-left: 28px;
    margin-bottom: 2.5rem;
    color: var(--color-text-primary);
}

.calculator-form-wrapper {
    width: calc(100% - 56px);
    margin-left: 28px;
    margin-right: 28px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.calculator-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--color-text-primary);
}

.form-group h5 {
    margin-left: 12px;
    margin-bottom: 12px;
}


.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    background: var(--color-white);
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 64px;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    transform: translateY(-1px);
}

/* === СТИЛИ DROPDOWN ПОЛЯ === */
.dropdown-field {
    position: relative;
}

.dropdown-wrapper {
    position: relative;
    width: 100%;
}

.calculator-section .dropdown-input {
    position: relative;
    background: var(--color-white);
    border: none;
    border-radius: 30px;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 64px !important;
    min-height: 64px !important;
}

.dropdown-input:hover {
    transform: translateY(-1px);
}

.dropdown-input.dropdown-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-trigger {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    color: var(--color-text-primary);
    cursor: pointer;
    pointer-events: none;
    padding: 0;
    text-align: left;
}

.dropdown-trigger::placeholder {
    color: var(--color-text-gray);
}

.form-group input::placeholder {
    color: var(--color-text-gray);
}

.dropdown-arrow {
    width: 25px;
    height: 14px;
    background-image: url('data:image/svg+xml,<svg width="25" height="14" viewBox="0 0 25 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.550289 0.535358C0.902744 0.192568 1.38071 3.049e-07 1.87909 3.049e-07C2.37746 3.049e-07 2.85543 0.192568 3.20788 0.535358L12.5113 9.58641L21.8148 0.535358C22.1693 0.202283 22.644 0.0179815 23.1368 0.0221476C23.6296 0.0263136 24.101 0.218614 24.4495 0.557632C24.798 0.89665 24.9956 1.35526 24.9999 1.83468C25.0042 2.31411 24.8148 2.77599 24.4724 3.12085L13.8401 13.4646C13.4877 13.8074 13.0097 14 12.5113 14C12.013 14 11.535 13.8074 11.1825 13.4646L0.550289 3.12085C0.197939 2.77796 0 2.31295 0 1.8281C0 1.34325 0.197939 0.878251 0.550289 0.535358Z" fill="%23A91B60"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dropdown-input.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-right: 12px;
    min-width: 0;
}

.selected-tags:empty {
    display: none;
    margin-right: 0;
}

.selected-tags:empty + .dropdown-trigger {
    padding-left: 0;
}

.selected-tag {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-white);
    border: none;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.calculator-section .dropdown-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    height: auto;
    min-height: auto;
}

.calculator-section .dropdown-option:hover {
    background: var(--color-bg-secondary);
}

.calculator-section .dropdown-option input[type="checkbox"] {
    margin: 0 12px 0 0;
    width: 20px;
    height: 20px;
    min-height: 20px;
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: var(--color-white);
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.calculator-section .dropdown-option input[type="checkbox"]:checked {
    background: var(--color-white);
    border: 2px solid var(--color-secondary);
}

.calculator-section .dropdown-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--color-secondary);
    border-radius: 0;
    transform: translate(-50%, -50%);
}

.calculator-section .dropdown-option span {
    color: var(--color-text-primary);
    flex: 1;
}

.calculator-btn {
    margin-top: 1rem;
}

.calculator-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.result-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    min-height: 120px;
    gap: 1rem;
}

.result-card label {
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.result-value {
    color: var(--color-secondary);
    margin: 0;
}

.result-card-savings .result-value {
    color: var(--color-primary);
}

/* === АДАПТИВНОСТЬ БЛОКА КАЛЬКУЛЯТОРА === */

/* Планшеты */
@media screen and (max-width: 1024px) {
    .calculator-section {
        padding: 80px 0 0 0;
    }
    
    .comparison-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calculator-right {
        height: auto;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .calculator-section {
        padding: 60px 0 0 0;
    }
    
    .calculation-example {
        margin-bottom: 3rem;
    }
    
    .calculation-title {
        margin-left: 20px;
    }
    
    .calculation-info {
        margin-left: 0;
        margin-bottom: 20px;
        display: block;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .calculation-info-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1rem;
    }
    
    .calculation-label {
        margin-bottom: 0.25rem;
    }
    
    .calculation-separator {
        margin-left: 0;
    }
    
    .comparison-card {
        padding: 1.5rem;
    }
    
    .calculator-wrapper {
        padding: 0;
    }
    
    .calculator-title {
        margin-left: 20px;
        margin-bottom: 2rem;
    }
    
    .calculator-form-wrapper {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .calculator-grid {
        gap: 1.5rem;
    }
    
    .result-card {
        padding: 1.5rem;
        min-height: 100px;
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 480px) {
    .calculator-section {
        padding: 48px 0 0 0;
    }
    
    .comparison-card {
        padding: 1rem;
    }
    
    .comparison-card h4 {
        margin-bottom: 0.75rem;
    }
    
    .calculator-wrapper {
        padding: 1rem;
    }
    
    .calculator-left {
        gap: 1rem;
    }
    
    .result-card {
        padding: 1rem;
        min-height: 80px;
    }
    
    .calculator-btn {
        width: 100%;
    }

    .faq-section {
        margin-top: 40px;
    }
}

/* === БЛОК ФОРМЫ ОБРАТНОЙ СВЯЗИ === */
.contact-form-section {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.contact-form-info-card {
    background: var(--color-secondary);
    border-radius: 30px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    color: var(--color-white);
}

/* Вариант левой плашки с фоновым изображением — эталонная картинка «заявка»
   (скачана с donor https://4dk-seminar.ru/img/webp/заявка.webp, латинизирована в zayavka.webp).
   Картинка светлая, текст — тёмный, как у эталона
   (.contact-form-info-card.theme-image .text-p3, h2 { color: var(--color-text-primary) }). */
.contact-form-info-card.theme-image {
    background: url('../img/webp/zayavka.webp') center/cover, var(--color-white);
    color: var(--color-text-primary);
    overflow: hidden;
}
.contact-form-info-card.theme-image > * { position: relative; z-index: 2; }

.contact-form-info-card h2 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--color-white);
}

.contact-form-info-card.theme-image h2 {
    color: var(--color-text-primary);
}

.contact-form-info-card .text-p3 {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    opacity: 0.9;
}

.contact-form-info-card.theme-image .text-p3 {
    color: var(--color-text-primary);
    opacity: 1;
}

.contact-form-info-card .contact-social-title {
    color: var(--color-white);
    opacity: 0.85;
}

.contact-form-info-card.theme-image .contact-social-title {
    color: var(--color-text-primary);
    opacity: 1;
}

.contact-form-card {
    border-radius: 30px;
    overflow: hidden;
    padding: 32px;
}

/* Правая плашка с формой — фоновое изображение поверх + overlay */
.contact-form-card.theme-image {
    background-image: url('../img/webp/Reviews_Main.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.contact-form-card.theme-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
}
.contact-form-card.theme-image > * { position: relative; z-index: 2; }

/* Page-specific сверху: социальные ссылки/контакт-форма внутри .contact-form-card
 * стилизованы глобально через assets/css/modular-contact-form.css и forms.css.
 * Здесь оставлены ТОЛЬКО специфичные для /subscriptions/ оверайды. */

/* Зелёная стрелка для dropdown в форме */
.contact-form-card .dropdown-arrow {
    background-image: url('data:image/svg+xml,<svg width="25" height="14" viewBox="0 0 25 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.550289 0.535358C0.902744 0.192568 1.38071 3.049e-07 1.87909 3.049e-07C2.37746 3.049e-07 2.85543 0.192568 3.20788 0.535358L12.5113 9.58641L21.8148 0.535358C22.1693 0.202283 22.644 0.0179815 23.1368 0.0221476C23.6296 0.0263136 24.101 0.218614 24.4495 0.557632C24.798 0.89665 24.9956 1.35526 24.9999 1.83468C25.0042 2.31411 24.8148 2.77599 24.4724 3.12085L13.8401 13.4646C13.4877 13.8074 13.0097 14 12.5113 14C12.013 14 11.535 13.8074 11.1825 13.4646L0.550289 3.12085C0.197939 2.77796 0 2.31295 0 1.8281C0 1.34325 0.197939 0.878251 0.550289 0.535358Z" fill="%2332770A"/></svg>');
}

.reviews-section {
    padding-bottom: 80px;
}

/* Коррекция прокрутки к форме */
#burgundy-form-wrapper { 
    scroll-margin-top: 120px; 
}

/* ===== СТИЛИ МОДАЛЬНОГО ОКНА ДЛЯ СТРАНИЦЫ SUBSCRIPTIONS ===== */
/* Обеспечиваем правильное отображение модального окна с фоном */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    /* Начальное скрытое состояние */
    opacity: 0;
    visibility: hidden;
}

/* Активное состояние модального окна */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay .modal-content {
    position: relative;
    z-index: 10002;
    max-width: 600px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    background-image: url('../img/webp/Reviews_Main.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Стили для формы внутри модального окна */
.modal-overlay .contact-form-container {
    background: none;
    border-radius: 30px;
    padding: 32px;
}

/* Псевдоэлемент для оверлея как в theme-image */
.modal-overlay .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    z-index: 1;
}

/* Контент поверх фонового изображения */
.modal-overlay .modal-content > * {
    position: relative;
    z-index: 2;
}

/* Стили для заголовка формы в модальном окне */
.modal-overlay .contact-form-header {
    margin-bottom: 20px;
    text-align: left;
}

.modal-overlay .contact-form-header h2 {
    color: var(--color-white);
    text-align: left;
    margin: 0 0 12px 0;
}

.modal-overlay .contact-form-header p {
    color: var(--color-text-primary);
    text-align: left;
    margin: 0;
}

/* Стили для полей формы в модальном окне */
.modal-overlay .form-field {
    margin-bottom: 16px;
}

/* Кнопка закрытия модального окна */
.modal-overlay .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10003;
}

.modal-overlay .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text-primary);
}

/* Анимация появления модального окна */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Убираем прокрутку страницы когда открыто модальное окно */
body.modal-open {
    overflow: hidden;
}

/* === АДАПТИВНОСТЬ ФОРМЫ ОБРАТНОЙ СВЯЗИ === */

/* Планшеты */
@media screen and (max-width: 1024px) {
    .contact-form-section {
        padding: 80px 0;
    }
    
    .contact-form-info-card {
        padding: 40px 32px;
        gap: 24px;
    }
    
    #burgundy-form-wrapper { 
        scroll-margin-top: 100px; 
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-info-card {
        padding: 32px 24px;
        gap: 20px;
        order: 2;
    }
    
    .contact-form-card {
        order: 1;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        background-size: 20px 20px;
    }
    
    #burgundy-form-wrapper { 
        scroll-margin-top: 80px; 
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 480px) {
    .contact-form-section {
        padding: 50px 0;
    }
    
    .contact-form-info-card {
        padding: 24px 20px;
        gap: 16px;
    }
    
    .contact-social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        background-size: 18px 18px;
    }
}

/* === БЛОК FAQ === */
.faq-section {
    position: relative;
}

/* Слой для оверлея */
.faq-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.faq-header {
    position: sticky;
    top: 2rem;
    background-color: var(--color-white);
    background-image: url('../img/Frame 2131330060 (4).png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    border-radius: 30px;
    padding: 32px;
    overflow: hidden;
    height: 100%;
}

.faq-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.faq-header h2 {
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 2;
    color: var(--color-text-main);
}

.faq-header p {
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 2;
    color: var(--color-text-secondary);
}

.faq-header .btn {
    position: relative;
    z-index: 2;
}

/* .faq-accordion / .faq-item / .faq-question / .faq-arrow / .faq-answer —
   общие стили в assets/css/faq.css. Здесь — только page-specific .faq-wrapper
   и .faq-header (sticky-блок справа с фоновым изображением). */

/* === АДАПТИВНОСТЬ FAQ (только page-specific .faq-header / .faq-wrapper) === */

@media screen and (max-width: 1024px) {
    .faq-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .faq-header {
        position: static;
        padding: 1.5rem;
        border-radius: 20px;
        min-height: 300px;
    }
    .faq-header h2,
    .faq-header p {
        max-width: 65%;
    }
    .faq-header h2 {
        margin-bottom: 2rem;
        margin-left: 0;
    }
}

@media screen and (max-width: 768px) {
    .faq-wrapper {
        gap: 1.5rem;
    }
    .faq-header {
        padding: 1.25rem;
        border-radius: 15px;
        min-height: 350px;
    }
    .faq-header h2,
    .faq-header p {
        max-width: 70%;
    }
    .faq-header h2 {
        margin-left: 0;
    }
}

@media screen and (max-width: 480px) {
    .faq-wrapper {
        gap: 1rem;
    }
    .faq-header {
        padding: 1rem;
        border-radius: 12px;
        min-height: 200px;
    }
    .faq-header h2,
    .faq-header p {
        max-width: 70%;
    }
}

/* === БЛОК "НАМ ДОВЕРЯЮТ" ===
   Стили вынесены в dk-theme.css (сквозной component .partners-section).
   Управление контентом — через ACF Options «Глобальные блоки». */

/* ============================================================================
 * Reviews-section на /subscriptions/ — стили 1-в-1 с главной страницей
 * (см. home.css:1736+). На /subscriptions/ home.css не enqueue'тся, поэтому
 * override-сетка скопирована сюда (та же логика, что в about.css для /О нас/).
 * ========================================================================== */
.reviews-section .reviews-slides-container { width: 100%; }
.reviews-section .reviews-slide { width: 100%; margin-right: 0; padding-right: 0; }
.reviews-section .reviews-grid {
    grid-template-columns: 1.3fr 1.7fr;
    grid-template-rows: auto auto;
    gap: 10px;
    width: 100%;
}
.reviews-section .review-card:nth-child(3),
.reviews-section .review-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    justify-self: auto;
}

@media screen and (max-width: 1024px) {
    .reviews-wrapper { padding: 36px; }
    .reviews-header { margin-bottom: 36px; }
    .review-card { padding: 28px; min-height: 260px; }
}
@media screen and (max-width: 768px) {
    .reviews-section { padding: 50px 0; }
    .reviews-wrapper { padding: 28px; }
    .reviews-header {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 20px;
        align-items: flex-start;
    }
    .reviews-navigation { gap: 18px; }
    .reviews-nav-btn { width: 40px; height: 40px; }
    .arrow-icon { width: 20px; height: 20px; }
    .reviews-section .reviews-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .review-card { padding: 22px; min-height: 200px; }
}
@media screen and (max-width: 480px) {
    .reviews-section { display: block; }
}

/* ============================================================================
 * Partners marquee — safety overrides (аналог из about.css).
 * Фиксируют schьляются логотипы до 0 в flex-контексте + защита от перехода
 * marquee в flex-direction: column на @480px (ломает горизонтальную анимацию).
 * ========================================================================== */
.partners-logos-marquee {
    min-height: 120px;
    align-items: center;
}
.partners-logos-marquee .marquee-track {
    width: max-content;        /* содержимое не должно сжиматься под ширину родителя */
    flex-shrink: 0;
    min-height: 120px;
}
.partners-logos-marquee .partner-logo {
    flex: 0 0 auto;            /* запрет на shrink/grow */
    width: auto;              /* бокс по ширине картинки (иначе base width:120px < img max-width:200px → лого вылезает и налезает на соседей) */
    min-width: 100px;
    height: 100px;
}
.partners-logos-marquee .partner-logo img {
    height: 100px;
    width: auto;
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    display: block;
}
/* На мобильных marquee остаётся горизонтальным даже когда родитель .partners-logos
   переключается на column (см. media 480 выше). */
@media (max-width: 480px) {
    .partners-logos.partners-logos-marquee {
        flex-direction: row;
    }
    .partners-logos-marquee,
    .partners-logos-marquee .marquee-track,
    .partners-logos-marquee .partner-logo { min-height: 80px; height: auto; }
    .partners-logos-marquee .partner-logo { min-width: 80px; }
    .partners-logos-marquee .partner-logo img { height: 60px; max-height: 60px;max-width: 100%; }
}
