/* Публичные страницы: лендинг и диагностика. Токены и кнопки — из app/css/style.css */
.landing { max-width: 1120px; margin: 0 auto; padding: 0 20px;
  --ease: cubic-bezier(.22, .8, .24, 1); --dur: .45s; }
.landing h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 750; letter-spacing: -.03em; }

/* Шапка */
.l-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.l-head .brand, .l-foot .brand { padding: 0; }
.l-head nav { display: flex; gap: 26px; margin-left: auto; color: var(--text-2); font-weight: 500; }
.l-head nav a { transition: color var(--dur) var(--ease); }
.l-head nav a:hover { color: var(--accent); }

/* Первый экран */
.l-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 56px 0 72px; }
.l-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600;
  color: var(--ok); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.l-hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 18px 0 18px; }
.l-accent { color: var(--accent); }
.l-lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 540px; }
.l-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; font-weight: 600; border-radius: 14px; }
.btn-primary.btn-lg { box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease); }
.btn-primary.btn-lg:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-ghost.btn-lg { transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.btn-ghost.btn-lg:hover { border-color: var(--accent); transform: translateY(-2px); }
.l-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--text-2); font-size: 14px; }
.l-trust li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* Пример результата */
.l-preview { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --lift: 0px;
  position: relative; padding: 24px; border-radius: 24px; text-align: center; overflow: hidden; isolation: isolate;
  transform: perspective(1100px) rotate(1.2deg) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  box-shadow: 0 30px 60px rgba(15, 40, 70, .12), var(--shadow);
  transition: transform .9s var(--ease), box-shadow .9s var(--ease), border-color .9s var(--ease);
  will-change: transform; animation: l-float 7s ease-in-out infinite; }
.l-preview::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  transition: opacity .9s var(--ease); }
.l-preview:hover, .l-preview.is-tilt { --lift: -6px; animation-play-state: paused;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 40px 80px rgba(15, 40, 70, .18), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 20px 60px color-mix(in srgb, var(--accent) 22%, transparent); }
.l-preview:hover { transform: perspective(1100px) rotate(0deg) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); }
.l-preview.is-tilt { transition-duration: .25s, .9s, .9s; }
.l-preview:hover::before { opacity: 1; }
@keyframes l-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.l-preview-head { display: flex; justify-content: space-between; align-items: center; }
.l-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; color: var(--accent-strong); background: var(--accent-soft); }
@property --fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.l-ring { width: 132px; height: 132px; margin: 18px auto 14px; border-radius: 50%; display: grid; place-items: center;
  --fill: 70%; background: conic-gradient(var(--accent) var(--fill), var(--line) 0); animation: l-fill 1.6s var(--ease) .3s both; }
@keyframes l-fill { from { --fill: 0%; } }
.l-ring > div { width: 106px; height: 106px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; }
.l-ring b { font-size: 44px; line-height: 1; color: var(--accent); }
.l-ring small { color: var(--text-2); font-size: 12px; }
.l-preview-score { color: var(--text-2); font-size: 15px; }
.l-preview-score b { color: var(--text); }
.l-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0 14px; }
.l-cells i { font-style: normal; font-weight: 700; font-size: 14px; padding: 9px 0; border-radius: 10px;
  animation: l-pop .6s var(--ease) both; transition: transform var(--dur) var(--ease); }
.l-cells i:nth-child(1) { animation-delay: .5s; } .l-cells i:nth-child(2) { animation-delay: .56s; } .l-cells i:nth-child(3) { animation-delay: .62s; }
.l-cells i:nth-child(4) { animation-delay: .68s; } .l-cells i:nth-child(5) { animation-delay: .74s; } .l-cells i:nth-child(6) { animation-delay: .8s; }
.l-cells i:nth-child(7) { animation-delay: .86s; } .l-cells i:nth-child(8) { animation-delay: .92s; } .l-cells i:nth-child(9) { animation-delay: .98s; }
.l-cells i:nth-child(10) { animation-delay: 1.04s; }
.l-preview:hover .l-cells i:hover { transform: translateY(-2px) scale(1.06); }
@keyframes l-pop { from { opacity: 0; transform: translateY(6px) scale(.92); } }
.l-cells .ok { background: var(--ok-soft); color: var(--ok); }
.l-cells .bad { background: var(--bad-soft); color: var(--bad); }
.l-preview-note { font-size: 14px; color: var(--text-2); }
.l-preview-note b { color: var(--text); font-weight: 600; }

