:root {
  color-scheme: light dark;
  --header-h: 60px;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --container-narrow: 860px;

  /* Rhythm (baseline scale; migrate gradually) */
  --gutter: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-4_5: 18px;
  --space-5_5: 22px;
  --space-6: 28px;
  --space-7: 32px;
  --space-7_5: 34px;
  --space-8: 48px;
  --space-9: 60px;

  --section-pad-top: calc(var(--header-h) * 0.5);
  --section-pad-bottom: calc(var(--header-h) * 1.5);
  /* Default hero offset */
  --hero-pad-top: calc(var(--header-h) + 48px);
  --hero-v3-row-share: 78%;

  /* Cases */
  --case-fade-mid: rgba(246, 242, 234, 0.55);
  --case-fade-to: rgba(246, 242, 234, 0.98);
  --case-modal-backdrop: rgba(15, 23, 42, 0.55);

  /* Typography (clamp-based; keep a small, coherent set) */
  --fs-body: clamp(15px, calc(0.4vw + 14px), 16px);
  --fs-title: clamp(28px, 4vw, 40px);
  --fs-hero: clamp(34px, 5.2vw, 62px);

  /* Motion */
  --anim-speed: .3s;
  --anim-ease: ease-in-out;
  --transition: all var(--anim-speed) var(--anim-ease);
  --hero-notes-ready-delay: 1000ms;
  --hero-notes-delay-1: 500ms;
  --hero-notes-delay-step: 500ms;
  --hero-notes-rise: 10px;
  --hero-note-shadow: 0 1px 1px rgba(15, 23, 42, 0.12);

  --bg: #f6f2ea;
  --bg-soft: #efe7d8;
  --surface: #ffffff;
  --card: rgba(255, 255, 255, 0.68);
  --card-strong: rgba(255, 255, 255, 0.82);
  --border: rgba(15, 23, 42, 0.1);
  --text: rgba(15, 23, 42, 0.92);
  --muted: rgba(71, 85, 105, 0.96);
  --muted-2: rgba(100, 116, 139, 0.92);

  --primary: #14265f;
  --primary-weak: rgba(20, 38, 95, 0.12);
  --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #2d4a9e 55%, #3b5cba 100%);
  --primary-border: rgba(20, 38, 95, 0.32);
  --primary-border-hover: rgba(20, 38, 95, 0.46);
  --danger-accent: #9f1239;

  --text-gradient: linear-gradient(135deg, var(--text) 0%, rgba(30, 58, 138, 0.92) 100%);
  --text-gradient-h2: linear-gradient(90deg, var(--text) 0%, var(--primary) 18%, var(--primary) 100%);

  --hero-accent: var(--primary);
  --badge-text: rgba(20, 38, 95, 0.9);
  --dot: rgba(20, 38, 95, 0.75);

  --surface-ghost: rgba(15, 23, 42, 0.04);
  --surface-ghost-hover: rgba(15, 23, 42, 0.06);
  --pill-bg: rgba(255, 255, 255, 0.6);

  --header-bg-scrolled: rgba(247, 242, 232, 0.78);
  --mobile-nav-bg: rgba(247, 242, 232, 0.88);
  --section-alt-bg: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.03) 25%, transparent);
  --page-bg: radial-gradient(1200px 800px at 15% -10%, rgba(20, 38, 95, 0.1), transparent 60%),
    radial-gradient(900px 700px at 95% 0%, rgba(20, 38, 95, 0.06), transparent 60%), var(--bg);

  --callout-border: rgba(20, 38, 95, 0.22);
  --callout-bg: rgba(20, 38, 95, 0.08);
  --callout-title: rgba(20, 38, 95, 0.9);

  --input-bg: rgba(255, 255, 255, 0.68);
  --input-bg-focus: rgba(255, 255, 255, 0.84);
  --focus-border: rgba(20, 38, 95, 0.42);

  --shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0f1a2e;
  --surface: rgba(255, 255, 255, 0.04);
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.62);

  --primary: #7c3aed;
  --primary-weak: rgba(124, 58, 237, 0.14);
  --primary-gradient: linear-gradient(180deg, rgba(124, 58, 237, 0.95), rgba(124, 58, 237, 0.75));
  --primary-border: rgba(124, 58, 237, 0.35);
  --primary-border-hover: rgba(124, 58, 237, 0.55);
  --danger-accent: #fb7185;

  --text-gradient: linear-gradient(135deg, var(--text) 0%, rgba(167, 139, 250, 0.95) 100%);
  --text-gradient-h2: linear-gradient(90deg, var(--text) 0%, rgba(167, 139, 250, 0.96) 18%, rgba(167, 139, 250, 0.96) 100%);

  --hero-accent: #a78bfa;
  --badge-text: #c4b5fd;
  --dot: rgba(167, 139, 250, 0.9);

  --surface-ghost: rgba(255, 255, 255, 0.04);
  --surface-ghost-hover: rgba(255, 255, 255, 0.06);
  --pill-bg: rgba(255, 255, 255, 0.06);

  --header-bg-scrolled: rgba(11, 18, 32, 0.78);
  --mobile-nav-bg: rgba(11, 18, 32, 0.88);
  --section-alt-bg: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 25%, transparent);
  --page-bg: radial-gradient(1400px 900px at 20% -10%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(1000px 800px at 90% 0%, rgba(59, 130, 246, 0.16), transparent 55%), var(--bg);

  --callout-border: rgba(124, 58, 237, 0.26);
  --callout-bg: rgba(124, 58, 237, 0.12);
  --callout-title: #c4b5fd;

  --input-bg: rgba(0, 0, 0, 0.18);
  --input-bg-focus: rgba(0, 0, 0, 0.24);
  --focus-border: rgba(167, 139, 250, 0.65);

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --hero-note-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);

  /* Cases */
  --case-fade-mid: rgba(11, 18, 32, 0.62);
  --case-fade-to: rgba(11, 18, 32, 0.96);
  --case-modal-backdrop: rgba(0, 0, 0, 0.66);
}

