/**
 * B2B Pages Styles
 * Все стили изолированы под классом .b2b-pages
 */

/* Before-After Section */
.b2b-pages .b2b-before-after-section {
    margin-top: 60px;
}

.b2b-pages.comparison-page .landing-card .landing-card-right-block{
  width: 100%;
}

.b2b-pages.comparison-page .comparsion-footer-section .landing-card .landing-card-right-block{
    width: 70%;
}

.b2b-pages .b2b-before-after-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.b2b-pages .landing-card-left-block{
    width: 100%;
}


.b2b-pages .landing-card.type-1.w-bc .landing-card-left-block .landing-card-content-header{
    align-items: flex-start;
}

.b2b-pages .landing-card-left-block .landing-card-content-header{
    align-items: center;
    width: 100%;
}

.b2b-pages .b2b-before-after-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Problem Block */
.b2b-pages .b2b-problem-block {
    background: #F8F8FF;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    gap: 20px;
}

.b2b-pages .b2b-problem-block .b2b-block-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E53E3E;
}

/* Solution Block */
.b2b-pages .b2b-solution-block {
    background: #DBF9E7;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    gap: 20px;
}

.b2b-pages .b2b-solution-block .b2b-block-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38A169;
}

/* Block Content */
.b2b-pages .b2b-block-content {
    flex: 1;
}

.b2b-pages .b2b-block-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
    color: #24223E;
}

.b2b-pages .b2b-block-text {
    font-size: 16px;
    line-height: 1.6;
    color: #5B596E;
    margin: 0;
}

/* Action Button */
.b2b-pages .b2b-action-button {
    display: inline-block;
    background: #3182CE;
    color: #FFF;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.b2b-pages .b2b-action-button:hover {
    background: #2C5282;
    color: #FFF;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Image Container */
.b2b-pages .b2b-before-after-image {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.b2b-pages .b2b-before-after-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .b2b-pages .b2b-before-after-container {
        flex-direction: column;
        gap: 40px;
    }

    .b2b-pages .b2b-before-after-image {
        max-width: 100%;
    }

    .b2b-pages .b2b-problem-block,
    .b2b-pages .b2b-solution-block {
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .b2b-pages .b2b-problem-block,
    .b2b-pages .b2b-solution-block {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .b2b-pages .b2b-block-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .b2b-pages .b2b-block-title {
        font-size: 14px;
    }

    .b2b-pages .b2b-block-text {
        font-size: 14px;
    }

    .b2b-pages .b2b-action-button {
        width: 100%;
        text-align: center;
    }
}

/* ===== Capabilities List Section ===== */
.b2b-pages .b2b-capabilities-section {
    margin-top: 60px;
}

.b2b-pages .b2b-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    /* margin-top: 40px; */
}

/* Capability Card */
.b2b-pages .b2b-capability-card {
    background: #F8F8FF;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Color variations */
.b2b-pages .b2b-capability-card.yellow {
    background: #FEFCE8;
}

.b2b-pages .b2b-capability-card.blue {
    background: #EFF6FF;
}

.b2b-pages .b2b-capability-card.pink {
    background: #FFF1F2;
}

.b2b-pages .b2b-capability-card.green {
    background: #F0FDF4;
}

.b2b-pages .b2b-capability-card.purple {
    background: #FAF5FF;
}

/* Card Icon */
.b2b-pages .b2b-capability-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.b2b-pages .b2b-capability-card-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Card Title */
.b2b-pages .b2b-capability-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #24223E;
}

/* Card Text */
.b2b-pages .b2b-capability-card-text {
    font-size: 16px;
    line-height: 1.6;
    color: #5B596E;
    margin: 0;
}

/* Button Wrapper */
.b2b-pages .b2b-capabilities-button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    /* margin-top: 40px; */
}

/* Responsive for Capabilities */
@media (max-width: 992px) {
    .b2b-pages .b2b-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .b2b-pages .b2b-capabilities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .b2b-pages .b2b-capability-card {
        padding: 24px;
    }

    .b2b-pages .b2b-capability-card-icon {
        width: 40px;
        height: 40px;
    }

    .b2b-pages .b2b-capability-card-icon img {
        width: 24px;
        height: 24px;
    }

    .b2b-pages .b2b-capability-card-title {
        font-size: 16px;
    }

    .b2b-pages .b2b-capability-card-text {
        font-size: 14px;
    }
}

/* ===== Integrations Section ===== */
.b2b-pages .b2b-integrations-section {
    margin-top: 60px;
}

/* Integrations Logos Grid */
.b2b-pages .b2b-integrations-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    /* margin-top: 40px; */
    padding: 20px 0;
}

