.service-page { padding-bottom: var(--section-space); }
.service-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 8px 0 32px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}
.service-page-heading h1 {
    max-width: 19ch;
    font-size: clamp(38px, 3.8vw, 66px);
    line-height: 1.1;
    letter-spacing: -.05em;
    overflow-wrap: anywhere;
}
.service-page-heading .actions { justify-content: flex-end; flex-shrink: 0; gap: 20px; }
.service-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 32px; }
.service-directory-group { min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--surface); }
.service-directory-label { font-size: 21px; line-height: 1.3; letter-spacing: -.5px; margin-bottom: 16px; }
.service-directory ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.service-directory li { break-inside: avoid; }
.service-directory li + li { border-top: 1px solid var(--line); }
.service-directory a { display: block; padding: 11px 0; font-size: 14px; line-height: 1.5; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; overflow-wrap: anywhere; }
.service-directory a:hover { text-decoration-color: var(--ink); }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(32px, 4vw, 76px); align-items: start; }
.service-layout > *, .service-extras > *, .service-related > * { min-width: 0; }
.service-rich-content { font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.service-rich-content::after { content: ''; display: table; clear: both; }
.service-rich-content * { max-width: 100% !important; }
.service-rich-content p { margin: 0 0 18px; color: var(--muted); }
.service-rich-content h2, .service-rich-content h3, .service-rich-content h4, .service-rich-content h5, .service-rich-content h6 {
    color: var(--ink);
    font-weight: 400;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: -.7px;
    margin: 30px 0 16px;
}
.service-rich-content h2 { font-size: 34px; letter-spacing: -1px; }
.service-rich-content > :first-child { margin-top: 0; }
.service-rich-content ul, .service-rich-content ol { padding-left: 24px; color: var(--muted); margin-block: 16px 24px; }
.service-rich-content li { margin-block: 7px; }
.service-rich-content a { text-decoration: underline; text-underline-offset: 4px; }
.service-rich-content img { height: auto !important; border-radius: 12px; margin-block: 16px; }
.service-rich-content .portfolio-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 24px; clear: both; }
.service-rich-content .portfolio-wrap .portfolio-wrap { display: contents; }
.service-rich-content .portfolio-item { min-width: 0; }
.service-rich-content .portfolio-item-wrap { position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.service-rich-content .portfolio-item-wrap > img { width: 100%; height: 220px !important; object-fit: cover; margin: 0; border-radius: 0; }
.service-rich-content .portfolio-item-inner { padding: 20px; font-size: 14px; line-height: 1.6; }
.service-rich-content .portfolio-item-inner br { display: none; }
.service-rich-content .portfolio-heading { display: grid; gap: 12px; margin-bottom: 16px; font-size: 19px; line-height: 1.4; }
.service-rich-content .portfolio-heading span { background: transparent !important; color: var(--ink) !important; }
.service-rich-content .portfolio-item-wrap > a { position: absolute; inset: 0; border-radius: 18px; }
.service-rich-content h2 b, .service-rich-content h3 b,
.service-rich-content h2 strong, .service-rich-content h3 strong { font-weight: inherit; }
.service-rich-content [data-service-preview] > :first-child,
.service-rich-content [data-service-detail] > :first-child { margin-top: 0; }
.service-rich-content [data-service-preview]:empty,
.service-rich-content [data-service-detail]:empty { display: none; }
.service-rich-content .legacy-table-scroll { max-width: 100%; overflow-x: auto; margin-block: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.service-rich-content .legacy-table-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.service-rich-content table { width: 100%; height: auto; border-collapse: collapse; border: 0; font-size: 15px; line-height: 1.65; color: var(--ink); }
.service-rich-content .legacy-table-scroll table { table-layout: fixed; }
.service-rich-content table[data-content-columns="2"] { min-width: 480px; }
.service-rich-content table[data-content-columns="3"] { min-width: 720px; }
.service-rich-content table[data-content-columns="4"] { min-width: 960px; }
.service-rich-content table[data-content-columns]:not([data-content-columns="1"]):not([data-content-columns="2"]):not([data-content-columns="3"]):not([data-content-columns="4"]) { min-width: 1200px; }
.service-rich-content .legacy-table-scroll.is-overflowing::before { content: 'Листайте таблицу по горизонтали'; display: block; position: sticky; left: 0; width: 100%; padding: 10px 16px; font-size: 12px; line-height: 1.5; color: var(--muted); border-bottom: 1px solid var(--line); }
.service-rich-content td, .service-rich-content th { padding: 16px; vertical-align: top; border: 1px solid var(--line); min-width: 0; }
.service-rich-content tr:first-child td { border-top: 0; }
.service-rich-content tr:last-child td { border-bottom: 0; }
.service-rich-content td:first-child { border-left: 0; }
.service-rich-content td:last-child { border-right: 0; }
.service-rich-content td p:last-child { margin-bottom: 0; }
.service-rich-content td img { max-width: 100%; }
.service-rich-content .legacy-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-block: 24px; align-items: start; }
.service-rich-content .legacy-panel { min-width: 0; padding: 22px; background: var(--soft); border-radius: 16px; }
.service-rich-content .legacy-panel > :first-child { margin-top: 0; }
.service-rich-content .legacy-panel > :last-child { margin-bottom: 0; }
.service-rich-content .legacy-media-grid .legacy-panel { padding: 0; background: transparent; }
.service-rich-content .legacy-media-grid img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; margin: 0; border-radius: 16px; background: var(--soft); }
.service-rich-content .legacy-feature-strip { background: var(--soft); border-radius: 16px; padding: 24px; grid-template-columns: 1.4fr 1fr; }
.service-rich-content .legacy-feature-strip .legacy-panel { padding: 0; border-radius: 0; }
.service-rich-content .legacy-feature-strip .legacy-panel + .legacy-panel { padding-left: 24px; border-left: 2px solid var(--accent); }
.service-rich-content .legacy-panels:has(.legacy-panel-marker) { grid-template-columns: auto minmax(0, 1fr); }
.service-rich-content .legacy-panel-marker { padding: 8px 16px; background: var(--accent); color: var(--accent-ink); font-size: 28px; font-weight: 600; }
.service-rich-content .legacy-icon-list { margin-block: 28px; }
.service-rich-content .legacy-icon-list-heading { color: var(--ink); font-size: 22px; line-height: 1.4; }
.service-rich-content .legacy-icon-list-heading p { margin: 0; color: inherit; }
.service-rich-content .legacy-icon-list-heading b { font-weight: 400; }
.service-rich-content .legacy-icon-item { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.7; }
.service-rich-content .legacy-icon-item p:last-child { margin-bottom: 0; }
.service-rich-content .legacy-inline-icon { display: inline-block; vertical-align: middle; margin: 0 6px 0 0; border-radius: 0; }
.service-aside .service-lead-image { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: 20px; }
.service-full-text { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.service-full-text > summary { cursor: pointer; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; padding: 8px 0; }
.service-full-text[open] > summary { margin-bottom: 18px; }
.service-aside { display: grid; gap: 24px; }
.service-prices:has(table) { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 24px; }
.service-prices h6 { margin: 0 0 20px; font-size: 25px; line-height: 1.3; letter-spacing: -.6px; font-weight: 400; }
.service-prices table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.service-prices td { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.service-prices td:first-child { width: 68%; padding-right: 20px; }
.service-prices td:last-child { width: 32%; text-align: right; }
.service-prices tr:first-child { color: var(--muted); font-size: 12px; }
.service-prices tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.service-consultation { white-space: normal; text-align: left; line-height: 1.6; justify-content: flex-start; font-size: 14px; }
.service-promo img { width: 100%; max-width: 360px; border-radius: 18px; }
.countdown_wrapper { background: var(--soft); border-radius: 20px; padding: 24px; overflow: hidden; }
.countdown_wrapper .countdown { max-width: 100%; overflow: auto; }
.service-page .block__btn { display: inline-flex; padding: 14px 20px; background: var(--accent); color: var(--accent-ink); border-radius: 12px; margin-top: 16px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.service-page .block__btn p { margin: 0; }
.service-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; align-items: start; }
.service-extras:empty { display: none; }
.service-extra { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.service-extra h4, .service-extra h6, .service-related h4 { margin: 0 0 22px; font-size: 29px; line-height: 1.25; letter-spacing: -.8px; font-weight: 400; }
.service-extra .service-rich-content h2 { font-size: 25px; }
.service-extra > h4 + div > h2:first-child { display: none; }
.service-extra .vote { color: var(--muted); font-size: 14px; line-height: 1.7; }
.service-extra .vote p { padding-block: 12px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.service-extra input[type=radio] { accent-color: var(--focus); flex-shrink: 0; }
.service-extra .gob_in_wrapper { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.service-extra .gob p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.service-video .video-js { width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; }
.service-video video { max-width: 100%; }
.service-related { margin-top: 32px; }
.service-related:empty { display: none; }
.service-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0 0 32px; list-style: none; }
.service-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--soft); }
.service-gallery-documents { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 0; }
.service-gallery-documents img { aspect-ratio: 1; object-fit: contain; background: #fff; }
.service-gallery-link { display: block; cursor: zoom-in; }
.service-reviews { margin-bottom: 32px; }
.service-reviews ul { padding: 0; list-style: none; }
.service-reviews li { display: flow-root; border-top: 1px solid var(--line); padding-block: 24px; line-height: 1.7; }
.service-reviews .name { margin-block: 8px 16px; font-size: 21px; }
.service-reviews .descr, .service-reviews .ans { color: var(--muted); }
.service-reviews .image { float: right; width: 144px; height: 199px; margin: 0 0 20px 24px; background-size: cover !important; border-radius: 12px; }
.service-questions ._faq { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 40px; }
.service-questions .section { padding: 0; }
.service-questions .faq { margin: 0; padding: 0; list-style: none; }
.service-questions .faq li { padding-block: 20px; border-top: 1px solid var(--line); }
.service-questions .que { font-size: 20px; line-height: 1.4; cursor: pointer; }
.service-questions .ans { font-size: 15px; line-height: 1.8; color: var(--muted); margin-top: 16px; }
.service-questions ._right { padding: 24px; background: var(--soft); border-radius: 20px; align-self: start; }
.service-questions ._right > p { font-size: 26px; margin-bottom: 24px; }
.service-page .feedback label { display: block; font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.service-page .feedback input[type=text], .service-page .feedback textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 48px; background: var(--paper); color: var(--ink); }
.service-page .feedback textarea { min-height: 120px; resize: vertical; }
.service-page .feedback .fblock { margin-bottom: 18px; }
.service-page .feedback .captcha { width: 180px; height: 40px; object-fit: contain; margin-block: 10px; }
.service-page .feedback .submit { border: 0; border-radius: 12px; padding: 15px 22px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.service-page .feedback ._error { border-color: var(--error) !important; }
.service-lightbox { max-width: none; width: min(1400px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 50px 20px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); }
.service-lightbox::backdrop { background: #111a12d9; }
.service-lightbox img { width: 100%; height: min(75dvh, 1000px); object-fit: contain; }
.service-lightbox .icon-button { position: absolute; top: 10px; right: 10px; }
.service-lightbox-controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 12px; font-size: 13px; }
.service-lightbox-controls button { border: 1px solid var(--line); padding: 10px 16px; background: var(--surface); color: var(--ink); border-radius: 10px; }
@media (max-width: 1100px) {
    .service-page-heading { align-items: start; flex-direction: column; gap: 24px; }
    .service-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .service-directory ul { columns: 1; }
    .service-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
    .service-extras { gap: 18px; }
    .service-extra { padding: 24px; }
    .service-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .service-gallery-documents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .service-page-heading { margin-bottom: 24px; padding-bottom: 24px; }
    .service-page-heading .actions { justify-content: start; gap: 16px; }
    .service-directory, .service-layout, .service-extras, .service-questions ._faq { grid-template-columns: 1fr; }
    .service-directory { gap: 14px; padding-bottom: 24px; }
    .service-directory-group { padding: 20px; border-radius: 18px; }
    .service-layout { gap: 24px; }
    .service-rich-content { font-size: 15px; line-height: 1.8; }
    .service-rich-content h2 { font-size: 28px; }
    .service-rich-content h3, .service-rich-content h4, .service-rich-content h5, .service-rich-content h6 { font-size: 24px; }
    .service-rich-content .portfolio-wrap { grid-template-columns: 1fr; gap: 16px; }
    .service-rich-content td, .service-rich-content th { padding: 12px; }
    .service-rich-content .legacy-panel { padding: 18px; }
    .service-rich-content .legacy-media-grid .legacy-panel { padding: 0; }
    .service-prices:has(table), .service-extra { padding: 22px; border-radius: 18px; }
    .service-promo img { max-width: 100%; width: auto; max-height: 360px; margin-inline: auto; }
    .service-extras, .service-related { margin-top: 24px; }
    .service-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .service-gallery img { border-radius: 12px; }
    .service-questions ._faq { gap: 24px; }
    .service-lightbox { width: calc(100% - 20px); padding-inline: 10px; }
    .service-lightbox-controls { gap: 12px; }
}

.service-directory { align-items: start; }
.service-extra.gallery_wrapper { grid-column: 1 / -1; }
.service-extra .service-gallery-documents { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-gallery-documents img { aspect-ratio: 3 / 4; padding: 10px; }
.service-advantages .legacy-table-scroll { border: 0; margin: 0; background: transparent; border-radius: 0; }
.service-advantages table { font-size: 15px; }
.service-advantages table[data-content-columns] { min-width: 0 !important; table-layout: auto; }
.service-advantages td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.service-advantages td:first-child { width: 52px; padding-right: 16px; }
.service-advantages td img { display: block; width: 36px; margin: 0; border-radius: 0; }
.service-gallery-more { margin-block: -8px 28px; }
.service-gallery-more > summary { cursor: pointer; padding: 12px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.service-gallery-more[open] > summary { margin-bottom: 12px; }
.countdown_wrapper .countdown { border-radius: 12px; background: var(--paper); padding: 16px; }
.countdown-copy { margin-bottom: 16px; }
.countdown-copy h2, .countdown-copy h3, .countdown-copy h4,
.countdown-copy h5, .countdown-copy h6 { font-size: 20px; line-height: 1.4; margin: 0 0 10px; letter-spacing: -.3px; }
.countdown-copy h4 b { font-weight: 600; }
.countdown-copy h4 > b > br { display: none; }
.countdown-copy p { margin-bottom: 0; }
.countdown_wrapper canvas { max-width: 100%; }
.countdown [id^="Container_"] { box-shadow: none !important; background-color: var(--soft) !important; }
.countdown [id^="TextBox_"] { font-family: Onest, sans-serif !important; color: var(--ink) !important; }
.countdown [id^="TextBox_"] > span { font-family: inherit !important; }
.company-page ._center > img { background: #fff; padding: 12px; border-radius: 12px; }
.service-page .reviews-full-list .image, .service-page .service-reviews .image { background-size: contain !important; background-position: center !important; background-repeat: no-repeat !important; background-color: #fff !important; }
@media (max-width: 1100px) {
    .service-extra .service-gallery-documents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .service-extra .service-gallery-documents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-rich-content .legacy-feature-strip { grid-template-columns: 1fr; padding: 20px; }
    .service-rich-content .legacy-feature-strip .legacy-panel + .legacy-panel { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
    .service-page .reviews-full-list .image, .service-page .service-reviews .image { float: none; display: block; width: 120px; height: 166px; margin: 0 0 18px; }
}
