/* Inner pages — layout overrides (main page unchanged) */
.page-inner .cta > .container {
    margin-bottom: 0;
    padding-bottom: 40px;
}

/* Cases / stats: как на главной — без переопределений container */
.page-inner .cases > .container {
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-inner .hero {
    padding: calc(var(--header-h) + 30px) 0 106px;
}

.page-inner .hero__title {
    font-size: clamp(20px, 3.04vw, 42px);
    font-weight: 600;
}

.page-inner .hero__title .text-gradient {
    font-weight: 600;
}

/* Контентные секции: +40px снизу до stats */
.page-inner .revolution {
    padding: var(--section-pad) 0 calc(var(--section-pad) + 40px);
}

.page-inner .revolution > .container {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.page-inner .revolution .page-outro {
    margin-top: 48px;
}

/* Service detail: prose + spec + visual */
.page-inner .revolution .section-head {
    margin-bottom: 38px;
    padding-bottom: 0px;
    /* border-bottom: 1px solid rgba(10, 10, 18, 0.1); */
}

.page-inner .page-layout--with-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(299px, 334px);
    gap: 28px;
    align-items: start;
}

.page-inner .page-layout__sidebar {
    top: calc(var(--header-h) + 20px);
}

.page-inner .page-prose--service {
    box-sizing: border-box;
    padding: calc(28px * 0.7) 32px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(10, 10, 18, 0.68);
    letter-spacing: -0.01em;
    background: #fff;
    border: 1px solid rgba(10, 10, 18, 0.14);
}

.page-prose--service > * + * {
    margin-top: 0;
}

.page-prose--service .page-prose__heading--lead {
    font-size: 20px;
    font-weight: 400;
}

.page-prose--service .page-prose__heading {
    margin: 16px 0 6px 0px;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--text-dark);
}

.page-prose--service .page-prose__heading:not(:first-child) {
    margin-top: calc(28px * 0.7);
    padding-top: calc(28px * 0.7);
    border-top: 1px solid rgba(10, 10, 18, 0.08);
}

.page-prose--service p {
    margin: 0;
    max-width: none;
}

.page-prose--service p + p {
    margin-top: 1em;
}

.page-prose--service h3 {
    display: none;
}

.page-prose--service .page-prose__list {
    margin: 1em 0 0;
    padding-left: 1.25em;
}

.page-prose--service .page-prose__list li + li {
    margin-top: 0.5em;
}

.page-prose--service .page-prose__quote {
    margin: 1.25em 0 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--primary);
    background: var(--primary-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-prose--service .page-prose__quote p {
    margin: 0;
    font-weight: 500;
}

.page-prose--service .page-prose__diagram {
    margin: 1.25em 0 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
    background: rgba(10, 10, 18, 0.04);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(10, 10, 18, 0.08);
}

.page-spec {
    border: 1px solid rgba(10, 10, 18, 0.12);
    border-left: 3px solid var(--primary);
    background: #fff;
}

.page-spec__head {
    padding: 28px 24px 22px 28px;
    border-bottom: 1px solid rgba(10, 10, 18, 0.08);
}

.page-spec__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.page-spec__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--text-dark);
}

.page-spec__metrics {
    margin: 0;
}

.page-spec__metric {
    display: grid;
    gap: 8px;
    padding: 22px 24px 22px 28px;
    border-bottom: 1px solid rgba(10, 10, 18, 0.08);
}

.page-spec__metric dt {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.page-spec__metric dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.page-spec__payment {
    padding: 24px 24px 28px 28px;
    background: rgba(111, 76, 255, 0.04);
    border-top: 1px solid rgba(111, 76, 255, 0.08);
}

.page-spec__payment-label {
    margin: 0 0 6px;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.page-spec__payment-format {
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--text-dark);
}

.page-spec__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 20px;
}

.page-spec__step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-dark-muted);
}

.page-spec__step strong,
.page-spec__step span:not(.page-spec__step-num) {
    color: var(--text-dark);
}

.page-spec__step-num {
    font-size: 30px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--primary);
}

/* AI: отрасли и направления бизнеса */
.ai-directions {
    --ai-dir-scale: 1.15;
    margin-top: calc(56px * var(--ai-dir-scale));
    padding-top: calc(48px * var(--ai-dir-scale));
    border-top: 1px solid rgba(111, 76, 255, 0.1);
}

