@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-sans-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-sans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-sans-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-sans-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-serif-400i-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-serif-400i-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-serif-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-serif-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-serif-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f3efe6;
  --paper: #fffdf8;
  --text: #1f2a36;
  --body: #3a4552;
  --muted: #5b6470;
  --rule: #d6cfc0;
  --line: rgba(31, 42, 54, .3);
  --accent: #8a2b1f;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: Menlo, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 18px/1.6 var(--sans);
}

.frame {
  max-width: 1440px;
  margin: 28px auto;
  padding: 0 56px;
  border: 1.5px solid var(--text);
  outline: 0.75px solid rgba(31, 42, 54, .35);
  outline-offset: -8px;
}

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--text); margin: 0; }
p { margin: 0 0 14px; }
code { font-family: var(--mono); font-size: .85em; }

.kicker {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Шапка */

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
  padding: 36px 0 20px;
  border-bottom: 0.75px solid var(--line);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

header.site .name { color: var(--text); text-decoration: none; font-weight: 700; }

/* Две колонки: новости и основное */

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0 52px;
}

.news {
  padding: 48px 36px 48px 0;
  border-right: 0.75px solid var(--line);
}
.news h2 { font-size: 24px; line-height: 1.2; font-weight: 700; margin-bottom: 8px; }
.news-intro { font-size: 15px; color: var(--muted); margin-bottom: 20px; }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--text); }
.news-list li { padding: 14px 0 12px; border-bottom: 0.75px solid var(--line); overflow-wrap: anywhere; }
.news-meta {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.news-list a {
  font: 700 16px/1.3 var(--serif);
  color: var(--text);
  text-decoration: none;
}
.news-list a:hover { color: var(--accent); }
.news-list p { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 6px 0 0; }

main { min-width: 0; }

/* Первый экран */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 56px 0 64px;
}

.hero h1 {
  font-size: 68px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.01em;
}

.hero .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  line-height: 1.15;
  color: var(--text);
  margin: 10px 0 0;
}

.rule { width: 96px; height: 3px; background: var(--accent); margin: 30px 0 24px; }

.lead { font-size: 20px; line-height: 1.5; color: var(--body); }

.hero .meta { color: var(--accent); font-size: 16px; margin-bottom: 26px; }

.button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--text);
  color: var(--paper);
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.button:hover { background: var(--accent); }

.hero .note { color: var(--muted); font-size: 15px; margin-top: 12px; }

.hero-visual { position: relative; }

