/* Откликс landing — SSS (Stretch → Scale → Switch)
   Mobile-first: base = 0–767 Switch
   768 Stretch · 1024 Stretch · 1200 Base grid · 1440+ Scale
*/

@font-face {
  font-family: "New Comer Sans";
  src: url("/fonts/NewComerSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "New Comer Sans SHA";
  src: url("/fonts/NewComerSans-SHA.otf") format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

.auth-landing {
  --otk-blue: #0037ff;
  --otk-blue-soft: #e8efff;
  --otk-blue-hover: #002ed6;
  --otk-text: #0b1220;
  --otk-muted: #6b7280;
  --otk-muted-2: #9ca3af;
  --otk-border: #e5e7eb;
  --otk-card: #fff;
  --otk-bg: #f5f6f8;
  --otk-grid: 75rem; /* 1200px at 16px root */
  --otk-gutter: 1rem;
  --otk-scale: 1;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --font-video: "New Comer Sans", "New Comer Sans SHA", cursive;

  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  background: #fff;
  color: var(--otk-text);
  font-family: var(--font-sans);
  font-size: calc(1rem * var(--otk-scale));
  line-height: 1.45;
  overflow-x: clip;
}

/* Keep login form usable during session check */
body.landing-active.session-checking #step-phone,
body.landing-active.session-checking #step-code {
  visibility: visible !important;
  pointer-events: auto !important;
}

body.landing-active.session-checking .page::after {
  display: none !important;
}

body.landing-active {
  background: #fff !important;
  font-family: var(--font-sans);
  min-height: 100dvh;
  overflow-x: hidden;
  scrollbar-width: none;
}

body.landing-active::-webkit-scrollbar {
  display: none;
}

body.landing-active .page {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
}

body.landing-active .toast {
  bottom: auto;
  top: 1rem;
}

/* —— Header —— */
.otk-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.75rem;
  width: min(var(--otk-grid), calc(100% - (var(--otk-gutter) * 2)));
  margin: 0 auto;
  padding: 0.85rem 0 1.1rem;
}

.otk-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.otk-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: visible;
}

.otk-brand-mark-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.otk-brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.otk-nav {
  display: flex;
  gap: 1.15rem;
}

.otk-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
}

.otk-nav a:hover {
  color: var(--otk-blue);
}

/* —— Shell —— */
.landing-shell {
  width: min(var(--otk-grid), calc(100% - (var(--otk-gutter) * 2)));
  margin: 0 auto;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.landing-fold {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: visible;
  /* z-index детей не должен вылезать на FAQ */
  isolation: isolate;
  z-index: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* —— Hero grid (mobile: stacked) —— */
.landing-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow: visible;
}

.landing-left {
  min-width: 0;
  order: 1;
  margin-top: 5px;
}

.landing-form-box {
  order: 2; /* form above benefits on mobile for conversion */
  min-width: 0;
  background: var(--otk-card);
  border: 1px solid var(--otk-border);
  border-radius: 1.1rem;
  padding: 1.15rem 1.1rem 1rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 14px 36px rgba(15, 23, 42, 0.08);
}

/* Badge */
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--otk-blue-soft);
  color: var(--otk-blue);
  font-size: 0.78rem;
  font-weight: 600;
}

.landing-badge-spark {
  display: grid;
  place-items: center;
  width: 0.95rem;
  height: 0.95rem;
  color: var(--otk-blue);
}

.landing-badge-spark svg {
  width: 100%;
  height: 100%;
}

/* Title / lead */
.landing-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 7vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--otk-text);
  overflow-wrap: break-word;
  text-wrap: balance;
}

.landing-title .accent {
  color: var(--otk-blue);
}

.landing-lead {
  margin: 0 0 0.5rem;
  max-width: 36rem;
  font-size: clamp(0.88rem, 2.6vw, 0.92rem);
  line-height: 1.5;
  color: var(--otk-muted);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

/* Cat + video */
/* Cat sits ON the first benefit card — sibling above the card */
.landing-benefit-wrap {
  position: relative;
  z-index: 3;
  overflow: visible;
  margin-top: 7.25rem;
}

.landing-cat {
  position: absolute;
  left: 0.15rem;
  bottom: 100%;
  width: min(10rem, 48vw);
  z-index: 5;
  line-height: 0;
  pointer-events: none;
  transform: translateY(0.85rem);
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.16));
}

