/* =========================================================
   Портфолио – Росица Вълканова
   Обща визия: цветове, шрифтове и компоненти на сайта
   ========================================================= */

:root {
  /* Цветове */
  --navy-900: #042C53;   /* тъмносиньо – банер, тъмни секции, футър */
  --navy-700: #0C447C;   /* синьо – горна лента, заглавия */
  --blue-500: #378ADD;   /* светло синьо – рамки, акценти */
  --blue-100: #E8F4FD;   /* светлосиньо – фон на секции */
  --teal-500: #1D9E75;   /* тюркоазено – бутони, акценти */
  --teal-300: #5DCAA5;   /* светло тюркоазено – код, коментари */
  --text:     #333333;   /* графитено – основен текст */
  --muted:    #5F6B7A;   /* сиво – помощен текст */
  --white:    #FFFFFF;

  /* Шрифтове */
  --font-head: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-code: 'JetBrains Mono', Consolas, monospace;

  /* Размери */
  --container: min(80%, 1320px);   /* съдържанието заема 80% от екрана */
  --radius: 14px;
  --gap-section: 72px;
  --shadow: 0 4px 16px rgba(4, 44, 83, .10);
  --shadow-hover: 0 10px 28px rgba(4, 44, 83, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; }

.container { width: var(--container); margin: 0 auto; }

/* ---------- Основен текст: двустранно подравняване и отстъп на първия ред ----------
   Всеки блок с основен текст получава клас "prose". */
.prose p:not(.code-comment) {
  text-align: justify;
  text-indent: 1.5em;
  hyphens: auto;
}

/* ---------- Код-коментари „// …“ ---------- */
.code-comment {
  font-family: var(--font-code);
  font-size: 14px;
  color: var(--teal-300);
  margin: 0 0 8px;
}
.code-comment--dark { color: var(--teal-500); }

/* ---------- Бутони ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal-500); color: var(--white); box-shadow: 0 4px 12px rgba(29, 158, 117, .35); }
.btn--primary:hover { background: #17875F; }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }

/* =========================================================
   ГОРНА ЛЕНТА
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-700);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand__logo {
  font-family: var(--font-code); font-weight: 500; font-size: 22px;
  color: var(--teal-300);
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(93, 202, 165, .5);
  border-radius: 10px; padding: 4px 10px; line-height: 1.3;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.brand__role { font-size: 13px; color: #B5D4F4; }

.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: #DCEBFA; text-decoration: none; font-size: 15px; font-family: var(--font-head); font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.nav a.is-active { color: var(--white); box-shadow: inset 0 -2px 0 var(--teal-300); border-radius: 0; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .2s; }

/* =========================================================
   БАНЕР
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
  padding: 72px 0 80px;
}
.hero__binary {
  position: absolute; inset: 0;
  font-family: var(--font-code); font-size: 15px; line-height: 24px; letter-spacing: 4px;
  color: var(--navy-700); white-space: pre; opacity: .7;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 40%, transparent 65%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 40%, transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; margin-bottom: 18px; }
.hero__lead { font-size: 18px; color: #DCEBFA; max-width: 560px; margin: 0 0 8px; }
.hero__school { font-size: 15px; color: #85B7EB; margin: 0 0 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Монитор с код */
.monitor { justify-self: end; width: 100%; max-width: 460px; }
.monitor__screen {
  background: var(--navy-700);
  border: 4px solid var(--blue-500);
  border-radius: 16px;
  padding: 22px 26px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.monitor__dots { display: flex; gap: 8px; margin-bottom: 14px; }
.monitor__dots i { width: 12px; height: 12px; border-radius: 50%; background: #F0997B; }
.monitor__dots i:nth-child(2) { background: #FAC775; }
.monitor__dots i:nth-child(3) { background: var(--teal-300); }
.monitor pre { margin: 0; font-family: var(--font-code); font-size: clamp(14px, 1.4vw, 19px); line-height: 1.75; color: #E6F1FB; }
.monitor .kw { color: #85B7EB; }
.monitor .fn { color: var(--teal-300); }
.monitor__binary { font-family: var(--font-code); color: var(--blue-500); margin: 10px 0 0; font-size: 15px; }
.monitor__neck { width: 70px; height: 26px; background: var(--blue-500); margin: 0 auto; }
.monitor__base { width: 180px; height: 9px; background: var(--blue-500); margin: 0 auto; border-radius: 6px; }

/* =========================================================
   СЕКЦИИ
   ========================================================= */
.section { padding: var(--gap-section) 0; }
.section--light { background: var(--blue-100); }
.section--dark { background: var(--navy-900); color: var(--white); }
.section__title { font-size: clamp(24px, 2.6vw, 34px); color: var(--navy-700); font-weight: 700; margin-bottom: 32px; }
.section__title--light { color: var(--white); }

/* ---------- Добре дошли ---------- */
.welcome { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.welcome__text p { margin: 0 0 16px; }
.values { position: sticky; top: 96px; margin-top: 106px !important; list-style: none; margin: 0; padding: 28px; display: grid; gap: 22px;
  background: var(--blue-100); border-radius: var(--radius); border-left: 4px solid var(--teal-500); }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values svg { flex: 0 0 34px; width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--white);
  fill: none; stroke: var(--navy-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.values h3 { font-size: 16px; color: var(--navy-700); margin: 0 0 2px; }
.values p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Карти ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border-radius: var(--radius);
  border-top: 4px solid var(--teal-500);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__icon { width: 34px; height: 34px; fill: none; stroke: var(--navy-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.card h3 { font-size: 19px; color: var(--navy-700); margin-bottom: 6px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- За мен ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.about__text p { margin: 0 0 24px; }
.about__image { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow); }

.facts { list-style: none; padding: 0; margin: 48px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.facts li { background: var(--blue-100); border-radius: var(--radius); padding: 22px 16px; text-align: center; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.facts strong { display: block; font-family: var(--font-head); font-size: 32px; color: var(--navy-700); line-height: 1.2; }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- Стълбичка ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.steps li {
  height: calc(70px + var(--h) * 38px);
  background: linear-gradient(180deg, var(--blue-500), var(--navy-700));
  border-radius: 12px 12px 4px 4px;
  padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
}
.steps li:last-child { background: linear-gradient(180deg, var(--teal-300), var(--teal-500)); }
.steps__year { font-family: var(--font-code); font-size: 14px; color: #DCEBFA; }
.steps__label { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.steps__note { font-size: 13px; color: #DCEBFA; }
.steps__source { margin: 22px 0 0; font-size: 14px; color: #85B7EB; }

/* ---------- Проекти ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.project__thumb {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-code); font-size: 38px; color: var(--teal-300);
  background: var(--navy-900);
}
.project__thumb--web { background: var(--navy-700); color: #E6F1FB; }
.project__thumb--stem { background: linear-gradient(135deg, var(--teal-500), var(--navy-700)); color: #FAC775; }
.project__body { padding: 22px 24px 24px; }
.project h3 { font-size: 18px; color: var(--navy-700); }
.project p { font-size: 15px; color: var(--muted); margin: 0 0 14px; line-height: 1.55; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--teal-500); background: #E1F5EE; border-radius: 20px; padding: 2px 12px; margin-bottom: 10px; }
.link { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--teal-500); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* =========================================================
   ВЪТРЕШНИ СТРАНИЦИ
   ========================================================= */
.page-hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); }
.page-hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; align-items: end; gap: 24px; min-height: 340px; }
.page-hero__text { padding: 56px 0; }
.page-hero h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; margin-bottom: 14px; }
.page-hero__motto { font-family: var(--font-head); font-weight: 500; font-size: clamp(17px, 1.6vw, 22px); color: #DCEBFA; margin: 0;
  border-left: 3px solid var(--teal-300); padding-left: 16px; line-height: 1.5; }
.page-hero__img { width: 100%; max-height: 380px; object-fit: contain; object-position: right bottom; align-self: end;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 14%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 14%);
          mask-composite: intersect; }

.section__lead { margin: -16px 0 28px; color: var(--muted); }
.intro { max-width: 980px; margin: 0 auto; font-size: 18px; }
.intro p { margin: 0; }

/* Карти с информация */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card { background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--teal-500); padding: 26px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 19px; color: var(--navy-700); margin-bottom: 12px; }
.info-card p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; }
.info-card__main { color: var(--text); }
.info-card__doc { font-size: 13px !important; color: var(--muted); font-family: var(--font-code); margin-top: 10px !important; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; border-left: 2px solid #B5D4F4; }
.timeline li { position: relative; padding: 0 0 12px 18px; font-size: 15px; line-height: 1.5; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal-500); border: 2px solid var(--white); }
.timeline span { display: block; font-family: var(--font-code); font-size: 13px; color: var(--teal-500); }

/* Стълбичка – номер на документа и специализация */
.steps__doc { font-size: 12px; color: #B5D4F4; font-family: var(--font-code); margin-top: 4px; }
.special { margin-top: 22px; display: flex; gap: 18px; align-items: center; background: rgba(255,255,255,.06);
  border: 1px solid rgba(93, 202, 165, .4); border-radius: var(--radius); padding: 16px 22px; }
.special__year { font-family: var(--font-code); color: var(--teal-300); font-size: 15px; flex: 0 0 auto; }
.special p { margin: 0; font-size: 15px; color: #DCEBFA; line-height: 1.55; }
.special strong { color: var(--white); }

/* Сгъваеми години */
.years { display: grid; gap: 12px; }
.year { background: var(--blue-100); border-radius: 12px; overflow: hidden; }
.years--white .year { background: var(--white); box-shadow: var(--shadow); }
.year summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 16px 22px; user-select: none; }
.year summary::-webkit-details-marker { display: none; }
.year summary::after { content: "+"; margin-left: auto; font-family: var(--font-code); font-size: 22px; color: var(--teal-500); transition: transform .2s; }
.year[open] summary::after { transform: rotate(45deg); }
.year summary:hover .year__num { color: var(--teal-500); }
.year__num { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--navy-700); min-width: 56px; transition: color .15s; }
.year__sum { font-size: 14px; color: var(--muted); }
.year ul { list-style: none; margin: 0; padding: 4px 22px 18px; display: grid; gap: 10px; }
.year li { background: var(--white); border-radius: 10px; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start; border-left: 3px solid var(--teal-500); }
.years--white .year li { background: var(--blue-100); }
.year li p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.year .credit { grid-column: 2; grid-row: 1; font-size: 12px; font-weight: 600; color: var(--teal-500); background: #E1F5EE; border-radius: 20px; padding: 2px 12px; white-space: nowrap; }
.year .doc { grid-column: 1 / -1; font-family: var(--font-code); font-size: 13px; color: var(--muted); }

/* =========================================================
   УРОЦИ И РЕСУРСИ
   ========================================================= */
.page-hero__svg { width: 100%; max-height: 300px; align-self: end; margin-bottom: 8px; }

.filter-bar { display: grid; gap: 12px; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters__label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy-700); min-width: 46px; }
.filters button {
  font: 500 14px var(--font-head); color: var(--navy-700); background: var(--white);
  border: 1.5px solid #B5D4F4; border-radius: 20px; padding: 6px 14px; cursor: pointer; transition: .15s;
}
.filters button:hover { border-color: var(--teal-500); color: var(--teal-500); }
.filters button[aria-pressed="true"] { background: var(--teal-500); border-color: var(--teal-500); color: var(--white); }

.filters__label { min-width: 70px; }
.filters button small { font-size: 11px; font-weight: 600; opacity: .75; margin-left: 2px; }
.legend { font-size: 13.5px; color: var(--muted); margin: -12px 0 24px; }
.legend b { color: var(--navy-700); }
.resource__subj { font-size: 12.5px !important; color: var(--teal-500) !important; margin: 0 0 4px !important; flex: 0 !important; font-weight: 600; }
.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.resource { background: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.resource:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.resource__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.resource__top .card__icon { margin: 0; width: 28px; height: 28px; }
.resource__top .tag { margin: 0; }
.resource__klas { margin-left: auto; font-family: var(--font-code); font-size: 13px; color: var(--navy-700);
  background: var(--blue-100); border-radius: 6px; padding: 2px 8px; }
.resource h3 { font-size: 17px; color: var(--navy-700); margin-bottom: 6px; }
.resource p { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.resource__soon { font-family: var(--font-code); font-size: 13px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px; background: var(--white); border-radius: var(--radius); }

/* Интерактивно упражнение */
.exercise { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.exercise .prose p { margin: 0 0 20px; }
.bits { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--font-code); }
.bits span { display: flex; flex-direction: column; align-items: center; width: 52px; padding: 8px 0;
  background: var(--navy-900); color: var(--teal-300); border-radius: 10px; font-size: 24px; }
.bits b { font-size: 12px; color: #85B7EB; font-weight: 400; }
.bits em { font-style: normal; color: var(--navy-700); margin-left: 8px; font-size: 16px; }
.quiz { background: var(--blue-100); border-radius: var(--radius); padding: 26px; border-left: 4px solid var(--teal-500); display: grid; gap: 16px; }
.q label { display: block; font-size: 15.5px; margin-bottom: 6px; }
.q code { font-family: var(--font-code); background: var(--white); padding: 1px 6px; border-radius: 4px; color: var(--navy-700); }
.q input { font: 16px var(--font-code); width: 140px; padding: 8px 12px; border: 1.5px solid #B5D4F4; border-radius: 8px; }
.q input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(29,158,117,.2); }
.q__fb { margin-left: 12px; font-size: 14px; }
.q__fb--ok { color: var(--teal-500); font-weight: 600; }
.q__fb--no { color: #A32D2D; }
.q__fb--warn { color: #854F0B; }
.quiz__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiz .btn { border: 0; cursor: pointer; }
.quiz__result { font-family: var(--font-head); font-weight: 600; color: var(--navy-700); }

/* =========================================================
   ИЗПИТИ
   ========================================================= */
.countdowns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 980px; margin: 40px auto 0; }
.countdown { background: var(--navy-900); color: var(--white); border-radius: var(--radius); padding: 22px 26px;
  display: grid; gap: 4px; border-left: 5px solid var(--blue-500); }
.countdown--teal { border-left-color: var(--teal-300); }
.countdown__label { font-family: var(--font-code); font-size: 14px; color: var(--teal-300); }
.countdown__days { font-family: var(--font-head); font-size: 42px; line-height: 1.1; }
.countdown__days small { font-size: 18px; font-weight: 500; color: #B5D4F4; }
.countdown__date { font-size: 14px; color: #B5D4F4; }
.countdown--past { opacity: .6; }

.exam-intro { max-width: 980px; margin-bottom: 28px; }
.exam-intro p { margin: 0; }
.sessions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sessions--single { grid-template-columns: 1.4fr 1fr; align-items: start; }
.session { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 4px solid var(--blue-500); }
.section--light .session { box-shadow: var(--shadow); }
.section:not(.section--light) .session { background: var(--blue-100); box-shadow: none; }
.session--teal { border-top-color: var(--teal-500); }
.session h3 { font-size: 19px; color: var(--navy-700); margin-bottom: 16px; }
.dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-left: 2px solid #B5D4F4; }
.dates li { position: relative; padding: 6px 0 10px 22px; display: grid; gap: 2px; }
.dates li::before { content: ""; position: absolute; left: -7px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: #B5D4F4; border: 2px solid var(--white); }
.dates time { font-family: var(--font-code); font-size: 14px; color: var(--navy-700); font-weight: 500; }
.dates span { font-size: 15px; line-height: 1.5; }
.dates__key { background: #E1F5EE; border-radius: 10px; margin-left: 8px; padding-left: 14px !important; }
.dates__key::before { left: -15px !important; background: var(--teal-500) !important; width: 14px !important; height: 14px !important; }
.dates__key time { color: var(--teal-500); }
.note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.other-nvo { background: var(--white); border: 1.5px dashed #B5D4F4; border-radius: var(--radius); padding: 22px 24px; }
.other-nvo h4 { font-family: var(--font-head); color: var(--navy-700); margin: 0 0 12px; font-size: 16px; }
.other-nvo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.other-nvo time { display: block; font-family: var(--font-code); font-size: 13px; color: var(--teal-500); }

.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ext { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: 12px; padding: 18px 20px;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.ext:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.ext svg { flex: 0 0 26px; width: 26px; height: 26px; fill: none; stroke: var(--teal-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ext span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.ext b { display: block; font-family: var(--font-head); font-size: 15px; color: var(--navy-700); margin-bottom: 2px; }
/* Проведени изпити (архив) */
.past summary { flex-wrap: wrap; row-gap: 4px; }
.past__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy-700); }
.past summary:hover .past__title { color: var(--teal-500); }
.past__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 4px 22px 22px; }
.past__item { background: var(--blue-100); border-radius: 10px; padding: 14px 16px; border-left: 3px solid var(--teal-500); min-width: 0; }
.past__item h4 { font-family: var(--font-head); font-size: 15.5px; color: var(--navy-700); margin: 0 0 2px; }
.past__date { font-family: var(--font-code); font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.past__item ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.past__item a { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--text); font-size: 14px; line-height: 1.35;
  background: var(--white); border-radius: 8px; padding: 8px 10px; transition: box-shadow .15s; }
.past__item a:hover { box-shadow: var(--shadow); color: var(--teal-500); }
.past__item svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--teal-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.past__item small { display: block; font-size: 12px; color: var(--muted); }
.years .past .past__item li { display: block; background: none; border: 0; padding: 0; border-radius: 0; }
.section:not(.section--light) .ext { box-shadow: none; background: var(--blue-100); }
@media (max-width: 600px) { .past__grid { padding: 4px 14px 16px; grid-template-columns: 1fr; } }

.source { margin: 28px 0 0; font-size: 13px; color: var(--muted); border-top: 1px solid #B5D4F4; padding-top: 14px; }

/* =========================================================
   ПРИЕМНО ВРЕМЕ
   ========================================================= */
.hours { max-width: 980px; margin: 40px auto 0; background: var(--navy-900); color: var(--white);
  border-radius: var(--radius); padding: 26px 30px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: center; }
.hours__head { display: flex; gap: 16px; align-items: center; }
.hours__head svg { flex: 0 0 46px; width: 46px; height: 46px; fill: none; stroke: var(--teal-300); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hours__head .code-comment { color: var(--teal-300); margin: 0 0 2px; }
.hours h2 { font-size: 19px; margin: 0; color: var(--white); }
.hours__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hours__time { white-space: nowrap; }
.hours__list li { display: grid; grid-template-columns: 105px 90px 1fr; gap: 12px; align-items: center;
  background: rgba(255,255,255,.06); border-radius: 10px; padding: 12px 16px; }
.hours__day { font-family: var(--font-head); font-weight: 600; }
.hours__time { font-family: var(--font-code); color: var(--teal-300); }
.hours__what { font-size: 15px; color: #DCEBFA; }

.footer__hours p { margin: 0 0 4px; font-size: 15px; }
.footer__hours span { font-family: var(--font-code); font-size: 13px; color: var(--teal-300); margin-right: 6px; }

/* ---------- Мото ---------- */
.motto { background: var(--teal-500); color: var(--white); text-align: center; padding: 34px 0; }
.motto p { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: .5px; }
.motto span { color: #9FE1CB; padding: 0 10px; }

/* =========================================================
   ДОЛНА ЛЕНТА
   ========================================================= */
.footer { background: var(--navy-900); color: #DCEBFA; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 44px 0 32px; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand strong { display: block; font-family: var(--font-head); color: var(--white); font-size: 18px; }
.footer__brand span { font-size: 14px; color: #85B7EB; }
.footer__contact p { margin: 0 0 4px; font-size: 15px; }
.footer__contact a { color: var(--teal-300); text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; color: #85B7EB; }

/* =========================================================
   АДАПТИВНОСТ (таблет и телефон)
   ========================================================= */
@media (max-width: 1100px) {
  :root { --container: min(90%, 1320px); }
  .cards, .projects { grid-template-columns: repeat(2, 1fr); }
  .info-cards, .resources, .links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-700); display: none; padding: 8px 5% 16px; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a.is-active { box-shadow: inset 3px 0 0 var(--teal-300); }
  .hero__inner, .about, .welcome { grid-template-columns: 1fr; }
  .welcome { gap: 32px; }
  .values { position: static; margin-top: 0 !important; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .page-hero__text { padding: 44px 0 8px; }
  .page-hero__img { max-height: 220px; }
  .info-cards { grid-template-columns: 1fr; }
  .exercise { grid-template-columns: 1fr; gap: 28px; }
  .sessions, .sessions--single { grid-template-columns: 1fr; }
  .hours { grid-template-columns: 1fr; }
  .page-hero__svg { max-height: 200px; }
  .monitor { justify-self: center; max-width: 380px; margin-top: 0; }
  .hero__binary { opacity: .3; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  :root { --container: calc(100% - 32px); --gap-section: 52px; }
  body { font-size: 16px; }
  .cards, .projects, .resources, .links, .countdowns { grid-template-columns: 1fr; }
  .q__fb { display: block; margin: 6px 0 0; }
  .hours { padding: 22px 18px; }
  .hours__list li { grid-template-columns: 1fr auto; }
  .hours__what { grid-column: 1 / -1; }
  .steps { gap: 8px; }
  .steps li { padding: 10px; height: calc(60px + var(--h) * 28px); }
  .steps__label { font-size: 16px; }
  .steps__note, .steps__doc { display: none; }
  .special { flex-direction: column; align-items: flex-start; gap: 6px; }
  .year summary { padding: 14px 16px; gap: 12px; }
  .year ul { padding: 4px 12px 14px; }
  .year li { grid-template-columns: 1fr; }
  .year .credit { grid-column: 1; grid-row: auto; justify-self: start; }
  .brand__role { display: none; }
}

/* =========================================================
   ОЛИМПИАДИ И СЪСТЕЗАНИЯ
   ========================================================= */
.olymp-intro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.olymp-intro .intro { max-width: none; }
.next { background: var(--navy-700); color: #DCEBFA; border-radius: var(--radius); padding: 24px 26px; display: grid; gap: 8px;
  border-left: 5px solid var(--teal-300); box-shadow: var(--shadow); }
.next__label { font-family: var(--font-code); font-size: 13px; color: var(--teal-300); }
.next__title { font-family: var(--font-head); font-size: 18px; line-height: 1.35; color: var(--white); }
.next__date { font-size: 14.5px; }
.next__left { justify-self: start; font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--navy-900);
  background: var(--teal-300); border-radius: 20px; padding: 3px 14px; margin-top: 4px; }
.olymp-lead { max-width: 820px; margin: -8px 0 26px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.olymps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.olymp { position: relative; }
.olymp h3 { padding-right: 58px; }
.olymp__badge { position: absolute; top: 22px; right: 22px; font-family: var(--font-code); font-size: 13px; font-weight: 500;
  color: var(--white); background: var(--blue-500); border-radius: 8px; padding: 4px 10px; }
.session--teal .olymp__badge { background: var(--teal-500); }
.olymp__desc { font-size: 14.5px; line-height: 1.55; margin: -6px 0 10px; }
.olymp__groups { font-size: 13px; color: var(--muted); margin: 0 0 16px; padding: 8px 12px; background: var(--blue-100); border-radius: 8px; }
.dates li.is-past, .is-past { opacity: .5; }
.contests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contest { background: var(--blue-100); border-radius: var(--radius); padding: 20px 22px; border-top: 4px solid var(--blue-500); min-width: 0; }
.contest h3 { font-size: 16.5px; line-height: 1.4; color: var(--navy-700); margin: 0 0 12px; }
.contest__meta { margin: 0; display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.contest__meta time { font-family: var(--font-head); font-weight: 600; color: var(--teal-500); font-size: 14.5px; }
.contest__rounds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.contest__rounds li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.contest__rounds time { font-family: var(--font-head); font-weight: 600; color: var(--teal-500); }
.calendar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.month { background: var(--white); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.month h4 { font-family: var(--font-head); font-size: 16px; color: var(--navy-700); margin: 0 0 10px; text-transform: capitalize;
  padding-bottom: 8px; border-bottom: 2px solid var(--blue-100); }
.month ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.month li { display: grid; gap: 2px; font-size: 14px; line-height: 1.45; }
.month time { font-family: var(--font-code); font-size: 12.5px; color: var(--teal-500); }
.month em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--blue-500); text-transform: uppercase; letter-spacing: .4px; margin-right: 6px; }
.other-events { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.other-events li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; background: var(--blue-100); border-radius: 12px; padding: 16px 20px; }
.other-events time { font-family: var(--font-head); font-weight: 600; color: var(--teal-500); font-size: 14.5px; }
.other-events b { display: block; font-family: var(--font-head); color: var(--navy-700); font-size: 15.5px; margin-bottom: 2px; }
.other-events span { font-size: 14px; color: var(--muted); }
.links--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .olymps, .contests, .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .olymp-intro { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
  .olymps, .contests, .calendar, .links--two { grid-template-columns: 1fr; }
  .other-events li { grid-template-columns: 1fr; gap: 4px; }
}

/* Менюто става „хамбургер“ по-рано, за да не се пренася на два реда (7 пункта) */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-700); display: none; padding: 8px 5% 16px; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a.is-active { box-shadow: inset 3px 0 0 var(--teal-300); }
}

/* Постижения на учениците */
.wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }
.win { display: flex; gap: 20px; align-items: flex-start; background: var(--blue-100); border-radius: var(--radius); padding: 24px 26px; min-width: 0; }
.win--gold { background: var(--navy-700); color: #DCEBFA; }
.win__medal { flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  font-size: 24px; color: var(--navy-900); background: #B5D4F4; box-shadow: inset 0 0 0 4px rgba(255,255,255,.6); }
.win--gold .win__medal { background: #FAC775; }
.win__place { margin: 0 0 4px; font-family: var(--font-code); font-size: 13px; color: var(--teal-500); }
.win--gold .win__place { color: var(--teal-300); }
.win h3 { font-size: 17px; line-height: 1.4; margin: 0 0 8px; color: var(--navy-700); }
.win--gold h3 { color: var(--white); }
.win__meta { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.win--gold .win__meta { color: #B5D4F4; }
.win__project { margin: 0; font-size: 14.5px; }
.achievements { max-width: 900px; }
.achievements li span { font-size: 15px; line-height: 1.5; }
.awards { margin-top: 30px; border: 1.5px dashed #B5D4F4; border-radius: var(--radius); padding: 22px 24px; }
.awards__title { margin: 0 0 12px; font-family: var(--font-head); font-weight: 600; color: var(--navy-700); font-size: 16px; }
.awards__title span { color: #EF9F27; }
.awards ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.awards li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; font-size: 14.5px; line-height: 1.5; }
.awards time { font-family: var(--font-head); font-weight: 600; color: var(--teal-500); }
@media (max-width: 800px) {
  .wins { grid-template-columns: 1fr; }
  .awards li { grid-template-columns: 1fr; gap: 2px; }
  .win { padding: 20px; gap: 14px; }
}

/* =========================================================
   КЛАСНО РЪКОВОДСТВО
   ========================================================= */
.term-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: -6px 0 22px; font-size: 13.5px; color: var(--muted); }
.term-legend__item::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.term-legend__item--vakancia::before, .term--vakancia { --c: var(--teal-500); }
.term-legend__item--neucheben::before, .term--neucheben { --c: #EF9F27; }
.term-legend__item--srok::before, .term--srok { --c: var(--blue-500); }
.term-legend__item::before { background: var(--c); }
.terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.term { position: relative; background: var(--white); border-radius: 12px; padding: 14px 16px 14px 20px; display: grid; gap: 3px;
  box-shadow: var(--shadow); border-left: 5px solid var(--c); min-width: 0; }
.term time { font-family: var(--font-code); font-size: 13px; color: var(--navy-700); }
.term span { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy-700); line-height: 1.35; }
.term small { font-size: 12px; color: var(--muted); }
.term.is-next { box-shadow: 0 0 0 2px var(--c), var(--shadow-hover); }
.term__left { justify-self: start; margin-top: 4px; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--white);
  background: var(--c); border-radius: 20px; padding: 2px 10px; }
.parents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.parent-card { background: var(--blue-100); border-radius: var(--radius); padding: 22px 24px; min-width: 0; }
.parent-card svg { width: 32px; height: 32px; fill: none; stroke: var(--teal-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.parent-card h3 { font-size: 17px; color: var(--navy-700); margin: 10px 0 8px; }
.parent-card p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.parent-card a { color: var(--teal-500); }
.section:not(.section--light) .links .ext { background: var(--blue-100); box-shadow: none; }
.empty-box { display: flex; gap: 20px; align-items: center; background: var(--white); border: 2px dashed #B5D4F4; border-radius: var(--radius); padding: 28px 30px; }
.empty-box svg { flex: 0 0 52px; width: 52px; height: 52px; fill: none; stroke: #85B7EB; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty-box h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy-700); }
.empty-box p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.alumni { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: center; }
.alumni__years { background: var(--navy-700); color: var(--white); border-radius: var(--radius); padding: 26px; text-align: center;
  font-family: var(--font-head); display: grid; gap: 2px; }
.alumni__years strong { font-size: 32px; }
.alumni__years span { color: var(--teal-300); font-size: 20px; }
@media (max-width: 900px) {
  .parents { grid-template-columns: 1fr; }
  .alumni { grid-template-columns: 1fr; gap: 20px; }
  .alumni__years { display: flex; justify-content: center; gap: 14px; align-items: center; }
}
@media (max-width: 600px) { .empty-box { flex-direction: column; align-items: flex-start; } }

.parent-card--accent { background: var(--navy-700); color: #DCEBFA; }
.parent-card--accent h3 { color: var(--white); }
.parent-card--accent svg { stroke: var(--teal-300); }
.btn-shkolo { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-weight: 600; font-size: 14px; text-decoration: none;
  color: var(--navy-900) !important; background: var(--teal-300); border-radius: 8px; padding: 8px 16px; }
.btn-shkolo:hover { background: var(--white); }

.term-legend__item--klas::before, .term--klas { --c: #D4537E; }
.trip { display: grid; grid-template-columns: 170px minmax(0, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.trip__date { background: var(--navy-700); color: #B5D4F4; display: grid; place-content: center; text-align: center; gap: 2px; padding: 24px 12px; font-family: var(--font-head); }
.trip__date strong { color: var(--white); font-size: 24px; }
.trip__date span:first-child { color: var(--teal-300); font-size: 20px; font-weight: 600; }
.trip__body { padding: 24px 28px; }
.trip__body h3 { font-size: 22px; color: var(--navy-700); margin: 0 0 4px; }
.trip__meta { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.trip__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trip__days li { background: var(--blue-100); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; border-top: 3px solid var(--teal-500); }
.trip__days li:nth-child(2) { border-top-color: #D4537E; }
.trip__days b { font-family: var(--font-head); font-size: 13.5px; color: var(--navy-700); }
.trip__days span { font-size: 14.5px; }
@media (max-width: 700px) {
  .trip { grid-template-columns: 1fr; }
  .trip__date { display: flex; justify-content: center; align-items: baseline; gap: 10px; padding: 14px; }
  .trip__days { grid-template-columns: 1fr; }
}

/* =========================================================
   ДЕЙНОСТИ
   ========================================================= */
.cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; }
.card--cat { display: flex; flex-direction: column; }
.card--cat p { flex: 1; }
.card__count { margin-top: 14px; align-self: flex-start; font-family: var(--font-code); font-size: 12.5px; color: var(--teal-500);
  background: #E1F5EE; border-radius: 20px; padding: 2px 12px; }
#skoro { margin-top: 26px; }
.activities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.activity { background: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--teal-500); min-width: 0; }
.section:not(.section--light) .activity { background: var(--blue-100); box-shadow: none; }
.activity time { font-family: var(--font-code); font-size: 13px; color: var(--teal-500); }
.activity h3 { font-size: 17.5px; color: var(--navy-700); margin: 6px 0 8px; line-height: 1.35; }
.activity p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
.activity__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.activity__tags .tag { margin: 0; }
@media (max-width: 1100px) { .cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards--four { grid-template-columns: 1fr; } }

.activity__steps { display: grid; gap: 10px; margin-top: 12px; }
.activity__steps span { display: block; background: var(--blue-100); border-left: 3px solid var(--teal-500); border-radius: 8px; padding: 10px 14px; font-size: 14.5px; }
.section:not(.section--light) .activity__steps span { background: var(--white); }
.activity--wide { grid-column: 1 / -1; }
.activity--wide .activity__steps { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.activity--wide > p { max-width: 980px; }
@media (max-width: 800px) { .activity--wide .activity__steps { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .activities { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.activity__sub { font-family: var(--font-head); font-weight: 600; color: var(--navy-700); margin: 16px 0 6px !important; }
.activity > p { text-align: justify; hyphens: auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 6px 0 16px; max-width: 980px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--blue-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.04); }

.crumb { color: inherit; text-decoration: none; }
.crumb:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 22px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--teal-500); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
#zapisi { grid-template-columns: 1fr; }

.school-box { margin-top: 30px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: var(--navy-700); color: #DCEBFA; border-radius: var(--radius); padding: 24px 28px; }
.school-box > svg { width: 44px; height: 44px; fill: none; stroke: var(--teal-300); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.school-box h3 { margin: 0 0 4px; color: var(--white); font-size: 18px; }
.school-box p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.school-box__links { display: flex; gap: 10px; flex-wrap: wrap; }
.school-box .btn-shkolo { margin-top: 0; white-space: nowrap; }
@media (max-width: 800px) { .school-box { grid-template-columns: 1fr; gap: 12px; } }
.btn-fb { background: #E6F1FB; }

/* =========================================================
   УЧЕБНИ ПРОГРАМИ
   ========================================================= */
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.program { display: grid; grid-template-columns: 86px minmax(0, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.program__klas { background: var(--navy-700); color: #B5D4F4; display: grid; place-content: center; text-align: center; font-family: var(--font-head); padding: 18px 8px; }
.program__klas strong { color: var(--white); font-size: 28px; line-height: 1.1; }
.program__klas span { font-size: 13px; }
.program--school .program__klas { background: var(--blue-500); }
.program__body { padding: 20px 22px; min-width: 0; }
.program__body .tag { margin-bottom: 8px; }
.program h3 { font-size: 18px; color: var(--navy-700); margin: 0 0 10px; line-height: 1.35; }
.program__mods-title { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
.program__mods { margin: 0 0 12px; padding-left: 20px; font-size: 14.5px; line-height: 1.55; }
.program__note { margin: 0 0 12px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.program__btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--navy-900); background: var(--teal-300); border-radius: 8px; padding: 8px 14px; text-decoration: none; }
.program__btn:hover { background: #4AB993; }
.program__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.program__btn--off { background: var(--blue-100); color: var(--muted); }
.programs-links { margin-top: 30px; }
@media (max-width: 900px) { .programs { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .program { grid-template-columns: 64px minmax(0, 1fr); } .program__klas strong { font-size: 22px; } }

/* Слайдшоу */
.link--btn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.show { position: fixed; inset: 0; z-index: 5000; background: #021224; display: flex; flex-direction: column; }
.show[hidden] { display: none !important; }
.show__bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; color: #DCEBFA; font-family: var(--font-head); }
.show__title { flex: 1; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show__count { font-family: var(--font-code); font-size: 14px; color: var(--teal-300); }
.show__btn { background: rgba(255,255,255,.08); color: #fff; border: 0; border-radius: 8px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }
.show__btn:hover { background: rgba(255,255,255,.18); }
.show__stage { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px 18px; min-height: 0; }
.show__slide { flex: 1; height: 100%; background: center / contain no-repeat; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.show__nav { flex: 0 0 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.show__nav:hover { background: var(--teal-500); }
@media (max-width: 700px) { .show__nav { display: none; } .show__stage { padding: 0 6px 12px; } }

.show__slide--q { display: flex; align-items: center; justify-content: center; cursor: default; }
.qslide { width: min(100%, calc((100vh - 110px) * 16 / 9)); aspect-ratio: 16 / 9; max-height: 100%; background: #fff; border-radius: 6px;
  padding: clamp(14px, 4%, 48px) clamp(16px, 5%, 60px); display: flex; flex-direction: column; gap: clamp(8px, 2.5%, 24px); overflow: auto; }
.qslide h3 { margin: 0; text-align: center; color: #1D2B44; font-size: clamp(18px, 2.6vw, 34px); }
.qslide__q { margin: 0; background: #EEF2F6; border-radius: 8px; padding: clamp(10px, 2%, 20px) clamp(12px, 2.4%, 24px); font-weight: 600; color: #1D2B44; font-size: clamp(14px, 1.6vw, 22px); }
.qslide__opts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.6%, 18px); flex: 1; }
.qslide__opt { text-align: left; border: 0; border-radius: 8px; background: #2E5C8A; color: #fff; font-size: clamp(13px, 1.5vw, 20px); padding: clamp(8px, 1.6%, 16px) clamp(10px, 2%, 20px);
  cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 4px; font-family: var(--font-body); transition: background .15s; }
.qslide__opt:hover { background: #24496F; }
.qslide__opt span { font-size: .8em; font-weight: 700; }
.qslide__opt.is-ok { background: #3E9B57; }
.qslide__opt.is-no { background: #D2484F; }
@media (max-width: 700px) { .qslide { aspect-ratio: auto; } .qslide__opts { grid-template-columns: 1fr; } }

.show--list .show__stage { padding-top: 4px; }
/* Без печат на презентации и работни листове */
@media print {
  .show { display: none !important; }
  body.no-print-open * { visibility: hidden !important; }
}
.featured-note { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); background: var(--white); border-left: 3px solid var(--teal-500); border-radius: 8px; padding: 10px 14px; }
.featured-note b { color: var(--navy-700); }
