:root {
  --blue: #062f8e;
  --blue-2: #0b3da8;
  --blue-3: #001d5f;
  --yellow: #ffd60a;
  --yellow-2: #ffbf00;
  --cream: #fff7df;
  --paper: #fffaf0;
  --ink: #061741;
  --muted: #65708a;
  --line: rgba(6, 23, 65, .14);
  --white-soft: rgba(255,255,255,.86);
  --shadow: 0 28px 80px rgba(0, 18, 85, .32);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100% - 36px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  word-spacing: .02em;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; letter-spacing: normal; }
::selection { background: var(--yellow); color: var(--blue-3); }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  opacity: .07;
  background-image: radial-gradient(rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}
.container { width: var(--container); margin-inline: auto; }
.section { position: relative; padding: clamp(72px, 9vw, 132px) 0; overflow: hidden; }
h1, h2, h3, .btn, .brand-wordmark, .site-nav a, .header-cta {
  font-kerning: normal;
  overflow-wrap: normal;
}
.section--blue { background: linear-gradient(145deg, var(--blue-3), var(--blue)); color: #fff; }
.section--cream { background: var(--cream); }
.section--yellow { background: var(--yellow); color: var(--blue-3); }
.section--gallery { background: #f7ebc4; }

.site-header {
  position: fixed;
  inset: 18px 18px auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 24, 85, .66);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { background: rgba(0, 26, 92, .88); border-color: rgba(255,214,10,.35); }
.brand { display: inline-flex; align-items: center; min-width: max-content; }
.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #fff;
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .005em;
  text-transform: none;
  white-space: nowrap;
}
.brand-wordmark strong {
  color: var(--yellow);
  font-size: 1.12em;
  letter-spacing: .005em;
}
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a, .header-cta {
  padding: 12px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .005em;
}
.site-nav a { color: rgba(255,255,255,.8); }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.header-cta { background: var(--yellow); color: var(--blue-3); }
.header-cta:hover { transform: translateY(-1px); }

.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 140px; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,214,10,.28), transparent 26%),
    radial-gradient(circle at 74% 62%, rgba(90,127,196,.45), transparent 35%),
    linear-gradient(135deg, rgba(2, 15, 70, .4), transparent 50%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .62fr); gap: clamp(38px, 6vw, 86px); align-items: center; }
