:root {
  color-scheme: light;
  --paper: #f8f1e8;
  --paper-2: #fffaf4;
  --paper-3: #f2e6d8;
  --ink: #24344d;
  --ink-soft: #526073;
  --blush: #f7dde2;
  --blush-2: #fbecef;
  --red: #a61d2d;
  --red-2: #c93548;
  --gold: #d4af37;
  --blue: #dceaf7;
  --line: rgba(95, 74, 56, 0.16);
  --line-strong: rgba(95, 74, 56, 0.28);
  --shadow-soft: 0 18px 46px rgba(78, 55, 41, 0.1);
  --shadow-card: 0 24px 60px rgba(78, 55, 41, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-display: "Noto Serif", "Times New Roman", serif;
  --font-serif: "Noto Serif", "Times New Roman", serif;
  --font-body: "Noto Sans", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(247, 221, 226, 0.72), transparent 26%),
    radial-gradient(circle at 100% 16%, rgba(220, 234, 247, 0.82), transparent 24%),
    linear-gradient(rgba(161, 127, 98, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(161, 127, 98, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  z-index: 40;
}

::selection {
  background: var(--red);
  color: #fff;
}

a {
  color: inherit;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  transform: translateY(-180%);
  z-index: 200;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 190;
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), #d36773 60%, var(--gold));
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 120;
  padding: 0 18px;
}

.nav {
  position: relative;
  width: min(1260px, calc(100vw - 36px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(171, 132, 101, 0.24);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(79, 57, 41, 0.12);
  backdrop-filter: blur(14px);
}

.nav::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -8px;
  height: 14px;
  background: url('assets/lace-border.svg') center/100% 100% no-repeat;
  opacity: .95;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-symbol {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(166, 29, 45, .10));
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}

.brand-copy small,
.nav-meta {
  color: #8a7d73;
  font-size: 0.78rem;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(247, 221, 226, 0.42);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, transform .25s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: rgba(255,255,255,.7);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-meta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.nav-meta::before,
.nav-meta::after {
  content: '✦';
  color: var(--gold);
  opacity: .8;
}

.nav-toggle {
  display: none;
}

main {
  padding: 26px 18px 0;
}

.hero,
.section,
.footer {
  width: min(1260px, 100%);
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: 34px;
  padding: clamp(30px, 4vw, 44px);
  border: 1px solid rgba(171, 132, 101, 0.22);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(220, 234, 247, .66), transparent 32%),
    radial-gradient(circle at bottom left, rgba(247, 221, 226, .4), transparent 28%),
    var(--paper-2);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(171, 132, 101, 0.2);
  border-radius: 26px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 220px;
  height: 120px;
  background: url('assets/floral-corner.svg') right bottom/contain no-repeat;
  opacity: .9;
  pointer-events: none;
}

.hero-copy,
.hero-profile,
.hero-index {
  position: relative;
  z-index: 1;
}

.hero-copy {
  min-height: 440px;
  padding: 34px 10px 28px 300px;
}

.hero-copy::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 270px;
  height: 340px;
  background:
    url('assets/hero-student.svg') center/contain no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,0));
  filter: drop-shadow(0 16px 32px rgba(72, 45, 36, 0.14));
}

.hero-copy::after { display: none; }

.hero-cyrillic {
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  padding-top: 8px;
  border-top: 1px solid rgba(171, 132, 101, 0.22);
  color: rgba(136, 112, 97, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  white-space: nowrap;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: '❤';
  font-size: .8em;
  color: #e39aa6;
}

.eyebrow.dark {
  color: #8f5f63;
}

.hero h1 {
  max-width: 500px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.95rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 span {
  color: var(--red);
  font-style: italic;
}

.hero-lead {
  max-width: 590px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 800;
  transition: transform .25s var(--ease), box-shadow .25s ease, color .25s ease, background .25s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: #fff;
  box-shadow: 0 14px 30px rgba(166, 29, 45, .24);
}

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

.text-button {
  border: 1px solid rgba(171,132,101,.28);
  background: rgba(255,255,255,.7);
  color: var(--ink);
}

.text-button:hover {
  color: var(--red);
  box-shadow: var(--shadow-soft);
}

.hero-profile {
  align-self: center;
  width: min(100%, 360px);
  justify-self: end;
  padding: 20px;
  border: 1px solid rgba(171,132,101,.24);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(252,247,239,.98));
  box-shadow: 0 18px 44px rgba(78, 55, 41, 0.1);
  transform: rotate(.6deg);
}

.hero-profile::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 18px;
  width: 72px;
  height: 72px;
  border: 1.5px solid rgba(166,29,45,.14);
  border-radius: 50%;
  opacity: .55;
}

