:root {
    --case-ink: #0b0b0c;
    --case-muted: #626978;
    --case-panel: #f7f8fa;
    --case-blue: #f4f7fd;
    --case-lime: #8bd538;
    --case-lime-soft: #f0f9e8;
    --case-dark: #111216;
    --case-line: rgba(20, 24, 32, 0.08);
    --case-grid-width: 1136px;
    --case-radius-xl: 32px;
    --case-radius-lg: 24px;
    --case-radius-md: 20px;
}

* {
    box-sizing: border-box;
}

body {
    color: var(--case-ink);
}

medweb-header {
    display: contents;
}

medweb-footer {
    display: block;
}

.case-page {
    padding-top: 24px;
    overflow: clip;
    background: #fff;
}

body[data-site-root='../../'] #main-header > nav {
    display: flex !important;
}

.case-shell {
    width: min(var(--case-grid-width), calc(100% - 64px));
    margin-inline: auto;
}

.case-hero,
.case-panel,
.case-results,
.case-cta {
    margin-inline: 20px;
    border-radius: var(--case-radius-xl);
}

.case-hero,
.case-panel {
    background:
        radial-gradient(circle at 62% 18%, rgba(255,255,255,.94), transparent 35%),
        linear-gradient(135deg, #f8f9fb 0%, #f5f6f8 100%);
}

.case-hero {
    position: relative;
    min-height: 820px;
    margin-inline: 24px;
    padding: 138px 0 70px;
}

.case-hero-tab {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 50;
    display: flex;
    width: 140px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    transform: translateX(-50%);
}

.case-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 32px;
    color: #575e6b;
    font-size: 14px;
    font-weight: 600;
}

.case-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.case-breadcrumbs [aria-current='page'] {
    color: var(--case-lime);
}

.case-hero__intro {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 28px;
    margin-top: 0;
    align-items: center;
}

.case-hero h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(43px, 3.05vw, 50px);
    font-weight: 700;
    letter-spacing: -.052em;
    line-height: 1.04;
    text-wrap: balance;
}

.case-hero__copy > p {
    max-width: 590px;
    margin: 26px 0 0;
    color: #5e6574;
    font-size: 18px;
    line-height: 1.5;
}

.case-browser {
    min-width: 0;
    margin: 0;
}

.case-browser--hero {
    width: 100%;
    justify-self: end;
}

.case-browser--hero.motion-tilt {
    transform-origin: center center;
    transform-style: preserve-3d;
    transition: transform 560ms cubic-bezier(.23, 1, .32, 1);
}

.case-browser--hero.motion-tilt.is-motion-hovered {
    transition-duration: 120ms;
}

.case-browser--hero.motion-tilt .case-browser__viewport {
    transition: box-shadow 560ms cubic-bezier(.23, 1, .32, 1);
}

.case-browser--hero.motion-tilt.is-motion-hovered .case-browser__viewport {
    box-shadow: 0 24px 56px rgba(45, 52, 64, .14);
}

.case-browser figcaption {
    display: inline-flex;
    min-height: 30px;
    margin: 0 0 10px 2px;
    padding: 0 15px;
    align-items: center;
    color: #5f6671;
    font-size: 14px;
    font-weight: 600;
    background: #eef0f3;
    border-radius: 999px;
}

.case-browser:nth-child(2) figcaption {
    color: #68b72b;
    background: #edf8e7;
}

.case-browser__viewport {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(25, 30, 38, .06);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(45, 52, 64, .08);
}

.case-browser__chrome {
    position: relative;
    display: flex;
    height: 44px;
    padding: 0 16px;
    align-items: center;
    gap: 7px;
    background: linear-gradient(180deg, #fff, #fafbfc);
    border-bottom: 1px solid rgba(25, 30, 38, .07);
}

.case-browser__chrome span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f28470;
}

