/* ============================================================
   MELIORIX SYSTEMS — lesson.css
   Лендинг уроку «Створи свій перший сайт і Telegram-бота з AI»
   Все селектори з префіксом .lsn- або всередині .lesson-page,
   щоб нічого не текло на інші сторінки сайту.
   ============================================================ */

.lesson-page { --lsn-gap: 24px; }

/* якорі не ховаються під фіксованою шапкою */
.lesson-page section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.lesson-page h1 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.5px; }
.lesson-page h2 { font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.4px; }
.lesson-page h3 { font-size: 20px; }

/* ---------- Шапка лендингу ---------- */
.lsn-nav .container { gap: 16px; }
.lsn-nav .nav-links { gap: 28px; }
.lsn-nav-cta { padding: 10px 22px; font-size: 14px; }
/* у .nav-links лежать <li> усередині <nav>, тож `ul { list-style:none }` з main.css
   до них не доходить — прибираємо маркери локально */
.lsn-nav .nav-links > li { list-style: none; }

/* ---------- Загальні атоми ---------- */
.lsn-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 100px;
  border: 1px solid var(--hairline);
  background: rgba(0,170,255,0.08);
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--text-primary);
  margin-bottom: 22px;
}
.lsn-eyebrow .lsn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(57,255,20,0.16);
}

/* акцентна врізка (цитата-висновок під блоком) */
.lsn-accent {
  position: relative;
  max-width: 780px;
  margin: 40px auto 0;
  padding: 24px 28px 24px 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(57,255,20,0.06), rgba(57,255,20,0.02));
  border: 1px solid rgba(57,255,20,0.22);
  color: var(--text-primary);
  font-size: 17px; line-height: 1.65;
}
.lsn-accent::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 3px; background: var(--accent-green);
}

/* нейтральна примітка */
.lsn-note {
  max-width: 780px; margin: 32px auto 0;
  padding: 18px 22px; border-radius: var(--radius);
  border: 1px solid var(--hairline); background: var(--glass);
  color: var(--text-muted); font-size: 15px; line-height: 1.6;
}
.lsn-note strong { color: var(--text-primary); font-weight: 600; }

.lsn-center { text-align: center; }
.lsn-cta-row { display: flex; justify-content: center; margin-top: 48px; }

/* ============================================================
   1. Перший екран
   ============================================================ */
.lsn-hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--nav-h) + var(--section-pad));
  padding-bottom: var(--section-pad);
}
.lsn-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lsn-aurora span {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: 0.35;
}
.lsn-aurora .a1 { width: 460px; height: 460px; top: -8%;  left: -6%;  background: #00AAFF; }
.lsn-aurora .a2 { width: 380px; height: 380px; top: 18%;  right: -6%; background: #39FF14; opacity: 0.22; }
.lsn-aurora .a3 { width: 340px; height: 340px; bottom: -12%; left: 42%; background: #0066cc; opacity: 0.3; }
.lsn-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,180,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,180,255,0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
}
.lsn-hero .container { position: relative; z-index: 2; }
.lsn-hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.lsn-hero h1 { margin-bottom: 22px; }
.lsn-lead {
  font-size: 18px; line-height: 1.65; color: var(--text-muted);
  max-width: 720px; margin: 0 auto;
}

/* два «що саме ти зробиш» — рівний ряд, без кривих */
.lsn-build {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 660px; margin: 34px auto 0;
}
.lsn-build-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--hairline); background: var(--glass);
  text-align: left;
}
.lsn-build-item i, .lsn-build-item svg { color: var(--accent-blue); flex-shrink: 0; }
.lsn-build-item b { display: block; font-size: 15px; font-weight: 600; }
.lsn-build-item span { display: block; font-size: 13px; color: var(--text-muted); }

