/* ==========================================================================
   Adaptivo — лендинг. Дизайн «azulejo»: тёплый фон приложения + синий испанской
   плитки как акцент. Мобильный приоритет. Только светлая тема.
   ========================================================================== */
:root {
  --bg: #FAF7F2;
  --ink: #141210;
  --azulejo: #1B4B6B;
  --azulejo-soft: #DCE8EF;
  --sun: #E8A33D;
  --muted: #7A736B;
  --card: #FFFFFF;
  --line: #EAE3DA;

  --display: 'Bitter', Georgia, 'Times New Roman', serif;
  --body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1080px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--azulejo); }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: clamp(48px, 8vw, 96px) 0; }
.section-soft { background: var(--azulejo-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--body); font-weight: 600; font-size: 1.02rem;
  padding: 15px 26px; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--sun); color: #2B1D06; box-shadow: 0 2px 0 #c88420; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-azulejo { background: var(--azulejo); color: #fff; }
.btn-azulejo:hover { background: #16405c; }
.btn-ghost { background: transparent; color: var(--azulejo); border: 1.5px solid var(--azulejo); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

:focus-visible { outline: 3px solid var(--azulejo); outline-offset: 2px; border-radius: 4px; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20; background: rgba(250,247,242,.9);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--azulejo); }
.top-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang-switch button { font-family: var(--body); font-size: .82rem; padding: 6px 11px; border: none; background: transparent; color: var(--muted); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--azulejo); color: #fff; }
.top .continue { font-size: .9rem; font-weight: 600; }

/* ---------- hero ---------- */
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-sub { font-size: 1.18rem; color: var(--muted); margin: .6em 0 1.4em; max-width: 32ch; }
.hero-cta-note { font-size: .92rem; color: var(--muted); margin-top: .8em; }
.hero-eyebrow { display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--azulejo); background: var(--azulejo-soft); padding: 5px 12px; border-radius: 20px; margin-bottom: 18px; }

/* интерактивная карточка урока */
.mini {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 12px 40px -18px rgba(27,75,107,.35);
  animation: rise .5s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mini { animation: none; } }
.mini-word { display: flex; align-items: center; gap: 12px; }
.mini-word .es { font-family: var(--display); font-weight: 700; font-size: 2.1rem; }
.mini-tr { font-family: var(--mono); font-size: 1rem; color: var(--muted); margin: 6px 0 2px; }
.mini-tr b { color: var(--sun); font-weight: 700; }
.mini-q { font-size: .95rem; color: var(--muted); margin: 16px 0 10px; }
.mini-opts { display: grid; gap: 9px; }
.mini-opt {
  font-family: var(--body); font-size: 1.02rem; text-align: left; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--ink); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.mini-opt:hover { border-color: var(--azulejo); }
.mini-opt.correct { border-color: #2E7D5B; background: #E7F3EC; color: #1c5c3f; font-weight: 600; }
.mini-opt.wrong { border-color: #C0392B; background: #FBEAE8; }
.mini-opt:disabled { cursor: default; }
.mini-done { text-align: center; }
.mini-check { width: 46px; height: 46px; border-radius: 50%; background: #2E7D5B; color: #fff; display: grid; place-items: center; font-size: 1.4rem; margin: 0 auto 12px; }
.mini-done p { font-size: 1.02rem; }
.speaker {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--azulejo-soft);
  background: var(--azulejo-soft); color: var(--azulejo); font-size: 1.15rem; cursor: pointer; display: grid; place-items: center;
}
.speaker:hover { background: #cde0ea; }

/* ---------- проблема (секция 2) ---------- */
.prob-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.prob { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.prob b { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 8px; }
.prob p { margin: 0; color: var(--muted); }

/* ---------- как работает (секция 3) ---------- */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
.step { display: flex; gap: 16px; }
.step .n {
  flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--azulejo); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center;
}
.step b { font-family: var(--display); font-size: 1.1rem; }
.step p { margin: 4px 0 0; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.shot { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 10px; }
.shot img { width: 100%; border-radius: 12px; display: block; }
.shot figcaption { text-align: center; font-size: .85rem; color: var(--muted); padding: 8px 4px 4px; }

/* ---------- что внутри (секция 4) ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; margin: 8px 0 26px; }
.fact { text-align: center; }
.fact b { font-family: var(--display); font-size: 2rem; color: var(--azulejo); display: block; line-height: 1; }
.fact span { font-size: .9rem; color: var(--muted); }
.inside-notes { max-width: 62ch; margin: 0 auto; }
.inside-notes code, .es-inline { font-family: var(--mono); background: var(--azulejo-soft); color: var(--azulejo); padding: 1px 7px; border-radius: 6px; font-size: .92em; }

/* ---------- обещание (секция 5) ---------- */
.promise { max-width: 60ch; margin: 0 auto; }
.situations { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.situation { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; }
.situation svg { width: 40px; height: 40px; stroke: var(--azulejo); fill: none; stroke-width: 1.6; }
.situation span { font-size: .82rem; color: var(--muted); }

/* ---------- таблица отличий (секция 6) ---------- */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 26px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { font-family: var(--display); font-size: 1rem; }
table.compare th:last-child, table.compare td:last-child { background: var(--azulejo-soft); }
table.compare thead th:last-child { color: var(--azulejo); }
table.compare td:first-child { color: var(--muted); font-weight: 600; }
table.compare td:last-child { font-weight: 600; }

/* ---------- автор (секция 7) ---------- */
.author { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.author-photo { width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--azulejo-soft); border: 1px solid var(--line); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: var(--azulejo); padding: 20px; }
.author-ph svg { width: 64px; height: 64px; stroke: var(--azulejo); fill: none; stroke-width: 1.4; opacity: .8; }
.author-ph small { display: block; margin-top: 10px; font-size: .8rem; color: var(--muted); }

/* ---------- цена (секция 8) ---------- */
.price-card { max-width: 520px; margin: 26px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px; text-align: center; box-shadow: 0 16px 50px -24px rgba(27,75,107,.4); }
.price-num { font-family: var(--display); font-weight: 700; font-size: 3rem; color: var(--ink); line-height: 1; }
.price-old { color: var(--muted); text-decoration: line-through; margin-left: 8px; font-size: 1.2rem; }
.price-founder { font-size: .92rem; color: var(--sun); font-weight: 600; }
.price-list { list-style: none; padding: 0; margin: 22px 0; text-align: left; display: inline-block; }
.price-list li { padding: 7px 0 7px 30px; position: relative; }
.price-list li::before { content: '✓'; position: absolute; left: 0; color: #2E7D5B; font-weight: 700; }
.price-free { font-family: var(--display); font-size: 1.3rem; margin-bottom: 4px; }
.seats { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.seats b { color: var(--azulejo); }

/* ---------- FAQ (секция 9) ---------- */
.faq { max-width: 720px; margin: 26px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--azulejo); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* ---------- финальный CTA + waitlist ---------- */
.final { text-align: center; }
.final h2 { max-width: 20ch; margin: 0 auto .8em; }
.waitlist { max-width: 520px; margin: 40px auto 0; padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.waitlist p { margin: 0 0 12px; font-size: .95rem; }
.waitlist form { display: flex; gap: 8px; flex-wrap: wrap; }
.waitlist input { flex: 1; min-width: 180px; font-family: var(--body); font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); }
.waitlist .ok { color: #2E7D5B; font-weight: 600; }

/* ---------- футер ---------- */
footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; text-align: center; }

/* ---------- адаптив ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-text { order: 1; } .hero-card { order: 2; }
  .prob-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; text-align: center; }
  .author-photo { max-width: 260px; margin: 0 auto; }
}