.hero-profile::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 16px;
  width: 58px;
  height: 18px;
  background: rgba(214, 191, 166, .52);
  transform: rotate(-8deg);
  border-radius: 4px;
}

.profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(171,132,101,.3);
  color: var(--red);
  font-weight: 800;
}

.profile-heading span {
  font-family: var(--font-display);
  font-size: 1rem;
}

.profile-heading strong {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.profile-list {
  margin: 0;
  padding: 10px 0 18px;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(171,132,101,.16);
}

.profile-list dt {
  color: #8c7b72;
  font-size: .8rem;
  font-weight: 700;
}

.profile-list dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.profile-seal {
  position: absolute;
  right: -10px;
  bottom: -18px;
  width: 84px;
  height: 84px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: rgba(255,250,244,.96);
  border: 3px double rgba(166, 29, 45, .7);
  color: var(--red);
  text-align: center;
  transform: rotate(-14deg);
}

.profile-seal::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px dashed rgba(166, 29, 45, .5);
}

.profile-seal span {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
}

.profile-seal small {
  display: block;
  margin-top: 2px;
  font-size: .68rem;
  letter-spacing: .18em;
}

.hero-ornament {
  position: absolute;
  z-index: 0;
  font-family: var(--font-display);
  line-height: 1;
  user-select: none;
}

.hero-ornament-a {
  right: 36px;
  top: 50px;
  color: rgba(166, 29, 45, .06);
  font-size: clamp(8rem, 16vw, 13rem);
}

.hero-ornament-b {
  right: 160px;
  bottom: 40px;
  color: rgba(36, 52, 77, .05);
  font-size: clamp(7rem, 13vw, 11rem);
}

.hero-index {
  position: absolute;
  left: -12px;
  bottom: 70px;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px 6px;
  color: #967f72;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-index span {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1rem;
}

.hero-index i {
  width: 1px;
  height: 64px;
  background: currentColor;
}

.section {
  position: relative;
  margin-top: 28px;
  padding: clamp(30px, 4vw, 40px);
  border: 1px solid rgba(171,132,101,.2);
  border-radius: 32px;
  background: rgba(255,250,244,.9);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(171,132,101,.16);
  border-radius: 24px;
  pointer-events: none;
}

.section-kicker {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(22px, 4vw, 34px);
  color: #9c7f70;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-kicker i {
  height: 1px;
  background: rgba(156, 127, 112, .44);
}

.intro::after,
.roadmap::after,
.reflection::after {
  content: '';
  position: absolute;
  background: url('assets/cathedral.svg') center/contain no-repeat;
  opacity: .48;
  pointer-events: none;
}

.intro::after {
  right: 26px;
  bottom: 18px;
  width: 180px;
  height: 120px;
}

.intro-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-areas:
    'heading note'
    'primary secondary';
  gap: 20px;
  align-items: start;
}

.intro-heading { grid-area: heading; padding-right: 20px; }
.intro-note { grid-area: note; }
.stat-primary { grid-area: primary; }
.stat-secondary { grid-area: secondary; }

.intro-heading h2,
.roadmap-heading h2,
.projects-intro h2,
.reflection-lead h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: none;
}

.intro-heading > p:last-child,
.projects-intro > p,
.reflection-lead > p:not(.eyebrow),
.steps p,
.reflection-list p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.intro-heading > p:last-child {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 1.03rem;
}

.intro-note {
  position: relative;
  padding: 28px 28px 30px;
  border-radius: 26px;
  background: linear-gradient(135deg, #c74454, var(--red));
  color: #fff;
  box-shadow: 12px 12px 0 rgba(36, 52, 77, .12);
}

.intro-note::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 120px;
  height: 70px;
  background: url('assets/floral-corner.svg') right bottom/contain no-repeat;
  opacity: .9;
}

.note-mark {
  position: absolute;
  top: -24px;
  right: 22px;
  color: #ffd7aa;
  font-family: var(--font-display);
  font-size: 3rem;
}

