:root {
    --price-paper: #f8f6f0;
    --price-surface: #fffdfa;
    --price-ink: #18231f;
    --price-muted: #66716c;
    --price-green: #123f36;
    --price-green-soft: #e4eeea;
    --price-line: rgba(24, 35, 31, 0.13);
    --price-warm: #b87b5c;
    --price-radius: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 108px;
    background: var(--price-paper);
}

body.price-page {
    margin: 0;
    color: var(--price-ink);
    background: var(--price-paper);
    font-family: var(--font-body-premium, "Segoe UI", Arial, sans-serif);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.price-page.menu-open,
body.price-page.site-shell-menu-open {
    overflow: hidden;
}

.price-container {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}

.price-fallback-header {
    border-bottom: 1px solid var(--price-line);
    background: rgba(255, 255, 255, 0.96);
}

.price-fallback-header__inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.price-fallback-header img {
    display: block;
    width: 185px;
    height: auto;
}

.price-fallback-header nav {
    display: flex;
    gap: 22px;
}

.price-fallback-header a {
    color: var(--price-green);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.price-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 116px) 0 clamp(50px, 6vw, 86px);
    border-bottom: 1px solid var(--price-line);
    background:
        radial-gradient(circle at 82% 18%, rgba(184, 123, 92, 0.12), transparent 28%),
        linear-gradient(135deg, #fbfaf6 0%, #f1f5f1 100%);
}

.price-hero::after {
    position: absolute;
    top: -150px;
    right: -120px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(18, 63, 54, 0.09);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.price-hero__ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.price-hero__dna {
    position: absolute;
    top: 50%;
    right: -54px;
    width: min(49vw, 710px);
    height: auto;
    opacity: 0.24;
    transform: translate3d(0, -50%, 0) rotate(-8deg);
    transform-origin: center;
    animation: price-dna-drift 18s cubic-bezier(0.45, 0, 0.25, 1) infinite alternate;
    will-change: transform, opacity;
}

.price-hero__dna-path {
    fill: none;
    stroke: rgba(18, 63, 54, 0.52);
    stroke-width: 1.35;
    vector-effect: non-scaling-stroke;
}

.price-hero__dna-path--reverse {
    stroke: rgba(184, 123, 92, 0.46);
}

.price-hero__dna-rungs line {
    stroke: rgba(18, 63, 54, 0.2);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.price-hero__orb {
    position: absolute;
    display: block;
    border: 1px solid rgba(18, 63, 54, 0.13);
    border-radius: 50%;
    opacity: 0.8;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.price-hero__orb::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(184, 123, 92, 0.48);
    content: "";
    transform: translate(-50%, -50%);
}

.price-hero__orb--one {
    top: 15%;
    right: 35%;
    width: 92px;
    height: 92px;
    animation: price-orb-one 15s ease-in-out infinite alternate;
}

.price-hero__orb--two {
    right: 8%;
    bottom: 8%;
    width: 156px;
    height: 156px;
    border-color: rgba(184, 123, 92, 0.12);
    animation: price-orb-two 21s ease-in-out infinite alternate;
}

.price-hero__orb--three {
    top: 8%;
    right: 4%;
    width: 34px;
    height: 34px;
    animation: price-orb-three 12s ease-in-out infinite alternate;
}

@keyframes price-dna-drift {
    0% {
        opacity: 0.18;
        transform: translate3d(0, -52%, 0) rotate(-9deg) scale(0.98);
    }
    100% {
        opacity: 0.3;
        transform: translate3d(-24px, -46%, 0) rotate(-5deg) scale(1.035);
    }
}

@keyframes price-orb-one {
    0% { opacity: 0.5; transform: translate3d(0, 0, 0) scale(0.96); }
    100% { opacity: 0.9; transform: translate3d(-28px, 24px, 0) scale(1.06); }
}

@keyframes price-orb-two {
    0% { opacity: 0.42; transform: translate3d(0, 0, 0) scale(1); }
    100% { opacity: 0.74; transform: translate3d(22px, -34px, 0) scale(0.93); }
}

@keyframes price-orb-three {
    0% { opacity: 0.38; transform: translate3d(0, 0, 0); }
    100% { opacity: 0.8; transform: translate3d(-38px, 18px, 0); }
}

.price-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: clamp(42px, 7vw, 104px);
    align-items: end;
}

.price-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--price-green);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.price-kicker::before {
    width: 34px;
    height: 1px;
    background: var(--price-warm);
    content: "";
}

.price-hero h1 {
    max-width: 790px;
    margin: 0;
    font-family: var(--font-display-premium, Georgia, serif);
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.price-hero__lead {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--price-muted);
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.55;
    text-wrap: pretty;
}

.price-hero__details {
    display: grid;
    gap: 18px;
    padding: 8px 0 4px 28px;
    border-left: 1px solid var(--price-line);
}

.price-hero__details div {
    display: grid;
    gap: 3px;
}

.price-hero__details span {
    color: var(--price-muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.price-hero__details strong {
    color: var(--price-green);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.price-content {
    padding: 66px 0 104px;
}

.price-layout {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: clamp(48px, 7vw, 94px);
    align-items: start;
}

.price-index {
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 128px);
    max-height: calc(100dvh - 128px);
    margin-right: -12px;
    padding-right: 12px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 63, 54, 0.34) transparent;
}

.price-index::-webkit-scrollbar {
    width: 5px;
}

.price-index::-webkit-scrollbar-track {
    background: transparent;
}

.price-index::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(18, 63, 54, 0.28);
}

.price-index:focus-visible {
    outline: 1px solid rgba(18, 63, 54, 0.34);
    outline-offset: 10px;
}

.price-index__label {
    display: block;
    margin-bottom: 16px;
    color: var(--price-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.price-index nav {
    display: grid;
    border-top: 1px solid var(--price-line);
}

.price-index a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--price-line);
    color: var(--price-green);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    transition: color 160ms ease, padding-left 160ms ease;
}

.price-index a:hover {
    padding-left: 5px;
    color: var(--price-warm);
}

.price-index a span {
    color: var(--price-muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.price-symptoms {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(18, 63, 54, 0.3);
}

.price-symptoms nav {
    border-top-color: transparent;
}

.price-symptoms a {
    display: block;
    padding: 12px 0;
}

.price-symptoms a strong,
.price-symptoms a span {
    display: block;
}

.price-symptoms a strong {
    color: var(--price-ink);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.42;
    text-wrap: pretty;
}

.price-symptoms a span {
    margin-top: 4px;
    color: var(--price-green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.price-catalog {
    display: grid;
    gap: 74px;
    min-width: 0;
}

.price-group {
    scroll-margin-top: 112px;
}

.price-group__head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(18, 63, 54, 0.34);
}

.price-group__number {
    color: var(--price-warm);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.price-group h2 {
    margin: 0;
    font-family: var(--font-display-premium, Georgia, serif);
    font-size: clamp(29px, 3.5vw, 43px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.price-services {
    display: grid;
}

.price-service {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: 112px;
    padding: 24px 0;
    border-bottom: 1px solid var(--price-line);
    transition: padding 180ms ease, background-color 180ms ease;
}

.price-service:hover {
    padding-right: 12px;
    padding-left: 12px;
    background: rgba(255, 253, 250, 0.72);
}

.price-service__copy {
    min-width: 0;
}

.price-service h3 {
    max-width: 48ch;
    margin: 0;
    color: var(--price-ink);
    font-size: clamp(17px, 1.65vw, 20px);
    font-weight: 650;
    line-height: 1.36;
    letter-spacing: -0.012em;
    text-wrap: pretty;
}

.price-service p {
    max-width: 66ch;
    margin: 7px 0 0;
    color: var(--price-muted);
    font-size: 13px;
    line-height: 1.55;
    text-wrap: pretty;
}

.price-service__code {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--price-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.price-service__value {
    justify-self: end;
    color: var(--price-green);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 700;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.price-empty,
.price-error {
    padding: 54px 0;
    border-top: 1px solid var(--price-line);
    border-bottom: 1px solid var(--price-line);
}

.price-empty h2,
.price-error h2 {
    margin: 0;
    font-size: 28px;
}

.price-empty p,
.price-error p {
    margin: 10px 0 0;
    color: var(--price-muted);
}

.price-empty button {
    margin-top: 22px;
}

.price-btn {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--price-green);
    border-radius: 999px;
    color: #fff;
    background: var(--price-green);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.price-btn:hover {
    color: var(--price-green);
    background: transparent;
    transform: translateY(-1px);
}

.price-btn:active {
    transform: translateY(0) scale(0.98);
}

.price-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: center;
    margin-top: 74px;
    padding: 30px 0;
    border-top: 1px solid var(--price-line);
    border-bottom: 1px solid var(--price-line);
}

.price-note p {
    max-width: 760px;
    margin: 0;
    color: var(--price-muted);
    font-size: 13px;
    line-height: 1.65;
}

.price-note a {
    color: var(--price-green);
    font-size: 14px;
    font-weight: 700;
    text-underline-offset: 5px;
}

.price-skeleton {
    display: grid;
    gap: 18px;
}

.price-skeleton span {
    display: block;
    height: 84px;
    border-bottom: 1px solid var(--price-line);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    background-size: 220% 100%;
    animation: price-shimmer 1.2s ease-in-out infinite;
}

@keyframes price-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

@media (max-width: 900px) {
    .price-hero__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .price-hero__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 24px 0 0;
        border-top: 1px solid var(--price-line);
        border-left: 0;
    }

    .price-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .price-index {
        position: static;
        min-width: 0;
        max-height: none;
        margin-right: 0;
        padding-right: 0;
        overflow: visible;
        scrollbar-gutter: auto;
    }

    .price-index nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 5px;
        border: 0;
        scrollbar-width: none;
    }

    .price-index nav::-webkit-scrollbar {
        display: none;
    }

    .price-index a {
        display: inline-flex;
        min-height: 40px;
        padding: 0 14px;
        align-items: center;
        flex: 0 0 auto;
        border: 1px solid var(--price-line);
        border-radius: 999px;
        background: var(--price-surface);
    }

    .price-index a:hover {
        padding-left: 14px;
    }

    .price-index a span {
        display: none;
    }

    .price-symptoms {
        margin-top: 24px;
        padding-top: 22px;
    }

    .price-symptoms nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 22px;
        overflow: visible;
    }

    .price-symptoms a {
        display: block;
        min-height: 0;
        padding: 13px 0;
        border-width: 0 0 1px;
        border-radius: 0;
        background: transparent;
    }

    .price-symptoms a strong,
    .price-symptoms a span {
        display: block;
    }

    .price-symptoms a span {
        margin-top: 4px;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 84px;
    }

    .price-container {
        width: min(100% - 32px, 1280px);
    }

    .price-fallback-header__inner {
        min-height: 68px;
    }

    .price-fallback-header img {
        width: 138px;
    }

    .price-fallback-header nav {
        display: none;
    }

    .price-hero {
        padding: 54px 0 46px;
    }

    .price-hero::after {
        top: -80px;
        right: -210px;
    }

    .price-hero__dna {
        top: 34%;
        right: -205px;
        width: 540px;
        opacity: 0.13;
    }

    .price-hero__orb--one {
        top: 9%;
        right: 4%;
        width: 62px;
        height: 62px;
    }

    .price-hero__orb--two {
        right: -62px;
        bottom: 12%;
        width: 122px;
        height: 122px;
    }

    .price-hero__orb--three {
        display: none;
    }

    .price-hero h1 {
        font-size: clamp(39px, 12vw, 54px);
        line-height: 1.01;
    }

    .price-hero__lead {
        margin-top: 18px;
        font-size: 16px;
    }

    .price-hero__details {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .price-content {
        padding: 42px 0 76px;
    }

    .price-index__label {
        margin-bottom: 12px;
    }

    .price-symptoms nav {
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
    }

    .price-symptoms a strong {
        font-size: 11px;
    }

    .price-catalog {
        gap: 58px;
    }

    .price-group {
        scroll-margin-top: 88px;
    }

    .price-group__head {
        grid-template-columns: 35px minmax(0, 1fr);
        gap: 10px;
        padding-bottom: 16px;
    }

    .price-group h2 {
        font-size: 28px;
    }

    .price-service {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
        min-height: 0;
        padding: 20px 0;
        align-items: start;
    }

    .price-service:hover {
        padding-right: 0;
        padding-left: 0;
        background: transparent;
    }

    .price-service h3 {
        font-size: 15px;
        line-height: 1.42;
    }

    .price-service p {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.48;
    }

    .price-service__value {
        max-width: 118px;
        font-size: 17px;
        line-height: 1.3;
        white-space: normal;
    }

    .price-note {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 58px;
    }
}

@media (max-width: 390px) {
    .price-service {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .price-service__value {
        max-width: none;
        justify-self: start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .price-hero__dna,
    .price-hero__orb {
        animation: none !important;
    }
}
