/* Лендинг главной: блочная сетка в духе Generations, с акцентом на агентов. */

body.home-page.landing-page .page-shell {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

body.home-page.landing-page .home-header {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 20;
  transform: none;
  margin: 0 auto;
}

body.home-page.landing-page .home-header::before {
  background: transparent;
}

body.home-page.landing-page .home-logo-light {
  display: none;
}

body.home-page.landing-page .home-logo-dark {
  display: block;
}

body.home-page.landing-page .home-nav-link,
body.home-page.landing-page .home-menu-toggle {
  color: #ffffff;
}

body.home-page.landing-page .home-theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

@media (hover: hover) {
  body.home-page.landing-page .home-theme-toggle:hover,
  body.home-page.landing-page .home-theme-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.2);
  }
}

body.home-page.landing-page.home-mobile-nav-open .home-nav-link {
  color: #101010;
}

html[data-theme="dark"] body.home-page.landing-page.home-mobile-nav-open .home-nav-link,
body.home-page.landing-page[data-theme="dark"].home-mobile-nav-open .home-nav-link {
  color: #ffffff;
}

@media (hover: hover) {
  body.home-page.landing-page .home-nav-link:hover,
  body.home-page.landing-page .home-nav-link:focus-visible {
    color: rgba(255, 255, 255, 0.72);
  }

  body.home-page.landing-page.home-mobile-nav-open .home-nav-link:hover,
  body.home-page.landing-page.home-mobile-nav-open .home-nav-link:focus-visible {
    color: rgba(16, 16, 16, 0.72);
  }

  html[data-theme="dark"] body.home-page.landing-page.home-mobile-nav-open .home-nav-link:hover,
  html[data-theme="dark"] body.home-page.landing-page.home-mobile-nav-open .home-nav-link:focus-visible,
  body.home-page.landing-page[data-theme="dark"].home-mobile-nav-open .home-nav-link:hover,
  body.home-page.landing-page[data-theme="dark"].home-mobile-nav-open .home-nav-link:focus-visible {
    color: rgba(255, 255, 255, 0.72);
  }
}

/* Большая плашка агентов: текст слева, видео справа. */
.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  overflow: hidden;
  box-sizing: border-box;
  min-height: 50vh;
  margin: 0;
  padding: 80px max(35px, calc((100% - 1280px) / 2)) 0;
  border-radius: 0;
  background: #1a1c21;
  color: #f4f4f1;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 140% 70% at 25% 0%,
      rgba(37, 87, 254, 0.4) 0%,
      rgba(37, 87, 254, 0.12) 42%,
      transparent 74%
    ),
    radial-gradient(
      ellipse 90% 55% at 8% 4%,
      rgba(53, 210, 58, 0.2) 0%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 95% 52% at 44% 0%,
      rgba(255, 43, 43, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 70% 48% at 26% 10%,
      rgba(80, 130, 255, 0.18) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 85% 75% at 100% 100%,
      rgba(37, 87, 254, 0.12) 0%,
      rgba(80, 130, 255, 0.047) 38%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 55% 50% at 86% 96%,
      rgba(53, 210, 58, 0.067) 0%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 48% 44% at 100% 82%,
      rgba(255, 43, 43, 0.053) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 62% 48% at 100% 0%,
      rgba(53, 210, 58, 0.12) 0%,
      rgba(80, 130, 255, 0.05) 42%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 38% 34% at 92% 8%,
      rgba(255, 43, 43, 0.07) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 85% 75% at 0% 100%,
      rgba(37, 87, 254, 0.18) 0%,
      rgba(80, 130, 255, 0.07) 38%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 55% 50% at 14% 96%,
      rgba(53, 210, 58, 0.1) 0%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 48% 44% at 0% 82%,
      rgba(255, 43, 43, 0.08) 0%,
      transparent 58%
    );
}

.landing-hero-copy {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.2cqw, 36px);
  box-sizing: border-box;
  padding: clamp(28px, 3.6cqw, 44px) clamp(28px, 3.8cqw, 48px) clamp(28px, 3.6cqw, 44px) 0;
  min-width: 0;
  z-index: 1;
}

