/* IT-SPACE — EdTech design system */

:root {
  --bg: #f6faf8;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --bg-graphite: #1b2430;
  --bg-graphite-deep: #1b2430;
  --bg-dark: #1b2430;
  --bg-mint: #e8f7f2;
  --bg-mint-soft: rgba(232, 247, 242, 0.65);
  --bg-blue-soft: rgba(91, 141, 239, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.94);
  --accent: #0e7c66;
  --accent-hover: #0a6654;
  --accent-secondary: #5b8def;
  --accent-brand: #0e7c66;
  --accent-emerald: #0e7c66;
  --accent-turquoise: #14b8a6;
  --accent-award: #d4a43a;
  --accent-gold: #d4a43a;
  --accent-gold-soft: #f5ecd6;
  --accent-gold-glow: rgba(212, 164, 58, 0.35);
  --heading: #1b2430;
  --header-brand-size: clamp(1.75rem, 3vw, 2.125rem);
  --header-logo-size: clamp(5rem, 9vw, 6.25rem);
  --header-bg: #ffffff;
  --header-bg-nav: #ffffff;
  --header-text: #1b2430;
  --header-text-muted: #64748b;
  --header-nav-text: #1b2430;
  --header-nav-text-active: #ffffff;
  --header-nav-border: rgba(14, 124, 102, 0.12);
  --accent-soft: rgba(14, 124, 102, 0.08);
  --accent-muted: rgba(232, 247, 242, 0.9);
  --text: #1b2430;
  --text-muted: #5c6773;
  --text-subtle: #8b95a1;
  --text-on-dark: #f8fafc;
  --border: rgba(27, 36, 48, 0.07);
  --border-strong: rgba(27, 36, 48, 0.12);
  --divider-emerald: rgba(14, 124, 102, 0.18);
  --divider-gold: rgba(212, 164, 58, 0.35);
  --font: 'PT Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', var(--font);
  --font-heading: 'Raleway', 'Inter', var(--font-display);
  --font-name: 'Cambria', 'Georgia', 'Times New Roman', serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1140px;
  --header-h: 100px;
  --header-bar-h: 80px;
  --shadow: 0 2px 12px rgba(27, 36, 48, 0.05);
  --shadow-lg: 0 16px 40px rgba(27, 36, 48, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 8px 28px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --bg: #0a0f1f;
  --bg-alt: #0f172a;
  --bg-elevated: #1e293b;
  --bg-glass: rgba(10, 15, 31, 0.9);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --accent-soft: rgba(5, 150, 105, 0.15);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 0 0 1px var(--border);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(14, 124, 102, 0.22);
}
.btn--primary:hover {
  color: #fff;
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 124, 102, 0.28);
}

.btn--secondary {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid rgba(14, 124, 102, 0.28);
}
.btn--secondary:hover {
  color: var(--accent-hover);
  background: var(--bg-mint);
  border-color: rgba(14, 124, 102, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 124, 102, 0.12);
}

.btn--gold-outline {
  background: transparent;
  color: var(--accent-award);
  border: 1px solid var(--accent-award);
}
.btn--gold-outline:hover {
  color: var(--heading);
  background: var(--accent-gold-soft);
  border-color: var(--accent-award);
  box-shadow: 0 0 18px var(--accent-gold-glow);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--text-subtle);
  color: var(--text);
  background: var(--accent-muted);
}

.btn--white {
  background: #fff;
  color: var(--accent-hover);
}
.btn--white:hover { color: var(--accent); transform: translateY(-2px); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; }

.btn-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }

[data-theme="dark"] .icon-sun,
.icon-moon { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.gradient-text {
  color: var(--accent-secondary);
}

.display-font {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Site header — brand bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.site-header__bar {
  background: transparent;
}

.site-header__bar-inner {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 0.75rem 0 0.625rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 1.375rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-header__mark-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 0.375rem;
}

.site-header__mark-stack {
  position: relative;
  width: 100px;
}

.site-header__mark-glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 88%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(45, 212, 191, 0.28) 0%,
    rgba(5, 150, 105, 0.12) 45%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(6px);
}


.site-header__mark {
  width: 100px;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 6px rgba(45, 212, 191, 0.4))
    drop-shadow(0 0 18px rgba(5, 150, 105, 0.22));
}

.site-header__mark-tagline {
  margin: 0;
  max-width: 9.5rem;
  font-size: 0.625rem;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--accent-gold);
}

@media (min-width: 768px) {
  .site-header__mark-tagline {
    display: none;
  }
}

.site-header__brand-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.375rem;
  min-width: 0;
}

.site-header__name {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.7vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-brand);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-text-stroke: 1px rgba(4, 120, 87, 0.4);
  paint-order: stroke fill;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(5, 150, 105, 0.35),
    0 2px 12px rgba(45, 212, 191, 0.2),
    0 4px 16px rgba(5, 150, 105, 0.15);
}

.site-header__brand-divider {
  width: 2px;
  align-self: stretch;
  min-height: 3.5rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 150, 105, 0.35) 20%,
    rgba(5, 150, 105, 0.35) 80%,
    transparent 100%
  );
  flex-shrink: 0;
}

.site-header__slogan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  max-width: min(100%, 480px);
}

.site-header__slogan-line {
  margin: 0;
  font-size: clamp(0.875rem, 1.4vw, 1.0625rem);
  line-height: 1.4;
  color: var(--header-text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-header__slogan-line--lead {
  font-weight: 600;
  color: var(--bg-graphite);
}

.site-header__slogan-line--sub {
  color: var(--header-text-muted);
  font-weight: 400;
}

.site-header__accent {
  color: var(--accent-brand);
  font-weight: 600;
}

/* Footer logo (legacy) */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo__img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  opacity: 0.92;
}
.logo__img--mark {
  width: auto;
  height: 44px;
  max-width: 72px;
  border-radius: 0;
  flex-shrink: 0;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.logo__text small { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}
.burger--header {
  border-color: var(--border-strong);
  background: var(--bg);
}
.burger--header span {
  background: var(--text);
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 992px) {
  .burger--header { display: none; }
}

@media (max-width: 991px) {
  :root {
    --header-h: 112px;
    --header-bar-h: 112px;
  }

  .site-header__bar-inner {
    min-height: 74px;
    padding: 0.625rem 0 0.5rem;
  }

  .site-header__mark-stack {
    width: 78px;
  }

  .site-header__mark {
    width: 78px;
    max-height: 68px;
  }

  .site-header__mark-tagline {
    display: block;
    max-width: 8.5rem;
    font-size: 0.5625rem;
  }

  .site-header__name {
    font-size: clamp(1.5625rem, 5vw, 2rem);
  }

  .site-header__brand-divider,
  .site-header__slogan {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 2rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 72% 35%, rgba(31, 111, 235, 0.07), transparent 65%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 400px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}

.hero__main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.5rem;
}

.hero__slogan {
  max-width: 520px;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.stat-cards--hero {
  grid-template-columns: repeat(2, 1fr);
}

.hero__content {
  max-width: 540px;
  display: flex;
  align-items: center;
}

.hero__eyebrow {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0;
}

.hero__title-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.92em;
  font-weight: 500;
  line-height: 1.45;
  color: var(--accent-secondary);
}

.hero__platform {
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.hero__platform--lead {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.hero__person {
  margin-bottom: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  max-width: 520px;
}

.hero__person--lead {
  padding-top: 0;
  border-top: none;
  margin-bottom: 1.5rem;
}

.hero__person--lead .hero__title {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  font-weight: 700;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.hero__brand:has(.hero__brand-logo) {
  font-size: 0;
  line-height: 0;
  margin-bottom: 1rem;
}

.hero__brand-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-right: 0.25rem;
}

.hero__visual {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-portrait {
  position: relative;
  margin: 0;
  max-width: 400px;
  width: 100%;
  padding-right: 0.75rem;
  padding-bottom: 1.25rem;
}

.hero-portrait__photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.hero-portrait__caption {
  position: absolute;
  left: auto;
  right: -0.5rem;
  bottom: -0.75rem;
  width: calc(100% + 0.5rem);
  min-width: 100%;
  padding: 1.125rem 1.375rem;
  background: #f4f6f9;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  text-align: left;
}

[data-theme="light"] .hero-portrait__caption {
  background: #fff;
  box-shadow: 0 8px 28px rgba(10, 15, 31, 0.12);
}

.hero-portrait__name {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.85vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #1a3351;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.hero-portrait__role {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: #57606a;
  margin: 0;
}

.hero__logo-frame,
.hero__photo-frame {
  position: relative;
  padding: 0.5rem;
}

.hero__logo {
  width: min(100%, 320px);
  height: auto;
  opacity: 0.72;
  filter: saturate(0.85);
}

.hero__photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  pointer-events: none;
}

.hero__photo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.hero__stats,
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.stat-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--accent-secondary);
  background: var(--accent-muted);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-card__label {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.stat {
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.stat__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}
.stat__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

@media (max-width: 991px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__aside { align-items: center; order: -1; }
  .hero__main { align-items: center; text-align: center; order: 0; }
  .hero__slogan { max-width: none; }
  .hero__content { max-width: none; margin-inline: auto; }
  .hero__platform,
  .hero__person { margin-inline: auto; }
  .hero__brand-logo { margin-inline: auto; }
  .hero__desc { margin-inline: auto; }
  .hero__actions { justify-content: center; padding-right: 0; }
  .hero__visual { justify-content: center; }
  .hero-portrait { margin-inline: auto; max-width: min(360px, 92vw); }
  .hero-portrait__caption {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
  }
  .hero-portrait__name {
    white-space: normal;
    font-size: 1.125rem;
  }
  .hero__logo { width: min(220px, 55vw); }
  .hero__photo { width: min(280px, 70vw); margin-inline: auto; }
  .hero__stats,
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-cards--hero { width: 100%; max-width: 520px; }
}
@media (max-width: 520px) {
  .hero__stats,
  .stat-cards { grid-template-columns: 1fr; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--accent-muted);
  color: var(--accent-secondary);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section__header {
  margin-bottom: 3rem;
  max-width: 600px;
}
.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--divider-emerald);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--heading);
}

.section__desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bento__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}
.bento__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 182, 212, 0.3);
}