@media (max-width: 520px) {
  :root {
    --gutter: 18px;
    --space-5_5: 18px;
    --space-6: 22px;
    --space-7: 28px;
    --space-7_5: 24px;
    --space-8: 32px;
    --space-9: 44px;
  }
}

@media (max-width: 859px) {
  :root {
    /* On phones: lift hero content up, but keep a predictable rhythm */
    --hero-pad-top: clamp(calc(var(--header-h) * 1.25), calc(var(--header-h) + 4svh), calc(var(--header-h) * 1.75));
    --fs-hero: clamp(26px, 7vw, 36px);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--fs-body);
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.5;
  transition: var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 1000;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  outline: none;
}

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.container--narrow {
  width: min(var(--container-narrow), calc(100% - (var(--gutter) * 2)));
}

.center {
  text-align: center;
}

.section {
  padding: var(--section-pad-top) 0 var(--section-pad-bottom);
}

.section--alt {
  background: var(--section-alt-bg);
}

.section--hero {
  padding-top: var(--hero-pad-top);
  min-height: 100vh;
  display: flex;
  align-items: center;
  height: 100vh;
}

.hero-v2.section--hero {
  padding-top: calc(var(--header-h) + var(--space-4));
  padding-bottom: var(--space-4);
  height: calc(100vh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  align-items: flex-start;
}

@supports (height: 100svh) {
  .hero-v2.section--hero {
    height: calc(100svh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }
}

.section--about {
  padding-top: var(--section-pad-top);
}

.about {
  display: grid;
  gap: var(--space-5_5);
  align-items: center;
}

.about__media {
  max-width: 360px;
}

.about__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about__title {
  margin-bottom: var(--space-4);
}

.about__text {
  display: grid;
  gap: var(--space-3);
  max-width: 780px;
}

.about__p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

@media (min-width: 860px) {
  .about {
    grid-template-columns: minmax(240px, 1fr) 2fr;
    gap: 28px;
  }

  .about__media {
    max-width: none;
  }
}

.section:not(.section--hero) {
  scroll-margin-top: var(--header-h);
}

.section__title {
  font-family: "DM Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: var(--fs-title);
  margin: 0 0 var(--space-3);
}

.section__subtitle {
  margin: 0 auto var(--space-7_5);
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
}

.section__subtitle--tight {
  margin-bottom: 8px;
}

.section__hint {
  margin: 0 0 var(--space-6);
  font-size: 13px;
  color: var(--muted-2);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: var(--transition);
  background: transparent;
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}

.header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.cases-header__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cases-header__home::before {
  content: "←";
}

html[dir="rtl"] .cases-header__home::before,
html[dir="rtl"] .case__sublist--links li::before {
  transform: rotate(180deg);
}

.brand:focus,
.brand:focus-visible {
  outline: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 9px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-actions .btn--primary {
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}

.btn {
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}

.btn--primary {
  border-color: var(--primary-border);
  background: var(--primary-gradient);
  color: rgba(255, 255, 255, 0.96);
}

.btn--outline {
  background: transparent;
}

html[data-theme="light"] .btn--outline {
  color: var(--text);
}

.btn--lg {
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 14px;
}

.btn--full {
  width: 100%;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle {
  position: relative;
}

.icon-btn__bars {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.nav-toggle .icon-btn__bars {
  position: absolute;
  inset-block-start: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon-btn__bars::before,
.icon-btn__bars::after,
.icon-btn__bars span {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.icon-btn__bars::before {
  top: 0;
}

.icon-btn__bars::after {
  bottom: 0;
}

.nav-toggle .icon-btn__bars span {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--mobile-nav-bg);
  backdrop-filter: blur(10px);
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
}

.mobile-nav__inner {
  padding: 14px 0 18px;
}

.mobile-nav__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.mobile-nav__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html[dir="rtl"] .mobile-nav__title {
  text-align: right;
}

.mobile-nav__top .header-switchers {
  justify-content: flex-end;
}

.nav--mobile {
  display: grid;
  gap: 6px;
}

.nav--mobile .nav__link {
  display: block;
  width: 100%;
  text-align: left;
}

html[dir="rtl"] .nav--mobile .nav__link {
  text-align: right;
}

.nav__group {
  display: grid;
  gap: 6px;
}

.nav__sub {
  display: grid;
  gap: 6px;
  padding-inline-start: 14px;
}

.nav__sublink {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font: inherit;
  cursor: pointer;
  opacity: 0.7;
  text-decoration: none;
}

html[dir="rtl"] .nav__sub {
  padding-inline-start: 0;
  padding-inline-end: 14px;
}

html[dir="rtl"] .nav__sublink {
  text-align: right;
}

.nav--desktop {
  display: none;
}

.hero {
  text-align: center;
}

.hero__title {
  font-family: "DM Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  font-size: var(--fs-hero);
  line-height: 1.06;
}

.hero__accent {
  color: var(--hero-accent);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  html[data-theme="light"] .brand {
    background-image: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  html[data-theme="light"] .hero__accent {
    background-image: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  html[data-theme="light"] .section__title {
    background-image: var(--text-gradient-h2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

@media (hover:hover) {
  .nav__link:hover {
    background: var(--surface-ghost-hover);
    color: var(--text);
    transform: translateY(-1px);
  }

  .btn:hover {
    transform: translateY(-1px);
  }

  .btn:not(.btn--primary):hover {
    background: var(--surface-ghost-hover);
  }

  .btn--primary:hover {
    border-color: var(--primary-border-hover);
  }

  .icon-btn:hover {
    transform: translateY(-1px);
    background: var(--surface-ghost-hover);
  }

  .cases-slider__arrow:hover {
    transform: none;
  }

  .cases__more:hover {
    border-bottom-color: currentColor;
  }

  .card:hover {
    transform: translateY(-2px);
    background: var(--card-strong);
    box-shadow: var(--shadow);
  }

  .link-chip:hover {
    transform: translateY(-1px);
    background: var(--surface-ghost-hover);
  }

  .icon-link:hover {
    transform: translateY(-1px);
    background: var(--surface-ghost-hover);
  }

  .select-icon:hover {
    transform: translateY(-1px);
    background: var(--surface-ghost-hover);
  }

  .case-modal__close:hover {
    transform: none;
    background: transparent;
    opacity: 0.82;
  }

  .case-modal__close:focus-visible {
    outline: 2px solid var(--focus-border) !important;
    outline-offset: 4px;
  }
}

.hero__lead {
  margin: 18px auto 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 1.125em;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__note {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.95em;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  text-shadow: var(--hero-note-shadow);
  transition: var(--transition);
}

.hero__notes {
  margin: 16px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 860px;
}

/* -----------------------------------------------------------------------------
  Hero v2
----------------------------------------------------------------------------- */
.hero-v2__grid {
  display: grid;
  gap: 22px;
  align-items: center;
}

.hero-v2__content {
  text-align: start;
}

.hero-v2__title {
  font-size: clamp(30px, 4.5vw, 56px);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-v2__title {
    background-image: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-v2__lead {
  margin-left: 0;
  margin-right: 0;
  max-width: 60ch;
}

.hero-v2__p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}

.hero-v2__cta {
  margin-top: 18px;
}

.hero-v2__visual {
  position: relative;
  width: min(460px, 100%);
  margin: 0 auto;
}

.hero-v2__frame {
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: var(--shadow);
}

.hero-v2__frame--main {
  aspect-ratio: 4 / 5;
}

.hero-v2__frame--secondary {
  position: absolute;
  inset-block-end: -14px;
  inset-inline-end: -14px;
  width: min(56%, 260px);
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow);
}

.hero-v2__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

html[dir="rtl"] .hero-v2__frame--secondary {
  inset-inline-end: auto;
  inset-inline-start: -14px;
}

@media (max-width: 859px) {
  .hero-v2__grid {
    gap: 16px;
  }

  .hero-v2__title {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.08;
  }

  .hero-v2__lead {
    font-size: 15px;
    margin-top: 12px;
  }

  .hero-v2__p {
    font-size: 14px;
    margin-top: 10px;
  }

  .hero-v2__cta {
    margin-top: 14px;
  }

  .hero-v2__visual {
    width: min(220px, 58vw);
  }

  .hero-v2__frame--secondary {
    inset-block-end: -10px;
    inset-inline-end: -10px;
    width: min(46%, 140px);
  }

  html[dir="rtl"] .hero-v2__frame--secondary {
    inset-inline-end: auto;
    inset-inline-start: -10px;
  }
}

@media (min-width: 860px) {
  .hero-v2__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
  }

  html[dir="rtl"] .hero-v2__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* -----------------------------------------------------------------------------
  Hero v3
----------------------------------------------------------------------------- */
.hero-v3.section--hero {
  padding-top: var(--hero-pad-top);
  padding-bottom: var(--space-4);
  height: auto;
  min-height: 100vh;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
}

@supports (height: 100svh) {
  .hero-v3.section--hero {
    min-height: 100svh;
  }
}

.hero-v3__layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(18px, 3svh, 34px);
}

.hero-v3__row {
  flex: 1 1 auto;
  min-height: 0;
}

.hero-v3__footer {
  flex: 0 0 auto;
  min-height: 0;
}

.hero-v3__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 3svh, 28px);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-v3__title {
    background-image: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

h1#hero-v3-title {
  text-align: center;
}

.hero-v3__lead {
  margin: 0;
  max-width: 62ch;
}

.hero-v3__for {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  width: 100%;
  max-width: none;
  text-align: center;
}

.hero-v3__actions {
  margin: 0;
  display: flex;
  justify-content: center;
}

.hero-v3__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-v3 .hero__notes {
  margin: 0;
}

.hero-v3 .hero__lead,
.hero-v3 .hero-v3__for {
  font-size: 1.05em;
}

.card.hero-v3__frame {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-v3__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 100%;
}

.hero-v3__frame {
  width: min(320px, 56vw);
  aspect-ratio: 4 / 5;
  max-height: 42svh;
}

.hero-v3__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-v3__footer {
  margin: 0;
  display: flex;
  justify-content: center;
  padding-top: var(--space-3);
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  align-items: center;
}

@media (max-height: 720px) {
  .hero-v3__layout {
    height: auto;
  }

  .hero-v3__row {
    flex: 0 0 auto;
  }
}

@media (min-width: 860px) {
  .hero-v3 .hero-v3__row {
    align-items: stretch;
  }

  .hero-v3 .hero-v3__content {
    align-self: stretch;
    height: auto;
    min-height: 0;
    justify-content: space-between;
    padding-block: clamp(0px, 3svh, 36px);
    gap: clamp(18px, 2svh, 26px);
  }

  .hero-v3 .hero-v3__visual {
    align-self: stretch;
  }
}

@supports (height: 100svh) {
  .hero-v3__layout {
    height: calc(100svh - var(--hero-pad-top) - var(--space-4));
  }
}

@supports not (height: 100svh) {
  .hero-v3__layout {
    height: calc(100vh - var(--hero-pad-top) - var(--space-4));
  }
}

@media (min-width: 860px) {
  .hero-v3__row {
    flex-wrap: nowrap;
    gap: 28px;
  }

  .hero-v3__content {
    flex: 0 0 calc(75% - 28px);
  }

  .hero-v3__visual {
    flex: 0 0 25%;
  }

  .hero-v3__frame {
    width: min(280px, 100%);
  }
}

@media (max-width: 859px) {
  .hero-v3__lead {
    font-size: 15px;
    margin-top: 12px;
  }

  .hero-v3__for {
    margin-top: 10px;
  }

  .hero-v3__visual {
    flex-basis: 100%;
  }

  .hero-v3__frame {
    width: min(210px, 54vw);
    max-height: 30svh;
  }

  .hero-v3__layout {
    gap: clamp(12px, 1.6svh, 18px);
  }

  .hero-v3__content {
    gap: clamp(10px, 1.2svh, 14px);
  }
}

@media (max-width: 859px) and (max-height: 720px) {
  .hero-v3__actions {
    margin: 18px auto;
  }

  .hero__notes {
    margin-top: 12px;
    gap: 8px;
  }

  .hero-v3__frame {
    width: min(210px, 54vw);
    max-height: 26svh;
  }

  .hero-v3__footer {
    margin-top: 12px;
    margin-bottom: 0;
  }
}

html:not(.is-ready) .hero__notes .hero__note {
  opacity: 0;
  transform: translateY(var(--hero-notes-rise));
}

html.is-ready .hero__notes .hero__note {
  opacity: 1;
  transform: translateY(0);
}

html.is-ready .hero__notes .hero__note:nth-child(1) {
  transition-delay: var(--hero-notes-delay-1);
}

html.is-ready .hero__notes .hero__note:nth-child(2) {
  transition-delay: calc(var(--hero-notes-delay-1) + var(--hero-notes-delay-step));
}

html.is-ready .hero__notes .hero__note:nth-child(3) {
  transition-delay: calc(var(--hero-notes-delay-1) + (var(--hero-notes-delay-step) * 2));
}

.scroll-down {
  margin: 30px auto 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}

.scroll-down__chevron {
  font-size: 22px;
  animation: bounce 1.35s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.grid {
  display: grid;
  gap: 14px;
}

.grid--4 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.card {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: var(--transition);
}

.card.hero-v2__frame {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card--row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-weak);
  color: var(--primary);
  flex: none;
}

.chip-icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--primary);
}

.form__actions {
  display: flex;
  justify-content: center;
}

html[dir="rtl"] .btn__arrow {
  display: inline-block;
  transform: rotate(180deg);
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary-weak);
  color: var(--badge-text);
  font-weight: 700;
  font-size: 12px;
}

.card__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__text {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.card__text--muted {
  color: var(--muted);
}

.list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
}

.list--bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}

.list--bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dot);
  margin-top: 7px;
  flex: none;
}

.list--dots li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.list--dots li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dot);
  margin-top: 8px;
  flex: none;
}

.timeline {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
  display: grid;
  gap: 16px;
  --timeline-axis: 72px;
  --timeline-rail: var(--timeline-axis);
  --timeline-gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--timeline-rail) / 2);
  width: 1px;
  background: var(--border);
}