/* Секции */
.l-sec { padding: 56px 0; display: flex; flex-direction: column; gap: 14px; }
.l-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.l-sec h2 { margin-bottom: 14px; }
.l-grid3, .l-grid2 { display: grid; gap: 18px; align-items: stretch; }
.l-grid3 { grid-template-columns: repeat(3, 1fr); }
.l-grid2 { grid-template-columns: repeat(2, 1fr); }
.l-center { align-self: center; margin-top: 18px; }

/* Карточки: единый ховер */
.l-card { margin: 0 !important; display: flex; flex-direction: column; gap: 8px; padding: 24px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.l-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.l-card b { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.l-emoji { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.l-step { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 800; font-size: 18px;
  color: #fff; background: var(--accent); margin-bottom: 6px; }
.l-feature { flex-direction: row; align-items: flex-start; gap: 16px; }
.l-feature > div { display: flex; flex-direction: column; gap: 6px; }
.l-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); font-size: 22px; }
.l-format .btn { margin-top: auto; }
.l-format .muted { margin-bottom: 12px; }
.l-format-hi { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.l-format-hi .l-badge { align-self: flex-start; }
.l-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.l-faq { display: grid; gap: 12px; }
.l-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform var(--dur) var(--ease); }
.l-faq details[open] summary::after { transform: rotate(45deg); }
.l-faq details p { margin-top: 4px; }

/* Финальный призыв */
.l-final { margin: 40px 0 24px; padding: 56px 24px; border-radius: 28px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: 0 24px 50px color-mix(in srgb, var(--accent) 30%, transparent); }
.l-final p { opacity: .85; font-size: 17px; }
.l-btn-white { background: #fff; color: var(--accent-dark); margin-top: 10px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.l-btn-white:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.l-btn-white:hover { transform: translateY(-2px); }

/* Подвал */
.l-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 48px; border-top: 1px solid var(--line); margin-top: 24px; }
.l-foot nav { display: flex; gap: 22px; color: var(--text-2); }
.l-foot nav a:hover { color: var(--accent); }

/* Липкая кнопка на телефоне */
.l-sticky { display: none; }

@media (max-width: 900px) {
  .l-hero { grid-template-columns: 1fr; gap: 36px; padding: 28px 0 48px; }
  .l-preview { max-width: 420px; width: 100%; justify-self: center; transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); }
  .l-grid3, .l-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .landing { padding: 0 16px; }
  .l-head { gap: 12px; }
  .l-head nav { display: none; }
  .l-head .btn { margin-left: auto; }
  .l-lead { font-size: 17px; }
  .l-cta .btn { width: 100%; }
  .l-sec { padding: 40px 0; }
  .l-foot { flex-direction: column; padding-bottom: 96px; }
  .l-sticky { display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20;
    min-height: 54px; font-size: 16px; font-weight: 600; border-radius: 14px; box-shadow: 0 12px 30px rgba(15, 40, 70, .3); }
}
@media (hover: none) { .l-card:hover { transform: none; } .l-preview { animation: l-float 7s ease-in-out infinite; } }
@media (prefers-reduced-motion: reduce) {
  .l-preview, .l-ring, .l-cells i { animation: none !important; }
  .l-preview, .l-card, .btn { transition-duration: .01s !important; }
}

/* ---------- Главная кнопка: «Пройти диагностику» ---------- */
.l-cta-main { position: relative; isolation: isolate; overflow: hidden; gap: 12px; min-height: 60px; padding: 0 22px 0 28px;
  border: 0; border-radius: 18px; color: #fff !important; font-size: 17px; font-weight: 700; letter-spacing: -.01em;
  background: linear-gradient(135deg, #4aa8f5 0%, var(--accent) 45%, #1f6fd1 100%);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .12);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), filter .45s var(--ease);
  animation: l-breathe 3.2s ease-in-out infinite; }
/* блик, пробегающий по кнопке */
.l-cta-main::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-130%); animation: l-shine 4.2s ease-in-out 1.2s infinite; }
/* мягкое свечение за кнопкой */
.l-cta-main::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  background: radial-gradient(120% 140% at var(--gx, 50%) 0%, rgba(255, 255, 255, .22), transparent 60%); opacity: .7; transition: opacity .45s var(--ease); }
.l-cta-main:hover { transform: translateY(-3px) scale(1.02); filter: saturate(1.1) brightness(1.04); animation-play-state: paused;
  box-shadow: 0 22px 48px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.l-cta-main:hover::after { opacity: 1; }
.l-cta-main:active { transform: translateY(0) scale(.98); transition-duration: .12s; }
.l-cta-main:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 3px; }
.l-cta-pill { padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.l-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .18);
  transition: transform .45s var(--ease), background .45s var(--ease); }