.landing-hero-copy > * {
  position: relative;
  z-index: 1;
}

.landing-hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.landing-hero h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(34px, 4.2cqw, 54px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.landing-hero-subtitle {
  display: flex;
  align-items: center;
  flex: 1;
  margin: 0;
  max-width: 28em;
  color: inherit;
  font-size: clamp(20px, 1.9cqw, 24px);
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.96;
}

.landing-hero-bottom {
  display: grid;
  grid-template-rows: auto auto;
  gap: 28px;
  min-width: 0;
  min-height: 0;
}

.landing-hero-engine {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: inherit;
  font-size: clamp(18px, 1.7cqw, 22px);
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.95;
}

.landing-hero-gpt-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-image: url("/static/img/ChatGPT-Logo.svg");
  mask-image: url("/static/img/ChatGPT-Logo.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.landing-hero-features {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 100%;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-hero-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  min-width: 0;
  padding: 16px 20px;
  border: 0;
  border-radius: 14px;
  background: rgba(185, 204, 255, 0.1);
  color: #f4f4f1;
}

.landing-hero-features img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}

.landing-hero-features span {
  min-width: 0;
  font-size: clamp(15px, 1.4cqw, 18px);
  font-weight: 500;
  line-height: 1.3;
}

.landing-hero-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  background: transparent;
}

.landing-hero-media video,
.landing-hero-media img {
  display: block;
  width: 87%;
  height: auto;
  max-width: 87%;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
}

.landing-hero-media.is-hero-solid video,
.landing-hero-media.is-hero-solid img {
  background: #1d1d1d;
}

@media (min-width: 1180px) {
  .landing-hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.landing-hero-media video::-webkit-media-controls,
.landing-hero-media video::-webkit-media-controls-enclosure {
  display: none !important;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    container-type: inline-size;
    background: #25293f;
    padding-top: 76px;
  }

  .landing-hero-copy {
    display: contents;
  }

  .landing-hero::before {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 50%, #000 64%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 50%, #000 64%);
    background:
      radial-gradient(
        ellipse 78% 68% at 0% 100%,
        rgba(37, 87, 254, 0.4) 0%,
        rgba(37, 87, 254, 0.12) 40%,
        transparent 72%
      ),
      radial-gradient(
        ellipse 62% 48% at 6% 96%,
        rgba(53, 210, 58, 0.2) 0%,
        transparent 62%
      ),
      radial-gradient(
        ellipse 48% 44% at 0% 88%,
        rgba(255, 43, 43, 0.16) 0%,
        transparent 58%
      ),
      radial-gradient(
        ellipse 42% 36% at 4% 78%,
        rgba(80, 130, 255, 0.16) 0%,
        transparent 60%
      ),
      radial-gradient(
        ellipse 78% 68% at 100% 100%,
        rgba(37, 87, 254, 0.28) 0%,
        rgba(80, 130, 255, 0.08) 40%,
        transparent 72%
      ),
      radial-gradient(
        ellipse 58% 46% at 94% 96%,
        rgba(53, 210, 58, 0.14) 0%,
        transparent 62%
      ),
      radial-gradient(
        ellipse 46% 40% at 100% 86%,
        rgba(255, 43, 43, 0.12) 0%,
        transparent 58%
      ),
      radial-gradient(
        ellipse 40% 34% at 96% 78%,
        rgba(80, 130, 255, 0.12) 0%,
        transparent 60%
      );
  }

  .landing-hero-copy::before {
    content: none;
    display: none;
  }

  .landing-hero-text,
  .landing-hero-subtitle,
  .landing-hero-bottom {
    position: relative;
    z-index: 1;
  }

  .landing-hero-media {
    order: -1;
    z-index: 1;
    justify-self: stretch;
    width: 100%;
    height: auto;
    padding: 12px 8px 4px;
    background: #25293f;
  }

  .landing-hero-media video,
  .landing-hero-media img {
    max-width: 95%;
    max-height: none;
    width: 95%;
  }

  .landing-hero-media.is-hero-solid video,
  .landing-hero-media.is-hero-solid img {
    background: #25293f;
  }

  .landing-hero-text {
    max-width: none;
    padding: 20px 24px 8px;
  }

  .landing-hero-subtitle {
    flex: none;
    padding: 8px 24px 16px;
    font-size: 16px;
  }

  .landing-hero-engine {
    font-size: 14px;
  }

  .landing-hero-gpt-icon {
    width: 18px;
    height: 18px;
  }

  .landing-hero-bottom {
    padding: 8px 24px 24px;
  }
}

