/* =============================================
   Block 4.4 v2: Прокси — GoLogin-style cards
   ============================================= */

.proxy-v2 {
    padding: 80px 0 60px;
    margin-top: 100px;
    background-color: #f4f5f9;
}

/* header */
.proxy-v2-header {
    text-align: center;
    margin-bottom: 50px;
}

.proxy-v2-header h2 {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 52px;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: #1c1c1c;
}

.proxy-v2-header h2 span {
    color: #1c91f8;
}

.proxy-v2-subtitle {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* cards grid */
.proxy-v2-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1140px;
    margin: 0 auto 50px;
    padding: 0 15px;
}

/* card */
.proxy-v2-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border: 1px solid #D2D2D5;
    border-radius: 16px;
    padding: 24px 24px 32px;
    min-height: 480px;
    transition: box-shadow 0.3s ease;
}

.proxy-v2-card:hover {
    box-shadow: 0 8px 32px rgba(28, 145, 248, 0.08);
}

.proxy-v2-card--dark {
    background: #1c1c1c;
    border-color: #1c1c1c;
}

/* top row: label + badge */
.proxy-v2-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proxy-v2-label {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.33;
    letter-spacing: -0.01em;
    color: #98989F;
}

.proxy-v2-card--dark .proxy-v2-label {
    color: #98989F;
}

.proxy-v2-badge {
    display: inline-block;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.33;
    letter-spacing: -0.01em;
    color: #1c1c1c;
    background: #DEF7E9;
    padding: 2px 10px;
    border-radius: 10px;
}

/* title */
.proxy-v2-card h3 {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #1c1c1c;
    margin: 0;
}

.proxy-v2-card--dark h3 {
    color: #fff;
}

/* features list */
.proxy-v2-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proxy-v2-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: #1c1c1c;
}

.proxy-v2-card--dark .proxy-v2-features li {
    color: #fff;
}

.proxy-v2-features li svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

.proxy-v2-check { fill: #1c91f8; }

/* footer: pushed to bottom */
.proxy-v2-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

/* CTA button */
.proxy-v2-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.01em;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, gap 0.3s ease;
    border: none;
    cursor: pointer;
}

.proxy-v2-cta-arrow {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.proxy-v2-cta:hover .proxy-v2-cta-arrow {
    animation: arrowBounce 0.6s ease infinite;
}

.proxy-v2-cta:hover {
    gap: 8px;
}

.proxy-v2-cta--primary {
    background: #1c91f8;
    color: #fff;
}

.proxy-v2-cta--primary:hover {
    background: #0d7de8;
}

.proxy-v2-cta--secondary {
    background: #F2F2F2;
    color: #1c1c1c;
}

.proxy-v2-cta--secondary:hover {
    background: #E7E7E7;
}

/* price row */
.proxy-v2-price-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    flex-wrap: wrap;
}

.proxy-v2-price-current {
    color: #1c1c1c;
}

.proxy-v2-card--dark .proxy-v2-price-current {
    color: #fff;
}

/* best-for line */
.proxy-v2-bestfor-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.proxy-v2-bestfor-row svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.proxy-v2-bestfor-text {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.01em;
    color: #1c91f8;
}

.proxy-v2-card--dark .proxy-v2-bestfor-text {
    color: #fff;
}

/* ---- mini services (GoLogin-style row) ---- */
.proxy-v2-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1140px;
    margin: 60px auto 0;
    padding: 0 15px;
    border: 1px solid #D2D2D5;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.proxy-v2-svc {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 20px;
    border-right: 1px solid #D2D2D5;
    text-decoration: none;
    color: inherit;
    transition: background 0.25s ease;
}

.proxy-v2-svc:last-child {
    border-right: none;
}

.proxy-v2-svc:hover {
    background: rgba(28, 145, 248, 0.04);
}

.proxy-v2-svc-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(28, 145, 248, 0.08);
}

.proxy-v2-svc-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #1c91f8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.proxy-v2-svc-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proxy-v2-svc-name {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1c;
    line-height: 1.3;
}

