.guide { --focus: #82632d; background: #fff; color: #202831; padding-bottom: clamp(4rem, 8vw, 7rem); }
.guide-cover {
    overflow: hidden;
    background: radial-gradient(ellipse at 84% 96%, #48515a 0%, #29323b 21%, #19212a 43%, #111821 74%);
    color: #fbfbfa;
}
.guide-head {
    display: grid;
    grid-template: "heading art" 1fr "foot art" auto / minmax(0, 55fr) minmax(0, 45fr);
    min-height: clamp(27rem, 37vw, 39rem);
    padding-top: clamp(.5rem, 1.1vw, 1.25rem);
}
.guide-meta {
    grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: .8rem 2rem;
    padding-bottom: .65rem; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); border-bottom: 1px solid #d9ddde;
    color: #56606a; font-size: .96rem; line-height: 1.4;
}
.guide-path { min-width: 0; }
.guide-path ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .65rem; list-style: none; padding: 0; margin: 0; }
.guide-path li { min-width: 0; max-width: 100%; display: inline-flex; align-items: baseline; gap: .65rem; }
.guide-path li + li::before {
    content: ""; flex: none; align-self: center; width: .34rem; height: .34rem;
    border: solid #a58b60; border-width: 1px 1px 0 0; transform: rotate(45deg);
}
.guide-path [aria-current] { color: #273039; font-weight: 560; text-wrap: pretty; overflow-wrap: anywhere; }
.guide-path a, .guide-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-path a:is(:hover, :focus-visible) { color: #212a32; text-decoration: underline; text-underline-offset: .2em; }
.guide-cover a:focus-visible { outline-color: #e5c37d; }
.guide-date { display: inline-flex; flex: none; align-items: center; gap: .45rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-date svg { color: #816b46; }

.guide-heading { grid-area: heading; min-width: 0; align-self: center; padding-block: clamp(1.3rem, 2.6vw, 3rem); }
.guide-heading h1, .guide-copy :is(h2,h3), .guide-map-title {
    font-family: Geist, Arial, sans-serif; text-wrap: balance; overflow-wrap: break-word;
}
.guide-law { white-space: nowrap; }
.guide-heading h1 { margin: 0; max-width: 23ch; font-size: clamp(2.22rem, 4.25vw, 4rem); font-weight: 340; letter-spacing: -.048em; line-height: 1.06; }
.guide-summary { max-width: 56ch; font-size: clamp(1.13rem, 1rem + .5vw, 1.44rem); line-height: 1.45; margin: 1.05rem 0 0; color: #e4e7e8; }
.guide-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem clamp(.8rem, 2vw, 1.65rem); margin-top: clamp(1.2rem, 2.6vw, 2rem); }
.guide-order-slot { display: inline-block; width: 12rem; height: 3.25rem; }
.guide-order-control { display: block; width: 100%; height: 100%; }
.guide-order {
    position: relative; height: 100%; width: 100%; padding: 0 .65rem; gap: .5rem; border-radius: 6px; white-space: nowrap;
    background: #f9faf8; border: 1px solid #f9faf8; color: #1a2128; font: 580 1.0625rem/1.2 Geist, Arial, sans-serif;
}
.guide-order svg { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linejoin: round; }
.guide-order:is(:hover, :active) { background: #ebeeeb; border-color: #d5d9d7; }
.guide-order:focus-visible { outline: 3px solid #a77c30; outline-offset: 3px; }
.guide-order-slot.is-pinned .guide-order-control {
    --plate-padding: .55rem;
    box-sizing: content-box; position: fixed; z-index: 3;
    right: max(.6rem, calc(var(--gutter) - var(--plate-padding)));
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + var(--order-lift, 0px));
    width: 12rem; height: 3.25rem; padding: var(--plate-padding); border-radius: 12px;
    background: rgb(241 244 244 / 74%); box-shadow: inset 0 0 0 1px #77828b40, 0 2px 12px #151c2514;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.is-pinned .guide-order { color: #fff; background: #202a32; border-color: #46515a; }
.is-pinned .guide-order::before {
    content: ""; position: absolute; inset: calc(-1 * var(--plate-padding) - 1px); border-radius: 12px;
}
html:has(.guide-order-slot.is-pinned) { scroll-padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
@media (hover: hover) {
    .is-pinned .guide-order:hover { background: #303b44; border-color: #a58b60; }
}
@media (prefers-reduced-motion: no-preference) {
    .is-pinned .guide-order::after {
        content: ""; position: absolute; inset: -1px; border: 2px solid #c2a36b; border-radius: inherit;
        pointer-events: none; animation: guide-order-edge 4.8s ease-in-out infinite;
    }
    @keyframes guide-order-edge { 0%, 100% { opacity: 0; } 50% { opacity: .72; } }
}
.guide-cover .service-cost { display: inline-flex; align-items: baseline; gap: .28em; margin: 0; color: #efd39a; font-size: 1.3rem; }
.guide-cover .service-cost small { font: inherit; font-size: .78em; color: #e5d5b4; }
.guide-cover .service-cost strong { font-weight: 600; }
.guide-visual { grid-area: art; container-type: size; position: relative; align-self: stretch; pointer-events: none; }
.guide-art {
    /* The SVG canvas includes clear space around its base and right face. */
    --art-height: min(110cqh, 99cqw);
    position: absolute; height: var(--art-height); width: auto; max-width: none;
    right: calc(-.29 * var(--art-height)); bottom: calc(-.15 * var(--art-height));
}
.guide-service-head .guide-art { --art-height: min(69cqh, 55cqw); }
.guide-foot {
    grid-area: foot; display: flex; flex-wrap: wrap; align-items: center;
    gap: 0 clamp(1.5rem, 3vw, 2.75rem); padding-bottom: clamp(.45rem, 1.2vw, 1.3rem);
    font-size: 1rem; line-height: 1.25;
}
.guide-time, .guide-start { display: inline-flex; gap: .5em; align-items: center; }
.guide-time { color: #cbd1d6; }
.guide-start { min-height: 44px; color: #fafaf8; }
.guide-start svg { color: #edcc72; }
.guide-start:is(:hover,:focus-visible) span { text-decoration: underline; text-underline-offset: .19em; }
.guide-layout {
    display: grid; grid-template-columns: minmax(0, 65ch) minmax(13rem, 19rem);
    justify-content: space-between; align-items: start; column-gap: clamp(2.5rem, 5vw, 5rem);
    padding-top: clamp(1rem, 1.8vw, 1.75rem); font-size: clamp(1.15rem, 1.05rem + .29vw, 1.3rem);
}
.guide-layout:focus { outline: none; }
.guide-layout:focus-visible .guide-map-title { text-decoration: underline; text-decoration-color: #b69250; text-underline-offset: .2em; }
.guide-reading { grid-column: 1; grid-row: 2; min-width: 0; }
.guide-copy { line-height: 1.54; overflow-wrap: break-word; }
.guide-copy p { margin: .78em 0 0; }
.guide-copy > :first-child { margin-top: 0; }
.guide-copy h2 { font-size: clamp(1.7rem, 1.32rem + 1.2vw, 2.4rem); font-weight: 420; line-height: 1.13; letter-spacing: -.04em; margin: 1.85em 0 .56em; scroll-margin-top: 1.4rem; }
.guide-copy h3 { margin: 1.25em 0 .3em; font-weight: 530; letter-spacing: -.025em; font-size: 1.12em; line-height: 1.24; text-align: left; }
.guide-copy :is(h2,h3) + p { margin-top: 0; }
.guide-copy strong { font-weight: 620; }
.guide-copy > ul { margin: .8em 0 1em; padding: 0 0 0 1.2em; }
.guide-copy > ul li { padding-left: .3em; margin-block: .55em; }
.guide-copy > ul li::marker { color: #88672f; }
.guide-copy a, .guide-actions a { color: #674815; text-decoration: underline; text-underline-offset: .17em; }
.guide-copy a:is(:hover,:focus-visible), .guide-actions a:is(:hover,:focus-visible) { color: #282521; }
.guide-map { margin: 0 0 2rem; }
.guide-map .guide-map-title { font-size: clamp(1.34rem, 1.06rem + .7vw, 1.7rem); font-weight: 460; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 .9rem; }
.guide-map ul { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.15rem; list-style: none; margin: 0; padding: 0; }
.guide-map li { min-width: 0; border-top: 2px solid #998052; }
.guide-map a { position: relative; display: block; padding: .6rem 0 .2rem; text-decoration: none; color: #29313a; font-size: 1.05rem; line-height: 1.32; }
.guide-map a strong { display: block; font-weight: 620; margin-bottom: .25em; }
.guide-map a span { color: #4a5157; }
.guide-map a:is(:hover,:focus-visible) strong { text-decoration: underline; text-underline-offset: .15em; }
.guide-copy .guide-takeaway { margin: 1.25em 0 .55em; padding: .15em 0 .15em .75em; border-left: 3px solid #b69250; font: 460 clamp(1.25rem,1.1rem + .5vw,1.55rem)/1.32 Geist, Arial, sans-serif; letter-spacing: -.028em; }
.guide-example { margin: 1.6em 0; background: #f2f3f3; padding: clamp(1.1rem, 2.2vw, 2rem); border-radius: 3px; }
.guide-example .guide-example-label { color: #725221; font-size: .9rem; font-weight: 620; margin: 0 0 .55rem; }
.guide-example h3 { font-size: clamp(1.35rem, 1.18rem + .6vw, 1.72rem); font-weight: 450; margin: 0 0 .65em; }
.guide-index { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--header-height, 0px) + 1rem); max-height: calc(100dvh - var(--header-height, 0px) - 2rem); overflow: auto; padding: .2rem .4rem; }
.guide-index summary { display: flex; align-items: center; gap: .55em; cursor: pointer; font: 500 1.03rem/1.4 Geist, Arial, sans-serif; min-height: 44px; }
.guide-index summary::marker, .guide-index summary::-webkit-details-marker { display: none; content: ""; }
.guide-index summary::before { content: ""; flex: none; width: .52em; height: .52em; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-.12em) rotate(45deg); }
.guide-index [open] summary::before { transform: translateY(.1em) rotate(225deg); }
.guide-index summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.guide-index ul { list-style: none; margin: .4rem 0; padding: 0; }
.guide-index a { display: block; padding: .4rem .45rem; border-left: 2px solid #e1e4e5; font-size: 1rem; line-height: 1.32; color: #50585e; }
.guide-index a[aria-current] { border-color: #957136; color: #272a2c; font-weight: 600; }
.guide-index a:is(:hover,:focus-visible) { color: #684a1d; text-decoration: underline; text-underline-offset: .18em; }
.guide-index-title { min-width: 0; overflow-wrap: anywhere; }
.guide-position { flex: none; white-space: nowrap; margin-left: auto; font: 400 .92rem/1.3 "Source Sans 3", sans-serif; color: #616970; }
.guide-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; font-size: 1rem; }
.guide-actions .primary { border-radius: 6px; }
.guide-prices { margin: 1.4em 0; }
.guide-prices table { width: 100%; border-collapse: collapse; font-size: .91em; text-align: left; line-height: 1.36; }
.guide-prices :is(th, td) { vertical-align: top; padding: .85em .7em .85em 0; border-bottom: 1px solid #cbd0d3; }
.guide-prices thead th { color: #4c545b; font-weight: 550; }
.guide-prices tbody th { font-weight: 530; }
.guide-prices td:last-child { white-space: nowrap; padding-right: 0; }
@media (max-width: 59.99rem) {
    .guide-layout { display: block; }
    .guide-meta { margin-bottom: .35rem; }
    .guide-reading { max-width: 65ch; padding-top: 1.5rem; }
    .guide-index { top: var(--header-height,0px); z-index: 2; padding: 0; max-height: calc(90dvh - var(--header-height,0px)); background: #fff; border-bottom: 1px solid #d8dcdd; }
    .guide-index summary { min-height: 48px; padding-block: .35rem; }
    .guide-index ul { margin: .15rem 0 .9rem; }
    .guide-index li a { padding-block: .65rem; }
    .guide-copy h2 { scroll-margin-top: calc(var(--index-height, 48px) + .85rem); }
}
@media (max-width: 680px) {
    .guide-meta { display: block; padding-bottom: 1rem; }
    .guide-path li:last-child { flex-basis: 100%; font-size: 1.08rem; line-height: 1.32; }
    .guide-path li:last-child::before { display: none; }
    .guide-date { margin-top: .6rem; }
    .guide-cover { background: radial-gradient(ellipse at 92% 88%, #3c464f 0%, #222b35 24%, #111821 61%); }
    .guide-head {
        min-height: calc(100svh - var(--header-height, 77px));
        grid-template: "heading" auto "art" minmax(5rem, 1fr) "foot" auto / minmax(0, 1fr);
        padding-top: clamp(1.55rem, 4.5svh, 2.7rem);
    }
    .guide-heading { padding-block: 0 .45rem; }
    .guide-date { font-size: .94rem; }
    .guide-cover .guide-heading h1 { font-size: clamp(2.14rem, 8.7vw, 3.1rem); }
    .guide-summary { margin-top: .85rem; }
    .guide-visual { width: min(92%, 25rem); justify-self: end; }
    .guide-art { --art-height: min(112cqh, 101cqw); }
    .guide-foot { justify-content: space-between; padding-bottom: max(.4rem, env(safe-area-inset-bottom)); }
    .guide-service-head {
        grid-template: "heading heading" minmax(min-content, 1fr)
            "price art" clamp(5rem, 20svh, 11rem)
            "order order" auto "foot foot" auto / minmax(0, 1fr) minmax(0, 1fr);
    }
    .guide-service-head :is(.guide-heading, .guide-offer) { display: contents; }
    .guide-service-head .guide-intro { grid-area: heading; align-self: center; }
    .guide-service-head .service-cost { grid-area: price; align-self: end; flex-wrap: wrap; padding-bottom: .9rem; }
    .guide-service-head .guide-visual { width: 100%; }
    .guide-service-head .guide-art { --art-height: min(100cqh, 99cqw); bottom: calc(-.07 * var(--art-height)); }
    .guide-service-head .guide-order-slot {
        grid-area: order; width: 100%;
        margin-bottom: max(0px, calc(var(--thumb-offset) - 3.4rem));
    }
    .guide-service-head .guide-foot { padding-top: .2rem; }
}
@media (max-width: 680px), (pointer: coarse) and (max-height: 600px) {
    .guide-order-slot {
        --thumb-offset: calc(clamp(4.75rem, 14svh, 7.25rem) + env(safe-area-inset-bottom));
        scroll-margin-bottom: var(--thumb-offset);
    }
    .guide-order-slot.is-pinned .guide-order-control {
        bottom: max(calc(var(--thumb-offset) - var(--plate-padding)), var(--notice-space, 0px));
        right: auto; left: 50vw; transform: translateX(-50%);
    }
}
@media (max-width: 680px) {
    .guide-order-slot.is-pinned .guide-order-control { width: calc(100vw - 2 * var(--gutter)); }
}
@media (max-width: 680px) and (max-height: 620px) {
    .guide-head { padding-top: 1.1rem; }
    .guide-service-head { grid-template-rows: minmax(min-content, 1fr) clamp(4.5rem, 16svh, 6rem) auto auto; }
    .guide-cover .guide-heading h1 { font-size: clamp(1.85rem, 7.8vw, 2.5rem); text-wrap: pretty; }
    .guide-summary { font-size: 1.04rem; line-height: 1.35; margin-top: .55rem; }
    .guide-offer { margin-top: .85rem; }
}
@media (max-width: 39rem) {
    .guide-map ul { grid-template-columns: 1fr; gap: 0; }
    .guide-map li { border-top: 1px solid #d6dadb; }
    .guide-map li:last-child { border-bottom: 1px solid #d6dadb; }
    .guide-map a { padding: .6rem 1.25rem .6rem 0; }
    .guide-map a::after { content: ""; position: absolute; right: .25rem; top: 1rem; width: .43rem; height: .43rem; border-right: 1.5px solid #82632d; border-bottom: 1.5px solid #82632d; transform: rotate(45deg); }
    .guide-map a strong { margin: 0; }
    .guide-prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .guide-prices :is(table, tbody, tr, th, td) { display: block; }
    .guide-prices tbody tr { border-top: 1px solid #cbd0d3; padding: .8em 0; }
    .guide-prices :is(th, td) { padding: .12em 0; border: 0; }
    .guide-prices tbody th { font-size: 1.12em; }
    .guide-prices td:last-child { font-weight: 570; }
}
.guide-case-flow { margin: .8em 0 1.3em; max-width: 31rem; }
.guide-case-flow img { display: block; width: 100%; height: auto; }
.guide-case-flow figcaption { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); color: #424950; text-align: center; font-size: .86em; font-weight: 520; line-height: 1.18; }
.guide-case-flow figcaption span { padding-inline: .2em; }
@media (max-width: 23rem) {
    .guide-service-head { grid-template-columns: minmax(0, 61fr) minmax(0, 39fr); }
    .guide-path { font-size: .92rem; }
    .guide-case-flow figcaption { font-size: .81em; }
}
.guide-case-flow figcaption { overflow-wrap: normal; }

.guide-photo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right bottom; padding: 1rem 0 1.25rem 1rem; }
.guide-head.guide-text-head { grid-template: "heading" 1fr "foot" auto / minmax(0, 1fr); min-height: clamp(17rem, 28vw, 29rem); }
.guide-text-head .guide-heading h1 { max-width: 30ch; }
.guide-copy :is(img, video, iframe) { max-width: 100%; }
.guide-copy img { height: auto; }
.guide-copy .wp-block-table { overflow-x: auto; }
.guide-copy blockquote { margin-inline: 0; padding-inline-start: 1em; border-left: 3px solid #b69250; }
@media (max-width: 680px) {
    .guide-photo { padding: .75rem 0; }
}

.guide-head[data-service="secure-ai"] .guide-intro { container-type: inline-size; }
.guide-head[data-service="secure-ai"] .guide-intro h1 {
    max-width: none;
    font-size: min(clamp(2.22rem, 4.25vw, 4rem), 8.1cqi);
}
.guide-models tbody th { width: 28%; }
.guide-models td:last-child { white-space: normal; font-weight: inherit; }
@media (max-width: 39rem) {
    .guide-models tbody th { width: auto; }
}
@media (max-width: 680px) {
    .guide-service-head.guide-text-head {
        grid-template: "heading" auto "price" auto "order" auto "foot" auto / minmax(0,1fr);
        row-gap: .6rem;
    }
}

.cookie-policy .guide-layout {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
}
.cookie-policy .guide-reading { max-width: none; }
.cookie-policy .guide-copy > :is(h2, p) { max-width: 68ch; }
.cookie-policy .guide-copy > h2:first-child { margin-top: 0; }
.cookie-policy .guide-copy { overflow-wrap: anywhere; }

.cookie-table { container-type: inline-size; margin-block: 1.2em 1.6em; overflow-wrap: anywhere; }
.cookie-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 1.0625rem;
    line-height: 1.45;
}
.cookie-table :is(th, td) {
    padding: .75em .85em;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.cookie-table th { background: var(--surface); font-weight: 600; }
.cookie-table th:nth-child(1) { width: 23%; }
.cookie-table th:nth-child(2) { width: 28%; }
.cookie-table th:nth-child(3) { width: 34%; }
.cookie-table td:first-child { font-weight: 600; }
.cookie-table:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

@container (max-width: 44rem) {
    .cookie-table :is(table, tbody, tr, td) { display: block; }
    .cookie-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .cookie-table tbody { border-bottom: 1px solid var(--line); }
    .cookie-table tbody tr { padding-block: 1em 1.2em; border-top: 1px solid var(--line); }
    .cookie-table td { padding: 0; border: 0; }
    .cookie-table td + td { margin-top: .55em; }
    .cookie-table td:first-child { font-size: 1.15em; }
    .cookie-table td::before { display: block; color: var(--muted); font-size: .875em; font-weight: 600; }
    .cookie-table td:nth-child(2)::before { content: "Назначение" / ""; }
    .cookie-table td:nth-child(3)::before { content: "Срок" / ""; }
    .cookie-table td:nth-child(4)::before { content: "Категория" / ""; }
}
