/* ========================================
   TARIFFS PAGE STYLES
   ======================================== */

/* Hero Section */
.tariffs-hero {
    position: relative;
    width: 1280px;
    height: 1017px;
    background: #FFFFFF;
    border-radius: 20px;
    margin: 40px auto 60px;
    overflow: visible;
    padding-bottom: 60px;
}

.hero-background {
    position: absolute;
    top: -20px;
    width: 1280px;
    height: 1037px;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.hero-vector {
    position: absolute;
    top: 58px;
    left: -88px;
    width: 1138px;
    height: 1242.5px;
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    text-align: center;
    margin-bottom: 228px;
}

.hero-title {
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 60px;
    line-height: 1.275;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #28282F;
    text-align: center;
    margin: 0 auto 0;
    max-width: 887px;
}

.hero-subtitle {
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.275;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #009AAB 0%, #007C89 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
    margin: 0 auto;
    max-width: 474px;
}

/* Pricing Cards Inside Hero */
.pricing-cards {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 73px;
    padding: 0 44.5px;
}

.pricing-card {
    width: 400px;
    height: 500px;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Card 1 месяц */
.pricing-card-month {
    background: linear-gradient(180deg, #007C89 0%, #01636E 100%);
}

/* Card 1 год (Featured) */
.pricing-card-year {
    background: linear-gradient(180deg, #74B5BC 0%, #5C959B 100%);
    bottom: 80px;
}

/* Card 6 месяцев */
.pricing-card-halfyear {
    background: linear-gradient(180deg, #419AA4 0%, #317981 100%);
}

/* Badge "Рекомендуем" */
.card-badge {
    position: absolute;
    top: -40px;
    left: 66%;
    transform: translateX(-50%) rotate(6deg);
    background: #28282F;
    color: #FFFFFF;
    padding: 17px 28px;
    border-radius: 28px;
    font-family: 'Involve', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.33;
    letter-spacing: 0.04em;
    text-align: center;
    height: 60px;
    width: 233px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Period (1 месяц, 1 год, 6 месяцев) */
.card-period {
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.275;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 8px;
}

/* Subtitle */
.card-subtitle {
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.275;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: left;
    margin: 0 0 20px;
    padding: 0 19px;
}

/* Divider */
.card-divider {
    width: 360px;
    height: 4px;
    background: linear-gradient(90deg, #FFFFFF 0%, #67A3A9 100%);
    border-radius: 4px;
    margin: 0 auto 16px;
}

.pricing-card-year .card-divider {
    background: linear-gradient(90deg, #FFFFFF 0%, #419AA4 100%);
}

/* Price Wrapper */
.card-price-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 0 20px;
    min-height: 77px;
}

/* Old Price */
.card-price-old {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 36px;
}

.price-old-text {
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.275;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.price-strikethrough {
    position: absolute;
    top: 45%;
    left: 0;
    width: 76px;
    height: 26px;
    transform: translateY(-50%) rotate(-20deg);
}

/* Current Price */
.card-price {
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 60px;
    line-height: 1.275;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: center;
}

/* Description */
.card-description {
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.275;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 0 0 auto;
    padding: 0 17px;
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Button */
.card-btn {
    width: 320px;
    height: 48px;
    background: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.275;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #009AAB;
    cursor: pointer;
    transition: opacity 0.3s;
    margin: 0 auto;
    display: block;
}

.card-btn:hover {
    opacity: 0.9;
}

/* Features Section */
.tariffs-features {
    padding: 80px 0;
    background: var(--white);
    border-radius: 20px;
    margin: 0 auto 60px;
    max-width: 1280px;
    display: none;
}

.features-title {
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: var(--text-dark);
    text-align: center;
    margin: 0 0 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    margin-bottom: 16px;
}

.feature-title {
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.feature-description {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text-muted);
    margin: 0;
}

/* Charity Section */
.tariffs-charity {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--light-blue) 0%, var(--dark-blue) 100%);
    border-radius: 20px;
    margin: 0 auto 60px;
    max-width: 1280px;
    height: 800px;
}

.charity-white-bg {
    background-color: white;
    border-radius: 30px;
    width: 1200px;
    height: 352px;
    align-items: end;
    margin: 40px;
}

.charity-content {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.charity-title {
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.2;
    color: var(--white);
    margin: 0 0 24px;
    text-transform: uppercase;
}

.charity-description {
    font-family: 'involve', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.6;
    color: var(--white);
    margin: 0;
    max-width: 770px;
}

/* ========================================
   MOBILE ADAPTATION
   ======================================== */

@media (max-width: 1024px) {
    .tariffs-hero {
        width: calc(100% - 40px);
        height: auto;
        margin: 30px 20px 60px;
        padding-bottom: 40px;
    }

    .hero-background {
        left: 0;
        width: 100%;
    }

    .hero-vector {
        width: 100%;
        height: auto;
        top: 30px;
        left: 0;
    }

    .hero-content {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 48px;
        padding: 0 20px;
    }

    .hero-subtitle {
        font-size: 36px;
        padding: 0 20px;
        text-align: center;
    }

    .pricing-cards {
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 50px;
        padding: 0 20px;
    }

    .pricing-card {
        width: calc(50% - 10px);
    }

    .pricing-card-year {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 24px;
    }

    .tariffs-features,
    .tariffs-charity {
        margin: 0 20px 40px;
    }
}

@media (max-width: 768px) {
    .tariffs-hero {
        width: calc(100% - 30px);
        min-height: auto;
        margin: 20px 15px 40px;
        padding-bottom: 30px;
    }

    .hero-background {
        left: 0;
    }

    .hero-vector {
        top: 20px;
        opacity: 0.5;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-title {
        font-size: 36px;
        padding: 0 15px;
    }

    .hero-subtitle {
        font-size: 28px;
        padding: 0 15px;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 40px;
        padding: 0 15px;
    }

    .pricing-card {
        width: 100%;
        max-width: 400px;
    }

    .pricing-card-year {
        width: 100%;
        max-width: 400px;
    }

    .card-period {
        font-size: 32px;
    }

    .card-subtitle {
        font-size: 24px;
    }

    .card-price {
        font-size: 48px;
    }

    .price-old-text {
        font-size: 24px;
    }

    .card-description {
        font-size: 18px;
    }

    .card-btn {
        width: 280px;
        font-size: 18px;
    }

    .card-badge {
        font-size: 20px;
        padding: 14px 24px;
        height: 70px;
    }

    .tariffs-features {
        padding: 60px 20px;
        margin: 0 15px 40px;
    }

    .features-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }

    .feature-icon svg {
        width: 32px;
        height: 32px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-description {
        font-size: 13px;
    }

    .tariffs-charity {
        padding: 60px 20px;
        margin: 0 15px 40px;
    }

    .charity-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .charity-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tariffs-hero {
        width: calc(100% - 20px);
        height: auto;
        margin: 15px 10px 30px;
        padding-bottom: 20px;
    }

    .hero-background {
        left: 0;
    }

    .hero-vector {
        display: none;
    }

    .hero-content {
        padding-top: 30px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 28px;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 22px;
        padding: 0 10px;
    }

    .pricing-cards {
        margin-top: 30px;
        padding: 0 10px;
        gap: 0;
    }

    .pricing-card {
        width: 100%;
        max-width: 350px;
        height: auto;
        min-height: 400px;
        padding: 30px 15px 15px;
    }

    .pricing-card-year {
        width: 100%;
        max-width: 350px;
        height: auto;
        min-height: 400px;
        margin-top: 150px;
    }

    .card-period {
        font-size: 28px;
    }

    .card-subtitle {
        font-size: 20px;
        padding: 0 15px;
    }

    .card-divider {
        width: 100%;
        max-width: 320px;
    }

    .card-price {
        font-size: 40px;
    }

    .price-old-text {
        font-size: 20px;
    }

    .card-description {
        font-size: 16px;
        padding: 0 15px;
    }

    .card-btn {
        width: 100%;
        max-width: 280px;
        font-size: 16px;
        height: 44px;
    }

    .card-badge {
        font-size: 18px;
        padding: 12px 20px;
        height: 60px;
    }

    .tariffs-features {
        padding: 40px 15px;
        margin: 0 10px 30px;
    }

    .features-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .feature-title {
        font-size: 16px;
    }

    .feature-description {
        font-size: 12px;
    }

    .tariffs-charity {
        padding: 40px 15px;
        margin: 0 10px 30px;
        height: auto;
    }

    .charity-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .charity-description {
        font-size: 14px;
    }

    .charity-white-bg {
        width: auto;
        margin: 0;
        margin-top: 20px;
    }
}