.bento__card--large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento__card--accent {
  background: linear-gradient(135deg, var(--accent), #059669);
  border-color: transparent;
  color: #fff;
}
.bento__card--accent p,
.bento__card--accent .bento__link { color: rgba(255, 255, 255, 0.9); }
.bento__card--accent .bento__link { font-weight: 600; margin-top: 1rem; display: inline-block; }
.bento__card--accent .bento__link:hover { color: #fff; }

.bento__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.bento__card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.bento__card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 1.25rem;
}
.bento__tags li {
  padding: 0.25rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 991px) {
  .bento { grid-template-columns: 1fr; }
  .bento__card--large { grid-column: span 1; grid-row: span 1; }
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__card-header {
  display: flex;
  gap: 6px;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--red { background: #ef4444; }
.dot--yellow { background: #eab308; }
.dot--green { background: #22c55e; }

.about__code {
  padding: 1.5rem;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-keyword { color: #c084fc; }
.code-string { color: #34d399; }

.about__content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.check-list li {
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-muted);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 991px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  counter-reset: step;
}

.timeline__item {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.timeline__item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.timeline__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.timeline__item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline__item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr; }
}

/* Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case__preview {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.case__preview--1 { background: linear-gradient(135deg, #5eead4 0%, #059669 100%); }
.case__preview--2 { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); }
.case__preview--3 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.case__body { padding: 1.5rem; }

.case__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.case h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.case p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .cases { grid-template-columns: 1fr; }
}

/* CTA */
.cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
  text-align: center;
}

.cta__inner h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta__inner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact__list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__icon { font-size: 1.5rem; flex-shrink: 0; }

.contact__list strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.contact__list a,
.contact__list span {
  color: var(--text);
  font-weight: 500;
}

.contact__form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #ef4444;
}

.form-error {
  display: block;
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.375rem;
  min-height: 1.25rem;
}

.form-success {
  text-align: center;
  color: #22c55e;
  font-weight: 600;
  margin-top: 1rem;
}

.btn__loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 991px) {
  .contact { grid-template-columns: 1fr; gap: 2rem; }
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.logo--footer .logo__text { display: none; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.footer__nav a:hover { color: var(--accent); }

.footer__copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { gap: 1rem; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
}
.back-to-top[hidden] { display: none; }

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate][data-animate-delay="1"] { transition-delay: 0.08s; }
[data-animate][data-animate-delay="2"] { transition-delay: 0.16s; }
[data-animate][data-animate-delay="3"] { transition-delay: 0.24s; }
[data-animate][data-animate-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .btn--primary:hover,
  .bento__card:hover,
  .case:hover,
  .card:hover,
  .home-card:hover,
  .hero-nav-card:hover,
  .project-card:hover { transform: none; }
}

/* ── Content pages (it-espace.by) ── */

.prose { color: var(--text-muted); }
.prose p { margin-bottom: 1rem; }
.prose h3 {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}
.prose ul { margin: 0 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--accent); }

.bio {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}
.bio__photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  .bio { grid-template-columns: 1fr; }
  .bio__photo { max-width: 280px; margin: 0 auto; }
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.info-card {
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.info-card__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.info-card__value {
  font-weight: 700;
  color: var(--accent);
}
@media (max-width: 600px) {
  .info-cards { grid-template-columns: 1fr; }
}

.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-list li {
  padding: 0.75rem 0 0.75rem 1.25rem;
  border-left: 2px solid var(--accent);
  margin-bottom: 0.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 124, 102, 0.18);
  box-shadow: var(--shadow-card-hover);
}
.card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.card ul { margin-left: 1.25rem; color: var(--text-muted); }
.card li { margin-bottom: 0.5rem; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 0.375rem 0; }

.subsection-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

/* Gallery */
.gallery-row { margin-top: 2rem; }
.gallery-row__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.gallery--compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.gallery__item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.gallery__item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.gallery__item--static {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* Students slider */
.students-slider { position: relative; }
.students-slider__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.students-slider__track::-webkit-scrollbar { display: none; }
.student-card {
  flex: 0 0 min(300px, 85vw);
  scroll-snap-align: start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.student-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.student-card__body { padding: 1.25rem; }
.student-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.student-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.students-slider__nav {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.student-card--catalog {
  flex: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.student-card__photo-link {
  display: block;
}

.student-card__photo-link img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.student-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.06));
  color: #047857;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.student-card__placeholder--coauthor,
.student-case-hero__placeholder--coauthor {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(37, 99, 235, 0.06));
  color: #1d4ed8;
}

.student-card--coauthor .student-card__achievements {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.08);
}

.student-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #064e3b;
}

.student-card__institution {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.student-card__years {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #047857;
  margin-bottom: 0.75rem;
}

.student-card__info {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
}

.student-card--link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.student-card--link:hover,
.student-card--link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border-color: rgba(4, 120, 87, 0.35);
}

.student-card--link:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
}

.student-card__photo-wrap {
  display: block;
  overflow: hidden;
}

.student-card__photo-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.student-card__achievements {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  background: rgba(4, 120, 87, 0.08);
  border-radius: 999px;
}

.student-card__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #047857;
}

.students-catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.students-catalog__search {
  flex: 1 1 16rem;
}

.students-catalog__search input,
.students-catalog__filter select {
  width: 100%;
  min-height: 42px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font: inherit;
}

.students-catalog__search input:focus,
.students-catalog__filter select:focus {
  outline: none;
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.students-catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

.students-catalog__filter {
  min-width: min(100%, 16rem);
}

.students-catalog__count {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.students-catalog__status {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #047857;
}

.students-catalog__status--error {
  color: #b91c1c;
}

.students-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.students-catalog__empty {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.triumphs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .students-catalog__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .students-catalog__filter {
    width: 100%;
  }
}

/* Projects archive */
.projects-archive__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.projects-archive__search {
  flex: 1 1 16rem;
}

.projects-archive__search input,
.projects-archive__filter select {
  width: 100%;
  min-height: 42px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font: inherit;
}

.projects-archive__search input:focus,
.projects-archive__filter select:focus {
  outline: none;
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.projects-archive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

.projects-archive__filter {
  min-width: min(100%, 16rem);
}

.projects-archive__count {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.projects-archive__status {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #047857;
}

.projects-archive__status--error {
  color: #b91c1c;
}

.projects-archive__empty {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.projects-archive__groups {
  display: grid;
  gap: 2rem;
}

.projects-archive__year-group {
  display: grid;
  gap: 1rem;
}

.projects-archive__year-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  color: #0f172a;
}

.projects-archive__grid {
  margin-top: 0;
  align-items: stretch;
}

.project-card--case {
  width: 100%;
  height: 100%;
}

.project-card--case h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.project-card--case .project-card__body--center {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-card--case .project-card__case-authors {
  margin: 0.625rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}

.project-card--case .project-card__case-institution {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.project-card--case .project-card__view-btn {
  margin-top: auto;
  padding-top: 0.875rem;
}

.project-card--case .project-card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  padding: 0.75rem;
  overflow: hidden;
}

.project-card--case .project-card__thumb-img--photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.project-card--case .project-card__thumb-img--placeholder {
  display: block;
  width: auto;
  max-width: min(100%, 10rem);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  object-position: center;
}


body[data-page="project-case"] .page-head {
  padding-bottom: 0.5rem;
  border-bottom: none;
}

body[data-page="project-case"] .section {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.project-case-page {
  width: 100%;
  max-width: none;
}

.project-case-page__title {
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  border-bottom: 1px solid var(--border);
}

.project-case-page__back {
  margin: 1.25rem 0 0;
}

.project-case-page__body {
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.project-case-page__content {
  min-width: 0;
}

.project-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.project-case-layout__photos {
  min-width: 0;
  width: 100%;
}

.project-case-details--results {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.project-case-details {
  display: grid;
  gap: 1.125rem;
  margin: 0;
}

.project-case-details__item {
  display: grid;
  gap: 0.375rem;
}

.project-case-details__item dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-case-details__item dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
}

.project-case-details__empty {
  color: var(--text-muted);
}

.project-case-details__item dd a {
  color: var(--accent);
  word-break: break-all;
}

.project-case-details__item dd a:hover {
  text-decoration: underline;
}

.project-case-results {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-case-results__year-group {
  display: grid;
  gap: 0.625rem;
}

.project-case-results__year-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.project-case-results__year-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-case-results__item {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.project-case-results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #334155;
}

.project-case-results__full {
  color: #334155;
}

.project-case-results__sep {
  color: #94a3b8;
}

.project-case-results__diploma-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.project-case-results__diploma-view {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #64748b;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.project-case-results__diploma-view:hover {
  color: var(--accent);
  border-color: rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.06);
}

@media (max-width: 640px) {
  .project-case-results__diploma-wrap {
    margin-left: 0;
  }
}

.project-case__photos:not(.project-case__photos--sidebar) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.625rem;
}

.project-case__photos.project-case__photos--sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
}

.project-case__photos.project-case__photos--sidebar .project-case__photo {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  height: auto;
  background: #f8fafc;
}

.project-case__photos.project-case__photos--sidebar .project-case__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.project-case__photo {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.project-case__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .project-case-layout {
    grid-template-columns: 1fr;
  }

  .project-case__photos.project-case__photos--sidebar {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .project-case-page__body,
  .student-case-page__body {
    padding: 1.125rem 1rem;
  }
}

/* Student / coauthor case pages */
body[data-page="student-case"] .page-head,
body[data-page="coauthor-case"] .page-head {
  padding-bottom: 1rem;
}

body[data-page="student-case"] .section,
body[data-page="coauthor-case"] .section {
  padding-top: 1.5rem;
}

.student-case-page {
  width: 100%;
  max-width: none;
}

.student-case-page__title {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  border-bottom: 1px solid var(--border);
}

.student-case-page__body {
  padding: 1.5rem 1.75rem;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.student-case-page__content {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.student-case-page__back {
  margin: 1rem 0 0;
}

.student-case-hero {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.student-case-hero__photo-link,
.student-case-hero__photo,
.student-case-hero__placeholder {
  display: block;
  width: 9rem;
  height: 9rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.student-case-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-case-hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #047857;
  background: rgba(4, 120, 87, 0.08);
}

.student-case-hero__meta {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.student-case-hero__meta div {
  display: grid;
  gap: 0.15rem;
}

.student-case-hero__meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.student-case-hero__meta dd {
  margin: 0;
  font-size: 0.9375rem;
}

.student-case-hero__info {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.student-case-stats {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.125rem;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: var(--radius);
  background: rgba(29, 78, 216, 0.03);
}

@media (min-width: 640px) {
  .student-case-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }
}

.student-case-stats__heading {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.student-case-stats__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-case-stats__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem 0.25rem 0.375rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.student-case-stats__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.student-case-stats__badge {
  font-size: 0.75rem;
}

.student-case-stats__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e3a8a;
  background: rgba(29, 78, 216, 0.1);
}

.student-case-results__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.student-case-results__type {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.student-case-results__work,
.student-case-results__coauthors {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.student-case-results__coauthors {
  color: var(--text-muted);
}

.student-case-results__empty {
  margin: 0;
  color: var(--text-muted);
}

.student-case-news {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body[data-page="coauthor-case"] .student-case-news {
  margin-inline: calc(-1.75rem - 1rem);
  padding-inline: calc(1.75rem + 1rem);
}

body[data-page="coauthor-case"] .student-case-page__body {
  overflow: visible;
}

body[data-page="coauthor-case"] .student-case-news .news-card__title {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

@media (min-width: 768px) {
  body[data-page="coauthor-case"] .student-case-news .news-grid--emerald.news-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  body[data-page="coauthor-case"] .student-case-news .news-grid--emerald.news-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-page="coauthor-case"] .student-case-news {
    margin-inline: calc(-1rem - 0.5rem);
    padding-inline: calc(1rem + 0.5rem);
  }
}

@media (max-width: 640px) {
  .student-case-hero {
    grid-template-columns: 1fr;
  }

  .student-case-hero__photo-link,
  .student-case-hero__photo,
  .student-case-hero__placeholder {
    width: 100%;
    max-width: 12rem;
    height: auto;
    aspect-ratio: 1;
  }
}


@media (max-width: 640px) {
  .projects-archive__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-archive__filter {
    width: 100%;
  }
}

/* Competitions */
.competitions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.competition {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.competition:hover { border-color: var(--accent); }
.competition img {
  max-width: 160px;
  max-height: 100px;
  object-fit: contain;
  margin: 0 auto;
}
.competition h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.competition p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .competition { grid-template-columns: 1fr; text-align: center; }
}

/* Accordion */
.accordion {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.accordion summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform var(--transition);
}
.accordion[open] summary::after { content: '−'; }
.accordion__body {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.accordion__body h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1.25rem 0 0.5rem;
}
.project-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.project-links li { margin-bottom: 0.375rem; }
.project-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.project-links a:hover { color: var(--accent); }

/* Banners */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.banner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  min-height: 100px;
}
.banner-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.banner-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.contact-simple {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.contact-simple p { margin-bottom: 0.75rem; color: var(--text-muted); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
}

/* Multi-page */
.hero--compact {
  min-height: auto;
  padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
}
.hero--compact .hero__title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.hero--compact .hero__desc { margin-bottom: 0; }

.page-head {
  padding: calc(var(--header-h) + 0.25rem) 0 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0;
}
.page-head__lead {
  margin-top: 0.75rem;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--border);
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.nav-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--transition);
}
.nav-card:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.nav-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.nav-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
.nav-card__arrow {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer__nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer__nav a:hover { color: var(--accent); }

body.has-page-head .hero { display: none; }

/* Brand components */
.neon-icon,
.wire-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--accent-muted);
  color: var(--accent-secondary);
  margin-bottom: 1.25rem;
  transition: border-color var(--transition), color var(--transition);
}
.direction-card:hover .neon-icon,
.direction-card:hover .wire-icon {
  border-color: var(--border-strong);
  color: var(--accent);
}

.directions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.direction-card {
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.direction-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.direction-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.direction-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.achievement-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.achievement-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.achievement-tile:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.achievement-tile img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.achievement-tile h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.achievement-tile p {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.itschool-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.itschool-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.itschool-panel p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}
.itschool-panel__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.itschool-panel__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.itschool-panel__features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.itschool-panel__visual {
  display: flex;
  justify-content: center;
}
.itschool-panel__logo {
  width: min(100%, 240px);
  opacity: 0.65;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
.project-card:hover {
  color: var(--text);
  border-color: rgba(14, 124, 102, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.project-card__thumb {
  height: 160px;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card__thumb--icon {
  color: var(--accent-secondary);
  opacity: 0.7;
}
.project-card__body { padding: 1.25rem; flex: 1; }
.project-card__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.project-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.about-teaser {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}
.about-teaser__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.about-teaser__photo img {
  width: 100%;
  height: auto;
  display: block;
}
.about-teaser__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.about-teaser__content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.section__title {
  font-family: var(--font-heading);
}

.page-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-family: var(--font-display);
}

.cta {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  position: relative;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, var(--accent-muted), transparent);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta__inner h2 { font-family: var(--font-display); }
.cta__inner p { color: var(--text-muted); opacity: 1; }

.bento__card:hover,
.case:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.case__preview {
  position: relative;
  display: grid;
  place-items: center;
}
.case__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .directions { grid-template-columns: repeat(2, 1fr); }
  .achievement-tiles { grid-template-columns: repeat(3, 1fr); }
  .itschool-panel { grid-template-columns: 1fr; padding: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .directions { grid-template-columns: 1fr; }
  .achievement-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ——— Personal brand homepage ——— */
.hero--personal {
  --hero-bg: #f6faf8;
  position: relative;
  padding: calc(var(--header-h) + 0.5rem) 0 4rem;
  overflow-x: clip;
  overflow-y: visible;
  background: linear-gradient(180deg, #ffffff 0%, var(--hero-bg) 55%, var(--hero-bg) 100%);
  color: var(--text);
}

.hero--personal::before {
  display: none;
}

.hero-personal__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 35% at 88% 18%, rgba(16, 185, 129, 0.06) 0%, transparent 62%);
  opacity: 0.85;
}

.hero-personal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-personal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "identity photo"
    "story photo"
    "stats stats"
    "nav nav"
    "news news";
  gap: clamp(0.625rem, 1.5vw, 1rem) clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  min-width: 0;
}

.hero-personal__identity {
  grid-area: identity;
}

.hero-personal__photo-wrap {
  grid-area: photo;
  align-self: start;
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .hero-personal__photo-wrap {
    grid-row: 1 / 3;
  }
}

.hero-personal__story {
  grid-area: story;
}

.hero-personal__achievements {
  grid-area: stats;
}

.hero-personal__nav-cards {
  grid-area: nav;
  margin-top: clamp(0.5rem, 1vw, 0.875rem);
}

.hero-personal__news-block {
  grid-area: news;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(14, 124, 102, 0.12);
}

.hero-personal__news-head {
  margin-bottom: 1.5rem;
}

.hero-personal__news-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  color: var(--heading);
}

.hero-personal__news-more {
  margin: 1.5rem 0 0;
  text-align: center;
}

.home-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.125rem, 2vw, 1.375rem);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home-card:hover {
  border-color: rgba(5, 150, 105, 0.22);
  box-shadow: var(--shadow-card-hover);
}

@media (min-width: 992px) {
  .home-card:hover {
    transform: translateY(-2px);
  }
}

.home-card--about {
  grid-area: about;
}

.home-card--news {
  grid-area: news;
}

.home-card--achievements {
  grid-area: achievements;
}

.home-card--sections {
  grid-area: sections;
}

.home-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--divider-emerald);
}

.home-card__head--compact {
  margin-bottom: 0.875rem;
}

.home-card__head-text {
  flex: 1;
  min-width: 0;
}

.home-card__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.125rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(45, 212, 191, 0.08) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.home-card__label {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bg-graphite);
}

.home-card__desc {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.home-card__divider {
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(90deg, var(--divider-emerald) 0%, var(--divider-gold) 50%, transparent 100%);
}

.home-card__pulse {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55);
  animation: hero-news-pulse 2.4s ease-out infinite;
}

.hero-personal__sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.hero-personal__identity {
  margin-bottom: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow: visible;
}

.hero-personal__story {
  margin-bottom: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.hero-personal__photo-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-shrink: 0;
  overflow: visible;
  justify-self: end;
  margin: 0;
}

.hero-personal__photo-wrap::before {
  content: '';
  position: absolute;
  inset: -14%;
  border-radius: 1.35rem;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-personal__name {
  font-family: var(--font-name);
  font-size: clamp(2rem, 5.2vw, 3.375rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--heading);
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  padding-left: 0.0625em;
}

@media (min-width: 992px) {
  .hero-personal__name {
    white-space: nowrap;
  }
}

.hero-personal__name-accent {
  color: var(--accent);
}

.hero-personal__identity-rule {
  width: 100%;
  height: 2px;
  margin: 0.875rem 0 0;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(14, 124, 102, 0.45) 0%, rgba(45, 212, 191, 0.25) 55%, transparent 100%);
}

.hero-personal__roles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #64748b;
  min-width: 0;
}

.hero-personal__roles li {
  position: relative;
  padding-left: 1rem;
}

.hero-personal__roles li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 6px rgba(45, 212, 191, 0.45);
}

.hero-personal__story p {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  color: #475569;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.hero-personal__achievements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem clamp(1rem, 2vw, 1.5rem);
  list-style: none;
  margin: clamp(0.75rem, 1.2vw, 1rem) 0 0;
  padding: clamp(0.875rem, 1.5vw, 1.125rem) 0;
  width: 100%;
  border-top: 1px solid rgba(14, 124, 102, 0.12);
  border-bottom: 1px solid rgba(14, 124, 102, 0.12);
}

.hero-achievement {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-width: 0;
}

.hero-achievement:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.hero-achievement__icon {
  flex-shrink: 0;
  width: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.45;
  text-align: center;
}

.hero-achievement__text {
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.45;
  color: #475569;
}

.hero-personal__nav-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1rem);
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.2vw, 0.875rem);
  min-height: clamp(8rem, 18vw, 10.5rem);
  padding: clamp(1.125rem, 2.2vw, 1.625rem) clamp(0.5rem, 1.2vw, 0.875rem);
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(14, 124, 102, 0.1);
  border-radius: clamp(12px, 2vw, 16px);
  box-shadow: var(--shadow-card);
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.hero-nav-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 124, 102, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, rgba(14, 124, 102, 0.04) 100%);
  box-shadow: var(--shadow-card-hover);
  color: var(--text);
}

.hero-nav-card--featured {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, #ffffff 100%);
  border-color: rgba(14, 124, 102, 0.22);
  box-shadow: var(--shadow-card);
}

.hero-nav-card--featured:hover {
  border-color: rgba(14, 124, 102, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, #ffffff 100%);
  box-shadow: var(--shadow-card-hover);
}

.hero-nav-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.75rem, 10vw, 5rem);
  height: clamp(3.75rem, 10vw, 5rem);
  flex-shrink: 0;
  border-radius: 14px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.14) 0%, rgba(5, 150, 105, 0.1) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  overflow: hidden;
}

.hero-nav-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  transform: scale(1.08);
}

