.svc-page {
    --svc-red: #e31e24;
    --svc-text: #303238;
    --svc-muted: #64676e;
    --svc-border: #e4e5e7;
    --svc-surface: #f5f5f6;
    color: var(--svc-text);
    background: #fff;
    padding: 24px 0;
}
.svc-page h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin: 0 0 24px; }
.svc-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.svc-filters button { border: 1px solid var(--svc-border); border-radius: 24px; padding: 10px 17px; background: #fff; color: var(--svc-text); cursor: pointer; font: inherit; }
.svc-filters button[aria-pressed="true"] { background: var(--svc-red); border-color: var(--svc-red); color: #fff; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 30px; align-items: start; }
.svc-category { margin-bottom: 36px; }
.svc-category h2 { font-size: 25px; line-height: 1.3; margin: 0 0 20px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card { border: 1px solid var(--svc-border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: #fff; min-width: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgb(0 0 0 / 12%); }
.svc-card:focus-visible { outline: 3px solid #e31e24; outline-offset: 4px; }
.svc-card > .app-image { width: 100%; aspect-ratio: 16/10; height: auto; flex-shrink: 0; }
.svc-card > .app-image img { width: 100%; height: 100%; object-fit: cover; }
.svc-lightbox { position: fixed; inset: 0; box-sizing: border-box; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 20px; border: 0; background: transparent; color: #303238; overflow-y: auto; overscroll-behavior: contain; }
.svc-lightbox[open] { display: grid; place-items: center; }
.svc-lightbox::backdrop { background: rgb(0 0 0 / 75%); }
.svc-lightbox__panel { position: relative; width: min(800px, 100%); max-height: 100%; overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgb(0 0 0 / 40%); animation: svc-lightbox-zoom .2s ease-out; }
.svc-lightbox__panel > .app-image { width: 100%; aspect-ratio: 16/10; }
.svc-lightbox__panel > .app-image img { object-fit: cover; }
.svc-lightbox__body { padding: 24px; }
.svc-lightbox__body h2 { margin: 0 0 16px; font-size: clamp(22px, 4vw, 30px); overflow-wrap: anywhere; }
.svc-lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #303238; box-shadow: 0 2px 12px rgb(0 0 0 / 20%); font-size: 30px; line-height: 1; cursor: pointer; }
.svc-lightbox__close:focus-visible { outline: 3px solid #e31e24; outline-offset: 3px; }
/* ------------------------------------------------------------------
   Описание услуги из CMS (HTML: заголовки, таблицы, изображения)
------------------------------------------------------------------ */
.svc-lightbox__description {
    margin-top: 18px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.svc-lightbox__description > :first-child { margin-top: 0; }
.svc-lightbox__description > :last-child { margin-bottom: 0; }

.svc-lightbox__body .svc-lightbox__description h2 {
    margin: 24px 0 14px;
    color: #303238;
    font-size: clamp(19px, 3vw, 23px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.svc-lightbox__body .svc-lightbox__description h3 {
    margin: 22px 0 12px;
    color: #303238;
    font-size: 18px;
    line-height: 1.35;
}
.svc-lightbox__body .svc-lightbox__description h2 + p,
.svc-lightbox__body .svc-lightbox__description h3 + p { margin-top: 0; }

.svc-lightbox__description p {
    margin: 0 0 14px;
    max-width: 100%;
    text-align: left;
}
.svc-lightbox__description ul,
.svc-lightbox__description ol {
    margin: 0 0 16px;
    padding-left: 22px;
}
.svc-lightbox__description li { margin-bottom: 6px; }
.svc-lightbox__description a { color: #e31e24; text-decoration: underline; }
.svc-lightbox__description a:hover { text-decoration: none; }
.svc-lightbox__description strong { font-weight: 700; }
.svc-lightbox__description br + br { display: none; }

.svc-lightbox__description img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 16px 0;
    border-radius: 8px;
}

.svc-lightbox__description .harakt-element {
    width: 100%;
    min-width: 680px;
    margin: 0 0 20px;
    border: 1px solid #ececec;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    color: #303238;
    font-size: 13px;
    line-height: 1.45;
}

.svc-lightbox__description .harakt-element th,
.svc-lightbox__description .harakt-element td {
    padding: 10px;
    border-bottom: 1px solid #ececec;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.svc-lightbox__description .harakt-element th {
    background: #f4f4f4;
    color: #13100d;
    font-weight: 700;
}

/* Первая строка таблицы — заголовок */
.svc-lightbox__description .harakt-element tr:first-child td {
    background: #f4f4f4;
    border-bottom: 1px solid #d9d9d9;
    color: #13100d;
    font-weight: 700;
}

/* Первый столбец — названия размеров/работ */
.svc-lightbox__description .harakt-element td:first-child,
.svc-lightbox__description .harakt-element th:first-child {
    padding-left: 12px;
    text-align: left;
    color: #13100d;
    font-weight: 600;
    white-space: normal;
}

.svc-lightbox__description .harakt-element tbody tr:nth-child(even):not(:first-child) td {
    background: #fcfcfc;
}

.svc-lightbox__description .harakt-element tbody tr:not(:first-child):hover td {
    background: #f5f5f5;
}

.svc-lightbox__description .harakt-element tr:last-child td {
    border-bottom: 0;
}
@keyframes svc-lightbox-zoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .svc-card { transition: none; } .svc-card:hover { transform: none; } .svc-lightbox__panel { animation: none; } }
.svc-card__placeholder { aspect-ratio: 16/10; display: grid; place-items: center; background: linear-gradient(135deg, #ededee, #fafafa); color: var(--svc-muted); font-weight: 600; }
.svc-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.svc-card h3 { font-size: 18px; line-height: 1.4; margin: 0 0 auto; overflow-wrap: anywhere; }
.svc-card__price { font-size: 25px; line-height: 1.3; font-weight: 700; margin: 6px 0 0; }
.svc-card__note { color: var(--svc-muted); font-size: 14px; margin: 0; }
.svc-page .svc-button { display: inline-flex; justify-content: center; align-items: center; text-align: center; border: 1px solid var(--svc-red); padding: 12px 16px; border-radius: 6px; background: var(--svc-red); color: #fff; text-decoration: none; font: inherit; cursor: pointer; }
.svc-page .svc-button--outline { background: #fff; color: var(--svc-red); }
.svc-page .svc-button--gray { background: #ececee; border-color: #ececee; color: var(--svc-text); }
.svc-page .svc-button:hover { filter: brightness(.95); }
.svc-page :is(a,button):focus-visible { outline: 3px solid var(--svc-red); outline-offset: 3px; }
.svc-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.svc-sidebar__box { display: block; padding: 20px; background: var(--svc-surface); border-radius: 8px; color: var(--svc-text); }
.svc-sidebar__box h2 { font-size: 21px; margin: 0 0 12px; }
.svc-sidebar__box p { font-size: 14px; margin: 0 0 12px; }
.svc-sidebar__box a { color: var(--svc-red); }
.svc-disclaimer { color: var(--svc-muted); font-size: 14px; }
@media (max-width: 1199px) { .svc-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; } .svc-grid { gap: 12px; } .svc-card__body { padding: 12px; } }
@media (max-width: 991px) { .svc-layout { grid-template-columns: 1fr; } .svc-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .svc-grid, .svc-sidebar { grid-template-columns: 1fr; } .svc-filters { gap: 8px; } .svc-filters button { font-size: 14px; padding: 8px 12px; } }
.svc-filters--directions { margin-bottom: 16px; }
.svc-card__directions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; color: var(--svc-muted); font-size: 12px; }
.svc-card__directions span { padding: 3px 7px; border-radius: 4px; background: var(--svc-surface); }
