/* Образование для себя — общие стили сайта */

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora.woff2") format("woff2"), url("../fonts/lora.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic.woff2") format("woff2"), url("../fonts/lora-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: optional;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2"), url("../fonts/inter-regular.woff") format("woff");
  font-weight: 400;
  font-display: optional;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-medium.woff2") format("woff2"), url("../fonts/inter-medium.woff") format("woff");
  font-weight: 500;
  font-display: optional;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff2") format("woff2"), url("../fonts/inter-semibold.woff") format("woff");
  font-weight: 600;
  font-display: optional;
}

:root {
  /* Цвета. Три направления = три цвета книг. */
  --paper: #eef2ec;
  --sheet: #ffffff;
  --ink: #13201b;
  --muted: #53605a;
  --line: #d0d8cf;

  --med: #0e6e60;
  --med-2: #188a7b;
  --med-3: #0a4f45;
  --med-t: #d9e9e2;
  --edu: #3a40b4;
  --edu-2: #5459c6;
  --edu-t: #e1e3f6;
  --ind: #e3a52e;
  --ind-t: #f7e8c2;

  --cream: #f8f3e7;
  --gold: #ecd08a;

  --focus: #3a40b4;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  /* едва заметное бумажное зерно */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .12 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

::selection { background: var(--ind); color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--sheet);
  padding: 10px 14px;
}

.narrow-only { display: none; }

/* ---------- Шапка ---------- */

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.24rem;
  line-height: 1;
  white-space: nowrap;
}
.brand__mark {
  flex: none;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 26px;
  border-bottom: 3px solid var(--ink);
  padding-inline: 2px;
}
.brand__mark i {
  display: block;
  width: 6px;
  border-radius: 1.5px 1.5px 0 0;
}
.brand__mark i:nth-child(1) { height: 19px; background: var(--med); }
.brand__mark i:nth-child(2) { height: 23px; background: var(--edu); }
.brand__mark i:nth-child(3) { height: 17px; background: var(--ind); rotate: -9deg; transform-origin: bottom right; margin-left: 3px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  font-size: 0.95rem;
}
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:not(.btn) {
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.2s;
}
.nav a:not(.btn):hover { background-size: 100% 1.5px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: 600 0.98rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, translate 0.18s, box-shadow 0.18s;
}
.btn:hover {
  background: var(--med-3);
  border-color: var(--med-3);
  translate: 0 -2px;
  box-shadow: 0 10px 18px -10px rgba(19, 32, 27, 0.6);
}
.btn:active { translate: 0 0; box-shadow: none; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--cream { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--cream:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--small { min-height: 42px; padding: 8px 20px; font-size: 0.92rem; }
.btn--wide { width: 100%; }

/* ---------- Значки направлений ---------- */

.sign {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Первый экран: ниша с книгами ---------- */

.hero { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 110px); }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.05rem, 4.3vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.05;
}
.hero h1 .keep { white-space: nowrap; }
.hero__lead {
  margin-top: 28px;
  max-width: 33em;
  font-size: 1.14rem;
  color: var(--muted);
}
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.shelf { min-width: 0; padding-inline: 20px; }
.niche {
  position: relative;
  padding: clamp(64px, 9vw, 104px) clamp(14px, 2.6vw, 30px) 0;
  border-radius: min(200px, 44vw) min(200px, 44vw) 0 0;
  background:
    radial-gradient(60% 46% at 50% 24%, rgba(227, 165, 46, 0.42), rgba(227, 165, 46, 0) 70%),
    linear-gradient(180deg, #e1eae1 0%, #c9d8cf 100%);
  box-shadow: inset 0 0 0 1px rgba(19, 32, 27, 0.06), inset 0 -60px 60px -50px rgba(19, 32, 27, 0.22);
}
.shelf__books {
  --k: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.shelf__books li { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; }
.shelf__books li:last-child { margin-left: calc(var(--h) * 0.108 * var(--k)); }

.shelf__board {
  position: relative;
  height: 15px;
  margin-inline: -20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2b3d36 0, var(--ink) 40%);
  box-shadow: 0 26px 30px -18px rgba(19, 32, 27, 0.55);
}

.book {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(var(--h, 330px) * var(--k));
  padding: 58px 0 40px;
  border-radius: 4px 4px 1px 1px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0) 24%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.3) 100%),
    var(--c);
  color: var(--on, var(--cream));
  text-decoration: none;
  box-shadow: 12px 0 16px -10px rgba(19, 32, 27, 0.5);
  transition: translate 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
  animation: book-in 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  animation-delay: calc(120ms + var(--i) * 80ms);
}
.book::before,
.book::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-block: 1.5px solid var(--foil, var(--gold));
  opacity: 0.9;
}
.book::before { top: 42px; }
.book::after { bottom: 22px; }
.book .sign { position: absolute; top: 16px; font-size: 15px; color: var(--foil, var(--gold)); }
.book__title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 600 clamp(0.84rem, 1.42vw, 1.1rem) / 1.1 var(--serif);
  letter-spacing: 0.015em;
  white-space: nowrap;
}
.book:hover,
.book:focus-visible { translate: 0 -18px; }

.book--med { --c: var(--med); }
.book--med2 { --c: var(--med-2); }
.book--med3 { --c: var(--med-3); }
.book--edu { --c: var(--edu); }
.book--edu2 { --c: var(--edu-2); }
.book--ind { --c: var(--ind); --on: var(--ink); --foil: #6f4c06; }
.shelf__books li:last-child .book { rotate: -6.2deg; transform-origin: bottom right; }

@keyframes book-in {
  from { opacity: 0; translate: 0 -34px; }
  to { opacity: 1; translate: 0 0; }
}

.shelf__note {
  margin-top: 30px;
  min-height: 3.1em;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}
.shelf__note b { color: var(--ink); font: 600 1.08rem/1.3 var(--serif); }

/* ---------- Разделы ---------- */

.block { padding-block: clamp(56px, 8vw, 112px); }
.block--tight { padding-top: 0; }
.block__title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -0.012em; }
.block__lead { margin-top: 16px; max-width: 38em; font-size: 1.08rem; color: var(--muted); }

/* ---------- Каталог: обложки ---------- */