.proxy-v2-svc-desc {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    color: #888;
}

/* =============================================
   Section title before comparison table
   ============================================= */

.pv2t-title-wrap {
    text-align: center;
    margin: 80px auto 0;
    max-width: 560px;
    padding: 0 15px;
}

.pv2t-title {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #36363D 75%, #9090A3 118%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 1px;
}

/* =============================================
   Comparison table (GoLogin grid style)
   ============================================= */

/* Hide swipe hint on desktop */
.pv2t-swipe-hint {
    display: none;
}

.proxy-v2-table {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 0 16px;
    max-width: 1140px;
    margin: 40px auto 50px;
    padding: 0 15px;
    font-family: "HelveticaNeueCyr", sans-serif;
}

/* every "row" spans all columns via subgrid or display:contents */
.pv2t-row {
    display: contents;
}

/* cells */
.pv2t-cell {
    padding: 24px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: #1c1c1c;
    border-top: 1px solid #D2D2D5;
}

.pv2t-label-col {
    justify-content: flex-start;
    border-top: 1px solid #D2D2D5;
    padding-left: 0;
}

.pv2t-val-col {
    border-left: 1px solid #D2D2D5;
    border-right: 1px solid #D2D2D5;
    text-align: center;
}

/* dark column (datacenter) */
.pv2t-dark {
    background: #1c1c1c;
    color: #fff;
    border-color: #1c1c1c;
}

/* header cells */
.pv2t-head-cell {
    flex-direction: column;
    gap: 12px;
    padding: 36px 12px 24px;
    border-top: 1px solid #D2D2D5;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    position: relative;
    background: #fff;
}

.pv2t-head-cell.pv2t-dark {
    background: #1c1c1c;
    border-color: #1c1c1c;
}

.pv2t-head .pv2t-label-col {
    border-top: none;
}

.pv2t-plan-name {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.01em;
    margin: 0;
    color: #1c1c1c;
}

.pv2t-dark .pv2t-plan-name {
    color: #fff;
}

.pv2t-pop-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #DEF7E9;
    color: #1c1c1c;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.33;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

/* header buttons */
.pv2t-head-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background 0.3s;
    background: #F2F2F2;
    color: #1c1c1c;
}

.pv2t-head-btn:hover {
    background: #E7E7E7;
}

.pv2t-head-btn--primary {
    background: #1c91f8;
    color: #fff;
}

.pv2t-head-btn--primary:hover {
    background: #0d7de8;
}

/* footer cells */
.pv2t-foot-cell {
    padding: 36px 12px 24px;
    border-bottom: 1px solid #D2D2D5;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    align-items: stretch;
}

.pv2t-dark-bottom {
    border-bottom-color: #1c1c1c;
}

.pv2t-foot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    min-height: 52px;
    width: 100%;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.01em;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
    background: #F2F2F2;
    color: #1c1c1c;
    box-sizing: border-box;
}

.pv2t-foot-btn:hover {
    background: #E7E7E7;
}

.pv2t-foot-btn--primary {
    background: #1c91f8;
    color: #fff;
}

.pv2t-foot-btn--primary:hover {
    background: #0d7de8;
}

/* param name in label column */
.pv2t-param {
    font-size: 14px;
    font-weight: 500;
    color: #1c1c1c;
}