.ai-directions__layout {
    display: grid;
    grid-template-columns: minmax(calc(240px * var(--ai-dir-scale)), calc(360px * var(--ai-dir-scale))) minmax(0, 1fr);
    gap: clamp(calc(40px * var(--ai-dir-scale)), calc(5vw * var(--ai-dir-scale)), calc(80px * var(--ai-dir-scale)));
    align-items: start;
}

.ai-directions__head {
    position: sticky;
    top: calc(var(--header-h) + 24px * var(--ai-dir-scale));
    margin: 0;
}

.ai-directions__rule {
    display: block;
    width: calc(40px * var(--ai-dir-scale));
    height: calc(3px * var(--ai-dir-scale));
    margin: 0 0 calc(18px * var(--ai-dir-scale));
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.ai-directions__eyebrow {
    margin: 0 0 calc(10px * var(--ai-dir-scale));
    font-size: calc(17px * var(--ai-dir-scale));
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--primary);
}

.ai-directions__title {
    margin: 0 0 calc(18px * var(--ai-dir-scale));
    color: var(--text-dark);
}

.ai-directions__title-main {
    display: block;
    font-size: clamp(calc(28px * var(--ai-dir-scale)), calc(2.8vw * var(--ai-dir-scale)), calc(40px * var(--ai-dir-scale)));
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--text-dark);
}

.ai-directions__title-main .text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ai-directions__title-sub {
    display: block;
    margin-top: calc(8px * var(--ai-dir-scale));
    font-size: clamp(calc(16px * var(--ai-dir-scale)), calc(1.5vw * var(--ai-dir-scale)), calc(20px * var(--ai-dir-scale)));
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: var(--text-dark-muted);
}

.ai-directions__lead {
    margin: 0;
    max-width: 28rem;
    font-size: clamp(calc(15px * var(--ai-dir-scale)), calc(1.35vw * var(--ai-dir-scale)), calc(17px * var(--ai-dir-scale)));
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark-muted);
}

.ai-directions__meta {
    display: flex;
    flex-direction: column;
    gap: calc(4px * var(--ai-dir-scale));
    margin: calc(32px * var(--ai-dir-scale)) 0 0;
    padding-top: calc(24px * var(--ai-dir-scale));
    border-top: 1px solid rgba(111, 76, 255, 0.12);
}

.ai-directions__count {
    font-size: clamp(calc(48px * var(--ai-dir-scale)), calc(5vw * var(--ai-dir-scale)), calc(60px * var(--ai-dir-scale)));
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ai-directions__meta-label {
    font-size: calc(13px * var(--ai-dir-scale));
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(111, 76, 255, 0.55);
}

.ai-directions__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(calc(24px * var(--ai-dir-scale)), calc(3vw * var(--ai-dir-scale)), calc(48px * var(--ai-dir-scale)));
    row-gap: calc(2px * var(--ai-dir-scale));
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-direction {
    display: flex;
    align-items: flex-start;
    gap: calc(12px * var(--ai-dir-scale));
    margin: 0;
    padding: calc(11px * var(--ai-dir-scale)) 0;
    border-bottom: 1px solid rgba(10, 10, 18, 0.06);
    transition: border-color 0.2s ease;
}

.ai-direction:hover {
    border-bottom-color: rgba(10, 10, 18, 0.12);
}

.ai-direction__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(32px * var(--ai-dir-scale));
    height: calc(32px * var(--ai-dir-scale));
    margin-top: calc(1px * var(--ai-dir-scale));
}

.ai-direction__icon img {
    display: block;
    width: calc(32px * var(--ai-dir-scale));
    height: calc(32px * var(--ai-dir-scale));
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-direction:hover .ai-direction__icon img {
    opacity: 1;
    transform: scale(1.05);
}

.ai-direction__label {
    font-size: calc(13px * var(--ai-dir-scale));
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.012em;
    color: rgba(10, 10, 18, 0.76);
    transition: color 0.2s ease;
}

.ai-direction:hover .ai-direction__label {
    color: var(--text-dark);
}

@media (max-width: 1024px) {
    .ai-directions__layout {
        grid-template-columns: 1fr;
        gap: calc(36px * var(--ai-dir-scale));
    }

    .ai-directions__head {
        position: static;
        max-width: 36rem;
    }
}

@media (max-width: 1100px) {
    .ai-directions__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ai-directions {
        padding-top: calc(40px * var(--ai-dir-scale));
    }

    .ai-directions__list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .ai-direction {
        padding: calc(12px * var(--ai-dir-scale)) 0;
    }
}

.page-inner .page-screen-card.bento-showcase__card {
    margin-top: 0px;
    padding-top: 40px;
    /* border-top: 1px solid rgba(10, 10, 18, 0.1); */
}

.page-inner .page-screen-card__shot--security {
    padding: 16px 0 0;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 12%,
        #000 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 12%,
        #000 88%,
        transparent 100%
    );
}