.landing-cat-note {
  position: absolute;
  left: 88%;
  top: 0;
  bottom: auto;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  white-space: normal;
  width: 9.5rem;
  max-width: none;
  transform: rotate(-8deg);
  z-index: 2;
  line-height: 1.15;
  text-align: left;
  pointer-events: none;
}

.landing-cat-arrow {
  position: absolute;
  left: 96%;
  top: 42%;
  bottom: auto;
  width: 3.4rem;
  height: auto;
  pointer-events: none;
  z-index: 2;
  transform: rotate(-18deg);
  line-height: 0;
}

.landing-cat-arrow img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-cat-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

.landing-video {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 auto 0.75rem;
  padding: 0.25rem 0.15rem 0.15rem;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  z-index: 5;
  order: -1;
}

.landing-video-ask {
  position: relative;
  top: -20px;
  margin: 0 0 1.1rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--otk-muted);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.landing-video-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.45rem 0.55rem;
}

.landing-video-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--otk-blue);
  flex: 0 0 auto;
}

.landing-video-arrow {
  display: block;
  flex: 0 0 auto;
  width: 2.75rem;
  height: auto;
  margin-top: -0.55rem;
  margin-right: -0.1rem;
  pointer-events: none;
  transform: rotate(-6deg);
  line-height: 0;
}

.landing-video-arrow img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-video-play {
  position: relative;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--otk-blue);
  color: #fff;
  display: grid;
  place-items: center;
  outline: 0.35rem solid rgba(0, 55, 255, 0.16);
  outline-offset: 5px;
  box-shadow: 0 10px 24px rgba(0, 55, 255, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}

.landing-video-rays {
  position: absolute;
  inset: -3.6rem;
  pointer-events: none;
}

.landing-video-rays i {
  position: absolute;
  left: calc(50% - 0.1rem);
  top: calc(50% - 0.48rem);
  width: 0.2rem;
  height: 0.95rem;
  border-radius: 0;
  background: var(--otk-blue);
  transform: rotate(var(--a)) translateY(-4.25rem);
}

.landing-video-btn:hover .landing-video-play {
  background: var(--otk-blue-hover);
  transform: scale(1.04);
}

.landing-video-play svg,
.landing-video-play-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  transform: none;
}

.landing-video-label {
  margin-top: 1.1rem;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  color: var(--otk-blue);
}

.landing-video-hint {
  margin: 0;
  max-width: 9.25rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px dashed #93a5ff;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--otk-text);
  text-align: left;
  flex: 0 0 auto;
}

/* Form */
.landing-form-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.1rem, 3.5vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.landing-form-sub {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--otk-muted);
}

.landing-form-checks {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.landing-form-checks li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--otk-text);
  line-height: 1.35;
}

.landing-form-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--otk-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

.auth-landing .label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.landing-phone-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.landing-phone-icon {
  position: absolute;
  left: 0.85rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--otk-muted-2);
  pointer-events: none;
  line-height: 0;
  z-index: 1;
}

.landing-phone-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-landing #phone.input,
.auth-landing #captcha-text.input {
  width: 100%;
  height: 2.85rem;
  margin-bottom: 0;
  padding: 0 0.9rem 0 2.55rem;
  border: 1px solid var(--otk-border);
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 2.85rem;
  background: #fff;
  box-sizing: border-box;
}

.auth-landing #captcha-text.input {
  padding-left: 0.9rem;
}

.auth-landing #phone.input:focus,
.auth-landing #captcha-text.input:focus {
  outline: none;
  border-color: #93a5ff;
  box-shadow: 0 0 0 3px rgba(0, 55, 255, 0.12);
}

.auth-landing .captcha-wrap {
  margin-bottom: 0.75rem;
}

.auth-landing .captcha-image {
  display: block;
  max-width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 0.45rem;
}

