/* Стиль: тёмные и светлые блоки, крупный Unbounded в заголовках, лаймовый акцент на кнопках.
   Палитра и шрифты взяты с сайта ii-dlya-nachinayushchih. Шрифты лежат на нашем сервере. */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/Unbounded.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #171b18;
  --ink-soft: #3d443e;
  --muted: #5e655f;
  --paper: #f4f6ef;
  --paper-2: #e9ede2;
  --white: #ffffff;
  --lime: #d9ff46;
  --lime-deep: #b8e21f;
  --green: #22d37a;
  --line: rgba(23, 27, 24, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Шапка */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  background: rgba(244, 246, 239, 0.92);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand-dot {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

nav a,
nav .link {
  margin-left: 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

nav a:hover,
nav .link:hover { opacity: 0.6; }

.pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white) !important;
}

.inline { display: inline; }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Заголовки */
h1,
h2,
h3 {
  font-family: "Unbounded", "Manrope", sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700;
}

h1 span,
.hero h1 span {
  display: block;
  color: var(--ink-soft);
}

h2 {
  margin: 10px 0 18px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
}

h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
}

.kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  max-width: 640px;
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--muted);
}

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

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover { background: var(--lime-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

.btn.disabled {
  background: var(--muted);
  cursor: default;
  transform: none;
}

.link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
}

/* Герой */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-card {
  position: relative;
  min-height: 380px;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 122, 0.35), transparent 60%),
    var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.card-tag {
  position: absolute;
  top: 26px;
  left: 28px;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.card-big {
  margin: 0 0 16px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
}

.card-meta {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.06em;
}

.card-foot {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Блоки */
.block {
  padding: 84px 0;
}

.block-dark,
.cta {
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  background: var(--ink);
  color: var(--white);
}

.block-dark h2,
.block-dark h3,
.cta h2 { color: var(--white); }

.block-dark .kicker,
.cta .kicker { color: var(--lime); }

.block-dark .lead,
.cta .lead { color: rgba(255, 255, 255, 0.7); }

.block-light {
  background: var(--paper-2);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.block-dark > *,
.block-light > * {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.block-dark { padding-top: 84px; padding-bottom: 84px; }

.grid-3 {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  grid-template-columns: repeat(3, 1fr);
}

.point {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}

.point span {
  display: block;
  margin-bottom: 18px;
  font-family: "Unbounded", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--lime);
}

.point p { margin: 0; color: rgba(255, 255, 255, 0.85); }

.outcome {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.2s ease;
}

.outcome:hover { transform: translateY(-2px); }

.outcome .num {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.outcome p {
  margin: 0;
  color: var(--muted);
}

/* Шаги */
.steps {
  display: grid;
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: "Unbounded", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Модули программы */
.modules {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.module {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: background 0.2s ease;
}

.module:hover { background: #e1e8d4; }

.module-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.module-num {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.module-label {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.module p {
  margin: 0 0 16px;
  color: var(--muted);
}

.module-lessons {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 15px;
}

.module-lessons li { margin-bottom: 4px; }

.soon {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

/* Тарифы */
.tariffs {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.card.featured {
  background: var(--ink);
  color: var(--white);
}

.card-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card.featured .card-kicker { color: var(--lime); }

.card.featured h3,
.card.featured .price { color: var(--white); }

.price {
  margin: 0 0 12px;
  font-family: "Unbounded", sans-serif;
  font-size: 30px;
  font-weight: 700;
}

.card-text {
  margin: 0 0 18px;
  color: var(--muted);
}

.card.featured .card-text { color: rgba(255, 255, 255, 0.75); }

.features {
  flex: 1;
  margin: 0 0 26px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.card.featured .features { color: rgba(255, 255, 255, 0.85); }

.features li { margin-bottom: 8px; }

.card .btn { align-self: flex-start; }

.card.featured .btn {
  background: var(--lime);
  color: var(--ink);
}

/* Безопасность */
.safety {
  display: grid;
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(2, 1fr);
}

.safety li {
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  color: rgba(255, 255, 255, 0.88);
}

/* Автор */
.author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

.author-badge {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--green);
  font-family: "Unbounded", sans-serif;
  font-size: 40px;
  font-weight: 700;
}

.author h2 { margin-top: 0; }

.author .kicker { margin-bottom: 14px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chips span {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  margin-top: 36px;
  max-width: 820px;
}

.faq details {
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Финальный призыв */
.cta {
  margin-top: 40px;
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: left;
}

.cta > * {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.cta .hero-actions { margin-top: 36px; }

/* Формы */
.narrow {
  max-width: 440px;
  padding-top: 40px;
}

.error {
  padding: 12px 16px;
  border-radius: 14px;
  background: #fbe9e4;
  color: #8a2b06;
}

form label {
  display: block;
  margin: 16px 0;
  font-weight: 700;
}

form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font: inherit;
}

form input:focus {
  outline: none;
  border-color: var(--ink);
}

/* Личный кабинет и урок */
.course-head { padding: 48px 0 24px; }

.modules-list {
  display: grid;
  gap: 20px;
  padding-bottom: 60px;
}

.module-block {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.module-block h2 {
  margin: 8px 0 14px;
  font-size: 22px;
}

.lessons {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lessons li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.lessons li.locked > span { color: var(--muted); }

.lessons a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.lessons a:hover { opacity: 0.6; }

.lesson {
  padding-top: 40px;
  padding-bottom: 60px;
}

.lesson h1 { font-size: clamp(28px, 4.4vw, 44px); }

.lesson > p:first-of-type a {
  color: var(--muted);
  text-decoration: none;
}

.content {
  max-width: 740px;
  margin-top: 24px;
}

.content h2 {
  margin: 40px 0 12px;
  font-size: 22px;
}

.content a { color: var(--ink); font-weight: 700; }

.content table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  background: var(--white);
  font-size: 15px;
}

.content th,
.content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.content th {
  background: var(--paper-2);
  color: var(--ink);
}

.content blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--lime);
  background: var(--white);
  border-radius: 0 14px 14px 0;
}

.content ol,
.content ul { padding-left: 22px; }

.next { margin-top: 40px; }

/* Подвал */
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

footer p { margin: 4px 0; }

footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* Планшет и телефон */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 36px 0 48px; }
  .hero-card { min-height: 300px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .safety { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  nav a:not(.pill) { display: none; }
  .block { padding: 60px 0; }
  .block-dark { padding-top: 60px; padding-bottom: 60px; }
  .grid-3,
  .steps { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; }
  .author-badge { width: 72px; height: 72px; font-size: 30px; }
  .card { padding: 26px; }
  .cta { padding-top: 64px; padding-bottom: 64px; }
}

/* Пользователям, которым важно уменьшить движение */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