.page-inner .page-screen-card__shot--security img {
    max-height: 280px;
    opacity: 0.92;
    filter: grayscale(0.15) contrast(1.04);
}

@media (max-width: 1024px) {
    .page-inner .page-layout--with-sidebar {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .page-spec {
        max-width: none;
    }

    .page-inner .page-prose--service {
        padding: calc(24px * 0.7) 22px;
    }
}

@media (max-width: 900px) {
    .page-inner .hero {
        padding: calc(var(--header-h) + 28px) 0 72px;
    }

    .page-inner .revolution {
        padding: 80px 0 120px;
    }

    .page-inner .revolution > .container {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Interface screenshot card (bento-like, flush image) */
.page-screen-card.bento-showcase__card {
    margin-top: 48px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.page-screen-card.bento-showcase__card:hover {
    box-shadow: none;
}

.page-screen-card.bento-showcase__card--lg {
    min-height: 280px;
}

.page-screen-card__shot {
    padding: 0;
    margin: 0;
    line-height: 0;
    background: transparent;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 8%,
        #000 28%,
        #000 72%,
        transparent 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 8%,
        #000 28%,
        #000 72%,
        transparent 92%,
        transparent 100%
    );
}

.page-screen-card__shot img {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 520px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.page-screen-card__shot--security {
    padding: 28px 0;
    background: transparent;
}

.page-screen-card__shot--security img {
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.page-workflow {
    display: grid;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    margin: 56px 0 0;
    padding: 0;
    list-style: none;
}

.page-workflow__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wf-accent, var(--primary));
}

.page-workflow__process p,
.page-workflow__result p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

.page-workflow__process p {
    color: var(--text-dark-muted);
}

.page-workflow__result p {
    font-weight: 600;
    color: var(--text-dark);
}

/* ÃƒÂÃ‚Â¡ÃƒÂÃ‚ÂµÃƒâ€˜Ã¢â‚¬Å¡ÃƒÂÃ‚ÂºÃƒÂÃ‚Â°: 1:1:1 | 1:2 | 1:1 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â ÃƒÂÃ‚Â½ÃƒÂÃ‚Â° ÃƒÂÃ‚Â²Ãƒâ€˜Ã‚ÂÃƒâ€˜Ã…Â½ Ãƒâ€˜Ã‹â€ ÃƒÂÃ‚Â¸Ãƒâ€˜Ã¢â€šÂ¬ÃƒÂÃ‚Â¸ÃƒÂÃ‚Â½Ãƒâ€˜Ã†â€™ ÃƒÂÃ‚ÂºÃƒÂÃ‚Â¾ÃƒÂÃ‚Â½Ãƒâ€˜Ã¢â‚¬Å¡ÃƒÂÃ‚ÂµÃƒÂÃ‚Â¹ÃƒÂÃ‚Â½ÃƒÂÃ‚ÂµÃƒâ€˜Ã¢â€šÂ¬ÃƒÂÃ‚Â° */
.page-workflow--layout {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.page-workflow__row {
    display: contents;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-workflow__card--1 {
    grid-column: 1 / span 2;
    grid-row: 1;
    align-self: start;
}

.page-workflow__card--2 {
    grid-column: 3 / span 2;
    grid-row: 1;
}

.page-workflow__card--3 {
    grid-column: 5 / span 2;
    grid-row: 1;
}

.page-workflow__card--4 {
    grid-column: 1 / span 2;
    grid-row: 2;
    align-self: start;
}

.page-workflow__card--5 {
    grid-column: 3 / -1;
    grid-row: 2;
}

.page-workflow__card--6 {
    grid-column: 1 / span 3;
    grid-row: 3;
}

.page-workflow__card--7 {
    grid-column: 4 / -1;
    grid-row: 3;
}

.page-workflow__card {
    --wf-accent: var(--primary);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    width: 100%;
    padding: 28px 28px 26px;
    background: #fff;
    border: 1px solid rgba(10, 10, 18, 0.07);
    /* border-radius: var(--radius-lg); */
    box-shadow: 0 1px 2px rgba(10, 10, 18, 0.04);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.page-workflow__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wf-accent), color-mix(in srgb, var(--wf-accent) 55%, #fff));
}

.page-workflow__card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--wf-accent) 28%, transparent);
    box-shadow:
        0 20px 48px rgba(10, 10, 18, 0.1),
        0 0 0 1px color-mix(in srgb, var(--wf-accent) 12%, transparent);
}

.page-workflow__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 40%), color-mix(in srgb, var(--wf-accent) 22%, transparent), transparent 62%);
    transition: opacity 0.3s ease;
}