@media (max-width: 760px) {
  body.home-page.landing-page .home-header {
    top: 18px;
    left: 0;
    right: 0;
    width: min(calc(100% - 32px), 1280px);
    transform: none;
    margin: 0 auto;
  }

  .landing-hero {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 72px;
  }

  .landing-section,
  body.home-page.landing-page .home-footer {
    width: min(calc(100% - 32px), 1280px);
  }

  .landing-section.landing-cases {
    width: 100%;
    padding-inline: 16px;
    box-sizing: border-box;
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-cases-nav {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-end;
    align-self: start;
    z-index: 2;
  }

  .landing-hero h1 {
    font-size: 32px;
  }

  .landing-hero-features li {
    padding: 14px 18px;
  }
}

.landing-section {
  width: min(calc(100% - 70px), 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(96px, 10cqw, 120px);
}

.landing-section.landing-cases {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  --cases-arrow-size: 28px;
  --cases-arrow-slot: 72px;
  --cases-peek: max(35px, calc((100vw - 1280px) / 2));
  --cases-card: min(1280px, calc(100vw - var(--cases-peek) * 2));
}

body.home-page.landing-page .home-footer {
  width: min(calc(100% - 70px), 1280px);
  margin-left: auto;
  margin-right: auto;
}

.landing-section .home-section-title {
  margin-bottom: clamp(24px, 3cqw, 40px);
  font-size: clamp(32px, 3.6cqw, 44px);
  text-align: center;
}

.landing-cases-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  grid-column: 1;
  grid-row: 1;
  width: min(calc(100% - 70px), 1280px);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  text-align: center;
}

.landing-cases-head .home-section-title {
  margin: 0;
}

.landing-cases-lead,
.landing-engines-lead {
  margin: 0;
  padding-top: clamp(14px, 2cqw, 22px);
  padding-bottom: clamp(24px, 3cqw, 40px);
  font-size: clamp(17px, 1.9cqw, 23px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  opacity: 0.7;
}

.landing-cases-nav {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  gap: 8px;
  margin-bottom: clamp(24px, 3cqw, 40px);
}

.landing-cases-arrow {
  display: inline-flex;
  width: auto;
  height: auto;
  padding: 8px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.landing-cases-arrow svg {
  width: var(--cases-arrow-size);
  height: var(--cases-arrow-size);
}

.landing-cases-arrow:disabled {
  opacity: 0.32;
  cursor: default;
}

@media (hover: hover) {
  .landing-cases-arrow:hover:not(:disabled) {
    background: transparent;
    opacity: 0.55;
  }
}

.landing-cases-viewport {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 16px;
  overflow-x: auto;
  padding-top: 56px;
  padding-bottom: 120px;
  margin-top: -56px;
  margin-bottom: -120px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.landing-cases-viewport:not(.is-ready) {
  opacity: 0;
}

.landing-cases-viewport.is-jumping {
  scroll-snap-type: none;
}

.landing-cases-viewport.is-jumping .landing-case {
  transition: none;
}

.landing-cases-viewport::-webkit-scrollbar {
  display: none;
}

.landing-case {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6cqw, 32px);
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  padding: clamp(20px, 3cqw, 40px);
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(16, 16, 16, 0.08);
  opacity: 0.64;
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.landing-case.is-active {
  opacity: 1;
  cursor: default;
}

.landing-case-main {
  display: grid;
  grid-template-columns: minmax(180px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: clamp(20px, 3.6cqw, 48px);
}

.landing-case-person {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2cqw, 24px);
  min-width: 0;
}

.landing-case-photo {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border-radius: 50%;
  object-fit: cover;
}

.landing-case-person-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.landing-case-name {
  margin: 0;
  font-size: clamp(18px, 1.8cqw, 26px);
  font-weight: 500;
  line-height: 1.15;
}

.landing-case-role {
  margin: 8px 0 0;
  font-size: clamp(15px, 1.3cqw, 18px);
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.58;
}

.landing-case-site {
  display: inline-flex;
  align-items: center;
  margin: 12px 0 0;
  padding: 5px 12px 6px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.08);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.78;
  cursor: default;
  user-select: text;
}

.landing-case-body {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6cqw, 32px);
  min-width: 0;
}

.landing-case-quote-wrap {
  --quote-fill: #ffffff;
  --quote-line: rgba(16, 16, 16, 0.08);
  --quote-shade: 0 10px 28px rgba(16, 16, 16, 0.08);
  position: relative;
  z-index: 1;
  max-width: 42em;
  border-radius: 18px;
  box-shadow: var(--quote-shade);
}

.landing-case-quote {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--quote-fill);
  color: #101010;
  filter:
    drop-shadow(1px 0 0 var(--quote-line))
    drop-shadow(-1px 0 0 var(--quote-line))
    drop-shadow(0 1px 0 var(--quote-line))
    drop-shadow(0 -1px 0 var(--quote-line));
}

.landing-case-quote::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -7px;
  top: 52px;
  width: 16px;
  height: 16px;
  background: var(--quote-fill);
  transform: rotate(45deg);
  border-radius: 3px;
}