.timeline__item {
  display: grid;
  grid-template-columns: var(--timeline-rail) 1fr;
  align-items: center;
  gap: var(--timeline-gap);
  position: relative;
}

.timeline__marker {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 12px;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  z-index: 2;
  margin-inline-start: 0;
}

.timeline__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  grid-column: 2;
  grid-row: 1;
  text-align: left;
}

.timeline__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.timeline__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stack {
  display: grid;
  gap: 18px;
}

.stack--lg {
  gap: 22px;
}

.cases-layout {
  display: block;
}

.cases-page {
  padding-top: var(--header-h);
}

.cases-side {
  display: none;
}

.cases-side__title {
  margin: 0 0 var(--space-3);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.cases-side__nav {
  display: grid;
  gap: 8px;
}

.cases-side__link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  transition: var(--transition);
}

.cases-side__link.is-active {
  color: var(--text);
  background: var(--surface-ghost);
  border-color: var(--border);
}

.cases-side__group {
  display: grid;
  gap: 8px;
}

.cases-side__sub {
  display: grid;
  gap: 6px;
  padding-inline-start: 12px;
}

.cases-side__sublink {
  display: block;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font: inherit;
  cursor: pointer;
  opacity: 0.7;
  text-decoration: none;
}

html[dir="rtl"] .cases-side__sub {
  padding-inline-start: 0;
  padding-inline-end: 12px;
}