.page-workflow__card:hover .page-workflow__glow {
    opacity: 1;
}

.page-workflow__step {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: clamp(42px, 4vw, 56px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: color-mix(in srgb, var(--wf-accent) 14%, transparent);
    user-select: none;
    pointer-events: none;
}

.page-workflow__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-right: 52px;
}

.page-workflow__icon {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--wf-accent) 14%, #fff);
    color: var(--wf-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.page-workflow__title {
    margin: 0;
    font-size: clamp(17px, 1.35vw, 18px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.page-workflow__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
}

.page-workflow__process {
    flex: 0 0 auto;
}

.page-workflow__result {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(111, 76, 255, 0.06), rgba(111, 76, 255, 0.02));
    border: 1px solid rgba(111, 76, 255, 0.12);
}

@media (max-width: 1100px) {
    .page-workflow--layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .page-workflow__row {
        display: grid;
        gap: 24px;
        width: 100%;
    }

    .page-workflow__row--30 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-workflow__row--30 .page-workflow__card:last-child {
        grid-column: 1 / -1;
    }

    .page-workflow__row--wide {
        grid-template-columns: 1fr;
    }

    .page-workflow__row--half {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-workflow__card--1,
    .page-workflow__card--2,
    .page-workflow__card--3,
    .page-workflow__card--4,
    .page-workflow__card--5,
    .page-workflow__card--6,
    .page-workflow__card--7 {
        grid-column: auto;
        grid-row: auto;
        align-self: stretch;
    }
}

@media (max-width: 640px) {
    .page-workflow {
        margin-top: 40px;
        gap: 16px;
    }

    .page-workflow--layout {
        gap: 16px;
    }

    .page-workflow__row {
        gap: 16px;
        grid-template-columns: 1fr !important;
    }

    .page-workflow__row--30 .page-workflow__card:last-child {
        grid-column: auto;
    }

    .page-workflow__card {
        padding: 22px 20px 20px;
    }

    .page-workflow__head {
        padding-right: 44px;
    }

    .page-workflow__step {
        top: 12px;
        right: 14px;
        font-size: 38px;
    }

    .page-workflow__icon {
        width: 44px;
        height: 44px;
    }
}

.page-speed-table {
    margin-top: 40px;
}

/* —— Time-to-Market (страница «Сроки») —— */
#speed .section-head {
    margin-bottom: clamp(36px, 4.5vw, 52px);
}

#speed .section-lead {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark-muted);
}

.ttm {
    max-width: 1080px;
    margin: 0 auto;
}

.ttm-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 0 0 clamp(52px, 6.5vw, 80px);
    background: rgba(10, 10, 18, 0.09);
    border: 1px solid rgba(10, 10, 18, 0.09);
}

.ttm-metric {
    padding: clamp(28px, 3.2vw, 40px) clamp(18px, 2vw, 28px);
    background: #fff;
    text-align: center;
}

.ttm-metric__value {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 50px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
    color: var(--text-dark);
    font-variant-numeric: tabular-nums;
}

.ttm-metric__unit {
    margin-left: 0.12em;
    font-size: 0.38em;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.ttm-metric__label {
    margin: 14px 0 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(10, 10, 18, 0.45);
}

.ttm-kicker {
    margin: 0 0 clamp(24px, 2.8vw, 32px);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.ttm-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 18px);
    margin-bottom: clamp(60px, 7vw, 88px);
}