.landing-case-quote p {
  margin: 0;
  font-size: clamp(15px, 1.35cqw, 18px);
  font-weight: 400;
  line-height: 1.5;
}

.landing-case-quote p + p {
  margin-top: 0.7em;
}

.landing-case-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3cqw, 40px);
  margin: 0;
}

.landing-case-stat {
  min-width: 0;
}

.landing-case-stat dt {
  display: flex;
  align-items: center;
  min-height: 1.1em;
  margin: 0;
  font-size: clamp(25px, 2.4cqw, 33px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.landing-case-apps {
  position: relative;
  isolation: isolate;
  height: 1.1em;
  padding: 0.08em 0.18em 0.08em 0.04em;
}

.landing-case-apps img {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  object-fit: contain;
  border-radius: 22%;
  box-shadow: 0 4px 12px rgba(16, 16, 16, 0.16);
}

.landing-case-apps img:nth-child(1) {
  z-index: 1;
  transform: rotate(-14deg);
}

.landing-case-apps img:nth-child(2) {
  z-index: 2;
  margin-left: -0.32em;
  transform: rotate(5deg);
}

.landing-case-apps img:nth-child(3) {
  z-index: 3;
  margin-left: -0.32em;
  transform: rotate(16deg);
}

.landing-case-stat dd {
  max-width: 16em;
  margin: 10px 0 0;
  font-size: clamp(14px, 1.2cqw, 16px);
  line-height: 1.35;
  opacity: 0.58;
}

html[data-theme="dark"] body.home-page .landing-cases-arrow,
body.home-page[data-theme="dark"] .landing-cases-arrow {
  background: transparent;
}

@media (hover: hover) {
  html[data-theme="dark"] body.home-page .landing-cases-arrow:hover:not(:disabled),
  body.home-page[data-theme="dark"] .landing-cases-arrow:hover:not(:disabled) {
    background: transparent;
    opacity: 0.55;
  }
}

.landing-engines-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  text-align: center;
}

.landing-section .landing-engines-head .home-section-title {
  margin: 0;
}

.landing-faq {
  padding-bottom: clamp(40px, 5cqw, 72px);
}

.landing-faq .home-section-title {
  width: min(100%, 66rem);
  margin-left: auto;
  margin-right: auto;
}

.landing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 66rem);
  margin-inline: auto;
}