.case-browser__chrome span:nth-child(2) { background: #f5bd43; }
.case-browser__chrome span:nth-child(3) { background: #56c55c; }

.case-browser__chrome b {
    position: absolute;
    top: 9px;
    left: 50%;
    display: flex;
    min-width: 50%;
    min-height: 26px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8b919b;
    font-size: 10px;
    font-weight: 600;
    background: #f7f8fa;
    border-radius: 999px;
    transform: translateX(-50%);
}

.case-browser__chrome b i {
    font-size: 8px;
}

.case-browser__menu {
    margin-left: auto;
    color: #b9bec5;
    font-size: 11px;
}

.case-mock-crop {
    position: relative;
    overflow: hidden;
    background: #f4f6f8;
}

.case-mock-crop::before {
    content: '';
    position: absolute;
    display: block;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.case-mock-crop--hero {
    aspect-ratio: 760 / 420;
}

.case-mock-crop--hero::before {
    top: -52.14%;
    left: -102.89%;
    width: 220%;
    height: 224.05%;
    background-image: url('../img/cases/stomatologiya/layout-hero.png');
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
    margin-inline: 0;
}

.case-metrics article {
    display: flex;
    min-height: 142px;
    padding: 20px 18px;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 22px;
}

.case-metric-icon,
.case-line-icon,
.case-result-icon {
    display: grid;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    place-items: center;
    color: var(--case-lime);
    font-size: 28px;
    background: var(--case-lime-soft);
    border-radius: 50%;
}

.case-metric-icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    font-size: 23px;
}

.case-metrics article > div {
    min-width: 0;
}

.case-metrics strong {
    display: block;
    font-size: clamp(26px, 2vw, 27px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.1;
    white-space: nowrap;
}

.case-metrics article div > span {
    display: block;
    margin-top: 14px;
    color: #646b78;
    font-size: 14px;
    line-height: 1.35;
}

.case-text-link {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 12px;
    color: var(--case-lime);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
}

.case-hero-cta {
    display: inline-flex;
    min-height: 48px;
    margin-top: 28px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(139, 213, 56, .22);
    transition: transform 140ms ease, box-shadow 180ms ease;
}

.case-hero-cta:hover {
    box-shadow: 0 10px 26px rgba(139, 213, 56, .3);
    transform: translateY(-1px);
}

.case-hero-cta:active {
    transform: scale(.97);
}

.case-section {
    position: relative;
    padding: 86px 0 60px;
    scroll-margin-top: 96px;
}

.case-panel {
    margin-top: 16px;
}

.case-section-tab {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    min-width: 174px;
    min-height: 36px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    color: #1a1d22;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    transform: translateX(-50%);
}

.case-section-tab--dark {
    top: 34px;
    min-width: 140px;
    color: #f6f7f8;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
}

.case-section-tab--dark i {
    width: 10px;
    height: 10px;
    margin-right: 8px;
    background: var(--case-lime);
    border-radius: 50%;
}

.case-section__heading {
    margin: 0 0 28px;
}

.case-section__heading h2,
.case-cta h2 {
    margin: 0;
    font-size: clamp(38px, 3.2vw, 52px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.05;
    text-wrap: balance;
}

.case-section__heading p {
    margin: 14px 0 0;
    color: #666d7c;
    font-size: 15px;
    line-height: 1.5;
}

.case-source {
    min-height: 820px;
    padding-top: 64px;
    background: #fff;
}

.case-source__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.04fr;
    gap: 18px;
}

.case-source__grid article {
    padding: 28px 30px;
    background: #f7f8fa;
    border-radius: 22px;
}

.case-source__grid h3,
.case-work-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.25;
    margin-bottom: 10px;
}

.case-source__grid ul {
    display: grid;
    gap: 19px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.case-source__grid li {
    position: relative;
    color: #687080;
    font-size: 14px;
    line-height: 1.55;
}

.case-source__grid li::before {
    content: '✦';
    position: absolute;
    top: -1px;
    left: 0;
    color: var(--case-lime);
    font-size: 18px;
}

.case-source__media {
    min-width: 0;
    margin: -92px 0 0 18px;
    overflow: hidden;
    border-radius: 24px;
}

.case-mock-crop--source {
    width: 100%;
    height: 100%;
    min-height: 398px;
}

.case-mock-crop--source::before {
    top: -45.48%;
    left: -240.66%;
    width: 367.47%;
    height: 236.43%;
    background-image: url('../img/cases/stomatologiya/layout-source.png');
}

.case-work {
    margin-top: 32px;
}

.case-work .case-section__heading {
    margin-bottom: 18px;
}

.case-work .case-section__heading h2 {
    font-size: 30px;
}

.case-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
}

.case-work-card {
    display: flex;
    min-height: 106px;
    padding: 18px 20px;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,.94);
    border-radius: 20px;
}

.case-source .case-work-card {
    background: #f7f8fa;
}

.case-work-card .case-line-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 23px;
}