html[dir="rtl"] .cases-side__sublink {
  text-align: right;
}

@media (min-width: 860px) {
  .cases-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: var(--space-7_5);
    align-items: start;
  }

  .cases-side {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
  }

  .cases-layout__main {
    min-width: 0;
  }
}

@media (hover: hover) {
  .cases-side__link:hover {
    color: var(--text);
    background: var(--surface-ghost);
    border-color: var(--border);
  }
}

@media (max-width: 520px) {
  .cases-page .cases-layout__main .container,
  .cases-page .cases-layout__main .container--narrow {
    width: 100%;
  }

  .cases-page .case {
    padding: var(--space-4);
  }

  .cases-page .case .section__title {
    font-size: clamp(22px, 7vw, 30px);
  }
}

.case {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
}

.pill {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.pill--sticker {
  background: var(--primary-gradient);
  border-color: var(--primary-border);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

html[data-theme="dark"] .pill--sticker {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.cases-slider {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 12px;
}

.cases-slider__frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  flex: 1;
  direction: ltr;
}

.cases-slider__viewport {
  direction: ltr;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 0;
  height: 100%;
  touch-action: pan-y;
}

.cases-slider__track {
  direction: ltr;
  height: 100%;
  display: flex;
  transition: var(--transition);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.cases-slider__slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  min-width: 0;
}

.cases-slider .case {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.case__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.case__actions {
  position: relative;
  z-index: 3;
  margin-top: var(--space-4);
}

.case__fade {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 44%;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--case-fade-mid) 55%, var(--case-fade-to) 100%);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.case__more-btn {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  inset-block-end: var(--space-4);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.case.is-truncated .case__fade {
  opacity: 1;
}

.case.is-truncated .case__more-btn {
  opacity: 1;
  pointer-events: auto;
}

.case-modal {
  width: min(920px, calc(100% - (var(--gutter) * 2)));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-strong);
  padding: 0;
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .case-modal {
  background: rgba(11, 18, 32, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.case-modal::backdrop {
  background: var(--case-modal-backdrop);
  backdrop-filter: blur(10px);
}

.case-modal__inner {
  position: relative;
  padding: var(--space-5_5);
}

.case-modal__close {
  position: absolute;
  inset-block-start: var(--space-4);
  inset-inline-end: var(--space-4);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

html[data-theme="dark"] .case-modal__close {
  color: rgba(255, 255, 255, 0.92);
}

.case-modal__close span[aria-hidden="true"] {
  font-size: 22px;
  line-height: 1;
}

.case-modal__close .sr-only {
  color: inherit;
}

.case-modal__close::before,
.case-modal__close::after {
  content: none !important;
}

.case-modal__body {
  max-height: min(80vh, calc(100svh - (var(--header-h) * 2)));
  overflow: auto;
  scrollbar-width: thin;
}

.case-modal__content {
  text-align: start;
}

.case-modal__content,
.case-modal__content .case__text,
.case-modal__content .list--dots li,
.case-modal__content .callout__text {
  color: var(--text);
}

html[data-theme="dark"] .case-modal__content,
html[data-theme="dark"] .case-modal__content .case__text,
html[data-theme="dark"] .case-modal__content .list--dots li,
html[data-theme="dark"] .case-modal__content .callout__text {
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .case-modal__content .case__label,
html[data-theme="dark"] .case-modal__content .callout__title {
  color: rgba(255, 255, 255, 0.62);
}

.case-modal__content .case__grid {
  grid-template-columns: 1fr;
}

@media (max-width: 520px) {
  .case-modal {
    width: calc(100% - (var(--gutter) * 2));
  }

  .case-modal__body {
    max-height: calc(100svh - (var(--header-h) * 2));
  }
}

.cases-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cases-slider__arrow {
  background: var(--card-strong);
  box-shadow: var(--shadow);
  flex: none;
}

.cases-slider__arrow-icon {
  font-size: 20px;
  line-height: 1;
}

.cases-slider__arrow--prev {
  grid-column: 1;
}

.cases-slider__viewport {
  grid-column: 2;
}

.cases-slider__arrow--next {
  grid-column: 3;
}

.cases-slider__controls-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cases-slider__arrow-slot {
  display: none;
}

.cases-slider[data-arrows="bottom"] .cases-slider__arrow-slot {
  display: block;
}

.cases-slider[data-arrows="bottom"] .cases-slider__frame > .cases-slider__arrow {
  display: none;
}

.cases-slider[data-arrows="bottom"] .cases-slider__arrow {
  box-shadow: none;
}

.cases-slider[data-arrows="bottom"] .cases-slider__controls {
  gap: 10px;
}

html[dir="rtl"] .cases-slider__arrow--prev {
  grid-column: 3;
}

html[dir="rtl"] .cases-slider__arrow--next {
  grid-column: 1;
}

html[dir="rtl"] .cases-slider__controls-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .cases-slider__arrow-icon {
  transform: rotate(180deg);
}

.cases__subtitle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.cases__more {
  color: var(--primary);
  border-bottom: 1px solid rgba(20, 38, 95, 0.28);
  transition: var(--transition);
}

html[data-theme="dark"] .cases__more {
  border-bottom-color: rgba(167, 139, 250, 0.38);
}

.cases-slider .case {
  padding: var(--space-4);
}

html[data-theme="dark"] .cases-slider .case {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.cases-slider .case__title {
  font-size: clamp(16px, 2vw, 22px);
}

.cases-slider .case__grid {
  gap: var(--space-3);
}

.cases-slider .case__grid > * {
  min-width: 0;
}

.cases-slider .case__label {
  font-size: 11px;
}

.cases-slider .case__text,
.cases-slider .list--dots li {
  font-size: 13px;
  line-height: 1.45;
}

#cases .cases-body > .cases-slider {
  min-width: 0;
}

html[dir="rtl"] .cases-slider__slide {
  direction: rtl;
}

.cases-slider__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.cases-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.cases-slider__dot.is-active {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  border-color: transparent;
  background: var(--primary);
}

#cases.section {
  height: calc(100svh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--section-pad-top);
  display: flex;
  flex-direction: column;
}

#cases .cases-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

#cases .cases-body {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
}

#cases .cases-body {
  margin: 0 auto;
}

#cases .cases-body > .cases-slider {
  flex: 1;
}

@media (min-width: 860px) {
  #cases .cases-body {
    width: min(var(--container-narrow), calc(100% - (var(--gutter) * 2)));
  }
}

@media (max-width: 520px) {
  .cases-slider__frame {
    gap: 10px;
  }

  .cases-slider__arrow.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .cases-slider__arrow-icon {
    font-size: 18px;
  }

  .cases-slider .case__title {
    font-size: 18px;
  }

  .cases-slider .case {
    padding: 14px;
  }

  .cases-slider__frame {
    grid-template-columns: 1fr;
  }

  .cases-slider__viewport {
    grid-column: 1;
  }
}

@media (min-width: 860px) {
  .cases-slider .case__grid {
    grid-template-columns: 1fr;
  }
}

.case__title {
  margin: 0 0 var(--space-4);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.case__grid {
  display: grid;
  gap: var(--space-4);
}

.case__label {
  margin: 0 0 var(--space-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.case__text {
  margin: 0;
  color: var(--text);
}

.case__subblock {
  padding: var(--space-4);
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--surface-ghost);
}

.case__sublist {
  margin: 0;
}

.case__sublist--links li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.case__sublist--links li::before {
  content: "→";
  color: var(--muted);
  flex: none;
  margin-top: 2px;
}

.case__sublist--links .case__subitem {
  text-decoration: underline;
}

.case__subitem {
  display: inline-block;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

html[dir="rtl"] .case__subitem {
  text-align: right;
}

.case__ecosystem-link {
  margin-top: var(--space-3);
}

.case__ecosystem-link a {
  color: var(--muted);
  text-decoration: underline;
}

.callout {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: 14px;
  border: 1px solid var(--callout-border);
  background: var(--callout-bg);
}

.callout__title {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--callout-title);
}

.callout__text {
  margin: 0;
}

.faq {
  text-align: left;
  display: grid;
  gap: var(--space-3);
}

.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.faq__question {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-4);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.faq__question::after {
  content: "+";
  color: var(--muted);
  font-weight: 900;
}

.faq__item[open] .faq__question::after {
  content: "—";
}

.faq__answer {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--muted);
  font-size: 14px;
}

.panel {
  margin-top: var(--space-4);
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4_5);
}

.panel__divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4_5) 0;
}