.b2b-pages .b2b-integration-logo {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.b2b-pages .b2b-integration-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.b2b-pages .b2b-integration-logo img {
    max-height: 100%;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(0%);
}

/* Integrations Footer (похож на preferences-footer) */
.b2b-pages .b2b-integrations-footer {
    margin-top: 48px;
    padding: 32px;
    background: #F8F9FA;
    border-radius: 16px;
    text-align: center;
}

.b2b-pages .b2b-integrations-footer-text {
    font-size: 18px;
    line-height: 1.6;
    color: #24223E;
    font-weight: 500;
}

.b2b-pages .b2b-integrations-footer-text .highlight {
    color: #3182CE;
    font-weight: 700;
}

/* Responsive for Integrations */
@media (max-width: 992px) {
    .b2b-pages .b2b-integrations-logos {
        gap: 24px;
    }

    .b2b-pages .b2b-integration-logo {
        height: 40px;
    }

    .b2b-pages .b2b-integration-logo img {
        max-width: 100px;
    }
}

@media (max-width: 576px) {
    .b2b-pages .b2b-integrations-logos {
        gap: 20px;
    }

    .b2b-pages .b2b-integration-logo {
        height: 36px;
    }

    .b2b-pages .b2b-integration-logo img {
        max-width: 80px;
    }

    .b2b-pages .b2b-integrations-footer {
        padding: 24px;
    }

    .b2b-pages .b2b-integrations-footer-text {
        font-size: 16px;
    }
}

/* ===== Comparison Table Section ===== */
.b2b-pages .b2b-comparison-table-section {
    margin-top: 60px;
}

.b2b-pages .b2b-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* margin-top: 40px; */
}

/* Comparison Column */
.b2b-pages .b2b-comparison-column {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Column Header */
.b2b-pages .b2b-comparison-column-header {
    padding: 24px;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid #E4E6EF;
}

/* Manual column (yellow) */
.b2b-pages .b2b-comparison-column.manual .b2b-comparison-column-header {
    background: #F5F9D9;
}

/* TravelHub column (blue) - featured */
.b2b-pages .b2b-comparison-column.travelhub .b2b-comparison-column-header {
    background: #3968BF;
}

/* Competitors column (yellow) */
.b2b-pages .b2b-comparison-column.competitors .b2b-comparison-column-header {
    background: #F5F9D9;
}

.b2b-pages .b2b-comparison-column-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    color: #24223E;
    letter-spacing: 0.05em;
}

/* Logo for TravelHub column */
.b2b-pages .b2b-comparison-logo {
    max-width: 140px;
    height: auto;
}

/* Column Content */
.b2b-pages .b2b-comparison-column-content {
    background: #3968BF;
    padding: 32px 24px;
    flex: 1;
}

.b2b-pages .b2b-comparison-column.manual .b2b-comparison-column-content,
.b2b-pages .b2b-comparison-column.competitors .b2b-comparison-column-content {
    background: #F5F9D9;
}

/* Comparison List */
.b2b-pages .b2b-comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.b2b-pages .b2b-comparison-list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.b2b-pages .b2b-comparison-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.b2b-pages .b2b-comparison-icon img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Positive items (checkmark) */
.b2b-pages .b2b-comparison-list-item.positive .b2b-comparison-icon,.b2b-pages .b2b-comparison-list-item.negative .b2b-comparison-icon {
    background: #FFFFFF;
    border-radius: 50%;
}

.b2b-pages .b2b-comparison-text {
    font-size: 15px;
    line-height: 1.6;
    color: #24223E;
    flex: 1;
}