.case-work-card p {
    margin: 8px 0 0;
    color: #687080;
    font-size: 13px;
    line-height: 1.45;
}

#comparison {
    min-height: 0;
    padding-top: 68px;
}

#comparison .case-section__heading,
#results .case-section__heading,
#factors .case-section__heading,
#testimonial .case-section__heading {
    text-align: center;
}

#comparison .case-section__heading p,
#results .case-section__heading p,
#factors .case-section__heading p {
    margin-inline: auto;
}

.case-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px;
    margin-top: 20px;
}

.case-browser--comparison .case-browser__viewport {
    position: relative;
    border-radius: 20px;
}

.case-site-preview__overlay {
    position: absolute;
    inset: 44px 0 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: rgba(12, 16, 20, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms cubic-bezier(.23, 1, .32, 1);
}

.case-browser--interactive .case-browser__viewport:hover .case-site-preview__overlay,
.case-browser--interactive .case-browser__viewport:focus-within .case-site-preview__overlay {
    opacity: 1;
}

.case-site-preview__trigger {
    min-height: 48px;
    padding: 0 24px;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 14px 34px rgba(75, 123, 31, .28);
    transition: transform 140ms ease, box-shadow 180ms ease;
}

.case-site-preview__trigger:hover {
    box-shadow: 0 16px 38px rgba(75, 123, 31, .36);
    transform: translateY(-2px);
}

.case-site-preview__trigger:active {
    transform: scale(.97);
}

.case-site-preview__trigger:focus-visible {
    outline: 3px solid rgba(255,255,255,.92);
    outline-offset: 4px;
}

.case-mock-crop--before,
.case-mock-crop--after {
    width: 100%;
    aspect-ratio: 630 / 396;
}

.case-mock-crop--before::before {
    top: -83.08%;
    left: -18.73%;
    width: 265.4%;
    height: 237.63%;
    background-image: url('../img/cases/stomatologiya/layout-comparison.png');
}

.case-mock-crop--after::before {
    top: -83.08%;
    left: -138.1%;
    width: 265.4%;
    height: 237.63%;
    background-image: url('../img/cases/stomatologiya/layout-comparison.png');
}

.case-results {
    min-height: 0;
    margin-top: 16px;
    padding: 86px 0 40px;
    color: #fff;
    background:
        radial-gradient(circle at 22% 42%, rgba(50,55,64,.24), transparent 33%),
        linear-gradient(135deg, #111216, #17191d);
}

.case-results .case-section__heading h2 {
    font-size: clamp(40px, 3vw, 52px);
}

.case-results .case-section__heading h2 span {
    color: var(--case-lime);
}

.case-results .case-section__heading h2::first-line {
    color: inherit;
}

.case-results .case-section__heading p {
    color: #a8acb6;
}

.case-results-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 38px;
}

.case-results-grid article {
    min-width: 0;
    min-height: 148px;
    padding: 16px 18px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
}

.case-results-grid article header {
    display: flex;
    min-height: 58px;
    padding-bottom: 14px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed rgba(255,255,255,.28);
}

.case-result-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 20px;
    background: rgba(156,225,84,.1);
    box-shadow: inset 0 0 18px rgba(156,225,84,.08);
}