.legal-owner {
  margin-top: var(--space-4);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-owner__label {
  font-weight: 600;
  color: var(--text);
}

.form {
  display: grid;
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

.field__control {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 12px;
  padding: var(--space-3) var(--space-3);
  outline: none;
  font-size: 14px;
  transition: var(--transition);
}

.field__control:focus {
  border-color: var(--focus-border);
  background: var(--input-bg-focus);
}

.field__control--textarea {
  resize: vertical;
  min-height: 120px;
}

.form__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

.direct__title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.direct__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  transition: var(--transition);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5_5) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  text-align: center;
}

.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  transition: var(--transition);
}

.footer-icon:focus-visible {
  outline: 2px solid var(--focus-border);
  outline-offset: 4px;
}

.footer-icon .chip-icon {
  width: var(--space-5_5);
  height: var(--space-5_5);
  color: currentColor;
}

.icon-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  transition: var(--transition);
}

.header-switchers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.select-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.select-icon:focus-within {
  border-color: var(--focus-border);
}

.select-icon__icon {
  color: var(--muted);
  font-size: 16px;
}

.select-icon select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 420px) {
  .header-inner {
    gap: 10px;
  }

  .header-actions {
    gap: 8px;
  }

  html[data-lang="ru"] .brand {
    font-size: 15px;
    letter-spacing: -0.03em;
  }

  html[data-lang="ru"] .header-actions .btn--primary {
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 860px) {
  .header-title {
    display: none;
  }

  .cases-header__cta {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content-text-ru,
.content-text-en,
.content-text-he,
.content-block-ru,
.content-block-en,
.content-block-he {
  display: none;
}

html[data-lang="ru"] .content-text-ru,
html[data-lang="ru"] .content-block-ru {
  display: revert;
}

html[data-lang="en"] .content-text-en,
html[data-lang="en"] .content-block-en {
  display: revert;
}

html[data-lang="he"] .content-text-he,
html[data-lang="he"] .content-block-he {
  display: revert;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .skip-link {
  left: auto;
  right: 12px;
}

html[dir="rtl"] .list,
html[dir="rtl"] .timeline__card,
html[dir="rtl"] .case,
html[dir="rtl"] .faq,
html[dir="rtl"] .panel {
  text-align: right;
}

@media (min-width: 860px) {
  .nav--desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

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

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

  .cards--center-last > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc((100% - 14px) / 2));
  }

  .case__grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .timeline {
    gap: 18px;
  }

  .timeline::before {
    inset-inline-start: 50%;
    transform: translateX(-50%);
  }

  .timeline__item {
    grid-template-columns: 1fr var(--timeline-axis) 1fr;
    gap: var(--timeline-gap);
  }

  .timeline__marker {
    grid-column: 2;
    margin-inline-start: 0;
  }

  .timeline__marker,
  .timeline__card {
    align-self: center;
  }

  .timeline__item--alt .timeline__card {
    grid-column: 1 / 2;
  }

  .timeline__item:not(.timeline__item--alt) .timeline__card {
    grid-column: 3 / 4;
  }

  /* Markers stay opposite the cards, symmetric to the center line. */
  .timeline__item--alt .timeline__marker {
    justify-self: center;
  }

  .timeline__item:not(.timeline__item--alt) .timeline__marker {
    justify-self: center;
  }
}

@media (min-width: 1100px) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .cards--center-last > :last-child {
    width: min(100%, calc((100% - 28px) / 3));
  }
}

/* Disabled project link on cases page */
.case__link--disabled {
  display: inline-block;
  color: var(--muted-2);
  background: transparent;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px dashed rgba(100, 116, 139, 0.12);
  cursor: default;
  user-select: text;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95em;
}

/* Slightly more muted notice text under the link */
.case__muted {
  color: var(--muted);
  font-size: 0.95em;
}

/* Improve contrast in dark theme */
html[data-theme="dark"] .case__link--disabled {
  color: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .case__muted {
  color: rgba(255, 255, 255, 0.68);
}