.landing-faq-item {
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 80px rgba(16, 16, 16, 0.08);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.landing-faq-item[open] {
  border-color: rgba(16, 16, 16, 0.16);
  box-shadow: 0 28px 88px rgba(16, 16, 16, 0.11);
}

.landing-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 1.8cqw, 22px) clamp(18px, 2cqw, 24px);
  color: inherit;
  font-size: clamp(17px, 1.7cqw, 22px);
  font-weight: 500;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

.landing-faq-question::-webkit-details-marker {
  display: none;
}

.landing-faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: currentColor;
  opacity: 0.5;
  -webkit-mask:
    linear-gradient(#000 0 0) center / 16px 2px no-repeat,
    linear-gradient(#000 0 0) center / 2px 16px no-repeat;
  mask:
    linear-gradient(#000 0 0) center / 16px 2px no-repeat,
    linear-gradient(#000 0 0) center / 2px 16px no-repeat;
  transition: transform 0.22s ease, opacity 0.16s ease;
}

.landing-faq-item[open] .landing-faq-question::after {
  transform: rotate(45deg);
  opacity: 0.85;
}

@media (hover: hover) {
  .landing-faq-item:hover {
    border-color: rgba(16, 16, 16, 0.16);
    box-shadow: 0 28px 88px rgba(16, 16, 16, 0.11);
  }
}

.landing-faq-answer {
  padding: 0 clamp(18px, 2cqw, 24px) clamp(16px, 1.8cqw, 22px);
}

.landing-faq-answer p {
  margin: 0;
  font-size: clamp(15px, 1.35cqw, 18px);
  font-weight: 400;
  line-height: 1.38;
  opacity: 0.68;
}

html[data-theme="dark"] body.home-page .landing-faq-item,
body.home-page[data-theme="dark"] .landing-faq-item {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body.home-page .landing-faq-item[open],
body.home-page[data-theme="dark"] .landing-faq-item[open] {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.36);
}

@media (hover: hover) {
  html[data-theme="dark"] body.home-page .landing-faq-item:hover,
  body.home-page[data-theme="dark"] .landing-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 88px rgba(0, 0, 0, 0.36);
  }
}

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

.landing-engine {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  padding: clamp(24px, 2.4cqw, 32px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 80px rgba(16, 16, 16, 0.08);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.landing-engine::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}

.landing-engine-head,
.landing-engine-points {
  position: relative;
  z-index: 1;
}

.landing-engine-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  max-width: calc(100% - 72px);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.landing-engine:has(.landing-engine-mark-chatgpt) .landing-engine-badge {
  background: rgba(0, 160, 123, 0.14);
  color: #007056;
}

.landing-engine:has(.landing-engine-mark-flixa) .landing-engine-badge {
  background: rgba(80, 92, 255, 0.12);
  color: #3b3f9a;
}

.landing-engine:has(.landing-engine-mark-openrouter) .landing-engine-badge {
  background: rgba(125, 26, 246, 0.12);
  color: #5b12c0;
}

/* ChatGPT — бирюза из верхнего левого */
.landing-engine:has(.landing-engine-mark-chatgpt)::before {
  background: radial-gradient(
    ellipse 142% 120% at 0% 0%,
    rgba(0, 160, 123, 0.14),
    transparent 64%
  );
}

/* Flixa — голубой в сиреневый на исходе, сила как у соседних плашек */
.landing-engine:has(.landing-engine-mark-flixa)::before {
  background: radial-gradient(
    ellipse 142% 120% at 0% 0%,
    rgba(208, 239, 255, 0.37),
    rgba(236, 202, 255, 0.16) 42%,
    transparent 64%
  );
}

/* OpenRouter — фиолетовый из верхнего левого */
.landing-engine:has(.landing-engine-mark-openrouter)::before {
  background: radial-gradient(
    ellipse 142% 120% at 0% 0%,
    rgba(125, 26, 246, 0.11),
    transparent 64%
  );
}

@media (hover: hover) {
  .landing-engine:hover {
    border-color: rgba(16, 16, 16, 0.16);
    box-shadow: 0 28px 88px rgba(16, 16, 16, 0.11);
  }
}

.landing-engine-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: min(11.5rem, 46%);
}

.landing-engine h3 {
  margin: 0;
  min-width: 0;
  font-size: clamp(17px, 1.6cqw, 22px);
  font-weight: 500;
  line-height: 1.2;
}

.landing-engine-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-engine-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.78;
}

.landing-engine-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 0.12em;
  background: currentColor;
  opacity: 0.92;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.landing-engine-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.landing-engine-mark-chatgpt {
  background: #00a07b;
}

.landing-engine-mark-flixa {
  background: #ffffff;
}

.landing-engine-mark-openrouter {
  background: #7d1af6;
}

.landing-engine-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: #ffffff;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.landing-engine-icon-chatgpt {
  -webkit-mask-image: url("/static/img/ChatGPT-Logo.svg");
  mask-image: url("/static/img/ChatGPT-Logo.svg");
}