.case-results-grid h3 {
    margin: 0;
    color: #b9bdc8;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.case-results-grid strong,
.case-result-values {
    display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(24px, 1.7vw, 26px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.1;
    white-space: nowrap;
}

.case-results-grid strong,
.case-result-values span:last-child {
    color: var(--case-lime);
}

.case-result-values i {
    color: #f2f3f5;
    font-size: 17px;
}

#factors {
    min-height: 338px;
    margin: 16px 20px 0;
    padding: 30px 0 28px;
    background: #fff;
    border-radius: var(--case-radius-xl);
}

#factors .case-section__heading {
    margin-bottom: 22px;
}

#factors .case-section__heading h2 {
    font-size: 42px;
}

.case-factor-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-factor-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 126px;
    padding: 14px;
    align-items: center;
    gap: 12px;
    background: #f7f8fa;
    border-radius: 20px;
}

.case-factor-list span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--case-lime);
    font-size: 25px;
    font-weight: 700;
    background: var(--case-lime-soft);
    border-radius: 50%;
}

.case-factor-list p {
    margin: 0;
    color: #252931;
    font-size: 12px;
    line-height: 1.45;
}

#testimonial {
    min-height: 420px;
    padding: 62px 0 36px;
}

.case-site-dialog {
    width: min(1500px, calc(100vw - 48px));
    max-width: none;
    height: min(900px, calc(100vh - 48px));
    max-height: none;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 32px 100px rgba(0,0,0,.36);
}