.intro-note h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.intro-note p {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.92);
  line-height: 1.78;
}

.stat-card {
  position: relative;
  padding: 24px 24px 22px 104px;
  min-height: 150px;
  border-radius: 24px;
  background: #fffaf5;
  border: 1px solid rgba(171,132,101,.18);
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 22px;
  width: 60px;
  height: 90px;
  background: url('assets/matryoshka.svg') center/contain no-repeat;
  opacity: .95;
}

.stat-secondary::before {
  background-image: url('assets/cathedral.svg');
  width: 82px;
  height: 82px;
  top: 26px;
  opacity: .55;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.8vw, 4rem);
  line-height: 1;
  color: var(--ink);
}

.stat-card p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

.roadmap::after {
  right: 24px;
  top: 24px;
  width: 144px;
  height: 90px;
}

.roadmap-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.steps article {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(171,132,101,.16);
  transition: transform .28s var(--ease), box-shadow .28s ease, border-color .28s ease;
}

.steps article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(166,29,45,.22);
}

.step-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247,221,226,.95), rgba(255,255,255,.94));
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(166,29,45,.15);
}

.steps h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.projects {
  background:
    radial-gradient(circle at top left, rgba(247, 221, 226, .36), transparent 28%),
    radial-gradient(circle at bottom right, rgba(220, 234, 247, .4), transparent 25%),
    rgba(255,250,244,.94);
}

.projects::after {
  content: 'А Б В';
  position: absolute;
  right: 26px;
  top: 26px;
  color: rgba(166, 29, 45, .12);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.6rem);
  letter-spacing: .12em;
}

.projects-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.project-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 16px;
  align-items: start;
  min-height: 250px;
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(171,132,101,.18);
  box-shadow: 0 14px 30px rgba(78, 55, 41, 0.08);
  transition: transform .28s var(--ease), box-shadow .28s ease, border-color .28s ease;
}

.project-card:hover {
  transform: translateY(-6px) rotate(-.5deg);
  border-color: rgba(166,29,45,.24);
  box-shadow: 0 22px 42px rgba(78, 55, 41, 0.12);
}

.project-card::before {
  content: '';
  position: absolute;
  right: 14px;
  top: 12px;
  width: 72px;
  height: 72px;
  opacity: .14;
  background: url('assets/floral-corner.svg') center/contain no-repeat;
}

.project-card:nth-child(1),
.project-card:nth-child(2),
.project-card:nth-child(3),
.project-card:nth-child(4),
.project-card:nth-child(5),
.project-card:nth-child(6) { transform: none; }
.project-card:nth-child(1):hover,
.project-card:nth-child(2):hover,
.project-card:nth-child(3):hover,
.project-card:nth-child(4):hover,
.project-card:nth-child(5):hover,
.project-card:nth-child(6):hover { transform: translateY(-6px); }

.project-number {
  display: grid;
  place-items: center;
  width: 68px;
  min-height: 68px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--blush-2), #fff);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(166,29,45,.1);
}

.project-main {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.project-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #9c7f70;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-label i {
  width: 32px;
  height: 1px;
  background: currentColor;
}

.project-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.2;
}

.project-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: .96rem;
  line-height: 1.72;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(220, 234, 247, .58);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
}

.project-link {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(166,29,45,.2);
}

.project-link span { display: none; }
.project-link b { font-size: 1.1rem; }

.reflection::after {
  right: 28px;
  top: 20px;
  width: 120px;
  height: 90px;
  background: url('assets/floral-corner.svg') center/contain no-repeat;
  opacity: .14;
}

.reflection::before { display: none; }

.reflection-lead,
.reflection-list {
  position: relative;
  z-index: 1;
}

.reflection-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 42px;
  padding-left: 0;
}

.reflection-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.reflection-list article {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(171,132,101,.16);
}

.reflection-list article > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(247,221,226,.95), rgba(255,255,255,.95));
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
}

.reflection-list h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.footer {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 24px;
  padding: 28px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #24344d, #1d2a3f 64%, #2b4160);
  color: #fff;
  overflow: hidden;
}

.footer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  background: url('assets/lace-border.svg') center/100% 100% no-repeat;
  opacity: .55;
}