.hero-copy h1, .section-copy h2, .section-head h2 {
  margin: 0;
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.hero-copy h1 { max-width: 760px; font-size: clamp(42px, 5vw, 76px); line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; }
.lead { max-width: 660px; margin: 30px 0 0; font-size: clamp(18px, 2.2vw, 25px); color: rgba(255,255,255,.84); }
.eyebrow { margin: 0 0 18px; color: var(--yellow); font-size: 13px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .005em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--blue-3); box-shadow: 0 14px 36px rgba(255,214,10,.24); }
.btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.08); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.btn--danger { background: #fff1ef; color: #a02a1f; border: 1px solid rgba(160,42,31,.18); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 42px; max-width: 720px; }
.hero-metrics div { padding: 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.08); }
.hero-metrics strong { display: block; color: var(--yellow); font-size: clamp(26px, 4vw, 48px); line-height: 1; }
.hero-metrics span { display: block; margin-top: 7px; color: rgba(255,255,255,.76); font-size: 13px; }
.hero-product {
  position: relative;
  isolation: isolate;
  min-height: clamp(390px, 45vw, 590px);
}
.hero-product::before { display: none; }
.cover-orbit { display: none; }
.hero-logo-panel {
  position: absolute;
  inset: 8% 3% 8% 3%;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--yellow);
  pointer-events: none;
}
.reader-mark {
  width: min(52%, 260px);
  max-width: 260px;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.16));
}
.hero-logo-title {
  position: relative;
  z-index: 2;
  max-width: 76%;
  text-align: center;
  color: var(--yellow);
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .003em;
  text-shadow: 0 18px 36px rgba(0,0,0,.18);
}
.floating-card {
  position: absolute;
  z-index: 3;
  max-width: 205px;
  padding: 10px 15px;
  border-radius: 28px;
  background: var(--yellow);
  color: var(--blue-3);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.25;
  box-shadow: 0 16px 34px rgba(0,0,0,.2);
}
.floating-card--top { top: 10%; left: 0; }
.floating-card--bottom { right: 10%; bottom: 8%; background: #fff; }
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.ticker { overflow: hidden; background: var(--yellow); color: var(--blue-3); border-block: 1px solid rgba(0,0,0,.09); }
.ticker-track { display: flex; gap: 22px; width: max-content; padding: 18px 0; animation: ticker 32s linear infinite; }
.ticker span { font-size: clamp(18px, 2vw, 27px); font-weight: 900; letter-spacing: -.012em; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: " /"; opacity: .35; }
@keyframes ticker { to { transform: translateX(-50%); } }

.split { display: grid; grid-template-columns: minmax(0, .88fr) minmax(300px, .62fr); gap: clamp(30px, 7vw, 90px); align-items: center; }
.about-section .split { grid-template-columns: minmax(0, .92fr) minmax(280px, .50fr); gap: clamp(42px, 9vw, 132px); }
.section-copy h2, .section-head h2 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.08; letter-spacing: -.01em; color: inherit; }
.about-section .section-copy h2 { max-width: 720px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -.008em; overflow-wrap: normal; }
.about-section .quote-card { max-width: 430px; justify-self: end; }
.inside-head h2 { max-width: 980px; font-size: clamp(36px, 4.8vw, 68px); line-height: 1.12; letter-spacing: -.008em; }
.section-copy p, .section-head p { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.section--blue .section-head p, .section--blue .section-copy p { color: rgba(255,255,255,.75); }
.quote-card {
  position: relative;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 24px 60px rgba(6,47,142,.22);
  overflow: hidden;
}
.quote-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border-radius: 50%; background: rgba(255,214,10,.22); }
.quote-card span { display: block; color: var(--yellow); font-size: 90px; line-height: .7; font-family: Georgia, serif; }
.quote-card p { position: relative; margin: 10px 0 18px; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -.005em; }
.quote-card small { color: rgba(255,255,255,.65); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.section-head { margin-bottom: clamp(34px, 5vw, 60px); }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  min-height: 276px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.08);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.12); border-color: rgba(255,214,10,.38); }
.card-num { color: var(--yellow); font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.feature-card h3 { margin: auto 0 12px; color: #fff; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.006em; text-transform: uppercase; }
.feature-card p { margin: 0; color: rgba(255,255,255,.73); }

.gallery-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.gallery-row figure { margin: 0; padding: 10px; border-radius: 28px; background: rgba(255,255,255,.66); box-shadow: 0 20px 48px rgba(6,47,142,.1); }
.gallery-row picture { overflow: hidden; border-radius: 20px; background: var(--blue); }
.gallery-row img { aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease; }
.gallery-row figure:hover img { transform: scale(1.04); }
.gallery-row figcaption { padding: 13px 7px 4px; color: var(--blue-3); font-weight: 900; }

.steps-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(320px, .7fr); gap: clamp(30px, 6vw, 78px); align-items: start; }
.section--yellow .section-copy p { color: rgba(0,29,95,.72); }
.steps-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.steps-list li { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: 24px; background: rgba(255,255,255,.38); border: 1px solid rgba(0,29,95,.12); }
.steps-list span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--blue); color: var(--yellow); font-weight: 900; }
.steps-list p { margin: 0; font-weight: 800; }

.diary-section { padding-top: clamp(80px, 10vw, 150px); }
.diary-toolbar {
  position: sticky;
  top: 96px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,250,240,.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(6, 47, 142, .1);
}
.progress-label { display: flex; justify-content: space-between; gap: 14px; font-weight: 900; color: var(--blue-3); }
.progress-line { height: 12px; margin-top: 8px; border-radius: 999px; background: rgba(6,47,142,.12); overflow: hidden; }
.progress-line span { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, #ffffff 0%, #9bb8ff 42%, var(--blue) 100%); transition: width .25s ease; }
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.diary-form { display: grid; gap: 14px; }
.diary-block {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 18px 52px rgba(6, 47, 142, .08);
  overflow: clip;
}
.diary-block summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  color: var(--blue-3);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
  list-style: none;
}
.diary-block summary::-webkit-details-marker { display: none; }
.diary-block summary span { display: grid; place-items: center; min-width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: var(--yellow); font-size: 15px; letter-spacing: .02em; }
.diary-block[open] summary { border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label.full { display: grid; gap: 9px; padding: 0 22px 22px; color: var(--blue-3); font-weight: 900; }
label { color: var(--blue-3); font-weight: 900; }
label textarea, label input, label select {
  width: 100%;
  margin-top: 9px;
  border: 1px solid rgba(6,47,142,.2);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 14px 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"] { width: auto; margin: 0 9px 0 0; accent-color: var(--blue); }
label textarea:focus, label input:focus, label select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(6,47,142,.12); }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 22px 22px 0; }
.value-grid label { padding: 13px; border-radius: 18px; background: rgba(6,47,142,.06); font-size: 14px; }
.timeline-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 22px; }
.timeline-form label { display: block; padding: 16px; border-radius: 22px; background: rgba(6,47,142,.06); }
.timeline-form span { display: inline-flex; margin-bottom: 8px; color: var(--blue); font-size: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.manifesto-block { border-color: rgba(255,214,10,.7); box-shadow: 0 22px 70px rgba(255,214,10,.18); }


.author-grid { display: grid; grid-template-columns: minmax(280px, .58fr) minmax(0, .82fr); gap: clamp(28px, 7vw, 86px); align-items: center; }
.author-photo { position: relative; }
.author-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 34px; background: var(--blue); opacity: .16; }
.author-photo picture { position: relative; overflow: hidden; border-radius: 34px; box-shadow: 0 28px 80px rgba(0, 18, 85, .20); background: var(--blue-3); }
.author-photo img { width: 100%; aspect-ratio: 4 / 5.3; object-fit: cover; }
.author-note { margin-top: 28px; padding: 22px; border: 1px solid rgba(6,47,142,.14); border-radius: 24px; background: rgba(255,255,255,.58); }
.author-note span { display: block; color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.author-note p { margin: 8px 0 0; color: var(--ink); font-weight: 800; }
.students-section .section-head h2 { max-width: 980px; }
.students-gallery { display: grid; grid-template-columns: 1.04fr .86fr; gap: 18px; align-items: stretch; }
.students-gallery figure { margin: 0; padding: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 34px; background: rgba(255,255,255,.08); box-shadow: var(--shadow); }
.students-gallery picture { overflow: hidden; border-radius: 24px; background: rgba(255,255,255,.08); }
.students-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }
.students-gallery figure:nth-child(2) img { aspect-ratio: 3 / 4; object-position: center; }
.students-gallery figure:hover img { transform: scale(1.035); }
.students-gallery figcaption { padding: 14px 8px 4px; color: rgba(255,255,255,.86); font-weight: 900; }