.case-site-dialog::backdrop {
    background: rgba(10, 12, 16, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.case-site-dialog__window {
    display: grid;
    height: 100%;
    grid-template-rows: 58px 1fr;
    overflow: hidden;
    background: #fff;
}

.case-site-dialog__header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 0 16px;
    align-items: center;
    gap: 16px;
    background: #f7f8fa;
    border-bottom: 1px solid rgba(25,30,38,.08);
}

.case-site-dialog__traffic-lights {
    display: flex;
    gap: 8px;
}

.case-site-dialog__traffic-lights i {
    width: 11px;
    height: 11px;
    background: #ff6b5f;
    border-radius: 50%;
}

.case-site-dialog__traffic-lights i:nth-child(2) { background: #f6bd3b; }
.case-site-dialog__traffic-lights i:nth-child(3) { background: #31c84b; }

.case-site-dialog__header > strong {
    min-width: min(480px, 42vw);
    padding: 10px 24px;
    color: #737985;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    background: #fff;
    border-radius: 999px;
}

.case-site-dialog__header > strong i {
    margin-right: 7px;
    font-size: 9px;
}

.case-site-dialog__actions {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 10px;
}

.case-site-dialog__actions a,
.case-site-dialog__actions button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    color: #24272d;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.case-site-dialog__actions a {
    padding: 0 16px;
    gap: 8px;
}

.case-site-dialog__actions button {
    width: 40px;
    padding: 0;
    font-size: 17px;
}

.case-site-dialog__actions a:focus-visible,
.case-site-dialog__actions button:focus-visible {
    outline: 3px solid rgba(88,153,31,.38);
    outline-offset: 2px;
}

.case-site-dialog__content {
    position: relative;
    min-height: 0;
}

.case-site-dialog__content iframe {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 0;
}

.case-site-dialog__status {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    margin: 0;
    padding: 14px 20px;
    color: #30343b;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 36px rgba(31,36,44,.12);
    transform: translate(-50%, -50%);
}

.case-site-dialog__status i {
    margin-right: 7px;
    color: var(--case-lime);
    animation: case-spin .8s linear infinite;
}

body.case-dialog-open {
    overflow: hidden;
}

@keyframes case-spin {
    to { transform: rotate(360deg); }
}

#testimonial .case-section__heading h2 {
    font-size: 42px;
}

.case-testimonial {
    display: grid;
    grid-template-columns: 164px minmax(0, 1fr) 96px;
    grid-template-areas:
        'photo author quoteMark'
        'photo quote quoteMark';
    gap: 12px 40px;
    width: min(960px, 100%);
    min-height: 258px;
    margin: 24px auto 0;
    padding: 28px;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(24,30,40,.05);
    border-radius: 26px;
}

.case-testimonial__photo {
    grid-area: photo;
    width: 164px;
    height: 208px;
    border-radius: 18px;
}

.case-mock-crop--testimonial::before {
    top: -107.21%;
    left: -229.09%;
    width: 1013.33%;
    height: 452.4%;
    background-image: url('../img/cases/stomatologiya/layout-final.png');
}

.case-testimonial figcaption {
    grid-area: author;
    display: flex;
    align-self: end;
    flex-direction: column;
}

.case-testimonial figcaption strong {
    font-size: 22px;
    line-height: 1.15;
}

.case-testimonial figcaption span {
    margin-top: 4px;
    color: #6b98da;
    font-size: 14px;
}

.case-testimonial blockquote {
    grid-area: quote;
    align-self: start;
    margin: 8px 0 0;
    color: #343943;
    font-size: 14px;
    line-height: 1.55;
}

.case-testimonial__quote {
    grid-area: quoteMark;
    color: #dae5ff;
    font-family: Georgia, serif;
    font-size: 112px;
    line-height: 1;
}

.case-cta {
    position: relative;
    width: min(1200px, calc(100% - 48px));
    margin: 16px auto 0;
    min-height: 480px;
    padding: 58px 0;
    overflow: hidden;
    color: #fff;
    background: #17191b;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 28px;
}

.case-cta::before,
.case-cta::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.case-cta::before {
    bottom: -92px;
    left: -62px;
    width: 210px;
    height: 210px;
    background: rgba(139,213,56,.12);
}

.case-cta::after {
    top: -78px;
    right: -42px;
    width: 180px;
    height: 180px;
    background: rgba(139,213,56,.07);
}

.case-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 362px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.case-cta__copy {
    text-align: center;
}

.case-cta h2 {
    margin: 22px auto 15px;
    color: #fff;
    font-size: clamp(38px, 3.7vw, 52px);
    line-height: 1.02;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.case-cta h2 span {
    display: block;
    color: var(--case-lime);
}

.case-cta__eyebrow {
    display: inline-flex;
    min-height: 27px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: var(--case-lime);
    border-radius: 999px;
}

.case-cta__copy > p {
    max-width: 600px;
    margin: 22px auto 0;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    line-height: 1.55;
    text-wrap: pretty;
}

.case-cta__actions {
    display: flex;
    width: 100%;
    margin-top: 34px;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
}

.case-lead-form {
    width: min(100%, 540px);
}

.case-lead-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.case-lead-form input[type='tel'],
.case-lead-form__row > button {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    outline: none;
}

.case-lead-form input[type='tel'] {
    color: #fff;
    background: #101214;
}

.case-lead-form input[type='tel']::placeholder {
    color: rgba(255,255,255,.38);
}

.case-lead-form input[type='tel']:focus {
    border-color: var(--case-lime);
    box-shadow: 0 0 0 3px rgba(139,213,56,.18);
}

.case-lead-form__row > button {
    display: inline-flex;
    width: auto;
    min-width: 178px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    background: var(--case-lime);
    border: 0;
    box-shadow: 0 0 24px rgba(139,213,56,.34), 0 12px 28px rgba(76,136,22,.24);
    cursor: pointer;
    transition: background-color .18s ease, transform .14s ease;
}

.case-lead-form__row > button:hover {
    background: #9ae74b;
    box-shadow: 0 0 32px rgba(139,213,56,.46), 0 14px 32px rgba(76,136,22,.28);
}

.case-lead-form__row > button:active {
    transform: scale(.97);
}

.case-lead-form__row > button:disabled {
    cursor: wait;
    opacity: .72;
}

.case-consent {
    display: flex;
    margin-top: 12px;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.42);
    cursor: pointer;
}

.case-consent input {
    position: absolute;
    opacity: 0;
}

.case-consent > span {
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    place-items: center;
    background: #101214;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 5px;
}

.case-consent input:checked + span {
    background: var(--case-lime);
    border-color: var(--case-lime);
}

.case-consent input:checked + span::after {
    content: '✓';
    color: #fff;
    font-size: 11px;
}

.case-consent b {
    font-size: 10px;
    font-weight: 500;
}

.case-form-status {
    margin: 12px 0 0;
    padding: 10px 12px;
    color: #9f2d2d;
    font-size: 12px;
    font-weight: 600;
    background: #fff0f0;
    border-radius: 12px;
}

.case-form-status.is-success {
    color: #2f6419;
    background: #eff9e6;
}

.case-cta__proof {
    display: flex;
    min-width: 270px;
    align-items: center;
    gap: 12px;
}

.case-cta__logos {
    display: flex;
    padding-left: 12px;
    align-items: center;
}

.case-cta__logo {
    display: flex;
    width: 50px;
    height: 50px;
    margin-left: -12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #202426;
    font-size: 11px;
    letter-spacing: -.02em;
    background: #fff;
    border: 4px solid #17191b;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255,255,255,.14);
}

.case-cta__logo > i {
    color: var(--case-lime);
    font-size: 15px;
    font-style: normal;
}

.case-cta__logo b {
    font-weight: 900;
}

.case-cta__logo--med {
    color: #fff;
    background: var(--case-lime);
}

.case-cta__logo--nord {
    color: #fff;
    background: #292d2f;
}

.case-cta__proof p {
    max-width: 174px;
    margin: 0;
    color: rgba(255,255,255,.5);
    font-size: 10px;
    line-height: 1.4;
    text-align: left;
}

.case-cta__proof p strong {
    color: #fff;
    font-size: 11px;
}

.case-hero-cta:focus-visible,
.case-breadcrumbs a:focus-visible,
.case-contact-links a:focus-visible,
.case-lead-form button:focus-visible,
.case-consent input:focus-visible + span {
    outline: 3px solid rgba(88,153,31,.38);
    outline-offset: 3px;
}

body[data-site-root='../../'] #site-footer {
    width: auto;
    margin: 16px 18px 0 !important;
    border-radius: 28px 28px 0 0;
}

