/* ===== SERVICE PAGE ===== */

/* Banner (matches trade-in style) */
.svc-banner {
    position: relative !important;
    height: 598px !important;
    background: #0d0d1a !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    margin-bottom: 48px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

.svc-banner__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 0 0;
    width: 100%;
}

.svc-banner__title {
    font-family: 'DrukWideCyr', 'Impact', sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 9vw, 180px);
    line-height: 0.88;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0 0 20px;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    display: block;
}

.svc-banner__sub {
    font-size: clamp(14px, 1.5vw, 18px);
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0 0 28px;
    font-weight: 400;
}

.svc-banner__btn {
    display: inline-block;
    padding: 14px 40px;
    background: #ffffff;
    color: #111111;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.svc-banner__btn:hover {
    background: #f0f0f0;
    color: #111111;
    text-decoration: none;
    transform: translateY(-2px);
}

.svc-banner__logo {
    margin-top: 24px;
}

.svc-banner__logo svg {
    width: auto;
    height: 52px;
    display: inline-block;
}

.svc-banner__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: url('../image/service-banner.jpg') center center / cover no-repeat;
    z-index: 1;
    pointer-events: none;
}

.svc-banner__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, rgba(0,0,0,0.82) 0%, rgba(15,18,40,0.65) 30%, rgba(56,56,63,0.45) 80%);
    z-index: 2;
}

@media (max-width: 992px) {
    .svc-banner { height: 483px !important; }
}

@media (max-width: 768px) {
    .svc-banner { height: 437px !important; border-radius: 12px !important; }
    .svc-banner__content { padding-top: 32px; }
    .svc-banner__logo svg { height: 38px; }
}

@media (max-width: 480px) {
    .svc-banner { height: 391px !important; border-radius: 10px !important; }
    .svc-banner__content { padding-top: 24px; }
    .svc-banner__btn { padding: 12px 28px; font-size: 14px; }
    .svc-banner__logo svg { height: 28px; }
}

/* How it works */
.svc-how {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 48px 40px;
    margin-bottom: 48px;
}

.svc-how__heading {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 32px;
    line-height: 1.2;
}

.svc-how__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.svc-how__card {
    background: #2a2a2a;
    border-radius: 14px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
}

.svc-how__card:hover { background: #333; }

.svc-how__card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.svc-how__card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}

.svc-how__card-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin: 0;
}

/* Calculator */
.svc-calc {
    margin-bottom: 60px;
}

.svc-calc__heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 28px;
}

.svc-step {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 16px;
    transition: border-color 0.2s, opacity 0.2s;
}

.svc-step--locked {
    opacity: 0.5;
    pointer-events: none;
}

.svc-step__label {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.svc-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.svc-step__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.svc-step__hint {
    color: #999;
    font-size: 14px;
}

.svc-opt-btn {
    padding: 10px 20px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}

.svc-opt-btn:hover {
    border-color: #1a1a1a;
    background: #f8f8f8;
}

.svc-opt-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Prices table */
.svc-prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
}

.svc-prices-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    border-bottom: 1.5px solid #f0f0f0;
}

.svc-prices-table td {
    padding: 12px 12px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
    color: #1a1a1a;
    vertical-align: middle;
}

    font-weight: 700;
    white-space: nowrap;
}

.svc-prices-table .svc-time-val {
    color: #888;
    font-size: 13px;
    white-space: nowrap;
}

.svc-prices-table .svc-price-zero {
    color: #999;
    font-style: italic;
}

/* Request form */
.svc-request-form {
    max-width: 560px;
}

