.case-page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
}
.product-card-dark .case-page-link { border-color: rgb(255 255 255 / 20%); }
.compact-product > .case-page-link { margin: 0 30px; }
.case-page-link .icon { transition: transform 250ms var(--ease); }
.case-page-link:hover .icon { transform: translate(3px, -3px); }
.bridge .case-page-link { border-color: rgb(255 255 255 / 22%); }
.secondary-products { align-items: stretch; }
.secondary-products > .product-panel { display: flex; flex-direction: column; }
.secondary-products .secondary-layout { flex: 1; }
.secondary-products .case-page-link { min-height: 74px; }
.case-hero { padding-top: 28px; }
.case-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.case-breadcrumb a:hover { color: var(--forest); }
.case-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 70px 0 64px;
}
.case-hero-copy { min-width: 0; }
.case-headline {
  margin: 26px 0 22px;
  font-size: clamp(42px, 4.6vw, 76px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.06em;
}
.case-headline em { color: var(--forest); font-style: normal; }
.case-product-name {
  margin-bottom: 22px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
}
.case-lead {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.case-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.case-price-link { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.case-hero-art {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid #c3d8e4;
  border-radius: 18px;
  background: linear-gradient(140deg, #e2eef5, #f9fcfe 60%, #c9e9f3);
  box-shadow: 0 28px 80px -35px rgb(12 47 74 / 28%);
}
.case-window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 8px 18px; }
.case-window-bar i { width: 6px; height: 6px; border-radius: 50%; background: #8aa9bb; }
.case-window-bar span { margin-left: 10px; color: var(--forest); font: 10px var(--mono); }
.case-hero-screen {
  position: relative;
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.case-hero-screen img { display: block; width: 100%; height: 360px; object-fit: contain; object-position: center; }
.case-hero-screen > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 10px 4px;
  color: var(--forest);
  font-size: 12px;
}
.case-art-note { display: flex; align-items: center; gap: 8px; padding: 16px 8px 6px; color: var(--muted); font: 10px var(--mono); }
.case-status-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #1383a2; box-shadow: 0 0 0 4px rgb(106 220 245 / 22%); }
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); padding: 32px 0; border-top: 1px solid var(--line); }
.case-facts > div { display: flex; flex-direction: column; gap: 9px; padding: 0 26px; border-left: 1px solid var(--line); }
.case-facts > div:first-child { padding-left: 0; border: 0; }
.case-facts strong { font-size: clamp(21px, 2vw, 30px); font-weight: 500; letter-spacing: -0.04em; }
.case-facts span { color: var(--muted); font: 11px/1.6 var(--mono); }
.case-jump { display: flex; flex-wrap: wrap; gap: 30px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--forest); font-size: 13px; }
.case-jump a:hover { text-decoration: underline; text-underline-offset: 6px; }
.case-section { padding-top: 90px; padding-bottom: 50px; }
.case-section-heading { margin-bottom: 36px; }
.case-section-heading h2 { margin-top: 22px; font-size: clamp(32px, 3.6vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: -0.05em; }
.case-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.case-gallery-heading > p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.case-shot { margin: 0; min-width: 0; }
.case-shot > a { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #e5eef3; }
.case-shot-image { display: flex; align-items: center; justify-content: center; height: 290px; padding: 20px; }
.case-shot img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 450ms var(--ease); }
.case-shot a:hover img { transform: scale(1.025); }
.case-shot-open { position: absolute; right: 12px; bottom: 12px; padding: 10px; border-radius: 50%; background: var(--paper); color: var(--forest); }
.case-shot-open .icon { width: 18px; height: 18px; }
.case-shot figcaption { display: flex; gap: 16px; margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.case-shot figcaption > span { color: var(--forest); font: 11px/1.7 var(--mono); }
.case-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 60px; }
.case-feature { position: relative; padding: 30px 0 36px; border-top: 1px solid var(--line); }
.case-number { display: block; margin-bottom: 22px; color: var(--forest); font: 11px var(--mono); }
.case-feature h3 { font-size: 23px; font-weight: 500; line-height: 1.3; letter-spacing: -0.03em; }
.case-feature p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.case-prose-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 7vw, 100px); }
.case-prose { min-width: 0; font-size: 17px; line-height: 1.85; }
.case-prose > * + * { margin-top: 22px; }
.case-prose p { color: var(--muted); }
.case-prose h3 { padding-top: 16px; font-size: 24px; font-weight: 500; line-height: 1.35; letter-spacing: -0.035em; }
.case-prose ul { margin: 0; padding-left: 22px; color: var(--muted); }
.case-prose li + li { margin-top: 18px; }
.case-prose ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.case-prose ol li { position: relative; padding: 22px 0 22px 54px; border-top: 1px solid var(--line); counter-increment: steps; color: var(--muted); }
.case-prose ol li + li { margin-top: 0; }
.case-prose ol li::before { position: absolute; left: 0; top: 25px; content: counter(steps, decimal-leading-zero); color: var(--forest); font: 12px var(--mono); }
.case-benefit-band { margin-top: 45px; padding: 75px 0; background: var(--forest); color: var(--paper); }
.case-benefit-band .section-label { color: var(--lime); }
.case-benefit-band p, .case-benefit-band ul { color: #c7dce9; }
.case-benefit-band h3 { color: var(--lime); }
.case-pricing { padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(150deg, white, #e5f2f8); }
.case-pricing .case-price { color: var(--forest); font-size: clamp(34px, 4vw, 54px); font-weight: 500; line-height: 1.2; letter-spacing: -0.045em; }
.case-pricing .button { margin-top: 30px; }
.case-other-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.case-other { position: relative; padding: 30px 26px 74px; border: 1px solid var(--line); border-radius: 12px; transition: background 250ms; }
.case-other:hover { background: #e1f0f7; }
.case-other > span { color: var(--muted); font: 11px/1.6 var(--mono); }
.case-other h3 { margin-top: 18px; font-size: 25px; font-weight: 500; letter-spacing: -0.04em; }
.case-other > svg { position: absolute; bottom: 26px; right: 26px; }
.case-more { padding-bottom: 90px; }
.case-lightbox {
  width: min(1440px, 96vw);
  max-width: none;
  max-height: 94dvh;
  padding: 16px 24px 22px;
  border: 1px solid #55768c;
  border-radius: 16px;
  color: var(--paper);
  background: var(--forest-deep);
}
.case-lightbox::backdrop { background: rgb(5 20 32 / 90%); }
.case-lightbox button { border: 1px solid #55768c; border-radius: 50px; background: transparent; color: var(--paper); padding: 10px 16px; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; font: 12px var(--mono); }
.lightbox-toolbar [data-lightbox-close] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1;
}
.lightbox-close-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.lightbox-toolbar [data-lightbox-close]:hover { background: rgb(106 220 245 / 12%); }
.lightbox-stage { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 18px; }
.lightbox-stage img { display: block; max-width: 100%; max-height: 70dvh; height: auto; width: auto; justify-self: center; object-fit: contain; }
#lightbox-caption { margin-top: 22px; text-align: center; color: #c7dce9; font-size: 14px; }
body.is-gallery-open { overflow: hidden; }

.preorder-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.preorder-price del { font-size: 0.55em; font-weight: 400; opacity: 0.75; text-decoration-thickness: 1.5px; }
.preorder-price strong { font-size: 1em; font-weight: 550; }
.preorder-label { width: 100%; font: 11px/1.6 var(--mono); letter-spacing: 0; }
.case-price-link .preorder-price { font-size: 25px; }
.case-price-link .preorder-price del { font-size: 14px; }
.case-release-date { margin-top: 20px; color: var(--muted); font: 12px/1.6 var(--mono); }
.avito { margin-top: 22px; }
.avito-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--lime); font: 11px/1.6 var(--mono); }
.avito-status > span { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(106 220 245 / 12%); }
.avito .product-category { margin-bottom: 16px; }
.avito-price { font-size: 32px; }
.avito-release { margin-top: 18px; color: #b6cbda; font: 11px/1.8 var(--mono); }
.avito-release time { color: var(--paper); }
.avito-visual { min-width: 0; }
.avito-visual-label { margin-bottom: 20px; color: #b6cbda; font: 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.07em; }
.avito-flow { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; }
.avito-source, .avito-destination { min-width: 0; overflow: hidden; border: 1px solid #426781; border-radius: 16px; background: #f6fafc; color: var(--ink); }
.avito-window-title { display: flex; align-items: center; gap: 10px; padding: 17px; background: #244d67; color: #f2f6f9; font-size: 12px; font-weight: 500; }
.avito-app-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #d4eefb; color: var(--forest-deep); font-size: 20px; }
.avito-catalog { padding: 12px 17px; }
.avito-catalog > div { display: flex; align-items: center; gap: 10px; padding: 14px 0; font-size: 11px; line-height: 1.6; }
.avito-catalog > div + div { border-top: 1px solid #dbe5ec; }
.avito-catalog small { display: block; color: #627783; font-size: 9px; }
.avito-item-icon { width: 30px; height: 34px; flex-shrink: 0; border: 1px solid #bcd5e3; border-radius: 6px; background: linear-gradient(145deg, #d7edf8, #eef6fc); }
.avito-fields { padding: 18px; font-size: 11px; }
.avito-fields > p { margin-bottom: 13px; font-weight: 500; }
.avito-fields > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #dbe5ec; }
.avito-check { color: #08758d; font-size: 14px; }
.avito-connector { position: relative; display: grid; place-items: center; height: 54px; }
.avito-connector::before { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #6adcf5; content: ""; }
.avito-connector > span { z-index: 1; padding: 8px 6px; border: 1px solid #64899e; border-radius: 8px; background: var(--forest-deep); color: var(--lime); font: 11px var(--mono); }
.avito-connector > i { position: absolute; left: 0; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px #6adcf5; animation: avito-transfer 3s ease-in-out infinite; }
.avito-capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.avito-capabilities > span { padding: 7px 10px; border: 1px solid #4b738b; border-radius: 100px; color: #d0e0eb; font-size: 10px; }
.avito-scheme-note { margin-top: 14px; color: #b6cbda; font-size: 11px; line-height: 1.6; }
@keyframes avito-transfer {
  0% { left: 0; opacity: 0; }
  15%, 80% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}

@media (max-width: 1100px) {
  .case-hero-grid { gap: 30px; }
  .case-headline { font-size: 48px; }
  .case-hero-screen img { height: 310px; }
  .case-prose-layout { grid-template-columns: 0.85fr 1.15fr; gap: 35px; }
}
@media (max-width: 800px) {
  .avito-layout { grid-template-columns: 1fr; }
  .avito .product-copy { max-width: 580px; }
  .case-hero-grid { grid-template-columns: 1fr; padding-top: 45px; }
  .case-headline { font-size: clamp(40px, 7.5vw, 64px); }
  .case-hero-art { max-width: 620px; width: 100%; }
  .case-hero-screen img { height: 330px; }
  .case-gallery { gap: 24px; }
  .case-shot-image { height: 230px; padding: 12px; }
  .case-feature-grid { column-gap: 28px; }
  .case-prose-layout { grid-template-columns: 1fr; gap: 12px; }
  .case-section { padding-top: 64px; }
  .case-benefit-band { padding: 60px 0; }
  .case-other-grid { grid-template-columns: 1fr; }
  .case-other { padding: 28px 26px; }
  .case-other > svg { top: 28px; }
  .case-other > span { padding-right: 35px; display: block; }
}
@media (max-width: 520px) {
  .avito-flow { grid-template-columns: 1fr; gap: 0; }
  .avito-connector { height: 60px; }
  .avito-connector::before { top: 0; bottom: 0; left: 50%; width: 1px; height: auto; }
  .avito-connector > i { display: none; }
  .avito-window-title { padding: 14px; }
  .avito-catalog, .avito-fields { padding: 14px; }
  .avito-price { font-size: 30px; }
  .case-breadcrumb { font-size: 10px; gap: 8px; }
  .case-hero { padding-top: 20px; }
  .case-hero-grid { gap: 34px; padding-top: 34px; padding-bottom: 34px; }
  .case-headline { font-size: 42px; }
  .case-product-name { font-size: 17px; }
  .case-lead { font-size: 15px; }
  .case-hero-actions { gap: 18px; }
  .case-hero-actions .button { width: 100%; }
  .case-hero-screen img { height: 285px; }
  .case-facts { grid-template-columns: 1fr; gap: 0; padding: 10px 0; }
  .case-facts > div, .case-facts > div:first-child { border: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .case-facts strong { font-size: 24px; }
  .case-jump { gap: 19px; font-size: 11px; }
  .case-gallery-heading { display: block; }
  .case-gallery-heading > p { margin-top: 22px; }
  .case-gallery, .case-feature-grid { grid-template-columns: 1fr; }
  .case-shot-image { height: 270px; }
  .case-feature h3 { font-size: 22px; }
  .case-prose { font-size: 16px; }
  .case-pricing { padding: 25px; }
  .case-pricing .button { width: 100%; padding-inline: 18px; }
  .case-lightbox { padding: 12px; }
  .lightbox-stage { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px; }
  .lightbox-stage button { padding: 10px 6px; }
  .compact-product > .case-page-link { margin: 0 22px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .avito-connector > i { animation: none; left: calc(100% - 6px); }
  .case-shot img, .case-page-link .icon { transition: none; }
}