.footer-monogram {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #ffcad1;
  font-family: var(--font-display);
  font-size: 2rem;
}

.footer-left,
.footer-right {
  display: grid;
  gap: 6px;
}

.footer strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer span {
  color: rgba(255,255,255,.74);
  line-height: 1.55;
  font-size: .9rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform .25s var(--ease), background .25s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
}

.back-to-top b {
  color: #ffd89b;
  font-size: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    min-height: 0;
    padding-right: 0;
  }
  .hero-profile {
    justify-self: end;
  }
}

@media (max-width: 1120px) {
  .site-header { top: 12px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-meta { display: none; }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    min-height: 0;
    padding-left: 280px;
  }
  .hero-profile {
    max-width: 560px;
    justify-self: end;
  }
  .intro-layout,
  .roadmap-heading,
  .projects-intro,
  .reflection-lead {
    grid-template-columns: 1fr;
    grid-template-areas: unset;
  }
  .intro-heading,.intro-note,.stat-primary,.stat-secondary { grid-area: auto; }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .footer {
    grid-template-columns: 88px 1fr 1fr;
  }
  .back-to-top {
    grid-column: 2 / -1;
    justify-self: end;
  }
}

@media (max-width: 780px) {
  body { background-size: auto, auto, 26px 26px, 26px 26px, auto; }
  .site-header { top: 8px; padding: 0 8px; }
  main { padding: 18px 8px 0; }
  .nav {
    width: calc(100vw - 16px);
    min-height: 68px;
    grid-template-columns: 1fr auto;
    padding: 0 14px;
    border-radius: 20px;
  }
  .nav::before { left: 12px; right: 12px; }
  .brand-symbol { width: 44px; height: 44px; }
  .brand-copy strong { font-size: 1rem; }
  .brand-copy small { font-size: .72rem; }
  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(247,221,226,.5);
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2px; background: currentColor; transition: .25s ease; }
  .nav-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255,250,244,.97);
    border: 1px solid rgba(171,132,101,.2);
    box-shadow: var(--shadow-soft);
  }
  .nav-links.open { display: flex; }
  .nav-links a { justify-content: flex-start; }
  .hero,
  .section,
  .footer { border-radius: 24px; }
  .hero {
    margin-top: 22px;
    padding: 22px;
  }
  .hero-copy {
    padding: 232px 4px 0;
  }
  .hero-copy::before {
    left: 50%;
    top: 8px;
    width: 220px;
    height: 250px;
    transform: translateX(-50%);
  }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hero-lead { font-size: 1rem; }
  .hero-profile {
    transform: none;
    max-width: none;
    justify-self: stretch;
  }
  .hero-index,
  .hero-cyrillic,
  .hero-ornament-b { display: none; }
  .section { padding: 22px; }
  .intro-layout,
  .project-grid,
  .reflection-lead,
  .footer { grid-template-columns: 1fr; }
  .roadmap-heading { grid-template-columns: 1fr; }
  .projects-intro { grid-template-columns: 1fr; }
  .project-card {
    grid-template-columns: 56px 1fr auto;
    min-height: 220px;
  }
  .project-number {
    width: 56px;
    min-height: 56px;
    font-size: 1.6rem;
  }
  .reflection::after,
  .intro::after,
  .roadmap::after,
  .projects::after { display: none; }
  .footer {
    gap: 18px;
    padding: 22px;
  }
  .footer-monogram { width: 72px; height: 72px; }
  .back-to-top { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Portrait hero — explicit media element to prevent SVG distortion and object overlap. */
.hero {
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(300px, 350px);
  align-items: center;
  gap: clamp(22px, 3vw, 38px);
}
.hero-copy { min-height: 0; padding: 26px 0; }
.hero-copy::before,
.hero-copy::after { display: none !important; }
.hero-photo {
  position: relative;
  z-index: 2;
  margin: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.photo-shell {
  padding: 9px;
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(171,132,101,.22);
  box-shadow: 0 18px 44px rgba(72,50,34,.11);
  transform: rotate(-1deg);
}
.photo-shell img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 37%;
  border-radius: 18px;
}
.hero-photo figcaption {
  display: grid;
  gap: 3px;
  margin: 12px 8px 0;
  color: #8b776d;
  font-size: .75rem;
}
.hero-photo figcaption span { color: var(--red); font-family: var(--font-display); font-size: 1rem; }
.hero-photo figcaption b { font-weight: 650; }
.hero-profile { width: 100%; justify-self: stretch; }
.hero h1 { max-width: 590px; }
@media (max-width: 1180px) {
  .hero { grid-template-columns: 240px minmax(0,1fr); }
  .hero-profile { grid-column: 1 / -1; width: min(100%, 560px); justify-self: end; }
}
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { width: min(100%, 330px); justify-self: center; }
  .photo-shell { transform: none; }
  .hero-copy { padding: 8px 0 0; }
  .hero-profile { grid-column: auto; width: 100%; }
}
/* Keep the hero decoration clear of the profile card and portrait. */
.hero::after { display: none !important; }


