/* ============================================================================
   extra.css — дополнение к оригинальному site.css
   Стили для разметки актуального app.min.js (v49), которой нет в site.css.
   Написано в оригинальной дизайн-системе: тёплая «бумага» #F4F3EE,
   hairline-разделители var(--line), единственный акцент — plasma lime.
   Подключается ПОСЛЕ site.css.
   ========================================================================== */

:root {
  --border: #E1DDD2; /* используется инлайн-стилями app.min.js */
}

/* ===== Header: CTA и бургер ============================================== */
.top__cta-desktop { white-space: nowrap; }

.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-input);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--t-hover) var(--ease-standard);
}
.burger:hover { border-color: var(--ink); }
.burger span {
  display: block; width: 18px; height: 2px;
  background: var(--ink);
  transition: transform var(--t-modal) var(--ease-standard), opacity var(--t-hover);
}
.burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Мобильное меню (drawer) ============================================ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(11, 13, 10, .45);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-modal) var(--ease-standard);
}
.drawer-overlay--open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(360px, 88vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform var(--t-modal) var(--ease-standard);
}
.drawer--open { transform: translateX(0); }

.drawer__head {
  height: 64px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__close {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-input);
  font-size: 15px; line-height: 1; color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t-hover) var(--ease-standard);
}
.drawer__close:hover { border-color: var(--ink); }

.drawer__nav { display: flex; flex-direction: column; padding: 8px 20px; }
.drawer__nav a {
  padding: 15px 0;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color var(--t-hover);
}
.drawer__nav a:hover { color: var(--muted); }
.drawer__nav a:last-child { border-bottom: 0; }

.drawer__foot {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.drawer__phone {
  font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.drawer__cta { width: 100%; justify-content: center; }

/* ===== Первый экран: колонки и eyebrow ==================================== */
.hero__left, .hero__right { min-width: 0; }

.hero__eyebrow { flex-wrap: wrap; row-gap: 6px; }
.hero__eyebrow-sep { color: var(--muted-2); }
.hero__eyebrow-proof { color: var(--muted); text-transform: none; letter-spacing: .02em; }
.hero__eyebrow-proof b { color: var(--ink); font-weight: 500; }

.hero__lede--second { margin-top: 12px; font-size: 15px; color: var(--muted-2); }

/* ===== Первый экран: карточка формы ======================================= */
.hero-card {
  margin-top: 32px;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
}
.hero-card__title {
  margin: 0 0 16px;
  font-size: 16px; font-weight: 500; line-height: 1.45; letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-card__row { display: flex; gap: 10px; }
.hero-card__input {
  flex: 1; min-width: 180px;
  height: 48px; padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  font: inherit; font-size: 15px; color: var(--ink);
  outline: none;
}
.hero-card__input:focus { border-color: var(--ink); }
.hero-card__input:disabled { opacity: .55; cursor: default; }
.hero-card__submit {
  height: 48px; padding: 0 22px;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background var(--t-hover) var(--ease-standard), transform var(--t-hover);
}
.hero-card__submit:hover:not(:disabled) { background: var(--ink-2); }
.hero-card__submit:active:not(:disabled) { transform: translateY(1px); }
.hero-card__submit:disabled { opacity: .55; cursor: default; }
.hero-card__submit .arr { transition: transform .2s; display: inline-block; }
.hero-card__submit:hover:not(:disabled) .arr { transform: translateX(3px); }

.hero-card__agree {
  margin-top: 14px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; line-height: 1.5; color: var(--muted);
  cursor: pointer;
}
.hero-card__agree input { margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.hero-card__agree a { color: var(--ink); }

.hero-card__err { margin-top: 12px; color: var(--danger); font-size: 13px; line-height: 1.4; }

.hero-card__perks {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted-2);
}
.hero-card__perks-sep { color: var(--line-2); }

/* Состояние «заявка принята» */
.hero-card--sent { text-align: center; padding: 40px 24px; }
.hero-card__ok {
  width: 48px; height: 48px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 50%;
  font-size: 22px; line-height: 1;
}
.hero-card__ok-title { margin: 0 0 6px; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.hero-card__ok-sub { margin: 0; color: var(--muted); font-size: 14px; }

/* Мета-полоса под первым экраном */
@media (min-width: 1101px) {
  .hero__meta--4 { grid-template-columns: repeat(4, 1fr); }
}
.hero__meta-sub { font-size: 12px; line-height: 1.4; color: var(--muted-2); }

/* ===== Гарантии: крупный блок ============================================= */
.guarantee-hero {
  margin-top: 40px;
  max-width: 860px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 40px;
}
.guarantee-hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
}
.guarantee-hero__tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 242, 78, .25);
}
.guarantee-hero__h {
  margin: 20px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500; line-height: 1.06; letter-spacing: -0.03em;
  text-wrap: balance;
}
.guarantee-hero__mk {
  background: var(--accent); color: var(--accent-ink);
  padding: 0 .08em .02em;
  border-radius: var(--r-marker);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.guarantee-hero__p {
  margin: 16px 0 0; max-width: 62ch;
  color: var(--muted); font-size: 16px; line-height: 1.55;
}

/* ===== Живая демонстрация (видео) ========================================= */
.live-demo__card {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-product);
  overflow: hidden;
  background: var(--ink);
}
.live-demo__player {
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  outline: none;
}
.live-demo__player:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.live-demo__poster-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(720px 340px at 74% 18%, rgba(198, 242, 78, .13), transparent 62%),
    linear-gradient(165deg, #171B21 0%, #0B0D10 68%);
}
.live-demo__play {
  position: absolute; left: 50%; top: 50%;
  width: 84px; height: 84px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  padding-left: 5px; /* оптическая компенсация треугольника */
  background: var(--accent); color: var(--accent-ink);
  border-radius: 50%;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .4);
  transition: transform var(--t-modal) var(--ease-standard);
}
.live-demo__player:hover .live-demo__play { transform: translate(-50%, -50%) scale(1.06); }
.live-demo__meta {
  position: absolute; top: 16px; left: 16px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(11, 13, 10, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
}
.live-demo__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 242, 78, .25);
}
.live-demo__caption {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  max-width: 62ch;
  color: rgba(255, 255, 255, .88);
  font-size: 14px; line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}
