/* The author's tokens and sizes: 08_Тексты_и_сборка/00_Дизайн_и_Tilda.md and 10_Токены.css. */
:root {
  --paper: #fff;
  --ink: #161d45;
  --secondary: #6a7196;
  --accent: #3a3fd0;
  --line: #dfe2f3;
  --lavender: #eef0fc;
  --canvas: #f6f7fe;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    21px/1.6 'Segoe UI',
    system-ui,
    -apple-system,
    sans-serif;
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
p,
ol,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 700;
}
h2 {
  font-size: 34px;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
.wrap {
  width: min(1232px, calc(100% - 48px));
  margin-inline: auto;
}
.measure {
  max-width: 860px;
}
.small {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.5;
}
.label,
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--secondary);
}
.eyebrow {
  color: var(--accent);
}
.lead {
  font-size: 23px;
  line-height: 1.5;
}

.top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand-note {
  color: var(--secondary);
  font-size: 14px;
}
.top-link,
.arrow {
  margin-left: auto;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.arrow {
  margin: 0;
  display: inline-block;
}
.arrow .narrow {
  display: none;
}
.footer {
  margin-top: 32px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 22px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 12px;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary {
  background: #fff;
  color: var(--accent);
}

/* Landing */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 416px;
  grid-template-areas: 'text photo' 'action photo';
  grid-template-rows: auto 1fr;
  gap: 24px 64px;
  width: min(1280px, calc(100% - 24px));
  margin: 16px auto 0;
  padding: 34px 24px 56px;
  background: var(--lavender);
  border-radius: 16px;
}
.hero-text {
  grid-area: text;
}
.hero-photo {
  grid-area: photo;
}
.hero-action {
  grid-area: action;
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 580px;
}
.hero h1 {
  margin: 32px 0 20px;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.12;
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--accent);
}
.hero .button {
  min-width: 450px;
  justify-content: flex-start;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 416 / 555;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}
.hero-photo figcaption {
  margin-top: 16px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.5;
}
.accent-line {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  padding-top: 72px;
}
.split h2 {
  font-size: 44px;
}
.split p + p {
  margin-top: 16px;
}
.example {
  padding-top: 56px;
}
.example dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0 24px;
}
.example dt {
  color: var(--accent);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
}
.example dd {
  color: var(--secondary);
  font-size: 18px;
}
.course {
  padding-top: 64px;
}
.course h2 {
  font-size: 44px;
  margin-bottom: 28px;
}
.course-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.course-list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 5fr) minmax(0, 6fr);
  gap: 16px;
  padding: 20px 24px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.course-list span {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}
.course-list h3 {
  font-size: 25px;
}
.course-list p {
  font-size: 18px;
}
.how {
  padding-top: 64px;
}
.how h2 {
  margin-bottom: 16px;
}
.how p + p {
  margin-top: 16px;
}
.closing {
  display: grid;
  justify-items: start;
  gap: 16px;
  width: min(1280px, calc(100% - 24px));
  margin: 72px auto 0;
  padding: 32px 24px;
  background: var(--lavender);
  border-radius: 16px;
}
.closing:not(.invite) h2 {
  font-size: 56px;
}
.closing .button {
  min-width: min(450px, 100%);
}
.notice-dialog {
  max-width: min(460px, calc(100% - 32px));
  padding: 32px 24px 24px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
}
.notice-dialog::backdrop {
  background: rgb(22 29 69 / 50%);
}
.notice-dialog p {
  margin: 12px 0 20px;
  font-size: 18px;
}
.notice-dialog h2 {
  font-size: 26px;
}
.notice-dialog .button {
  width: 100%;
}
.close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--secondary);
  font-size: 26px;
  cursor: pointer;
}

/* Lesson */
.course-name {
  margin: 28px 0 12px;
  font-size: 26px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 70px;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: var(--lavender);
  color: var(--secondary);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.step b {
  display: block;
  font-size: 14px;
}
.step span {
  font-weight: 600;
}
.step[aria-current] {
  background: var(--accent);
  color: #fff;
}
.step .lock {
  position: absolute;
  top: 10px;
  right: 8px;
}
.hint {
  margin-top: 8px;
  color: var(--secondary);
  font-size: 14px;
}
.lock-notice:empty {
  display: none;
}
.lock-notice {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--lavender);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 18px;
}
.wrap > .eyebrow {
  margin-top: 28px;
}
.lesson-title {
  margin: 12px 0 16px;
  font-size: clamp(34px, 4.6vw, 58px);
}
.lesson-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 48px;
  margin: 32px 0 56px;
}
.player {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--lavender);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.cover {
  display: grid;
  grid-template-columns: 60% 40%;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}
