/* ============================================
   TAX-CONSULT 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: 18px;
    line-height: 1.3;
    color: white;
    margin-bottom: 27px;
}

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

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

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

/* For Who Section - Для кого */
.for-who-section {
    position: relative;
    z-index: 1;
}

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

.for-who-wrapper {
    display: grid;
    /* Photo is slightly smaller in Figma, cards are wider */
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    gap: 10px;
    align-items: stretch;
}

.for-who-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    /* By default keep natural height (mobile/tablet) */
    align-content: start;
}

.for-who-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    /* Equal vertical rhythm between icon, title and text */
    gap: 18px;
}

.for-who-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #4d4d4d;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 48px;
    box-shadow: none;
}

.for-who-card-icon img {
    height: 20px;
    width: auto;
    object-fit: contain;
    display: block;
}

.for-who-card-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.for-who-card-text {
    font-size: 18px;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.for-who-image {
    border-radius: 40px;
    overflow: hidden;
    min-height: 0;
}

.for-who-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop: keep photo height aligned with 2x2 cards block */
@media (min-width: 1201px) {
    .for-who-grid {
        /* Match photo height with 2 equal rows (no huge row gap) */
        grid-template-rows: repeat(2, minmax(0, 1fr));
        align-content: stretch;
    }

    .for-who-image {
        /* Match original image ratio (1088x942) */
        aspect-ratio: 1088 / 942;
    }
}

/* Results Section Override - 6-column grid with centered bottom row */
.results-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.result-card {
    grid-column: span 2;
}

/* Нижние карточки - центрирование */
.result-card:nth-child(4) {
    grid-column: 2 / 4;
}

.result-card:nth-child(5) {
    grid-column: 4 / 6;
}

/* ============================================
   RESPONSIVE DESIGN - Tax-Consult 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;
    }

    .for-who-wrapper {
        grid-template-columns: 1fr;
    }

    .for-who-image {
        min-height: 340px;
    }

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

    .result-card {
        grid-column: span 1;
    }

    .result-card:nth-child(4),
    .result-card:nth-child(5) {
        grid-column: span 1;
    }
}

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

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

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

    .for-who-grid {
        grid-template-columns: 1fr;
    }

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

/* ============================================
   MOBILE STYLES - До 480px (Tax-Consult 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: auto;
        min-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: 16px;
        margin-bottom: 16px;
    }

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

    .hero-mobile-image {
        display: block;
        position: relative;
        width: 100%;
        height: 304px;
        object-fit: cover;
        object-position: center top;
        z-index: 1;
        margin-top: 14px;
    }

    /* 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;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 16px;
    }

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

    /* For Who */
    .for-who-section .section-title {
        text-align: center;
        margin-bottom: 20px;
    }

    .for-who-wrapper {
        gap: 14px;
    }

    .for-who-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .for-who-card {
        background: #ffffff;
        border: 1px solid #eeeeee;
        border-radius: 30px;
        padding: 30px 20px;
        min-height: auto;
    }

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

    .for-who-card-text {
        font-size: 16px;
    }

    .for-who-image {
        border-radius: 30px;
    }

    /* Results */
    .results-section {
        padding: 40px 0;
    }

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

    .results-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .result-card {
        padding: 30px 20px;
        gap: 18px;
        grid-column: auto;
    }

    .result-card:nth-child(4),
    .result-card:nth-child(5) {
        grid-column: auto;
    }

    .result-title {
        font-size: 20px;
        font-weight: 600;
    }
}

/* ============================================
   SEO SECTIONS (seo1 / seo2 / seo3)
   ============================================ */