.ttm-pillar {
    padding: clamp(26px, 2.8vw, 34px) clamp(22px, 2.4vw, 30px);
    background: #fff;
    border: 1px solid rgba(10, 10, 18, 0.07);
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.ttm-pillar:hover {
    border-color: rgba(111, 76, 255, 0.2);
    box-shadow: 0 20px 44px rgba(10, 10, 18, 0.07);
}

.ttm-pillar__index {
    display: block;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(111, 76, 255, 0.5);
}

.ttm-pillar__title {
    margin: 0 0 12px;
    font-size: clamp(16px, 1.4vw, 18px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: var(--text-dark);
}

.ttm-pillar__tag {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(10, 10, 18, 0.4);
}

.ttm-pillar__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.68;
    color: var(--text-dark-muted);
}

.ttm-standards__title {
    margin: 0 0 clamp(20px, 2.5vw, 28px);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(10, 10, 18, 0.42);
}

.ttm-standards__list {
    border-top: 1px solid rgba(10, 10, 18, 0.1);
}

.ttm-stage {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(18px, 2.2vw, 24px) 0;
    border-bottom: 1px solid rgba(10, 10, 18, 0.07);
}

.ttm-stage__name {
    font-size: clamp(13px, 1.15vw, 15px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--text-dark-muted);
}

.ttm-stage__term {
    flex-shrink: 0;
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--text-dark);
    font-variant-numeric: tabular-nums;
}

.ttm-stage--highlight .ttm-stage__name {
    font-weight: 600;
    color: var(--text-dark);
}

.ttm-stage--highlight .ttm-stage__term {
    color: var(--primary);
}

.ttm-quote {
    margin: clamp(52px, 6.5vw, 72px) 0 0;
    padding: 0;
}

.ttm-quote blockquote {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-style: normal;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.025em;
    text-align: center;
    color: var(--text-dark);
}

.ttm-quote blockquote::before {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    margin: 0 auto clamp(22px, 2.8vw, 28px);
    background: var(--primary);
    opacity: 0.55;
}

@media (max-width: 768px) {
    .ttm-metrics {
        grid-template-columns: 1fr;
    }

    .ttm-pillars {
        grid-template-columns: 1fr;
    }

    .ttm-stage {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* —— Risk Mitigation (страница «Гарантии») —— */
#garantii {
    --risk-content-max: 1270px; /* +15% к 1104px */
    --risk-metric-label: #4a386e; /* тёмно-сиреневый */
}

#garantii .section-head {
    margin-bottom: clamp(32px, 4vw, 48px);
}

#garantii .section-lead {
    max-width: min(49.68rem, 100%);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.65;
    color: rgba(10, 10, 18, 0.72);
}

/* Hero + metrics */
.risk-hero {
    margin: 0 0 clamp(64px, 8vw, 96px);
    padding: clamp(36px, 4.5vw, 52px) clamp(28px, 3.5vw, 48px);
    text-align: center;
    background: #fff;
    border: 1px solid rgba(10, 10, 18, 0.06);
    box-shadow: 0 24px 64px rgba(10, 10, 18, 0.04);
}

.risk {
    max-width: min(var(--risk-content-max), 100%);
    margin: 0 auto;
}

.risk-hero__lead {
    margin: 0 auto;
    max-width: min(46.92rem, 100%);
    font-size: clamp(17px, 1.5vw, 19px);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: rgba(10, 10, 18, 0.72);
}

.risk-hero__lead--accent {
    margin-bottom: 12px;
    max-width: none;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.25;
    color: var(--text-dark);
}

.risk-hero__lead--accent + .risk-hero__lead {
    margin-bottom: clamp(32px, 4vw, 44px);
}

.risk-hero__lead strong {
    font-weight: 600;
    color: var(--text-dark);
}

.risk-metric__value--compact {
    font-size: clamp(28px, 3.6vw, 44px);
    letter-spacing: -0.04em;
}

.risk-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: clamp(8px, 1vw, 12px);
    gap: 0;
    align-items: stretch;
}

.risk-metric {
    display: grid;
    grid-template-rows: auto minmax(2.7em, auto);
    justify-items: center;
    align-content: start;
    gap: 14px;
    min-width: 0;
    padding: clamp(8px, 1vw, 12px) clamp(20px, 2.5vw, 32px);
    text-align: center;
}

.risk-metric + .risk-metric {
    border-left: 1px solid rgba(10, 10, 18, 0.1);
}

.risk-metric__value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 0;
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--text-dark);
    font-variant-numeric: tabular-nums;
}