.cover-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 7% 8%;
}
.cover small {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.cover strong {
  margin-top: 8%;
  font-size: clamp(22px, 3.2vw, 44px);
  line-height: 1.15;
}
.play {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  font-size: 18px;
  font-weight: 700;
}
.play i {
  position: relative;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
}
.play i::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 23px;
  border-style: solid;
  border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent #fff;
}
.aside h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.aside p {
  font-size: 18px;
}
.more {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.more .arrow {
  margin-top: 16px;
}
.practice {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.practice > h2 {
  margin: 8px 0 20px;
}
.practice-list {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.practice-list li {
  position: relative;
  padding-left: 40px;
  counter-increment: step;
}
.practice-list li::before {
  content: counter(step) '.';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.reflect {
  margin: 44px 0;
}
.reflect::before {
  content: '';
  display: block;
  width: 64px;
  height: 5px;
  margin-bottom: 24px;
  border-radius: 3px;
  background: var(--accent);
}
.reflect h2 {
  margin-bottom: 12px;
}
.practice > .eyebrow + h2 {
  margin-bottom: 10px;
}
.practice h2 a {
  color: inherit;
}

@media (max-width: 899px) {
  body {
    font-size: 18px;
    line-height: 1.6;
  }
  h2,
  .split h2,
  .course h2 {
    font-size: 28px;
  }
  .wrap {
    width: min(100% - 48px, 760px);
  }
  .lead {
    font-size: 18px;
  }
  .brand {
    font-size: 23px;
  }
  .button {
    width: 100%;
    font-size: 16px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'text' 'photo' 'action';
    grid-template-rows: none;
    gap: 16px;
    padding: 16px 12px 24px;
  }
  .hero h1 {
    margin: 12px 0;
    font-size: clamp(32px, 10.4vw, 56px);
  }
  .hero .button {
    min-width: 0;
    justify-content: center;
  }
  .hero-photo img {
    aspect-ratio: 342 / 228;
    object-position: center 12%;
  }
  .hero-photo figcaption {
    display: none;
  }
  .hero-action {
    max-width: none;
  }
  .hero-action .button {
    width: 100%;
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 56px;
  }
  .example dt {
    font-size: 28px;
  }
  .course-list li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 16px;
  }
  .course-list h3 {
    font-size: 19px;
  }
  .course-list p {
    grid-column: 2;
    font-size: 16px;
  }
  .course-list span {
    font-size: 18px;
  }
  .closing {
    margin-top: 48px;
    padding: 24px 12px;
  }
  .closing:not(.invite) h2 {
    font-size: 38px;
  }
  .step {
    min-height: 64px;
    padding: 8px 6px;
    font-size: 12px;
  }
  .step .lock {
    top: 8px;
    right: 6px;
  }
  .lesson-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 24px 0 32px;
  }
  .cover-text {
    padding: 6%;
  }
  .cover small {
    font-size: 11px;
  }
  .cover strong {
    font-size: clamp(16px, 5.2vw, 30px);
  }
  .play span {
    display: none;
  }
  .play i {
    width: 44px;
    height: 44px;
  }
  .play i::after {
    top: 13px;
    left: 17px;
    border-width: 9px 0 9px 14px;
  }
  .aside > h2,
  .more h2,
  .more p {
    display: none;
  }
  .aside > p {
    padding-left: 16px;
    border-left: 4px solid var(--accent);
    color: var(--secondary);
  }
  .more {
    margin-top: 24px;
    padding-top: 0;
    border: 0;
  }
  .arrow .wide {
    display: none;
  }
  .arrow .narrow {
    display: inline;
  }
  .top-link {
    font-size: 14px;
    text-align: right;
  }
  .top:has(.top-link) .brand-note {
    display: none;
  }
  /* The phone mockups keep the early link after the player, not in the header. */
  a.top-link {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
