/* Case-page typography and form cleanup after the 2026-07-28 review. */

.case-section__head,
.remo-section__head {
  max-width: 900px;
}

.case-section__head h2,
.remo-section__head h2 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
}

.case-section__head > p,
.remo-section__head > p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.52;
}

.case-card,
.remo-card,
.remo-fact-grid article,
.remo-result-grid article {
  box-shadow: none;
}

.case-card p,
.remo-card p,
.remo-section p,
.case-section p {
  font-size: 17px;
  line-height: 1.5;
}

.case-final__copy > p,
.remo-final__copy > p {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.5;
}

.case-form-simple {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 4vw, 40px);
  background: #fff;
  border: 1px solid #cfd6d5;
  border-radius: 10px;
  box-shadow: none;
}

.case-final__inner {
  grid-template-columns: minmax(0, 0.93fr) minmax(374px, 1.07fr);
}

.remo-final__inner {
  grid-template-columns: minmax(0, 1fr) minmax(396px, 0.792fr);
}

.case-final__inner,
.remo-final__inner {
  align-items: stretch;
}

.case-final__copy,
.remo-final__copy {
  display: flex;
  flex-direction: column;
}

.case-followup-title {
  margin: 28px 0 0;
  color: #fff;
  font-family: var(--heading-font);
  font-size: 24px;
  line-height: 1.1;
}

.case-followup {
  display: grid;
  gap: 14px;
  margin: 12px 0 0;
  padding: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  list-style: none;
  counter-reset: case-followup;
}

.case-followup li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.42;
  counter-increment: case-followup;
}

.case-followup li::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: counter(case-followup);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.case-form-simple label > span {
  display: block;
  margin-bottom: 7px;
  color: #263238;
  font-weight: 700;
}

.case-form-simple input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: #171c20;
  background: #fff;
  border: 1px solid #aeb8b8;
  border-radius: 7px;
  font: inherit;
}

.case-form-simple .consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
}

.case-form-simple .consent span {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.case-form-simple .btn {
  border-radius: 8px;
  box-shadow: none;
}

.case-form-simple .btn,
.case-inline-cta .btn,
.heater-section-cta .btn,
.antenna-case-switch .btn {
  min-height: 52px;
  color: #fff;
  background: #0b5f88;
  border: 2px solid #0b5f88;
  text-decoration: none;
}

.case-form-simple .btn:hover,
.case-form-simple .btn:focus-visible,
.case-inline-cta .btn:hover,
.case-inline-cta .btn:focus-visible,
.heater-section-cta .btn:hover,
.heater-section-cta .btn:focus-visible,
.antenna-case-switch .btn:hover,
.antenna-case-switch .btn:focus-visible {
  color: #fff;
  background: #08496a;
  border-color: #08496a;
}

.case-inline-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.remo-hero__cta-wide {
  min-width: 260px;
  padding-right: 34px;
  padding-left: 34px;
}

.remo-challenges-block {
  margin-top: 56px;
}

.remo-challenges-block > h3 {
  margin: 0;
  color: var(--remo-blue-deep);
  font-family: var(--heading-font);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.remo-challenges-block .remo-challenges {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
  margin-top: 22px;
}

.remo-challenges-block .remo-challenges article {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 5px 10px;
  padding: 18px 0;
  border-top: 1px solid var(--remo-line);
}

.remo-challenges-block .remo-challenges article::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--remo-blue);
  content: "—";
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.remo-challenges-block .remo-challenges b,
.remo-challenges-block .remo-challenges p {
  grid-column: 2;
}

.remo-challenges-block .remo-challenges b {
  margin: 0;
}

.remo-site-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.remo-site-examples .remo-site-shot {
  min-width: 0;
}

.remo-site-examples .remo-site-shot img {
  aspect-ratio: 4 / 3;
}

.remo-site-examples .remo-site-shot figcaption {
  font-size: 14px;
  line-height: 1.42;
}

.remo-proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(34px, 5vw, 70px);
  align-items: start;
}

.remo-document-proof {
  max-width: 280px;
  margin: 0;
}

.remo-document-proof button,
.remo-installation-gallery button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
}

.remo-document-proof img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--remo-line);
  border-radius: 8px;
}

.remo-document-proof figcaption {
  margin-top: 10px;
  color: var(--remo-muted);
  font-size: 13px;
  line-height: 1.4;
}

.remo-installations-title {
  margin: 50px 0 0;
  color: var(--remo-blue-deep);
  font-family: var(--heading-font);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.remo-installation-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.remo-installation-gallery figure {
  min-width: 0;
  margin: 0;
}

.remo-installation-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: filter 160ms ease, transform 160ms ease;
}

.remo-installation-gallery button:hover img,
.remo-installation-gallery button:focus-visible img {
  filter: brightness(1.08);
  transform: scale(1.015);
}

.remo-installation-gallery figcaption {
  margin-top: 9px;
  color: var(--remo-muted);
  font-size: 13px;
  line-height: 1.35;
}

.case-inline-cta--on-dark .btn {
  color: #073b59;
  background: #fff;
  border-color: #fff;
}

.case-inline-cta--on-dark .btn:hover,
.case-inline-cta--on-dark .btn:focus-visible {
  color: #073b59;
  background: #dff5ff;
  border-color: #dff5ff;
}

.case-subheading {
  margin: 42px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
}

.antenna-ad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.antenna-ad-grid article {
  min-width: 0;
  padding: 24px;
  color: #17232d;
  background: #f5f8fa;
  border: 1px solid #d5e0e5;
  border-radius: 10px;
}

.antenna-ad-grid b {
  display: block;
  color: #073b59;
  font-size: 21px;
  line-height: 1.15;
}

.antenna-ad-grid p {
  margin: 11px 0 0;
}

