/* Шрифтът Nunito е на нашия сървър (SIL Open Font License, assets/fonts/OFL-Nunito.txt) – без връзка с Google */
@font-face { font-family: 'Nunito'; src: url('../assets/fonts/nunito.woff') format('woff'); font-weight: 600 900; font-style: normal; font-display: swap; }
/* =========================================================
   Сметко — основни стилове (mobile-first)
   ========================================================= */
:root {
  --navy: #1D2B4F;
  --ink: #33405F;
  --muted: #66728F;
  --line: #DEE8F6;
  --bg: #FFFFFF;
  --bg-soft: #F4F9FF;
  --cream: #FFF8EC;
  /* тетрадка: хартия, квадратчета и синя химикалка */
  --grid: #E4EDFB;
  --grid-cream: #F3E8D4;
  --grid-size: 28px;
  --pen: #2F5FD0;

  --sky: #5BC0FF;
  --sky-light: #CDEEFF;
  --blue: #2F80ED;
  --blue-dark: #1C64C8;
  --orange: #FF7A1A;
  --orange-dark: #D95F00;
  --yellow: #FFC531;
  --yellow-dark: #E0A500;
  --green: #4CBB4A;
  --green-dark: #2E9440;
  --red: #FF5A5F;
  --red-dark: #D93D43;
  --purple: #8E6CF0;
  --purple-dark: #6C4BD6;
  --teal: #19B5A5;
  --teal-dark: #0E9184;

  --g1: #FF5A5F; --g1d: #D93D43;
  --g2: #FF9F1C; --g2d: #D97F00;
  --g3: #4CBB4A; --g3d: #2E9440;
  --g4: #2F80ED; --g4d: #1C64C8;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 10px 30px rgba(29, 43, 79, .10);
  /* плътна сянка като на изрязана хартия, а не размазано сиво */
  --shadow-sm: 0 3px 0 rgba(29, 43, 79, .07);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.65;   /* деца четат по-лесно с по-едър текст и повече въздух */
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button { font-family: inherit; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Лого ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.85rem; letter-spacing: -.02em; text-decoration: none !important; line-height: 1; }
.logo .owl-mini { width: 40px; height: 40px; }
.logo-word span { display: inline-block; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.logo-word span:nth-child(1) { color: var(--red); }
.logo-word span:nth-child(2) { color: var(--orange); }
.logo-word span:nth-child(3) { color: var(--yellow-dark); }
.logo-word span:nth-child(4) { color: var(--green); }
.logo-word span:nth-child(5) { color: var(--blue); }
.logo-word span:nth-child(6) { color: var(--purple); }
.logo:hover .logo-word span { animation: hop .5s ease both; }
.logo:hover .logo-word span:nth-child(2) { animation-delay: .04s; }
.logo:hover .logo-word span:nth-child(3) { animation-delay: .08s; }
.logo:hover .logo-word span:nth-child(4) { animation-delay: .12s; }
.logo:hover .logo-word span:nth-child(5) { animation-delay: .16s; }
.logo:hover .logo-word span:nth-child(6) { animation-delay: .2s; }

/* ---------- Хедър ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.nav { display: none; }
.nav a { color: var(--navy); font-weight: 800; padding: 8px 12px; border-radius: 12px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); text-decoration: none; color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.points-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); color: var(--navy); font-weight: 900; padding: 6px 12px; border-radius: 999px; border: 2px solid #FFE3A3; font-size: .95rem; text-decoration: none !important; }
.points-chip .star { color: var(--yellow-dark); }
.site-header .btn-login { display: none; }
.logo { white-space: nowrap; }
.menu-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 3px; background: var(--navy); border-radius: 3px; position: relative; content: ''; }
.menu-btn span::before { position: absolute; top: -7px; } .menu-btn span::after { position: absolute; top: 7px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 8px 16px 16px; }
.mobile-nav.open { display: grid; gap: 4px; }
.mobile-nav a { padding: 12px 14px; border-radius: 12px; font-weight: 800; color: var(--navy); }
.mobile-nav a:hover { background: var(--bg-soft); text-decoration: none; }

@media (min-width: 1100px) {
  .nav { display: flex; gap: 2px; }
  .menu-btn, .mobile-nav { display: none !important; }
  .site-header .btn-login { display: inline-flex; }
}

/* ---------- Бутони ---------- */
.btn {
  --c: var(--orange); --cd: var(--orange-dark); --tx: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--c); color: var(--tx); font-weight: 900; font-size: 1.1rem; line-height: 1.1;
  box-shadow: 0 5px 0 var(--cd), 0 10px 20px rgba(0,0,0,.12);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s; text-decoration: none !important;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cd), 0 4px 10px rgba(0,0,0,.12); }