.risk-metric__unit {
    margin-left: 0.08em;
    font-size: 0.36em;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.risk-metric__label {
    align-self: start;
    width: 100%;
    max-width: 16.7rem;
    margin: 0;
    font-size: clamp(16px, 1.43vw, 17px);
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
    color: var(--risk-metric-label, #4a386e);
}

/* Four layers — editorial stack */
.risk-layers {
    margin-bottom: clamp(64px, 8vw, 96px);
}

.risk-layers__head {
    margin-bottom: clamp(36px, 4.5vw, 52px);
    text-align: center;
}

.risk-layers__eyebrow {
    margin: 0 0 14px;
    font-size: clamp(20px, 2.1vw, 26px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
    text-transform: none;
    color: var(--text-dark);
}

.risk-layers__sub {
    margin: 0 auto;
    max-width: min(46.92rem, 100%);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.65;
    color: rgba(10, 10, 18, 0.72);
}

.risk-layers__stack {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(10, 10, 18, 0.1);
}

.risk-layer {
    display: grid;
    grid-template-columns: clamp(52px, 6vw, 72px) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
    padding: clamp(28px, 3.2vw, 40px) 0 clamp(28px, 3.2vw, 40px) 25px;
    border-bottom: 1px solid rgba(10, 10, 18, 0.07);
    transition: background 0.35s ease;
}

.risk-layer:hover {
    background: linear-gradient(
        90deg,
        rgba(111, 76, 255, 0.04) 0%,
        transparent 42%
    );
}

.risk-layer__num {
    padding-top: 6px;
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
    color: rgba(111, 76, 255, 0.18);
    transition: color 0.35s ease;
}

.risk-layer:hover .risk-layer__num {
    color: rgba(111, 76, 255, 0.38);
}

.risk-layer__body {
    min-width: 0;
}

.risk-layer__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.risk-layer__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 0;
    color: var(--primary);
    background: rgba(111, 76, 255, 0.08);
    border-radius: 10px;
}

.risk-layer__icon svg {
    display: block;
}

.risk-layer__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: clamp(19px, 1.65vw, 22px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.35;
    color: var(--text-dark);
}

.risk-layer__dot {
    margin: 0 0.45em;
    font-weight: 400;
    color: rgba(10, 10, 18, 0.25);
}

.risk-layer__tag {
    font-size: clamp(11px, 1vw, 12px);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(10, 10, 18, 0.5);
}

.risk-layer__text {
    margin: 0;
    max-width: none;
    font-size: clamp(16px, 1.35vw, 17px);
    line-height: 1.7;
    color: rgba(10, 10, 18, 0.72);
}

/* Contract grid */
.risk-contract {
    margin-bottom: clamp(56px, 7vw, 80px);
}

.risk-contract__panel {
    padding: clamp(32px, 3.8vw, 44px) clamp(28px, 3.2vw, 40px);
    background: #fff;
    border: 1px solid rgba(10, 10, 18, 0.08);
    box-shadow: 0 28px 72px rgba(10, 10, 18, 0.06);
}

.risk-contract__head {
    margin-bottom: clamp(28px, 3.2vw, 36px);
    padding-bottom: clamp(22px, 2.5vw, 28px);
    border-bottom: 1px solid rgba(10, 10, 18, 0.08);
}

.risk-contract__eyebrow {
    margin: 0 0 8px;
    font-size: clamp(12px, 1.1vw, 13px);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.risk-contract__title {
    margin: 0;
    font-size: clamp(22px, 2vw, 26px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: var(--text-dark);
}

.risk-contract__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(10, 10, 18, 0.07);
}

.risk-contract__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    padding: clamp(20px, 2.2vw, 26px) clamp(18px, 2vw, 24px);
    background: #fff;
    transition: background 0.25s ease;
}

.risk-contract__item:hover {
    background: rgba(111, 76, 255, 0.03);
}

.risk-contract__num {
    align-self: center;
    font-size: clamp(24px, 2.1vw, 26px);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    color: oklch(51.1% 0.262 276.966);
    font-variant-numeric: tabular-nums;
}

.risk-contract__name {
    margin: 0 0 8px;
    font-size: clamp(23px, 1.95vw, 24px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: var(--text-dark);
}

.risk-contract__detail {
    margin: 0;
    font-size: clamp(15px, 1.25vw, 16px);
    line-height: 1.6;
    color: rgba(10, 10, 18, 0.72);
}

/* Quote band */
.risk-quote {
    margin: 0;
    padding: clamp(40px, 5vw, 56px) clamp(28px, 4vw, 48px);
    background: var(--text-dark);
    border-radius: 2px;
}

.risk-quote blockquote {
    margin: 0 auto;
    padding: 0;
    max-width: min(46.92rem, 100%);
    border: none;
    background: none;
    font-style: normal;
    font-size: clamp(18px, 1.75vw, 22px);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.025em;
    text-align: center;
    color: rgba(255, 255, 255, 0.94);
}

.risk-quote blockquote::before {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin: 0 auto clamp(20px, 2.5vw, 28px);
    background: var(--primary);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .risk-hero {
        padding: 28px 20px 32px;
    }

    .risk-metrics {
        grid-template-columns: 1fr;
    }

    .risk-metric {
        grid-template-rows: auto auto;
        gap: 10px;
        padding: 20px 12px;
    }

    .risk-metric + .risk-metric {
        border-left: none;
        border-top: 1px solid rgba(10, 10, 18, 0.1);
    }

    .risk-metric__label {
        max-width: none;
    }

    .risk-layer {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
    }

    .risk-layer__num {
        padding-top: 4px;
        font-size: 28px;
    }

    .risk-layer__head {
        gap: 12px;
        margin-bottom: 12px;
    }

    .risk-layer__icon {
        width: 40px;
        height: 40px;
        margin-top: 0;
    }

    .risk-layer__dot {
        display: none;
    }

    .risk-layer__tag {
        display: block;
        margin-top: 6px;
        font-size: 12px;
    }

    .risk-layer__title {
        font-size: 18px;
    }

    .risk-layer__text {
        font-size: 16px;
    }

    .risk-contract__name {
        font-size: 24px;
    }

    .risk-contract__detail {
        font-size: 15px;
    }

    .risk-contract__grid {
        grid-template-columns: 1fr;
    }

    .risk-contract__panel {
        padding: 24px 20px;
    }
}

/* Услуги — каталог (layout как у страниц услуг) */
.page-inner #services .section-lead {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.svc-catalog-panel {
    max-width: none;
}

.svc-catalog {
    --svc-gap: clamp(36px, 4vw, 52px);
}

.svc-catalog__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.svc-group {
    padding: calc(28px * 0.7) 0;
    border-top: 1px solid rgba(10, 10, 18, 0.08);
}

.svc-catalog__grid > .svc-group:first-child {
    padding-top: 0;
    border-top: none;
}

.svc-aside__nav {
    display: grid;
}

.svc-aside__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px 14px 28px;
    border-bottom: 1px solid rgba(10, 10, 18, 0.08);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.35;
    color: var(--text-dark);
    transition: background 0.2s ease, color 0.2s ease;
}

.svc-aside__link:hover {
    background: rgba(111, 76, 255, 0.05);
    color: var(--primary);
}

.svc-aside__arrow {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
    color: var(--primary);
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.svc-aside__link:hover .svc-aside__arrow {
    opacity: 1;
    transform: translateX(2px);
}

.svc-aside__actions {
    display: grid;
    gap: 12px;
    padding: 24px 24px 28px 28px;
    border-top: 1px solid rgba(111, 76, 255, 0.08);
    background: rgba(111, 76, 255, 0.04);
}

.svc-aside__cta {
    width: 100%;
    justify-content: center;
}

.svc-aside__cta-secondary {
    width: 100%;
    justify-content: center;
}

.svc-group__head {
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 2vw, 24px);
    margin: 0 0 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.svc-group__num {
    flex-shrink: 0;
    font-size: clamp(40px, 4vw, 52px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
    color: rgba(111, 76, 255, 0.2);
}

.svc-group__titles {
    min-width: 0;
    padding-top: 4px;
}

.svc-catalog-panel .svc-group__title {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text-dark);
}

.svc-group__en {
    margin: 8px 0 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(111, 76, 255, 0.55);
}

.svc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.svc-item {
    display: grid;
    gap: 5px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(10, 10, 18, 0.06);
}

.svc-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.svc-catalog-panel .svc-item__name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.4;
    color: var(--text-dark);
}

.svc-catalog-panel .svc-item__desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(10, 10, 18, 0.68);
}

@media (max-width: 900px) {
    .svc-group__num {
        font-size: 36px;
    }
}