.b2b-pages .travelhub .b2b-comparison-text{
    color: #fff;
}

/* Button Wrapper */
.b2b-pages .b2b-comparison-button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    /* margin-top: 40px; */
}

/* Responsive for Comparison Table */
@media (max-width: 992px) {
    .b2b-pages .b2b-comparison-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .b2b-pages .b2b-comparison-column-header {
        min-height: 80px;
        padding: 20px;
    }

    .b2b-pages .b2b-comparison-column-content {
        padding: 24px 20px;
    }
}

@media (max-width: 576px) {
    .b2b-pages .b2b-comparison-column-header {
        padding: 16px;
        min-height: 70px;
    }

    .b2b-pages .b2b-comparison-column-title {
        font-size: 16px;
    }

    .b2b-pages .b2b-comparison-logo {
        max-width: 120px;
    }

    .b2b-pages .b2b-comparison-column-content {
        padding: 20px 16px;
    }

    .b2b-pages .b2b-comparison-list {
        gap: 16px;
    }

    .b2b-pages .b2b-comparison-text {
        font-size: 14px;
    }

    .b2b-pages .b2b-comparison-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
}

/* ===== Client Cases Section ===== */
.b2b-pages .b2b-client-cases-section {
    margin-top: 60px;
}

.b2b-pages .b2b-client-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    /* margin-top: 40px; */
}

/* Client Case Card */
.b2b-pages .b2b-client-case-card {
    background: #F4F7FD;
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.b2b-pages .b2b-case-card-header {
    padding: 24px 32px;
    background: #F4F7FD;
}

.b2b-pages .b2b-case-company-name {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    color: #24223E;
    letter-spacing: 0.05em;
}

.b2b-pages .b2b-case-card-content {
    padding: 32px;
    background: #F4F7FD;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.b2b-pages .b2b-case-block {
    display: flex;
    flex-direction: column;
}

.b2b-pages .b2b-case-text {
    font-size: 15px;
    line-height: 1.7;
    color: #5B596E;
    margin: 0;
}

.b2b-pages .b2b-client-cases-section .landing-card{
    background: #B6D2E0;
}

.b2b-faq-section .section-header{
    margin-bottom: 0px;
}

.b2b-pages .b2b-case-card-footer {
    padding: 20px 32px;
    background: #F4F7FD;
    border-top: 1px solid #F0F0F5;
}

.b2b-pages .b2b-case-author {
    font-size: 15px;
    font-weight: 600;
    color: #24223E;
    margin-bottom: 4px;
}

.b2b-pages .b2b-case-position {
    font-size: 14px;
    color: #5B596E;
}

/* Responsive for Client Cases */
@media (max-width: 992px) {
    .b2b-pages .b2b-client-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .b2b-pages .b2b-case-card-header {
        padding: 20px 24px;
    }

    .b2b-pages .b2b-case-company-name {
        font-size: 18px;
    }

    .b2b-pages .b2b-case-card-content {
        padding: 24px;
        gap: 16px;
    }

    .b2b-pages .b2b-case-text {
        font-size: 14px;
    }

    .b2b-pages .b2b-case-card-footer {
        padding: 16px 24px;
    }

    .b2b-pages .b2b-case-author {
        font-size: 14px;
    }

    .b2b-pages .b2b-case-position {
        font-size: 13px;
    }
}

/* ===== For Whom Section ===== */
.b2b-pages .b2b-for-whom-section {
    margin-top: 60px;
}

.b2b-pages .b2b-for-whom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* For Whom Card */
.b2b-pages .b2b-for-whom-card {
    border-radius: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
    overflow: hidden;
    min-height: 200px;
    position: relative;
}

/* Color variations */
.b2b-pages .b2b-for-whom-card.purple {
    background: #CBC9E3;
}

.b2b-pages .b2b-for-whom-card.yellow {
    background: #FDFCE8;
}

.b2b-pages .b2b-for-whom-card.orange {
    background: #FDEEE8;
}

.b2b-pages .b2b-for-whom-card.green {
    background: #C9FFE9;
}

/* Image Section */
.b2b-pages .b2b-for-whom-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.b2b-pages .b2b-for-whom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Section */
.b2b-pages .b2b-for-whom-content {
    flex: 1;
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.b2b-pages .b2b-for-whom-role {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #24223E;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.b2b-pages .b2b-for-whom-description {
    font-size: 16px;
    line-height: 1.6;
    color: #5B596E;
    margin: 0;
}

/* Button Wrapper */
.b2b-pages .b2b-for-whom-button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Responsive for For Whom */
@media (max-width: 992px) {
    .b2b-pages .b2b-for-whom-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .b2b-pages .b2b-for-whom-card {
        min-height: 180px;
    }

    .b2b-pages .b2b-for-whom-image {
        width: 160px;
        height: 160px;
    }

    .b2b-pages .b2b-for-whom-role {
        font-size: 20px;
    }

    .b2b-pages .b2b-for-whom-description {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .b2b-pages .b2b-for-whom-card {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 24px;
        gap: 20px;
    }

    .b2b-pages .b2b-for-whom-image {
        width: 140px;
        height: 140px;
    }

    .b2b-pages .b2b-for-whom-content {
        padding: 0;
    }

    .b2b-pages .b2b-for-whom-role {
        font-size: 18px;
    }

    .b2b-pages .b2b-for-whom-description {
        font-size: 14px;
    }

    .b2b-pages .b2b-for-whom-button-wrapper {
        margin-top: 32px;
    }
}

/* ===== Booking Process Section ===== */
.b2b-pages .b2b-booking-process-section {
    margin-top: 60px;
}

.b2b-pages .b2b-booking-process-section .landing-card {
    position: relative;
    overflow: hidden;
}

/* Background images */
.b2b-pages .b2b-booking-process-section .landing-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background-image: url('/images/remaster/elipsis-brown-background-bottom-left.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    pointer-events: none;
    z-index: 0;
}

.b2b-pages .b2b-booking-process-section .landing-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-image: url('/images/remaster/elipsis-brown-background-top-right.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    pointer-events: none;
    z-index: 0;
}

.b2b-pages .b2b-booking-process-section .section-header,
.b2b-pages .b2b-booking-process-grid,
.b2b-pages .b2b-booking-process-button-wrapper {
    position: relative;
    z-index: 1;
}

.b2b-pages .b2b-booking-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 40px;
    position: relative;
}

/* Lines between steps */
.b2b-pages .b2b-booking-process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 28px);
    width: calc(100% + 40px - 56px);
    height: 1px;
    background: #f4f4fd;
    border: none;
    z-index: 0;
}