.btn-lg { min-height: 62px; font-size: 1.3rem; padding: 14px 34px; }
.btn-sm { min-height: 40px; font-size: .95rem; padding: 8px 16px; box-shadow: 0 3px 0 var(--cd); }
.btn-green { --c: var(--green); --cd: var(--green-dark); }
.btn-blue { --c: var(--blue); --cd: var(--blue-dark); }
.btn-teal { --c: var(--teal); --cd: var(--teal-dark); }
.btn-purple { --c: var(--purple); --cd: var(--purple-dark); }
.btn-yellow { --c: var(--yellow); --cd: var(--yellow-dark); --tx: var(--navy); }
.btn-white { --c: #fff; --cd: #C9D6EA; --tx: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 3px var(--line); }
.btn-ghost:active { transform: none; box-shadow: inset 0 0 0 3px var(--blue); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Херо ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #4FB8FA 0%, #8ED3FF 45%, #CDEEFF 75%, #E9F8FF 100%);
  padding: 36px 0 0;
}
.hero::after { /* пейзаж */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 230px;
  background: url(../assets/images/landscape.svg) center bottom / cover no-repeat; z-index: 0; pointer-events: none;
}
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .9; z-index: 0; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud.c1 { width: 130px; height: 38px; top: 40px; left: 6%; animation: drift 38s linear infinite alternate; }
.cloud.c1::before { width: 60px; height: 60px; top: -30px; left: 20px; } .cloud.c1::after { width: 44px; height: 44px; top: -20px; left: 64px; }
.cloud.c2 { width: 100px; height: 30px; top: 110px; right: 8%; animation: drift 46s linear infinite alternate-reverse; }
.cloud.c2::before { width: 48px; height: 48px; top: -24px; left: 16px; } .cloud.c2::after { width: 36px; height: 36px; top: -16px; left: 52px; }
.cloud.c3 { width: 80px; height: 24px; top: 30px; left: 55%; opacity: .7; animation: drift 52s linear infinite alternate; }
.cloud.c3::before { width: 38px; height: 38px; top: -19px; left: 12px; } .cloud.c3::after { width: 28px; height: 28px; top: -12px; left: 40px; }

.hero-grid { position: relative; z-index: 1; display: grid; gap: 8px; align-items: end; }
.hero-copy { padding-bottom: 24px; }
.hero h1 { color: var(--navy); text-shadow: 0 3px 0 rgba(255,255,255,.6); margin-bottom: .3em; }
.hero h1 .accent { color: #fff; -webkit-text-stroke: 0; text-shadow: 0 3px 0 var(--blue-dark), 0 6px 18px rgba(28,100,200,.35); }
.hero .lead { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.hero .lead span { white-space: nowrap; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.hero-note { font-weight: 800; color: var(--navy); font-size: .95rem; opacity: .85; }
.grade-pick { margin-top: 6px; }
.grade-pick-label { font-weight: 900; color: var(--navy); margin-bottom: 10px; font-size: 1.05rem; }
.grade-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 520px; }
.grade-btn {
  --c: var(--g1); --cd: var(--g1d);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  aspect-ratio: 1 / 1; border-radius: 20px; background: var(--c); color: #fff; font-weight: 900; text-decoration: none !important;
  box-shadow: 0 6px 0 var(--cd), 0 12px 20px rgba(0,0,0,.12); transition: transform .08s, box-shadow .08s; line-height: 1;
}
.grade-btn b { font-size: clamp(2rem, 7vw, 2.8rem); }
.grade-btn small { font-size: .9rem; font-weight: 800; opacity: .95; margin-top: 4px; }
.grade-btn:hover { transform: translateY(-3px); }
.grade-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--cd); }
.grade-btn.g2 { --c: var(--g2); --cd: var(--g2d); }
.grade-btn.g3 { --c: var(--g3); --cd: var(--g3d); }
.grade-btn.g4 { --c: var(--g4); --cd: var(--g4d); }

.hero-owl { position: relative; justify-self: center; width: min(62vw, 250px); margin: 40px 0 26px; }
.hero-owl .owl { animation: float 4s ease-in-out infinite; }
.speech {
  position: absolute; background: #fff; color: var(--navy); font-weight: 900; padding: 10px 16px; border-radius: 18px;
  box-shadow: var(--shadow-sm); font-size: 1rem; line-height: 1.25; max-width: 210px;
}
.speech::after { content: ''; position: absolute; bottom: -10px; left: 30px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
.hero-owl .speech { top: -44px; left: -40px; max-width: 180px; font-size: .9rem; animation: pop .5s .6s both; }

@media (min-width: 900px) {
  .hero { padding-top: 56px; }
  .hero::after { height: 300px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 24px; }
  .hero-copy { padding-bottom: 120px; }
  .hero-owl { width: 380px; margin: 0 0 70px; }
  .hero-owl .speech { left: -60px; top: 0; max-width: 210px; font-size: 1rem; }
}

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
/* меките ленти са лист на квадратчета, както в тетрадката по математика */
.section.soft, .section.cream {
  background-color: var(--bg-soft);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
}
.section.cream { background-color: var(--cream); --grid: var(--grid-cream); }

.section-head { text-align: left; max-width: 760px; margin: 0 0 32px; }
.section-head p { color: var(--muted); font-size: 1.1rem; font-weight: 600; margin: 0; }
.section-head h2 { margin-bottom: .3em; }
@media (min-width: 900px) {
  .section-head { max-width: none; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 4px 40px; align-items: end; }
  .section-head h2 { margin-bottom: 0; }
  .section-head p { max-width: 54ch; padding-bottom: .2em; }
}
/* подчертаване с химикалка вместо декоративни чертички отстрани */
.lined, .title-deco { display: block; width: fit-content; max-width: 100%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 13' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%232F5FD0' stroke-linecap='round'%3E%3Cpath d='M2.5 7.4c33-3.2 73-4.4 110-3.5 29 .7 55 2.4 85 3.8' stroke-width='2.8'/%3E%3Cpath d='M12 11.2c38-2.4 82-3 122-2.2' stroke-width='1.6' opacity='.45'/%3E%3C/g%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left bottom; background-size: 100% .34em; padding-bottom: .26em; }
.cta-band .lined, .nvo-hero .lined { background-image: none; padding-bottom: 0; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .95rem; color: var(--orange-dark); border-left: 4px solid var(--orange); padding: 0 0 0 10px; margin-bottom: 10px; }

.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 2px solid var(--line); }
.card h3 { letter-spacing: -.015em; }
.card h3 .ico { width: 1.3em; height: 1.3em; vertical-align: -.28em; margin-right: .3em; }

/* ---------- Икони (един набор, рисуван с една линия; цветът идва от текста) ---------- */
.ico-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; }
.hub-card span .ico, .free-card span .ico { width: 30px; height: 30px; stroke-width: 1.8; }
.mode-card .mode-ico .ico { width: 32px; height: 32px; stroke-width: 1.8; }
.free-card span { color: var(--c, var(--blue)); }
.nvo-nav .ico { width: 17px; height: 17px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

/* Как работи */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { text-align: center; }
.step-art { width: 100%; max-width: 260px; margin: 0 auto 10px; background: var(--sky-light); border-radius: 26px; padding: 18px; aspect-ratio: 4/3; display: grid; place-items: center; }
.step:nth-child(2) .step-art { background: #FFF1CC; }
.step:nth-child(3) .step-art { background: #E3F6E0; }
.step h3 { font-size: 1.3rem; }
.step h3 .num { color: var(--orange); margin-right: 4px; }
.step p { color: var(--muted); font-weight: 600; max-width: 300px; margin: 0 auto; }
@media (min-width: 800px) {
  .steps { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; }
  .step-arrow { display: block !important; align-self: center; margin-top: -60px; }
}
.step-arrow { display: none; color: var(--sky); width: 44px; }

/* Режими */
.mode-card { position: relative; overflow: hidden; padding-top: 28px; }
.mode-card .mode-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; margin-bottom: 14px; color: #fff; font-weight: 900; }
.mode-card.quick .mode-ico { background: var(--orange); box-shadow: 0 5px 0 var(--orange-dark); }
.mode-card.adv .mode-ico { background: var(--green); box-shadow: 0 5px 0 var(--green-dark); }
.mode-card.prac .mode-ico { background: var(--purple); box-shadow: 0 5px 0 var(--purple-dark); }
.mode-card p { color: var(--muted); font-weight: 600; }
/* Приключението е основният начин – заема цялата лява колона, другите два стоят до него */
.mode-split { display: grid; gap: 16px; }
@media (min-width: 880px) {
  .mode-split { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .mode-split .mode-card.adv { grid-row: 1 / span 2; background: var(--cream); border-color: #F2E0BE; padding: 32px; }
  .mode-split .mode-card.adv h3 { font-size: 1.9rem; }
  .mode-split .mode-card.adv p { font-size: 1.08rem; }
  .mode-split .mode-card.adv .mode-ico { width: 76px; height: 76px; }
  .mode-split .mode-card.adv .mode-ico .ico { width: 38px; height: 38px; }
  .mode-split .mode-card.quick, .mode-split .mode-card.prac { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-content: start; padding-top: 22px; }
  .mode-split .mode-card.quick .mode-ico, .mode-split .mode-card.prac .mode-ico { grid-row: 1 / span 3; margin-bottom: 0; }
  .mode-split .mode-card.quick h3, .mode-split .mode-card.prac h3 { margin-bottom: .2em; }
  .mode-split .mode-card.quick .btn, .mode-split .mode-card.prac .btn { justify-self: start; margin-top: 12px; }
}

/* Класове */
.class-card { --cc: var(--g1); --ccd: var(--g1d); border-top: 8px solid var(--cc); display: flex; flex-direction: column; }
.class-card.g2 { --cc: var(--g2); --ccd: var(--g2d); } .class-card.g3 { --cc: var(--g3); --ccd: var(--g3d); } .class-card.g4 { --cc: var(--g4); --ccd: var(--g4d); }
.class-card h3 { color: var(--cc); font-size: 1.6rem; }
.class-card ul { padding-left: 0; list-style: none; margin: 0 0 18px; flex: 1; }
.class-card li { padding: 6px 0 6px 28px; position: relative; font-weight: 700; border-bottom: 1px dashed var(--line); }
.class-card li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--cc); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 900; }
.class-card .btn:not(.btn-ghost) { --c: var(--cc); --cd: var(--ccd); }

/* Родители/учители */
.split { display: grid; gap: 22px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.aud-card { border-radius: 24px; padding: 30px; position: relative; overflow: hidden; border: 2px solid; }
.aud-card.parents { background: #FFF4E2; border-color: #F7D9AC; }
.aud-card.teachers { background: #EAF4FF; border-color: #BFDBF7; }
.aud-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.aud-card li { padding: 8px 0 8px 36px; position: relative; font-weight: 700; color: var(--navy); }
.aud-card li::before { content: ''; position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%234CBB4A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; box-shadow: var(--shadow-sm); }
.soon { display: inline-block; font-size: .72rem; font-weight: 900; background: var(--purple); color: #fff; border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; letter-spacing: .02em; }

/* Цени */
.price-toggle { display: inline-flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow-sm); border: 2px solid var(--line); margin: 0 auto 28px; }
.price-toggle button { border: 0; background: transparent; font-weight: 900; font-size: 1rem; padding: 10px 20px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.price-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } .plans.three { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; background: #fff; border-radius: 26px; padding: 26px 22px; border: 3px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan.featured { border-color: var(--orange); box-shadow: 0 16px 40px rgba(255, 122, 26, .22); }
.plan .ribbon { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-weight: 900; font-size: .8rem; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .who { color: var(--muted); font-weight: 700; font-size: .95rem; min-height: 2.6em; }
.plan .price { font-size: 2.6rem; font-weight: 900; color: var(--navy); line-height: 1; margin: 14px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 800; color: var(--muted); }
.plan .per { color: var(--green-dark); font-weight: 800; font-size: .95rem; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-weight: 700; font-size: .97rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.plan li.no { color: #A3ADC2; } .plan li.no::before { content: '–'; color: #C2CADB; }
.plan .btn { width: 100%; }
.price-note { text-align: center; color: var(--muted); font-weight: 700; margin-top: 18px; font-size: .95rem; }
.table-wrap { overflow-x: auto; border-radius: 20px; border: 2px solid var(--line); background: #fff; }
table.compare { border-collapse: collapse; width: 100%; min-width: 560px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 700; }
table.compare th { background: var(--bg-soft); color: var(--navy); font-weight: 900; }
table.compare td.c { text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; border: 2px solid var(--line); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 900; color: var(--navy); padding: 14px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 1.6rem; color: var(--orange); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-weight: 600; }

/* CTA лента */
.cta-band { background: linear-gradient(120deg, var(--orange), #FF9F1C); color: #fff; border-radius: 30px; padding: 34px 26px; display: grid; gap: 18px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; font-weight: 700; opacity: .95; }
.cta-band .owl { width: 130px; justify-self: center; }
@media (min-width: 800px) { .cta-band { grid-template-columns: auto 1fr auto; padding: 30px 40px; } }

/* Подстраници */
.page-hero { background: linear-gradient(180deg, #5BC0FF, #CDEEFF); padding: 44px 0 110px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: url(../assets/images/landscape.svg) center bottom / cover no-repeat; }
.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: 18px; align-items: center; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.page-hero .lead { font-weight: 700; color: var(--navy); font-size: 1.12rem; max-width: 640px; }
.page-hero .owl { width: 170px; justify-self: center; }
@media (min-width: 800px) { .page-hero .wrap { grid-template-columns: 1fr auto; } .page-hero .owl { width: 210px; } }
.breadcrumbs { font-size: .9rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; opacity: .8; }
.breadcrumbs a { color: var(--navy); }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 22px; } .prose li { margin-bottom: 6px; }
.callout { background: #FFF6DB; border-left: 6px solid var(--yellow); border-radius: 14px; padding: 14px 18px; font-weight: 700; margin: 18px 0; }

.topic-list { display: grid; gap: 12px; }
@media (min-width: 700px) { .topic-list { grid-template-columns: repeat(2, 1fr); } }
.topic-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; color: var(--navy); font-weight: 800; text-decoration: none !important; transition: transform .1s, border-color .1s; }
.topic-item:hover { transform: translateY(-2px); border-color: var(--sky); }
.topic-item .t-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; font-weight: 900; color: #fff; background: var(--c, var(--blue)); }
.topic-item .t-go { margin-left: auto; color: var(--orange); font-size: 1.4rem; }
.topic-item small { display: block; font-weight: 700; color: var(--muted); }

/* ---------- Футър ---------- */
.site-footer { background: var(--navy); color: #C9D3EA; padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; font-weight: 700; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .logo-word span { text-shadow: none; }
.site-footer .logo { background: #fff; padding: 6px 14px 6px 8px; border-radius: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------- Модален прозорец ---------- */
dialog.modal { border: 0; border-radius: 26px; padding: 0; width: min(92vw, 460px); box-shadow: 0 30px 80px rgba(0,0,0,.3); color: var(--ink); }
dialog.modal::backdrop { background: rgba(29, 43, 79, .55); }
.modal-body { padding: 28px 24px 24px; text-align: center; }
.modal-body .owl { width: 120px; margin: 0 auto 8px; }
.modal-body h3 { font-size: 1.5rem; }
.modal-body p { color: var(--muted); font-weight: 600; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.modal-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft); font-size: 1.4rem; cursor: pointer; color: var(--navy); }
.field { display: grid; gap: 6px; text-align: left; margin: 10px 0; font-weight: 800; color: var(--navy); }
.field input { font: inherit; font-weight: 700; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); }
.field input:focus { border-color: var(--blue); outline: none; }

/* ---------- Значки ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.badge { text-align: center; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 16px 10px; }
.badge .b-ico { font-size: 2.4rem; width: 70px; height: 70px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #FFF3C4, #FFD36B); box-shadow: inset 0 -4px 0 rgba(0,0,0,.08); }
.badge b { display: block; color: var(--navy); line-height: 1.2; }
.badge small { display: block; color: var(--muted); font-weight: 700; font-size: .82rem; margin-top: 4px; line-height: 1.3; }
.badge.locked { opacity: .55; }
.badge.locked .b-ico { filter: grayscale(1); background: #EEF2F8; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border-radius: 20px; border: 2px solid var(--line); padding: 16px; text-align: center; }
.stat b { display: block; font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stat span { font-weight: 800; color: var(--muted); font-size: .9rem; }
.rank-bar { height: 16px; border-radius: 999px; background: #E7EEF9; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--orange)); border-radius: 999px; }

/* =========================================================
   ИГРА
   ========================================================= */
body.game-page { background: linear-gradient(180deg, #5BC0FF 0%, #BFE7FF 55%, #E7F7FF 100%); min-height: 100vh; min-height: 100dvh; }
.game-header { background: transparent; border: 0; position: relative; }
.game-header .wrap { height: 60px; }
.game-header .points-chip { background: #fff; }
.screen { display: none; }
.screen.active { display: block; animation: screenIn .3s ease both; }
.game-wrap { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }
.panel { background: #fff; border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.5rem; margin-bottom: 14px; }
.step-label { font-weight: 900; color: var(--muted); font-size: .85rem; letter-spacing: .005em; margin-bottom: 8px; }

.today { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.85); border-radius: 22px; padding: 12px 16px; margin-bottom: 16px; font-weight: 800; color: var(--navy); }
.today .owl { width: 64px; flex: none; }
.today .goal { flex: 1; }
.today .goal-bar { height: 12px; background: #E7EEF9; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.today .goal-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .4s; }
.today .streak { text-align: center; font-size: .85rem; }
.today .streak b { display: block; font-size: 1.4rem; }

.grade-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grade-tab { --c: var(--g1); --cd: var(--g1d); border: 3px solid transparent; background: var(--bg-soft); border-radius: 18px; padding: 12px 4px; font-weight: 900; color: var(--navy); font-size: 1.05rem; cursor: pointer; line-height: 1.1; }
.grade-tab b { display: block; font-size: 1.8rem; color: var(--c); }
.grade-tab[data-g="2"] { --c: var(--g2); --cd: var(--g2d); } .grade-tab[data-g="3"] { --c: var(--g3); --cd: var(--g3d); } .grade-tab[data-g="4"] { --c: var(--g4); --cd: var(--g4d); }
.grade-tab[aria-pressed="true"] { background: var(--c); color: #fff; box-shadow: 0 5px 0 var(--cd); }
.grade-tab[aria-pressed="true"] b { color: #fff; }

.modes { display: grid; gap: 12px; }
@media (min-width: 640px) { .modes { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 900px) { .modes { grid-template-columns: repeat(2, 1fr); } }
.mode-btn { text-align: left; border: 3px solid var(--line); background: #fff; border-radius: 22px; padding: 16px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; color: var(--ink); transition: border-color .1s, transform .1s; }
@media (min-width: 640px) { .mode-btn { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.mode-btn:hover { transform: translateY(-2px); }
.mode-btn .m-ico { grid-row: span 2; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; color: #fff; }
@media (min-width: 640px) { .mode-btn .m-ico { grid-row: auto; } }
.mode-btn b { font-size: 1.15rem; color: var(--navy); }
.mode-btn small { font-weight: 700; color: var(--muted); line-height: 1.3; }
.mode-btn[data-mode="quick"] .m-ico { background: var(--orange); }
.mode-btn[data-mode="adventure"] .m-ico { background: var(--green); }
.mode-btn[data-mode="practice"] .m-ico { background: var(--purple); }
.mode-btn[aria-pressed="true"] { border-color: var(--blue); background: #F2F8FF; box-shadow: 0 0 0 3px rgba(47,128,237,.15); }

.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: #fff; color: var(--navy); font-weight: 800; padding: 9px 14px; border-radius: 999px; cursor: pointer; font-size: .95rem; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.start-row { display: flex; justify-content: center; margin-top: 20px; }

/* Карта на приключението */
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.map-head h2 { margin: 0; color: var(--navy); font-size: 1.4rem; }
.map-stars { background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 900; color: var(--navy); }
.map { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 400 / 1180; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(180deg, #8ED3FF 0, #CDEEFF 260px, #A6E07F 380px, #7CCB55 60%, #5DB843 100%); }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-node {
  --c: var(--green); --cd: var(--green-dark);
  position: absolute; transform: translate(-50%, -50%); width: 17%; aspect-ratio: 1; border-radius: 50%; border: 0;
  background: var(--c); color: #fff; font-weight: 900; font-size: clamp(1rem, 4.5vw, 1.5rem); cursor: pointer;
  box-shadow: 0 6px 0 var(--cd), 0 10px 18px rgba(0,0,0,.2); display: grid; place-items: center; padding: 0;
}
.map-node:active { transform: translate(-50%, -45%); box-shadow: 0 2px 0 var(--cd); }
.map-node.locked { --c: #B9C3D4; --cd: #8E99AD; cursor: pointer; }
.map-node.done { --c: var(--yellow); --cd: var(--yellow-dark); color: var(--navy); }
.map-node.current { animation: pulse 1.6s ease-in-out infinite; }
.map-node .n-stars { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: .8rem; white-space: nowrap; letter-spacing: -1px; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.map-node .n-label { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; background: rgba(255,255,255,.92); color: var(--navy); font-size: .72rem; font-weight: 900; padding: 3px 8px; border-radius: 999px; pointer-events: none; }
.map-node.left-label .n-label { right: calc(100% + 8px); }
.map-node.right-label .n-label { left: calc(100% + 8px); }
.map-node .lock { font-size: 1.1rem; }
.map-owl { position: absolute; width: 15%; transform: translate(-50%, -100%); pointer-events: none; transition: left .6s, top .6s; z-index: 2; }

/* Игрален екран */
.play-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.icon-btn { flex: none; width: 46px; height: 46px; border-radius: 14px; border: 0; background: rgba(255,255,255,.9); color: var(--navy); font-size: 1.3rem; font-weight: 900; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.progress { flex: 1; height: 18px; background: rgba(255,255,255,.7); border-radius: 999px; overflow: hidden; position: relative; }
.progress i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--green), #7ED957); border-radius: 999px; transition: width .3s; }
.progress.timer i { background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width 1s linear; }
.progress.timer.low i { background: var(--red); }
.timer-num { font-weight: 900; color: var(--navy); min-width: 44px; text-align: center; font-size: 1.2rem; background: #fff; border-radius: 12px; padding: 6px 8px; }
.score { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; min-width: 0; }
.score .pill { background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 900; color: var(--navy); box-shadow: var(--shadow-sm); white-space: nowrap; font-size: .92rem; }
.score #play-mode { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.score #pts { margin-left: auto; }
.combo { background: var(--orange) !important; color: #fff !important; opacity: 0; transform: scale(.6); transition: .2s; }
.combo.show { opacity: 1; transform: scale(1); }

.stage { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: end; margin-bottom: 12px; }
.stage .owl { width: 90px; }
.stage .bubble { position: relative; background: #fff; border-radius: 18px; padding: 10px 14px; font-weight: 900; color: var(--navy); align-self: center; min-height: 44px; box-shadow: var(--shadow-sm); }
.stage .bubble::before { content: ''; position: absolute; left: -9px; bottom: 12px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
@media (min-width: 640px) { .stage { grid-template-columns: 120px 1fr; } .stage .owl { width: 120px; } }

.qcard { background: #fff; border-radius: 28px; padding: 22px 16px; text-align: center; box-shadow: var(--shadow); position: relative; min-height: 150px; display: grid; place-items: center; }
.qcard.ok { box-shadow: 0 0 0 5px var(--green), var(--shadow); }
.qcard.bad { box-shadow: 0 0 0 5px var(--red), var(--shadow); animation: shake .35s; }
.q-text { font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 900; color: var(--navy); line-height: 1.25; word-break: break-word; }
.q-text.long { font-size: clamp(1.1rem, 4.4vw, 1.45rem); line-height: 1.45; font-weight: 800; text-align: left; }
.q-text.long .slot { font-size: 1.6rem; min-width: 90px; }
.q-text .seq { display: block; margin-top: 8px; font-size: 1.7rem; font-weight: 900; letter-spacing: .02em; }
.q-text .ans-line { display: block; margin-top: 10px; font-weight: 900; }
.slot { display: inline-block; min-width: 1.6em; padding: 0 .2em; border-bottom: 5px solid var(--blue); color: var(--blue); border-radius: 4px; background: #EEF6FF; min-height: 1.1em; vertical-align: baseline; line-height: 1.15; }
.slot.empty::after { content: '?'; color: #A9C6EE; }
.qcard.ok .slot { color: var(--green-dark); border-color: var(--green); background: #EAF8E8; }
.qcard.bad .slot { color: var(--red-dark); border-color: var(--red); background: #FFEDEE; }
.fig { width: 210px; margin: 0 auto 6px; }
.fig text { font: 800 14px var(--font); fill: var(--navy); }
.dots { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.dots .grp { display: flex; flex-wrap: wrap; gap: 5px; max-width: 120px; justify-content: center; }
.dots i { width: 20px; height: 20px; border-radius: 50%; background: var(--red); display: block; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.dots .b i { background: var(--blue); }
.dots i.x { background: #D7DEEA; position: relative; }
.dots i.x::after { content: ''; position: absolute; left: 2px; right: 2px; top: 9px; height: 3px; background: var(--red); transform: rotate(-45deg); border-radius: 2px; }
.dots .op { font-weight: 900; font-size: 1.4rem; color: var(--navy); }
.explain { margin-top: 10px; font-weight: 800; color: var(--red-dark); font-size: 1.1rem; min-height: 1.4em; }
.explain.okc { color: var(--green-dark); }
.float-pts { position: absolute; top: 10px; right: 16px; font-weight: 900; color: var(--green-dark); font-size: 1.4rem; animation: floatUp .9s ease forwards; pointer-events: none; }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; max-width: 420px; margin-left: auto; margin-right: auto; }
.key {
  min-height: 62px; border: 0; border-radius: 18px; background: #fff; color: var(--navy); font-size: 1.8rem; font-weight: 900; cursor: pointer;
  box-shadow: 0 5px 0 #C9D6EA; -webkit-tap-highlight-color: transparent; user-select: none; touch-action: manipulation;
}
.key:active, .key.pressed { transform: translateY(4px); box-shadow: 0 1px 0 #C9D6EA; }
.key.del { background: #FFE9E0; box-shadow: 0 5px 0 #F3C2AE; color: var(--orange-dark); font-size: 1.5rem; }
.key.ok { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-dark); }
.key.ok:active { box-shadow: 0 1px 0 var(--green-dark); }
@media (min-height: 760px) { .key { min-height: 70px; } }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; max-width: 420px; margin-left: auto; margin-right: auto; }
.choices .key { font-size: 2.6rem; min-height: 84px; }
.next-row { display: flex; justify-content: center; margin-top: 14px; }

/* Резултати */
.result { text-align: center; }
.result .owl { width: 170px; margin: 0 auto; }
.result h2 { font-size: 2rem; margin: 8px 0 6px; }
.result .sub { color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.big-stars { font-size: 3rem; letter-spacing: 6px; margin: 4px 0 10px; }
.big-stars .off { filter: grayscale(1); opacity: .3; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.result-stats div { background: var(--bg-soft); border-radius: 18px; padding: 12px 6px; }
.result-stats b { display: block; font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.result-stats span { font-weight: 800; color: var(--muted); font-size: .85rem; }
.record { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 900; padding: 6px 16px; border-radius: 999px; margin-bottom: 10px; }
.new-badges { display: grid; gap: 10px; margin: 14px 0; }
.new-badge { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, #FFF6D6, #FFE8A8); border-radius: 18px; padding: 10px 14px; text-align: left; animation: pop .5s both; }
.new-badge .b-ico { font-size: 2rem; }
.new-badge b { color: var(--navy); display: block; }
.new-badge small { color: var(--muted); font-weight: 700; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.lock-note { font-size: .9rem; color: var(--muted); font-weight: 700; margin-top: 10px; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 16px; font-weight: 800; z-index: 300; transition: transform .3s; box-shadow: var(--shadow); max-width: 92vw; text-align: center; }
.toast.show { transform: translateX(-50%) translateY(0); }

.noscript { background: #FFF6DB; padding: 14px; text-align: center; font-weight: 800; }
code { word-break: break-all; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
[id] { scroll-margin-top: 84px; }

/* ---------- Въпроси с избор (v2) ---------- */
.choices.opts { grid-template-columns: 1fr; max-width: 520px; }
@media (min-width: 520px) { .choices.opts { grid-template-columns: repeat(2, 1fr); } }
.choices.opts.figs { grid-template-columns: repeat(var(--n, 3), 1fr); }
.choices.opts .key { font-size: 1.15rem; min-height: 58px; overflow-wrap: anywhere; padding: 10px 12px 10px 40px; position: relative; text-align: left; line-height: 1.2; }
.choices.opts.figs .key { padding: 8px; text-align: center; min-height: 96px; display: grid; place-items: center; }
.choices.opts.rom .key { font-family: Georgia, 'Times New Roman', serif; font-size: 1.6rem; letter-spacing: .04em; }
.choices .opt-n { position: absolute; left: 10px; top: 10px; width: 22px; height: 22px; border-radius: 7px; background: var(--bg-soft); color: var(--muted); font-size: .8rem; font-weight: 900; display: grid; place-items: center; font-family: var(--font); letter-spacing: 0; }
.choices .opt-fig { width: 100%; max-width: 84px; height: auto; aspect-ratio: 1; }
.choices .key.picked { box-shadow: 0 0 0 4px var(--blue), 0 5px 0 #C9D6EA; }
.choices .key.right { background: #E3F7E0; box-shadow: 0 0 0 4px var(--green), 0 5px 0 var(--green-dark); color: var(--green-dark); }
.choices .key.wrong { background: #FFECEC; box-shadow: 0 0 0 4px var(--red), 0 5px 0 var(--red-dark); color: var(--red-dark); }
.q-text.mid { font-size: clamp(1.25rem, 5vw, 1.75rem); line-height: 1.4; }
.q-text.mid .slot { min-width: 2.2em; }
.q-text .rom { font-family: Georgia, 'Times New Roman', serif; color: var(--blue); letter-spacing: .05em; }
.fig.clock { width: 170px; }
/* по-широките геометрични чертежи имат нужда от повече място */
.fig.ruler { width: 300px; max-width: 100%; }
.fig.scene { width: 280px; max-width: 100%; }
.fig .rl { font: 700 11px var(--font); fill: #8A6A22; }
.fig .pt { font: 900 14px var(--font); fill: var(--navy); }
.fig .clk, .fig.clock text { font: 900 15px var(--font); fill: var(--navy); }
.fig.ang { width: 150px; }
.fig.solid { width: 120px; }
.dots.big i { width: 30px; height: 30px; }
.dots.big .grp { max-width: 200px; gap: 8px; }
.money { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 8px; }
.coin svg { width: 62px; height: 62px; }
.coin-t { font: 900 11px var(--font); fill: #3B2A12; }
.note { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 92px; height: 52px; border-radius: 8px; background: linear-gradient(135deg, var(--n), color-mix(in srgb, var(--n) 70%, #fff)); color: #fff; box-shadow: inset 0 0 0 3px rgba(255,255,255,.45), 0 3px 8px rgba(0,0,0,.15); line-height: 1; }
.note b { font-size: 1.4rem; font-weight: 900; }
.note small { font-size: .7rem; font-weight: 800; opacity: .95; }
.chip b { color: var(--orange); margin-right: 2px; }
.chip[aria-pressed="true"] b { color: var(--yellow); }
.map-node .n-label { white-space: normal; width: max-content; max-width: 112px; line-height: 1.15; text-align: center; }

/* =========================================================
   ДИЗАЙН v2 – по прототипа (прозрачен хедър, бяло заглавие, хълмове)
   ========================================================= */
:root { --navy: #1E3A8A; --ink: #2B3A67; --blue: #3299FF; --blue-dark: #1F7AE0; --orange: #FF7B00; --orange-dark: #C45A00; --teal: #00C2A8; --teal-dark: #009985; --line: #E4EDF8; }
body { color: var(--ink); }
h1, h2, h3, h4 { color: var(--navy); }

/* Лого с бял контур като в прототипа */
.logo-word span { -webkit-text-stroke: 0; text-shadow: none; }
.site-header.over:not(.scrolled) .logo-word { paint-order: stroke fill; -webkit-text-stroke: 7px #fff; text-shadow: 0 3px 8px rgba(0, 40, 120, .25); }
.logo { font-size: 1.9rem; }

/* Хедър */
.site-header { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); border: 0; }
.site-header .wrap { height: 72px; max-width: 1240px; }
.site-header.over { position: fixed; left: 0; right: 0; top: 0; background: transparent; box-shadow: none; backdrop-filter: none; transition: background .25s, box-shadow .25s; }
.site-header.over.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 6px 24px rgba(30, 58, 138, .10); backdrop-filter: blur(10px); }
.nav { align-items: center; }
.nav > a, .dd-btn { color: var(--navy); font-weight: 800; font-size: 1.05rem; padding: 9px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 4px; }
.site-header.over:not(.scrolled) .nav > a, .site-header.over:not(.scrolled) .dd-btn, .site-header.over:not(.scrolled) .link-login { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.18); }
.nav > a:hover, .dd-btn:hover, .dd.open .dd-btn { background: rgba(50,153,255,.10); text-decoration: none; }
.site-header.over:not(.scrolled) .nav > a:hover, .site-header.over:not(.scrolled) .dd-btn:hover, .site-header.over:not(.scrolled) .dd.open .dd-btn { background: rgba(255,255,255,.18); }
.nav > a[aria-current="page"] { color: var(--blue); }
.chev { font-size: .8em; opacity: .85; transition: transform .2s; }
.dd { position: relative; }
.dd.open .chev { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 290px; background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(30,58,138,.18); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.dd-panel::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: translateX(-50%); }
@media (hover: hover) and (min-width: 1100px) { .dd:hover .dd-panel { opacity: 1; visibility: visible; transform: translateX(-50%); } .dd:hover .chev { transform: rotate(180deg); } }
.dd-panel a { display: block; padding: 10px 14px; border-radius: 14px; color: var(--navy); text-decoration: none !important; }
.dd-panel a:hover { background: var(--bg-soft); }
.dd-panel b { display: block; font-weight: 900; }
.dd-panel small { display: block; color: var(--muted); font-weight: 700; font-size: .85rem; }
.link-login { display: none; color: var(--navy); font-weight: 800; padding: 8px 10px; }
.site-header .btn-register { display: none; }
.btn-teal { --c: var(--teal); --cd: var(--teal-dark); }
@media (min-width: 1100px) { .link-login { display: inline-block; } .site-header .btn-register { display: inline-flex; } .site-header .btn-login { display: none !important; } }
.site-header.over:not(.scrolled) .points-chip { background: rgba(255,255,255,.92); }
.site-header.over:not(.scrolled) .menu-btn { background: rgba(255,255,255,.9); }
.mobile-nav { max-height: calc(100vh - 72px); overflow-y: auto; }
.mobile-nav .m-grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px 0 8px; }
.mobile-nav .m-grades a { text-align: center; background: var(--bg-soft); padding: 10px 4px; font-size: .95rem; }
.mobile-nav .m-auth { display: flex; gap: 10px; padding: 4px 0 12px; margin-bottom: 6px; border-bottom: 2px solid var(--line); }
.mobile-nav .m-auth .btn { flex: 1; min-height: 46px; font-size: 1rem; }

/* Херо v2 */
.hero2 { position: relative; overflow: hidden; background: linear-gradient(180deg, #3D98FF 0%, #6BB6FF 45%, #A2D2FF 100%); padding: 104px 0 0; min-height: min(92vh, 760px); display: flex; flex-direction: column; }
.hero2-grid { position: relative; z-index: 2; display: grid; gap: 4px; align-items: center; flex: 1; padding-bottom: 150px; max-width: 1200px; }
.hero2-copy { text-align: center; }
.hero2 h1 { color: #fff; font-size: clamp(2.3rem, 7.4vw, 4rem); line-height: 1.12; margin-bottom: 26px; text-shadow: 0 3px 0 rgba(20, 80, 180, .35), 0 8px 24px rgba(0, 40, 120, .25); letter-spacing: -.015em; }
.btn-xl { min-height: 66px; font-size: 1.45rem; padding: 14px 44px; box-shadow: 0 6px 0 var(--orange-dark), 0 14px 30px rgba(196, 90, 0, .35); }
.btn-xl:active { box-shadow: 0 1px 0 var(--orange-dark); }
.hero2-sub { color: var(--navy); font-size: 1.2rem; font-weight: 800; margin: 18px 0 18px; }
.hero2-grades { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.35); padding: 8px 10px 8px 16px; border-radius: 999px; backdrop-filter: blur(4px); }
.hero2-grades span { font-weight: 900; color: var(--navy); margin-right: 2px; }
.gpill { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.3rem; text-decoration: none !important; background: var(--g1); box-shadow: 0 4px 0 var(--g1d); transition: transform .1s; }
.gpill:hover { transform: translateY(-2px); } .gpill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--g1d); }
.gpill.g2 { background: var(--g2); box-shadow: 0 4px 0 var(--g2d); } .gpill.g3 { background: var(--g3); box-shadow: 0 4px 0 var(--g3d); } .gpill.g4 { background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }
.hero2-owl { justify-self: center; width: min(66vw, 300px); margin-top: 18px; }
.hero2-owl .owl { animation: float 4.5s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0, 40, 100, .18)); }
.hero2-land { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 240px; z-index: 1; }
.hero2 .cloud { z-index: 1; }
@media (min-width: 900px) {
  .hero2 { padding-top: 120px; }
  .hero2-grid { grid-template-columns: 1.1fr .9fr; padding-bottom: 210px; }
  .hero2-copy { text-align: left; }
  .hero2-owl { width: 430px; margin-top: 0; justify-self: end; }
  .hero2-land { height: 320px; }
}

/* Заглавия с линии отстрани */
.lined small { font-weight: 700; }

/* Как работи v2 */
.how2 { background: #fff; padding: 36px 0 70px; text-align: center; position: relative; z-index: 3; }
.how2 h2 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin-bottom: 40px; }
.steps2 { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; max-width: 1040px; margin: 0 auto; }
.step2 { flex: 1; min-width: 240px; max-width: 320px; display: flex; flex-direction: column; align-items: center; }
.step2-img { width: 100%; height: 170px; background: #F0F7FF; border: 2px solid #E1EDFA; border-radius: 44px; display: grid; place-items: center; padding: 16px; margin-bottom: 16px; box-shadow: inset 0 0 24px rgba(255,255,255,.7), 0 10px 26px rgba(30,58,138,.07); transition: transform .2s; }
.step2:hover .step2-img { transform: translateY(-4px); }
.step2-img svg { max-height: 132px; }
.step2:nth-of-type(2) .step2-img { background: #FFF7E0; border-color: #FBE9B8; }
.step2:nth-of-type(3) .step2-img { background: #ECF8E8; border-color: #D5EECB; }
.step2-text { font-size: 1.22rem; font-weight: 900; color: var(--navy); margin: 0; }
.step2-text span { color: #E63946; }
.arrow2 { color: var(--blue); font-size: 2.6rem; font-weight: 900; margin-bottom: 44px; line-height: 1; }
@media (max-width: 900px) { .arrow2 { display: none; } }

/* По-леки карти и секции */
.section { padding: 68px 0; }
.card { border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(30,58,138,.06); border-radius: 26px; }
.class-card { border-top: 0; position: relative; overflow: hidden; padding-top: 30px; }
.class-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--cc); }
.cc-num { position: absolute; right: 16px; top: 14px; width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--cc) 15%, #fff); color: var(--cc); font-weight: 900; font-size: 1.4rem; display: grid; place-items: center; }
.class-card li { border-bottom: 1px dashed var(--line); }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.class-card.g4 { --cc: var(--blue); --ccd: var(--blue-dark); }
.book-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.book-card { background: #fff; border: 2px solid var(--line); border-top: 6px solid var(--sky); border-radius: 6px 6px 16px 16px; padding: 12px 18px 14px; min-width: 180px; text-align: left; box-shadow: var(--shadow-sm); }
.book-strip .book-card:nth-child(2) { border-top-color: var(--orange); }
.book-strip .book-card:nth-child(3) { border-top-color: var(--green); }
.book-strip .book-card:nth-child(4) { border-top-color: var(--purple); }
.book-strip .book-card:nth-child(5) { border-top-color: var(--yellow); }
.book-card b { display: block; color: var(--navy); font-weight: 900; }
.book-card small { color: var(--muted); font-weight: 700; }
.book-card.more { background: transparent; border-style: dashed; }
.aud-card { border-radius: 30px; }
.plan { border-width: 2px; border-radius: 28px; }
.faq details { border-width: 1px; }
.cta-band { background: linear-gradient(120deg, #FF7B00, #FFA53A); box-shadow: 0 20px 50px rgba(255, 123, 0, .25); }
.page-hero { background: linear-gradient(180deg, #3D98FF, #A2D2FF); padding: 110px 0 120px; }
.site-header:not(.over) + .page-hero, .site-header:not(.over) ~ main .page-hero { padding-top: 44px; }
.page-hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(20,80,180,.3), 0 8px 20px rgba(0,40,120,.2); }
.page-hero .lead, .page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.page-hero .lead { font-weight: 800; }
.rank-next { font-weight: 800; color: #fff; margin-top: 6px; }
.page-hero .callout { color: var(--navy); text-shadow: none; }
.tag { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-weight: 800; color: var(--navy); margin: 2px 4px 2px 0; }
.small-note { margin-top: 30px; font-size: .9rem; color: var(--muted); }
.lead-dark { font-weight: 700; color: var(--muted); font-size: 1.1rem; }
.steps-num .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; margin-bottom: 10px; }
.doc-card { text-decoration: none !important; display: block; transition: transform .15s; }
.doc-card:hover { transform: translateY(-3px); }
.doc-card b { display: block; color: var(--navy); margin-bottom: 4px; }
.doc-card small { color: var(--muted); font-weight: 700; }

/* Полета */
.select, .input { font: inherit; font-weight: 800; color: var(--navy); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 11px 14px; width: 100%; min-height: 48px; }
.select:focus, .input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(50,153,255,.15); }
.book-wrap { margin-top: 18px; }
.book-wrap .step-label { display: block; }
.hint { font-size: .9rem; color: var(--muted); font-weight: 700; margin: 8px 0 0; }
.tool-panel { max-width: 960px; margin: 0 auto; }
.tool-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.tool-grid label { display: grid; gap: 6px; font-weight: 900; color: var(--muted); font-size: .85rem; letter-spacing: .005em; }
.hw-out { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hw-out .input { flex: 1 1 260px; font-size: .9rem; }
.ws-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; color: var(--navy); margin-right: auto; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }

/* Работен лист */
.ws-page .ws-controls { padding-bottom: 20px; }
.ws-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ws-sheet-wrap { padding: 10px 16px 60px; background: var(--bg-soft); }
.ws-sheet { background: #fff; max-width: 820px; margin: 20px auto; padding: 32px 36px; border-radius: 10px; box-shadow: 0 10px 30px rgba(30,58,138,.08); color: #111; }
.ws-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 18px; }
.ws-brand { font-weight: 900; font-size: 1.4rem; color: var(--orange); }
.ws-brand small { display: block; font-size: .7rem; color: #666; }
.ws-title b { display: block; font-size: 1.2rem; }
.ws-title span { font-weight: 700; color: #444; }
.ws-fields { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 30px; font-weight: 700; margin-top: 6px; }
.ws-list { columns: 2; column-gap: 40px; padding-left: 26px; margin: 0; font-size: 1.25rem; font-weight: 700; }
.ws-list li { break-inside: avoid; padding: 9px 0; }
.ws-list li.ws-word { column-span: all; font-size: 1.05rem; font-weight: 600; }
.ws-list .ans-line { display: block; margin-top: 4px; }
.ws-blank { display: inline-block; min-width: 64px; border-bottom: 2px solid #111; height: 1.1em; vertical-align: baseline; }
.ws-foot { margin-top: 18px; border-top: 1px dashed #999; padding-top: 10px; font-weight: 700; }
.ws-keylist { columns: 2; font-size: 1rem; padding-left: 26px; }
@media (max-width: 600px) { .ws-list, .ws-keylist { columns: 1; } .ws-sheet { padding: 20px; } }

/* Правни документи */
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.doc .meta { color: var(--muted); font-weight: 700; }
.callout.warn { background: #FFF1E6; border-left-color: var(--orange); }
mark.fill { background: #FFF3B0; color: #6B4E00; padding: 0 4px; border-radius: 4px; font-weight: 800; }
.info-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .95rem; display: block; overflow-x: auto; }
.info-table th, .info-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.info-table th { background: var(--bg-soft); color: var(--navy); }
.doc-links li { margin-bottom: 8px; font-weight: 800; }
.form-doc { border: 2px dashed #B3C5DF; border-radius: 16px; padding: 20px; }
.form-doc .line { margin: 14px 0; }
.sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.doc-actions { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Игра v2 */
body.game-page { background: linear-gradient(180deg, #3D98FF 0%, #A2D2FF 60%, #E7F5FF 100%); }
.goal-text { font-size: .9rem; color: var(--muted); }
.game-header .wrap { max-width: 1240px; }

/* Печат */
@media print {
  @page { size: A4 portrait; margin: 12mm 11mm 13mm; }
  .site-header, .site-footer, .ws-controls, .skip, .toast, #confetti, .doc-actions { display: none !important; }
  html, body { background: #fff; font-size: 11pt; }
  .ws-sheet-wrap { padding: 0; background: #fff; }
  .ws-sheet { box-shadow: none; margin: 0; padding: 0; max-width: none; border-radius: 0; }
  .ws-answers { page-break-before: always; }
  .ws-answers[hidden] { display: none !important; }
  .section { padding: 0; }
  /* на хартия от календара остават само задачите */
  .ac-bar, #advent, .page-hero, .ac-sheet[hidden] { display: none !important; }
  a { color: #000; }

  /* ---- работните листове на хартия ---- */
  .ws-head { break-inside: avoid; padding-bottom: 8pt; margin-bottom: 11pt; }
  .ws-brand { font-size: 13pt; }
  .ws-title b { font-size: 12pt; }
  .ws-title span, .ws-fields { font-size: 9.5pt; }
  .ws-list { font-size: 12.5pt; column-gap: 11mm; padding-left: 7mm; }
  .ws-list li { padding: 6pt 0; break-inside: avoid; overflow-wrap: anywhere; }
  /* листът пълни страницата: колкото по-малко задачи, толкова повече място за писане */
  .ws-list[data-fig="0"][data-n="12"] li { padding: 36pt 0; }
  .ws-list[data-fig="0"][data-n="16"] li { padding: 26pt 0; }
  .ws-list[data-fig="0"][data-n="20"] li { padding: 18pt 0; }
  .ws-list[data-fig="0"][data-n="24"] li { padding: 13pt 0; }
  .ws-list[data-fig="0"][data-n="30"] li { padding: 9pt 0; }
  .ws-list li.ws-word { font-size: 10.5pt; }
  .ws-nvo { font-size: 11pt; }
  .ws-nvo li { padding: 5pt 0; }
  .ws-opts { font-size: 10.5pt; gap: 2pt 14pt; }
  .ws-opts span { min-width: 26mm; }
  .ws-opts .opt-fig { height: 11mm; }
  .ws-note { font-size: 9pt; padding: 5pt 8pt; margin-bottom: 9pt; background: #fff; border-left-width: 3pt; break-inside: avoid; }
  .ws-tag { font-size: 6.5pt; background: #fff; border: .6pt solid #999; color: #333; }
  .ws-foot { break-inside: avoid; margin-top: 11pt; padding-top: 7pt; font-size: 10.5pt; }
  .wk-day { border-color: #999; padding: 5pt 10pt 6pt; margin: 0; }
  .wk-day h3 { font-size: 10.5pt; }
  .wk-box { width: 10pt; height: 10pt; }
  .ws-week { gap: 7pt; }
  .ws-list.wk-list { font-size: 11.5pt; padding-left: 6mm; }
  .ws-list.wk-list li { padding: 7pt 0; }
  .wk-key { font-size: 10pt; margin: 7pt 0 1pt; }
  .ws-keylist { font-size: 9.5pt; padding-left: 7mm; column-gap: 9mm; }
  .ws-keylist li { padding: 2.5pt 0; break-inside: avoid; overflow-wrap: anywhere; }
  .ws-fig svg { max-height: 24mm; }
  .ws-list li .ws-fig svg.ruler, .ws-list li .ws-fig svg.scene { max-height: 19mm; }
  .ws-fig .dtbl { font-size: 9pt; }
  .ws-page { orphans: 3; widows: 3; }

  /* листовете: по един на страница, без рамка */
  .leaf-page .breadcrumbs, .leaf-page h1, .leaf-page .lead-dark, .leaf-page .section.soft { background: none; }
  .leaf-page .section.soft { padding: 0; }
  .leaf-page .wrap.narrow { max-width: none; padding: 0; }
  .leaf-page .section:first-of-type { display: none !important; }
  .skip-print { display: none !important; }
  .leaf-page .leaf { border: 0; border-radius: 0; padding: 0; margin: 0; break-after: page; font-size: 11.5pt; }
  .leaf-page .leaf:last-child { break-after: auto; }
  .leaf-page .leaf h2 { font-size: 21pt; margin-bottom: 8pt; }
  .leaf-page .leaf h3 { font-size: 12.5pt; margin: 12pt 0 4pt; }
  .leaf-page .leaf-logo { font-size: 18pt; }
  .leaf-page .leaf-lead { font-size: 12.5pt; margin-bottom: 14pt; }
  .leaf-page .leaf-url-big { font-size: 30pt; padding: 12pt; margin: 16pt 0 8pt; }
  .leaf-page .leaf-note { font-size: 9pt; }
  .leaf-page .leaf-cols { gap: 8pt 12mm; }
  .leaf-page .leaf li { margin: 5pt 0; }
  .leaf-page .leaf-sign { margin-top: 22pt; padding-top: 14pt; font-size: 11pt; }
  .leaf-page .leaf-sign i { width: 62mm; }
  .ws-page + .ws-page { margin-top: 0; padding-top: 0; border-top: 0; }
}
/* v2 корекции */
.site-header.over:not(.scrolled) .logo-word { -webkit-text-stroke: 0; paint-order: normal; text-shadow: none; }
.site-header.over:not(.scrolled) .logo { background: #fff; padding: 4px 16px 4px 6px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 40, 120, .18); }
.hero2 .cloud.c1 { top: 150px; left: 4%; }
.hero2 .cloud.c2 { top: 120px; right: 6%; }
.hero2 .cloud.c3 { top: 260px; left: 46%; }
.page-hero .cloud.c1 { top: 120px; } .page-hero .cloud.c2 { top: 90px; }
.site-header:not(.over) ~ .page-hero .cloud.c1 { top: 40px; }
.hero2 h1 { font-size: clamp(2.2rem, 6.6vw, 3.7rem); }
@media (min-width: 900px) { .hero2-grid { grid-template-columns: 1.25fr .75fr; } }
@media (max-width: 420px) { .hero2-grades { gap: 6px; padding: 6px 8px 6px 12px; } .hero2-grades span { font-size: .9rem; } .gpill { width: 40px; height: 40px; font-size: 1.15rem; } .hero2-sub { font-size: 1.05rem; } }
.doc p, .doc li, .form-doc { overflow-wrap: anywhere; }
.page-hero .cloud.c1 { left: auto; right: 34%; top: 26px; opacity: .55; }
.page-hero .cloud.c2 { top: 70px; opacity: .8; }
.site-header.over ~ .page-hero .cloud.c1 { top: 110px; }

/* Кодове за достъп и класации */
.code-panel { max-width: 560px; margin: 0 auto; }
.code-input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.code-panel .btn-lg { width: 100%; margin-top: 18px; }
.code-err { color: var(--red-dark); font-weight: 800; min-height: 1.4em; margin: 10px 0 0; text-align: center; }
#code-ok { text-align: center; }
.step-label small { text-transform: none; letter-spacing: 0; font-weight: 700; }
.link-login.has-access { color: var(--green-dark) !important; font-weight: 900; }
.site-header.over:not(.scrolled) .link-login.has-access { color: #fff !important; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; max-width: 560px; margin: 0 auto 20px; }
.pod { background: #fff; border-radius: 20px 20px 8px 8px; text-align: center; padding: 14px 8px; box-shadow: 0 8px 24px rgba(30,58,138,.08); border: 1px solid var(--line); }
.pod.p1 { padding-top: 26px; background: linear-gradient(180deg, #FFF6D0, #fff); }
.pod.p2 { padding-top: 18px; } .pod.empty { visibility: hidden; }
.pod .medal { font-size: 2rem; display: block; }
.pod b { display: block; color: var(--navy); overflow-wrap: anywhere; }
.pod small { font-weight: 800; color: var(--muted); }
.pod.me { box-shadow: 0 0 0 3px var(--blue), 0 8px 24px rgba(30,58,138,.12); }
table.board tr.me td { background: #EEF6FF; }
table.board tr.hid td { opacity: .45; }
table.board td, table.board th { white-space: nowrap; }
@media print { .board-page #board-form, .board-page .page-hero { display: none !important; } }
/* класация: код на ученика и бутони (учител) */
.board .mono-sm { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; font-weight: 700; color: var(--muted, #5B6B8C); white-space: nowrap; }
.board .nowrap { white-space: nowrap; }
/* ===== обща класация ===== */
.liga-controls { display: grid; gap: 14px; margin-bottom: 18px; padding: 14px; }
.liga-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: var(--bg-soft); border-radius: 18px; padding: 5px; }
.liga-tabs button { border: 0; background: transparent; border-radius: 14px; padding: 10px 4px; font: inherit; font-weight: 900; color: var(--navy); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 1.25rem; line-height: 1.1; }
.liga-tabs button span { font-size: .82rem; }
.liga-tabs button[aria-selected="true"] { background: #fff; box-shadow: var(--shadow-sm); color: var(--blue-dark); }
.liga-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; font-size: .92rem; }
.seg button[aria-pressed="true"] { background: var(--orange); color: #fff; box-shadow: 0 3px 0 var(--orange-dark); }
.liga-grade { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); }
.liga-grade select { font: inherit; font-weight: 800; color: var(--navy); border: 2px solid var(--line); border-radius: 12px; padding: 7px 10px; background: #fff; }
.liga-note { display: flex; gap: 10px; align-items: center; background: var(--cream); border-radius: 16px; padding: 12px 16px; margin: 0 0 16px; font-weight: 700; color: var(--ink); }
.liga-note.me { background: #EAF6E9; }
.liga-note a { font-weight: 900; }
#liga-out.loading { opacity: .55; transition: opacity .2s; }
table.liga-table td { white-space: normal; vertical-align: middle; }
table.liga-table td.pl { width: 44px; font-weight: 900; font-size: 1.1rem; color: var(--navy); text-align: center; }
table.liga-table tr:nth-child(-n+3) td.pl { color: var(--orange); }
table.liga-table b { font-size: 1.02rem; }
.liga-sub { display: block; color: var(--muted); font-weight: 700; font-size: .82rem; margin-top: 2px; }
table.liga-table td.sc { text-align: right; font-weight: 900; font-size: 1.15rem; color: var(--navy); white-space: nowrap; }
table.liga-table td.sc small { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); }
table.liga-table tr.gap td { text-align: center; color: var(--muted); padding: 2px; }
.liga-locked { text-align: center; max-width: 560px; margin: 0 auto; }
.liga-locked [data-owl] { width: 120px; margin: 0 auto; }
@media (max-width: 520px) { .liga-filters { justify-content: center; } .seg button { padding: 8px 11px; font-size: .86rem; } .liga-tabs button span { font-size: .74rem; } }
/* настройки на учителя в класацията */
.teach-set { display: grid; gap: 10px; margin: 18px 0; padding: 16px; }
.teach-set .row2 { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.teach-set label { display: grid; gap: 4px; font-weight: 800; color: var(--navy); flex: 1 1 220px; }
.teach-set label.check { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; font-weight: 700; }
.liga-promo { margin-top: 22px; background: linear-gradient(135deg, #FFF4D6, #FFE7C2); }
.liga-promo h3 { margin: 0 0 6px; }
.liga-promo p { margin: 0; }
/* части на картата с мисии */
.map-chapters { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 12px; margin: 0 0 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; align-items: stretch; }
.map-chapters .ch-l { align-self: center; font-weight: 900; color: var(--navy); white-space: nowrap; padding-right: 2px; }
.map-chapters .ch { flex: none; min-width: 64px; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 6px 8px; cursor: pointer; font: inherit; color: var(--navy); display: grid; justify-items: center; line-height: 1.1; gap: 1px; }
.map-chapters .ch b { font-size: 1.1rem; font-weight: 900; }
.map-chapters .ch small { font-size: .7rem; font-weight: 800; color: var(--muted); }
.map-chapters .ch i { font-style: normal; font-size: .72rem; font-weight: 900; color: #E0A500; }
.map-chapters .ch.on { border-color: var(--orange); background: #FFF4E8; box-shadow: 0 3px 0 var(--orange-dark); }
.map-chapters .ch.full { background: #EAF6E9; border-color: #BFE5BC; }
.map-chapters .ch.on.full { border-color: var(--orange); }
.map-chapters .ch.lk { opacity: .6; }
/* банер от админ панела */
.site-banner { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 44px 9px 16px; font-weight: 800; font-size: .95rem; text-align: center; color: #fff; background: var(--orange); }
.site-banner.blue { background: var(--blue-dark); } .site-banner.green { background: var(--green-dark); } .site-banner.red { background: var(--red-dark); } .site-banner.purple { background: var(--purple-dark); }
.site-banner a { color: #fff; text-decoration: underline; font-weight: 900; }
.site-banner button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.2); color: #fff; border: 0; width: 28px; height: 28px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; line-height: 1; }
/* имена на плановете */
.plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.plan h3 .plan-ico { font-size: 1.4rem; line-height: 1; }
.plan h3 .plan-kind { flex-basis: 100%; font-size: .8rem; font-weight: 800; color: var(--muted); letter-spacing: .005em; }
.plan.featured h3 .plan-kind { color: var(--orange-dark); }
/* новини */
.news-bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; font-size: 1.1rem; }
.news-bell b, .m-news { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 900; display: grid; place-items: center; line-height: 1; }
.m-news { position: static; display: inline-grid; margin-left: 6px; }
.news-bell b[hidden], .m-news[hidden] { display: none !important; }
@media (max-width: 420px) { .news-bell { width: 34px; height: 34px; font-size: .95rem; } }
.news-list { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.news-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-sm); text-align: left; }
.news-item .news-emo { font-size: 2rem; line-height: 1; flex: none; }
.news-item h4 { margin: 2px 0 4px; font-size: 1.1rem; color: var(--navy); }
.news-item p { margin: 0 0 8px; color: var(--ink); font-weight: 600; }
.news-modal .news-pop { text-align: center; }
.news-modal .news-owl { width: 110px; margin: 0 auto 4px; }
.news-modal .news-item { box-shadow: none; background: var(--bg-soft); margin: 10px 0; }
/* превключвател 1 година / 6 месеца и профили */
.period-toggle { display: flex; justify-content: center; gap: 12px; margin: 0 auto 26px; flex-wrap: wrap; }
.period-toggle button { border: 3px solid var(--orange); background: #fff; color: var(--orange-dark); font: inherit; font-weight: 900; font-size: 1.05rem; padding: 10px 28px; border-radius: 999px; cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }
.period-toggle button[aria-pressed="true"] { background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-dark); }
.plan .profiles { display: grid; gap: 6px; margin: 10px 0 4px; }
.plan .profiles div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.plan .profiles dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.plan .profiles dd { margin: 0; font-weight: 900; color: var(--navy); font-size: 1.1rem; }
.plan.featured .profiles dt { color: inherit; opacity: .85; }
/* отчети */
.rp-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.rp-tabs button { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 900; color: var(--navy); cursor: pointer; }
.rp-tabs button[aria-selected="true"] { border-color: var(--blue); background: #EEF6FF; color: var(--blue-dark); }
.rp { display: grid; gap: 14px; text-align: left; }
.rp-name { margin: 0; text-align: center; color: var(--navy); }
.rp-kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.rp-kpis div { background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.rp-kpis b { display: block; font-size: 1.5rem; color: var(--navy); line-height: 1.15; }
.rp-kpis span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.rp-card { background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.rp-card h4 { margin: 0 0 8px; color: var(--navy); }
.rp-card h4 small { color: var(--muted); font-weight: 700; }
.rp-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp-card li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 700; }
.rp-card.good { border-top: 5px solid var(--green); } .rp-card.low { border-top: 5px solid var(--orange); }
.rp-two { display: grid; gap: 14px; } @media (min-width: 760px) { .rp-two { grid-template-columns: 1fr 1fr; } }
.rp-days { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.rp-days i { flex: 1; background: #E4EDF8; border-radius: 4px 4px 0 0; } .rp-days i.on { background: var(--blue); }
.rp-dx { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-weight: 700; margin-top: 4px; }
.rp-bar { display: inline-block; width: 70px; height: 8px; border-radius: 99px; background: #EDF2FA; overflow: hidden; vertical-align: middle; }
.rp-bar i { display: block; height: 100%; } .rp-bar.good i { background: var(--green); } .rp-bar.mid i { background: var(--yellow); } .rp-bar.low i { background: var(--red); }
.rp-go { font-weight: 900; font-size: .85rem; }
.rp-table td.rp-acc { white-space: nowrap; }
.rp-tip { background: var(--cream); border-radius: 16px; padding: 12px 16px; font-weight: 700; margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linkish:hover b { text-decoration: underline; }
dialog.wide-modal { max-width: 820px; width: calc(100% - 24px); }
@media print { .rp-tabs, #rp-form, .site-header, .site-footer, .page-hero, .doc-actions { display: none !important; } }
/* блог */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.blog-cats .chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 800; color: var(--navy); text-decoration: none; font-size: .9rem; }
.blog-cats .chip.on { border-color: var(--orange); background: #FFF4E8; color: var(--orange-dark); }
.blog-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.blog-card { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bc-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #CDEEFF, #FFF4D6); display: grid; place-items: center; overflow: hidden; }
.bc-cover img { width: 100%; height: 100%; object-fit: cover; }
.bc-emo { font-size: 3.6rem; }
.bc-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bc-body h3 { margin: 0; font-size: 1.12rem; color: var(--navy); line-height: 1.3; }
.bc-body p { margin: 0; font-weight: 600; color: var(--muted); font-size: .94rem; flex: 1; }
.bc-cat { display: inline-block; font-size: .74rem; font-weight: 900; letter-spacing: .005em; color: var(--orange-dark); }
.bc-date { font-size: .8rem; font-weight: 700; color: var(--muted); }
.blog-post { max-width: 760px; }
.breadcrumbs.dark, .breadcrumbs.dark a { color: var(--muted); }
.bp-meta { margin: 14px 0 0; font-weight: 700; color: var(--muted); }
.blog-post h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; color: var(--navy); margin: 6px 0 10px; }
.bp-lead { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.bp-cover { width: 100%; border-radius: 20px; margin: 10px 0 18px; }
.bp-body img { max-width: 100%; border-radius: 16px; }
.bp-body blockquote { margin: 18px 0; padding: 14px 18px; background: var(--cream); border-left: 5px solid var(--yellow); border-radius: 12px; font-weight: 800; }
.bp-cta { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, #EAF6E9, #E6F3FF); border-radius: 22px; padding: 16px 18px; margin: 28px 0 14px; }
.bp-cta p { margin: 4px 0 10px; }
.bp-owl { width: 90px; flex: none; }
@media (max-width: 520px) { .bp-cta { flex-direction: column; text-align: center; } }

/* ---- листове за печат (родителска среща и колега) ---- */
.leaf-tools { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-top: 18px; }
.leaf-tools label { display: grid; gap: 5px; font-weight: 800; color: var(--navy); font-size: .95rem; }
.leaf { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 26px 30px 20px; margin: 0 0 22px; }
.leaf-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.leaf-logo { font-weight: 900; font-size: 1.5rem; color: var(--orange); letter-spacing: -.01em; }
.leaf-url { color: var(--muted); font-weight: 800; }
.leaf h2 { margin: 0 0 6px; }
.leaf-lead { margin: 0 0 14px; color: var(--ink); }
.leaf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.leaf h3 { margin: 10px 0 4px; font-size: 1.05rem; }
.leaf ul, .leaf-steps { margin: 0 0 6px; padding-left: 20px; }
.leaf li { margin: 3px 0; }
.leaf-url-big { font-weight: 900; font-size: 2rem; color: var(--navy); text-align: center; border: 3px dashed var(--sky);
  border-radius: 14px; padding: 10px; margin: 14px 0 8px; letter-spacing: -.01em; }
.leaf-note { font-size: .88rem; color: var(--muted); margin: 0; }
.leaf-sign { display: flex; gap: 28px; margin-top: 16px; padding-top: 12px; border-top: 2px dashed var(--line); color: var(--muted); font-weight: 700; }
.leaf-sign i { display: inline-block; width: 150px; border-bottom: 1.5px solid var(--muted); font-style: normal; }
@media (max-width: 620px) { .leaf-cols { grid-template-columns: 1fr; } }

/* ---- учител си прави клас ---- */
.mk-class p { margin: 0 0 14px; color: var(--ink); }
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.mk-grid label { display: grid; gap: 5px; font-weight: 800; color: var(--navy); font-size: .95rem; }
.mk-grid input, .mk-grid select { font: inherit; padding: 11px 13px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.mk-grid input:focus, .mk-grid select:focus { outline: 3px solid var(--sky-light); border-color: var(--blue); }
.mk-grid .err, .mk-go { grid-column: 1 / -1; }
.mk-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 2px; }
@media (max-width: 560px) { .mk-grid { grid-template-columns: 1fr; } }

/* ---- споделяне на статия ---- */
.bp-share { margin: 26px 0 0; padding-top: 18px; border-top: 2px solid var(--line); }
.bp-share > b { display: block; color: var(--navy); margin-bottom: 10px; }
.sh-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sh { display: inline-flex; align-items: center; gap: 9px; font: inherit; font-weight: 800; font-size: 1rem;
  color: #fff; background: var(--navy); border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer;
  text-decoration: none; line-height: 1; transition: transform .12s ease, filter .12s ease; }
.sh:hover { transform: translateY(-1px); filter: brightness(1.07); text-decoration: none; color: #fff; }
.sh:active { transform: translateY(0); }
.sh svg { width: 21px; height: 21px; fill: currentColor; flex: none; }
.sh.fb { background: #1877F2; }
.sh.vb { background: #7360F2; }
.sh.cp { background: #fff; color: var(--navy); border: 2px solid var(--line); padding: 9px 18px; }
.sh.cp:hover { color: var(--navy); background: var(--bg-soft); }
.sh.cp.ok { border-color: var(--green); color: var(--green-dark); }
.bp-all { display: inline-block; margin-top: 14px; font-weight: 800; }
@media (max-width: 420px) { .sh { flex: 1 1 100%; justify-content: center; } }
/* за нас */
.about-story { max-width: 780px; }
.values .card { text-align: center; } .values .v-ico { font-size: 2.2rem; display: block; margin-bottom: 4px; }
.about-nums { margin: 6px 0 20px; }
.about-cta { text-align: center; margin-top: 22px; }
/* седмично предизвикателство */
.mode-btn[data-mode="challenge"] .m-ico { background: linear-gradient(135deg, #FFC531, #FF7A1A); }
.ch-strip { padding: 22px 0 0; }
.ch-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #FFF4D6, #FFE2C2); border: 3px solid #FFD27A; border-radius: 22px; padding: 14px 18px; }
.ch-card .ch-ico { font-size: 2.2rem; flex: none; }
.ch-card .ch-txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ch-card small { font-weight: 900; letter-spacing: .005em; color: var(--orange-dark); font-size: .74rem; }
.ch-card b { font-size: 1.2rem; color: var(--navy); }
.ch-card span { font-weight: 700; color: var(--ink); font-size: .9rem; }
.ch-card .ch-prize { color: var(--green-dark); }
.ch-in { margin-top: 14px; }
@media (max-width: 520px) { .ch-card { flex-wrap: wrap; } .ch-card .btn { width: 100%; justify-content: center; } }
.ch-board { margin: 6px 0; } .ch-place { font-weight: 800; font-size: 1.05rem; color: var(--navy); }
/* грамоти */
.dipl-page { background: #E9EEF6; }
.dipl-tools { max-width: 1000px; margin: 16px auto; background: #fff; border-radius: 20px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); }
.dipl-tools p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); font-weight: 600; max-width: 480px; }
.dt-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .dt-row label { font-weight: 800; display: flex; gap: 8px; align-items: center; }
.dipl-list { display: grid; gap: 4px; max-height: 240px; overflow: auto; padding: 8px; }
.dp-empty { text-align: center; padding: 60px 16px; font-weight: 800; color: var(--muted); }
.dipl { position: relative; width: 297mm; max-width: calc(100% - 24px); aspect-ratio: 297 / 210; margin: 18px auto; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: 9mm 16mm; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
  background-image: radial-gradient(circle at 10% 15%, #FFF4D6 0, transparent 28%), radial-gradient(circle at 92% 88%, #E1F1FF 0, transparent 30%);
  outline: 6mm solid #fff; border: 3mm double #E0A500; container-type: inline-size; }
.dp-corner { position: absolute; width: 40mm; height: 40mm; border: 3mm solid #3299FF; opacity: .25; border-radius: 50%; }
.dp-corner.tl { top: -18mm; left: -18mm; } .dp-corner.br { bottom: -18mm; right: -18mm; border-color: #4CBB4A; }
.dp-top { display: flex; align-items: center; gap: 4cqw; }
.dp-owl { width: 11cqw; }
.dp-brand { font-weight: 900; font-size: 5.5cqw; letter-spacing: .02em; }
.dp-brand span:nth-child(1){color:#FF5A5F}.dp-brand span:nth-child(2){color:#FF7B00}.dp-brand span:nth-child(3){color:#E0A500}.dp-brand span:nth-child(4){color:#4CBB4A}.dp-brand span:nth-child(5){color:#3299FF}.dp-brand span:nth-child(6){color:#8E6CF0}
.dipl h1 { margin: .5cqw 0 0; font-size: 7.5cqw; letter-spacing: .25em; color: #1E3A8A; font-weight: 900; }
.dp-place { font-size: 3.4cqw; font-weight: 900; color: #C47F00; }
.dp-for { margin: .6cqw 0 0; font-size: 2cqw; font-weight: 700; color: var(--muted); }
.dp-name { font-size: 5.2cqw; font-weight: 900; color: #FF7B00; border-bottom: 2px dashed #FFD27A; min-width: 40%; padding: 0 2cqw; outline: none; }
.dp-line { font-size: 2.3cqw; font-weight: 700; color: #2B3A67; max-width: 80%; margin: 1.4cqw 0 .4cqw; }
.dp-meta { font-size: 1.7cqw; font-weight: 800; color: var(--muted); margin: 0; }
.dp-sign { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; }
.dp-sign > div:not(.dp-seal) { width: 30%; border-top: 2px solid #9AA8C2; padding-top: .6cqw; display: grid; gap: .2cqw; font-size: 1.6cqw; }
.dp-sign span { font-weight: 800; color: #1E3A8A; min-height: 2cqw; outline: none; } .dp-sign i { font-style: normal; color: var(--muted); font-weight: 700; }
.dp-seal { width: 9cqw; height: 9cqw; border-radius: 50%; border: 2px solid #E0A500; display: grid; place-items: center; font-size: 4.5cqw; background: #FFF8E6; }
/* Форматът на листа се задава в самата gramota.html – @page важи за целия документ,
   затова тук не бива да стои „landscape“: пращаше в landscape и работните листове. */
@media print {
  .dipl-page { background: #fff; } .dipl-tools { display: none !important; }
  .dipl { width: 297mm; height: 210mm; max-width: none; margin: 0; box-shadow: none; border-radius: 0; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 420px) { .game-header .news-bell { display: none; } .header-actions { gap: 6px; } }
@media print { .site-banner, dialog.news-modal, .news-bell { display: none !important; } }
@media (max-width: 380px) {
  .news-bell { display: none; }
  .header-actions { gap: 4px; }
  .points-chip { padding: 5px 9px; font-size: .88rem; }
  .liga-controls { padding: 10px; }
  .liga-tabs { gap: 3px; padding: 4px; }
  .liga-tabs button { min-width: 0; padding: 8px 2px; font-size: 1.1rem; }
  .liga-tabs button span { font-size: .66rem; }
  .liga-filters { gap: 8px; }
  .seg button { padding: 7px 9px; font-size: .8rem; }
  .liga-grade select { padding: 6px 6px; }
}

/* ---------- акаунти: бутон в хедъра ---------- */
.acct-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); color: var(--navy); font-weight: 900; text-decoration: none !important; padding: 0; flex: none; }
.acct-ico { font-size: 1.15rem; line-height: 1; }
.acct-txt { display: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn.in { box-shadow: inset 0 0 0 2px var(--teal), var(--shadow-sm); }
@media (min-width: 1100px) { .acct-btn { padding: 0 14px 0 10px; } .acct-txt { display: inline; } }
.site-header .btn-register[hidden] { display: none !important; }
@media (max-width: 420px) { .acct-btn { height: 34px; min-width: 34px; } .acct-ico { font-size: 1rem; } }
.m-auth { flex-wrap: wrap; }
.m-auth .btn { flex: 1 1 140px; }

/* ---------- вход / регистрация ---------- */
.acct-wrap { display: grid; gap: 20px; align-items: start; }
.acct-wrap.one { max-width: 520px; margin: 0 auto; }
@media (min-width: 860px) { .acct-wrap:not(.one) { grid-template-columns: 1.15fr 1fr; } }
.acct-form { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.acct-wrap > * { min-width: 0; }
.acct-form h2 { margin-bottom: 8px; }
.acct-form .step-label { margin: 10px 0 2px; }
.acct-form .btn-lg { margin-top: 14px; justify-self: stretch; }
.acct-forgot { text-align: right; margin: 4px 0 0; font-weight: 800; font-size: .92rem; }
.acct-alt { text-align: center; margin: 10px 0 0; }
.acct-terms { margin: 14px 0 0; align-items: flex-start; font-size: .92rem; line-height: 1.45; }
.acct-terms input { margin-top: 2px; flex: none; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; border-radius: 10px; }
.acct-side h2 { font-size: 1.35rem; margin: 8px 0; }
.acct-side h3 { margin: 6px 0; }
.acct-side hr { border: 0; border-top: 2px dashed var(--line); margin: 18px 0; }
.acct-side .owl { float: right; margin: -6px -4px 0 8px; }
.acct-benefits { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.acct-benefits li { color: var(--ink); line-height: 1.45; }
.acct-benefits b { display: block; color: var(--navy); }
.role-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 4px; }
.role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick span { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px 8px; border: 3px solid var(--line); border-radius: 18px; cursor: pointer; height: 100%; transition: border-color .15s, background .15s; }
.role-pick i { font-style: normal; font-size: 1.9rem; }
.role-pick b { color: var(--navy); }
.role-pick small { color: var(--muted); font-weight: 700; font-size: .8rem; line-height: 1.3; }
.role-pick input:checked + span { border-color: var(--teal); background: #E9FBF8; }
.role-pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.acct-done { text-align: center; }

/* ---------- „Моят профил“ ---------- */
.acct-main { padding-top: 28px; }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-head h2 { margin: 0; }
.acct-head .hint { margin: 4px 0 0; overflow-wrap: anywhere; }
.acct-welcome { background: #E9FBF8; box-shadow: inset 0 0 0 2px var(--teal); }
.acct-sec { margin-top: 34px; }
.acct-sec h2.lined small { color: var(--muted); font-size: .7em; }
.pf-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pf-grid .panel + .panel { margin-top: 0; }
.pf-card { display: grid; gap: 10px; align-content: start; position: relative; }
.pf-card.on { box-shadow: inset 0 0 0 3px var(--teal), var(--shadow); }
.pf-top { display: flex; align-items: center; gap: 12px; }
.pf-top b { font-size: 1.2rem; color: var(--navy); display: block; overflow-wrap: anywhere; }
.pf-top small { color: var(--muted); font-weight: 800; }
.pf-top > div { flex: 1; min-width: 0; }
.pf-av { width: 58px; height: 58px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 2rem; flex: none; }
.pf-edit { width: 40px; height: 40px; font-size: 1rem; }
.pf-plan { font-weight: 900; font-size: .9rem; border-radius: 12px; padding: 6px 10px; justify-self: start; }
.pf-plan.ok { background: #E8F8E8; color: var(--green-dark); }
.pf-plan.free { background: var(--bg-soft); color: var(--muted); }
.pf-plan.off { background: #FFECEC; color: var(--red-dark); }
.pf-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink); font-weight: 800; font-size: .92rem; }
.pf-act { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-add { border: 3px dashed var(--line); background: #fff; cursor: pointer; place-items: center; justify-content: center; min-height: 190px; font: inherit; color: var(--muted); box-shadow: none; }
.pf-add span { font-size: 2.4rem; color: var(--teal); line-height: 1; }
.pf-add:hover { border-color: var(--teal); color: var(--navy); }
#pf-form { margin-top: 16px; }
.av-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; margin-bottom: 10px; }
.av-pick input { position: absolute; opacity: 0; pointer-events: none; }
.av-pick span { display: grid; place-items: center; height: 48px; font-size: 1.6rem; border-radius: 14px; border: 3px solid var(--line); cursor: pointer; }
.av-pick input:checked + span { border-color: var(--teal); background: #E9FBF8; }
.av-pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.cls-list { display: grid; gap: 12px; margin-bottom: 16px; }
.cls-list .panel + .panel { margin-top: 0; }
.cls-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }
.cls-card b { display: block; color: var(--navy); font-size: 1.08rem; }
.cls-card small { color: var(--muted); font-weight: 800; }
.cls-act { display: flex; gap: 8px; }
.acct-set { display: grid; gap: 12px; max-width: 640px; }
.acct-set .panel + .panel { margin-top: 0; }
.acct-set summary { font-weight: 900; color: var(--navy); cursor: pointer; }
.acct-set form { display: grid; gap: 10px; margin-top: 12px; }
.acct-set form .btn { justify-self: start; }
.btn-red { --c: var(--red); --cd: var(--red-dark); }
.btn-red-text { color: var(--red-dark) !important; margin-right: auto; }
.cls-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.chip-btn { border: 2px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 800; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.chip-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* „Кой играе?“ */
.who-modal h3 { text-align: center; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.who { display: grid; justify-items: center; gap: 4px; padding: 16px 8px; border: 3px solid var(--line); border-radius: 20px; background: #fff; cursor: pointer; font: inherit; color: var(--navy); }
.who:hover, .who[aria-current="true"] { border-color: var(--teal); background: #E9FBF8; }
.who-av { font-size: 2.6rem; line-height: 1; }
.who small { color: var(--muted); font-weight: 800; }
@media print { .acct-head .btn, .pf-act, .pf-edit, .acct-set, #pf-form, .pf-add, #cls-form { display: none !important; } }
/* тесни телефони: логото, точките, акаунтът и менюто се побират на един ред (камбанката е в менюто) */
@media (max-width: 480px) { .news-bell { display: none; } .header-actions { gap: 6px; } }
@media (max-width: 400px) { .logo { font-size: 1.5rem; gap: 5px; } .logo .owl-mini { width: 32px; height: 32px; } .points-chip { padding: 5px 8px; font-size: .85rem; } .header-actions { gap: 4px; } }
@media (max-width: 340px) { .logo { font-size: 1.3rem; } .logo .owl-mini { width: 28px; height: 28px; } .menu-btn { width: 40px; } }
.acct-btn:not(.in) { padding: 0 14px 0 10px; }
.acct-btn:not(.in) .acct-txt { display: inline; }
@media (max-width: 760px) { .acct-page-body .page-hero .owl { display: none; } .acct-page-body .page-hero { padding-bottom: 40px; } }

/* ---------- поръчка на абонамент ---------- */
dialog.ord-modal { width: min(94vw, 600px); max-height: 92vh; }
.ord-modal .modal-body { text-align: left; padding: 24px 20px 20px; }
.ord h3 { text-align: center; margin-bottom: 12px; }
.ord { display: grid; gap: 10px; }
.ord label:not(.check) { display: grid; gap: 4px; font-weight: 900; color: var(--muted); font-size: .82rem; letter-spacing: .005em; min-width: 0; }
.ord .o-opt { text-transform: none; letter-spacing: 0; font-weight: 700; }
.ord .check { margin: 2px 0; align-items: flex-start; line-height: 1.4; }
.ord .check input { flex: none; margin-top: 1px; }
.ord .input { min-height: 46px; padding: 9px 12px; font-size: 1rem; }
.ord textarea.input { min-height: 0; resize: vertical; }
.ord-row { display: grid; gap: 10px; }
@media (min-width: 520px) { .ord-row { grid-template-columns: 1fr 1fr; align-items: end; } }
.ord-class, .ord-inv { display: grid; gap: 10px; background: var(--bg-soft); border-radius: 16px; padding: 12px; }
.ord-class[hidden], .ord-inv[hidden] { display: none; }
.period-mini { display: flex; gap: 6px; background: var(--bg-soft); border-radius: 999px; padding: 4px; align-self: end; }
.period-mini button { flex: 1; border: 0; background: none; font: inherit; font-weight: 900; color: var(--navy); padding: 10px 8px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.period-mini button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.ord-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #FFF6E5; border-radius: 16px; padding: 12px 16px; font-weight: 800; color: var(--navy); }
.ord-sum b { font-size: 1.6rem; color: var(--orange-dark); }
.ord .modal-actions .btn { width: 100%; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ord-done { text-align: center; }
.ord-done p { color: var(--ink); }
.ord-bank { display: grid; gap: 8px; text-align: left; background: var(--bg-soft); border-radius: 16px; padding: 14px 16px; margin: 12px 0; }
.ord-bank small { display: block; color: var(--muted); font-weight: 800; }
.ord-bank b { color: var(--navy); overflow-wrap: anywhere; }
.ord-bank .mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .03em; }
.ord .code-err:empty { display: none; }
/* игра на телефон: звук, точки и меню (входът е най-горе в менюто) */
@media (max-width: 480px) { .game-header .acct-btn { display: none; } .game-header #sound-btn { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 12px; } }
@media (max-width: 340px) { .game-header .points-chip { padding: 4px 7px; font-size: .8rem; } .game-header .header-actions { gap: 3px; } }
.modes { grid-template-columns: minmax(0, 1fr); } .mode-btn { min-width: 0; } .mode-btn > * { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .modes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 900px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- домашни ---------- */
.hw-cards { display: grid; gap: 10px; margin-bottom: 14px; }
.hw-cards[hidden] { display: none; }
.ch-strip .hw-cards { margin-bottom: 12px; }
.hw-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 20px; padding: 12px 14px; box-shadow: var(--shadow-sm); border-left: 6px solid var(--purple); }
.hw-card.late { border-left-color: var(--red); }
.hw-card.done { border-left-color: var(--green); }
.hw-ico { font-size: 1.8rem; flex: none; }
.hw-txt { flex: 1; min-width: 0; display: grid; }
.hw-txt small { color: var(--purple-dark); font-weight: 900; font-size: .78rem; letter-spacing: .005em; }
.hw-card.done .hw-txt small { color: var(--green-dark); }
.hw-txt b { color: var(--navy); font-size: 1.05rem; overflow-wrap: anywhere; }
.hw-txt span { color: var(--muted); font-weight: 700; font-size: .9rem; }
.hw-card .btn { flex: none; }
.hw-sent { font-weight: 900; color: var(--green-dark); }
.hw-sent.err { color: var(--red-dark); }
.hw-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hw-row { padding: 0; margin-top: 10px; }
.hw-row + .hw-row { margin-top: 10px; }
.hw-row summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; cursor: pointer; flex-wrap: wrap; }
.hw-row > :not(summary) { margin: 0 18px 14px; }
.hw-ttl { display: grid; min-width: 0; }
.hw-ttl b { color: var(--navy); }
.hw-ttl small { color: var(--muted); font-weight: 700; }
.hw-cnt { font-weight: 900; background: var(--bg-soft); border-radius: 999px; padding: 6px 12px; color: var(--navy); white-space: nowrap; }
.hw-cnt.all { background: #E8F8E8; color: var(--green-dark); }
@media (max-width: 420px) { .hw-card { flex-wrap: wrap; } .hw-card .btn { width: 100%; } }
.hw-card.msg { border-left-color: var(--orange); background: #FFF8EC; } .hw-card.msg .hw-txt small { color: var(--orange-dark); } .hw-card.msg .hw-txt b { font-weight: 800; }

/* ---------- вход: родител/учител или ученик ---------- */
.acct-form-wrap { padding-top: 14px; }
.login-tabs { display: flex; gap: 6px; background: var(--bg-soft); border-radius: 999px; padding: 5px; margin-bottom: 16px; }
.login-tabs button { flex: 1; border: 0; background: none; font: inherit; font-weight: 900; color: var(--navy); padding: 11px 8px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.login-tabs button[aria-selected="true"] { background: #fff; box-shadow: var(--shadow-sm); color: var(--teal-dark); }
.kid-input { font-size: 1.15rem; letter-spacing: .04em; text-transform: lowercase; }
.act-pending { background: #FFF6E5; border-radius: 14px; padding: 10px 14px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }

/* ---------- „Абонаменти“: активиране на код ---------- */
.act-panel { max-width: 720px; margin: 0 auto; text-align: center; }
.act-ico { font-size: 2.6rem; }
.act-panel h2 { margin: 4px 0 6px; }
.act-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0 4px; }
.act-row .input { flex: 1 1 260px; max-width: 360px; text-align: center; font-size: 1.2rem; letter-spacing: .08em; }
.act-note { max-width: 560px; margin: 12px auto 0; }
.act-have { font-weight: 800; color: var(--green-dark); }

/* ---------- профил: абонамент ---------- */
.sub-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-left: 6px solid var(--line); }
.sub-card.on { border-left-color: var(--green); }
.sub-card > div { display: grid; min-width: 0; }
.sub-card small { color: var(--muted); font-weight: 900; font-size: .75rem; letter-spacing: .005em; }
.sub-card b { color: var(--navy); font-size: 1.15rem; }
.sub-card span { color: var(--muted); font-weight: 700; }
.acct-sec .sub-card + .sub-card { margin-top: 12px; }
.rp-acct { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rp-acct .hint { margin: 4px 0 0; }

/* ---------- Табло ---------- */
.tb-main { padding-top: 22px; }
.tb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tb-top h1 { font-size: 2rem; margin: 0; }
.tb-top .hint { margin: 2px 0 0; }
.tb-classes { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 4px; }
.tb-cl { flex: none; border: 3px solid var(--line); background: #fff; border-radius: 16px; padding: 8px 14px; cursor: pointer; font: inherit; color: var(--navy); display: grid; text-align: left; text-decoration: none !important; }
.tb-cl small { color: var(--muted); font-weight: 700; }
.tb-cl.on { border-color: var(--teal); background: #E9FBF8; }
.tb-cl.add { place-items: center; color: var(--teal-dark); font-weight: 900; border-style: dashed; }
.tb-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.tb-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tb-name h2 { margin: 0; font-size: 1.4rem; }
.tb-name p { margin: 2px 0 0; color: var(--muted); font-weight: 700; }
.tb-badge { flex: none; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; }
.tb-sub { font-weight: 800; color: var(--green-dark); background: #E8F8E8; padding: 8px 14px; border-radius: 12px; }
.tb-sub.warn { color: #8A5A00; background: #FFF4D6; }
.tb-sub.off { color: var(--red-dark); background: #FFECEC; }
.tb-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 16px 0; padding: 4px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); position: sticky; top: 72px; z-index: 20; scrollbar-width: none; }
.tb-tabs::-webkit-scrollbar { display: none; }
.tb-tabs button { flex: 1 0 auto; border: 0; background: none; font: inherit; font-weight: 900; color: var(--navy); padding: 10px 14px; border-radius: 14px; cursor: pointer; white-space: nowrap; display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 44px; }
.tb-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tb-kpis > div { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow-sm); display: grid; }
.tb-kpis b { font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.tb-kpis span { color: var(--muted); font-weight: 800; font-size: .88rem; }
.tb-two { display: grid; gap: 16px; }
@media (min-width: 820px) { .tb-two { grid-template-columns: 1fr 1fr; } }
.tb-two .panel + .panel { margin-top: 0; }
.tb-two h3, .tb-msg h3 { margin: 0 0 8px; }
.tb-hwline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.tb-hwline small { color: var(--muted); font-weight: 700; }
.tb-msg { margin-top: 16px; }
.tb-msg textarea { margin-top: 6px; }
.tb-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tb-quick .btn { flex: 1 1 200px; }
.tb-empty { text-align: center; max-width: 720px; margin: 0 auto; }
.tb-steps { text-align: left; max-width: 520px; margin: 14px auto; padding-left: 22px; }
.tb-steps li { margin: 10px 0; }
.tb-steps b { display: block; color: var(--navy); }
.tb-steps span { color: var(--muted); font-weight: 600; }
.tb-listhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-listhead h3 { margin: 0; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-table td { vertical-align: middle; }
.tb-table .linkish { display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.tb-av { font-size: 1.3rem; margin-right: 4px; }
.mono-sm { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .03em; }
.tb-table tr.hid td { opacity: .55; }
.tb-form label:not(.check) { display: grid; gap: 4px; font-weight: 900; color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.tb-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tb-form .check { margin: 10px 0; align-items: flex-start; line-height: 1.4; }
.tb-form .check input { flex: none; margin-top: 2px; }
.tb-bigpw { display: grid; gap: 6px; text-align: center; background: var(--bg-soft); border-radius: 16px; padding: 16px; }
.tb-bigpw span { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--muted); font-weight: 800; }
.tb-bigpw b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 2rem; color: var(--navy); letter-spacing: .06em; }
dialog.tb-modal .modal-body { text-align: left; }
dialog.tb-modal h3 { text-align: center; }

/* карти за вход (печат) */
#print-area { display: none; }
@media print {
  body.printing-cards > *:not(#print-area) { display: none !important; }
  body.printing-cards #print-area { display: block; }
  .kc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; }
  .kc { border: 2px dashed #9AA8C4; border-radius: 5mm; padding: 4mm; text-align: center; break-inside: avoid; font-family: var(--font); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .kc-top { display: flex; justify-content: space-between; align-items: center; font-size: 9pt; color: #66728F; }
  .kc-logo { font-weight: 900; color: #FF7A1A; font-size: 12pt; }
  .kc-av { font-size: 26pt; margin: 2mm 0 0; }
  .kc-name { font-weight: 900; font-size: 13pt; color: #1D2B4F; margin-bottom: 2mm; }
  .kc-row { display: flex; justify-content: space-between; align-items: baseline; background: #F3F8FF; border-radius: 3mm; padding: 1.5mm 3mm; margin: 1.5mm 0; }
  .kc-row small { color: #66728F; font-size: 8pt; }
  .kc-row b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13pt; color: #1D2B4F; }
  .kc-how { font-size: 8pt; color: #66728F; margin-top: 2mm; }
  .kc-par { font-size: 6.5pt; color: #8A95AE; margin-top: 1.5mm; line-height: 1.3; border-top: 1px dotted #C9D3E5; padding-top: 1.5mm; }
  .tb-tabs, .tb-top .btn, .tb-quick, .tb-classes { display: none !important; }
}
.badge-groups { display: grid; gap: 22px; }
.badge-group h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--navy); }
.badge-group h3 small { color: var(--muted); font-size: .85rem; margin-left: 6px; }
.badge-group .badges { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.badge small { line-height: 1.35; }

/* ---------- банер за бисквитки ---------- */
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; display: flex; justify-content: center; pointer-events: none; transform: translateY(140%); transition: transform .3s ease; padding-bottom: env(safe-area-inset-bottom); }
.cookie-bar.show { transform: none; }
/* вътрешната кутия на банера за бисквитки – да не се бърка с .fld-in */
.ck-in { pointer-events: auto; max-width: 820px; width: 100%; background: #fff; border-radius: 22px; box-shadow: 0 14px 50px rgba(29,43,79,.28); padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border: 2px solid var(--line); }
.ck-txt { flex: 1 1 340px; min-width: 0; }
.ck-txt b { color: var(--navy); font-size: 1.05rem; }
.ck-txt p { margin: 4px 0 0; color: var(--ink); font-size: .92rem; line-height: 1.45; }
.ck-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ck-btns .btn { min-height: 44px; }
.ck-btns .btn-white { box-shadow: inset 0 0 0 2px var(--line); }
.ck-link { border: 0; background: none; font: inherit; font-weight: 800; color: var(--blue-dark); text-decoration: underline; cursor: pointer; padding: 10px 6px; }
/* на телефон банерът не бива да изяжда половината екран */
@media (max-width: 560px) {
  .cookie-bar { left: 8px; right: 8px; bottom: 8px; }
  .ck-in { padding: 12px 14px; gap: 10px; border-radius: 18px; }
  .ck-btns { width: 100%; gap: 6px; }
  .ck-btns .btn { flex: 1 1 45%; min-height: 42px; padding-left: 10px; padding-right: 10px; }
  .ck-link { flex: 1 1 100%; text-align: center; padding: 2px; font-size: .9rem; }
  .ck-txt b { font-size: .98rem; }
  .ck-txt p { font-size: .82rem; line-height: 1.4; margin-top: 2px; }
  .ck-txt p a { white-space: nowrap; }
}
dialog.ck-dialog { width: min(94vw, 560px); }
.ck-modal { text-align: left; }
.ck-modal h3 { text-align: center; }
.ck-opt { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-soft); border-radius: 16px; padding: 12px 14px; margin: 10px 0; cursor: pointer; }
.ck-opt input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--green); }
.ck-opt b { display: block; color: var(--navy); }
.ck-opt small { display: block; color: var(--muted); font-weight: 700; line-height: 1.4; margin-top: 2px; }
.ck-foot { border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
@media print { .cookie-bar { display: none !important; } }

/* ---------- вход с Google ---------- */
.g-auth{margin:2px 0 6px}
/* бутонът „Продължи с Google“ в стила на сайта */
.g-wrap{position:relative;max-width:400px;margin:0 auto;height:58px;border-radius:999px}
.g-face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;background:#fff;border:2px solid #DDE6F3;border-radius:999px;box-shadow:0 4px 0 #DDE6F3;color:var(--navy);font-weight:900;font-size:1.08rem;transition:transform .1s,box-shadow .1s,border-color .1s;pointer-events:none}
.g-ico{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none;border-radius:50%;overflow:hidden}
.g-ico iframe{pointer-events:none}
.g-wrap:hover .g-face{border-color:#B9D4F5;box-shadow:0 4px 0 #B9D4F5;transform:translateY(-1px)}
.g-wrap:active .g-face{transform:translateY(3px);box-shadow:0 1px 0 #B9D4F5}
.g-wrap:focus-within .g-face{border-color:var(--blue);box-shadow:0 4px 0 var(--blue),0 0 0 4px rgba(47,128,237,.18)}
.g-btn{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%) scaleY(1.45);display:flex;justify-content:center;opacity:.001;overflow:hidden}
.g-btn iframe{margin:0 auto!important}
.g-or{display:flex;align-items:center;gap:10px;margin:14px 0 4px;color:var(--muted,#6B7A90);font-size:.88rem;font-weight:700}
.g-or::before,.g-or::after{content:"";flex:1;height:2px;background:#E2EAF6;border-radius:2px}
.g-pending .ck-link{margin-left:4px}
.g-note{margin:0 0 4px}

/* ---------- SEO страници: теми, помагала, онлайн тест ---------- */
.h1-sub { display: inline-block; vertical-align: middle; font-size: .45em; background: rgba(255,255,255,.9); color: var(--navy); border-radius: 999px; padding: 4px 14px; margin-left: 6px; text-shadow: none; -webkit-text-stroke: 0; }
.narrow-wrap { max-width: 860px; }
.lead-dark { font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 8px; font-weight: 600; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; font-size: .8rem; display: grid; place-items: center; }
.steps-list { counter-reset: st; list-style: none; padding-left: 0 !important; }
.steps-list li { counter-increment: st; position: relative; padding: 12px 14px 12px 56px; margin-bottom: 10px; background: #fff; border: 2px solid var(--line); border-radius: 16px; font-weight: 600; }
.steps-list li::before { content: counter(st); position: absolute; left: 12px; top: 10px; width: 32px; height: 32px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 900; display: grid; place-items: center; }
.section.soft .steps-list li { background: #fff; }
.warn-list { list-style: none; padding-left: 0 !important; }
.warn-list li { position: relative; padding-left: 32px; margin-bottom: 10px; font-weight: 600; }
.warn-list li::before { content: '!'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: .85rem; }
.topic-meta { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.ex-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px 20px; padding-left: 26px !important; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.ex-list li { padding: 4px 0; overflow-wrap: anywhere; }
.ex-blank { display: inline-block; min-width: 34px; border-bottom: 2px solid var(--muted); color: transparent; }
.ex-ans { margin: 14px 0 6px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 16px; }
.ex-ans summary { font-weight: 900; color: var(--blue-dark); cursor: pointer; }
.ex-ans ol { columns: 2 220px; margin-top: 10px; font-weight: 600; }
.tool-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; margin-top: 22px; }
.tool-card { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; color: var(--navy); text-decoration: none !important; transition: transform .1s, border-color .1s; }
.tool-card:hover { transform: translateY(-2px); border-color: var(--sky); }
.tool-card span { font-size: 1.6rem; } .tool-card b { font-weight: 900; } .tool-card small { color: var(--muted); font-weight: 700; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.rel-card { display: block; background: #fff; border: 2px solid var(--line); border-left: 6px solid var(--c, var(--blue)); border-radius: 16px; padding: 14px 16px; color: var(--navy); text-decoration: none !important; }
.rel-card small { display: block; color: var(--muted); font-weight: 800; font-size: .8rem; letter-spacing: .005em; }
.rel-card b { font-weight: 900; }
.rel-card:hover { border-color: var(--c, var(--blue)); }
.center-note { text-align: center; margin-top: 18px; font-weight: 700; }
.toc { font-weight: 800; background: var(--bg-soft); border-radius: 14px; padding: 10px 14px; }
.topic-item .t-link { flex: 1; min-width: 0; color: inherit; text-decoration: none !important; }
.topic-item .t-play { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 1rem; text-decoration: none !important; box-shadow: 0 3px 0 var(--green-dark); }
.topic-item .t-play:hover { filter: brightness(1.05); }

/* онлайн тест */
.qz { padding: 18px; }
.qz-loading { color: var(--muted); font-weight: 700; text-align: center; }
.qz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.qz-head b { font-size: 1.15rem; color: var(--navy); font-weight: 900; }
.qz-meta { color: var(--muted); font-weight: 800; }
.qz-time { color: var(--blue-dark); font-variant-numeric: tabular-nums; } .qz-time.warn { color: var(--red); }
.qz-picks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 14px; }
.qz-picks > span { font-weight: 800; color: var(--muted); margin-right: 4px; }
.qz-pick, .qz-lv { border: 2px solid var(--line); background: #fff; border-radius: 999px; min-width: 40px; min-height: 40px; padding: 0 12px; font: inherit; font-weight: 900; color: var(--navy); cursor: pointer; }
.qz-pick.on, .qz-lv.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.qz-kind { width: auto; min-height: 40px; padding: 4px 10px; margin-left: 4px; }
.qz-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: qz; }
.qz-q { counter-increment: qz; position: relative; background: var(--bg-soft); border: 2px solid transparent; border-radius: 16px; padding: 12px 14px 12px 50px; }
.qz-q::before { content: counter(qz); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 900; display: grid; place-items: center; font-size: .9rem; }
.qz-text { font-weight: 800; font-size: 1.12rem; color: var(--navy); line-height: 1.7; overflow-wrap: anywhere; }
.qz-in { width: 92px; min-height: 42px; border: 2px solid #C9D7EC; border-radius: 12px; padding: 4px 10px; font: inherit; font-weight: 900; font-size: 1.1rem; text-align: center; color: var(--navy); background: #fff; vertical-align: middle; }
.qz-in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,128,237,.2); }
.qz-blank { display: inline-block; min-width: 36px; text-align: center; border-bottom: 3px solid var(--blue); color: var(--blue); }
.qz-chs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.qz-chs.mc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); }
.qz-ch { min-width: 52px; min-height: 44px; border: 2px solid #C9D7EC; background: #fff; border-radius: 12px; font: inherit; font-weight: 900; font-size: 1.1rem; color: var(--navy); cursor: pointer; padding: 4px 12px; }
.qz-ch.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.qz-fig { margin-top: 8px; max-width: 320px; } .qz-fig svg { max-width: 100%; height: auto; }
.qz-fb { font-weight: 700; margin-top: 4px; min-height: 0; }
.qz-q.ok { border-color: var(--green); background: #EEFBEA; } .qz-q.ok .qz-fb { color: var(--green-dark); }
.qz-q.bad { border-color: var(--red); background: #FFF0F0; } .qz-q.bad .qz-fb { color: var(--red-dark); }
.qz-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.qz-score { font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.qz-done { text-align: center; margin-top: 16px; padding: 18px; border-radius: 18px; background: #FFF8E1; font-weight: 700; }
.qz-stars { font-size: 2.4rem; letter-spacing: 6px; color: #E2E8F0; } .qz-stars .on { color: var(--yellow); }
.qz-start { text-align: center; padding: 18px 6px; } .qz-start b { font-size: 1.3rem; color: var(--navy); display: block; } .qz-start p { color: var(--muted); font-weight: 700; }

/* таблица за умножение */
.tt-wrap { overflow-x: auto; display: flex; justify-content: center; }
.tt { border-collapse: separate; border-spacing: 3px; font-weight: 900; font-size: clamp(.82rem, 2.6vw, 1.15rem); }
.tt th, .tt td { width: clamp(28px, 8vw, 54px); height: clamp(28px, 8vw, 50px); text-align: center; border-radius: 8px; }
.tt th { background: var(--blue); color: #fff; }
.tt thead th:first-child { background: var(--orange); }
.tt td { background: var(--bg-soft); color: var(--navy); cursor: pointer; transition: background .1s; }
.tt td.hl { background: #FFE9A8; } .tt td.hit { background: var(--orange); color: #fff; transform: scale(1.08); }
.tt-say { text-align: center; font-size: 1.6rem; font-weight: 900; color: var(--orange-dark); min-height: 2.2rem; margin: 8px 0 0; }
.tt-jump { text-align: center; font-weight: 800; margin-top: 10px; } .tt-jump a { display: inline-block; padding: 4px 8px; }
.tt-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.tt-row { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 16px; }
.tt-row h3 { margin: 0 0 8px; font-size: 1.15rem; }
.tt-list { list-style: none; padding: 0; columns: 2; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.tt-list b { color: var(--blue-dark); }
.tt-tip { font-weight: 600; font-size: .95rem; margin: 0 0 6px; }
.tt-div { color: var(--muted); font-weight: 700; font-size: .88rem; margin: 0; }

/* римски цифри */
.rc-conv h2 { margin-top: 0; font-size: 1.35rem; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.rc-grid label { font-weight: 800; color: var(--navy); display: grid; gap: 6px; }
.rc-grid .input { font-size: 1.3rem; font-weight: 900; letter-spacing: .04em; }
.rc-out { margin: 14px 0 0; font-size: 1.25rem; color: var(--navy); font-weight: 700; min-height: 3.2em; }
.rc-out small { font-size: .9rem; color: var(--muted); }
.rc-base { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; max-width: 860px; margin: 0 auto; }
.rc-base div { background: #fff; border: 2px solid var(--line); border-radius: 16px; text-align: center; padding: 12px 6px; }
.rc-base b { display: block; font-size: 2rem; font-family: Georgia, 'Times New Roman', serif; color: var(--navy); }
.rc-base span { font-weight: 900; color: var(--blue-dark); }
.rc-table { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.rc-table li { display: flex; justify-content: space-between; gap: 6px; background: var(--bg-soft); border-radius: 10px; padding: 6px 10px; margin: 0 !important; }
.rc-table b { color: var(--muted); } .rc-table span { font-weight: 900; color: var(--navy); font-family: Georgia, serif; }
.unit-table td:first-child { font-weight: 800; color: var(--navy); }

/* НВО и хъб */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; max-width: 860px; margin: 0 auto; }
.facts div { background: #fff; border: 2px solid var(--line); border-radius: 18px; text-align: center; padding: 18px 10px; }
.facts b { display: block; font-size: 2.2rem; font-weight: 900; color: var(--blue-dark); line-height: 1.1; }
.facts span { font-weight: 800; color: var(--muted); }
.grade-jump .btn { min-width: 0; }
/* Помагалата са списък, а не купчина карти – четат се като съдържание на книга */
.hub-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 40px; }
.hub-card { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 2px solid var(--line); color: var(--navy); text-decoration: none !important; }
.hub-card span { grid-row: 1 / 3; justify-self: center; font-size: 1.5rem; font-weight: 900; color: var(--c); }
.hub-card b { font-weight: 900; font-size: 1.08rem; align-self: end; }
.hub-card small { color: var(--muted); font-weight: 700; align-self: start; }
.hub-card:hover b { text-decoration: underline; }
.hub-card:hover span { transform: translateX(2px); transition: transform .1s; }
.hub-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.hub-grade { background: #fff; border: 2px solid var(--line); border-top: 6px solid var(--c); border-radius: 18px; padding: 16px 18px; }
.hub-grade h3 { margin: 0 0 8px; } .hub-grade h3 a { color: var(--navy); }
.hub-grade ol { padding-left: 20px; margin: 0; font-weight: 700; } .hub-grade li { margin-bottom: 6px; }

/* печат на помагала: само таблиците */
@media print {
  body.print-pillar .site-header, body.print-pillar .site-footer, body.print-pillar .page-hero, body.print-pillar main > section:not(.print-zone), body.print-pillar .cookie-bar, body.print-pillar .tt-jump, body.print-pillar .toc { display: none !important; }
  body.print-pillar .section { padding: 10px 0; }
  body.print-pillar .tt td, body.print-pillar .tt th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-pillar .tt-row { break-inside: avoid; }
}
/* декоративните облаци никога не правят хоризонтален скрол */
body { overflow-x: clip; }
/* меню: „Новини“ и „За нас“ са отделни линкове; на компютър звънчето е излишно – броят е до „Новини“ */
.nav-news { position: relative; }
.nav-news b { min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 900; display: inline-grid; place-items: center; line-height: 1; text-shadow: none; }
.nav-news b[hidden] { display: none !important; }
@media (min-width: 1100px) { .site-header .news-bell { display: none; } }
@media (min-width: 1100px) and (max-width: 1499px) {
  .nav { gap: 0; }
  .nav > a, .dd-btn { font-size: .96rem; padding: 8px 9px; }
  .site-header .wrap { gap: 8px; }
  .acct-btn { padding: 0 10px 0 8px; }
}
.nav > a, .dd-btn { white-space: nowrap; }
@media (min-width: 1100px) and (max-width: 1199px) { .nav > a, .dd-btn { font-size: .93rem; padding: 8px 7px; } .logo-word { font-size: .92em; } }
/* в играта лентата е стеснена (wrap е до 1240px), а след раздела за НВО менюто е по-широко */
@media (min-width: 1100px) { .game-header .header-actions { gap: 5px; } .game-header .wrap { gap: 4px; } .game-header .logo-word { font-size: .85em; } .game-header .nav a, .game-header .nav .dd-btn { padding-left: 7px; padding-right: 7px; font-size: .92rem; } }

/* ---------- Играта на компютър: широко оформление вместо „телефон в средата“ ---------- */
.kbd-hint { display: none; }
.map.wide .map-node { width: 76px; font-size: 1.6rem; }
.map.wide .map-node .n-label { top: calc(100% + 10px); left: 50%; right: auto; transform: translateX(-50%); max-width: 150px; font-size: .8rem; }
.map.wide .map-node .n-stars { bottom: auto; top: -22px; font-size: .95rem; }
.map.wide .map-owl { width: 70px; }
@media (min-width: 1000px) and (min-height: 560px) {
  .game-page main { padding-top: 6px; }
  .game-wrap { max-width: 1100px; padding: 14px 24px 48px; }
  #screen-map .map { max-width: 1060px; border-radius: 34px; }
  #screen-map .map-head h2 { font-size: 1.7rem; }
  /* избор на игра */
  #screen-setup .game-wrap { max-width: 1060px; }
  .today { padding: 14px 22px; }
  .today .owl { width: 76px; }
  .mode-btn { padding: 20px 14px; }
  .mode-btn b { font-size: 1.25rem; hyphens: none; word-break: normal; }
  .grade-tab { padding: 16px 4px; font-size: 1.15rem; }
  .grade-tab b { font-size: 2.2rem; }
  /* игрален екран: задачата вляво, клавиатурата вдясно */
  .play-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
  .play-main .stage { grid-template-columns: 130px 1fr; margin-bottom: 16px; }
  .play-main .stage .owl { width: 130px; }
  .play-main .stage .bubble { font-size: 1.15rem; padding: 14px 18px; }
  .qcard { min-height: 300px; padding: 36px 28px; border-radius: 34px; }
  .q-text { font-size: 4.2rem; }
  .q-text.long { font-size: 1.6rem; }
  .q-text.long .slot { font-size: 2rem; }
  .fig { width: 280px; }
  .explain { font-size: 1.25rem; }
  .play-side { position: sticky; top: 90px; background: rgba(255,255,255,.55); border-radius: 30px; padding: 18px; box-shadow: var(--shadow-sm); }
  .play-side .keypad, .play-side .choices { margin-top: 0; max-width: none; }
  .play-side .key { min-height: 74px; font-size: 2rem; }
  .play-side .choices { grid-template-columns: repeat(3, 1fr); }
  .play-side .choices:not(.opts) .key { min-height: 96px; }
  .play-side .choices.opts { grid-template-columns: 1fr; }
  .play-side .choices.opts.figs { grid-template-columns: repeat(2, 1fr); }
  .play-side .choices.opts .key { min-height: 64px; font-size: 1.25rem; overflow-wrap: normal; word-break: normal; }
  .play-side .next-row { margin-top: 16px; }
  .play-side .next-row .btn { width: 100%; }
  .kbd-hint { display: block; margin: 14px 4px 0; text-align: center; color: var(--muted); font-weight: 700; font-size: .9rem; }
  .kbd-hint kbd { display: inline-block; background: #fff; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; font: inherit; font-weight: 900; color: var(--navy); }
  .play-top { margin-bottom: 16px; }
  .play-top .progress { height: 22px; }
  .score .pill { font-size: 1rem; padding: 8px 14px; }
  /* резултат */
  #screen-result .game-wrap { max-width: 820px; }
}

/* „Очаквайте скоро“ (продажбите са спрени) */
.soon-band { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; background: #fff; border-radius: 30px; padding: 28px; box-shadow: var(--shadow); max-width: 900px; margin: 0 auto; }
.soon-band .owl { width: 140px; }
.soon-band h2 { margin: 6px 0 10px; }
.soon-band p { font-weight: 600; color: var(--ink); }
.soon-big { border: 3px dashed #FFD27A; }
@media (max-width: 640px) { .soon-band { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; } .soon-band .owl { width: 110px; margin: 0 auto; } .soon-band .hero-cta { justify-content: center; } }

/* ================= Помощни настройки (СОП) ================= */
.a11y-btn.on, [data-a11y-open].icon-btn.on { background: #E9F7EF; box-shadow: 0 0 0 3px var(--green), var(--shadow-sm); }
@media (max-width: 480px) { .game-header .a11y-btn { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 12px; } }
.a11y-link { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 16px; padding: 14px 18px; border: 2px dashed #BFD3EE; border-radius: 20px; background: rgba(255,255,255,.85); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: .15s; }
.a11y-link:hover { border-color: var(--blue); background: #fff; }
.a11y-link.on { border-style: solid; border-color: var(--green); background: #F2FBF4; }
.a11y-link-ico { font-size: 1.9rem; flex: none; }
.a11y-link b { display: block; color: var(--navy); font-size: 1.05rem; }
.a11y-link small { display: block; color: var(--muted); font-weight: 700; line-height: 1.35; margin-top: 2px; }
.a11y-count { margin-left: auto; flex: none; background: var(--green); color: #fff; font-style: normal; font-weight: 900; font-size: .85rem; padding: 4px 10px; border-radius: 99px; }
.a11y-modal .modal-body { max-width: 560px; }
.a11y-intro { color: var(--muted); font-weight: 700; margin: 4px 0 12px; }
.a11y-preset { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.a11y-list { display: grid; gap: 8px; text-align: left; }
.a11y-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; background: #fff; }
.a11y-row:has(input:checked) { border-color: var(--green); background: #F4FBF5; }
.a11y-row.locked { cursor: default; opacity: .92; }
.a11y-ico { font-size: 1.5rem; text-align: center; }
.a11y-txt b { display: block; color: var(--navy); }
.a11y-txt small { display: block; color: var(--muted); font-weight: 600; line-height: 1.35; }
.a11y-lock, .a11y-warn { display: block; font-style: normal; font-weight: 800; font-size: .82rem; margin-top: 4px; color: var(--purple-dark); }
.a11y-warn { color: var(--orange-dark); }
.a11y-foot { margin-top: 12px; text-align: left; }
input.sw { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: 99px; background: #CBD5E4; position: relative; cursor: pointer; transition: .15s; flex: none; margin: 0; }
input.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .15s; }
input.sw:checked { background: var(--green); }
input.sw:checked::after { left: 25px; }
input.sw:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
input.sw:disabled { cursor: default; opacity: .75; }

/* бутон „прочети пак“ в задачата */
.qcard .say-btn { position: absolute; top: 10px; left: 10px; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--bg-soft); font-size: 1.4rem; cursor: pointer; box-shadow: 0 3px 0 #D3DEEE; }
.qcard .say-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #D3DEEE; }
.choices .key.tried, .choices .key:disabled { opacity: .35; cursor: default; box-shadow: none; text-decoration: line-through; }
.dots.mul { gap: 8px; }
.dots.mul .grp { max-width: none; flex-wrap: nowrap; padding: 4px 6px; border-radius: 10px; background: #F3F7FD; }
.dots.mul i { width: 16px; height: 16px; }

/* едър текст */
.a11y-big .q-text { font-size: clamp(2.6rem, 12vw, 4.2rem); }
.a11y-big .q-text.mid { font-size: clamp(1.6rem, 6.4vw, 2.2rem); }
.a11y-big .q-text.long { font-size: clamp(1.3rem, 5.2vw, 1.7rem); }
.a11y-big .key { min-height: 78px; font-size: 2.2rem; }
.a11y-big .choices .key { min-height: 96px; font-size: 3rem; }
.a11y-big .choices.opts .key { font-size: 1.4rem; }
.a11y-big .explain { font-size: 1.35rem; }
.a11y-big .bubble { font-size: 1.15rem; }
.a11y-big .dots i { width: 26px; height: 26px; }
@media (min-width: 1000px) and (min-height: 560px) {
  .a11y-big .q-text { font-size: 4.6rem; }
  .a11y-big .q-text.long { font-size: 1.9rem; }
  .a11y-big .play-side .key { min-height: 86px; font-size: 2.4rem; }
}
/* лесно четене (дислексия): разстояния и мек фон */
.a11y-spaced .q-text.long, .a11y-spaced .q-text.mid, .a11y-spaced .explain, .a11y-spaced .bubble, .a11y-spaced .choices.opts .key { letter-spacing: .06em; word-spacing: .18em; }
.a11y-spaced .q-text { letter-spacing: .03em; }
.a11y-spaced .q-text.long, .a11y-spaced .q-text.mid { line-height: 1.8; font-weight: 700; }
.a11y-spaced .qcard { background: #FFFBEF; }
.a11y-spaced .choices .key:not(.right):not(.wrong), .a11y-spaced .keypad .key:not(.ok):not(.del) { background: #FFFDF6; }
/* спокоен режим: без мигане и подскачане */
.a11y-calm .combo, .a11y-calm .float-pts { display: none !important; }
.a11y-calm .progress.low i { animation: none !important; }
.a11y-calm .qcard.ok, .a11y-calm .qcard.bad, .a11y-calm .owl-jump { animation: none !important; }
.tb-table .btn.on { background: #E9F7EF; box-shadow: 0 0 0 2px var(--green); }
.tag.tag-adapt { background: #E9F7EF; color: var(--green-dark); }
/* страница „Деца със СОП“ */
.sop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sop-card { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 18px 18px 16px; box-shadow: var(--shadow-sm); }
.sop-card span { font-size: 2rem; display: block; }
.sop-card h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.sop-card p { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.45; font-size: .97rem; }
.sop-two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .sop-two { grid-template-columns: 1fr; gap: 8px; } }
.sop-table td:first-child { width: 42%; }
.a11y-calm .map-node, .a11y-calm .map-node::before, .a11y-calm .map-node::after, .a11y-calm .map-node * { animation: none !important; }
@media (max-width: 999px) { .qcard:has(.say-btn) { padding-top: 58px; } .qcard .say-btn { width: 42px; height: 42px; font-size: 1.2rem; top: 8px; left: 8px; } }
@media (max-width: 999px) and (max-height: 880px) { .a11y-big .key { min-height: 64px; } .a11y-big .choices .key { min-height: 84px; } }

/* ================= Анкета ================= */
.sv-wrap { max-width: 760px; }
.sv-intro { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.sv-intro .owl { width: 110px; flex: none; }
.sv-intro h1 { font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 0 0 6px; }
.sv-intro p { margin: 0 0 6px; }
@media (max-width: 560px) { .sv-intro { flex-direction: column; text-align: center; } .sv-intro .owl { width: 90px; } }
.sv-bar { position: sticky; top: 72px; z-index: 5; height: 8px; border-radius: 99px; background: #E3EBF7; overflow: hidden; margin: 0 0 14px; }
.sv-bar i { display: block; height: 100%; width: 4%; background: var(--green); border-radius: 99px; transition: width .25s; }
.sv-q { border: 2px solid var(--line); background: #fff; border-radius: 20px; padding: 16px 18px 12px; margin: 0 0 12px; min-width: 0; }
.sv-q.bad { border-color: var(--red); background: #FFF8F8; }
.sv-q legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-weight: 800; color: var(--navy); font-size: 1.07rem; line-height: 1.35; }
.sv-q legend + * { clear: both; }
.sv-n { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 9px; background: var(--bg-soft); color: var(--blue); font-size: .85rem; font-weight: 900; margin-right: 8px; vertical-align: 1px; }
.sv-req { color: var(--red); }
.sv-opt, .sv-hint { color: var(--muted); font-weight: 700; font-size: .8rem; }
.sv-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.sv-o { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; line-height: 1.3; transition: .12s; }
.sv-o:hover { border-color: #BFD3EE; }
.sv-o input { width: 20px; height: 20px; flex: none; accent-color: var(--green); margin: 0; }
.sv-o:has(input:checked) { border-color: var(--green); background: #F2FBF4; }
.sv-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sv-scale.nps { grid-template-columns: repeat(11, 1fr); gap: 5px; }
.sv-scale label { cursor: pointer; }
.sv-scale input { position: absolute; opacity: 0; pointer-events: none; }
.sv-scale span { display: grid; place-items: center; height: 48px; border: 2px solid var(--line); border-radius: 12px; font-weight: 900; font-size: 1.1rem; color: var(--navy); background: #fff; transition: .12s; }
.sv-scale.nps span { height: 42px; font-size: .98rem; border-radius: 10px; }
.sv-scale label:hover span { border-color: #BFD3EE; }
.sv-scale input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.sv-scale input:focus-visible + span, .sv-o input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sv-ends { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--muted); font-weight: 700; font-size: .82rem; }
@media (max-width: 480px) { .sv-scale.nps { grid-template-columns: repeat(6, 1fr); } .sv-scale.nps span { height: 40px; } }
.sv-q textarea, .sv-q input[type=email] { width: 100%; }
.sv-err { color: var(--red-dark); font-weight: 800; margin: 6px 0 0; min-height: 0; }
.sv-err:empty { display: none; }
.sv-send { text-align: center; margin: 22px 0 8px; }
.sv-done { text-align: center; }
.sv-done .owl { width: 140px; margin: 0 auto; }
/* покана за анкетата (Табло, профил, абонаменти) */
.survey-cta { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 18px; border-radius: 20px; background: linear-gradient(100deg, #FFF6DB, #FFEFD6); border: 2px solid #FFD98A; color: var(--navy); text-decoration: none; }
.survey-cta:hover { border-color: var(--orange); }
.survey-cta > span:first-child { font-size: 1.9rem; flex: none; }
.survey-cta b { display: block; font-size: 1.05rem; }
.survey-cta small { display: block; color: var(--ink); font-weight: 600; }
.survey-cta em { margin-left: auto; flex: none; font-style: normal; font-weight: 900; background: var(--orange); color: #fff; border-radius: 99px; padding: 8px 14px; white-space: nowrap; }
@media (max-width: 520px) { .survey-cta { flex-wrap: wrap; } .survey-cta em { margin-left: 0; } }
.book-note { display: block; margin-top: 8px; font-size: .85rem; }
/* сигнали „Нещо не е наред?“ */
.fb-btn { display: block; margin: 10px auto 0; border: 0; background: transparent; color: rgba(29,43,79,.62); font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; padding: 6px 10px; border-radius: 10px; }
.fb-btn:hover { color: var(--navy); background: rgba(255,255,255,.6); }
.fb-modal .modal-body { max-width: 480px; }
.fb-task { background: var(--bg-soft); border-radius: 14px; padding: 10px 14px; font-weight: 900; color: var(--navy); font-size: 1.15rem; text-align: center; }
.fb-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; text-align: left; }
.fb-opts label { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; font-size: .92rem; }
.fb-opts label:has(input:checked) { border-color: var(--blue); background: #EEF6FF; }
.fb-opts input { accent-color: var(--blue); margin: 0; }
.fb-lbl { display: block; text-align: left; font-weight: 800; color: var(--navy); }
.fb-lbl textarea { width: 100%; margin-top: 6px; }
@media (max-width: 420px) { .fb-opts { grid-template-columns: 1fr; } }
.modal-body .fb-task { font-weight: 900; color: var(--navy); }
.wk-set { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.wk-set span b { display: block; color: var(--navy); }
.wk-set span small { display: block; color: var(--muted); font-weight: 600; }
.wk-set input.sw { order: 2; margin-left: auto; }

/* ================= Задача на деня ================= */
.dt-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 22px; padding: 12px 14px; margin: 0 0 14px; box-shadow: var(--shadow-sm); border: 2px solid #FFE08A; }
.dt-card.done { border-color: #BDE5BF; }
.dt-card.season-autumn { background: linear-gradient(100deg, #FFF4E5, #fff 70%); border-color: #FFC48A; }
.dt-card.season-xmas { background: linear-gradient(100deg, #FFEDEE, #fff 70%); border-color: #FFB3B8; }
.dt-card.season-march { background: linear-gradient(100deg, #FFF0F2, #fff 70%); border-color: #FFC2CB; }
.dt-card.season-june1 { background: linear-gradient(100deg, #EEF6FF, #fff 70%); border-color: #BFDDFF; }
.dt-ico { font-size: 2rem; flex: none; }
.dt-txt { flex: 1; min-width: 0; }
.dt-txt b { display: block; color: var(--navy); font-size: 1.08rem; }
.dt-txt small { display: block; color: var(--muted); font-weight: 700; line-height: 1.35; }
.dt-season { color: var(--orange-dark); }
.dt-card .btn { flex: none; }
.dt-wd { position: relative; padding-left: 12px; padding-right: 12px; }
.dt-new { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: .75rem; line-height: 20px; font-weight: 900; }
.btn .dt-new { position: static; display: inline-block; margin-left: 6px; }
@media (max-width: 480px) { .dt-card { flex-wrap: wrap; } .dt-txt { flex-basis: calc(100% - 60px); } .dt-card .btn[data-daytask] { flex: 1; } }

/* ================= Гардероб ================= */
.wd-modal .modal-body { max-width: 720px; }
.wd-head { display: flex; gap: 14px; align-items: center; text-align: left; margin-bottom: 6px; }
.wd-me { width: 110px; flex: none; }
.wd-head h3 { margin: 0 0 4px; }
.wd-head p { margin: 0; color: var(--muted); font-weight: 700; font-size: .95rem; }
.wd-h { text-align: left; margin: 14px 0 8px; color: var(--navy); }
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.wd-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; font: inherit; color: var(--navy); transition: .12s; }
.wd-item:hover { border-color: #BFD3EE; }
.wd-item.on { border-color: var(--green); background: #F2FBF4; box-shadow: 0 0 0 2px var(--green) inset; }
.wd-item.locked { cursor: default; background: #F7F9FC; }
.wd-item.locked .wd-owl { filter: grayscale(1) brightness(1.1); opacity: .45; }
.wd-item.new::after { content: 'НОВО'; position: absolute; top: 6px; right: 6px; background: var(--red); color: #fff; font-size: .62rem; font-weight: 900; padding: 2px 6px; border-radius: 99px; }
.wd-owl { width: 78px; display: block; }
.wd-item b { font-size: .85rem; line-height: 1.2; text-align: center; }
.wd-item small { font-size: .7rem; color: var(--muted); font-weight: 700; line-height: 1.25; text-align: center; }
@media (max-width: 480px) { .wd-grid { grid-template-columns: repeat(3, 1fr); } .wd-owl { width: 64px; } .wd-me { width: 80px; } }
.wd-got { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; background: #F4F0FF; border: 2px solid #D9CDFF; border-radius: 20px; padding: 10px 14px; margin: 10px auto 14px; max-width: 520px; text-align: left; }
.wd-got-owls { display: flex; }
.wd-got-owls span { width: 64px; display: block; }
.wd-got b { display: block; color: var(--navy); margin-bottom: 6px; }
.wd-panel { display: flex; gap: 20px; align-items: center; }
.wd-me-big { width: 150px; flex: none; }
.wd-panel h2 { margin: 0 0 6px; }
.wd-prog { color: var(--muted); font-weight: 700; }
@media (max-width: 600px) { .wd-panel { flex-direction: column; text-align: center; } .wd-me-big { width: 120px; } }
/* ученици от клас в профила на родителя */
.st-msg { background: #FFF6DB; border-radius: 12px; padding: 8px 10px; font-size: .9rem; margin: 8px 0 0; }
.st-last { margin: 6px 0 0; }
.st-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; border-radius: 99px; background: var(--orange); color: #fff; font-size: .72rem; margin-left: 4px; }
.st-link { margin-top: 14px; }
.hw-st { font-weight: 800; white-space: nowrap; }
.hw-st.ok { color: var(--green-dark); } .hw-st.miss { color: var(--red-dark); } .hw-st.wait { color: var(--orange-dark); }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.1fr 1fr 1fr; gap: 24px; } }
/* плащане през Paddle */
.pd-modal .modal-body { max-width: 440px; }
.pd-modal h3 { padding-right: 34px; }
.pd-modal .period-mini { margin-top: 10px; }
.pd-modal .ord { text-align: left; }
.pd-test { background: #FFF6DB; border-radius: 12px; padding: 8px 10px; }
.pd-sum { background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; font-weight: 700; color: var(--navy); margin: 12px 0 0; }
.pd-note { margin-top: 10px; text-align: center; }
.pd-qty { display: block; margin-top: 10px; }

/* ================= НВО раздел ================= */
.nvo-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.nvo-nav a, .nvo-nav .nvo-cur { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; font-weight: 800; font-size: .95rem; text-decoration: none; border: 2px solid var(--line); background: #fff; color: var(--navy); }
.nvo-nav a:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-1px); }
.nvo-nav .nvo-cur { background: var(--navy); border-color: var(--navy); color: #fff; }
.nvo-nav b { font-weight: 400; font-size: 1.05rem; }
@media (max-width: 640px) { .nvo-nav { gap: 6px; } .nvo-nav a, .nvo-nav .nvo-cur { padding: 8px 12px; font-size: .88rem; } }

.nvo-types a { text-decoration: none; }
.nvo-types .num { text-align: center; width: 72px; }
.nvo-types .nvo-sum td { background: var(--bg-soft); }

.nvo-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 22px 0 8px; }
.nvo-area { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.nvo-area h3 { margin: 0 0 8px; font-size: 1.1rem; }
.nvo-area p { margin: 0; font-size: .97rem; line-height: 1.5; }

.nvo-traps { display: grid; gap: 14px; margin: 20px 0 10px; }
.nvo-trap { display: flex; gap: 14px; align-items: flex-start; background: #FFF6DB; border-radius: 20px; padding: 16px 18px; }
.nvo-trap > span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; display: grid; place-items: center; }
.nvo-trap > div { line-height: 1.55; }

.solve { background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 20px 22px; margin: 0 0 18px; box-shadow: var(--shadow-sm); }
.solve h3 { margin: 0 0 12px; font-size: 1.12rem; }
.solve-task { background: var(--bg-soft); border-radius: 16px; padding: 14px 16px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.solve-steps { list-style: none; counter-reset: sv; padding: 0; margin: 16px 0 0; }
.solve-steps li { counter-increment: sv; position: relative; padding: 0 0 14px 40px; }
.solve-steps li::before { content: counter(sv); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 900; font-size: .9rem; display: grid; place-items: center; }
.solve-steps li > b { display: block; color: var(--purple); margin-bottom: 2px; }
.solve-steps li > div { line-height: 1.7; }
.solve-note { margin: 4px 0 0; background: #EAF7EA; border-radius: 14px; padding: 10px 14px; font-size: .95rem; font-weight: 600; }
.nvo-book { text-align: left; }
.src-note { margin-top: 18px; }
@media (max-width: 560px) { .solve, .nvo-area { padding: 16px; border-radius: 18px; } .nvo-trap { padding: 14px; } }
.nvo-band { display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: center; background: linear-gradient(180deg,#F4F0FF,#fff); border: 2px solid #E3DAFF; border-radius: 30px; padding: 26px 28px; box-shadow: var(--shadow-sm); max-width: 900px; margin: 0 auto; }
.nvo-band .owl { width: 130px; }
.nvo-band h2 { margin: 6px 0 10px; font-size: clamp(1.25rem, 3.6vw, 1.7rem); }
.nvo-band p { font-weight: 600; color: var(--ink); margin: 0 0 14px; }
@media (max-width: 640px) { .nvo-band { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; } .nvo-band .owl { width: 104px; margin: 0 auto; } .nvo-band .hero-cta { justify-content: center; } }

/* ================= Речник на термините по тема ================= */
.terms { margin: 10px 0 24px; padding: 0; display: grid; gap: 10px; }
.terms dt { font-weight: 800; color: var(--navy); }
.terms dd { margin: 2px 0 0; padding-left: 14px; border-left: 3px solid var(--line); line-height: 1.6; }

/* ================= Темата през класовете ================= */
.ser-line { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ser-step { background: #fff; border: 2px solid var(--line); border-left: 6px solid var(--c); border-radius: 18px; padding: 12px 14px; text-decoration: none; display: block; box-shadow: var(--shadow-sm); }
.ser-step b { display: block; color: var(--c); font-size: .85rem; letter-spacing: .005em; }
.ser-step span { display: block; color: var(--navy); font-weight: 700; font-size: .95rem; line-height: 1.35; margin-top: 3px; }
.ser-step:hover { transform: translateY(-2px); border-color: var(--c); }
.ser-step.on { background: var(--c); border-color: var(--c); pointer-events: none; }
.ser-step.on b, .ser-step.on span { color: #fff; }

/* ================= Блог: съдържание, автор ================= */
.bp-toc { background: var(--bg-soft); border-radius: 20px; padding: 16px 20px; margin: 22px 0 26px; }
.bp-toc > b { display: block; color: var(--navy); margin-bottom: 8px; font-size: .95rem; letter-spacing: .005em; }
.bp-toc ol { margin: 0; padding-left: 20px; }
.bp-toc li { margin: 5px 0; }
.bp-toc a { font-weight: 700; }
.bp-upd { color: var(--muted); }
.bp-author { margin: 26px 0 0; padding-top: 16px; border-top: 2px solid var(--line); color: var(--muted); font-size: .95rem; }
.bp-body h2 { scroll-margin-top: 84px; }

/* ================= Обратно броене до НВО ================= */
.nvo-count { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: linear-gradient(180deg,#F4F0FF,#fff); border: 2px solid #E3DAFF; border-radius: 26px; padding: 20px 24px; margin: 0 0 24px; }
.nvo-count > div { text-align: center; background: var(--navy); color: #fff; border-radius: 20px; padding: 14px 20px; min-width: 104px; }
.nvo-count > div b { display: block; font-size: 2.3rem; line-height: 1; font-weight: 900; }
.nvo-count > div span { font-size: .82rem; opacity: .8; }
.nvo-count p { margin: 0; font-weight: 600; line-height: 1.6; }
@media (max-width: 560px) { .nvo-count { grid-template-columns: 1fr; text-align: center; padding: 18px; } }

/* ================= НВО блок на началната страница ================= */
.nvo-home { padding-top: 0; }
.nvo-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg,#15223B,#2B3F6B); color: #fff; border-radius: 34px; padding: 34px 38px; box-shadow: var(--shadow); }
.nvo-hero .eyebrow { color: #9FC2FF; }
.nvo-hero h2 { margin: 8px 0 12px; font-size: clamp(1.4rem, 3.4vw, 2rem); color: #fff; }
.nvo-hero h2 b { color: #7CE0A3; }
.nvo-hero p { color: #D4DEF2; font-weight: 600; margin: 0 0 18px; }
.nvo-hero p b { color: #fff; }
.nvo-hero-r { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nvo-hero-r a { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 14px; text-decoration: none; color: #fff; display: block; }
.nvo-hero-r a:hover { background: rgba(255,255,255,.17); transform: translateY(-2px); }
.nvo-hero-r b { display: block; font-size: 1.4rem; line-height: 1; margin-bottom: 6px; }
.nvo-hero-r span { display: block; font-weight: 800; font-size: .95rem; }
.nvo-hero-r small { color: #AEC0DE; font-size: .8rem; }
@media (max-width: 860px) { .nvo-hero { grid-template-columns: 1fr; padding: 26px 22px; border-radius: 28px; } }
@media (max-width: 420px) { .nvo-hero-r { grid-template-columns: 1fr; } }

/* Менюто порасна с раздела за НВО – между 1100 и 1320px го стягаме, за да не изтласква бутоните */
@media (min-width: 1100px) and (max-width: 1320px) {
  .nav a, .nav .dd-btn { padding-left: 8px; padding-right: 8px; font-size: .94rem; }
  .nav { gap: 0; }
  .site-header .wrap { gap: 10px; }
}

/* ================= Безплатен режим ================= */
.free-band { background: linear-gradient(135deg,#E8F8EC,#fff); border-color: #BFE8C9; }
.free-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.free-card { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.free-card span { font-size: 1.8rem; display: block; line-height: 1; margin-bottom: 8px; }
.free-card b { display: block; color: var(--navy); margin-bottom: 4px; }
.free-card p { margin: 0; font-size: .94rem; line-height: 1.5; color: var(--ink); }

/* При много тесни екрани чипчето с точките (в безплатен режим се вижда винаги)
   не оставя място за „Вход“ – текстът се скрива и остава само иконата. */
@media (max-width: 359px) {
  .acct-btn:not(.in) .acct-txt { display: none; }
  .header-actions { gap: 5px; }
  .site-header .wrap { gap: 6px; }
}
/* В играта (wrap е до 1240px) бутонът „Регистрация“ не се побира, откакто точките се
   показват на всички – остава достъпен от менюто и от бутона за акаунт. */
@media (max-width: 1420px) { .game-header .btn-register { display: none !important; } }

/* Надпис коя област и тема проверява задачата (тест по чертежа на НВО) */
.qz-plan { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 4px; letter-spacing: .01em; }
.qz-plan b { color: var(--purple); font-weight: 800; font-size: .72rem; letter-spacing: .005em; }

/* Чертеж на теста: коя задача какво проверява */
.nvo-plan { font-size: .95rem; }
.nvo-plan .num { text-align: center; width: 44px; }
.nvo-plan .kind { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.nvo-plan .area { display: inline-block; background: var(--c); color: #fff; font-weight: 800; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
@media (max-width: 560px) { .nvo-plan .kind { display: none; } .nvo-plan { font-size: .88rem; } }
/* малка таблица вътре в условие на решен пример */
.mini-tbl { border-collapse: collapse; margin: 10px 0; font-size: .92rem; }
.mini-tbl th, .mini-tbl td { border: 1px solid var(--line); padding: 5px 12px; text-align: center; }
.mini-tbl th { background: var(--bg-soft); font-size: .85rem; }

/* ---- контролни с два варианта и пробно НВО за печат ---- */
.ws-page + .ws-page { margin-top: 36px; padding-top: 28px; border-top: 2px dashed var(--line); }
.ws-note { font-size: .92rem; color: #444; background: #F3F7FE; border-left: 4px solid var(--blue); padding: 8px 12px; margin: 0 0 14px; font-weight: 600; }
.ws-nvo { columns: 1; font-size: 1.02rem; }
.ws-nvo li { padding: 7px 0; }
.ws-tag { display: inline-block; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: var(--purple); border-radius: 999px; padding: 2px 8px; margin-right: 7px; vertical-align: 2px; }
.ws-opts { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 5px; font-weight: 600; }
.ws-opts span { min-width: 96px; }
.ws-opts .opt-fig { width: auto; height: 46px; vertical-align: middle; }
.ws-box { display: inline-block; width: 34px; height: 18px; border: 2px solid #111; border-radius: 3px; vertical-align: -3px; }
.ws-fig { display: block; margin: 5px 0; }
/* домашно за седмица – пет дни на един лист */
.ws-week { display: grid; gap: 10px; margin-top: 6px; }
.wk-day { border: 2px solid #D8E3F5; border-radius: 12px; padding: 8px 14px 10px; break-inside: avoid; }
.wk-day h3 { margin: 0 0 2px; font-size: 1rem; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.wk-box { width: 16px; height: 16px; border: 2px solid #111; border-radius: 4px; display: inline-block; }
.ws-list.wk-list { columns: 2; font-size: 1.1rem; padding-left: 24px; margin: 0; }
.ws-list.wk-list li { padding: 5px 0; }
.wk-key { margin: 10px 0 2px; font-size: .95rem; color: var(--navy); }
.ws-fig svg { max-height: 92px; width: auto; }
.ws-list li .ws-fig svg.ruler, .ws-list li .ws-fig svg.scene { max-height: 70px; }
.tool-grid label.is-off { opacity: .45; pointer-events: none; }
@media print { .ws-break { break-before: page; page-break-before: always; margin-top: 0; padding-top: 0; border-top: 0; } }

/* ---------- Коледен календар ---------- */
.ac-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.ac-bar label { font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.ac-bar .hint { margin: 0; }
.ac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 700px; }
@media (min-width: 620px) { .ac-grid { grid-template-columns: repeat(6, 1fr); } }
.ac-day { position: relative; aspect-ratio: 1; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  display: grid; place-items: center; cursor: pointer; font-family: inherit; color: var(--navy); padding: 0;
  box-shadow: var(--shadow-sm); transition: transform .1s; }
.ac-day:hover { transform: translateY(-2px); border-color: var(--sky); }
.ac-num { font-size: 1.7rem; font-weight: 900; color: var(--d, var(--navy)); }
/* всяка врата със свой цвят – иначе календарът изглежда като таблица */
.ac-day:nth-child(6n+1) { --d: #2F80ED; } .ac-day:nth-child(6n+2) { --d: #E0452F; }
.ac-day:nth-child(6n+3) { --d: #4CBB4A; } .ac-day:nth-child(6n+4) { --d: #8E6CF0; }
.ac-day:nth-child(6n+5) { --d: #FF7A1A; } .ac-day:nth-child(6n) { --d: #19B5A5; }
.ac-day:not(.locked) { border-color: color-mix(in srgb, var(--d) 35%, #fff); }
.ac-day:not(.locked):hover { border-color: var(--d); }
.ac-day.locked .ac-num { color: #9FB0CC; }
.ac-day.locked::after { content: '❄'; position: absolute; bottom: 4px; right: 7px; font-size: .85rem; color: #BBCBE4; }
.ac-day.locked { cursor: not-allowed; background: var(--bg-soft); color: #9FB0CC; border-style: dashed; box-shadow: none; }
.ac-day.locked:hover { transform: none; border-color: var(--line); }
.ac-day.today { border-color: var(--orange); box-shadow: 0 3px 0 var(--orange-dark); }
.ac-day.solved { background: #EAF7EA; border-color: #9BD69A; }
.ac-tick { position: absolute; top: 5px; right: 8px; color: var(--yellow); font-size: 1.1rem; }
.ac-count { margin: 16px 0 0; max-width: 700px; font-weight: 800; color: var(--muted); }
.ac-all { margin-top: 14px; max-width: 700px; background: #EAF7EA; border: 2px solid #9BD69A; border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 700; color: var(--navy); }
.ac-panel { margin-top: 20px; max-width: 700px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--cream); padding: 22px; }
.ac-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ac-head b { font-size: 1.15rem; color: var(--navy); }
.ac-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.ac-q { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.ac-blank { display: inline-block; min-width: 2.2em; border-bottom: 3px solid var(--sky); text-align: center; color: var(--sky); }
.ac-fig { margin-bottom: 14px; }
.ac-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ac-in { width: 130px; font: inherit; font-size: 1.3rem; font-weight: 800; text-align: center; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: var(--radius-sm); color: var(--navy); background: #fff; }
.ac-in:focus { outline: 3px solid var(--sky); outline-offset: 1px; }
.ac-fb { margin: 12px 0 0; font-weight: 800; min-height: 1.2em; }
.ac-fb.good { color: var(--green-dark); } .ac-fb.bad { color: var(--red); }
.ac-ok { margin: 0; font-weight: 800; color: var(--green-dark); }
.ac-sheet-list { columns: 2; column-gap: 28px; }
.ac-sheet-list li { break-inside: avoid; margin-bottom: 14px; }
@media (max-width: 420px) { .ac-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } .ac-num { font-size: 1.3rem; } }

/* ---------- На дъската ---------- */
/* --bq слага се от js/board.js: най-едрият шрифт, при който цялата задача се побира в кутията */
.bd { --bq: clamp(2rem, 6vw, 4rem); background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 28px 24px 22px;
  display: grid; place-content: center; text-align: center; height: clamp(380px, 62vh, 760px); overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative; }
.bd-top { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between;
  align-items: center; color: var(--muted); font-weight: 800; }
.bd-q { font-size: var(--bq); font-weight: 900; color: var(--navy); line-height: 1.14; margin: 0 0 .35em; letter-spacing: -.02em; }
.bd-blank { display: inline-block; min-width: 1.6em; border-bottom: .12em solid var(--sky); color: var(--sky); }
.bd-fig { margin: 0 auto .35em; }
.bd-fig svg { width: min(100%, 620px); height: auto; max-height: calc(var(--bq) * 3.2); }
.bd-fig .dtbl { font-size: calc(var(--bq) * .42); }
/* отговорите за избор – без тях задачите „Намери: квадрат“ нямаха какво да покажат */
.bd-opts { display: flex; flex-wrap: wrap; gap: .3em .6em; justify-content: center; margin: 0 0 .35em; font-size: calc(var(--bq) * .58); }
.bd-opt { display: inline-flex; align-items: center; gap: .35em; font-weight: 900; color: var(--navy);
  background: var(--bg-soft); border: 2px solid var(--line); border-radius: .4em; padding: .12em .5em; line-height: 1.2; }
.bd-opt i { font-style: normal; color: var(--muted); font-size: .72em; }
.bd-opt svg { height: 1.7em; width: auto; max-height: none; }
.bd-opt.right { background: #EAF6E9; border-color: var(--green); color: var(--green-dark); }
.bd-opt.right i { color: var(--green-dark); }
.bd-a { font-size: calc(var(--bq) * .66); font-weight: 900; color: var(--green-dark); margin: 0 0 .35em; line-height: 1.2; }
.bd-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bd:fullscreen { border-radius: 0; border: 0; height: 100vh; padding: 40px 36px 28px; place-content: center; background: #fff; }
.bd:fullscreen .bd-top { top: 20px; left: 26px; right: 26px; font-size: 1.1rem; }
.rp-plan { border-color: #F7D9AC; background: var(--cream); }
.rp-plan ul { margin: 0; padding-left: 22px; list-style: disc; }
.rp-plan li { margin-bottom: 8px; font-weight: 600; color: var(--ink); }
.rp-ask { margin: 12px 0 0; padding-top: 12px; border-top: 2px dashed #EBD4AD; color: var(--navy); font-weight: 700; }

/* ---------- Часовникът ---------- */
.ck { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .ck { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; } }
.ck-svg { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; touch-action: none; cursor: grab; }
.ck-svg:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 50%; }
.ck-svg [data-hand] { cursor: grab; }
.ck-svg [data-hand]:active { cursor: grabbing; }
.ck-n { font-family: inherit; font-weight: 900; font-size: 15px; fill: var(--navy); }
.ck-task { font-size: 1.3rem; font-weight: 900; color: var(--navy); margin: 0 0 10px; }
.ck-digi { font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 900; color: var(--blue); margin: 0; letter-spacing: -.02em; }
.ck-words { color: var(--muted); font-weight: 700; margin: 2px 0 18px; }
/* при „Колко е часът?“ цифрите се крият – иначе отговорът стои на екрана */
.ck.read-mode .ck-digi, .ck.read-mode .ck-words { visibility: hidden; }
.ck-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fld-in { width: 120px; font: inherit; font-size: 1.2rem; font-weight: 800; text-align: center; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: var(--radius-sm); color: var(--navy); background: #fff; }
.fld-in:focus { outline: 3px solid var(--sky); outline-offset: 1px; }
.ck-fb { font-weight: 800; min-height: 1.3em; margin: 12px 0 6px; }
.ck-fb.good { color: var(--green-dark); } .ck-fb.bad { color: var(--red); }

/* ---------- Текстови задачи стъпка по стъпка ---------- */
.wt { display: grid; gap: 24px; }
@media (min-width: 900px) { .wt { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; } }
.wt-main { background: var(--cream); border: 2px solid #F2E0BE; border-radius: var(--radius); padding: 26px; }
.wt-q { font-size: 1.35rem; font-weight: 800; color: var(--navy); line-height: 1.45; margin: 0 0 18px; }
.wt-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wt-fb { font-weight: 800; min-height: 1.3em; margin: 14px 0 0; }
.wt-fb.good { color: var(--green-dark); } .wt-fb.bad { color: var(--red); }
.wt-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.wt-steps li { border-bottom: 2px solid var(--line); padding: 13px 4px; color: #9FB0CC; }
.wt-steps li.on { color: var(--navy); }
.wt-steps li b { display: block; font-size: 1.02rem; }
.wt-steps li span { display: block; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* ---------- Обиколка и лице ---------- */
.ar { display: grid; gap: 26px; align-items: start; }
@media (min-width: 900px) { .ar { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; } }
.ar-svg { width: 100%; height: auto; touch-action: none; cursor: crosshair; background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius-sm); }
.ar-lbl { font-family: inherit; font-weight: 900; font-size: 15px; fill: var(--navy); }
.ar-task { font-size: 1.25rem; font-weight: 900; color: var(--navy); margin: 0 0 16px; }
.ar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ar-fb { font-weight: 800; min-height: 1.3em; margin: 14px 0 0; }
.ar-fb.good { color: var(--green-dark); } .ar-fb.bad { color: var(--red); }
.ar-out { display: grid; gap: 10px; margin-top: 18px; }
.ar-out span { display: block; background: var(--bg-soft); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 700; color: var(--ink); }
.ar-out b { display: block; color: var(--navy); font-size: .95rem; margin-bottom: 2px; }
.ar-out i { font-style: normal; font-weight: 900; color: var(--blue); }
.ar.hide-out .ar-out { visibility: hidden; }

/* ---------- Геометрия по класове ---------- */
.geo-grade { padding: 10px 0 34px; border-bottom: 2px solid var(--line); margin-bottom: 30px; }
.geo-grade:last-child { border-bottom: 0; margin-bottom: 0; }
.geo-two { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .geo-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; } }

/* ---------- Таблици и диаграми в задачите ---------- */
.dtbl { display: inline-grid; grid-template-columns: auto auto; border: 2px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; margin: 6px 0; background: #fff; font-weight: 700; }
.dtbl .dtr { display: contents; }
.dtbl span span { padding: 7px 14px; border-top: 1px solid var(--line); color: var(--ink); }
.dtbl .dtr:first-child span { border-top: 0; background: var(--bg-soft); color: var(--navy); font-weight: 900; }
.dtbl .dtr span:last-child { text-align: right; border-left: 1px solid var(--line); }
.dtbl .dtr.on span { background: #FFF4E2; }
.fig.chart { width: 290px; max-width: 100%; }
.fig .bn { font: 900 13px var(--font); fill: var(--navy); }
.fig .bl { font: 700 12px var(--font); fill: var(--muted); }
.ws-fig .dtbl { font-size: .92rem; }

/* ---------- Числова ос ---------- */
.nl { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.nl-task { font-size: 1.2rem; font-weight: 900; color: var(--navy); margin: 0 0 10px; }
.nl-svg { width: 100%; height: auto; touch-action: none; cursor: pointer; }
.nl-n { font: 800 15px var(--font); fill: var(--navy); }
.nl-v { font: 900 17px var(--font); fill: var(--orange-dark); }
.nl-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.nl-fb { font-weight: 800; min-height: 1.3em; margin: 12px 0 0; }
.nl-fb.good { color: var(--green-dark); } .nl-fb.bad { color: var(--red); }
.fig.line { width: 290px; max-width: 100%; }
.fig .ln { font: 800 13px var(--font); fill: var(--navy); }

/* ---------- Двубой ---------- */
.du { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.du-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-weight: 800; flex-wrap: wrap; gap: 8px; }
.du-scores { display: flex; gap: 14px; }
.du-scores b, .du-final span { padding: 4px 12px; border-radius: 999px; }
.p1, .du-who.p1 { background: #E3F0FF; color: #1F5FBF; }
.p2, .du-who.p2 { background: #F1E9FF; color: #6B46D6; }
.du-turn { margin: 14px 0 10px; font-weight: 800; color: var(--navy); }
.du-who { padding: 4px 12px; border-radius: 999px; }
.du-time { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.du-time span { display: block; height: 100%; background: var(--orange); transition: width .1s linear; }
.du-q { font-size: clamp(1.5rem, 5vw, 2.3rem); font-weight: 900; color: var(--navy); margin: 0 0 14px; }
.du-blank { display: inline-block; min-width: 1.6em; border-bottom: .12em solid var(--sky); color: var(--sky); }
.du-chs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.du-ch { font: inherit; font-weight: 800; padding: 12px 20px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--navy); cursor: pointer; }
.du-ch:hover { border-color: var(--sky); }
.du-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.du-fb { font-weight: 800; min-height: 1.4em; margin: 14px 0 0; }
.du-fb.good { color: var(--green-dark); } .du-fb.bad { color: var(--red); }
.du-over { text-align: center; }
.du-over h3 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.du-final { display: flex; gap: 14px; justify-content: center; font-weight: 800; margin-bottom: 20px; }
.du-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.du-setup .tool-grid label input.select { width: 100%; }
.mobile-nav .m-head { display: block; margin: 16px 0 2px; padding: 0 4px; color: var(--muted); font-size: .88rem; font-weight: 900; }
.mobile-nav .m-head:first-of-type { margin-top: 10px; }

/* ---------- Долно меню: на телефон колоните се сгъват ---------- */
.f-col > summary { list-style: none; cursor: default; }
.f-col > summary::-webkit-details-marker { display: none; }
.f-col > summary h4 { display: inline-block; margin: 0 0 10px; }
.f-col > ul { display: block; }                       /* на голям екран колоните са винаги отворени */
@media (max-width: 760px) {
  .footer-grid { gap: 0; }
  .f-about p { margin-bottom: 10px; }
  .f-col > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    padding: 12px 2px; border-bottom: 1px solid rgba(255,255,255,.14); }
  .f-col > summary h4 { margin: 0; }
  .f-col > summary::after { content: '▾'; transition: transform .15s; opacity: .7; }
  .f-col[open] > summary::after { transform: rotate(180deg); }
  .f-col:not([open]) > ul { display: none; }
  .f-col > ul { padding-top: 8px; padding-bottom: 6px; }
}

/* ---------- Картата: прогрес с лента, избледняващи далечни мисии, именувани части ---------- */
.map-stars { display: flex; align-items: center; gap: 8px; }
.map-stars .ms-bar { display: block; width: 92px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.35); overflow: hidden; }
.map-stars .ms-bar i { display: block; height: 100%; background: var(--yellow); border-radius: 999px; transition: width .4s ease; }
.map-stars b { font-size: 1rem; }
.map-stars small { opacity: .8; font-weight: 700; }
.map-node.far { opacity: .34; }
.map-node.far .lock { opacity: 0; }
.map-node.far .n-label { display: none; }
.map-chapters .ch small { display: block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
@media (max-width: 560px) { .map-stars .ms-bar { width: 60px; } .map-stars small { display: none; } }
.q-count { font-weight: 900; color: var(--muted); font-size: .95rem; white-space: nowrap; }