/* ===== Taste-skill polish: softer, less templated, more Russian-inspired ===== */
:root {
  --paper: #f9f3eb;
  --paper-2: #fffaf6;
  --paper-3: #f3e8db;
  --ink: #263754;
  --ink-soft: #5f6b80;
  --blush: #f6dde3;
  --blush-2: #fdf1f3;
  --red: #ad2236;
  --red-2: #c53a4c;
  --gold: #caa54b;
  --blue: #dce8f7;
  --shadow-soft: 0 18px 44px rgba(78, 55, 41, 0.09);
  --shadow-card: 0 24px 56px rgba(78, 55, 41, 0.11);
}

body {
  background:
    radial-gradient(circle at 0% 6%, rgba(246, 221, 227, 0.82), transparent 22%),
    radial-gradient(circle at 100% 10%, rgba(219, 233, 247, 0.78), transparent 24%),
    linear-gradient(rgba(161, 127, 98, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(161, 127, 98, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.08)),
    var(--paper);
  background-size: auto, auto, 40px 40px, 40px 40px, auto, auto;
}
body::before { opacity: .045; }
body::after {
  content: '';
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: 180px;
  height: 180px;
  pointer-events: none;
  background: url('assets/floral-corner.svg') right bottom/contain no-repeat;
  opacity: .08;
  z-index: 1;
}

.nav {
  background: rgba(255, 249, 242, 0.94);
  box-shadow: 0 18px 42px rgba(79, 57, 41, 0.10);
}
.nav::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 10px;
  width: 86px;
  height: 52px;
  background: url('assets/floral-corner.svg') center/contain no-repeat;
  opacity: .1;
  pointer-events: none;
}
.brand-copy strong { letter-spacing: .015em; }
.nav-links {
  background: linear-gradient(180deg, rgba(248, 228, 232, .58), rgba(250, 236, 239, .42));
  box-shadow: inset 0 0 0 1px rgba(166,29,45,.04);
}
.nav-meta { letter-spacing: .08em; }

.hero {
  position: relative;
  padding: 22px 24px 26px;
  border: 1px solid rgba(171,132,101,.16);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,250,244,.82));
  box-shadow: var(--shadow-soft);
}
.hero::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 18px;
  width: 120px;
  height: 90px;
  background: url('assets/floral-corner.svg') left top/contain no-repeat;
  opacity: .1;
  pointer-events: none;
}
.hero-cyrillic {
  letter-spacing: .44em;
  font-size: .84rem;
  color: rgba(140, 110, 90, .72);
}
.hero-ornament-a {
  color: rgba(173,34,54,.05);
  font-size: clamp(9rem, 20vw, 14rem);
}
.hero-photo { gap: 10px; }
.hero-photo::before {
  content: 'русский язык';
  position: absolute;
  left: -10px;
  top: -14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,250,244,.92);
  border: 1px solid rgba(171,132,101,.22);
  color: var(--red);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(72,50,34,.08);
}
.photo-shell {
  position: relative;
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(250,244,236,.94));
  box-shadow: 0 24px 52px rgba(72,50,34,.11);
  transform: rotate(-1.5deg);
}
.photo-shell::before,
.photo-shell::after {
  content: '';
  position: absolute;
  width: 76px;
  height: 16px;
  border-radius: 4px;
  background: rgba(214, 191, 166, .55);
  box-shadow: 0 6px 14px rgba(72,50,34,.08);
}
.photo-shell::before { left: 18px; top: -7px; transform: rotate(-8deg); }
.photo-shell::after { right: 18px; bottom: -7px; transform: rotate(8deg); }
.hero-photo figcaption {
  margin: 6px 10px 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 251, 246, .84);
  border: 1px solid rgba(171,132,101,.16);
}
.hero-copy .eyebrow { letter-spacing: .18em; }
.hero h1 {
  max-width: 620px;
  letter-spacing: -.045em;
}
.hero h1 span {
  display: inline-block;
  color: var(--red);
  text-shadow: 0 8px 22px rgba(173,34,54,.10);
}
.hero-lead {
  max-width: 540px;
  font-size: 1.03rem;
  line-height: 1.86;
}
.hero-profile {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(252,246,238,.94));
  border: 1px solid rgba(171,132,101,.18);
  box-shadow: 0 18px 40px rgba(72,50,34,.08);
}
.hero-profile::before {
  width: 62px !important;
  height: 62px !important;
  border-width: 1px !important;
}
.profile-heading span { font-family: var(--font-display); }
.profile-seal {
  background: rgba(255,251,246,.96);
  border-color: rgba(173,34,54,.34);
}

