.case-study-page {
  color: var(--neural-white);
  background: var(--quantum-black);
}

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

.case-study-page a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
  border-radius: 4px;
}

.case-study-container {
  width: min(1600px, calc(100% - 112px));
  margin-inline: auto;
}

.case-study-nav__label,
.case-study-eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .19em;
}

.case-study-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
  gap: 42px 24px;
  align-items: center;
  padding-block: clamp(52px, 6vw, 100px) 60px;
}

.case-study-hero__copy {
  position: relative;
  z-index: 1;
}

.case-study-hero .case-study-eyebrow {
  max-width: 28em;
  color: rgba(247, 247, 244, .54);
}

.case-study-hero h1 {
  margin: 30px 0 26px;
  font-family: "Bebas Neue", "Roboto", Arial, sans-serif;
  font-size: clamp(64px, 6.8vw, 118px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.035em;
}

.case-study-hero__intro {
  margin: 0;
  color: rgba(247, 247, 244, .7);
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 400;
  line-height: 1.6;
}

.case-study-hero__client {
  max-width: 28em;
  margin: 0 0 16px;
  color: var(--neural-white);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.5;
}

.case-study-page .case-study-hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 32px;
  padding: 14px 24px;
  border-radius: 100px;
  color: var(--quantum-black);
  background: var(--neural-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color .2s ease;
}

.case-study-page .case-study-hero__link:hover {
  background: #e3e3de;
}

.case-study-page .case-study-hero__link:focus-visible {
  outline-color: var(--neural-white);
  border-radius: 100px;
}

.case-study-hero__visual {
  width: 100%;
  margin: 0;
}

.case-study-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.case-study-sections {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 247, 244, .16);
}

.case-study-sections__label {
  margin-right: auto;
  padding-right: 16px;
  color: rgba(247, 247, 244, .54);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .16em;
}

.case-study-sections a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(247, 247, 244, .2);
  border-radius: 100px;
  font-size: 14px;
  line-height: 1.3;
  transition: background-color .2s ease, border-color .2s ease;
}

.case-study-sections a:hover {
  border-color: rgba(247, 247, 244, .45);
  background: #1c1c1b;
}

.case-study-sections a:focus-visible {
  border-radius: 100px;
}

.case-study-work {
  padding-block: clamp(56px, 6vw, 110px);
  scroll-margin-top: 24px;
  border-radius: 40px;
  color: var(--quantum-black);
  background: var(--neural-white);
}

.case-study-work__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 56px;
  align-items: end;
  margin-bottom: 54px;
}

.case-study-work__header .case-study-eyebrow {
  grid-column: 1 / -1;
  color: rgba(10, 10, 10, .5);
}