.landing-engine-icon-flixa {
  width: 22px;
  height: 19px;
  background: none;
  object-fit: contain;
}

.landing-engine-icon-openrouter {
  -webkit-mask-image: url("/static/img/landing/openrouter.svg");
  mask-image: url("/static/img/landing/openrouter.svg");
}

html[data-theme="dark"] body.home-page .landing-engine,
body.home-page[data-theme="dark"] .landing-engine {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body.home-page .landing-engine:has(.landing-engine-mark-chatgpt) .landing-engine-badge,
body.home-page[data-theme="dark"] .landing-engine:has(.landing-engine-mark-chatgpt) .landing-engine-badge {
  background: rgba(0, 160, 123, 0.22);
  color: #7ee0c8;
}

html[data-theme="dark"] body.home-page .landing-engine:has(.landing-engine-mark-flixa) .landing-engine-badge,
body.home-page[data-theme="dark"] .landing-engine:has(.landing-engine-mark-flixa) .landing-engine-badge {
  background: rgba(180, 170, 255, 0.18);
  color: #d5d0ff;
}

html[data-theme="dark"] body.home-page .landing-engine:has(.landing-engine-mark-openrouter) .landing-engine-badge,
body.home-page[data-theme="dark"] .landing-engine:has(.landing-engine-mark-openrouter) .landing-engine-badge {
  background: rgba(125, 26, 246, 0.28);
  color: #d2b4ff;
}

html[data-theme="dark"] body.home-page .landing-engine:has(.landing-engine-mark-chatgpt)::before,
body.home-page[data-theme="dark"] .landing-engine:has(.landing-engine-mark-chatgpt)::before {
  background: radial-gradient(
    ellipse 142% 120% at 0% 0%,
    rgba(0, 160, 123, 0.22),
    transparent 64%
  );
}

html[data-theme="dark"] body.home-page .landing-engine:has(.landing-engine-mark-flixa)::before,
body.home-page[data-theme="dark"] .landing-engine:has(.landing-engine-mark-flixa)::before {
  background: radial-gradient(
    ellipse 142% 120% at 0% 0%,
    rgba(208, 239, 255, 0.2),
    rgba(236, 202, 255, 0.11) 42%,
    transparent 64%
  );
}

html[data-theme="dark"] body.home-page .landing-engine:has(.landing-engine-mark-openrouter)::before,
body.home-page[data-theme="dark"] .landing-engine:has(.landing-engine-mark-openrouter)::before {
  background: radial-gradient(
    ellipse 142% 120% at 0% 0%,
    rgba(125, 26, 246, 0.19),
    transparent 64%
  );
}

@media (hover: hover) {
  html[data-theme="dark"] body.home-page .landing-engine:hover,
  body.home-page[data-theme="dark"] .landing-engine:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 88px rgba(0, 0, 0, 0.36);
  }
}

