/* ═══════════════════════════════════════════════════════════════════════════
   Services Page Styles
   ═══════════════════════════════════════════════════════════════════════════ */


/* ── Base ───────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Code 3", "IBM Plex Mono", monospace;
    font-style: normal;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: all .3s;
}


/* ── Container ──────────────────────────────────────────────────────────────── */

.container {
    max-width: 1390px;
    margin: 0 auto;
    padding: 0 15px;
}


/* ── Buttons ────────────────────────────────────────────────────────────────── */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .3s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--border {
    color: #000;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 15px;
    border-radius: 333px;
    border: 1px solid #E85711;
    padding: 10px 20px;
    width: fit-content;
    background: transparent;
    cursor: pointer;
}

.btn--border:hover {
    background: #E85711;
    color: #fff;
}


/* ── Page wrapper ───────────────────────────────────────────────────────────── */

.ppc-services-page {
    position: relative;
    padding-bottom: 80px;
    background: #F3F2F0;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════════════════════════════ */

.sv-breadcrumbs {
    padding: 20px 0 0;
}

.sv-breadcrumbs__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.sv-breadcrumbs__list li {
    color: rgba(22, 21, 26, 0.40);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.sv-breadcrumbs__list li a {
    color: rgba(22, 21, 26, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.sv-breadcrumbs__list li a:hover {
    color: #E85711;
}

.sv-breadcrumbs__list li + li::before {
    content: "/";
    margin: 0 8px;
    color: rgba(22, 21, 26, 0.25);
}

.sv-breadcrumbs__list li[aria-current="page"] {
    color: rgba(22, 21, 26, 0.70);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════════ */

.sv-header {
    padding: 30px 0 10px;
}

.sv-header__title {
    color: #16151A;
    font-size: 42px;
    font-weight: 500;
    line-height: 48px;
    margin: 0;
}

.sv-header__subtitle {
    color: rgba(0, 0, 0, 0.70);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin: 12px 0 0;
    max-width: 720px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   CATEGORY CARD
   ═══════════════════════════════════════════════════════════════════════════════ */

.sv-category {
    padding: 20px 0;
}

.sv-category__card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    border: 1px solid rgba(22, 21, 26, 0.08);
    overflow: hidden;
}

.sv-category__header {
    padding: 32px 40px 24px;
    background: linear-gradient(135deg, #1C1B20 0%, #2A2830 100%);
}

.sv-category__name {
    color: #fff;
    font-size: 28px;
    font-weight: 500;
    line-height: 34px;
    margin: 0 0 8px;
}

.sv-category__desc {
    color: rgba(255, 255, 255, 0.60);
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    margin: 0;
    max-width: 800px;
}

.sv-category__body {
    padding: 0 40px 32px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════════════════════════ */

.sv-table {
    width: 100%;
}

.sv-table__head {
    display: grid;
    grid-template-columns: 1fr 140px 180px 120px;
    column-gap: 16px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(22, 21, 26, 0.10);
}

.sv-table__head .sv-table__col {
    color: rgba(22, 21, 26, 0.45);
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
}

.sv-table__row {
    display: grid;
    grid-template-columns: 1fr 140px 180px 120px;
    column-gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(22, 21, 26, 0.06);
    transition: background 0.2s;
}

.sv-table__row:hover {
    background: rgba(232, 87, 17, 0.04);
}

.sv-table__row:last-child {
    border-bottom: none;
}

/* Hidden rows */
.sv-item--hidden {
    display: none;
}


/* ── Name column ────────────────────────────────────────────────────────────── */

.sv-service-name {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sv-service-name__logo {
    width: 80px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.sv-service-name__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 21, 26, 0.06);
    color: rgba(22, 21, 26, 0.35);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.sv-service-name__info {
    flex: 1 1 0;
    min-width: 0;
}

.sv-service-name__text {
    color: #16151A;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.sv-service-name__desc {
    color: rgba(22, 21, 26, 0.50);
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    margin-top: 2px;
    max-width: 420px;
}


/* ── Price column ───────────────────────────────────────────────────────────── */

.sv-table__col--price {
    color: #16151A;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
}


/* ── Discount / Promo column ─────────────────────────────────────────────────── */

.sv-table__col--discount {
    overflow: hidden;
}

.sv-promo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.sv-promo__code {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(232, 87, 17, 0.10);
    color: #E85711;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px dashed rgba(232, 87, 17, 0.35);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sv-promo__code:hover {
    background: rgba(232, 87, 17, 0.18);
}

.sv-promo__code.copied {
    background: rgba(34, 160, 70, 0.12);
    color: #22a046;
    border-color: rgba(34, 160, 70, 0.30);
}

.sv-promo__icon {
    flex-shrink: 0;
}

.sv-promo__tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sv-promo__info {
    color: rgba(22, 21, 26, 0.35);
    cursor: help;
    transition: color 0.2s;
}

.sv-promo__info:hover {
    color: #E85711;
}

.sv-promo__tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1C1B20;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.sv-promo__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1C1B20;
}

.sv-promo__tooltip-wrap:hover .sv-promo__tooltip {
    display: block;
}


/* ── Action column ──────────────────────────────────────────────────────────── */

.sv-btn-site {
    font-size: 13px;
    padding: 8px 18px;
}


/* ── Show all button ────────────────────────────────────────────────────────── */

.sv-show-all {
    margin: 24px auto 0;
    font-size: 15px;
    padding: 12px 28px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .sv-category__header {
        padding: 24px 20px 18px;
    }

    .sv-category__body {
        padding: 0 20px 24px;
    }

    .sv-category__card {
        border-radius: 12px;
    }

    .sv-table__head {
        display: none;
    }

    .sv-table__row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 20px 0;
    }

    .sv-table__row.sv-item--hidden {
        display: none;
    }

    .sv-table__col--name {
        width: 100%;
    }

    .sv-service-name__desc {
        margin-top: 4px;
        max-width: 100%;
    }

    .sv-table__col--price {
        font-size: 14px;
        color: rgba(22, 21, 26, 0.65);
    }

    .sv-table__col--price::before {
        content: "Цена: ";
        font-weight: 400;
        color: rgba(22, 21, 26, 0.45);
    }

    .sv-table__col--discount {
        margin-left: auto;
        max-width: 100%;
    }

    .sv-promo__code span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sv-table__col--action {
        width: 100%;
    }

    .sv-btn-site {
        width: 100%;
    }
    .sv-service-name {
    align-items: flex-start;
}

}

@media (max-width: 600px) {
    .sv-header__title {
        font-size: 30px;
        line-height: 36px;
    }

    .sv-category__name {
        font-size: 22px;
        line-height: 28px;
    }

    .sv-service-name__logo {
        width: 64px;
        height: 36px;
    }
}