.case-study-work h2 {
  margin: 0;
  font-family: "Bebas Neue", "Roboto", Arial, sans-serif;
  font-size: clamp(48px, 4.9vw, 82px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.case-study-work__header > p:last-child {
  max-width: 30em;
  margin: 0 0 4px;
  color: rgba(10, 10, 10, .62);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.6;
}

.case-study-site-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: min(100%, 600px);
  margin-top: 8px;
}

.case-study-site-gallery__figure {
  min-width: 0;
  margin: 0;
}

.case-study-site-gallery__preview {
  position: relative;
  display: flex;
  align-items: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 12px;
  background: var(--quantum-black);
  cursor: zoom-in;
}

.case-study-site-gallery__preview:focus-visible {
  border-radius: 12px;
}

.case-study-site-gallery__crop {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: var(--crop-width) / var(--crop-height);
  overflow: hidden;
}

/* Crop the preview in CSS only; the link still opens the untouched capture. */
.case-study-site-gallery__crop img,
.case-study-lightbox__capture img {
  position: absolute;
  display: block;
  top: calc(var(--crop-top) / var(--crop-height) * -100%);
  left: calc(var(--crop-left) / var(--crop-width) * -100%);
  width: calc(var(--capture-width) / var(--crop-width) * 100%);
  max-width: none;
  height: auto;
}

.case-study-site-gallery__figure figcaption {
  margin-top: 10px;
  color: rgba(10, 10, 10, .62);
  font-size: 13px;
  line-height: 1.5;
}

html.case-study-viewer-open {
  overflow: hidden;
}

.case-study-lightbox {
  width: min(1160px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(247, 247, 244, .2);
  border-radius: 24px;
  color: var(--neural-white);
  background: #101010;
}

.case-study-lightbox::backdrop {
  background: rgba(0, 0, 0, .88);
}

.case-study-lightbox__panel {
  padding: 20px;
}

.case-study-lightbox__header,
.case-study-lightbox__footer,
.case-study-lightbox__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.case-study-lightbox__header {
  margin-bottom: 16px;
}

.case-study-lightbox__header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.case-study-lightbox__button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(247, 247, 244, .2);
  border-radius: 100px;
  color: inherit;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.case-study-lightbox__button:hover {
  background: #282828;
}

.case-study-lightbox__button:focus-visible {
  outline: 2px solid var(--neural-white);
  outline-offset: 4px;
}

.case-study-lightbox__stage {
  display: flex;
  justify-content: center;
}

.case-study-lightbox__capture {
  position: relative;
  width: min(100%, calc((100dvh - 216px) * var(--crop-width) / var(--crop-height)));
  aspect-ratio: var(--crop-width) / var(--crop-height);
  overflow: hidden;
  border-radius: 12px;
  background: var(--quantum-black);
}

.case-study-lightbox__footer {
  margin-top: 16px;
}

.case-study-lightbox__counter {
  min-width: 44px;
  color: rgba(247, 247, 244, .65);
  font-size: 13px;
  text-align: center;
}

.case-study-lightbox__original {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 12px;
  font-size: 13px;
}

.case-study-work__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
  padding-block: 40px;
  border-top: 1px solid rgba(10, 10, 10, .18);
}

.case-study-work__row:last-child {
  padding-bottom: 0;
}

.case-study-work__row--website {
  align-items: start;
  row-gap: 24px;
}

.case-study-work__row--website > .case-study-work__name {
  grid-column: 1 / -1;
}

.case-study-work__row--website > .case-study-site-gallery {
  margin-top: 0;
}

.case-study-work__name {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.case-study-work h3 {
  margin: 0;
  font-size: clamp(27px, 2.4vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.case-study-work__copy {
  grid-column: 2;
  max-width: 33em;
  color: rgba(10, 10, 10, .66);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.65;
}

.case-study-work__copy > p {
  margin: 0;
}

.case-study-work__copy > p + p {
  margin-top: 16px;
}

.case-study-work__features {
  margin: 14px 0 0;
  padding-left: 1.2em;
  list-style: disc;
}

.case-study-work__features li + li {
  margin-top: 10px;
}

.case-study-work__features strong {
  color: var(--quantum-black);
  font-weight: 500;
}

.case-study-work__summary {
  margin-top: 20px;
  padding: 24px;
  border-radius: 20px;
  color: rgba(10, 10, 10, .8);
  background: #e8e7e2;
}

.case-study-work__summary > p {
  margin: 0;
}

.case-study-work__summary > .case-study-work__summary-label {
  margin-bottom: 14px;
  color: rgba(10, 10, 10, .55);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.case-study-maps {
  padding-block: clamp(64px, 7vw, 112px);
  scroll-margin-top: 32px;
}

.case-study-maps__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 80px);
}

.case-study-maps__header .case-study-eyebrow {
  grid-column: 1 / -1;
  color: rgba(247, 247, 244, .54);
}

.case-study-maps h2 {
  margin: 0;
  font-family: "Bebas Neue", "Roboto", Arial, sans-serif;
  font-size: clamp(48px, 5.5vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.case-study-maps__header > p:last-child {
  max-width: 34em;
  margin: 0;
  color: rgba(247, 247, 244, .7);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.65;
}

.case-study-maps__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.case-study-maps__evidence {
  position: sticky;
  top: 32px;
}

.case-study-maps__evidence-label {
  margin: 0 0 24px;
  color: rgba(247, 247, 244, .54);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .16em;
}

.case-study-maps__screenshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.case-study-maps__screenshot {
  min-width: 0;
  margin: 0;
}

.case-study-maps__screenshot > a {
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.case-study-maps__screenshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  border-radius: inherit;
}

.case-study-maps__screenshot figcaption {
  margin-top: 16px;
  color: rgba(247, 247, 244, .7);
  font-size: 13px;
  line-height: 1.5;
}

.case-study-maps__copy > h3 {
  margin: 0 0 24px;
  font-size: clamp(21px, 1.7vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.case-study-maps__benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-study-maps__item {
  display: flex;
  min-width: 0;
  min-height: 164px;
  flex-direction: column;
  gap: 20px;
  padding: clamp(18px, 1.7vw, 28px);
  border: 1px solid rgba(247, 247, 244, .12);
  border-radius: 20px;
  background: #141414;
}

.case-study-maps__item-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-study-maps__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: rgba(247, 247, 244, .6);
}

.case-study-maps__item h4 {
  margin: 0;
  color: var(--neural-white);
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.case-study-maps__item > p {
  margin: 0;
  color: rgba(247, 247, 244, .65);
  font-size: 15px;
  line-height: 1.5;
}

.case-study-maps__frequency {
  display: flex;
  align-items: center;
  gap: 14px;
}

.case-study-maps__frequency-number {
  flex: 0 0 auto;
  color: var(--neural-white);
  font-size: clamp(42px, 3.5vw, 60px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.075em;
}

.case-study-maps__summary {
  margin-top: 20px;
  padding: clamp(22px, 2vw, 32px);
  border-radius: 20px;
  color: var(--quantum-black);
  background: #e8e7e2;
}

.case-study-maps__summary > p {
  margin: 0;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
}

.case-study-maps__summary > .case-study-maps__summary-label {
  margin-bottom: 14px;
  color: rgba(10, 10, 10, .55);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .15em;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .case-study-container {
    width: calc(100% - 64px);
  }

  .case-study-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .case-study-hero h1 {
    font-size: clamp(64px, 11vw, 104px);
  }

  .case-study-hero__visual {
    width: min(100%, 800px);
    margin-inline: auto;
  }

  .case-study-maps__header,
  .case-study-maps__layout {
    gap: 32px;
  }

  .case-study-work__header,
  .case-study-work__row {
    column-gap: 32px;
  }

  .case-study-maps__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-study-maps__evidence {
    position: static;
    order: 1;
    max-width: 720px;
    width: 100%;
    margin-inline: auto;
  }

}

@media (max-width: 640px) {
  .case-study-container {
    width: calc(100% - 40px);
  }

  .case-study-hero {
    padding-block: 42px 40px;
  }

  .case-study-hero h1 {
    margin-top: 24px;
    font-size: clamp(54px, 15.5vw, 92px);
  }

  .case-study-hero__visual {
    width: calc(100% + 24px);
    margin-left: -12px;
  }

  .case-study-hero__visual img {
    border-radius: 16px;
  }

  .case-study-work {
    padding-block: 42px 48px;
    border-radius: 26px;
  }

  .case-study-sections {
    gap: 10px;
    margin-bottom: 32px;
    padding-top: 20px;
  }

  .case-study-sections__label {
    flex-basis: 100%;
    margin-bottom: 6px;
  }

  .case-study-sections a {
    padding-inline: 16px;
    font-size: 13px;
  }

  .case-study-work__header {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 32px;
  }

  .case-study-work h2 {
    font-size: clamp(32px, 9.3vw, 58px);
  }

  .case-study-site-gallery {
    gap: 16px 12px;
  }

  .case-study-site-gallery__figure figcaption {
    margin-top: 8px;
    font-size: 12px;
  }

  .case-study-lightbox {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }

  .case-study-lightbox__panel {
    padding: 14px;
  }

  .case-study-lightbox__header h2 {
    font-size: 18px;
  }

  .case-study-lightbox__footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .case-study-lightbox__controls {
    width: 100%;
    gap: 12px;
  }

  .case-study-work__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-block: 28px;
  }

  .case-study-work h3 {
    font-size: 28px;
  }

  .case-study-work__copy {
    grid-column: 1;
    font-size: 15px;
  }

  .case-study-work__summary {
    padding: 22px;
    border-radius: 16px;
  }

  .case-study-maps {
    padding-block: 48px;
  }

  .case-study-maps__header {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .case-study-maps h2 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .case-study-maps__layout {
    gap: 40px;
  }

  .case-study-maps__item {
    min-height: 172px;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
  }

  .case-study-maps__item-heading {
    gap: 8px;
  }

  .case-study-maps__icon {
    width: 18px;
    height: 18px;
  }

  .case-study-maps__item h4 {
    font-size: 16px;
  }

  .case-study-maps__item > p {
    font-size: 14px;
  }

  .case-study-maps__frequency {
    flex-direction: column;
    align-items: start;
    gap: 8px;
  }

  .case-study-maps__summary {
    border-radius: 16px;
  }

  .case-study-maps__screenshots {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .case-study-maps__screenshot {
    width: min(100%, 419px);
    margin-inline: auto;
  }

}

@media (max-width: 360px) {
  .case-study-maps__benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-study-maps__item {
    min-height: auto;
  }

  .case-study-maps__frequency {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
}

/* ===== Шаблон кейса: общая шапка, задача, результаты, отзыв, другие кейсы ===== */

.case-study-hero {
  padding-top: calc(clamp(52px, 6vw, 100px) + 72px);
}

.case-study-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  color: rgba(247, 247, 244, .5);
  font-size: 13px;
}

.case-study-breadcrumbs a:hover,
.case-study-breadcrumbs [aria-current="page"] {
  color: var(--neural-white);
}

.case-study-task {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 24px 56px;
  padding-block: clamp(48px, 5vw, 88px);
  border-top: 1px solid rgba(247, 247, 244, .16);
}

.case-study-task .case-study-eyebrow,
.case-study-results .case-study-eyebrow,
.case-study-more .case-study-eyebrow {
  color: rgba(247, 247, 244, .54);
}

.case-study-task h2,
.case-study-results h2,
.case-study-more h2 {
  margin: 14px 0 0;
  font-family: "Bebas Neue", "Roboto", Arial, sans-serif;
  font-size: clamp(44px, 4.4vw, 76px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.035em;
}

.case-study-task__text p {
  margin: 0;
  color: rgba(247, 247, 244, .78);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.6;
}

.case-study-task__text p + p {
  margin-top: 16px;
}

.case-study-results {
  padding-block: clamp(56px, 6vw, 110px);
}

.case-study-results__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 56px;
  align-items: end;
  margin-bottom: 40px;
}

.case-study-results__header > p:last-child {
  max-width: 30em;
  margin: 0;
  color: rgba(247, 247, 244, .62);
  font-size: 16px;
  line-height: 1.6;
}

.case-study-results__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case-study-metric {
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid rgba(247, 247, 244, .12);
  border-radius: 28px;
  background: #151515;
}

.case-study-metric strong {
  display: block;
  color: var(--solar-core);
  font-family: "Bebas Neue", "Roboto", Arial, sans-serif;
  font-size: clamp(56px, 6vw, 104px);
  font-weight: 400;
  line-height: .9;
}

.case-study-metric p {
  margin: 14px 0 0;
  color: rgba(247, 247, 244, .82);
  font-size: 16px;
  line-height: 1.5;
}

.case-study-metric small {
  display: block;
  margin-top: 14px;
  color: rgba(247, 247, 244, .45);
  font-size: 12px;
  line-height: 1.4;
}

.case-study-quote {
  margin: 0 0 clamp(48px, 5vw, 88px);
  padding: clamp(32px, 4vw, 72px);
  border-radius: 40px;
  color: var(--quantum-black);
  background: var(--solar-core);
}

.case-study-quote blockquote {
  max-width: 34em;
  margin: 0;
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.case-study-quote figcaption {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}

.case-study-quote figcaption strong {
  font-size: 16px;
  font-weight: 600;
}

.case-study-quote figcaption span {
  color: rgba(10, 10, 10, .62);
  font-size: 14px;
}

/* ===== Заявка на странице кейса =====
   Тот же блок, что на страницах услуг (стили — в styles.css). Здесь только то, что
   перебивает общее .case-study-page a { color: inherit; text-decoration: none } */
.case-study-page .contact {
  padding-top: clamp(12px, 2vw, 28px);
}

.case-study-page .contact__offer-button {
  color: #ffffff;
}

.case-study-page .lead-form__consent a,
.case-study-page .lead-form__policy a {
  text-decoration: underline;
}

.case-study-more {
  padding-block: clamp(56px, 6vw, 96px) 24px;
}

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

.case-study-more__card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(247, 247, 244, .12);
  border-radius: 28px;
  background: #151515;
  transition: transform .3s ease, border-color .3s ease;
}

.case-study-more__card:hover {
  border-color: rgba(255, 210, 64, .45);
  transform: translateY(-4px);
}

.case-study-more__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-study-more__card div {
  padding: 24px 26px 28px;
}

.case-study-more__card span {
  color: rgba(247, 247, 244, .5);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}

.case-study-more__card h3 {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.case-study-more__card p {
  margin: 8px 0 0;
  color: rgba(247, 247, 244, .62);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .case-study-task,
  .case-study-results__header {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-study-results__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .case-study-hero {
    padding-top: 108px;
  }

  .case-study-quote {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .case-study-more__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Статистика Яндекс Бизнеса и исходный скриншот ===== */
.case-study-results--yandex {
  padding-top: 36px;
  border-top: 1px solid rgba(247, 247, 244, .16);
}

.case-study-results--yandex .case-study-results__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-study-results--yandex .case-study-metric {
  min-width: 0;
  padding: clamp(20px, 2vw, 32px);
}

.case-study-results--yandex .case-study-metric strong {
  font-size: clamp(48px, 4.4vw, 76px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.case-study-results__note {
  max-width: 76em;
  margin: 22px 0 0;
  color: rgba(247, 247, 244, .6);
  font-size: 13px;
  line-height: 1.6;
}

.case-study-statistics-report {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 48px;
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 40px;
  border-top: 1px solid rgba(247, 247, 244, .16);
}

.case-study-statistics-report__copy .case-study-eyebrow {
  color: rgba(247, 247, 244, .5);
}

.case-study-statistics-report__copy h3 {
  margin: 16px 0;
  font-size: clamp(25px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1.2;
}

.case-study-statistics-report__copy > p:last-child {
  max-width: 29em;
  margin: 0;
  color: rgba(247, 247, 244, .65);
  font-size: 16px;
  line-height: 1.6;
}

.case-study-statistics-report__gallery {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}

.case-study-statistics-report__gallery .case-study-site-gallery__preview {
  aspect-ratio: 1280 / 579;
}

.case-study-statistics-report__gallery figcaption {
  color: rgba(247, 247, 244, .65);
}

@media (max-width: 1100px) {
  .case-study-results--yandex .case-study-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .case-study-results--yandex .case-study-metric {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .case-study-results--yandex .case-study-metric strong {
    font-size: clamp(36px, 9vw, 48px);
  }

  .case-study-results--yandex .case-study-metric p {
    font-size: 14px;
  }

  .case-study-statistics-report {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* ===== Ссылки на услуги и другие кейсы ===== */

.case-study-service-link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: opacity .2s ease;
}

.case-study-work .case-study-service-link {
  color: var(--quantum-black);
}

.case-study-service-link:hover {
  opacity: .65;
}

.case-study-page .case-study-results__source {
  border-bottom: 1px solid currentColor;
  color: var(--neural-white);
}

.case-study-more__card .case-study-more__link {
  display: inline-block;
  margin-top: 18px;
  color: var(--solar-core);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

/* Пока кейс в блоке один — карточка на всю ширину: картинка слева, текст справа */
.case-study-more__card:only-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}

.case-study-more__card:only-child img {
  height: 100%;
}

.case-study-more__card:only-child div {
  padding: clamp(24px, 3vw, 48px);
}

@media (max-width: 760px) {
  .case-study-more__card:only-child {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Страница «Все кейсы» ===== */

.case-list-hero {
  padding-top: clamp(120px, 12vw, 180px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.case-list-hero .case-study-eyebrow {
  margin-top: 28px;
}

.case-list-hero h1 {
  margin: 14px 0 0;
  font-family: "Bebas Neue", "Roboto", Arial, sans-serif;
  font-size: clamp(72px, 10vw, 160px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.035em;
}

.case-list-hero__lead {
  max-width: 40em;
  margin: 24px 0 0;
  color: rgba(247, 247, 244, .68);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
}

.case-list {
  padding-bottom: clamp(56px, 6vw, 96px);
}

.case-list__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Заголовки карточек здесь — h2: на странице нет h1-уровня выше них */
.case-list__grid .case-study-more__card h2 {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.02em;
}

/* Первый кейс — во всю ширину: картинка слева, текст справа */
.case-list__grid .case-study-more__card:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}

.case-list__grid .case-study-more__card:first-child img {
  height: 100%;
}

.case-list__grid .case-study-more__card:first-child div {
  padding: clamp(24px, 3vw, 48px);
}

.case-list__grid .case-study-more__card:first-child h2 {
  font-size: clamp(28px, 2.6vw, 40px);
}

.case-list__grid .case-study-more__card .case-list__metric {
  margin-top: 14px;
  color: var(--neural-white);
}

.case-list__metric b {
  color: var(--solar-core);
  font-weight: 600;
}

@media (max-width: 760px) {
  .case-list__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-list__grid .case-study-more__card:first-child {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== «Станьте нашим кейсом» на странице «Все кейсы» ===== */
.case-list__grid .case-list__offer {
  grid-column: 1 / -1;
  border-color: transparent;
  color: var(--quantum-black);
  background: linear-gradient(145deg, #ffd240, #f3bd18);
}

.case-list__grid .case-list__offer div {
  padding: clamp(24px, 3vw, 44px);
}

.case-list__grid .case-list__offer span {
  color: rgba(10, 10, 10, .6);
}

.case-list__grid .case-list__offer h2 {
  font-family: "Bebas Neue", "Roboto", Arial, sans-serif;
  font-size: clamp(44px, 5vw, 80px);
  font-weight: 400;
  line-height: .9;
}

.case-list__grid .case-list__offer p {
  max-width: 40em;
  color: rgba(10, 10, 10, .72);
}

.case-list__grid .case-list__offer .case-study-more__link {
  color: var(--quantum-black);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-list__grid .case-list__offer:hover {
  border-color: transparent;
}