.hero-nav-card:hover .hero-nav-card__icon {
  color: #047857;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22) 0%, rgba(5, 150, 105, 0.16) 100%);
  transform: scale(1.05);
}

.hero-nav-card__icon svg {
  width: 58%;
  height: 58%;
}

.hero-nav-card__title {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.1vw, 0.9375rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #064e3b;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero-nav-card:hover .hero-nav-card__title {
  color: #047857;
}

@media (max-width: 900px) {
  .hero-personal__nav-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hero-nav-card {
    min-height: clamp(6.5rem, 22vw, 8rem);
  }
}

.hero-personal__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(10.5rem, 18vw, 15rem);
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center top;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.hero-personal__news {
  min-width: 0;
}

.hero-news {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-card--news .hero-news {
  min-height: 12rem;
}

.hero-news--loading,
.hero-news--error {
  min-height: 8rem;
}

.hero-news__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.hero-news__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-news__pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55);
  animation: hero-news-pulse 2.4s ease-out infinite;
}

@keyframes hero-news-pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.hero-news__title {
  margin: 0;
  font-family: var(--font-display, var(--font-body));
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-news__subtitle {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
}

.hero-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-height: min(24rem, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(5, 150, 105, 0.35) transparent;
}

.hero-news__list::-webkit-scrollbar {
  width: 5px;
}

.hero-news__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.28);
}