/* Process Step */
.b2b-pages .b2b-booking-process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    position: relative;
}

.b2b-pages .b2b-process-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #F4F4FD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #24223E;
}

.b2b-pages .b2b-process-step-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    color: #24223E;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.b2b-pages .b2b-process-step-description {
    font-size: 16px;
    line-height: 1.6;
    color: #5B596E;
    margin: 0;
}

/* Button Wrapper */
.b2b-pages .b2b-booking-process-button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Responsive for Booking Process */
@media (max-width: 992px) {
    .b2b-pages .b2b-booking-process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    /* Hide lines on tablet/mobile */
    .b2b-pages .b2b-booking-process-step:not(:last-child)::after {
        display: none;
    }

    .b2b-pages .b2b-booking-process-section .landing-card::before,
    .b2b-pages .b2b-booking-process-section .landing-card::after {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .b2b-pages .b2b-booking-process-grid {
        gap: 32px;
        margin-top: 40px;
        padding: 0;
    }

    .b2b-pages .b2b-process-step-number {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .b2b-pages .b2b-process-step-title {
        font-size: 18px;
    }

    .b2b-pages .b2b-process-step-description {
        font-size: 14px;
    }

    .b2b-pages .b2b-booking-process-section .landing-card::before,
    .b2b-pages .b2b-booking-process-section .landing-card::after {
        width: 150px;
        height: 150px;
    }

    .b2b-pages .b2b-booking-process-button-wrapper {
        margin-top: 40px;
    }
}