.seo-block {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.seo-intro {
    display: flex;
    gap: 119px;
    align-items: flex-start;
    color: #4d4d4d;
    margin-bottom: 24px;
}

.seo-title {
    font-family: 'Merriweather', serif;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 400;
    width: 593px;
    margin: 0;
}

.seo-desc {
    font-size: 20px;
    line-height: 1.3;
    width: 688px;
    margin: 0;
}

.bp-accordion__panel[hidden] {
    display: none !important;
}

.seo-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.seo-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.seo-card-head-text {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.seo-chevron {
    width: 40px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex: 0 0 40px;
}

.seo-chevron img {
    width: 24px;
    height: 24px;
}

.seo-card.is-open .seo-chevron {
    transform: rotate(180deg);
}

.seo-panel {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.seo-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.seo-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    line-height: 1.3;
}

.seo-num {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    color: #979797;
    flex: 0 0 auto;
}

.seo-row-text {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    width: 893px;
    max-width: 100%;
}

.seo-divider {
    height: 1px;
    background: #eeeeee;
}

.seo-bottom {
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
}

@media (max-width: 1200px) {
    .seo-intro {
        flex-direction: column;
        gap: 20px;
    }
    .seo-title,
    .seo-desc {
        width: 100%;
    }
    .seo-row-text {
        width: auto;
    }
}

@media (max-width: 480px) {
    .seo-block {
        padding: 40px 0;
    }

    .seo-intro {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 24px;
    }

    .seo-title {
        font-size: 28px;
        text-align: center;
        width: 100%;
    }

    .seo-desc {
        font-size: 16px;
        width: 100%;
    }

    .seo-card {
        border-radius: 10px;
        padding: 20px;
        gap: 20px;
    }

    .seo-card-head-text {
        font-size: 18px;
    }

    .seo-panel {
        gap: 20px;
    }

    .seo-num {
        font-size: 20px;
    }

    .seo-row {
        flex-direction: column;
        gap: 10px;
    }

    .seo-row-text {
        font-size: 16px;
        width: 100%;
    }

    .seo-bottom {
        font-size: 16px;
    }
}

/* ============================================
   PRICING NEW (pricing-new)
   ============================================ */
.pricing-new {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

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

.pricing-new-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 30px;
}

.pricing-new-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 198px max-content;
    align-items: center;
    column-gap: 20px;
    row-gap: 20px;
}

.pricing-new-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    max-width: 778px;
}

.pricing-new-price {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    width: 198px;
    white-space: nowrap;
}

.pricing-new-order {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.pricing-new-order-text {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4d4d4d;
}

.pricing-new-order-icon {
    width: 60px;
    height: 60px;
    background: #4d4d4d;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px;
}

.pricing-new-order-icon img {
    width: 19px;
    height: 19px;
    filter: brightness(0) invert(1);
    transform: rotate(0deg);
}

.pricing-new-divider {
    height: 1px;
    background: #eeeeee;
    margin: 28px 0;
}

@media (max-width: 480px) {
    .pricing-new {
        padding: 40px 0;
    }

    .pricing-new .section-title {
        margin-bottom: 20px;
        text-align: center;
    }

    .pricing-new-card {
        border-radius: 10px;
        padding: 20px;
    }

    .pricing-new-line {
        grid-template-columns: minmax(0, 1fr) max-content;
        grid-template-areas:
            "name price"
            "order order";
        row-gap: 23px;
        column-gap: 20px;
        align-items: start;
    }

    .pricing-new-name,
    .pricing-new-price {
        font-size: 16px;
    }

    .pricing-new-name {
        grid-area: name;
    }

    .pricing-new-price {
        grid-area: price;
        width: auto;
        text-align: right;
        white-space: nowrap;
    }

    .pricing-new-order-text {
        font-size: 14px;
        letter-spacing: 0.42px;
    }

    .pricing-new-order {
        grid-area: order;
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }

    .pricing-new-order-icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
        flex: 0 0 44px;
    }

    .pricing-new-divider {
        margin: 30px 0;
    }
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

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

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    align-self: start;
}

.faq-q {
    width: 100%;
    display: flex;
    gap: 2px;
    align-items: center;
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-q-text {
    flex: 1 1 auto;
    font-size: 18px;
    line-height: 1.3;
    color: #3c3b3b;
}

.faq-chevron {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex: 0 0 40px;
}

.faq-chevron img {
    width: 24px;
    height: 24px;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
}

.faq-a {
    padding: 10px 20px 20px;
}

.faq-a p {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    color: #4d4d4d;
}

@media (max-width: 480px) {
    .faq-section {
        padding: 40px 0;
    }

    .faq-section .section-title {
        margin-bottom: 20px;
        text-align: center;
    }

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

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

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