.hero-news__list-item {
  min-width: 0;
}

.hero-news__item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: background var(--transition), transform var(--transition);
}

.hero-news__item-link:hover {
  background: rgba(5, 150, 105, 0.06);
  transform: translateX(2px);
}

.hero-news__item-link:focus-visible {
  outline: 2px solid rgba(5, 150, 105, 0.45);
  outline-offset: 2px;
}

.hero-news__item {
  padding: 0.75rem 0.625rem;
  border-left: 2px solid rgba(5, 150, 105, 0.18);
}

.hero-news__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.hero-news__date {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #94a3b8;
  white-space: nowrap;
}

.hero-news__tag {
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent);
}

.hero-news__tag--win {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.hero-news__tag--project {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.hero-news__tag--it {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
}

.hero-news__tag--site {
  background: rgba(14, 116, 144, 0.1);
  color: #0e7490;
}

.hero-news__item-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1e293b;
}

.hero-news__item-summary {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #64748b;
}

.hero-news__empty {
  margin: 0;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.btn--hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  min-height: 52px;
  padding: 0 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 12px;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--hero-primary {
  background: #064e3b;
  color: #ffffff;
  border: 1px solid #064e3b;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.2);
}

.btn--hero-primary:hover {
  background: #065f46;
  border-color: #065f46;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 78, 59, 0.26);
}

.btn--hero-outline {
  background: #ffffff;
  color: #064e3b;
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.btn--hero-outline:hover {
  background: #ffffff;
  border-color: rgba(5, 150, 105, 0.55);
  color: #064e3b;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.12);
}

.timeline-path {
  position: relative;
  list-style: none;
  max-width: 640px;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
}

.timeline-path__item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}

.timeline-path__item::before {
  content: '';
  position: absolute;
  left: -1.625rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-path__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline-path__item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pub-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  color: var(--text);
  transition: background var(--transition);
}

.pub-list a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.pub-list span {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .hero--personal {
    padding: calc(var(--header-h) + 0.875rem) 0 3.5rem;
  }
  .hero-personal {
    gap: 1.75rem;
  }
  .hero-personal__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "photo"
      "story"
      "stats"
      "nav"
      "news";
    gap: 1rem;
  }
  .hero-personal__photo-wrap {
    grid-row: auto;
    justify-content: flex-start;
    justify-self: start;
    margin: 0;
    width: auto;
    padding: 0;
    overflow: visible;
  }
  .hero-personal__identity {
    text-align: left;
  }
  .hero-personal__identity-rule {
    margin-inline: 0;
  }
  .hero-personal__name {
    font-size: clamp(1.625rem, 5.5vw, 2.25rem);
    margin-inline: 0;
    white-space: normal;
    text-align: left;
    letter-spacing: 0;
    line-height: 1.15;
    padding-left: 0.125rem;
    padding-right: 0.125rem;
  }
  .hero-personal__story,
  .hero-personal__achievements,
  .hero-personal__nav-cards {
    max-width: none;
  }
  .hero-personal__roles {
    max-width: none;
    width: 100%;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
  }
  .hero-personal__story p {
    font-size: clamp(0.9375rem, 2.8vw, 1.0625rem);
    line-height: 1.75;
    color: #475569;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
  }
  .hero-personal__achievements {
    grid-template-columns: 1fr;
    gap: 0.625rem;
    margin-top: 0.375rem;
    padding: 0.875rem 0;
  }

  .hero-achievement:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .hero-achievement__text {
    text-align: left;
  }
  .hero-personal__nav-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.25rem;
  }
  .hero-nav-card {
    min-height: clamp(7.75rem, 25vw, 9.5rem);
    padding: clamp(1.25rem, 3vw, 1.5rem) clamp(0.625rem, 1.5vw, 0.875rem);
  }
  .hero-personal__photo {
    width: min(168px, 42vw);
    border-radius: 0;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .hero-personal__nav-cards {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .hero-nav-card {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    min-height: clamp(5rem, 16vw, 6rem);
    padding: 1.125rem 1.25rem;
    text-align: left;
  }

  .hero-nav-card__icon {
    width: clamp(3.5rem, 14vw, 4.5rem);
    height: clamp(3.5rem, 14vw, 4.5rem);
  }

  .hero-nav-card__title {
    font-size: 0.9375rem;
    text-align: left;
  }
}

.hero--edtech {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-edtech {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-edtech__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-edtech__lead {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  max-width: 540px;
  margin-bottom: 0.75rem;
}

.hero-edtech__sub {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-edtech__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-edtech__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 600px;
}

.hero-edtech__stats li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.hero-edtech__stats li span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero-edtech__mentor {
  text-align: center;
  flex-shrink: 0;
}

.hero-edtech__photo {
  width: 200px;
  height: auto;
  border-radius: var(--radius-lg);
  opacity: 0.92;
  margin: 0 auto 0.75rem;
}

.hero-edtech__mentor-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-edtech__mentor-role {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.section--spacious { padding: clamp(5rem, 10vw, 7rem) 0; }

#background,
#expertise,
#projects,
#achievements {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.75rem; }

.edu-card {
  padding: 1.75rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.edu-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.edu-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.edu-card ul {
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.edu-card li {
  padding: 0.25rem 0 0.25rem 1rem;
  position: relative;
}
.edu-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-secondary);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  padding: 1.5rem;
}
.benefit-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}
.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.project-card--edu .project-card__body { padding: 1.5rem; }
.project-card--edu h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }

.gallery-edu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.gallery-edu a {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}
.gallery-edu a:hover { transform: scale(1.02); }
.gallery-edu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-platform {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 800px;
}
.about-platform__photo {
  border-radius: var(--radius-lg);
  width: 100%;
  opacity: 0.9;
}
.about-platform h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.about-platform__role {
  color: var(--accent-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}
.about-platform p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.section__more {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.section--cta {
  padding-bottom: 5rem;
}

.section-cta {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
}

.section-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-cta__desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.review-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.review-card__author cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
}

.review-card__author span {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.review-card {
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.review-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}
.review-card cite {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.contact-list strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}

.enroll-section {
  background: linear-gradient(135deg, var(--accent) 0%, #047857 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.enroll-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.enroll-section > p {
  opacity: 0.9;
  margin-bottom: 2rem;
}
.enroll-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.enroll-form .form-group label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
}
.enroll-form input,
.enroll-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
}
.enroll-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.enroll-form .btn--white {
  width: 100%;
  margin-top: 0.5rem;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
}

.contact-form {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}

.contact-form h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
}

.contact-form label span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .header__cta { display: inline-flex; }
}

@media (max-width: 991px) {
  .hero-edtech { grid-template-columns: 1fr; text-align: center; }
  .hero-edtech__lead,
  .hero-edtech__sub { margin-inline: auto; }
  .hero-edtech__actions { justify-content: center; }
  .hero-edtech__stats {
    grid-template-columns: repeat(2, 1fr);
    margin-inline: auto;
  }
  .hero-edtech__mentor { order: -1; }
  .hero-edtech__photo { width: 160px; }
  .about-platform { grid-template-columns: 1fr; text-align: center; }
  .about-platform__photo { max-width: 180px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Triumphs section (homepage) */
.home-triumphs-stats {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  margin: 0 0 2rem;
  padding: clamp(1.125rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(5, 150, 105, 0.16);
  border-radius: clamp(14px, 2vw, 18px);
  background: linear-gradient(135deg, #ffffff 0%, rgba(16, 185, 129, 0.05) 100%);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.05),
    0 0 32px rgba(16, 185, 129, 0.06);
}

@media (min-width: 768px) {
  .home-triumphs-stats {
    grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .home-triumphs-stats {
    grid-template-columns: 26rem minmax(0, 1fr);
    gap: 1.75rem 2.25rem;
  }
}

.home-triumphs-stats__loading,
.home-triumphs-stats__empty {
  margin: 0;
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.home-triumphs-stats__summary {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  padding: 0.75rem 0.875rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.1);
}

.home-triumphs-stats__total-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: #064e3b;
}

.home-triumphs-stats__total-label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: #047857;
}

.home-triumphs-stats__note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.home-triumphs-stats__years {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(5, 150, 105, 0.14);
}

.home-triumphs-stats__years-current {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 0.875rem;
  padding: 0.625rem 0.75rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.12);
}

.home-triumphs-stats__years-current-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #064e3b;
}

.home-triumphs-stats__years-current-meta .home-triumphs-stats__year-meta {
  font-size: 0.875rem;
}

.home-triumphs-stats__years-current-value,
.home-triumphs-stats__years-current-text {
  display: none;
}

.home-triumphs-stats__years-title {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.home-triumphs-stats__years-hint {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.home-triumphs-stats__years-list {
  display: grid;
  gap: 0.35rem;
  max-height: 22rem;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.home-triumphs-stats__year-item {
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.home-triumphs-stats__year-item--current {
  color: #064e3b;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.14);
}

.home-triumphs-stats__year-item:has(.home-triumphs-stats__year-details[open]) {
  background: rgba(255, 255, 255, 0.95);
}

.home-triumphs-stats__year-item--current:has(.home-triumphs-stats__year-details[open]) {
  background: rgba(16, 185, 129, 0.12);
}

.home-triumphs-stats__year-details {
  border-radius: inherit;
}

.home-triumphs-stats__year-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.home-triumphs-stats__year-summary::-webkit-details-marker {
  display: none;
}

.home-triumphs-stats__year-summary-right {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.375rem;
  flex-shrink: 0;
  max-width: 62%;
}

.home-triumphs-stats__year-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem 0.35rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #475569;
  text-align: right;
}

.home-triumphs-stats__year-meta strong {
  font-weight: 800;
  color: #064e3b;
}

.home-triumphs-stats__year-meta-sep {
  color: #94a3b8;
}

.home-triumphs-stats__year-item--current .home-triumphs-stats__year-meta {
  color: #047857;
}

.home-triumphs-stats__year-item--current .home-triumphs-stats__year-meta strong {
  color: #064e3b;
}

.home-triumphs-stats__year-toggle {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.home-triumphs-stats__year-details[open] .home-triumphs-stats__year-toggle {
  transform: rotate(-135deg) translateY(-1px);
}

.home-triumphs-stats__year-panel {
  padding: 0 0.5rem 0.55rem;
}

.home-triumphs-stats__year-projects {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(5, 150, 105, 0.12);
}

.home-triumphs-stats__year-projects-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.home-triumphs-stats__year-projects-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.home-triumphs-stats__year-projects-list li {
  position: relative;
  padding-left: 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #334155;
}

.home-triumphs-stats__year-projects-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #047857;
}

.home-triumphs-stats__year-projects-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.home-triumphs-stats__year-grid {
  display: grid;
  gap: 0.25rem;
}

.home-triumphs-stats__year-grid-row {
  display: grid;
  grid-template-columns: minmax(4.25rem, 1.1fr) repeat(4, minmax(1.35rem, 1fr)) minmax(1.65rem, 1.05fr);
  gap: 0.25rem 0.28rem;
  align-items: center;
}

.home-triumphs-stats__year-grid-row--head {
  margin-bottom: 0.125rem;
}

.home-triumphs-stats__year-grid-row--total {
  margin-top: 0.125rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(5, 150, 105, 0.12);
  font-weight: 700;
  color: #064e3b;
}

.home-triumphs-stats__year-grid-level {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.home-triumphs-stats__year-grid-row--total .home-triumphs-stats__year-grid-level,
.home-triumphs-stats__year-grid-row--total .home-triumphs-stats__year-grid-num--other,
.home-triumphs-stats__year-grid-row--total .home-triumphs-stats__year-grid-num--sum {
  color: #064e3b;
}

.home-triumphs-stats__year-grid-head {
  justify-self: center;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
}

.home-triumphs-stats__year-grid-head--other {
  font-size: 0.625rem;
  line-height: 1.2;
  text-align: center;
  color: #475569;
  background: rgba(148, 163, 184, 0.16);
  border-radius: 999px;
}

.home-triumphs-stats__year-grid-num--other {
  color: #475569;
}

.home-triumphs-stats__year-grid-head--sum,
.home-triumphs-stats__year-grid-num--sum {
  color: #064e3b;
  font-weight: 800;
}

.home-triumphs-stats__year-grid-head--sum {
  font-size: 0.625rem;
  line-height: 1.2;
  text-align: center;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 999px;
}

.home-triumphs-stats__year-grid-num--sum {
  justify-self: center;
  min-width: 1.35rem;
  font-size: 0.8125rem;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 6px;
  padding: 0.1rem 0.2rem;
}

.home-triumphs-stats__year-grid-num {
  justify-self: center;
  min-width: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}

.home-triumphs-stats__year-grid-num--d1 {
  color: #dc2626;
  font-weight: 800;
}

.home-triumphs-stats__year-grid-num--d2 {
  color: #2563eb;
  font-weight: 800;
}

.home-triumphs-stats__year-grid-num--d3 {
  color: #16a34a;
  font-weight: 800;
}

.home-triumphs-stats__year-label {
  min-width: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.home-triumphs-stats__year-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #047857;
}

.home-triumphs-stats__year-value {
  display: none;
}

.home-triumphs-stats__groups,
.home-triumphs-stats__breakdown-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.home-triumphs-stats__breakdown-wrap {
  align-content: start;
  min-width: 0;
}

.home-triumphs-stats__level-group {
  padding: 0.875rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.1);
}

.home-triumphs-stats__level-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem 0.5rem;
  margin: 0 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: #064e3b;
}

.home-triumphs-stats__level-total {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: #047857;
}

.home-triumphs-stats__breakdown {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-triumphs-stats__breakdown--degrees {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
}

.home-triumphs-stats__breakdown--other {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(5, 150, 105, 0.1);
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.home-triumphs-stats__breakdown-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.375rem;
  min-height: 2.25rem;
  padding: 0.375rem 0.5rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #334155;
  background: rgba(248, 250, 252, 0.92);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.home-triumphs-stats__breakdown--degrees .home-triumphs-stats__breakdown-item {
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}

.home-triumphs-stats__breakdown--degrees .home-triumphs-stats__dash {
  display: none;
}

.home-triumphs-stats__breakdown--degrees .home-triumphs-stats__value {
  font-size: 1.0625rem;
}

.home-triumphs-stats__dash {
  color: var(--text-muted);
}

.home-triumphs-stats__value {
  min-width: 1.25rem;
  font-weight: 700;
  color: #064e3b;
}

.home-triumphs-stats__heading {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.home-triumphs-stats__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.home-triumphs-stats__badge {
  font-size: 0.75rem;
}

.triumphs-brief {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.triumphs-brief li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
}

.triumphs-brief li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.4);
}

.triumphs-gallery {
  max-width: 920px;
  margin-inline: auto;
}

.triumphs-archive-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: center;
  max-width: 920px;
  margin: 2.5rem auto 0;
  padding: clamp(1.125rem, 2.5vw, 1.5rem);
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #ffffff 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: clamp(14px, 2vw, 18px);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.06),
    0 0 32px rgba(16, 185, 129, 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.triumphs-archive-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 150, 105, 0.32);
  box-shadow:
    0 12px 32px rgba(5, 150, 105, 0.12),
    0 0 40px rgba(16, 185, 129, 0.16);
}

.triumphs-archive-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(7rem, 16vw, 9.5rem);
  height: clamp(7rem, 16vw, 9.5rem);
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.triumphs-archive-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.triumphs-archive-card__media--placeholder {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(37, 99, 235, 0.06));
}

.triumphs-archive-card__media--placeholder span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #1d4ed8;
}

.triumphs-archive-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  min-width: 0;
}

.triumphs-archive-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
}

.triumphs-archive-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  color: #064e3b;
}

