:root {
    --bg: #f4f9fc;
    --panel: #ffffff;
    --ink: #1a1a1a;
    --muted: #65727a;
    --line: #dcecf4;
    --brand: rgb(65, 195, 255);
    --brand-dark: #0495d6;
    --accent: rgb(65, 195, 255);
    --danger: #b42318;
}

* { box-sizing: border-box; }

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: linear-gradient(180deg, rgba(65, 195, 255, 0.08), rgba(244, 249, 252, 0) 360px), var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.site-header {
    align-items: center;
    background: rgba(26, 26, 26, 0.94);
    border-bottom: 1px solid rgba(65, 195, 255, 0.22);
    color: #f5fafc;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand, .nav {
    align-items: center;
    display: flex;
    gap: 14px;
}

.brand { font-weight: 800; }

.brand-mark {
    align-items: center;
    background: var(--brand);
    border-radius: 8px;
    color: #1a1a1a;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.footer-brand-title {
    color: #fff;
    display: block;
    font-weight: 900;
}

.nav {
    color: rgba(245, 250, 252, 0.82);
    font-size: 15px;
}

.nav a:hover, .link-button:hover { color: #fff; }

.link-button {
    background: transparent;
    border: 0;
    color: rgba(245, 250, 252, 0.82);
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.home-page .site-header {
    background:
        linear-gradient(90deg, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.78) 56%, rgba(9, 16, 20, 0.66)),
        rgba(26, 26, 26, 0.62);
    border-color: rgba(65, 195, 255, 0.12);
    box-shadow: none;
}

.hero {
    background: linear-gradient(135deg, rgba(65, 195, 255, 0.2), rgba(65, 195, 255, 0) 34%), linear-gradient(120deg, rgb(26, 26, 26), rgb(20, 28, 33) 55%, rgb(9, 16, 20));
    color: #fff;
    display: grid;
    min-height: 460px;
    padding: 76px 32px;
    place-items: center start;
}

.corporate-hero {
    background:
        linear-gradient(180deg, rgba(244, 249, 252, 0) 72%, rgba(34, 48, 56, 0.92) 86%, rgb(244, 249, 252) 100%),
        linear-gradient(135deg, rgba(65, 195, 255, 0.2), rgba(65, 195, 255, 0) 34%),
        linear-gradient(120deg, rgb(26, 26, 26), rgb(20, 28, 33) 55%, rgb(9, 16, 20));
    isolation: isolate;
    margin-top: -72px;
    overflow: hidden;
    padding: calc(76px + 72px) 32px 112px;
    position: relative;
}

.corporate-hero::before {
    background: linear-gradient(180deg, rgba(9, 16, 20, 0), rgba(65, 195, 255, 0.12) 34%, rgb(244, 249, 252));
    bottom: 0;
    content: "";
    height: 144px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 1;
}

.hero > div, .section, .form-page, .admin-shell {
    margin: 0 auto;
    max-width: 1180px;
    width: 100%;
}

.corporate-hero > div {
    position: relative;
    z-index: 2;
}

.hero-shell {
    display: grid;
    gap: 32px;
}

.hero-repair-media {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 320px;
    overflow: hidden;
    position: relative;
}

.hero-repair-media img {
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: 58% 45%;
    width: 100%;
}

.hero-repair-media::before {
    background: linear-gradient(90deg, rgb(26, 26, 26), rgba(26, 26, 26, 0));
    content: "";
    inset: 0 auto 0 0;
    pointer-events: none;
    position: absolute;
    width: 36%;
    z-index: 1;
}

.hero-repair-media::after {
    background:
        linear-gradient(180deg, rgba(26, 26, 26, 0.88), rgba(26, 26, 26, 0) 30%),
        linear-gradient(0deg, rgba(244, 249, 252, 0.86), rgba(33, 48, 56, 0.72) 18%, rgba(9, 16, 20, 0) 38%),
        radial-gradient(circle at 74% 16%, rgba(65, 195, 255, 0.24), rgba(65, 195, 255, 0) 42%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.hero-repair-media-tint {
    background: linear-gradient(120deg, rgba(26, 26, 26, 0.72), rgba(26, 26, 26, 0.1) 48%, rgba(65, 195, 255, 0.16));
    z-index: 2;
}

.hero h1, .form-intro h1, .login-card h1, .admin-shell h1 {
    font-size: clamp(36px, 6vw, 68px);
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0;
    max-width: 760px;
}

.hero-copy, .form-intro p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    max-width: 620px;
}

@media (min-width: 1024px) {
    .hero-shell {
        grid-template-columns: minmax(28rem, 1.02fr) minmax(34rem, 1fr);
    }

    .hero-repair-media {
        margin-bottom: -80px;
        margin-right: calc(-1 * max(32px, (100vw - 1180px) / 2));
        margin-top: calc(-80px - 72px);
        min-height: calc(100% + 232px);
        width: calc(100% + max(32px, (100vw - 1180px) / 2));
    }
}

.eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.primary-action {
    align-items: center;
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    color: #1a1a1a;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
}

.primary-action:hover { background: var(--brand-dark); color: #fff; }

.section, .form-page, .admin-shell { padding: 46px 32px; }

.section-heading {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-heading h1, .section-heading h2, .section-heading p { margin: 0; }
.section-heading p { color: var(--muted); }
.category-title { margin: 28px 0 12px; }

.service-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card, .panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(26, 32, 39, 0.06);
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    padding: 22px;
}

.service-card h4, .service-card h5, .panel h2 { margin: 0 0 8px; }
.service-card h5 { font-size: 18px; }
.service-card p { color: var(--muted); margin: 0; }

.catalog-accordion, .model-list {
    display: grid;
    gap: 18px;
}

.price-estimator {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 24px;
    padding: 24px;
}

.category-picker,
.model-picker {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-option,
.model-option,
.summary-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 4px;
    padding: 16px;
    text-align: left;
}

.category-option[aria-selected="true"] {
    border-color: var(--brand);
    background: rgba(65, 195, 255, 0.12);
    box-shadow: inset 0 0 0 1px var(--brand), 0 12px 26px rgba(65, 195, 255, 0.16);
}

.model-option[aria-selected="true"] {
    background: rgba(65, 195, 255, 0.12);
    border-color: var(--brand);
    box-shadow: inset 0 0 0 1px var(--brand), 0 12px 26px rgba(65, 195, 255, 0.16);
}

.category-option span,
.model-option span,
.summary-card strong {
    font-weight: 800;
}

.category-option small,
.summary-card span {
    color: var(--muted);
}

.estimator-controls {
    max-width: 420px;
}

.estimate-panel {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 18px;
    padding-top: 22px;
}

.estimate-panel h3 {
    font-size: 28px;
    margin: 0;
}

.secondary-section {
    padding-top: 0;
}

.service-info-section {
    padding-top: 0;
}

.text-page {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 34px;
}

.text-page h1,
.text-page h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    margin: 0 0 18px;
    max-width: 820px;
}

.text-page p {
    color: var(--muted);
    font-size: 17px;
    margin: 0 0 14px;
    max-width: 860px;
}

.text-columns {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.catalog-category {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.catalog-category-head {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    list-style: none;
    padding: 22px;
}

.catalog-category-head::-webkit-details-marker,
.model-head::-webkit-details-marker {
    display: none;
}

.catalog-category-head::after,
.model-head::after {
    border-bottom: 2px solid var(--brand);
    border-right: 2px solid var(--brand);
    content: "";
    flex: 0 0 auto;
    height: 10px;
    margin-left: 10px;
    transform: rotate(45deg);
    transition: transform 160ms ease;
    width: 10px;
}

.catalog-category[open] > .catalog-category-head::after,
.model-block[open] > .model-head::after {
    transform: rotate(225deg);
}

.catalog-category-head > span {
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800;
}

.catalog-category h3, .model-head h4 {
    margin: 0;
}

.catalog-category p, .model-head p {
    color: var(--muted);
    margin: 6px 0 0;
}

.model-block {
    border-top: 1px solid var(--line);
    padding: 0 22px;
}

.model-head {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 18px 0;
}

.model-head h4 {
    font-size: 20px;
}

.service-card.with-image {
    overflow: hidden;
    padding: 0;
}

.service-card.with-image > div,
.service-card.with-image .service-meta {
    margin-left: 18px;
    margin-right: 18px;
}

.service-card.with-image img {
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.part-name {
    color: var(--brand-dark) !important;
    font-weight: 800;
    margin-bottom: 8px !important;
}

.service-list {
    display: grid;
    gap: 10px;
}

.service-row {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    min-height: 118px;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-row:hover {
    border-color: #a9cbc6;
    box-shadow: 0 10px 22px rgba(26, 32, 39, 0.08);
    transform: translateY(-1px);
}

.service-thumb {
    background: #e8eef1;
    min-height: 118px;
}

.service-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.service-row-copy {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px 18px;
}

.service-row h5 {
    font-size: 18px;
    margin: 0 0 5px;
}

.service-row p {
    color: var(--muted);
    margin: 0;
}

.service-row-meta {
    display: grid;
    gap: 4px;
    justify-items: end;
    min-width: 112px;
}

.service-row-meta strong {
    font-size: 22px;
}

.service-row-meta span {
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800;
}

.service-detail-page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 46px 32px;
    width: 100%;
}

.breadcrumb {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--brand-dark);
    font-weight: 800;
}

.breadcrumb span::before {
    content: "/";
    margin-right: 8px;
}

.service-detail {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
    overflow: hidden;
}

.service-detail > img {
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}

.service-detail-copy {
    align-content: center;
    display: grid;
    gap: 16px;
    padding: 34px 34px 34px 0;
}

.service-detail h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    margin: 0;
}

.service-detail-copy > p:not(.eyebrow):not(.part-name) {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
}

.detail-price {
    align-items: baseline;
    display: flex;
    gap: 14px;
}

.detail-price strong {
    font-size: 34px;
}

.detail-price span {
    color: var(--muted);
}

.service-meta {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
}

.service-meta strong { font-size: 24px; }
.service-meta span, .api-box span { color: var(--muted); }

.form-page {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
}

.form-intro {
    background: var(--brand-dark);
    border-radius: 8px;
    color: #fff;
    padding: 34px;
}

.form-intro h1, .login-card h1, .admin-shell h1 { font-size: clamp(30px, 4vw, 46px); }
.panel { padding: 24px; }
.form-stack { display: grid; gap: 16px; }

label {
    color: var(--muted);
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
}

input, select, textarea {
    background: #fff;
    border: 1px solid #cbd5dc;
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

input[type="file"] {
    line-height: 1.35;
    padding: 8px 10px;
}

textarea { resize: vertical; }

.success, .error {
    border-radius: 8px;
    padding: 12px;
}

.success { background: #e7f7ef; color: #17633c; }
.error { background: #fff1f0; color: var(--danger); }
.admin-flash { margin-bottom: 18px; }

.login-page {
    display: grid;
    min-height: calc(100vh - 72px);
    padding: 32px;
    place-items: center;
}

.login-card { max-width: 420px; width: 100%; }

.admin-grid {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    margin-bottom: 18px;
}

.admin-grid.three {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.admin-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    margin-bottom: 18px;
}

.admin-stats > div {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 16px;
}

.admin-stats span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-stats strong {
    font-size: 30px;
    line-height: 1;
}

.admin-tabs {
    background: #e8eef1;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
}

.admin-tabs button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    flex: 1;
    font: inherit;
    font-weight: 800;
    min-height: 42px;
    min-width: 170px;
    padding: 0 14px;
    white-space: nowrap;
}

.admin-tabs button[aria-selected="true"] {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(26, 32, 39, 0.08);
}

.admin-tab-panels {
    display: grid;
    gap: 18px;
}

.admin-editor-grid {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

.admin-create-panel {
    position: static;
}

.admin-create-panel .compact {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-create-panel .compact textarea {
    min-height: 44px;
}

.admin-create-panel .compact .split {
    grid-template-columns: minmax(120px, 1fr) minmax(100px, .75fr);
}

.admin-create-panel .compact .check,
.admin-create-panel .compact .primary-action {
    min-height: 46px;
}

.admin-create-panel .compact .primary-action {
    width: 100%;
}

.admin-list-panel {
    min-width: 0;
}

.admin-console input,
.admin-console select,
.admin-console textarea,
.admin-console button,
.admin-console .primary-action {
    min-width: 0;
}

.admin-console input,
.admin-console select,
.admin-console textarea {
    min-height: 46px;
}

.admin-console input[type="file"] {
    color: rgba(26, 26, 26, 0.54);
    min-width: 190px;
}

.admin-console input[type="file"]::file-selector-button {
    background: rgb(26, 26, 26);
    border: 0;
    border-radius: 7px;
    color: rgb(255, 255, 255);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    margin-right: 12px;
    min-height: 32px;
    min-width: 132px;
    padding: 0 14px;
}

.admin-console input[type="file"]::file-selector-button:hover {
    background: rgb(65, 195, 255);
    color: rgb(26, 26, 26);
}

.panel-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-head h2 {
    margin: 0;
}

.panel-head span {
    background: #eef6f5;
    border-radius: 999px;
    color: var(--brand-dark);
    font-weight: 800;
    min-width: 34px;
    padding: 4px 10px;
    text-align: center;
}

.admin-table td:first-child,
.admin-table th:first-child {
    min-width: 320px;
}

.field-row {
    display: grid;
    gap: 8px;
    grid-template-columns: 90px minmax(180px, 1fr);
    margin-top: 8px;
}

.wide { min-width: 0; }
.compact { gap: 12px; }

.split {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 120px;
}

.check {
    align-items: center;
    display: flex;
    gap: 8px;
}

.check input { min-height: auto; width: auto; }

.api-box {
    background: #eef6f5;
    border: 1px solid #c7e3df;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    max-width: 480px;
    padding: 12px;
}

code { white-space: normal; word-break: break-all; }
.table-wrap { overflow-x: auto; }

.admin-list-panel .table-wrap {
    border-radius: 8px;
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.admin-table {
    min-width: 1120px;
}

.admin-table td,
.admin-table th {
    overflow: visible;
}

.admin-table .field-row,
.admin-table .inline-edit {
    min-width: 300px;
}

.admin-table .field-row input[type="file"],
.admin-table .inline-edit input[type="file"] {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
}

.admin-table .field-row input[type="file"]::file-selector-button,
.admin-table .inline-edit input[type="file"]::file-selector-button {
    min-width: 142px;
}

th, td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
}

.inline-edit { display: grid; gap: 8px; }
.actions {
    align-items: stretch;
    display: grid;
    gap: 8px;
}

.actions button, td button {
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    min-height: 42px;
    padding: 0 14px;
    white-space: nowrap;
}

.admin-table .actions {
    min-width: 112px;
}

.admin-table .actions form,
.admin-table .actions button {
    width: 100%;
}

.danger { color: var(--danger); }

.admin-console {
    max-width: 1380px;
}

.admin-console-head {
    background: linear-gradient(135deg, rgba(65, 195, 255, 0.18), rgba(65, 195, 255, 0) 42%), rgb(26, 26, 26);
    border: 1px solid rgba(65, 195, 255, 0.22);
    border-radius: 10px;
    color: #fff;
    padding: 28px;
}

.admin-console-head h1 { color: #fff; }

.admin-console-copy {
    color: rgba(255, 255, 255, 0.72);
    margin: 10px 0 0;
    max-width: 680px;
}

.admin-menu {
    background: rgb(26, 26, 26);
    border-color: rgba(65, 195, 255, 0.22);
    box-shadow: 0 18px 46px rgba(26, 26, 26, 0.12);
}

.admin-menu button {
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 170px;
    white-space: nowrap;
}

.admin-menu button small {
    background: rgba(65, 195, 255, 0.12);
    border: 1px solid rgba(65, 195, 255, 0.22);
    border-radius: 999px;
    color: rgb(65, 195, 255);
    font-size: 12px;
    padding: 2px 8px;
}

.admin-menu button[aria-selected="true"] {
    background: rgb(65, 195, 255);
    color: rgb(26, 26, 26);
}

.admin-menu button[aria-selected="true"] small {
    background: rgba(26, 26, 26, 0.12);
    border-color: rgba(26, 26, 26, 0.16);
    color: rgb(26, 26, 26);
}

.admin-stats > div,
.admin-create-panel,
.admin-list-panel,
.admin-tab-panel > .panel,
.api-doc-panel {
    border-color: rgba(65, 195, 255, 0.18);
    box-shadow: 0 14px 38px rgba(26, 26, 26, 0.07);
}

.api-token-card {
    background: rgba(65, 195, 255, 0.08);
    border: 1px solid rgba(65, 195, 255, 0.24);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.api-token-card span,
.api-doc-list strong,
.endpoint-list b,
.api-examples h3,
.swagger-detail strong {
    color: rgb(26, 26, 26);
    font-weight: 900;
}

.swagger-shell,
.swagger-groups {
    display: grid;
    gap: 18px;
}

.api-doc-panel .panel-head p {
    color: var(--muted);
    margin: 6px 0 0;
}

.api-doc-list,
.endpoint-list,
.api-examples {
    display: grid;
    gap: 10px;
}

.api-doc-list > div,
.endpoint-list > div {
    align-items: center;
    background: #f8fbfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: 100px minmax(0, 1fr) minmax(180px, .8fr);
    padding: 12px;
}

.api-doc-list > div {
    grid-template-columns: minmax(130px, .22fr) minmax(0, 1fr);
}

.endpoint-list b {
    background: rgb(26, 26, 26);
    border-radius: 6px;
    color: rgb(65, 195, 255);
    font-size: 12px;
    padding: 4px 7px;
    text-align: center;
}

.endpoint-list span {
    color: var(--muted);
    font-size: 14px;
}

.swagger-endpoints {
    display: grid;
    gap: 12px;
}

.swagger-endpoint {
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-left: 5px solid rgb(65, 195, 255);
    border-radius: 8px;
    overflow: hidden;
}

.swagger-endpoint[open] {
    box-shadow: 0 14px 34px rgba(26, 26, 26, 0.08);
}

.swagger-endpoint summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 94px minmax(220px, .75fr) minmax(0, 1fr) 22px;
    list-style: none;
    padding: 13px 16px;
}

.swagger-endpoint summary::-webkit-details-marker {
    display: none;
}

.swagger-endpoint summary::after {
    color: var(--muted);
    content: "+";
    font-weight: 900;
    justify-self: end;
}

.swagger-endpoint[open] summary::after {
    content: "-";
}

.swagger-endpoint summary code {
    color: rgb(26, 26, 26);
    font-weight: 800;
    word-break: break-word;
}

.swagger-endpoint summary span:last-child {
    color: var(--muted);
}

.method-badge {
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0;
    min-width: 74px;
    padding: 6px 10px;
}

.method-get {
    background: #1f7aec;
}

.method-post {
    background: #1f9d61;
}

.method-put {
    background: #c98312;
}

.method-delete {
    background: #d04444;
}

.swagger-detail {
    background: #f8fbfd;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    padding: 16px;
}

.swagger-detail p {
    color: var(--muted);
    margin: 4px 0 0;
}

.swagger-code {
    grid-column: 1 / -1;
}

.swagger-code pre {
    background: rgb(26, 26, 26);
    border: 1px solid rgba(65, 195, 255, 0.22);
    border-radius: 8px;
    color: rgb(235, 248, 252);
    margin: 8px 0 0;
    overflow-x: auto;
    padding: 14px;
}

.api-example-panel { grid-column: 1 / -1; }

.api-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.api-examples > div {
    background: rgb(26, 26, 26);
    border: 1px solid rgba(65, 195, 255, 0.22);
    border-radius: 8px;
    overflow: hidden;
}

.api-examples h3 {
    background: rgba(65, 195, 255, 0.12);
    color: #fff;
    margin: 0;
    padding: 12px 14px;
}

.api-examples pre {
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
    overflow-x: auto;
    padding: 14px;
}

@media (max-width: 860px) {
    .swagger-endpoint summary,
    .swagger-detail,
    .api-doc-list > div {
        grid-template-columns: 1fr;
    }

    .swagger-endpoint summary::after {
        justify-self: start;
    }
}

.site-footer {
    background: #182129;
    color: #fff;
    margin-top: 34px;
    padding: 28px 32px;
}

.footer-inner {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    margin: 0 auto;
    max-width: 1180px;
    width: 100%;
}

.footer-brand {
    align-items: center;
    display: inline-flex;
    gap: 12px;
}

.footer-brand span:last-child {
    display: grid;
    gap: 2px;
}

.footer-brand small,
.copyright {
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    margin: 0;
    text-align: right;
}

@media (max-width: 820px) {
    .site-header, .section-heading, .admin-grid, .form-page, .service-detail, .admin-editor-grid, .footer-inner, .text-columns, .admin-api-grid, .api-examples {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .api-doc-list > div,
    .endpoint-list > div {
        grid-template-columns: 1fr;
    }

    .site-header, .section-heading { flex-direction: column; }
    .site-header { padding: 16px; }
    .nav { flex-wrap: wrap; }
    .hero, .section, .form-page, .admin-shell, .service-detail-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .service-row {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .service-row-copy {
        grid-template-columns: 1fr;
    }

    .service-row-meta {
        justify-items: start;
    }

    .service-detail-copy {
        padding: 0 22px 24px;
    }

    .service-detail > img {
        max-height: 280px;
    }

    .price-estimator {
        padding: 16px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-tabs {
        overflow-x: auto;
    }

    .admin-tabs button {
        flex: 0 0 auto;
    }

    .admin-create-panel {
        position: static;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .text-page {
        padding: 24px;
    }

    .copyright {
        text-align: left;
    }
}