.l-arrow svg { width: 18px; height: 18px; }
.l-cta-main:hover .l-arrow, .l-cta-white:hover .l-arrow { transform: translateX(4px); background: rgba(255, 255, 255, .3); }
.l-cta-white { gap: 12px; min-height: 60px; padding: 0 22px 0 28px; border-radius: 18px; font-weight: 700; font-size: 17px; }
.l-cta-white .l-arrow { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-dark); }
.l-cta-white:hover { transform: translateY(-3px) scale(1.02); }
.l-cta-white:hover .l-arrow { background: color-mix(in srgb, var(--accent) 22%, transparent); }
@keyframes l-shine { 0% { transform: translateX(-130%); } 35%, 100% { transform: translateX(130%); } }
@keyframes l-breathe { 0%, 100% { box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .12); }
  50% { box-shadow: 0 18px 44px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .12); } }
.l-sticky.l-cta-main { justify-content: center; }
@media (max-width: 900px) { .l-hero { grid-template-columns: minmax(0, 1fr); } .l-hero-text { min-width: 0; } }
@media (max-width: 640px) {
  .l-cta-main, .l-cta-white { width: 100%; justify-content: center; font-size: 16px; padding: 0 12px 0 18px; white-space: normal; text-align: left; }
  .l-cta-text { flex: 1; }
  .l-sticky.l-cta-main { position: fixed; width: auto; display: flex; animation: none; }
  .l-cta .l-cta-main { order: -1; }
}
@media (max-width: 380px) { .l-cta-pill { display: none; } }
@media (prefers-reduced-motion: reduce) { .l-cta-main, .l-cta-main::before { animation: none !important; } }

/* Пункт меню «Диагностика» — мягко выделен */
.l-head nav .l-nav-hi { display: inline-flex; align-items: center; gap: 7px; margin: -6px 0; padding: 6px 12px; border-radius: 99px;
  color: var(--accent-strong); font-weight: 600; background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease); }
.l-head nav .l-nav-hi:hover { color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 6px 18px color-mix(in srgb, var(--accent) 20%, transparent); }
.l-nav-hi i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.l-nav-hi i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: l-ping 2.4s var(--ease) infinite; }
@keyframes l-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .l-nav-hi i::after { animation: none; } }