html[data-theme="dark"] body.home-page .landing-case,
body.home-page[data-theme="dark"] .landing-case {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body.home-page .landing-case-site,
body.home-page[data-theme="dark"] .landing-case-site {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body.home-page .landing-case-quote-wrap,
body.home-page[data-theme="dark"] .landing-case-quote-wrap {
  --quote-fill: #303030;
  --quote-line: rgba(255, 255, 255, 0.1);
  --quote-shade: 0 16px 40px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] body.home-page .landing-case-quote,
body.home-page[data-theme="dark"] .landing-case-quote {
  color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 761px) {
  .landing-section.landing-cases {
    grid-template-columns: minmax(0, 1fr);
    --cases-arrow-size: 52px;
    --cases-peek: max(var(--cases-arrow-slot), calc((100vw - 1280px) / 2));
  }

  .landing-cases-head {
    grid-column: 1;
  }

  .landing-cases-viewport {
    grid-row: 2;
    padding-inline: var(--cases-peek);
    scroll-padding-inline: var(--cases-peek);
  }

  .landing-cases-nav {
    grid-column: 1;
    grid-row: 2;
    z-index: 4;
    align-self: stretch;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 0;
    padding-inline: max(4px, calc((var(--cases-peek) - var(--cases-arrow-size)) / 2));
    pointer-events: none;
  }

  .landing-cases-arrow {
    pointer-events: auto;
    background: transparent;
    color: inherit;
    box-shadow: none;
  }

  html[data-theme="dark"] body.home-page .landing-cases-arrow,
  body.home-page[data-theme="dark"] .landing-cases-arrow {
    background: transparent;
    color: inherit;
  }

  .landing-case {
    flex-basis: var(--cases-card);
  }

  .landing-case-person {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    text-align: center;
  }

  .landing-case-person-meta {
    align-items: center;
    text-align: center;
  }

  .landing-case-photo {
    width: 120px;
    height: 120px;
    flex-basis: 120px;
  }

  .landing-case-quote p {
    font-size: clamp(18px, 1.65cqw, 21px);
  }
}

@media (min-width: 901px) {
  .landing-engine-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-right: 0;
  }

  .landing-engine h3 {
    font-size: clamp(20px, 1.8cqw, 24px);
    white-space: normal;
  }

  .landing-engine-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .landing-engine-icon {
    width: 30px;
    height: 30px;
  }

  .landing-engine-icon-flixa {
    width: 34px;
    height: 29px;
  }

  .landing-case {
    display: grid;
    grid-template-columns: minmax(207px, 0.6fr) minmax(0, 1.4fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 0;
    row-gap: clamp(20px, 2.4cqw, 28px);
    min-height: 30.125rem;
    padding-block: clamp(20px, 3cqw, 40px);
    padding-right: calc(clamp(20px, 3cqw, 40px) * 4 / 3 * 1.4);
  }

  .landing-case-main,
  .landing-case-body {
    display: contents;
  }

  .landing-case-person {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: stretch;
  }

  .landing-case-quote-wrap {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    max-width: none;
  }

  .landing-case-stats {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 8px;
  }

  .landing-case-stat {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
  }

  .landing-case-stat dt {
    height: auto;
    min-height: 1.2em;
    align-self: end;
    font-size: clamp(23px, 2cqw, 29px);
  }

  .landing-case-stat dd {
    max-width: none;
    margin-top: 0;
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
  }
}

@media (min-width: 1280px) {
  .landing-case-stat dd {
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .landing-engine {
    padding-top: 48px;
  }

  .landing-engine-head {
    padding-right: 0;
  }

  .landing-case-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-case-quote::before {
    left: 28px;
    top: -7px;
  }

  .landing-engines {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing-section .home-section-title {
    font-size: 32px;
  }

  .landing-cases-head {
    width: auto;
    min-height: 44px;
    margin-left: 0;
    margin-right: 0;
  }

  .landing-cases-viewport {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  .landing-case {
    flex-basis: calc(100% - 40px);
    gap: 24px;
    padding: 22px 20px 24px;
  }

  .landing-case-photo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .landing-case-name {
    font-size: 18px;
  }

  .landing-case-quote {
    padding: 16px 18px;
  }

  .landing-case-quote::before {
    left: 28px;
  }

  .landing-case-quote p {
    font-size: 16px;
  }

  .landing-case-stats {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }

  .landing-case-stat dt {
    font-size: 27px;
  }
}