.svc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.svc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.svc-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.svc-input {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.svc-input:focus { border-color: #1a1a1a; }

.svc-textarea {
    resize: vertical;
    min-height: 80px;
    margin-bottom: 16px;
}

.svc-form-error {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 10px 14px;
    color: #c0392b;
    font-size: 14px;
    margin-bottom: 14px;
}

.svc-submit-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.svc-submit-btn:hover { background: #333; }
.svc-submit-btn:disabled { background: #999; cursor: not-allowed; }

/* Success */
.svc-success {
    text-align: center;
    padding: 60px 20px;
}

.svc-success__icon { margin-bottom: 20px; }

.svc-success__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.svc-success__text {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .svc-how { padding: 36px 24px; border-radius: 14px; }
    .svc-how__cards { grid-template-columns: 1fr; gap: 16px; }
    .svc-how__heading { font-size: 26px; margin-bottom: 24px; }
    .svc-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .svc-how { padding: 28px 18px; border-radius: 12px; margin-bottom: 36px; }
    .svc-how__heading { font-size: 22px; }
    .svc-how__card { padding: 24px 20px; border-radius: 12px; }
    .svc-how__card-title { font-size: 18px; }
    .svc-step { padding: 18px 16px; }
    .svc-calc__heading { font-size: 22px; }
    .svc-opt-btn { padding: 8px 14px; font-size: 13px; }
}

.svc-prices-table .svc-price-free {
    color: #22a06b;
    font-weight: 600;
}

/* Book button in price table */
.svc-action-col {
    width: 120px;
    text-align: right;
    white-space: nowrap;
}

.svc-book-btn {
    display: inline-block;
    padding: 7px 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.svc-book-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Selected row highlight */
.svc-prices-table tr.svc-row--selected {
    background: #f0f7ff;
}

.svc-prices-table tr.svc-row--selected .svc-book-btn {
    background: #2563eb;
}

/* Show more button */
.svc-show-more-btn {
    padding: 8px 18px;
    border: 1.5px dashed #ccc;
    border-radius: 10px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.svc-show-more-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* Hidden buttons (before "show all") */
.svc-opt-btn--hidden {
    display: none !important;
}

/* Prices table 4th column header */
.svc-prices-table th:last-child {
    width: 120px;
}

@media (max-width: 600px) {
    .svc-action-col { width: auto; }
    .svc-book-btn { padding: 6px 12px; font-size: 12px; }
    .svc-prices-table th:last-child { display: none; }
}

/* ===== POPUP MODAL ===== */
.svc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.svc-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    padding: 36px 36px 32px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
    animation: svcModalIn 0.22s ease;
}

@keyframes svcModalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.svc-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f2f2f2;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.svc-modal__close:hover {
    background: #e0e0e0;
    color: #111;
}

.svc-modal__header {
    margin-bottom: 24px;
}

.svc-modal__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    padding-right: 32px;
}

.svc-modal__service {
    font-size: 14px;
    color: #666;
    margin: 0;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-block;
}

/* Body scroll lock when modal open */
body.svc-modal-open {
    overflow: hidden;
}

/* Full-width submit button inside modal */
.svc-submit-btn--full {
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

/* Success state inside modal */
.svc-modal__success {
    text-align: center;
    padding: 16px 0 8px;
}

.svc-modal__success svg {
    margin-bottom: 16px;
}

.svc-modal__success h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.svc-modal__success p {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px;
}

@media (max-width: 560px) {
    .svc-modal {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }
    .svc-modal__title { font-size: 19px; }
}

/* ===== MOBILE PRICES TABLE → CARDS ===== */

/* ===== MOBILE: APPLE-STYLE LIST ===== */
@media (max-width: 680px) {

    /* Wrap becomes a clean list — no outer border on table */
    .svc-prices-table {
        border-collapse: collapse;
        width: 100%;
    }

    /* Hide table header */
    .svc-prices-table thead {
        display: none;
    }

    /* Reset table layout */
    .svc-prices-table,
    .svc-prices-table tbody,
    .svc-prices-table tr {
        display: block;
        width: 100%;
    }

    /* Each row: clean separator list item */
    .svc-prices-table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 16px;
        row-gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
        margin: 0;
        align-items: center;
    }



    /* Selected state */
    .svc-prices-table tr.svc-row--selected {
        background: none;
    }
    .svc-prices-table tr.svc-row--selected td:nth-child(1) {
        color: #007aff;
    }

    /* Service name */
    .svc-prices-table td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        font-size: 15px;
        font-weight: 500;
        color: #1a1a1a;
        letter-spacing: -0.01em;
        padding: 0 0 4px 0;
        border: none;
        line-height: 1.35;
    }

    /* Price + time on same row */
    .svc-prices-table td.svc-price-val {
        grid-column: 1;
        grid-row: 2;
        font-size: 13px;
        font-weight: 400;
        color: #888;
        padding: 0;
        border: none;
        white-space: normal;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Inline time after price */
    .svc-prices-table td.svc-time-val {
        display: none; /* merged into price cell via JS */
    }

    /* "Бесплатно" stays green but smaller */
    .svc-prices-table .svc-price-free {
        font-size: 13px;
        font-weight: 500;
    }

    /* "По запросу" */
    .svc-prices-table .svc-price-zero {
        font-size: 13px;
        font-style: normal;
        color: #aaa;
    }

    /* Book button — right, spans both rows */
    .svc-prices-table td.svc-action-col {
        grid-column: 2;
        grid-row: 1 / 3;
        padding: 0;
        border: none;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
    }

    .svc-book-btn {
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 20px;
        background: #1a1a1a;
        white-space: nowrap;
        letter-spacing: -0.01em;
    }

    .svc-book-btn:hover,
    .svc-prices-table tr.svc-row--selected .svc-book-btn {
        background: #007aff;
        transform: none;
    }

    /* Wrap the prices block in a white card with padding */
    #svc-prices-wrap {
        background: #fff;
        border-radius: 16px;
        padding: 0 16px;
        border: 1.5px solid #ebebeb;
    }
}

/* Time meta inside price cell (visible on mobile via .svc-price-val) */
.svc-price-time {
    display: none; /* hidden on desktop — desktop has its own column */
}

@media (max-width: 680px) {
    .svc-price-time {
        display: inline;
        color: #bbb;
        font-size: 12px;
        font-weight: 400;
    }
    .svc-price-time::before {
        content: ' · ';
        color: #ccc;
    }
}