/* Реквизиты и документы в подвале */
.l-foot { flex-wrap: wrap; }
.l-legal { flex-basis: 100%; display: grid; gap: 4px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.l-legal p { margin: 0; }
.l-legal a { color: var(--text-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
.l-legal a:hover { color: var(--accent); }

/* Юридические страницы */
.legal { max-width: 780px; margin: 0 auto; padding: 24px 0 40px; line-height: 1.65; }
.legal h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 8px 0 6px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal b { color: var(--text); }
.legal ul { padding-left: 20px; display: grid; gap: 4px; }
.legal a { color: var(--accent); }
.legal-meta { font-size: 14px; color: var(--text-3) !important; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; color: var(--text-2); }
.legal-table th { background: var(--accent-softer); color: var(--text); }

/* Банк задач ОГЭ и ЕГЭ: пункт шапки с выпадающим меню */
.l-dd { position: relative; display: flex; align-items: center; }
.l-head nav .l-nav-bank { display: inline-flex; align-items: center; gap: 6px; margin: -6px 0; padding: 6px 10px 6px 14px; border-radius: 99px; font-weight: 650;
  color: #fff; background: linear-gradient(135deg, #4aa8f5, var(--accent) 55%, #1f6fd1);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.l-head nav .l-nav-bank:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }
.l-chev { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.l-dd:hover .l-chev, .l-dd:focus-within .l-chev { transform: rotate(180deg); }
.l-dd-panel { position: absolute; top: calc(100% + 14px); left: 50%; z-index: 20; display: grid; gap: 4px; width: 320px; padding: 8px; border-radius: 18px;
  background: var(--surface); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(15, 40, 70, .22);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.l-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }   /* мостик: курсор не теряет меню */
.l-dd:hover .l-dd-panel, .l-dd:focus-within .l-dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.l-head nav .l-dd-panel a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); transition: background .2s; }
.l-head nav .l-dd-panel a:hover { color: var(--text); background: var(--accent-soft); }
.l-dd-panel b { display: block; font-size: 14px; font-weight: 650; }
.l-dd-panel small { font-size: 12px; color: var(--text-3); }
.l-dd-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 18px; background: var(--accent-soft); }
.l-head nav .l-dd-panel .l-dd-skill { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }

/* Банк задач ОГЭ и ЕГЭ: блок на главной */
.l-bank { scroll-margin-top: 90px; position: relative; isolation: isolate; margin: 8px 0 24px; padding: 40px; border-radius: 28px; display: flex; flex-direction: column; gap: 24px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 60%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 30px 70px color-mix(in srgb, var(--accent) 14%, transparent); overflow: hidden; }
.l-bank::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, #4aa8f5 30%, transparent), transparent 65%); filter: blur(10px); }
.l-bank-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 720px; }
.l-bank-head h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 4px 0 0; }
.l-bank-grad { background: linear-gradient(90deg, #5cb3f2, var(--accent) 50%, #1f6fd1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.l-exam { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.l-exam::before { content: "№" attr(data-n); position: absolute; right: -6px; bottom: -22px; font-size: 92px; font-weight: 800; letter-spacing: -.06em;
  color: color-mix(in srgb, var(--accent) 9%, transparent); pointer-events: none; transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.l-exam:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 20%, transparent); }
.l-exam:hover::before { color: color-mix(in srgb, var(--accent) 16%, transparent); transform: translateX(-6px); }
.l-exam-tag { align-self: flex-start; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent-strong); background: var(--accent-soft); }
.l-exam-ege .l-exam-tag { color: #fff; background: linear-gradient(135deg, #4aa8f5, #1f6fd1); }
.l-exam-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-top: 4px; border-radius: 16px; font-size: 26px; background: var(--accent-soft); }
.l-exam b { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.l-exam-sub { position: relative; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.l-exam-go { position: relative; margin-top: auto; padding-top: 6px; font-weight: 650; color: var(--accent-strong); transition: transform var(--dur) var(--ease); }
.l-exam:hover .l-exam-go, .l-bank-skill:hover .l-exam-go { transform: translateX(4px); }
.l-bank-skill { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; color: var(--text-2); font-size: 15px;
  background: color-mix(in srgb, var(--accent) 7%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line));
  transition: background var(--dur) var(--ease); }
.l-bank-skill:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.l-bank-skill b { color: var(--text); }
.l-bank-skill .l-exam-go { margin: 0 0 0 auto; padding: 0; white-space: nowrap; }
@media (max-width: 1080px) { .l-head nav { gap: 18px; } }
@media (max-width: 900px) { .l-bank-grid { grid-template-columns: 1fr; } .l-bank { padding: 28px 22px; } .l-exam::before { font-size: 72px; } }
@media (max-width: 640px) { .l-bank { padding: 24px 16px; border-radius: 22px; } .l-bank-skill { flex-wrap: wrap; } .l-bank-skill .l-exam-go { margin-left: 52px; } }

/* Шапка публичных страниц (кроме главной) — плавающая «таблетка» из стекла */
.l-head.l-float { top: 12px; margin: 12px 0 0; padding: 10px 10px 10px 18px; border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 40%, transparent) inset, 0 10px 30px rgba(15, 40, 70, .10); }
.l-head.l-float .btn { border-radius: 14px; }
@media (max-width: 560px) { .l-head.l-float { top: 8px; margin-top: 8px; padding: 8px 8px 8px 14px; border-radius: 18px; } }