.landing-btn-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.95rem;
  margin: 0 0 0.85rem;
  border: none;
  border-radius: 0.8rem;
  background: var(--otk-blue);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.landing-btn-connect:hover {
  background: var(--otk-blue-hover);
}

.landing-btn-connect:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-landing .btn.btn-ghost {
  width: 100%;
  margin-bottom: 0.5rem;
}

.auth-landing .btn.btn-otp-len {
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  padding: 0.7rem;
}

.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.35rem;
}

.landing-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--otk-muted);
}

.landing-trust-item svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--otk-blue);
  flex-shrink: 0;
}

.auth-landing .hint {
  min-height: 1.1rem;
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
}

/* OTP */
.auth-landing .otp-shell {
  margin-bottom: 0.75rem;
}

.auth-landing .otp-track {
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
  height: auto;
  min-height: 3.5rem;
  padding: 0.55rem 0.7rem;
  box-sizing: border-box;
}

.auth-landing .otp-cell {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  height: 2.85rem;
  border: 1px solid var(--otk-border);
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  background: #fff;
}

.auth-landing .otp-shell.is-otp-6 .otp-track {
  gap: 0.28rem;
  padding: 0.5rem 0.55rem;
}

.auth-landing .otp-shell.is-otp-6 .otp-cell {
  height: 2.55rem;
  font-size: 1.05rem;
  border-radius: 0.55rem;
}

.landing-social {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--otk-border);
}

.landing-social-rating,
.landing-social-users {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--otk-muted);
}

.landing-stars {
  color: #f59e0b;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.landing-avatars {
  display: inline-flex;
}

.landing-avatar {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -0.4rem;
  background: linear-gradient(135deg, #93c5fd, #3b82f6);
}

.landing-avatar:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
}

.landing-avatar:nth-child(2) {
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
}

.landing-social strong {
  color: var(--otk-text);
  font-weight: 700;
}

/* Benefits — кот на первой карточке, видео рядом сверху */
.landing-benefits {
  order: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  position: relative;
  z-index: 2;
  margin: 0.35rem 0 1.25rem;
  padding-top: 0;
}

.landing-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 0.95rem;
  background: #fff;
  border: 1px solid var(--otk-border);
  border-radius: 0.9rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  position: relative;
  z-index: 1;
}

.landing-benefit--featured {
  overflow: visible;
  z-index: 0;
}

.landing-benefit-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: var(--otk-blue-soft);
  color: var(--otk-blue);
  display: grid;
  place-items: center;
}

.landing-benefit-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.landing-benefit-title {
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--otk-text);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.landing-benefit-title strong {
  color: var(--otk-blue);
  font-weight: 800;
}

.landing-benefit-desc {
  margin: 0;
  font-size: 0.75rem;
  color: var(--otk-muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* FAQ — чётко отделён от карточек */
.landing-section {
  position: relative;
  z-index: 0;
  margin-top: 0;
  padding: 1.35rem 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--otk-border);
  border-radius: 1rem;
}

.landing-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-section-lead {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  color: var(--otk-muted);
}

.landing-faq {
  display: grid;
  gap: 0.5rem;
}

.landing-faq-item {
  border: 1px solid var(--otk-border);
  border-radius: 0.75rem;
  background: #f9fafb;
  padding: 0.1rem 0.85rem;
}

.landing-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0;
  font-size: 0.9rem;
  font-weight: 700;
}

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

.landing-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--otk-muted);
  font-weight: 600;
}

.landing-faq-item[open] summary::after {
  content: "–";
}

.landing-faq-item p {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--otk-muted);
}

/* Hide unused legacy hooks safely */
.landing-demo-wrap[hidden],
.landing-how {
  display: none !important;
}

/* ═══════════════════════════════════════════
   TABLET 770–1199 — compact cat + video side-by-side
   ═══════════════════════════════════════════ */
