/* =========================================
   СТИЛІ ДЛЯ СТОРІНКИ ТАРИФІВ (tariffs.css)
   ========================================= */

/* Плавна анімація прокрутки при кліку на посилання */
html {
    scroll-behavior: smooth;
}

/* --- HERO СЕКЦІЯ ТАРИФІВ --- */
.tariffs-hero {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
    background: linear-gradient(to right, rgba(15, 19, 25, 0.95) 0%, rgba(15, 19, 25, 0.65) 50%, rgba(15, 19, 25, 0.2) 100%), 
                url('../image/hero-bg2.png') no-repeat center right / cover;
}

.tariffs-hero .hero-content {
    max-width: 700px;
    margin: 0 0 0 10%;
    padding-top: 60px;
    position: relative;
    z-index: 2;
}

.tariffs-hero h1 {
    font-size: 5rem;
    color: var(--text-white);
    line-height: 0.95;
    margin-bottom: 20px;
    font-weight: normal;
    background: none;
    -webkit-text-fill-color: var(--text-white);
}

.tariffs-hero h1 .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 7rem;
    font-weight: 600;
    display: block;
    letter-spacing: 1px;
}

.tariffs-hero .hero-subtitle {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

/* --- БЛОК ЗІ СТРІЛКОЮ ВНИЗ ПІД ТЕКСТОМ ПО ЦЕНТРУ HERO --- */
.tariffs-hero .hero-scroll-wrapper {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    width: max-content;
}

.tariffs-hero .scroll-down-link {
    display: inline-flex;
    flex-direction: column; /* Текст зверху, стрілка під ним */
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    color: var(--text-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tariffs-hero .scroll-down-link .scroll-arrow {
    font-size: 1.5rem;
    color: var(--text-gold);
    line-height: 1;
    display: block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.tariffs-hero .scroll-down-link:hover {
    color: var(--text-white);
}

.tariffs-hero .scroll-down-link:hover .scroll-arrow {
    transform: translateY(6px);
    color: var(--text-white);
}

/* --- ОБГОРТКА ДЛЯ КОНТЕНТУ (Наїжджає на Hero) --- */
.content-wrapper {
    position: relative;
    z-index: 10;
    /* Основний темний фон плавно з'являється поверх hero */
    background: linear-gradient(to bottom, rgba(15, 19, 25, 0) 0%, var(--bg-dark) 250px);
}

/* ФОНОВА КАРТИНКА НА ВСЮ СЕКЦІЮ (Тарифи + CTA) */
.content-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../image/tariff-bg2.png') no-repeat right bottom;
    opacity: 0.1;
    z-index: 0; /* Кладемо картинку ПІД контент, але НАД темним фоном */
    pointer-events: none;
    
    /* РОБИМО ПЛАВНИЙ ПЕРЕХІД */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 250px);
    mask-image: linear-gradient(to bottom, transparent 0%, black 250px);
    background-size: cover;
}

.tariffs-container {
    padding-top: 100px;
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* --- СЕКЦІЇ ТАРИФІВ (КМС та МС) --- */
.tariff-section {
    margin-bottom: 50px;
}

.tariff-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.tariff-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.tariff-header h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tariff-features {
    margin-bottom: 40px;
    padding-left: 70px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tariff-features li {
    position: relative;
    padding-left: 30px;
    color: var(--text-white);
    font-size: 1.05rem;
}

.tariff-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 22px;
    height: 22px;
    background: url('../image/icons/17-pawn.svg') no-repeat center / contain;
}

/* --- СІТКА КАРТОК ЦІН --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pricing-item {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    background-color: var(--bg-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.pricing-item:hover {
    transform: translateY(-5px);
    border-color: var(--text-gold);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
}

.popular-badge {
    position: absolute;
    top: 25px;
    right: -40px;
    background: var(--gold-gradient);
    color: var(--bg-dark);
    padding: 8px 45px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pricing-item-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-beige);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-item-header img {
    width: 20px;
    height: 20px;
}

.price-block {
    margin-bottom: 35px;
}

.price-label {
    color: #808080;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.price-value {
    font-size: 3rem;
    color: var(--text-white);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 10px;
}

.price-value span {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--text-beige);
}

.price-sub {
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Фони карток */
.pricing-item:nth-child(1) {
    background-image: linear-gradient(rgba(15, 19, 25, 0.75), rgba(15, 19, 25, 0.75)), url('../image/price-box-bg1.png');
    background-position: center, bottom right;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 150px auto; 
}

.pricing-item:nth-child(2) {
    background-image: linear-gradient(rgba(15, 19, 25, 0.75), rgba(15, 19, 25, 0.75)), url('../image/price-box-bg2.png');
    background-position: center, bottom right;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 150px auto;
}

.pricing-item:nth-child(3) {
    background-image: linear-gradient(rgba(15, 19, 25, 0.75), rgba(15, 19, 25, 0.75)), url('../image/price-box-bg3.png');
    background-position: center, bottom right;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 175px auto;
}

.pricing-item:nth-child(4) {
    padding-top: 65px; 
}

/* =========================================
   СПЕЦИФІЧНІ СТИЛІ ДЛЯ КАРТКИ "ГРУПОВІ ЗАНЯТТЯ"
   ========================================= */

/* Зменшуємо загальні відступи картки, але залишаємо місце зверху для плашки */
.pricing-item.group-tariff-card {
    padding: 25px 20px; /* Зменшені бокові відступи та відступ знизу (замість 40px 30px) */
    padding-top: 50px;  /* Відступ зверху спеціально для "язичка" */
    
    /* Фонова картинка для групового тарифу */
    background-image: linear-gradient(rgba(15, 19, 25, 0.75), rgba(15, 19, 25, 0.75)), url('../image/price-box-bg-group.png');
    background-position: center, bottom right;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 140px auto;
}

/* Зменшуємо заголовок (корона + "8 ЗАНЯТЬ") */
.pricing-item.group-tariff-card .pricing-item-header {
    font-size: 1rem; /* Було 1.2rem */
    margin-bottom: 10px;
}

/* Зменшуємо велику ціну */
.pricing-item.group-tariff-card .price-value {
    font-size: 3rem; /* Було 3rem */
}

/* Зменшуємо текст "грн" біля ціни */
.pricing-item.group-tariff-card .price-value span {
    font-size: 1.2rem; /* Було 1.5rem */
}

/* Зменшуємо відступ під блоком ціни */
.pricing-item.group-tariff-card .price-block {
    margin-bottom: 12px; /* Було 35px */
}

/* Зменшуємо розмір шрифту в списку з галочками (якщо потрібно) */
.pricing-item.group-tariff-card .group-features li {
    font-size: 0.85rem; /* Було 0.9rem */
    gap: 8px; /* Трохи ближче іконка до тексту */
}

.pricing-item.group-tariff-card .group-features li img {
    width: 18px; /* Трохи менша галочка */
    height: 18px;
}

.help-text {
    font-size: 0.7rem;
    margin-bottom: 15px;
}

/* =========================================
   КАРТКА "ГРУПОВІ ЗАНЯТТЯ" (4-та картка)
   ========================================= */

/* Плашка зверху */
.group-badge {
    position: absolute;
    top: -1px; /* Накладаємо рівно на верхню рамку картки */
    left: 50%;
    transform: translateX(-50%); /* Центруємо по горизонталі */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    
    /* Темний фон, щоб перекрити нутрощі картки */
    background-color: var(--bg-dark, #0f1319); 
    
    /* Рамка з усіх боків, КРІМ верху */
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-top: none;
    
    /* Заокруглюємо тільки нижні кути (як на ескізі) */
    border-radius: 0 0 20px 20px;
    padding: 8px 25px;
    color: var(--text-gold, #d4af37);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 5;
}

.group-badge img {
    width: 20px;
    height: 20px;
}

/* Список пояснень над кнопкою */
.group-features {
    list-style: none;
    padding: 0;
    margin: -10px 0 25px 0; /* Невеликий відступ вгору, щоб компенсувати margin price-block */
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.group-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-white, #ffffff);
    font-size: 0.9rem;
    line-height: 1.4;
}

.group-features li img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px; /* Вирівнювання іконки по першому рядку тексту */
}

/* Фонова картинка саме для 4-ї картки (імітація групи) */
.pricing-item:nth-child(4) {
    background-image: linear-gradient(rgba(15, 19, 25, 0.75), rgba(15, 19, 25, 0.80)), url('../image/price-box-bg-group.png');
    background-position: center, bottom right;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 220px auto;
}

/* Скляні кнопки у картках тарифів */
.tariffs-container .btn-gold {
    background: var(--glass-bg); 
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: var(--text-gold);
    font-weight: bold;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tariffs-container .btn-gold:hover {
    background: rgba(255, 255, 255, 0.15); 
    color: var(--text-white);
    border-color: var(--text-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
}

.bottom-bg-wrapper {
    position: relative;
    z-index: 2;
}


/* =========================================
   БЛОК ДОПОМОГИ З ТАРИФАМИ (70% ширини)
   ========================================= */
.cta-help-section {
    padding: 40px 0;
}

.cta-help-box {
    position: relative;
    
    /* Ширина 70% та центрування */
    width: 90%;
    margin: 0 auto 50px;
    
    /* Скляний ефект та рамка */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 15px 35px var(--glass-shadow);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: transparent;
}

/* Фонова картинка (з напівпрозорістю) */
.cta-help-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../image/help_cta.png') no-repeat center center / cover;
    opacity: 0.5;
    z-index: 0;
}

/* Піднімаємо контент над фоном */
.cta-help-box > * {
    position: relative;
    z-index: 2;
}

/* Жовтий текст на всю ширину */
.cta-help-title {
    width: 100%;
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 15px;
    
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Білий текст */
.cta-help-subtitle {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* =========================================
   КНОПКА ЗВ'ЯЗКУ (Копія .btn-cta без конфлікту з JS)
   ========================================= */
.btn-support {
    display: inline-flex;
    align-items: stretch;
    background: var(--gold-gradient);
    color: #0f1319;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--glass-shadow-hover);
    position: relative;
    z-index: 2;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

.btn-support .btn-text {
    padding: 0 25px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-support .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1.2rem;
    border-left: 1px solid var(--glass-shadow);
    transition: transform 0.3s ease;
}

.btn-support:hover {
    filter: drop-shadow(0 0 15px var(--text-gold)) brightness(1);
    transform: translateY(-2px);
}

/* =========================================
   АДАПТИВНІСТЬ ДЛЯ БЛОКУ
   ========================================= */
@media (max-width: 900px) {
    .cta-help-box {
        width: 100%; /* На мобільних розтягуємо на 100% */
        padding: 40px 20px;
    }
    
    .cta-help-title {
        font-size: 1.8rem;
    }
}

/* --- СТИЛІ ФУТЕРА (БЕЗ ФОНОВИХ ЗОБРАЖЕНЬ ТА ОВЕРЛЕЇВ) --- */
.main-footer {
    background-color: var(--bg-dark);
    background-image: none;
    position: relative;
    z-index: 10;
}

.main-footer::before {
    display: none;
}

/* Адаптив */
@media (max-width: 900px) {
    .tariffs-hero h1 { font-size: 2.5rem; margin-bottom: 60px;}
    .tariffs-hero h1 .highlight { font-size: 3.5rem; }
    .tariffs-hero .hero-content { margin: 0 auto; text-align: center; }
    .pricing-grid { grid-template-columns: 1fr; }
    .tariff-features { padding-left: 0; }
    .tariffs-hero .hero-scroll-wrapper { bottom: 20px; }
    .tariffs-hero .hero-subtitle {
        line-height: normal;
    }
}