/* ---------- Блок ціни + перемикач валюти ---------- */
.lsn-offer {
  max-width: 620px; margin: 44px auto 0;
  padding: 30px 28px 26px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 22%), var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 26px 56px -30px rgba(0,0,0,0.9);
}
.lsn-price-line {
  display: flex; align-items: baseline; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.lsn-price-old {
  font-size: 22px; font-weight: 600; color: var(--text-muted);
  text-decoration: line-through; text-decoration-thickness: 2px;
  text-decoration-color: rgba(107,130,168,0.75);
}
.lsn-price-now {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(42px, 6vw, 64px); line-height: 1;
  color: var(--accent-green);
  text-shadow: 0 0 42px rgba(57,255,20,0.28);
}
.lsn-cur {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 18px; flex-wrap: wrap;
}
.lsn-cur-label {
  width: 100%; text-align: center; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.lsn-cur button {
  padding: 7px 15px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  transition: color .25s, border-color .25s, background .25s;
}
.lsn-cur button:hover { color: var(--text-primary); border-color: var(--accent-blue); }
.lsn-cur button[aria-pressed="true"] {
  color: var(--accent-green); border-color: rgba(57,255,20,0.5);
  background: rgba(57,255,20,0.08);
}

.lsn-offer .btn-primary { width: 100%; justify-content: center; margin-top: 24px; }
/* .btn у main.css має white-space: nowrap — на вузьких екранах довга
   підпис із сумою вилазила за межі кнопки; тут дозволяємо перенос */
.lsn-offer .btn, .lsn-cta-row .btn { white-space: normal; text-align: center; line-height: 1.35; }
.lsn-under {
  margin-top: 14px; text-align: center;
  font-size: 14px; color: var(--text-muted);
}
.lsn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-size: 15px; font-weight: 600;
  color: var(--accent-blue); transition: gap .3s, color .3s;
}
.lsn-secondary:hover { gap: 14px; color: var(--accent-green); }

/* ============================================================
   2. Що тобі знадобиться — рівний ряд із 5 карток
   ============================================================ */
.lsn-need {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.lsn-need-item {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 18px; border-radius: var(--radius);
  border: 1px solid var(--hairline); background: var(--glass);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.lsn-need-item:hover { border-color: rgba(0,170,255,0.45); transform: translateY(-4px); }
.lsn-need-item .lsn-ic {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,170,255,0.1); color: var(--accent-blue);
}
.lsn-need-item b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.lsn-need-item span { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   3. Результат уроку — картки з телефонами
   ============================================================ */
.lsn-result-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--lsn-gap);
}
.lsn-result-card {
  display: flex; flex-direction: column;
  padding: 30px; border-radius: 16px;
  border: 1px solid var(--hairline); background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,0.85);
}
.lsn-result-card h3 { margin-bottom: 14px; line-height: 1.3; }
.lsn-result-card p { color: var(--text-muted); font-size: 15px; }
.lsn-result-card p + p { margin-top: 12px; }
.lsn-result-media { margin-top: auto; padding-top: 26px; display: flex; justify-content: center; }
.lsn-caption {
  margin-top: 18px; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--accent-green);
}

/* телефон */
.lsn-phone {
  position: relative;
  width: 236px; max-width: 100%;
  aspect-ratio: 9 / 18.5;
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(160deg, #17233b, #070c16);
  border: 1px solid rgba(120,180,255,0.22);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6) inset, 0 30px 60px -28px rgba(0,170,255,0.45);
}
.lsn-phone::before {
  content: ''; position: absolute; top: 17px; left: 50%;
  transform: translateX(-50%);
  width: 74px; height: 6px; border-radius: 6px;
  background: #05070d; z-index: 3;
}
.lsn-phone-screen {
  position: relative; height: 100%; border-radius: 26px;
  overflow: hidden; background: var(--bg-card);
}
.lsn-phone-screen video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* заглушка, доки відео не залито */
.lsn-phone-ph {
  position: absolute; inset: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 22px; text-align: center;
  color: var(--text-muted); font-size: 12.5px; line-height: 1.5;
  background:
    linear-gradient(180deg, rgba(0,170,255,0.07), rgba(57,255,20,0.05)),
    var(--bg-card);
}
.lsn-phone.is-empty .lsn-phone-ph { display: flex; }
.lsn-phone.is-empty video { visibility: hidden; }
.lsn-phone-ph i, .lsn-phone-ph svg { color: var(--accent-blue); }