@media (min-width: 770px) {
  .auth-landing {
    --otk-gutter: 1.35rem;
  }

  .landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(min(16.25rem, 100%), 21rem);
    column-gap: clamp(0.85rem, 2vw, 1.5rem);
    row-gap: 0.65rem;
    align-items: start;
  }

  .landing-left {
    order: unset;
    grid-column: 1;
    grid-row: 1;
  }

  /* form on the right, spans both rows */
  .landing-form-box {
    order: unset;
    grid-column: 2;
    grid-row-start: 1;
    grid-row-end: span 2;
    align-self: start;
    margin-top: 1.35rem;
    padding: 1.25rem 1.2rem 2.35rem;
    z-index: 4;
  }

  /* cat + cards under the title, beside the form */
  .landing-benefits {
    order: unset;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding-top: 9.75rem;
  }

  .landing-title {
    font-size: clamp(2rem, 3.4vw, 2.45rem);
  }

  .landing-lead {
    font-size: 0.94rem;
    margin-bottom: 0;
  }

  .landing-benefit-wrap {
    margin-top: 0;
  }

  .landing-benefit--featured {
    margin-top: 0;
  }

  .landing-cat {
    width: 8.25rem;
  }

  .landing-cat-note {
    left: 86%;
    top: 0;
    width: min(7.25rem, 22vw);
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  }

  .landing-cat-arrow {
    left: 94%;
    top: 42%;
    width: clamp(2.1rem, 3vw, 2.6rem);
  }

  /* Keep the same horizontal scene as desktop — just tighter */
  .landing-video {
    position: absolute;
    left: 44%;
    top: 0.35rem;
    margin: 0;
    order: unset;
    z-index: 5;
  }

  .landing-video-ask {
    top: -16px;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
  }

  .landing-video-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 0.45rem;
    max-width: none;
  }

  .landing-video-arrow {
    width: 2.35rem;
    margin-top: -0.45rem;
    margin-right: -0.05rem;
    transform: rotate(-6deg);
  }

  .landing-video-hint {
    max-width: 7.75rem;
    font-size: 0.72rem;
    padding: 0.4rem 0.5rem;
    text-align: left;
  }

  .landing-video-label {
    margin-top: 0.85rem;
    font-size: 1.05rem;
  }

  .landing-video-play {
    width: 3.25rem;
    height: 3.25rem;
  }

  .landing-benefit {
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem 0.85rem;
  }
}

/* Narrow tablet: keep cat + play scene, drop colliding decorations */
@media (min-width: 770px) and (max-width: 1048px) {
  .landing-benefits {
    padding-top: 8.25rem;
  }

  .landing-cat {
    width: 7.1rem;
  }

  .landing-cat-note,
  .landing-cat-arrow {
    display: none;
  }

  .landing-video {
    left: 38%;
    top: 0.2rem;
  }

  .landing-video-play {
    width: 3rem;
    height: 3rem;
  }

  .landing-video-arrow,
  .landing-video-hint {
    display: none;
  }

  .landing-video-label {
    font-size: 0.98rem;
    margin-top: 0.7rem;
  }

  .landing-video-row {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════
   NETBOOK / TABLET-WIDE 1024+ — Stretch
   ═══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .auth-landing {
    --otk-gutter: 1.75rem;
  }

  .otk-header {
    padding: 1rem 0 0.35rem;
  }

  .landing-hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(min(18.5rem, 100%), 22.5rem);
    column-gap: clamp(1.25rem, 2.2vw, 2rem);
    row-gap: 0.75rem;
  }

  .landing-title {
    font-size: clamp(2.25rem, 2.8vw, 2.75rem);
    margin-bottom: 0.9rem;
  }

  .landing-lead {
    font-size: 0.98rem;
    margin-bottom: 0;
  }

  .landing-form-box {
    margin-top: 1.5rem;
    padding: 1.4rem 1.35rem 2.75rem;
  }

  .landing-form-title {
    font-size: 1.3rem;
  }

  .landing-section {
    margin-top: 0;
    padding: 1.5rem 1.4rem 1.35rem;
    border-radius: 1.15rem;
  }
}

/* ═══════════════════════════════════════════
   DESKTOP 1200+ — cat + absolute video side-by-side
   ═══════════════════════════════════════════ */