.catalog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.legend { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--t);
  color: var(--d);
  font-size: 0.93rem;
  font-weight: 500;
}
.legend .sign { font-size: 16px; }
.legend li:nth-child(1) { --t: var(--med-t); --d: var(--med-3); }
.legend li:nth-child(2) { --t: var(--edu-t); --d: #2a2f8f; }
.legend li:nth-child(3) { --t: var(--ind-t); --d: #6a4806; }

.books {
  list-style: none;
  margin: clamp(36px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
}
.books__item { min-width: 0; display: flex; flex-direction: column; }
.books__tag { margin-top: 30px; color: var(--muted); font-size: 0.99rem; flex: 1; }
.books__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}
.books__meta b { font: 600 1.32rem/1 var(--serif); color: var(--ink); white-space: nowrap; }

/* Книга-обложка */

.tome {
  --e: 1px;
  container-type: inline-size;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 3px 10px 10px 3px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0, rgba(0, 0, 0, 0.04) 2.4%, rgba(255, 255, 255, 0.26) 3.8%, rgba(255, 255, 255, 0) 7%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, 0.16)),
    var(--c);
  color: var(--on, var(--cream));
  text-decoration: none;
  /* торец страниц и тень */
  box-shadow:
    calc(2 * var(--e)) calc(2 * var(--e)) 0 #fbfbf7, calc(3 * var(--e)) calc(3 * var(--e)) 0 #c9cfc6,
    calc(5 * var(--e)) calc(5 * var(--e)) 0 #fbfbf7, calc(6 * var(--e)) calc(6 * var(--e)) 0 #c9cfc6,
    calc(8 * var(--e)) calc(8 * var(--e)) 0 #fbfbf7, calc(9 * var(--e)) calc(9 * var(--e)) 0 #b9c0b6,
    16px 26px 34px -14px rgba(19, 32, 27, 0.45);
  transition: translate 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), rotate 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.28s;
}
a.tome:hover,
a.tome:focus-visible {
  translate: 0 -10px;
  rotate: -1.6deg;
  box-shadow:
    calc(2 * var(--e)) calc(2 * var(--e)) 0 #fbfbf7, calc(3 * var(--e)) calc(3 * var(--e)) 0 #c9cfc6,
    calc(5 * var(--e)) calc(5 * var(--e)) 0 #fbfbf7, calc(6 * var(--e)) calc(6 * var(--e)) 0 #c9cfc6,
    calc(8 * var(--e)) calc(8 * var(--e)) 0 #fbfbf7, calc(9 * var(--e)) calc(9 * var(--e)) 0 #b9c0b6,
    22px 44px 44px -18px rgba(19, 32, 27, 0.5);
}
.tome__in {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8.5cqw 8.5cqw 7.5cqw 12cqw;
}
.tome__dir {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  font: 500 4.5cqw/1.2 var(--sans);
  color: var(--hot);
}
.tome__dir .sign { font-size: 5cqw; }
.tome__art { flex: 1; min-height: 0; width: 100%; margin-block: 3cqw; }
.tome__title { font: 600 10.2cqw/1.04 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.tome__pub {
  margin-top: 5.5cqw;
  padding-top: 3.6cqw;
  border-top: 1px solid var(--hot);
  font: 400 3.7cqw/1.2 var(--sans);
  opacity: 0.92;
}

.tome--med { --c: var(--med); --art: rgba(248, 243, 231, 0.78); --hot: var(--gold); }
.tome--med2 { --c: var(--med-2); --art: rgba(248, 243, 231, 0.82); --hot: #f6e3ad; }
.tome--med3 { --c: var(--med-3); --art: rgba(248, 243, 231, 0.72); --hot: var(--gold); }
.tome--edu { --c: var(--edu); --art: rgba(248, 243, 231, 0.78); --hot: var(--gold); }
.tome--edu2 { --c: var(--edu-2); --art: rgba(248, 243, 231, 0.84); --hot: #f6e3ad; }
.tome--ind { --c: var(--ind); --on: var(--ink); --art: rgba(19, 32, 27, 0.72); --hot: #5a3c04; }

.art { fill: none; stroke: var(--art); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .f { fill: var(--art); stroke: none; }
.art .soft { opacity: 0.45; }
.art .softer { opacity: 0.24; }
.art .hot { fill: var(--hot); stroke: none; }
.art .hot-line { stroke: var(--hot); stroke-width: 3; }

/* ---------- Манифест ---------- */

.idea {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 70% at 88% 0%, rgba(24, 138, 123, 0.34), rgba(24, 138, 123, 0) 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(58, 64, 180, 0.3), rgba(58, 64, 180, 0) 70%),
    var(--ink);
  color: var(--cream);
  --focus: #fff;
}
.idea__quote {
  font: 500 clamp(2.1rem, 5.4vw, 4.6rem) / 1.04 var(--serif);
  letter-spacing: -0.02em;
}
.idea__quote span { display: block; }
.idea__quote span:first-child { color: #8fa39b; }
.idea__text { margin-top: 34px; max-width: 36em; color: #c3cdc7; font-size: 1.12rem; }
.idea__cols {
  margin-top: clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.idea__cols div { border-top: 1px solid #3a4c45; padding-top: 22px; }
.idea__cols .sign { display: block; font-size: 22px; color: var(--c); margin-bottom: 16px; }
.idea__cols h3 { font-size: 1.42rem; }
.idea__cols p { margin-top: 10px; color: #c3cdc7; font-size: 0.98rem; }
.idea__cols div:nth-child(1) { --c: #4fc0ae; }
.idea__cols div:nth-child(2) { --c: #9da1f2; }
.idea__cols div:nth-child(3) { --c: var(--ind); }

/* ---------- Как это устроено ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: clamp(36px, 5vw, 60px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.steps li { counter-increment: step; position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.steps li::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c, var(--med));
}
.steps li::before {
  content: counter(step);
  display: block;
  font: italic 500 4.4rem/0.9 var(--serif);
  color: var(--c, var(--med));
  margin-bottom: 18px;
}
.steps li:nth-child(2) { --c: var(--med-2); }
.steps li:nth-child(3) { --c: var(--edu); }
.steps li:nth-child(4) { --c: #c98a12; }
.steps h3 { font-size: 1.3rem; }
.steps p { margin-top: 8px; font-size: 0.97rem; color: var(--muted); }

/* ---------- Вопросы ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font: 600 1.22rem/1.25 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: rotate 0.2s, background-color 0.2s;
}
.faq summary:hover::after { background-color: var(--med-t); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 24px; max-width: 40em; color: var(--muted); }

/* ---------- Призыв в конце ---------- */

.last { padding-bottom: clamp(48px, 7vw, 96px); }
.last__in {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 28px;
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(227, 165, 46, 0.4), rgba(227, 165, 46, 0) 70%),
    var(--med-3);
  color: var(--cream);
  --focus: #fff;
}
.last h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 500; max-width: 15em; letter-spacing: -0.01em; }

/* ---------- Подвал ---------- */

.foot { background: var(--ink); color: #b9c4be; --focus: #fff; font-size: 0.94rem; }
.foot__in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-block: 56px;
}
.foot__name { font: 600 1.4rem/1.2 var(--serif); color: var(--cream); }
.foot__slogan { margin-top: 12px; max-width: 22em; font: italic 400 1.05rem/1.45 var(--serif); }
.foot h2 { font: 600 0.94rem/1.3 var(--sans); color: var(--cream); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot__base { border-top: 1px solid #2e3f39; padding-block: 20px; font-size: 0.86rem; }

/* ---------- Страница курса ---------- */

.chero { background: var(--t); --focus: var(--ink); }
.chero--med { --t: var(--med-t); --c: var(--med); --d: var(--med-3); }
.chero--edu { --t: var(--edu-t); --c: var(--edu); --d: #2a2f8f; }
.chero--ind { --t: var(--ind-t); --c: var(--ind); --d: #6a4806; }
.chero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 27vw, 330px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 64px) clamp(44px, 6vw, 80px);
}
.crumbs { display: inline-flex; align-items: center; gap: 8px; font-size: 0.93rem; color: var(--d); font-weight: 500; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs .sign { font-size: 15px; }
.chero h1 {
  margin-top: 22px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.03;
}
.chero__tag { margin-top: 22px; max-width: 30em; font-size: 1.18rem; color: #33413b; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  margin: 38px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(19, 32, 27, 0.22);
}
.facts dt { font-size: 0.88rem; color: #47554f; }
.facts dd { margin: 3px 0 0; font: 600 1.22rem/1.25 var(--serif); }
.chero .tome { rotate: 3deg; margin-right: 12px; }

.course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-block: clamp(44px, 6vw, 80px);
}
.course__main > section + section { margin-top: clamp(44px, 5vw, 68px); }
.course h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 500; letter-spacing: -0.01em; }
.course__note {
  border-radius: 14px;
  background: var(--t);
  padding: 20px 24px;
  max-width: 40em;
  font: italic 400 1.14rem/1.5 var(--serif);
}

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; max-width: 42em; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 5px var(--t);
}

.program { list-style: none; counter-reset: mod; margin: 24px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.program li {
  counter-increment: mod;
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 4px 12px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.program li::before {
  content: counter(mod);
  grid-row: span 2;
  font: italic 500 2.3rem/1 var(--serif);
  color: var(--num, var(--c));
}
.program h3 { font-size: 1.24rem; }
.program p { grid-column: 2; font-size: 0.97rem; color: var(--muted); max-width: 40em; }

.course__project {
  margin-top: 20px;
  max-width: 40em;
  padding: 26px 28px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.06rem;
}

.buy {
  position: sticky;
  top: 24px;
  background: var(--sheet);
  border-radius: 18px;
  padding: 34px 28px 26px;
  box-shadow: 0 1px 0 rgba(19, 32, 27, 0.06), 0 30px 50px -30px rgba(19, 32, 27, 0.4);
}
.buy::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  width: 54px;
  height: 7px;
  border-radius: 0 0 4px 4px;
  background: var(--c);
}
.buy__price { font: 600 2.7rem/1 var(--serif); letter-spacing: -0.01em; }
.buy__sub { margin-top: 10px; font-size: 0.94rem; color: var(--muted); }
.buy h2 { font: 600 0.96rem/1.3 var(--sans); letter-spacing: 0; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.buy ul { list-style: none; margin: 12px 0 26px; padding: 0; display: grid; gap: 9px; font-size: 0.96rem; }
.buy li { padding-left: 22px; position: relative; }
.buy li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.buy__more { display: block; margin-top: 16px; text-align: center; font-size: 0.93rem; text-underline-offset: 4px; }

.course--med { --c: var(--med); --t: var(--med-t); }
.course--edu { --c: var(--edu); --t: var(--edu-t); }
.course--ind { --c: var(--ind); --t: var(--ind-t); --num: #9a6a0a; }

.others { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }

/* ---------- Заявка ---------- */

.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 56px) clamp(56px, 8vw, 110px);
}
.order h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -0.015em; }
.order__lead { margin-top: 16px; color: var(--muted); max-width: 30em; font-size: 1.08rem; }
.order h2 { font-size: 1.5rem; margin-bottom: 18px; }

.pick { border: 0; margin: 36px 0 0; padding: 0; min-width: 0; }
.pick legend { font: 600 1.5rem/1.2 var(--serif); padding: 0; margin-bottom: 14px; }
.pick__item {
  display: grid;
  grid-template-columns: 22px 8px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 12px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.15s;
}
.pick__item:hover { background: rgba(255, 255, 255, 0.6); }
.pick__item:has(input:checked) { background: #fff; }
.pick__item input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.pick__spine { width: 8px; height: 38px; border-radius: 2px 2px 0 0; background: var(--c); }
.pick__name { font-weight: 500; }
.pick__name small { display: block; font-size: 0.87rem; font-weight: 400; color: var(--muted); }
.pick__price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pick__sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid var(--ink);
  padding: 18px 12px 0;
  font-weight: 600;
}
.pick__sum output { font: 600 2.2rem/1 var(--serif); }

.form {
  background: var(--sheet);
  border-radius: 18px;
  padding: clamp(22px, 3.4vw, 38px);
  box-shadow: 0 1px 0 rgba(19, 32, 27, 0.06), 0 30px 50px -30px rgba(19, 32, 27, 0.4);
}
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 0.93rem; font-weight: 500; margin-bottom: 7px; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #a9b4ad;
  border-radius: 10px;
  background: #fbfcfa;
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color 0.15s, background-color 0.15s;
}
.field input:hover,
.field textarea:hover { border-color: var(--ink); }
.field input:focus,
.field textarea:focus { background: #fff; border-color: var(--ink); }
.field textarea { min-height: 100px; resize: vertical; }
.agree { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 0.92rem; margin-bottom: 24px; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.agree a { text-underline-offset: 3px; }

.status { margin-top: 18px; font-size: 0.96rem; }
.status:empty { display: none; }
.status--bad { color: #a3261a; font-weight: 500; }
.status--ok { border-left: 4px solid var(--med); padding-left: 14px; }
.status pre {
  margin: 12px 0 0;
  padding: 14px;
  background: var(--paper);
  border-radius: 10px;
  font: 400 0.9rem/1.5 var(--sans);
  white-space: pre-wrap;
}

/* ---------- Простая текстовая страница ---------- */

.plain { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 120px); max-width: 760px; }
.plain h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 500; }
.plain p { margin-top: 18px; color: var(--muted); }
.plain ul { margin: 18px 0 0; padding-left: 20px; }
.plain .btn { margin-top: 30px; }
.legal-page { max-width: 820px; }
.legal-page h1 { margin-top: 18px; }
.legal-page section { margin-top: 38px; }
.legal-page section h2 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); }
.legal-page .legal-status { padding: 18px 20px; border-radius: 14px; background: #fff2de; color: #69461a; }
.legal-page .legal-version { font-size: .9rem; }
.order-context { margin: 28px 0; padding: 24px 28px; border: 1px solid #d6e4e8; border-radius: 18px; background: #f3f8f8; }
.order-context h2 { margin: 0; font-size: 1.45rem; }

/* ---------- Узкие экраны ---------- */

@media (max-width: 980px) {
  .nav a:not(.btn):nth-child(2) { display: none; }
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .shelf { width: 100%; max-width: 540px; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .course { grid-template-columns: minmax(0, 1fr); }
  .buy { position: relative; top: 0; order: -1; }
  .order { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__about { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .top__in { min-height: 66px; gap: 12px; }
  .brand { font-size: 1.04rem; gap: 9px; white-space: nowrap; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .nav a:not(.btn) { display: none; }
  .shelf { padding-inline: 12px; }
  .shelf__board { margin-inline: -12px; }
  .shelf__books { --k: 0.8; gap: 2px; }
  .book { padding: 50px 0 34px; }
  .book__title { font-size: 0.82rem; }
  .book::before { top: 36px; }
  .book::after { bottom: 18px; }
  .book .sign { top: 14px; font-size: 13px; }
  .books { grid-template-columns: minmax(0, 1fr); }
  .books__item {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: 28px;
  }
  .books__item .tome { grid-row: span 2; align-self: start; --e: 0.6px; }
  .books__tag { margin-top: 0; font-size: 0.93rem; }
  .books__meta { flex-direction: column; gap: 6px; }
  .idea__cols { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::before { font-size: 3.4rem; }
  .chero__in { grid-template-columns: minmax(0, 1fr); }
  .chero .tome { width: min(62%, 240px); margin: 6px auto 12px; }
  .program li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .program li::before { font-size: 1.8rem; }
  .last__in { border-radius: 20px; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .brand { white-space: normal; }
  .hero h1 .keep { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book { animation: none; }
  .book, .tome, .btn, .nav a, .faq summary::after { transition: none; }
}

/* Новая оболочка: светлая композиция, зелёные акценты и карточки программ. */
:root {
  --paper: #f7f6f2;
  --ink: #102d23;
  --med: #1f6449;
  --med-2: #347960;
  --med-3: #174734;
  --med-t: #e5ede5;
  --edu: #486883;
  --edu-2: #5b7890;
  --edu-t: #e8eef2;
  --ind: #b77730;
  --ind-t: #f4e9d9;
  --line: #dedfd7;
  --wrap: 1360px;
}
body { background-image: none; }
.top { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.top__in { min-height: 72px; }
.brand { align-items: center; letter-spacing: -.035em; }
.brand__mark { border-bottom-color: var(--ink); }
.brand__mark i:nth-child(1), .brand__mark i:nth-child(2) { background: var(--med-3); }
.brand__mark i:nth-child(3) { background: #a3b786; }
.btn { border-radius: 13px; }
.block { padding-block: clamp(48px, 6vw, 86px); }
.block__title { color: var(--ink); font-weight: 600; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding-block: clamp(54px, 7vw, 98px) clamp(64px, 8vw, 112px);
  background: radial-gradient(ellipse at 75% 15%, #dae7d9 0, transparent 36%),
    radial-gradient(ellipse at 0 95%, #f5ede3 0, transparent 42%), #f9f8f4;
}
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid #dbe7d8; border-radius: 50%; right: -200px; top: -150px; pointer-events: none; }
.hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.hero h1 { max-width: 11em; font-size: clamp(2.8rem, 5.2vw, 5.2rem); line-height: .99; font-weight: 500; letter-spacing: -.055em; }
.hero h1 .keep { white-space: normal; color: var(--med-3); }
.hero__lead { font-size: clamp(1.08rem, 1.4vw, 1.28rem); line-height: 1.55; max-width: 34em; }
.hero__note { color: var(--muted); font-size: .86rem; margin-top: 20px; }
.hero__features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: center; min-width: 0; }
.feature-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 310px; padding: 20px 16px; border: 1px solid rgba(27,65,49,.13); border-radius: 18px; background: linear-gradient(150deg,#fff 35%,#f1e6dd); color: var(--ink); text-decoration: none; box-shadow: 0 22px 50px -40px #1a3d2d; transition: transform .2s, box-shadow .2s; }
.feature-card:nth-child(2) { margin-top: 58px; }
.feature-card:nth-child(3) { margin-top: 116px; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -30px #1a3d2d; }
.feature-card--ind { background: linear-gradient(150deg,#fff 35%,#dce9e2); }
.feature-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #e5ede5; color: var(--med-3); }
.feature-card__icon .sign { width: 22px; height: 22px; }
.feature-card--ind .feature-card__icon { background: #e2eddf; }
.feature-card__type { margin-top: 38px; color: var(--med-3); font-size: .73rem; line-height: 1.2; }
.feature-card strong { margin-top: 8px; font: 600 clamp(1rem,1.5vw,1.5rem)/1.16 var(--serif); }
.feature-card__text { margin-top: 10px; color: var(--muted); font-size: .77rem; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feature-card__arrow { display: grid; place-items: center; width: 32px; height: 32px; margin-top: auto; border-radius: 50%; background: var(--med-3); color: #fff; font-size: 1.1rem; }
.catalog__head { align-items: end; }
.catalog__all { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 24px; color: var(--med-3); font-weight: 600; text-underline-offset: 4px; }
.books { gap: 20px; }
.books__item { padding: 9px 9px 17px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 18px 32px -31px #173e2d; }
.books__item .tome { border-radius: 12px; }
.books__tag { margin: 15px 9px 0; font-size: .89rem; line-height: 1.45; }
.books__meta { margin: 14px 9px 0; padding: 12px 0 0; font-size: .84rem; }
.books__meta b { font-size: 1.1rem; }
.books__link { margin: 16px 9px 0; color: var(--med-3); font-weight: 600; font-size: .9rem; text-underline-offset: 4px; }
.legend li { border-radius: 999px; }
.chero { background: linear-gradient(135deg,var(--t),#f9f8f4 65%); }
.chero h1 { letter-spacing: -.045em; }
.course__main, .buy { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.course__main { padding: clamp(20px,3vw,40px); }
.buy { padding: clamp(20px,2vw,28px); }
.program li { border-top-color: var(--line); }
.foot { background: var(--med-3); }

.catalog-page { padding-block: clamp(44px,6vw,78px) 100px; }
.catalog-page__eyebrow { text-transform: uppercase; letter-spacing: .14em; color: var(--med-3); font-size: .78rem; font-weight: 600; }
.catalog-page__intro h1 { margin-top: 8px; font-size: clamp(2.8rem,6vw,5rem); letter-spacing: -.055em; }
.catalog-page__intro > p:last-child { max-width: 42em; margin-top: 15px; color: var(--muted); }
.catalog-tools { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; margin-top: 34px; }
.catalog-tools label { font-weight: 600; font-size: .92rem; }
.catalog-tools input { width: 100%; max-width: 680px; min-height: 52px; padding: 10px 17px; border: 1px solid #cbd6cc; border-radius: 13px; background: #fff; font: inherit; color: var(--ink); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.catalog-filters button { min-height: 43px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 500 .87rem/1.3 var(--sans); cursor: pointer; }
.catalog-filters button[aria-pressed="true"] { background: var(--med-3); color: #fff; border-color: var(--med-3); }
.catalog-count { margin: 24px 0 12px; color: var(--muted); font-size: .92rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.catalog-card[hidden], .catalog-empty[hidden] { display: none; }
.catalog-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.catalog-card__cover { display: flex; align-items: flex-end; justify-content: space-between; min-height: 148px; padding: 21px; background: radial-gradient(circle at 75% 35%,#aac9b4,transparent 38%),linear-gradient(130deg,#174734,#377457); color: #fff; text-decoration: none; }
.catalog-card__cover--edu { background: radial-gradient(circle at 75% 35%,#b9cada,transparent 38%),linear-gradient(130deg,#304e68,#6b8799); }
.catalog-card__cover--ind { background: radial-gradient(circle at 75% 35%,#e4d0ab,transparent 38%),linear-gradient(130deg,#726342,#a28c58); }
.catalog-card__cover .sign { width: 64px; height: 64px; opacity: .9; stroke-width: 1.5; }
.catalog-card__cover > span:last-child { font-size: .78rem; opacity: .9; }
.catalog-card__body { display: flex; flex-direction: column; min-height: 255px; padding: 18px 21px 20px; }
.catalog-card__type { color: var(--med-3); font-size: .77rem; font-weight: 600; }
.catalog-card h2 { margin-top: 5px; font-size: 1.36rem; }
.catalog-card h2 a { text-decoration: none; }
.catalog-card h2 a:hover, .catalog-card__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.catalog-card__body > p:not(.catalog-card__type) { margin-top: 10px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.catalog-card__body > p.catalog-card__price { margin-top: 14px; color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.catalog-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; font-size: .83rem; }
.catalog-card__foot span { color: var(--muted); }
.catalog-card__foot a { color: var(--med-3); font-weight: 600; white-space: nowrap; }
.catalog-card__foot a span { color: inherit; }
.catalog-empty, .catalog-page__notice { margin-top: 26px; padding: 17px 19px; border-radius: 12px; background: #e8eee7; color: var(--med-3); }
.catalog-page__notice { font-size: .88rem; }

@media (max-width: 1100px) {
  .hero__in { grid-template-columns: minmax(0,1fr); }
  .hero__features { max-width: 730px; }
  .feature-card:nth-child(2), .feature-card:nth-child(3) { margin-top: 0; }
}
@media (max-width: 760px) {
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .top__in { min-height: 64px; }
  .nav .btn { padding-inline: 12px; }
  .hero { min-height: 0; }
  .hero h1 { font-size: clamp(2.5rem,10vw,4rem); }
  .hero__features { grid-template-columns: minmax(0,1fr); }
  .feature-card { min-height: 170px; padding: 18px; }
  .feature-card__type { margin-top: 12px; }
  .feature-card__text { -webkit-line-clamp: 2; }
  .feature-card__arrow { position: absolute; right: 17px; top: 17px; }
  .catalog__all { margin-top: 14px; margin-bottom: 0; }
  .books__item { display: flex; flex-direction: column; }
  .books__item .tome { width: 100%; max-height: 260px; }
  .books__tag { margin-top: 12px; }
  .books__meta { flex-direction: row; }
  .catalog-grid { grid-template-columns: minmax(0,1fr); }
  .catalog-card__body { min-height: 0; }
  .catalog-card__foot { margin-top: 10px; }
  .course__main { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .feature-card { transition: none; } }

/* Страница описания курса: быстрый выбор действия и читаемая программа. */
.chero__in { padding-block: clamp(42px,5vw,72px) clamp(46px,5vw,72px); }
.chero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chero__actions .btn { min-height: 48px; }
.chero__actions .btn span { margin-left: 8px; }
.facts { margin-top: 30px; }
.course-jump { position: sticky; top: 0; z-index: 12; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); box-shadow: 0 9px 24px -24px #173e2d; }
.course-jump__in { display: flex; flex-wrap: wrap; gap: 4px clamp(20px,3vw,44px); align-items: center; min-height: 58px; }
.course-jump a { display: inline-flex; align-items: center; min-height: 48px; color: var(--med-3); font-size: .89rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.course-jump a:hover, .course-jump a:focus-visible { border-bottom-color: currentColor; }
.course__main > section { scroll-margin-top: 82px; }
.course { gap: clamp(24px,4vw,64px); }
.course__main { box-shadow: 0 18px 40px -40px #173e2d; }
.course__main > section + section { margin-top: clamp(44px,5vw,64px); }
.course__main h2 { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.ticks { gap: 15px; max-width: none; }
.ticks li { line-height: 1.55; }
.program { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; border: 0; }
.program li { min-width: 0; grid-template-columns: 2.3rem minmax(0,1fr); grid-template-rows: auto 1fr; gap: 8px 10px; padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: #f9faf7; }
.program li::before { grid-row: 1 / 3; font: 600 1.7rem/1 var(--serif); }
.program h3 { font-size: 1.1rem; }
.program p { font-size: .9rem; line-height: 1.5; }
.course__project { max-width: none; line-height: 1.6; background: var(--med-3); }
.buy { box-shadow: 0 20px 42px -37px #173e2d; }
.buy::before { background: var(--med-3); }
.buy__photo { margin: 0 0 20px; }
.buy__photo img { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 11px; }
.buy__photo figcaption { margin-top: 9px; color: #4f6571; font-size: .78rem; line-height: 1.45; }

@media (max-width: 980px) {
  .course { gap: 22px; }
  .buy { order: 0; }
}
@media (max-width: 680px) {
  .chero__actions { margin-top: 24px; }
  .chero__actions .btn { width: 100%; }
  .chero .tome { width: min(48%,185px); margin: 2px auto 0; }
  .course-jump { position: relative; }
  .course-jump__in { gap: 0 20px; padding-block: 5px; }
  .course-jump a { min-height: 34px; font-size: .79rem; }
  .course__main > section { scroll-margin-top: 100px; }
  .program { grid-template-columns: minmax(0,1fr); }
  .program li { grid-template-columns: 2rem minmax(0,1fr); padding: 17px; }
}

/* Спокойная ясность: общая визуальная система. */
:root {
  --paper: #fbfdfe;
  --sheet: #ffffff;
  --ink: #0c3043;
  --muted: #4f6277;
  --line: #dfebf0;
  --med: #2b7890;
  --med-2: #4d9aaa;
  --med-3: #175d75;
  --med-t: #e6f3f6;
  --edu: #447ca7;
  --edu-2: #6b9cc1;
  --edu-t: #e9f3fa;
  --ind: #619282;
  --ind-t: #e9f4ed;
  --cream: #f9fcfd;
  --gold: #ffc1a1;
  --focus: #a84a25;
  --wrap: 1480px;
}
body { background: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.top { position: relative; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 0; box-shadow: 0 9px 35px -30px #52798d; }
.top__in { min-height: 88px; gap: clamp(16px,2vw,34px); }
.brand { gap: 14px; flex: none; font-size: clamp(1.12rem,1.75vw,1.76rem); }
.brand__mark { width: 58px; height: 43px; gap: 2px; align-items: flex-end; border: 0; padding: 0; }
.brand__mark i { width: 17px; border-radius: 15px 15px 1px 1px; }
.brand__mark i:nth-child(1) { height: 36px; background: #83c5c6; transform: skewY(17deg); }
.brand__mark i:nth-child(2) { height: 36px; background: #ffbb98; transform: skewY(-17deg); }
.brand__mark i:nth-child(3) { height: 17px; background: #5c8eaa; rotate: 0; margin-left: 0; transform: skewY(-16deg); }
.nav { gap: clamp(16px,2.3vw,36px); margin-left: auto; color: #36536a; font-size: .88rem; }
.top-search { display: flex; align-items: center; gap: 12px; flex: 0 1 420px; min-width: 170px; min-height: 46px; margin-left: auto; padding: 0 18px; border-radius: 999px; background: #edf4f7; }
.top-search svg { flex: none; width: 21px; height: 21px; fill: none; stroke: #6a849b; stroke-width: 1.7; }
.top-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 .9rem/1.3 var(--sans); }
.top-search input::placeholder { color: #8395a8; opacity: 1; }
.top-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn { border-color: #ffbd9d; border-radius: 999px; background: #ffbd9d; color: #152a32; box-shadow: none; }
.btn:hover { border-color: #f2a982; background: #f2a982; color: #152a32; box-shadow: 0 12px 22px -14px #c97b56; }
.btn--line { background: #fff; border-color: #b7ced8; color: var(--ink); }
.btn--line:hover { background: #eaf4f7; border-color: var(--med-3); color: var(--ink); }
.btn--cream { background: #fff; border-color: #fff; }

.hero { min-height: 422px; padding: 0; background: radial-gradient(ellipse at 83% 52%,#e8f3f8 0,transparent 48%),linear-gradient(180deg,#fbfdfe,#f8fcfd); }
.hero::after { display: none; }
.hero__in { display: grid; grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr); gap: 12px; align-items: center; min-height: 422px; }
.hero__copy { position: relative; z-index: 2; padding-block: 32px; }
.hero__eyebrow,.section-eyebrow { color: #365a70; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 600; }
.hero h1 { max-width: none; margin-top: 17px; font-size: clamp(2.75rem,4vw,4.25rem); line-height: 1.03; letter-spacing: -.047em; font-weight: 500; }
.hero__lead { max-width: 26em; margin-top: 18px; color: #667b91; font-size: clamp(1.07rem,1.65vw,1.45rem); line-height: 1.38; }
.hero__cta { margin-top: 23px; }
.hero__cta .btn { min-width: 230px; padding-inline: 28px; gap: 14px; font-size: 1.04rem; }
.hero__art { position: relative; align-self: stretch; min-width: 0; }
.hero__art::before { content: ""; position: absolute; right: 2%; top: 8%; width: 82%; height: 74%; border-radius: 48% 48% 15% 15%; background: linear-gradient(145deg,#e5f1f6,#d4e8f0); }
.hero__art img { position: absolute; z-index: 1; right: -5%; bottom: -2%; width: 112%; max-width: none; height: 105%; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 18px 16px rgba(27,76,95,.11)); }

.directions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 14px; margin-bottom: 0; }
.direction { display: flex; align-items: center; gap: clamp(12px,2vw,25px); min-width: 0; min-height: 118px; padding: 16px clamp(16px,3vw,42px); background: #f0f6f9; color: var(--ink); font: 500 clamp(1.04rem,1.65vw,1.55rem)/1.2 var(--serif); text-decoration: none; }
.direction:first-child { border-radius: 21px 0 0 21px; }
.direction:last-child { border-radius: 0 21px 21px 0; }
.direction + .direction { border-left: 1px solid #d4e5ed; }
.direction:hover { background: #e6f2f7; }
.direction__icon { display: grid; place-items: center; flex: none; width: 74px; height: 74px; border-radius: 50%; background: #e1f1f5; color: #2b7890; }
.direction--edu .direction__icon { background: #e2f0fa; color: #447ca7; }
.direction--ind .direction__icon { background: #e2f0e9; color: #619282; }
.direction__icon .sign { width: 42px; height: 42px; stroke-width: 1.7; }
.direction__arrow { margin-left: auto; color: #447895; font: 400 1.45rem/1 var(--sans); }

#kursy.block { padding-top: 30px; }
.catalog__head { gap: 10px 28px; }
.catalog__head .block__title { margin-top: 3px; font-size: clamp(1.85rem,3vw,2.5rem); font-weight: 500; letter-spacing: -.035em; }
.catalog__notice { padding: 10px 19px; border-radius: 999px; background: #fff0e8; color: #433d3a; font-size: .83rem; white-space: nowrap; }
.catalog__notice::before { content: "ⓘ"; margin-right: 10px; color: #eb7953; font-size: 1.15rem; vertical-align: -.08em; }
.books { margin-top: 18px; gap: 18px; }
.books__item { display: grid; grid-template-columns: 34% minmax(0,1fr); gap: 18px; min-height: 218px; padding: 13px; border-radius: 16px; border: 1px solid #e4eef2; box-shadow: 0 12px 32px -29px #7093a3; background: #fff; }
.books__visual { display: block; min-width: 0; min-height: 0; border-radius: 11px; overflow: hidden; background: #e9e5da center / cover no-repeat; }
.books__visual--med-marketing { background-image: url("../images/course-med-marketing.webp"); }
.books__visual--med-management { background: url("../images/course-med-management.webp") center / cover no-repeat; }
.books__visual--zero-waste { background-image: url("../images/course-zero-waste.webp"); }
.books__visual--med-mba { background: url("../images/course-med-mba.webp") center / cover no-repeat; }
.books__visual--edu-marketing { background: url("../images/course-edu-marketing.webp") center / cover no-repeat; }
.books__visual--edu-management { background-image: url("../images/course-edu-management.webp"); }
.books__content { display: flex; flex-direction: column; min-width: 0; padding: 7px 3px 5px 0; }
.books__type { color: #365a70; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.books__content h3 { margin-top: 5px; font: 600 clamp(1.05rem,1.45vw,1.34rem)/1.2 var(--sans); letter-spacing: -.02em; }
.books__content h3 a { text-decoration: none; }
.books__content h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.books__tag { margin: 10px 0 0; font-size: .79rem; line-height: 1.47; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.books__meta { margin: auto 0 0; padding: 8px 0 0; border: 0; font-size: .75rem; }
.books__link { margin: 8px 0 0; color: var(--med-3); font-size: .78rem; }

.idea { background: #f0f7fa; color: var(--ink); }
.idea__quote { color: var(--ink); }
.idea__quote span:first-child { color: #4c665c; }
.idea__text,.idea__cols p { color: #3f5551; }
.steps li::before { color: #9cbccc; }
.last__in { background: #e9f4f7; color: var(--ink); }
.foot { background: #10384c; color: #c0d5de; }
.foot__name,.foot h2 { color: #fff; }
.foot__base { border-color: #285268; }
.foot__story { max-width: 34ch; line-height: 1.55; }
.foot__about > h2 { margin-top: 22px; }
.home-articles { padding-block: 48px; }
.home-articles__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.home-articles__head h2 { margin: 4px 0 0; }
.home-articles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-articles__grid article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.home-articles__grid h3 { margin: 0 0 10px; font-size: 1.12rem; }
.home-articles__grid p { margin: 0; line-height: 1.55; }
.catalog-page { background: var(--paper); }
.catalog-page__eyebrow { color: #365a70; }
.catalog-tools input { border-color: #d2e4ea; border-radius: 15px; background: #f4f9fb; }
.catalog-filters button[aria-pressed="true"] { background: var(--med-3); border-color: var(--med-3); }
.catalog-card { box-shadow: 0 16px 36px -32px #668b9c; }
.catalog-card__cover { background: radial-gradient(circle at 75% 35%,#c8e5ea,transparent 42%),linear-gradient(135deg,#4d8ba3,#88bbc6); }
.catalog-card__cover--edu { background: radial-gradient(circle at 75% 35%,#d9e9f3,transparent 42%),linear-gradient(135deg,#5e89ad,#a0c5db); }
.catalog-card__cover--ind { background: radial-gradient(circle at 75% 35%,#d6e9db,transparent 42%),linear-gradient(135deg,#5f9381,#a9c9b3); }
.catalog-card__cover--med-marketing,
.catalog-card__cover--med-management,
.catalog-card__cover--med-mba,
.catalog-card__cover--zero-waste,
.catalog-card__cover--edu-marketing,
.catalog-card__cover--edu-management { background-size: cover,cover; background-position: center; }
.catalog-card__cover--med-marketing { background-image: linear-gradient(0deg,rgba(40,38,33,.62),transparent 72%),url("../images/course-med-marketing.webp"); }
.catalog-card__cover--med-management { background-image: linear-gradient(0deg,rgba(40,38,33,.62),transparent 72%),url("../images/course-med-management.webp"); }
.catalog-card__cover--med-mba { background-image: linear-gradient(0deg,rgba(40,38,33,.62),transparent 72%),url("../images/course-med-mba.webp"); }
.catalog-card__cover--zero-waste { background-image: linear-gradient(0deg,rgba(40,38,33,.62),transparent 72%),url("../images/course-zero-waste.webp"); }
.catalog-card__cover--edu-marketing { background-image: linear-gradient(0deg,rgba(40,38,33,.62),transparent 72%),url("../images/course-edu-marketing.webp"); }
.catalog-card__cover--edu-management { background-image: linear-gradient(0deg,rgba(40,38,33,.62),transparent 72%),url("../images/course-edu-management.webp"); }
.catalog-empty,.catalog-page__notice { background: #ebf5f8; color: var(--med-3); }
.chero { background: linear-gradient(135deg,var(--t),#fbfdfe 70%); }
.chero__tag { color: var(--muted); }
.course-jump { box-shadow: 0 10px 28px -25px #7195a4; }
.course__main,.buy { box-shadow: 0 18px 40px -38px #6c94a6; }
.program li { background: #f8fbfc; }
.course__project { background: #17536b; }
.buy::before { background: var(--med-3); }
.form { box-shadow: 0 24px 48px -40px #5e8698; }
.field input,.field textarea { background: #fbfdfe; border-color: #bfd2dc; }

@media (max-width: 1160px) {
  .top-search { flex-basis: 260px; }
  .hero h1 { font-size: clamp(2.45rem,4.2vw,3.75rem); }
  .books__item { gap: 12px; }
}
@media (max-width: 980px) {
  .top__in { flex-wrap: wrap; padding-block: 13px; }
  .top-search { order: 3; flex-basis: 100%; min-height: 42px; }
  .nav { margin-left: auto; }
  .hero__in { grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr); }
  .books { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .direction { padding-inline: 17px; gap: 10px; }
  .direction__icon { width: 54px; height: 54px; }
  .direction__icon .sign { width: 30px; height: 30px; }
}
@media (max-width: 680px) {
  .home-articles__head { align-items: start; flex-direction: column; }
  .home-articles__grid { grid-template-columns: 1fr; }
  :root { --serif: Georgia, "Times New Roman", serif; --sans: system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
  .top__in { min-height: 0; gap: 9px; }
  .brand { font-size: 1.04rem; }
  .brand__mark { width: 34px; height: 30px; }
  .brand__mark i { width: 10px; }
  .brand__mark i:nth-child(1),.brand__mark i:nth-child(2) { height: 27px; }
  .brand__mark i:nth-child(3) { height: 13px; }
  .nav { display: flex; flex-wrap: wrap; column-gap: 13px; row-gap: 5px; order: 3; width: 100%; margin: 0; overflow: visible; font-size: .76rem; }
  .nav a:not(.btn),.nav a:not(.btn):nth-child(2) { display: inline-block; }
  .top-search { order: 2; flex-basis: 100%; }
  .hero { min-height: 0; }
  .hero__in { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 0; }
  .hero__copy { padding-block: 38px 2px; }
  .hero h1 { font-size: clamp(2.55rem,10.8vw,4.4rem); }
  .hero__lead { font-size: 1.08rem; }
  .hero__lead br { display: none; }
  .hero__art { align-self: flex-end; width: min(62vw,250px); height: 150px; margin-top: -8px; }
  .hero__art img { height: 100%; width: 100%; right: 0; bottom: 0; }
  .directions { grid-template-columns: 1fr; gap: 1px; margin-top: 0; }
  .direction { min-height: 73px; padding: 9px 16px; font-size: 1.12rem; }
  .direction:first-child { border-radius: 15px 15px 0 0; }
  .direction:last-child { border-radius: 0 0 15px 15px; }
  .direction + .direction { border-left: 0; border-top: 1px solid #d4e5ed; }
  #kursy.block { padding-top: 35px; }
  .catalog__notice { padding: 8px 13px; }
  .books { grid-template-columns: 1fr; }
  .books__item { display: grid; grid-template-columns: 34% minmax(0,1fr); min-height: 196px; }
  .books__tag { -webkit-line-clamp: 2; }
  .catalog-grid { grid-template-columns: 1fr; }
  .chero .tome { width: min(48%,185px); }
}
@media (max-width: 380px) {
  .books__item { grid-template-columns: 30% minmax(0,1fr); gap: 10px; }
  .books__tag { font-size: .75rem; }
  .books__content h3 { font-size: 1rem; }
}
.course-details{padding:clamp(36px,6vw,72px) 0;background:#f4f7f4}
.course-details .wrap{max-width:1000px}
.course-details h2{margin:32px 0 12px;font-size:clamp(1.45rem,2.5vw,2rem)}
.course-details h2:first-child{margin-top:0}
.course-details h3{margin:22px 0 7px;font-size:1.06rem}
.course-details p{max-width:75ch;line-height:1.65}
.course-details li{margin:8px 0}

/* Открытые уроки на главной */
.open-lessons { margin-top: 34px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.open-lessons h3 { margin: 0 0 10px; font: 600 1.15rem/1.3 var(--serif); }
.open-lessons ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.books__price { font-weight: 600; color: #173e2d; }
/* Цена и кнопка доступа на телефоне */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -20px #173e2d; }
  .buybar__price { display: grid; font: 600 1.15rem/1.15 var(--serif); }
  .buybar__price small { font: 400 0.75rem/1.2 var(--sans); color: #47554f; white-space: nowrap; }
  .buybar .btn { padding: 10px 16px; white-space: nowrap; }
  body:has(.buybar) .foot { padding-bottom: 84px; }
}

/* Лист ожидания на странице доступа */
.waitlist { margin: 28px 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; max-width: 640px; }
.waitlist h2 { margin-top: 0; }
.waitlist form { display: grid; gap: 14px; }
.waitlist label { display: grid; gap: 6px; font-weight: 600; }
.waitlist input[type=email] { padding: 12px 14px; border: 1px solid #b9cbd2; border-radius: 10px; font: inherit; }
.waitlist .waitlist__consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.94rem; }
.waitlist .waitlist__consent input { margin-top: 4px; flex: none; }
.waitlist .btn { justify-self: start; border: 0; cursor: pointer; }
.waitlist .hint, .waitlist + .hint { color: #53677b; font-size: 0.9rem; }
.waitlist .message, #waitlist.message { padding: 12px 16px; border-radius: 12px; background: #eaf3f3; }
.waitlist .message.error { background: #fff0e8; }
.chero__photo { width: 100%; margin: 0; align-self: center; }
.chero__photo img { display: block; width: 100%; height: clamp(220px, 24vw, 320px); aspect-ratio: auto; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 38px -28px #173e2d; }
.chero__photo figcaption { margin-top: 11px; color: #4f6571; font-size: .86rem; line-height: 1.45; }
@media (max-width: 760px) {
  .chero__photo { width: min(100%, 470px); margin-inline: auto; }
  .chero__photo img { height: min(65vw, 320px); }
}