.triumphs-archive-card__desc {
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  line-height: 1.55;
  color: #64748b;
}

.triumphs-archive-card__link {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

.triumphs-archive-card:hover .triumphs-archive-card__link {
  color: #047857;
}

@media (max-width: 640px) {
  .triumphs-archive-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .triumphs-archive-card__media {
    margin-inline: auto;
  }

  .triumphs-archive-card__body {
    align-items: center;
  }
}

/* Victory archive */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-head__lead code {
  font-size: 0.875em;
  padding: 0.125rem 0.375rem;
  border-radius: 6px;
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
}

.victory-archive__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.victory-archive__search {
  flex: 1 1 280px;
}

.victory-archive__search input,
.victory-archive__filter select {
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.victory-archive__search input:focus,
.victory-archive__filter select:focus {
  outline: none;
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.victory-archive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

.victory-archive__filter {
  min-width: 180px;
}

.victory-archive__count {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}

.victory-archive__section {
  margin-top: 2rem;
}

.victory-archive__section:first-of-type {
  margin-top: 0;
}

.victory-archive__section--it {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.victory-archive__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.victory-archive__section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
}

.victory-archive__section-lead {
  flex: 1 1 100%;
  margin: -0.25rem 0 0;
  font-size: 0.9375rem;
  color: #64748b;
}

.victory-archive__section-count {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.victory-archive-card--it {
  border-color: rgba(14, 165, 233, 0.25);
}

.victory-archive__status {
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  font-size: 0.9375rem;
}

.victory-archive__status--error {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.victory-archive__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.victory-archive__table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.victory-archive__table th,
.victory-archive__table td {
  padding: 0.75rem 0.875rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.victory-archive__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #f8fafc;
}

.victory-archive__table tbody tr:hover {
  background: rgba(16, 185, 129, 0.04);
}

.victory-archive__table tbody tr:last-child td {
  border-bottom: none;
}

.victory-archive__level,
.victory-archive__result {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
}

.archive-level {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.victory-archive__level {
  font-weight: 700;
}

.archive-level--district,
.victory-archive__level--district {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.18);
}

.archive-level--city,
.victory-archive__level--city {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.archive-level--region,
.victory-archive__level--region {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.archive-level--republic,
.victory-archive__level--republic {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.14);
}

.archive-level--international,
.victory-archive__level--international {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.12);
}

.victory-archive__result {
  color: #064e3b;
  background: rgba(6, 78, 59, 0.08);
}

.archive-result {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.archive-result--1 {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
}

.archive-result--2 {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
}

.archive-result--3 {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
}

.victory-archive__table th:nth-child(1),
.victory-archive__table td:nth-child(1) {
  width: 9%;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.victory-archive__table th:nth-child(2),
.victory-archive__table td:nth-child(2) {
  width: 7%;
}

.victory-archive__table th:nth-child(3),
.victory-archive__table td:nth-child(3) {
  width: 5%;
}

.victory-archive__table th:nth-child(4),
.victory-archive__table td:nth-child(4) {
  width: 22%;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.victory-archive__table th:nth-child(5),
.victory-archive__table td:nth-child(5) {
  width: 14%;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.victory-archive__table th:nth-child(6),
.victory-archive__table td:nth-child(6) {
  width: 16%;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.victory-archive__table th:nth-child(7),
.victory-archive__table td:nth-child(7) {
  width: 15%;
  min-width: 0;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.victory-archive__table th:nth-child(7) {
  letter-spacing: 0.03em;
}

.victory-archive__table td:nth-child(7) .archive-result {
  font-size: 0.75rem;
  padding: 0.25rem 0.4375rem;
  box-sizing: border-box;
}

.archive-result:has(.archive-result__line) {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  max-width: 100%;
  white-space: normal;
}

.archive-result__line {
  display: block;
  line-height: 1.2;
}

.archive-result__line--nowrap {
  white-space: nowrap;
}

.victory-archive__empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.victory-archive__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.victory-archive__photo {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.victory-archive__photo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.victory-archive__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.victory-archive-card__photos dd {
  margin: 0;
}

.victory-archive__cards {
  display: none;
  gap: 1rem;
}

.victory-archive-card {
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.victory-archive-card__head {
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.victory-archive-card__title {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.victory-archive-card__competition-full {
  margin: 0 0 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.victory-archive__short {
  display: inline-block;
  max-width: 100%;
  font-weight: 600;
  color: #047857;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.35;
}

.victory-archive__no-project {
  color: #64748b;
  font-style: italic;
}

.victory-archive__competition-full {
  max-width: 12rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.victory-archive-card__meta {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.victory-archive-card__details {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.victory-archive-card__details div {
  display: grid;
  gap: 0.25rem;
}

.victory-archive-card__details dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.victory-archive-card__details dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #475569;
}

@media (max-width: 991px) {
  .victory-archive__table-wrap {
    display: none;
  }

  .victory-archive__cards {
    display: grid;
  }

  .victory-archive__filter {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
  }
}

/* Admin panel */
.admin-page {
  min-height: 100vh;
  padding: 0.625rem 0 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

body[data-page="admin"] .admin-page {
  padding-top: 0.625rem;
}

body[data-page="admin"] #admin-login.admin-panel {
  margin-top: clamp(1.5rem, 6vh, 3rem);
}

.admin-panel {
  width: min(100% - 2rem, 420px);
  margin-inline: auto;
}

.admin-panel--wide {
  width: min(100% - 1.25rem, 1360px);
}

.admin-card--full {
  width: 100%;
}

.admin-panel__card,
.admin-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.admin-panel__title {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.admin-panel__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.admin-panel__lead--compact {
  margin: -0.5rem 0 1rem;
  font-size: 0.875rem;
}

.admin-victory-toolbar {
  margin-bottom: 1rem;
}

.admin-panel__lead code {
  font-size: 0.875em;
  padding: 0.125rem 0.375rem;
  border-radius: 6px;
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1rem;
  margin-bottom: 0.875rem;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.admin-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.admin-header__logo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: contain;
}

.admin-header__title {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #064e3b;
  white-space: nowrap;
}

.admin-header__logout {
  flex-shrink: 0;
  margin-left: auto;
}

.admin-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-nav__item {
  position: relative;
}

.admin-nav__tab,
.admin-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #334155;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.admin-nav__tab:hover,
.admin-nav__trigger:hover {
  background: rgba(5, 150, 105, 0.08);
  color: #064e3b;
}

.admin-nav__tab.is-active,
.admin-nav__dropdown.is-active-group > .admin-nav__trigger {
  background: rgba(5, 150, 105, 0.12);
  color: #064e3b;
}

.admin-nav__caret {
  width: 0;
  height: 0;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.32rem solid currentColor;
  opacity: 0.65;
  transform: translateY(1px);
}

.admin-nav__menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  z-index: 40;
  min-width: 13.5rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
}

.admin-nav__dropdown:hover > .admin-nav__menu,
.admin-nav__dropdown:focus-within > .admin-nav__menu,
.admin-nav__dropdown.is-open > .admin-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.admin-nav__menu-item,
.admin-nav__link {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  color: #334155;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.admin-nav__menu-item:hover,
.admin-nav__link:hover {
  background: rgba(5, 150, 105, 0.08);
  color: #064e3b;
}

.admin-nav__menu-item.is-active {
  background: rgba(5, 150, 105, 0.12);
  color: #064e3b;
  font-weight: 600;
}

.admin-nav__link::after {
  content: '↗';
  margin-left: 0.35rem;
  font-size: 0.75em;
  opacity: 0.55;
}

.admin-content {
  min-width: 0;
}

@media (max-width: 960px) {
  .admin-header {
    align-items: stretch;
  }

  .admin-header__logout {
    margin-left: 0;
    width: 100%;
  }

  .admin-nav__list {
    width: 100%;
  }

  .admin-nav__menu {
    left: auto;
    right: 0;
  }
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.admin-toolbar--compact {
  align-items: center;
  margin-bottom: 1rem;
}

.admin-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-tabs__btn {
  flex: 1 1 auto;
  min-width: 8.5rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  background: transparent;
  color: #475569;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.admin-tabs__btn:hover {
  color: #064e3b;
  background: rgba(255, 255, 255, 0.72);
}

.admin-tabs__btn.is-active {
  background: #ffffff;
  color: #064e3b;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.admin-card__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.admin-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-card__meta {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.admin-subsection {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.admin-card__head--sub {
  margin-bottom: 0.5rem;
}

.admin-subsection__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.admin-subsection__hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.admin-table--map td:first-child {
  max-width: 28rem;
}

.admin-table--projects th:first-child,
.admin-table--projects td:first-child {
  width: 22%;
  max-width: 16rem;
}

.admin-table--projects .admin-table__title-wrap {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.admin-table--projects th:nth-child(2),
.admin-table--projects td:nth-child(2) {
  width: 7rem;
  text-align: center;
  white-space: nowrap;
}

.admin-table--projects th:nth-child(4),
.admin-table--projects td:nth-child(4) {
  width: 6rem;
  white-space: nowrap;
}

.admin-entry-form,
.admin-login-form {
  display: grid;
  gap: 0.875rem;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.admin-field[hidden],
.admin-photo-upload[hidden] {
  display: none !important;
}

.admin-field--full {
  grid-column: 1 / -1;
}

.admin-field--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
}

.admin-field--checkbox .admin-field__label {
  font-weight: 500;
}

.admin-field__checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
}

.admin-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.admin-field__hint {
  margin: -0.125rem 0 0.375rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.admin-field__input {
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.admin-field__input:focus {
  outline: none;
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.admin-field__select {
  min-height: 40px;
  padding-right: 2rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.admin-form__error {
  margin: 0;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  font-size: 0.875rem;
}

.admin-server-notice {
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  font-size: 0.875rem;
  line-height: 1.5;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table--wide th:nth-child(1),
.admin-table--wide td:nth-child(1) {
  width: 7.5rem;
  white-space: nowrap;
}

.admin-table--wide th:nth-child(2),
.admin-table--wide td:nth-child(2) {
  min-width: 10rem;
  max-width: 16rem;
  white-space: normal;
}

.admin-table--wide th:nth-child(3),
.admin-table--wide td:nth-child(3) {
  min-width: 7rem;
  width: 7rem;
  white-space: nowrap;
}

.admin-table--wide th:nth-child(6),
.admin-table--wide td:nth-child(6) {
  min-width: 7.5rem;
  white-space: nowrap;
}

.admin-table--wide th:nth-child(7),
.admin-table--wide td:nth-child(7) {
  width: 11rem;
}

.admin-table__clip {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table__muted {
  color: var(--text-muted);
}

.admin-table__tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.admin-table__tag--it {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
}

.admin-table__photos {
  text-align: center;
  white-space: nowrap;
}

.admin-photo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: #047857;
}

.admin-photo-item .admin-photo-badge {
  position: absolute;
  left: 0.2rem;
  bottom: 0.2rem;
  z-index: 1;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
}

.admin-photo-item .admin-photo-badge--archive {
  color: #1d4ed8;
}

.admin-photo-upload {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.admin-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-photo-item {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.admin-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-photo-item__remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.admin-photo-item__remove:hover {
  background: rgba(185, 28, 28, 0.9);
}

.admin-photo-add {
  display: inline-flex;
  cursor: pointer;
}

.admin-photo-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.875rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.admin-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.admin-table__empty {
  text-align: center;
  color: var(--text-muted);
}

.admin-btn-danger {
  color: #b91c1c;
}

.admin-btn-danger:hover {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.25);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5vh 1rem 1rem;
  overflow-y: auto;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.admin-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: none;
  overflow: visible;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.admin-modal__dialog--form {
  width: min(100%, 700px);
}

.admin-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.admin-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #064e3b;
}

.admin-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.admin-modal__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.admin-form {
  padding: 0.875rem 1.25rem 1rem;
}

.admin-form--compact {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.admin-form-section {
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.admin-form-section__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

.admin-form--compact .admin-field__input,
.admin-form--compact .admin-field__select {
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.admin-form--compact .admin-field__label {
  font-size: 0.75rem;
}

.admin-form-hero {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.875rem;
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.admin-form-hero__photo .admin-photo-list--single .admin-photo-item {
  width: 100%;
  height: 5.5rem;
}

.admin-form-hero__fields {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.admin-photo-upload--inline {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.admin-photo-upload--card {
  padding: 0.75rem;
  background: #ffffff;
  border: 1px dashed rgba(5, 150, 105, 0.28);
  border-radius: var(--radius-sm);
}

.admin-photo-upload__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0;
}

.admin-photo-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-entry-form--rows {
  padding: 0.25rem 1.5rem 1.25rem;
}

.admin-form-row {
  display: grid;
  grid-template-columns: minmax(11rem, 42%) minmax(0, 1fr);
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0;
  border-bottom: none;
}

.admin-form-row:last-of-type {
  border-bottom: none;
}

.admin-form-row__label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #475569;
}

.admin-form-row__field {
  min-width: 0;
}

.admin-form-row--top {
  align-items: start;
}

.admin-field__textarea {
  min-height: 4.5rem;
  resize: vertical;
  line-height: 1.45;
}

.admin-field__textarea--compact {
  min-height: 3.5rem;
}

.admin-photo-list--single .admin-photo-item {
  width: 6.5rem;
  height: 6.5rem;
}

.admin-photo-clear {
  align-self: flex-start;
}

.admin-table--students {
  min-width: 880px;
}

.admin-table--students th:nth-child(1),
.admin-table--students td:nth-child(1) {
  width: 4rem;
  text-align: center;
}

.admin-table__thumb {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

.admin-table__order {
  white-space: nowrap;
  width: 5.5rem;
}

.admin-table__order .btn + .btn {
  margin-left: 0.125rem;
}

.admin-table--hero-diplomas td:nth-child(2) {
  width: 4.5rem;
  text-align: center;
}

.admin-table__thumb-link {
  display: inline-flex;
  border-radius: var(--radius-sm);
}

.admin-table__thumb--lg {
  width: 3.5rem;
  height: 3.5rem;
}

.admin-table__text-left {
  text-align: left;
  max-width: 28rem;
  line-height: 1.45;
}

.admin-table__competition {
  text-align: left;
  max-width: 16rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.admin-table__competition-full {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.admin-table__competition-short {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-diploma-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

.admin-diploma-thumb {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fafc;
}

.admin-diploma-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-diploma-thumb:hover {
  border-color: #059669;
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.35);
}

.lightbox--admin {
  z-index: 300;
}

.admin-modal__dialog--hero-diplomas {
  width: min(100%, 920px);
}

.hero-diplomas-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.5rem;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.hero-diplomas-picker__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.375rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.hero-diplomas-picker__item:hover {
  border-color: rgba(5, 150, 105, 0.35);
}

.hero-diplomas-picker__item.is-selected {
  border-color: #059669;
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.25);
}

.hero-diplomas-picker__thumb {
  position: relative;
  height: 4.75rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #eef2f7;
}

.hero-diplomas-picker__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-diplomas-picker__zoom {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.6875rem;
  line-height: 1;
  text-decoration: none;
}

.hero-diplomas-picker__zoom:hover {
  background: rgba(5, 150, 105, 0.92);
}

.hero-diplomas-picker__meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.6875rem;
  line-height: 1.3;
}

.hero-diplomas-picker__student {
  font-weight: 600;
  color: var(--text);
  font-size: 0.75rem;
}

.hero-diplomas-picker__meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.hero-diplomas-picker__competition,
.hero-diplomas-picker__work,
.hero-diplomas-preview__competition,
.hero-diplomas-preview__work {
  color: var(--text);
}

.hero-diplomas-picker__result,
.hero-diplomas-preview__result {
  color: #64748b;
}

.hero-diplomas-picker__photo-num,
.hero-diplomas-preview__photo-num {
  color: #64748b;
  font-size: 0.6875rem;
}

.hero-diplomas-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-diplomas-preview__layout {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: 0.75rem;
  align-items: start;
}

.hero-diplomas-preview__image {
  display: block;
  height: 8.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eef2f7;
}

.hero-diplomas-preview__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-diplomas-preview__student {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.hero-diplomas-preview__line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
}

.hero-diplomas-preview__competition,
.hero-diplomas-preview__work,
.hero-diplomas-preview__result,
.hero-diplomas-preview__hint {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.hero-diplomas-preview__hint {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.admin-photo-list--viewable .admin-photo-item {
  width: 7rem;
  height: 7rem;
}

.admin-photo-item--viewable .admin-photo-item__view {
  display: block;
  width: 100%;
  height: 100%;
}

.admin-photo-item--viewable .admin-photo-item__view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .hero-diplomas-preview__layout {
    grid-template-columns: 1fr;
  }
}

.admin-table__no-photo {
  color: var(--text-muted);
}

.admin-modal__footer {
  margin-top: 0.25rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border);
}

.admin-form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .admin-form-grid--2,
  .admin-form-grid--3 {
    grid-template-columns: 1fr;
  }

  .admin-form-hero {
    grid-template-columns: 1fr;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }

  .admin-card__head {
    align-items: stretch;
  }

  .admin-card__head .btn--primary {
    width: 100%;
  }
}

/* ===== Premium homepage — Variant 2 (light) ===== */

body[data-page="index"] {
  background: var(--bg);
  color: var(--heading);
  --header-h: 148px;
  --header-bar-h: 52px;
}

.site-header--home {
  border-bottom: none;
}

.site-header--home .site-header__bar--brand {
  border-bottom: 1px solid var(--border);
}

.site-header--home .site-header__bar--menu {
  border-bottom: 1px solid var(--border);
}

.site-header--home .site-header__bar-inner--nav {
  justify-content: center;
}

.site-header--home .main-nav {
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.site-header--light {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header--light.is-scrolled {
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(27, 36, 48, 0.06);
}

.site-header__bar-inner--nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-bar-h);
  padding: 0.5rem 0;
}

.site-header__brand--compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--heading);
  flex-shrink: 0;
}

.site-header__brand--compact .site-header__mark-stack {
  width: 52px;
}

.site-header__brand--compact .site-header__mark {
  width: 52px;
  max-height: 52px;
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.site-header__brand--compact .site-header__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  line-height: 1.1;
}

.site-header__tagline-short {
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--text-subtle);
  max-width: 14rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5625rem 0.9375rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--heading);
  text-decoration: none;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.main-nav__link:hover {
  color: var(--accent);
  background: var(--bg-mint);
  box-shadow: 0 4px 16px rgba(14, 124, 102, 0.1);
  transform: translateY(-1px);
}

.main-nav__link.is-active {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(14, 124, 102, 0.22);
}

.site-header--light .burger--header {
  border-color: var(--border-strong);
  background: var(--bg);
}

.site-header--light .burger--header span {
  background: var(--heading);
}

.home-hero {
  padding: calc(var(--header-h) + 2.75rem) 0 2.5rem;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.teacher-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.teacher-card__body {
  min-width: 0;
}

.teacher-card__photo-wrap {
  position: relative;
  flex-shrink: 0;
  justify-self: end;
}

.teacher-card__photo-wrap::before {
  content: '';
  position: absolute;
  inset: -6%;
  border-radius: 1.5rem;
  background: radial-gradient(circle at 30% 30%, rgba(14, 124, 102, 0.14), rgba(91, 141, 239, 0.08) 50%, transparent 72%);
  pointer-events: none;
}

.teacher-card__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(14rem, 26vw, 20rem);
  height: auto;
  max-height: min(28rem, 70vh);
  object-fit: cover;
  object-position: center top;
  border-radius: 1.25rem;
  border: 3px solid #ffffff;
  box-shadow:
    0 20px 48px rgba(27, 36, 48, 0.12),
    0 0 0 1px rgba(14, 124, 102, 0.12);
}

.teacher-card__title {
  margin: 0 0 0.625rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.teacher-card__title-accent {
  color: var(--accent);
}

.teacher-card__role {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.teacher-card__stats {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.teacher-card__stats li {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.teacher-card__stats strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading);
}

.teacher-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.home-section--news {
  background: var(--bg);
}

.home-section--awards {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-mint-soft) 100%);
}

.home-section__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.home-section__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  font-size: 1.375rem;
  background: var(--bg-mint);
}

.home-section__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading);
}

.home-section__desc {
  margin: 0.375rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.news-grid__loading,
.news-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-subtle);
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-mint) 0%, var(--bg-blue-soft) 100%);
}

.news-card__media--placeholder {
  background: linear-gradient(135deg, var(--bg-mint) 0%, #eef2ff 100%);
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__img {
  transform: scale(1.04);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  padding: 1.375rem 1.5rem 1.5rem;
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.news-card__date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.news-card__badge {
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-mint);
  color: var(--accent);
}

.news-card__badge--win {
  background: var(--accent-gold-soft);
  color: #8a6a1f;
}

.news-card__badge--project {
  background: var(--bg-blue-soft);
  color: var(--accent-secondary);
}

.news-card__badge--it {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

.news-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--heading);
}

.news-card__summary {
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.news-card__btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.news-card__btn:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.news-card--win .news-card__btn:hover {
  color: var(--accent-award);
  border-bottom-color: var(--accent-award);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat-card {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.stat-card__icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.625rem;
}

.stat-card__value {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-award);
}

.stat-card__label {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-muted);
}

body[data-page="index"] #projects .project-card {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--heading);
  box-shadow: var(--shadow-card);
}

body[data-page="index"] #projects .project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 124, 102, 0.22);
  box-shadow: var(--shadow-card-hover);
}

body[data-page="index"] #projects .project-card h3 {
  color: var(--heading);
}

body[data-page="index"] #projects .project-card p {
  color: var(--text-muted);
}

body[data-page="index"] #projects .project-card__thumb {
  background: linear-gradient(135deg, var(--bg-mint) 0%, var(--bg-blue-soft) 100%);
  border-bottom: none;
}

body[data-page="index"] #projects .project-card__thumb--icon {
  color: var(--accent);
}

body[data-page="index"] #projects .project-card__link {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(14, 124, 102, 0.2);
}

body[data-page="index"] #projects .project-card__link:hover {
  background: var(--accent-hover);
}

body[data-page="index"] #projects .tag {
  background: var(--bg-blue-soft);
  color: var(--accent-secondary);
  border-color: transparent;
}

body[data-page="index"] .section {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

body[data-page="index"] .section--alt {
  background: #ffffff;
}

body[data-page="index"] #achievements .section__tag {
  border-bottom-color: var(--divider-gold);
  color: var(--accent-award);
}

@media (max-width: 991px) {
  body[data-page="index"] {
    --header-h: 152px;
    --header-bar-h: 52px;
  }

  :root {
    --header-bar-h: 52px;
  }

  .site-header__tagline-short {
    display: none;
  }

  .site-header--home .site-header__bar-inner--nav {
    justify-content: space-between;
  }

  .site-header--home .main-nav {
    justify-content: stretch;
  }

  .main-nav {
    position: fixed;
    inset: calc(var(--header-h) - 2px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    z-index: 99;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav__link {
    justify-content: center;
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .teacher-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
  }

  .teacher-card__body {
    order: 1;
    text-align: left;
  }

  .teacher-card__photo-wrap {
    order: 2;
    justify-self: center;
  }

  .teacher-card__photo {
    width: min(100%, 16rem);
  }

  .teacher-card__actions {
    justify-content: flex-start;
  }

  .news-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .burger--header {
    display: none;
  }
}

/* ===== News article page ===== */

.news-article {
  max-width: 48rem;
  margin: 0 auto;
}

.news-article__status {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.news-article__status--error {
  color: #b91c1c;
}

.news-article__gallery {
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.news-article__gallery--single {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.news-article__gallery--multi {
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}

.news-article__gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: #fff;
}

.news-article__gallery-item img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.news-article__hero {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.news-article__image {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.news-article__body {
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.news-article__date {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.news-article__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.news-article__lead {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #334155;
  border-bottom: 1px solid var(--border);
}

.news-article__content {
  font-size: 1rem;
  line-height: 1.75;
  color: #1e293b;
}

.news-article__content p {
  margin: 0 0 1rem;
}

.news-article__content img {
  max-width: 100%;
  height: auto;
}

.news-article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.news-article__content td,
.news-article__content th {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
}

.news-article__back {
  margin: 1.25rem 0 0;
}

.admin-modal__dialog--news {
  width: min(100vw - 2rem, 68rem);
  max-width: none;
  max-height: min(96vh, 64rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-modal__dialog--news .admin-modal__header {
  flex-shrink: 0;
}

.admin-modal__dialog--news #news-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0.75rem;
}

.admin-modal__dialog--news .admin-form-grid--news-meta,
.admin-modal__dialog--news .admin-field--news-instagram,
.admin-modal__dialog--news .admin-news-footer,
.admin-modal__dialog--news .admin-form__error {
  flex-shrink: 0;
}

#news-form.admin-form--compact {
  gap: 0.5rem;
}

.admin-field--news-instagram {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.125rem;
}

.admin-field--news-instagram .admin-field__label {
  flex-shrink: 0;
  margin: 0;
  white-space: nowrap;
}

.admin-field--news-instagram .admin-field__input {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-form-grid--news-meta {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.admin-news-editor-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1 1 auto;
  min-height: 0;
}

.admin-news-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-news-editor__tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.admin-news-editor__tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
}

.admin-news-editor__tab.is-active {
  background: #ffffff;
  color: #064e3b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.admin-news-editor__wrap {
  position: relative;
}

.admin-news-editor__wrap--preview .cke {
  display: none !important;
}

.admin-news-editor__textarea {
  min-height: 14rem;
}

.admin-news-editor__preview {
  min-height: 14rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: auto;
}

.admin-news-editor__preview-empty {
  margin: 0;
  color: var(--text-muted);
}

.admin-news-editor__preview img {
  max-width: 100%;
  height: auto;
}

.admin-news-editor__preview table {
  width: 100%;
  border-collapse: collapse;
}

.admin-news-editor__preview td,
.admin-news-editor__preview th {
  border: 1px solid var(--border);
  padding: 0.35rem 0.5rem;
}

.cke_chrome {
  border-color: var(--border) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
}

.admin-table--news td:nth-child(5) {
  max-width: 12rem;
  word-break: break-word;
}

.admin-news-footer {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.125rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border);
}

.admin-news-footer__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-news-footer__photos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.admin-news-footer__photo-add {
  flex-shrink: 0;
}

.admin-news-footer__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.admin-news-footer__actions .btn {
  min-width: 5.5rem;
}

.admin-news-footer .admin-photo-list {
  min-height: 0;
}

.admin-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-icon-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.admin-icon-btn--ghost {
  background: #ffffff;
}

.admin-news-editor__wrap .cke_bottom {
  display: none;
}

.admin-icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-icon-btn.is-loading .admin-icon-btn__icon {
  display: none;
}

.admin-icon-btn.is-loading .admin-icon-btn__spinner {
  display: block;
  animation: admin-icon-spin 0.8s linear infinite;
}

.admin-icon-btn__spinner {
  display: none;
}

@keyframes admin-icon-spin {
  to { transform: rotate(360deg); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