body[data-site-root='../../'] #site-footer a[href$='#process'],
body[data-site-root='../../'] #site-footer a[href$='#audit'] {
    display: none;
}

@media (max-width: 1279px) {
    .case-shell {
        width: min(var(--case-grid-width), calc(100% - 64px));
    }

    .case-hero__intro {
        grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
        gap: 28px;
    }

    .case-source__media {
        margin-left: 0;
    }

    .case-comparison-grid {
        gap: 36px;
    }

    .case-factor-list {
        gap: 10px;
    }

}

@media (max-width: 1239px) {
    .case-metrics,
    .case-results-grid,
    .case-factor-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-results-grid article:last-child,
    .case-factor-list li:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1023px) {
    body[data-site-root='../../'] #main-header > nav {
        display: none !important;
    }

    .case-shell {
        width: min(100% - 48px, 900px);
    }

    .case-hero {
        padding-top: 60px;
    }

    .case-hero__intro,
    .case-source__grid {
        grid-template-columns: 1fr;
    }

    .case-hero__intro {
        margin-top: 0;
    }

    .case-browser--hero {
        margin-top: 24px;
    }

    .case-metrics,
    .case-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-metrics {
        margin-inline: 0;
    }

    .case-source__media {
        height: 430px;
        margin-top: 0;
    }

    .case-results-grid,
    .case-factor-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-results-grid article:last-child,
    .case-factor-list li:last-child {
        grid-column: 1 / -1;
    }

    .case-cta__actions {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    :root {
        --case-radius-xl: 24px;
        --case-radius-lg: 20px;
        --case-radius-md: 18px;
    }

    .case-page {
        padding-top: 16px;
    }

    .case-shell {
        width: calc(100% - 32px);
    }

    .case-hero,
    .case-panel,
    .case-results,
    .case-cta,
    #factors {
        margin-inline: 10px;
    }

    .case-hero {
        margin-inline: 16px;
    }

    .case-hero {
        min-height: auto;
        padding: 104px 0 65px;
    }

    .case-breadcrumbs {
        margin-bottom: 34px;
        font-size: 12px;
    }

    .case-hero h1 {
        font-size: clamp(36px, 10.7vw, 48px);
    }

    .case-hero__copy > p {
        margin-top: 20px;
        font-size: 15px;
    }

    .case-metrics,
    .case-work-grid,
    .case-comparison-grid,
    .case-results-grid,
    .case-factor-list,
    .case-lead-form {
        grid-template-columns: 1fr;
    }

    .case-metrics article {
        min-height: 104px;
    }

    .case-metrics strong {
        font-size: 30px;
    }

    .case-hero-cta {
        width: 100%;
        margin-top: 24px;
    }

    .case-section {
        padding: 72px 0 34px;
    }

    .case-section__heading h2,
    .case-cta h2,
    #factors .case-section__heading h2,
    #testimonial .case-section__heading h2 {
        font-size: 34px;
    }

    .case-source__grid article {
        min-height: auto;
        padding: 24px;
    }

    .case-source__media {
        height: 360px;
    }

    .case-work {
        margin-top: 28px;
    }

    .case-work-card {
        min-height: 106px;
    }

    .case-comparison-grid {
        gap: 28px;
    }

    .case-site-preview__overlay {
        align-items: end;
        padding-bottom: 18px;
        background: linear-gradient(180deg, transparent 34%, rgba(12,16,20,.7));
        opacity: 1;
    }

    .case-site-preview__trigger {
        min-height: 44px;
        padding: 0 18px;
        font-size: 13px;
    }

    .case-site-dialog {
        width: calc(100vw - 16px);
        height: calc(100dvh - 16px);
        border-radius: 18px;
    }

    .case-site-dialog__window {
        grid-template-rows: 54px 1fr;
    }

    .case-site-dialog__header {
        grid-template-columns: auto 1fr auto;
        padding: 0 10px;
        gap: 8px;
    }

    .case-site-dialog__traffic-lights,
    .case-site-dialog__actions a {
        display: none;
    }

    .case-site-dialog__header > strong {
        min-width: 0;
        padding: 9px 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .case-results {
        padding: 96px 0 38px;
    }

    .case-results-grid article,
    .case-results-grid article:last-child,
    .case-factor-list li:last-child {
        grid-column: auto;
    }

    .case-results-grid article {
        min-height: 148px;
    }

    #factors {
        padding: 36px 0 30px;
    }

    .case-testimonial {
        grid-template-columns: 94px 1fr;
        grid-template-areas:
            'photo author'
            'quote quote';
        gap: 18px;
        padding: 20px;
    }

    .case-testimonial__photo {
        width: 94px;
        height: 118px;
    }

    .case-testimonial__quote {
        display: none;
    }

    .case-testimonial figcaption {
        align-self: center;
    }

    .case-testimonial figcaption strong {
        font-size: 18px;
    }

    .case-cta {
        width: calc(100% - 20px);
        margin-inline: auto;
        min-height: 0;
        padding: 58px 0;
    }

    .case-cta__inner {
        min-height: 0;
    }

    .case-lead-form__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .case-lead-form__row > button {
        width: 100%;
    }

    .case-cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .case-cta__proof {
        width: min(100%, 320px);
        padding-top: 28px;
        align-items: center;
        justify-content: center;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .case-cta__proof p {
        text-align: center;
    }

    body[data-site-root='../../'] #site-footer {
        margin-inline: 10px !important;
    }
}

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