.direct-proof--ad-variants {
  grid-column: 1 / -1;
}

.direct-proof-grid .direct-proof:not(.direct-proof--ad-variants) > img {
  height: 300px;
  padding: 14px;
  object-fit: contain;
  object-position: center top;
}

.direct-proof-grid > .direct-proof--ad-variants:last-child {
  width: min(100%, 760px);
  justify-self: center;
}

.direct-proof__paired-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: center;
  gap: 16px;
  padding: 18px;
  background: #f3f5f7;
}

.direct-proof-grid .direct-proof--ad-variants .direct-proof__paired-images img {
  width: 100%;
  height: 340px;
  padding: 0;
  object-fit: contain;
  object-position: center top;
  background: #fff;
}

.remo-retro-grid article {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.heater-protection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.heater-protection-grid article {
  min-height: 0;
  padding: 23px 24px;
}

.heater-section-cta {
  margin: 28px 0 0;
}

.footer__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.footer__social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  opacity: .78;
}

.footer__social-links a:hover,
.footer__social-links a:focus-visible,
.footer__social-links a:active {
  color: #fff;
  opacity: 1;
}

.footer__social-links .social-link--telegram:hover,
.footer__social-links .social-link--telegram:focus-visible,
.footer__social-links .social-link--telegram:active {
  background: #229ed9;
  border-color: #229ed9;
}

.footer__social-links .social-link--vk:hover,
.footer__social-links .social-link--vk:focus-visible,
.footer__social-links .social-link--vk:active {
  background: #0077ff;
  border-color: #0077ff;
  opacity: 1;
}

.footer__social-links .social-link--youtube:hover,
.footer__social-links .social-link--youtube:focus-visible,
.footer__social-links .social-link--youtube:active {
  background: #ff0000;
  border-color: #ff0000;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .case-hero *,
  .remo-hero *,
  .case-section *,
  .remo-section * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .case-final__inner,
  .remo-final__inner {
    grid-template-columns: 1fr;
  }

  .remo-proof-layout {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  }

  .remo-installation-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .case-section__head h2,
  .remo-section__head h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .case-section__head > p,
  .remo-section__head > p,
  .case-card p,
  .remo-card p,
  .remo-section p,
  .case-section p {
    font-size: 16px;
  }

  .case-form-simple {
    padding: 24px 18px;
  }

  .case-followup {
    gap: 12px;
    margin-top: 12px;
    padding-top: 20px;
  }

  .case-followup-title {
    margin-top: 24px;
    font-size: 22px;
  }

  .case-followup li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    font-size: 15px;
  }

  .antenna-ad-grid,
  .heater-protection-grid {
    grid-template-columns: 1fr;
  }

  .direct-proof-grid .direct-proof:not(.direct-proof--ad-variants) > img {
    height: auto;
    max-height: 360px;
  }

  .direct-proof__paired-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .direct-proof-grid .direct-proof--ad-variants .direct-proof__paired-images img {
    height: min(300px, 76vw);
    max-height: 300px;
    padding: 0;
  }

  .case-inline-cta .btn,
  .heater-section-cta .btn,
  .antenna-case-switch .btn {
    width: 100%;
  }

  .remo-challenges-block {
    margin-top: 42px;
  }

  .remo-challenges-block .remo-challenges {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .remo-site-examples {
    grid-auto-columns: 82%;
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 12px;
    padding-bottom: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
  }

  .remo-site-examples .remo-site-shot {
    scroll-snap-align: start;
  }

  .remo-proof-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .remo-document-proof {
    width: min(66vw, 250px);
    max-width: none;
  }

  .remo-installations-title {
    margin-top: 40px;
  }

  .remo-installation-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
}

/* Shared case mobile and form refinements, 2026-07-29 */
.case-form-column {
  width: 100%;
  min-width: 0;
}

.case-form-heading {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--heading-font);
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.05;
  scroll-margin-top: 120px;
}

.case-form-simple button[type="submit"] {
  color: #fff;
  background: #c53732 !important;
  border-color: #c53732 !important;
}

.case-form-simple button[type="submit"]:hover,
.case-form-simple button[type="submit"]:focus-visible {
  background: #a92d29 !important;
  border-color: #a92d29 !important;
}

.remo-hero .btn--primary {
  color: #fff;
  background: #167c78 !important;
  border-color: #167c78 !important;
}

.remo-hero .btn--primary:hover,
.remo-hero .btn--primary:focus-visible {
  background: #116560 !important;
  border-color: #116560 !important;
}

@media (max-width: 680px) {
  .case-section,
  .remo-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .case-section__head,
  .remo-section__head {
    margin-bottom: 30px;
  }

  .case-form-heading {
    margin-bottom: 12px;
    scroll-margin-top: 104px;
  }
}

@media (max-width: 560px) {
  body.remo-case-page .remo-hero,
  body.remo-case-page .remo-hero__inner {
    min-height: max(700px, calc(100svh - 92px));
  }

  body.remo-case-page .remo-hero__inner {
    padding-top: 82px;
    padding-bottom: 42px;
  }

  body.heater-case-page .remo-hero,
  body.heater-case-page .remo-hero__inner {
    min-height: max(700px, calc(100svh - 92px));
  }

  body.remo-case-page .remo-back {
    margin-bottom: 24px;
  }

  .remo-flow {
    gap: 24px;
  }

  .remo-flow div {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 14px;
    align-items: center;
    padding-top: 0;
  }

  .remo-flow div::before {
    position: static;
    grid-column: 1;
    grid-row: 1;
  }

  .remo-flow div::after {
    display: none;
  }

  .remo-flow b {
    grid-column: 2;
    grid-row: 1;
    font-size: 20px;
  }

  .remo-flow span {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
}