/* третя картка — широка, з горизонтальною доріжкою кроків */
.lsn-result-wide { grid-column: 1 / -1; }
.lsn-flow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 28px;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden;
}
.lsn-flow-item {
  padding: 20px 18px;
  border-right: 1px solid var(--hairline);
  background: rgba(10,22,40,0.5);
}
.lsn-flow-item:last-child { border-right: none; }
.lsn-flow-item .lsn-flow-n {
  font-family: var(--font-display); font-weight: 800;
  font-size: 13px; letter-spacing: 1px; color: var(--accent-blue);
  margin-bottom: 8px;
}
.lsn-flow-item b { display: block; font-size: 15px; margin-bottom: 6px; }
.lsn-flow-item span { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   4. «Але я не програмую» — схема з 5 кроків
   ============================================================ */
.lsn-howtext {
  max-width: 780px; margin: 0 auto;
  color: var(--text-muted); font-size: 17px; line-height: 1.7; text-align: center;
}
.lsn-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-top: 44px;
}
.lsn-steps-item {
  position: relative;
  padding: 24px 18px; border-radius: var(--radius);
  border: 1px solid var(--hairline); background: var(--glass);
}
.lsn-steps-item .lsn-n {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: #03260a; background: var(--accent-green);
  margin-bottom: 14px;
}
.lsn-steps-item p { font-size: 14.5px; line-height: 1.55; }
/* з'єднувальна риска між кроками — рівний ряд */
.lsn-steps-item::after {
  content: ''; position: absolute; top: 40px; right: -16px;
  width: 16px; height: 1px; background: var(--hairline);
}
.lsn-steps-item:last-child::after { display: none; }

/* ============================================================
   5. Як проходить урок — три частини
   ============================================================ */
.lsn-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lsn-gap); }
.lsn-part {
  display: flex; flex-direction: column;
  padding: 30px; border-radius: 16px;
  border: 1px solid var(--hairline); background: var(--glass);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.lsn-part:hover { border-color: rgba(0,170,255,0.45); transform: translateY(-4px); }
.lsn-part-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent-blue); margin-bottom: 12px;
}
.lsn-part h3 { margin-bottom: 12px; line-height: 1.3; }
.lsn-part p { color: var(--text-muted); font-size: 15px; flex: 1; }
.lsn-part .lsn-part-res {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px; color: var(--text-primary);
}
.lsn-part .lsn-part-res b { color: var(--accent-green); font-weight: 700; }

/* ============================================================
   6. Кому підійде — 4 великі блоки 2×2
   ============================================================ */
.lsn-who { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lsn-gap); }
.lsn-who-item {
  position: relative; overflow: hidden;
  padding: 36px 34px; border-radius: 16px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0) 26%), var(--glass);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.lsn-who-item:hover { border-color: rgba(57,255,20,0.35); transform: translateY(-4px); }
.lsn-who-item .lsn-who-n {
  font-family: var(--font-display); font-weight: 800;
  font-size: 64px; line-height: 1;
  color: rgba(120,180,255,0.12);
  position: absolute; top: 18px; right: 26px;
}
.lsn-who-item h3 { margin-bottom: 14px; line-height: 1.3; padding-right: 76px; }
.lsn-who-item p { color: var(--text-muted); font-size: 15px; }

/* ============================================================
   7. Чого навчишся — список у два стовпці
   ============================================================ */
.lsn-learn {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  max-width: 960px; margin: 0 auto;
}
.lsn-learn li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--hairline); background: var(--glass);
  font-size: 15px; line-height: 1.55;
}
.lsn-learn li .lsn-tick {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(57,255,20,0.12); color: var(--accent-green);
  margin-top: 1px;
}