@media (min-width: 1200px) {
  .landing-hero-grid {
    grid-template-columns: minmax(0, 1fr) 23rem;
    column-gap: 2.5rem;
    row-gap: 0.85rem;
  }

  .landing-title {
    font-size: 2.75rem;
    max-width: 14.5em;
  }

  .landing-lead {
    max-width: 34rem;
    font-size: 1rem;
  }

  .landing-fold {
    gap: 0.25rem;
  }

  .landing-benefits {
    margin: 1.15rem 0 0;
    gap: 0.85rem;
    padding-top: 11.25rem;
  }

  .landing-benefit-wrap {
    margin-top: 0;
    grid-column: auto;
    grid-row: auto;
  }

  .landing-benefits > .landing-benefit:nth-of-type(1),
  .landing-benefits > .landing-benefit:nth-of-type(2) {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  .landing-cat {
    width: 13rem;
  }

  .landing-cat-note {
    left: 88%;
    width: 10.5rem;
    font-size: 1.35rem;
  }

  .landing-cat-arrow {
    left: 96%;
    width: 3.4rem;
  }

  .landing-video {
    position: absolute;
    left: 50%;
    top: 1.4rem;
    margin: 0;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    max-width: none;
  }

  .landing-video-ask {
    top: -20px;
    margin-bottom: 1.1rem;
  }

  .landing-video-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    max-width: none;
    gap: 0.5rem 0.65rem;
  }

  .landing-video-arrow {
    width: 2.85rem;
    margin-top: -0.55rem;
    margin-right: -0.1rem;
    transform: rotate(-6deg);
  }

  .landing-video-hint {
    max-width: 9.25rem;
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
    text-align: left;
  }

  .landing-video-label {
    margin-top: 1.1rem;
    font-size: 1.2rem;
  }

  .landing-video-play {
    width: 3.75rem;
    height: 3.75rem;
  }

  .landing-benefit {
    flex-direction: row;
    align-items: flex-start;
    padding: 1rem 1rem;
  }
}

/* ═══════════════════════════════════════════
   SCALE 1440–1919
   ═══════════════════════════════════════════ */
@media (min-width: 1440px) {
  .auth-landing {
    --otk-scale: 1.05;
    --otk-gutter: 2rem;
  }
}

@media (min-width: 1600px) {
  .auth-landing {
    --otk-scale: 1.1;
  }
}

/* ═══════════════════════════════════════════
   SCALE CAPPED 1920+
   ═══════════════════════════════════════════ */
@media (min-width: 1920px) {
  .auth-landing {
    --otk-scale: 1.12;
  }
}

/* ═══════════════════════════════════════════
   DESKTOP PC (≥1200) — no page scroll, one viewport
   ═══════════════════════════════════════════ */