.section {
  position: relative;
  overflow: hidden;
}
.section-kicker span {
  letter-spacing: .16em;
  color: #8f7366;
}
.section-kicker i {
  background: linear-gradient(90deg, rgba(173,34,54,.42), rgba(202,165,75,.32), transparent 92%);
}
.intro-note {
  background: linear-gradient(145deg, #c43849, #ab2236 75%);
  box-shadow: 16px 16px 0 rgba(36, 52, 77, .08);
}
.intro-note::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 20px;
  pointer-events: none;
}
.note-mark { color: rgba(255, 218, 174, .88); }
.stat-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,248,240,.92));
  box-shadow: 0 16px 38px rgba(72,50,34,.06);
}
.stat-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(173,34,54,.88), rgba(202,165,75,.65));
}
.stat-secondary::before { background-image: url('assets/cathedral.svg'); opacity: .18; width: 74px; height: 74px; top: 28px; }
.steps article,
.reflection-list article {
  background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,249,243,.92));
  box-shadow: 0 14px 34px rgba(72,50,34,.05);
}
.steps article { border: 1px solid rgba(171,132,101,.15); }
.project-grid { gap: 24px; }
.project-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,249,243,.95));
  box-shadow: 0 18px 38px rgba(72,50,34,.08);
}
.project-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, rgba(173,34,54,.95), rgba(202,165,75,.75));
}
.project-card:nth-child(2n)::after {
  background: linear-gradient(180deg, rgba(87,121,169,.85), rgba(202,165,75,.72));
}
.project-card:nth-child(3n)::after {
  background: linear-gradient(180deg, rgba(173,34,54,.9), rgba(109,143,184,.7));
}
.project-card::before {
  width: 86px;
  height: 86px;
  right: -6px;
  top: -2px;
  opacity: .12;
}
.project-number {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(253,241,243,.95), rgba(255,255,255,.98));
  box-shadow: inset 0 0 0 1px rgba(173,34,54,.1), 0 8px 16px rgba(72,50,34,.04);
}
.project-card h3 { font-size: 1.34rem; }
.project-card p { line-height: 1.76; }
.project-link {
  align-self: end;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(171,132,101,.18);
}
.project-link:hover { background: #fff; }
.tag-list span {
  background: rgba(248, 226, 230, .48);
  border: 1px solid rgba(173,34,54,.08);
}
.reflection::after { opacity: .09; width: 170px; height: 130px; }
.reflection-list article > span {
  box-shadow: inset 0 0 0 1px rgba(173,34,54,.1), 0 8px 14px rgba(72,50,34,.05);
}
.footer {
  background: linear-gradient(135deg, #24344d, #1c2940 62%, #172338);
  box-shadow: 0 22px 44px rgba(28, 41, 64, .26);
}
.footer::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.footer::after { opacity: .15; }
.footer-monogram {
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.12), transparent 40%), rgba(255,255,255,.06);
}

@media (max-width: 1180px) {
  .hero { padding: 22px 20px 24px; }
}
@media (max-width: 780px) {
  body::after { width: 120px; height: 120px; opacity: .06; }
  .hero-photo::before { left: 6px; top: -10px; }
  .photo-shell::before, .photo-shell::after { width: 54px; }
  .project-card { min-height: 0; }
}
