/* ============================================
   BUH-SUPPORT PAGE - Уникальные стили страницы
   ============================================ */

/* Hero Section - Internal Page */
.hero {
    padding: 40px 0 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
}

/* Keep breadcrumb above hero visuals (mobile/desktop) */
.breadcrumb {
    position: relative;
    z-index: 5;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 64px;
    line-height: 1.2;
    color: #4d4d4d;
    margin-bottom: 48px;
    font-weight: 400;
}

.hero-banner-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: min(650px, 48vw);
    max-width: 100%;
    aspect-ratio: 650 / 520;
    height: auto;
    border-radius: 40px;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.hero-banner {
    position: relative;
    background: #4d4d4d;
    border-radius: 40px;
    height: 408px;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 40px;
}

/* Hide mobile hero image on desktop */
.hero-mobile-image {
    display: none;
}

.decorative-circles {
    position: absolute;
    bottom: -63px;
    left: 0;
    width: 670px;
    height: 280px;
    pointer-events: none;
    z-index: 2;
}

.decorative-circles img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-text {
    position: absolute;
    left: 41px;
    top: 61px;
    max-width: 694px;
    z-index: 4;
}

.hero-subtitle {
    font-size: 24px;
    line-height: 1.3;
    color: white;
    margin-bottom: 27px;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

/* Pricing CTA card hover (Figma: white -> dark, CTA becomes accent) */
.pricing-card.pricing-card-cta {
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

/* Pricing cards colors (Buh-Support only, per latest Figma) */
.pricing-section .pricing-card {
    min-height: 426px;
}

/* Light (accent) cards: 1, 3, 5 */
.pricing-section .pricing-grid > .pricing-card:nth-child(1),
.pricing-section .pricing-grid > .pricing-card:nth-child(3),
.pricing-section .pricing-grid > .pricing-card:nth-child(5) {
    background: #f7d59e;
    color: #4d4d4d;
}

/* Dark cards: 2, 4 */
.pricing-section .pricing-grid > .pricing-card:nth-child(2),
.pricing-section .pricing-grid > .pricing-card:nth-child(4) {
    background: #4d4d4d;
    color: #ffffff;
}

/* Inherit text color inside non-CTA cards */
.pricing-section .pricing-grid > .pricing-card:not(.pricing-card-cta) .pricing-title,
.pricing-section .pricing-grid > .pricing-card:not(.pricing-card-cta) .pricing-params li,
.pricing-section .pricing-grid > .pricing-card:not(.pricing-card-cta) .pricing-tasks-title,
.pricing-section .pricing-grid > .pricing-card:not(.pricing-card-cta) .pricing-tasks-list li,
.pricing-section .pricing-grid > .pricing-card:not(.pricing-card-cta) .pricing-price {
    color: inherit;
}

/* Badge inversion for light cards */
.pricing-section .pricing-grid > .pricing-card:nth-child(1) .pricing-badge,
.pricing-section .pricing-grid > .pricing-card:nth-child(3) .pricing-badge,
.pricing-section .pricing-grid > .pricing-card:nth-child(5) .pricing-badge {
    background: #4d4d4d;
    color: #ffffff;
}

/* Dark cards badge text (keep accent background, adjust text to main color) */
.pricing-section .pricing-grid > .pricing-card:nth-child(2) .pricing-badge,
.pricing-section .pricing-grid > .pricing-card:nth-child(4) .pricing-badge {
    color: #4d4d4d;
}

.pricing-card.pricing-card-cta:hover {
    background: #4d4d4d;
    border-color: #4d4d4d;
}

.pricing-card.pricing-card-cta:hover .pricing-cta-title {
    color: #ffffff;
}

.pricing-card.pricing-card-cta:hover .pricing-cta-text {
    color: #f7d59e;
}

.pricing-card.pricing-card-cta:hover .btn-icon {
    background: #f7d59e;
}

.pricing-card.pricing-card-cta:hover .btn-icon img {
    filter: none;
}

.benefits-grid {
    display: grid;
    /* Figma: 5 cards ~270px, keep 1 row but allow gentle shrink on 1366/1280 */
    grid-template-columns: repeat(5, minmax(0, 270px));
    justify-content: space-between;
    gap: 8px;
}

.benefit-card {
    background: white;
    border-radius: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    height: 260px;
}

.benefits-title-break {
    display: inline;
}

.benefit-icon {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.benefit-icon-shadow {
    position: absolute;
    width: 39px;
    height: 36px;
    left: 4.5px;
    top: 17px;
    background: #f7d59e;
    filter: blur(15px);
}

.benefit-icon-box {
    position: absolute;
    inset: 0;
    background: #f7d59e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon-box img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.benefit-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.benefit-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

/* ============================================
   OFFERS SECTION (buh-support) — fix image/text overlap
   ============================================ */

/* On desktop/tablet the offer image is absolutely positioned and can cover text.
   Reserve space for the image so the card grows vertically and nothing overlaps. */
@media (min-width: 481px) {
    .offers-section .offer-card {
        height: auto;
        min-height: 380px; /* keep baseline size from common.css */
        padding-bottom: 270px; /* 260px image + ~10px gap */
    }

    .offers-section .offer-content {
        position: relative;
        z-index: 1;
    }

    .offers-section .offer-image {
        z-index: 0;
        bottom: 0; /* avoid clipping; space is reserved via padding-bottom */
    }
}

.benefit-text {
    font-size: 16px;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.benefit-text strong {
    font-weight: 600;
}

.benefit-stats {
    display: flex;
    gap: 24px;
    margin: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.stat-label {
    font-size: 16px;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

/* Industries Section - Отрасли, с которыми мы работаем */
.industries-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.industries-section .section-title {
    margin-bottom: 40px;
}

.industries-wrapper {
    display: flex;
    gap: 26px;
    height: 540px;
}

.industries-list {
    background: white;
    border-radius: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 421px;
    flex-shrink: 0;
}

.industry-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f9f9f9;
    border: none;
    border-radius: 10000px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.industry-btn.active {
    background: #f7d59e;
}

.industry-btn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.industry-btn-icon {
    width: 40px;
    height: 40px;
    background: #4d4d4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.industry-btn-icon img {
    width: 24px;
    height: 24px;
}

.industry-btn-text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
}

.industry-btn-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.industry-details {
    background: white;
    border-radius: 30px;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.industry-content {
    display: none;
    flex-direction: column;
    height: 100%;
}

.industry-content.active {
    display: flex;
}

.industry-image {
    height: 234px;
    width: 100%;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.industry-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    background: #f7d59e;
    border-radius: 41px;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #4d4d4d;
    width: fit-content;
}

.industry-features {
    list-style: disc;
    margin: 0;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.industry-features li {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
}

/* Costs Section - Сколько это стоит */
.costs-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.costs-wrapper {
    background: white;
    border-radius: 40px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.costs-wrapper .section-title {
    margin-bottom: 40px;
}

.costs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    position: relative;
    z-index: 1;
}

.cost-card {
    height: 460px;
    border-radius: 30px;
    padding: 30px;
    border: 1px solid #eeeeee;
    position: relative;
    overflow: hidden;
}

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

.cost-card-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cost-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.cost-card-intro {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}

.cost-card-list {
    list-style: disc;
    margin: 0;
    padding-left: 27px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cost-card-list li {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
}

.cost-card-price {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

/* Светлая карточка (бежевая) */
.cost-card-light {
    background: #f7d59e;
}

.cost-card-light .cost-card-title,
.cost-card-light .cost-card-intro,
.cost-card-light .cost-card-list li,
.cost-card-light .cost-card-price {
    color: #4d4d4d;
}

/* Темная карточка */
.cost-card-dark {
    background: #4d4d4d;
}

.cost-card-dark .cost-card-title,
.cost-card-dark .cost-card-intro,
.cost-card-dark .cost-card-list li,
.cost-card-dark .cost-card-price {
    color: white;
}

/* Декоративные элементы */
.costs-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 494px;
    height: 361px;
    z-index: 0;
    pointer-events: none;
}

.costs-ellipse {
    position: absolute;
    bottom: -150px;
    right: -65px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: #f7d59e;
    opacity: 0.5;
}

.costs-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 494px;
    height: 361px;
    object-fit: contain;
}

/* Goals Section - ХОТИТЕ БЫТЬ СПОКОЙНЫ */
.goals-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.goals-section .section-title {
    margin-bottom: 42px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.goal-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.goal-number {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
}

.goal-number span {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
    text-align: center;
}

.goal-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN - Buh-Support Page Specific
   ============================================ */
@media (max-width: 1440px) {
    .hero-title {
        font-size: 56px;
    }
}

@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        height: auto;
    }

    .industries-wrapper {
        flex-direction: column;
        height: auto;
    }

    .industries-list {
        width: 100%;
    }

    .costs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-banner {
        height: auto;
        min-height: 400px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .costs-grid {
        grid-template-columns: 1fr;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MOBILE STYLES - До 480px (Buh-Support Page)
   ============================================ */
@media (max-width: 480px) {
    /* Hero (internal) */
    .hero {
        padding: 20px 0 40px;
    }

    .hero-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 12px;
    }

    /* Hide absolute hero image wrapper on mobile */
    .hero-banner-bg {
        display: none;
    }

    .hero-banner {
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        border-radius: 40px;
    }

    .hero-text {
        position: relative;
        left: auto;
        top: auto;
        padding: 20px;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .hero .btn-large {
        width: 100%;
        justify-content: space-between;
    }

    .hero-mobile-image {
        display: block;
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: center bottom;
        border-radius: 0 0 40px 40px;
    }

    /* Benefits (horizontal scroll like in Figma) */
    .benefits {
        padding: 40px 0;
    }

    .benefits .section-title-center {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .benefits-title-break {
        display: block;
    }

    .benefits-grid {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        height: auto;
        width: 100%;
        margin-right: -16px;
        padding-right: 16px;
    }

    .benefits-grid::-webkit-scrollbar {
        display: none;
    }

    .benefit-card {
        min-width: 280px;
        width: 280px;
        height: 260px;
        flex-shrink: 0;
        padding: 20px;
    }

    .benefit-title {
        font-size: 20px;
    }

    .benefit-text {
        font-size: 16px;
    }

    .benefit-stats {
        flex-direction: row;
        gap: 24px;
    }

    /* Pricing (match mobile Figma) */
    .pricing-section .pricing-subtitle {
        font-size: 18px;
    }

    .pricing-section .pricing-card {
        padding: 30px 20px;
        min-height: 0;
    }

    .pricing-section .pricing-badge {
        font-size: 14px;
    }

    .pricing-section .pricing-title {
        font-size: 20px;
    }

    .pricing-section .pricing-params {
        padding-left: 24px;
    }

    .pricing-section .pricing-params li {
        font-size: 16px;
    }

    .pricing-section .pricing-tasks-list {
        padding-left: 24px;
    }

    .pricing-section .pricing-tasks-list li {
        font-size: 16px;
    }

    .pricing-section .pricing-cta-title {
        font-size: 20px;
    }

    .pricing-section .pricing-cta-text {
        font-size: 16px;
        letter-spacing: 0.48px;
    }

    /* Industries list (horizontal scroll) */
    .industries-section {
        padding: 40px 0;
    }

    .industries-section .section-title {
        margin-bottom: 30px;
        text-align: center;
    }

    .industries-wrapper {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }

    .industries-list {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .industries-list::-webkit-scrollbar {
        display: none;
    }

    .industry-btn {
        width: auto;
        flex: 0 0 auto;
        padding: 10px 14px;
        gap: 10px;
    }

    .industry-btn-arrow {
        display: none;
    }

    .industry-btn-icon {
        width: 32px;
        height: 32px;
    }

    .industry-btn-icon img {
        width: 18px;
        height: 18px;
    }

    .industry-btn-text {
        font-size: 14px;
        white-space: nowrap;
    }

    .industry-details {
        border-radius: 30px;
    }

    .industry-image {
        height: 200px;
        border-radius: 30px 30px 0 0;
    }

    .industry-info {
        padding: 20px;
        gap: 16px;
    }

    .industry-badge {
        font-size: 16px;
        padding: 7px 14px;
    }

    .industry-features {
        padding-left: 20px;
        gap: 6px;
    }

    .industry-features li {
        font-size: 16px;
    }
}

/* Desktop: reduce excessive gap between hero and benefits */
@media (min-width: 769px) {
    .hero {
        padding-bottom: 20px;
    }

    .hero + .benefits {
        padding-top: 20px;
    }
}