@media (min-width: 1200px) {
  body.landing-active {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  body.landing-active .page {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .auth-landing {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .otk-header {
    flex: 0 0 auto;
    padding: 0.65rem 0 0.35rem;
  }

  .landing-shell {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 0.75rem;
    gap: 0;
    overflow: hidden;
  }

  .landing-fold {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .landing-hero-grid {
    height: 100%;
    min-height: 0;
    align-content: start;
  }

  .landing-left {
    margin-top: 5px;
  }

  .landing-form-box {
    margin-top: 0.5rem;
    padding: 1.15rem 1.25rem 1.5rem;
    max-height: calc(100dvh - 4.5rem);
    overflow: auto;
  }

  .landing-benefits {
    margin-top: 0.5rem;
    padding-top: clamp(11.25rem, 26vh, 13rem);
  }
}

/* Short desktop viewports: allow scroll instead of clipping hero */
@media (min-width: 1200px) and (max-height: 760px) {
  body.landing-active,
  body.landing-active .page,
  .auth-landing {
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .landing-shell,
  .landing-fold {
    height: auto;
    overflow: visible;
  }

  .landing-form-box {
    max-height: none;
  }
}

/* Very small phones */
@media (max-width: 379px) {
  .landing-title {
    font-size: 1.55rem;
  }

  .landing-trust {
    gap: 0.4rem 0.55rem;
  }

  .landing-form-title {
    font-size: 1.15rem;
  }

  .landing-phone-wrap input,
  .landing-form-box .btn {
    font-size: 1rem;
  }

  .auth-landing .otp-track {
    gap: 0.3rem;
    padding: 0.45rem 0.5rem;
    min-height: 3.15rem;
  }

  .auth-landing .otp-cell {
    height: 2.45rem;
    font-size: 1.1rem;
  }

  .auth-landing .otp-shell.is-otp-6 .otp-track {
    gap: 0.18rem;
    padding: 0.4rem 0.35rem;
  }

  .auth-landing .otp-shell.is-otp-6 .otp-cell {
    height: 2.2rem;
    font-size: 0.95rem;
    border-radius: 0.45rem;
  }

  .auth-landing .btn.btn-otp-len {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
}

/* ═══════════════════════════════════════════
   MOBILE <770 — floating «Куда тыкать» widget
   ═══════════════════════════════════════════ */
@media (max-width: 769px) {
  /* fixed widget must not be clipped by landing shell */
  .auth-landing {
    overflow: visible;
  }

  .landing-video {
    position: fixed;
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    left: auto;
    top: auto;
    z-index: 60;
    margin: 0;
    padding: 0;
    order: 0;
    width: auto;
    max-width: none;
    animation: otk-widget-float 3.2s ease-in-out infinite;
  }

  .landing-video-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    max-width: none;
  }

  .landing-video-arrow,
  .landing-video-hint,
  .landing-video-label,
  .landing-video-rays {
    display: none !important;
  }

  .landing-video-btn {
    position: relative;
    align-items: flex-end;
    gap: 0.4rem;
    padding: 0.15rem;
    -webkit-tap-highlight-color: transparent;
  }

  .landing-video-ask {
    position: absolute;
    right: calc(100% + 0.45rem);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0.4rem 0.65rem;
    border-radius: 0.85rem;
    background: #fff;
    color: var(--otk-text);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.06),
      0 10px 28px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(0, 55, 255, 0.12);
    animation: otk-widget-bubble 2.4s ease-in-out infinite;
    pointer-events: none;
  }

  .landing-video-ask::after {
    content: "";
    position: absolute;
    right: -0.28rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    background: #fff;
    border-right: 1px solid rgba(0, 55, 255, 0.12);
    border-bottom: 1px solid rgba(0, 55, 255, 0.12);
    transform: translateY(-50%) rotate(-45deg);
  }

  .landing-video-play {
    width: 3.65rem;
    height: 3.65rem;
    outline: none;
    box-shadow:
      0 8px 22px rgba(0, 55, 255, 0.38),
      0 2px 6px rgba(15, 23, 42, 0.12);
  }

  .landing-video-play::before,
  .landing-video-play::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 55, 255, 0.45);
    animation: otk-widget-ripple 2.4s ease-out infinite;
    pointer-events: none;
  }

  .landing-video-play::after {
    animation-delay: 1.2s;
  }

  .landing-video-btn:hover .landing-video-play,
  .landing-video-btn:focus-visible .landing-video-play {
    background: var(--otk-blue-hover);
    transform: scale(1.06);
  }

  .landing-video-btn:active .landing-video-play {
    transform: scale(0.96);
  }

  .landing-video-btn:focus-visible {
    outline: none;
  }

  .landing-video-btn:focus-visible .landing-video-play {
    outline: 2px solid var(--otk-blue);
    outline-offset: 4px;
  }
}

@keyframes otk-widget-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.45rem);
  }
}

@keyframes otk-widget-ripple {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

@keyframes otk-widget-bubble {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(calc(-50% - 0.12rem)) scale(1.03);
  }
}

@media (max-width: 769px) and (prefers-reduced-motion: reduce) {
  .landing-video,
  .landing-video-ask,
  .landing-video-play::before,
  .landing-video-play::after {
    animation: none !important;
  }
}

/* Safe areas (notch / home indicator) */
@supports (padding: max(0px)) {
  .otk-header,
  .landing-shell {
    width: min(
      var(--otk-grid),
      calc(
        100% - max(var(--otk-gutter), env(safe-area-inset-left, 0px))
          - max(var(--otk-gutter), env(safe-area-inset-right, 0px))
      )
    );
  }

  .auth-landing {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