/* ============================================================
   8. Що входить у доступ
   ============================================================ */
.lsn-incl { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.lsn-incl li {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: var(--radius);
  border: 1px solid var(--hairline); background: var(--glass);
  font-size: 15.5px;
}
.lsn-incl li i, .lsn-incl li svg { color: var(--accent-blue); flex-shrink: 0; }

/* ============================================================
   9. Про команду
   ============================================================ */
.lsn-team { max-width: 820px; margin: 0 auto; text-align: center; }
.lsn-team p { color: var(--text-muted); font-size: 17px; line-height: 1.7; }
.lsn-tags {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 30px;
}
.lsn-tags span {
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--hairline); background: var(--glass);
  font-size: 14px; font-weight: 600; color: var(--text-primary);
}
.lsn-team-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 34px;
}
.lsn-team-stats div {
  padding: 24px 16px; border-radius: var(--radius);
  border: 1px solid var(--hairline); background: var(--glass);
}
.lsn-team-stats b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 40px; line-height: 1; color: var(--accent-green);
}
.lsn-team-stats span { display: block; margin-top: 10px; font-size: 14px; color: var(--text-muted); }

/* ============================================================
   10. Фінальна секція з ціною
   ============================================================ */
.lsn-pricing { background: linear-gradient(180deg, var(--bg-deep), var(--bg-surface)); }
.lsn-pricing .lsn-offer { margin-top: 36px; }

/* ============================================================
   11. FAQ — нативні <details>, доступні без JS
   ============================================================ */