/* cell color marks */
.pv2t-good { color: #34c759; font-weight: 500; }
.pv2t-bad  { color: #ff3b30; font-weight: 500; }
.pv2t-warn { color: #f5a623; font-weight: 500; }

.pv2t-dark .pv2t-good { color: #5cdb7f; }
.pv2t-dark .pv2t-bad  { color: #ff6b6b; }
.pv2t-dark .pv2t-warn { color: #ffc554; }

/* ---- responsive ---- */
@media (max-width: 1200px) {
    .proxy-v2-header h2 {
        font-size: 42px;
    }
}

@media (max-width: 991px) {
    .proxy-v2 {
        padding: 60px 0 40px;
    }
    .proxy-v2-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .proxy-v2-services {
        grid-template-columns: repeat(2, 1fr);
    }
    .proxy-v2-svc:nth-child(2) {
        border-right: none;
    }
    .proxy-v2-svc:nth-child(1),
    .proxy-v2-svc:nth-child(2) {
        border-bottom: 1px solid #D2D2D5;
    }
    .pv2t-title {
        font-size: 28px;
    }
    .pv2t-title-wrap {
        max-width: 72%;
    }
    .proxy-v2-table {
        gap: 0 8px;
        font-size: 13px;
    }
    .pv2t-plan-name {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .proxy-v2 {
        padding: 40px 14px 30px;
    }
    .proxy-v2-header {
        margin-bottom: 30px;
    }
    .proxy-v2-header h2 {
        font-size: 30px;
    }
    .proxy-v2-subtitle {
        font-size: 15px;
    }
    .proxy-v2-cards {
        grid-template-columns: 1fr;
    }
    .proxy-v2-card {
        min-height: auto;
    }
    .proxy-v2-services {
        grid-template-columns: 1fr;
    }
    .proxy-v2-svc {
        border-right: none;
        border-bottom: 1px solid #D2D2D5;
    }
    .proxy-v2-svc:last-child {
        border-bottom: none;
    }
    .pv2t-title {
        font-size: 24px;
    }
    .pv2t-title-wrap {
        max-width: 80%;
        margin-top: 50px;
    }
    /* Scrollable wrapper */
    .proxy-v2-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 14px;
        position: relative;
    }

    /* Swipe hint above table */
    .pv2t-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 10px;
        color: #1c91f8;
        font-size: 13px;
        font-weight: 500;
        user-select: none;
        animation: pv2tSwipeHint 2s ease-in-out infinite;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .pv2t-swipe-hint.hidden-hint {
        opacity: 0 !important;
        transform: translateY(-10px) !important;
        pointer-events: none;
    }
    .pv2t-swipe-finger {
        font-size: 20px;
        animation: pv2tFingerSwipe 2s ease-in-out infinite;
    }
    .pv2t-swipe-hint.hidden-hint .pv2t-swipe-finger {
        animation: none;
    }
    .pv2t-swipe-chevrons {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    @keyframes pv2tSwipeHint {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(18px); }
    }
    @keyframes pv2tFingerSwipe {
        0%, 100% { transform: translateX(0) rotate(-15deg); }
        50% { transform: translateX(22px) rotate(-15deg); }
    }

    /* Badge hides when table is scrolled */
    .proxy-v2-table-wrap.scrolled .pv2t-pop-badge {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Table: fixed first column + scrollable values */
    .proxy-v2-table {
        display: grid;
        grid-template-columns: 100px repeat(3, minmax(120px, 1fr));
        min-width: 480px;
        gap: 0;
        padding: 0;
        margin: 30px auto 40px;
    }

    /* Sticky first column */
    .pv2t-label-col {
        position: sticky;
        left: 0;
        z-index: 2;
        background: #f4f5f9;
        padding: 10px 8px;
        border-right: 1px solid #D2D2D5;
    }
    .pv2t-head .pv2t-label-col {
        background: #f4f5f9;
    }

    .pv2t-cell {
        padding: 8px 6px;
        font-size: 11px;
        word-break: break-word;
    }
    .pv2t-plan-name {
        font-size: 11px;
        line-height: 1.3;
    }
    .pv2t-head-cell,
    .pv2t-foot-cell {
        padding: 14px 6px;
    }
    .pv2t-head-btn,
    .pv2t-foot-btn {
        font-size: 11px;
        padding: 6px 8px;
    }
    .pv2t-pop-badge {
        font-size: 9px;
        padding: 2px 6px;
        top: -9px;
    }
    .pv2t-param {
        font-size: 11px;
    }

    /* Shorten button text on mobile */
    .pv2t-foot-btn {
        font-size: 0;
    }
    .pv2t-foot-btn::after {
        content: attr(data-short);
        font-size: 12px;
    }
}