.term {
  background: var(--text);
  color: #d9dee4;
  font: 15px/1.55 var(--mono);
  border-radius: 8px;
  padding-bottom: 60px;
  box-shadow: 0 20px 48px rgba(31, 42, 54, .18);
}
.term .bar { display: flex; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #33404e; margin-bottom: 18px; }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a5767; }
.term p { margin: 0; padding: 0 22px; }
.term .prompt { color: #e8b67a; }
.term .dim { color: #7f8b98; }
.term .gap { margin-top: 10px; }

.sheet {
  position: relative;
  margin: -40px 24px 0 -24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 26px 30px 30px;
  font: 15px/1.5 var(--serif);
  color: var(--text);
  box-shadow: 0 14px 36px rgba(31, 42, 54, .16);
}
.sheet .h { text-align: center; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.sheet p { text-indent: 1.25em; margin: 0; }
.sheet .line { height: 9px; background: #ebe5d8; border-radius: 2px; margin-top: 12px; }
.sheet .line.s { width: 72%; }

/* Блоки */

.block { padding: 52px 0; border-top: 0.75px solid var(--line); }
.block-head { margin-bottom: 24px; }

.block h2 { font-size: 32px; line-height: 1.15; font-weight: 400; font-style: italic; }
.block h3 { font-size: 21px; margin-bottom: 8px; }

.lessons { border-top: 1.5px solid var(--text); }
.lessons .row {
  display: grid;
  grid-template-columns: 44px 1fr 280px;
  gap: 0 20px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 0.75px solid var(--line);
}
.lessons .n { font: 700 28px/1 var(--serif); color: var(--accent); }
.lessons .t { font: 20px/1.25 var(--serif); color: var(--text); }
.lessons .r { font-size: 16px; line-height: 1.3; color: var(--muted); }
.lessons .key .t { font-weight: 700; }
.lessons .key .r { color: var(--accent); }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols3 p { font-size: 16px; }

.product-body { max-width: 760px; }
.link-more { font-weight: 700; text-decoration: none; }

.intro { max-width: 760px; }

.sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--body);
  text-decoration: none;
}
a.card { border-color: var(--text); }
a.card:hover { border-color: var(--accent); }
.card-t { font: 700 19px/1.25 var(--serif); color: var(--text); }
.card-d { font-size: 15px; line-height: 1.45; }
.card-s { margin-top: auto; padding-top: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card.soon { background: transparent; }
.card.soon .card-t { color: var(--muted); }
.card.soon .card-s { color: var(--muted); }

.author p { max-width: 820px; font: italic 20px/1.5 var(--serif); color: var(--text); margin: 0; }

/* Страница автора */

.crumbs { padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.profile {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0 56px;
  padding: 40px 0 56px;
}

.photo-slot {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--muted);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-side img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }

.profile-main { max-width: 820px; }
.profile-main h1 { font-size: 56px; line-height: 1.05; font-weight: 700; }
.profile-main .subtitle {
  font: italic 30px/1.2 var(--serif);
  color: var(--text);
  margin: 8px 0 0;
}

.profile-block { padding: 36px 0 8px; border-top: 0.75px solid var(--line); margin-top: 28px; }
.profile-block h2 { font-size: 26px; line-height: 1.2; font-weight: 400; font-style: italic; margin-bottom: 14px; }

.pubs { margin: 0 0 14px; padding-left: 22px; }
.pubs li { margin-bottom: 8px; }

.cols2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 10px 0; border-bottom: 0.75px solid var(--line); }
ul.plain li:first-child { border-top: 1.5px solid var(--text); }

mark.todo { background: #f5e3a3; color: var(--text); padding: 0 3px; }

@media (max-width: 960px) {
  .profile { grid-template-columns: 1fr; }
  .profile-side { max-width: 260px; margin-bottom: 32px; }
  .cols2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .profile-main h1 { font-size: 42px; }
  .profile-main .subtitle { font-size: 24px; }
}

footer.site {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 0 36px;
  border-top: 0.75px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .04em;
}
footer.site a { color: var(--muted); }

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

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .sections { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .news { order: 2; padding: 40px 0; border-right: 0; border-top: 0.75px solid var(--line); }
}

@media (max-width: 640px) {
  .frame { margin: 10px; padding: 0 22px; }
  header.site .tagline { display: none; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 50px; }
  .hero .subtitle { font-size: 27px; }
  .cols3, .sections { grid-template-columns: 1fr; }
  .lessons .row { grid-template-columns: 36px 1fr; }
  .lessons .r { grid-column: 2; margin-top: 4px; }
  .sheet { margin: -40px 12px 0 -8px; }
}

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

.course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 0 56px;
  padding: 40px 0 56px;
  align-items: start;
}

.course-main h1 { font-size: 64px; line-height: 1.02; font-weight: 700; letter-spacing: -.01em; }
.course-main .subtitle { font: italic 34px/1.15 var(--serif); color: var(--text); margin: 10px 0 0; }
.course-main .meta { color: var(--accent); font-size: 16px; }

.course-block { padding: 40px 0 8px; margin-top: 32px; border-top: 0.75px solid var(--line); }
.course-block h2 { font-size: 30px; line-height: 1.2; font-weight: 400; font-style: italic; margin-bottom: 20px; }
.course-block h3 { font-size: 20px; margin-bottom: 8px; }

.course-side { position: sticky; top: 24px; }

.signup {
  background: var(--paper);
  border: 1.5px solid var(--text);
  padding: 28px 28px 24px;
}
.signup h2 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.signup-intro { font-size: 15px; color: var(--muted); margin-bottom: 18px; }

.signup label { display: block; font-size: 15px; color: var(--text); margin-bottom: 14px; }
.signup input[type="email"],
.signup input[type="text"],
.signup select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  font: 16px/1.3 var(--sans);
  color: var(--text);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
}
.signup input:focus, .signup select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

.signup .optional { color: var(--muted); font-size: 13px; }
.signup label.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; }
.signup label.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.signup label.check .optional { display: block; margin-top: 2px; }

.signup .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.signup .button { width: 100%; margin-top: 6px; border: 0; cursor: pointer; font-family: var(--sans); }
.signup .button:disabled { opacity: .6; cursor: default; }

.signup-status { margin: 12px 0 0; font-size: 15px; line-height: 1.45; }
.signup-status.ok { color: #2f6b3a; }
.signup-status.error { color: var(--accent); }

/* Документы и служебные страницы */

.doc { max-width: 820px; padding: 40px 0 56px; }
.doc h1 { font-size: 44px; line-height: 1.1; font-weight: 700; }
.doc-date { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.doc h2 { font-size: 22px; line-height: 1.25; margin: 32px 0 10px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }

.notice { max-width: 720px; padding: 64px 0 80px; }
.notice h1 { font-size: 44px; line-height: 1.1; font-weight: 700; }
.notice .button { border: 0; cursor: pointer; font-family: var(--sans); }

@media (max-width: 1100px) {
  .course { grid-template-columns: 1fr; }
  .course-side { position: static; max-width: 520px; margin-top: 40px; }
}

@media (max-width: 640px) {
  .course-main h1 { font-size: 46px; }
  .course-main .subtitle { font-size: 26px; }
  .doc h1, .notice h1 { font-size: 32px; }
  .signup { padding: 22px 18px 18px; }
}