.lsn-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.lsn-faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); overflow: hidden;
  transition: border-color .3s;
}
.lsn-faq details[open] { border-color: var(--accent-blue); }
.lsn-faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px;
  line-height: 1.4;
}
.lsn-faq summary::-webkit-details-marker { display: none; }
.lsn-faq summary::after {
  content: '+'; flex-shrink: 0;
  font-size: 24px; font-weight: 400; line-height: 1;
  color: var(--accent-blue); transition: transform .3s var(--ease);
}
.lsn-faq details[open] summary::after { transform: rotate(45deg); }
.lsn-faq summary:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -2px; }
.lsn-faq .lsn-faq-a { padding: 0 24px 22px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.lsn-faq .lsn-faq-a a { color: var(--accent-blue); text-decoration: underline; }

/* ============================================================
   Банер статусу оплати (?payment=success / cancel)
   ============================================================ */
.lsn-status {
  display: none;
  margin: 0 auto; max-width: 820px;
  padding: 22px 26px; border-radius: var(--radius);
  font-size: 15.5px; line-height: 1.65;
}
.lsn-status.show { display: block; }
.lsn-status.ok { border: 1px solid rgba(57,255,20,0.4); background: rgba(57,255,20,0.07); }
.lsn-status.warn { border: 1px solid rgba(0,170,255,0.4); background: rgba(0,170,255,0.07); }
.lsn-status b { display: block; margin-bottom: 6px; color: var(--text-primary); font-size: 17px; }
.lsn-status span { color: var(--text-muted); }
.lsn-status a { color: var(--accent-blue); text-decoration: underline; }
.lsn-status-wrap { display: none; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 0; }
.lsn-status-wrap.show { display: block; }

/* ============================================================
   Модальне вікно реєстрації
   ============================================================ */
.lsn-modal {
  /* вище cookie-банера (z-index 9000 у cookies.css), але нижче його ж
     вікна налаштувань (9500) — інакше банер перекриває кнопку оплати */
  position: fixed; inset: 0; z-index: 9200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(3,8,16,0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.lsn-modal.open { opacity: 1; visibility: visible; }
.lsn-modal-box {
  position: relative; width: 100%; max-width: 480px;
  padding: 36px 32px 32px; border-radius: 16px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 20%), #0A1628;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.95);
  transform: translateY(16px) scale(0.98);
  transition: transform .35s var(--ease);
  margin: auto;
}
.lsn-modal.open .lsn-modal-box { transform: translateY(0) scale(1); }
.lsn-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.lsn-modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.lsn-modal-box h2 { font-size: 24px; margin-bottom: 8px; }
.lsn-modal-sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 24px; }
.lsn-modal-sum {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 14px 18px; margin-bottom: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(57,255,20,0.28); background: rgba(57,255,20,0.06);
}
.lsn-modal-sum .k { font-size: 14px; color: var(--text-muted); }
.lsn-modal-sum .v {
  font-family: var(--font-display); font-weight: 800;
  font-size: 24px; color: var(--accent-green);
}
.lsn-modal .form-row { margin-bottom: 16px; }
.lsn-modal .form-row .lsn-err { display: none; margin-top: 6px; font-size: 13px; color: #ff6b78; }
.lsn-modal .form-row.invalid .lsn-err { display: block; }
.lsn-modal button[type="submit"] { width: 100%; justify-content: center; margin-top: 6px; }
.lsn-modal-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.lsn-modal-alert {
  display: none; margin-top: 16px; padding: 14px 16px;
  border-radius: 8px; border: 1px solid rgba(255,107,120,0.4);
  background: rgba(255,107,120,0.08); color: #ffb3ba;
  font-size: 13.5px; line-height: 1.6;
}
.lsn-modal-alert.show { display: block; }
body.lsn-locked { overflow: hidden; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
  .lsn-need { grid-template-columns: repeat(3, 1fr); }
  .lsn-steps { grid-template-columns: repeat(3, 1fr); }
  .lsn-steps-item::after { display: none; }
  .lsn-parts { grid-template-columns: 1fr; }
  .lsn-flow { grid-template-columns: 1fr 1fr; }
  .lsn-flow-item:nth-child(2n) { border-right: none; }
  .lsn-flow-item:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}

@media (max-width: 768px) {
  .lsn-build { grid-template-columns: 1fr; max-width: 420px; }
  .lsn-need { grid-template-columns: 1fr 1fr; }
  .lsn-result-grid { grid-template-columns: 1fr; }
  .lsn-who { grid-template-columns: 1fr; }
  .lsn-who-item { padding: 28px 24px; }
  .lsn-who-item h3 { padding-right: 56px; }
  .lsn-who-item .lsn-who-n { font-size: 48px; top: 14px; right: 18px; }
  .lsn-learn { grid-template-columns: 1fr; }
  .lsn-team-stats { grid-template-columns: 1fr; }
  .lsn-offer { padding: 26px 20px 22px; }
  .lsn-howtext { font-size: 16px; }
  .lsn-accent { padding: 20px 22px 20px 26px; font-size: 16px; }
  /* шапка: логотип + компактна CTA + бургер мають вміститися в один рядок */
  .lsn-nav .nav-right { gap: 10px; }
  .lsn-nav-cta { padding: 9px 14px; font-size: 13px; }
  .lsn-modal { padding: 16px; align-items: flex-start; }
  .lsn-modal-box { padding: 30px 22px 26px; }
  /* мобільне відео ніколи не йде на весь екран — фіксована рамка */
  .lsn-phone { width: 210px; }
}

@media (max-width: 480px) {
  /* main.css робить .btn на всю ширину — шапкову CTA це ламає */
  .lsn-nav-cta { width: auto; padding: 9px 12px; font-size: 12.5px; }
  .lsn-nav .container { gap: 8px; }
}

@media (max-width: 520px) {
  .lsn-need { grid-template-columns: 1fr; }
  .lsn-steps { grid-template-columns: 1fr; }
  .lsn-flow { grid-template-columns: 1fr; }
  .lsn-flow-item { border-right: none; border-bottom: 1px solid var(--hairline); }
  .lsn-flow-item:last-child { border-bottom: none; }
  .lsn-cur button { flex: 1 1 calc(50% - 6px); }
}

@media (prefers-reduced-motion: reduce) {
  .lsn-modal, .lsn-modal-box { transition: none; }
}