.live-demo__iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
.live-demo__steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
}
.live-demo__steps > div {
  padding: 16px 18px 18px;
  border-right: 1px solid var(--line);
  transition: background var(--t-hover) var(--ease-standard);
  outline: none;
}
.live-demo__steps > div:last-child { border-right: 0; }
.live-demo__steps > div:hover { background: var(--bg); }
.live-demo__steps > div:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.live-demo__step-n { font-family: var(--f-mono); font-size: 12px; }
.live-demo__steps p {
  margin: 8px 0 0;
  font-size: 13px; line-height: 1.45; color: var(--muted);
}

/* Ошибка в общей форме (цвет и размер заданы инлайн) */
.form__err { margin-top: 4px; }

/* ===== Адаптив ============================================================= */
@media (max-width: 1100px) {
  .live-demo__steps { grid-template-columns: repeat(3, 1fr); }
  .live-demo__steps > div { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .top__cta-desktop { display: none; }
  .burger { display: flex; }

  .hero-card { padding: 20px; }
  .hero-card__row { flex-direction: column; }
  .hero-card__input { width: 100%; }
  .hero-card__submit { width: 100%; justify-content: center; }

  .guarantee-hero { padding: 24px; }

  .live-demo__card { border-radius: var(--r-card); }
  .live-demo__play { width: 64px; height: 64px; }
  .live-demo__caption { font-size: 12.5px; left: 14px; right: 14px; bottom: 12px; }
  .live-demo__steps { grid-template-columns: 1fr; }
  .live-demo__steps > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .live-demo__steps > div:last-child { border-bottom: 0; }
}


/* Updated sales copy and expense calculator. */
.profit-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:40px}
.copy-note{font-size:13px;line-height:1.6;color:var(--muted);max-width:90ch;margin:20px 0 0}
.court-intro{max-width:80ch;margin:0 0 40px}
.case--review{grid-column:1/-1}.case--review .case__q{font-size:clamp(20px,2vw,28px);max-width:65ch}
.roi__lbl{gap:14px}.roi__lbl b{flex-shrink:0}
.roi__input{width:100%;min-width:0;border:1px solid var(--line-2);background:var(--bg);border-radius:8px;padding:12px;font:inherit;color:var(--ink)}
.roi__input:focus{outline:2px solid var(--ink);outline-offset:2px}
.roi__details summary{cursor:pointer;font-size:14px}.roi__details-fields{display:flex;flex-direction:column;gap:20px;padding-top:20px}
.roi__out--updated{grid-template-rows:repeat(4,minmax(100px,1fr))}
@media(max-width:640px){.roi__controls{padding:20px}.roi__lbl{align-items:flex-start}.roi__big{font-size:clamp(25px,8vw,32px)}.court-intro{margin-bottom:28px}.profit-cards{grid-template-columns:1fr}}


/* Full-width two-line hero heading and supplied product screenshot. */
.hero--airy .hero__grid{column-gap:48px;row-gap:40px;align-items:start}
.hero__heading{grid-column:1/-1;min-width:0;container-type:inline-size}
.hero--airy .hero__h{margin-top:24px;font-size:clamp(18px,6cqi,82px);line-height:1.08;max-width:none;text-wrap:initial}
.hero__title-line{display:block;white-space:nowrap}
.hero__left>.hero__lede:first-child{margin-top:0}
.hero-product{margin:0;min-width:0}
.hero-product__link{display:block;position:relative;border-radius:0;overflow:visible;background:var(--bg)}
.hero-product__link:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.hero-product img{display:block;width:100%;height:auto}
@media(max-width:640px){.hero--airy .hero__grid{row-gap:28px}.hero--airy .hero__h{margin-top:20px}}

/* Blend the screenshot background into the page without altering the image. */
.hero-product__link::after{content:"";position:absolute;inset:-1px;pointer-events:none;background:linear-gradient(to right,var(--bg) 0%,transparent 4%,transparent 96%,var(--bg) 100%),linear-gradient(to bottom,var(--bg) 0%,transparent 4%,transparent 96%,var(--bg) 100%)}