.download-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .62fr); gap: clamp(28px, 6vw, 70px); align-items: center; }
.download-card { padding: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 32px; background: rgba(255,255,255,.08); box-shadow: var(--shadow); }
.download-card picture { border-radius: 24px; overflow: hidden; }
.download-card img { aspect-ratio: 1/1; object-fit: cover; }
.download-card p { margin: 14px 8px 6px; color: rgba(255,255,255,.78); }
.download-card code { padding: 2px 6px; border-radius: 8px; background: rgba(255,255,255,.12); color: var(--yellow); }
.site-footer { padding: 38px 0; background: #03184c; color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer p { margin: 5px 0 0; color: rgba(255,255,255,.65); }
.site-footer a { display: inline-block; margin-left: 18px; color: var(--yellow); font-weight: 900; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  z-index: 90;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--blue-3);
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .hero-grid, .split, .about-section .split, .steps-grid, .author-grid, .students-gallery, .download-grid { grid-template-columns: 1fr; }
  .hero-product { width: min(100%, 560px); max-width: 560px; margin-inline: auto; min-height: 520px; }
  .floating-card--top { left: 0; }
  .floating-card--bottom { right: 2%; }
  .about-section .quote-card { justify-self: start; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diary-toolbar { position: static; grid-template-columns: 1fr; }
  .toolbar-actions { justify-content: flex-start; }
  .timeline-form, .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --container: min(100% - 24px, 1180px); }
  .section { padding: 64px 0; }
  .site-header { inset: 10px 10px auto; gap: 10px; padding: 10px 12px; }
  .brand-wordmark { max-width: 64vw; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
  .header-cta { padding-inline: 18px; }
  .hero { padding-top: 112px; }
  .hero-copy h1 { font-size: clamp(38px, 11.5vw, 58px); line-height: 1.08; letter-spacing: 0; }
  .hero-product { min-height: 390px; }
  .hero-logo-title { max-width: 82%; font-size: 16px; }
  .reader-mark { width: min(56%, 240px); }
  .lead { font-size: 17px; line-height: 1.55; }
  .hero-metrics, .cards-grid, .gallery-row, .students-gallery, .form-grid, .form-grid.two, .timeline-form, .value-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
  .hero-actions .btn, .toolbar-actions .btn { width: 100%; }
  .diary-block summary { padding: 18px; }
  .form-grid, .timeline-form { padding: 18px; }
  .footer-grid { display: grid; }
  .site-footer a { margin: 12px 16px 0 0; }
}

@media print {
  .site-header, .ticker, .hero, .section--gallery, .section--yellow, .author-section, .students-section, .download-section, .site-footer, .diary-toolbar, .toast { display: none !important; }
  .section { padding: 0; }
  body { background: #fff; color: #000; }
  .diary-block { break-inside: avoid; box-shadow: none; border: 1px solid #999; margin-bottom: 16px; }
  .diary-block summary { color: #000; }
  textarea, input, select { border: 1px solid #777 !important; }
}

/* Финальная правка читаемости: кириллица без слипания */
.hero-copy h1, .section-copy h2, .section-head h2, .feature-card h3, .diary-block summary, .quote-card p {
  word-spacing: .045em;
}
p, li, label, .feature-card p, .download-card p, .students-gallery figcaption, .gallery-row figcaption {
  letter-spacing: 0;
  word-spacing: .025em;
}
