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

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

.hero-content {
    position: relative;
}

.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;
}

.benefits-grid {
    display: flex;
    justify-content: space-between;
    gap: 13px;
}

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

.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 {
    width: 100%;
}

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

.benefit-text {
    font-size: 18px;
    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(4, 1fr);
    gap: 10px;
}

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

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

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

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

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

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

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

@media (max-width: 1200px) {
    .benefits-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .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 {
        flex-direction: column;
    }

    .benefit-card {
        width: 100%;
    }

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

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

    .goal-card {
        height: auto;
    }
}

/* ============================================
   MOBILE STYLES - До 480px (Management-Accounting 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;
        height: 582px;
        border-radius: 40px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

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

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

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

    .hero-mobile-image {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 311px;
        object-fit: cover;
        object-position: center bottom;
        z-index: 1;
    }

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

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

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

    .benefits-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        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;
        justify-content: flex-start;
    }

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

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

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

    /* Costs */
    .costs-section {
        padding: 40px 0;
    }

    .costs-wrapper {
        padding: 40px 20px 330px;
        border-radius: 40px;
    }

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

    .cost-card {
        height: auto;
        padding: 30px 20px;
    }

    .cost-card-content {
        height: auto;
        justify-content: flex-start;
        gap: 30px;
    }

    .cost-card-title {
        font-size: 20px;
    }

    .cost-card-intro {
        font-size: 16px;
    }

    .cost-card-list {
        padding-left: 24px;
    }

    .cost-card-list li {
        font-size: 16px;
    }

    .costs-decoration {
        width: 398px;
        height: 291px;
        right: -3px;
        bottom: -5px;
    }

    .costs-ellipse {
        width: 425px;
        height: 425px;
        right: -67px;
        bottom: -136px;
    }

    .costs-image {
        width: 398px;
        height: 291px;
        right: -3px;
        bottom: -5px;
    }

    /* Goals */
    .goals-section {
        padding: 40px 0;
    }

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

    .goal-card {
        min-height: 190px;
        padding: 30px;
        height: auto;
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

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

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

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