/* Страница участника Smart 500 — /ru/ranking/smart-500/welcome/
   Палитра и шрифты общие с v2 (var из styles.css). Все стили scoped через .s5w. */

.s5w {
  --s5w-text: #EAF0FB;
  --s5w-muted: rgba(234, 240, 251, 0.68);
  --s5w-line: rgba(234, 240, 251, 0.18);
  background: var(--navy-deep, #0A1F44);
  color: var(--s5w-text);
  min-height: calc(100vh - 80px);
  display: flex;
}
.s5w a { color: inherit; text-decoration: none; }

.s5w-stage {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 64px;
  display: grid;
  gap: 32px;
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
}

/* Знак «Smart 500» — как заголовок хаба: Smart прямой, 500 курсивом с синим свечением */
.s5w-mark { display: flex; flex-direction: column; line-height: 0.84; user-select: none; font-family: "Source Serif 4", Georgia, serif; font-weight: 400; font-size: clamp(88px, 22vw, 200px); letter-spacing: -0.045em; color: #fff; }
.s5w-mark-name { display: block; }
.s5w-mark-num { display: block; font-style: italic; font-feature-settings: "lnum"; letter-spacing: -0.06em; margin-top: -8px; color: var(--blue-bright, #3B82F6); text-shadow: 0 0 20px rgba(59,130,246,0.4); }

.s5w-panel { max-width: 560px; }
.s5w-kicker { margin: 0 0 12px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--s5w-muted); }
.s5w-title {
  margin: 0 0 16px;
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 400;
  font-size: clamp(30px, 5.4vw, 52px); line-height: 1.12; letter-spacing: -0.02em;
  text-wrap: balance; overflow-wrap: anywhere;
}
.s5w-lead { margin: 0 0 28px; font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.55; color: var(--s5w-muted); max-width: 52ch; }

/* Кнопки и ссылки */
.s5w-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.s5w-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border: 1px solid transparent; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.s5w-btn-primary { background: var(--blue, #2563EB); color: #fff !important; border-color: var(--blue, #2563EB); }
.s5w-btn-primary:hover { background: var(--blue-2, #1D4ED8); border-color: var(--blue-2, #1D4ED8); }
.s5w-btn:disabled { opacity: 0.55; cursor: progress; }
.s5w-link { font-family: 'Inter', sans-serif; font-size: 15px; border-bottom: 1px solid var(--s5w-line); padding: 4px 0; }
.s5w-link:hover { border-bottom-color: var(--blue-bright, #3B82F6); }
.s5w a:focus-visible, .s5w button:focus-visible, .s5w-input:focus-visible {
  outline: 2px solid var(--blue-bright, #3B82F6); outline-offset: 3px;
}

/* Выбор компании */
.s5w-picker { position: relative; max-width: 480px; }
.s5w-label { display: block; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--s5w-muted); }
.s5w-input {
  width: 100%; min-height: 52px; padding: 0 16px; box-sizing: border-box;
  background: rgba(234, 240, 251, 0.06); color: var(--s5w-text);
  border: 1px solid var(--s5w-line); border-radius: 0;
  font-family: 'Inter', sans-serif; font-size: 17px;
}
.s5w-input::placeholder { color: rgba(234, 240, 251, 0.4); }
.s5w-list {
  list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; z-index: 5;
  background: #fff; color: var(--navy-deep, #0A1F44); max-height: 320px; overflow-y: auto;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}
.s5w-list li { padding: 14px 16px; font-family: 'Inter', sans-serif; font-size: 16px; cursor: pointer; }
.s5w-list li:hover, .s5w-list li[aria-selected="true"] { background: var(--paper-2, #EEF1F7); }
.s5w-hint, .s5w-error { margin: 12px 0 0; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--s5w-muted); }
.s5w-error { color: #FFB4A8; }
.s5w-confirm { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.s5w-confirm-text { margin: 0; font-family: 'Inter', sans-serif; font-size: 16px; }

/* Действия участника — список строк, а не карточки */
.s5w-ledger { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--s5w-line); max-width: 560px; }
.s5w-ledger li { border-bottom: 1px solid var(--s5w-line); }
.s5w-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; transition: background 0.15s, padding 0.15s; }
a.s5w-row:hover { background: rgba(234, 240, 251, 0.06); padding-left: 12px; padding-right: 12px; }
.s5w-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.s5w-row-main strong { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 500; }
.s5w-row-main small { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--s5w-muted); }
.s5w-row-go { flex: none; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--blue-bright, #3B82F6); }
.s5w-row-off { opacity: 0.55; cursor: default; }
.s5w-row-off .s5w-row-go { color: var(--s5w-muted); }

/* Единственный выразительный момент: знак «500» ставится как печать, когда компания подтверждена */
@keyframes s5w-stamp {
  0% { opacity: 0; transform: scale(1.35) rotate(-4deg); }
  60% { opacity: 1; transform: scale(0.97) rotate(0.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.s5w[data-state="done"] .s5w-mark-num { animation: s5w-stamp 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both; transform-origin: 20% 70%; }
@media (prefers-reduced-motion: reduce) {
  .s5w[data-state="done"] .s5w-mark-num { animation: none; }
  .s5w-row, .s5w-btn { transition: none; }
}

@media (min-width: 900px) {
  .s5w-stage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 64px 32px 80px; }
  .s5w-mark { flex-direction: column; align-items: flex-start; gap: 0; }
}

/* Атрибут hidden не должен перебиваться display из классов выше */
.s5w [hidden] { display: none !important; }

/* Белая полоса под блоком: у подвала сайта верхний отступ 80px, здесь он не нужен */
.s5w-page .v2-footer { margin-top: 0; }

/* Подпись шага и кнопки — в тех же шрифтах, что и на хабе (JetBrains Mono) */
.s5w-kicker, .s5w-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--s5w-muted);
}
.s5w-btn { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Подтверждение почты */
.s5w-verify { max-width: 420px; display: grid; gap: 16px; }
.s5w-code { display: grid; gap: 12px; justify-items: start; }
.s5w-input-code { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.4em; text-align: center; max-width: 220px; }
.s5w-link-btn { background: none; border: 0; border-bottom: 1px solid var(--s5w-line); color: inherit; cursor: pointer; }

/* ===== Праздничный экран участника ===== */

/* Поле из 500 точек: по точке на каждую компанию рейтинга */
.s5w-field { display: grid; gap: 14px; justify-items: start; width: 100%; max-width: 440px; }
.s5w-field-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 22px; letter-spacing: -0.02em; color: #fff; }
.s5w-field-title em { color: var(--blue-bright, #3B82F6); }
.s5w-dots { display: grid; grid-template-columns: repeat(20, 1fr); gap: clamp(3px, 1.1vw, 6px); width: 100%; }
/* Анимируем только transform и opacity: они считаются на видеокарте, без перерисовки 500 точек.
   Цвет волны лежит отдельным слоем (::after), который проявляется через opacity; теней нет. */
.s5w-dots i { position: relative; aspect-ratio: 1; border-radius: 50%; background: rgba(234, 240, 251, 0.16); animation: s5w-wave 0.9s ease-out both; animation-delay: var(--w, 0ms); }
.s5w-dots i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue-bright, #3B82F6); animation: s5w-wave-glow 0.9s ease-out both; animation-delay: var(--w, 0ms); }
.s5w-dots i.mine { z-index: 1; animation-name: s5w-wave-mine; }
.s5w-dots i.mine::after { background: #fff; animation-name: s5w-wave-glow-mine; }
/* Кольцо вокруг вашей точки: три вспышки и тишина, а не бесконечная пульсация */
.s5w-dots i.mine::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.75); opacity: 0; animation: s5w-ring 1.6s ease-out 3 forwards; animation-delay: 1.8s; }
@keyframes s5w-wave { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes s5w-wave-glow { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0.55; } }
@keyframes s5w-wave-mine { 0% { transform: scale(1); } 45% { transform: scale(1.9); } 100% { transform: scale(1.5); } }
@keyframes s5w-wave-glow-mine { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes s5w-ring { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* Название компании — главное на экране */
.s5w-congrats { display: flex; flex-direction: column; gap: 4px; }
.s5w-company {
  font-style: italic; color: var(--blue-bright, #3B82F6);
  font-size: 1.28em; line-height: 1.05; letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

/* Появление текста после волны: один последовательный выход, без «прыжков» на каждый блок */
@keyframes s5w-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.s5w-rise { animation: s5w-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: var(--d, 0s); }

.s5w-btn-wide { width: 100%; margin: 4px 0 22px; min-height: 56px; text-align: center; }

/* Телефон: QR открывают именно с него */
@media (max-width: 899px) {
  .s5w { min-height: 0; }
  .s5w-stage { padding: 24px 16px 40px; gap: 24px; }
  .s5w-mark { font-size: clamp(72px, 24vw, 120px); }
  .s5w-field { max-width: none; }
  .s5w-title { font-size: clamp(26px, 7.4vw, 36px); }
  .s5w-lead { font-size: 16px; margin-bottom: 20px; }
  .s5w-btn { width: 100%; }
  .s5w-actions { flex-direction: column; align-items: stretch; }
  .s5w-link { align-self: center; }
  .s5w-row { padding: 16px 2px; }
  .s5w-input { font-size: 16px; } /* 16px: iOS не приближает страницу при фокусе */
  .s5w-list li { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .s5w-dots i, .s5w-dots i::after, .s5w-dots i.mine::before { animation: none; }
  .s5w-dots i::after { opacity: 0.55; }
  .s5w-dots i.mine::before { opacity: 0; }
  .s5w-dots i.mine { transform: scale(1.5); }
  .s5w-dots i.mine::after { opacity: 1; }
  .s5w-rise { animation: none; }
}

/* ===== Правки по первому показу: место, широкий заголовок, список ===== */

/* «Участник Smart 500» — отдельной строкой без тире, чтобы тире не переносилось */
.s5w-sub { font-size: 0.62em; letter-spacing: -0.015em; color: #fff; }
.s5w-tier { color: rgba(234, 240, 251, 0.88); font-size: 19px; max-width: 34ch; }

/* Место слева: крупное число над полем точек */
.s5w-place { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.s5w-place-no { font-family: 'Source Serif 4', Georgia, serif; font-size: 28px; color: var(--s5w-muted); }
.s5w-place-num {
  font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-feature-settings: "lnum";
  font-size: clamp(64px, 16vw, 112px); line-height: 0.9; letter-spacing: -0.05em;
  color: #fff; text-shadow: 0 0 18px rgba(59, 130, 246, 0.5);
}
.s5w-place-cap { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--s5w-muted); }

/* Блок поздравления шире и крупнее */
.s5w-done { max-width: 680px; }
.s5w-done .s5w-title { font-size: clamp(34px, 8vw, 64px); }

@media (min-width: 900px) {
  .s5w[data-state="done"] .s5w-stage { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}

/* Выпадающий список: темная карточка в стиле страницы */
.s5w-list {
  background: #10294f; color: var(--s5w-text);
  border: 1px solid rgba(59, 130, 246, 0.45); margin-top: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.s5w-list li { display: block; border-bottom: 1px solid rgba(234, 240, 251, 0.08); }
.s5w-list li:last-child { border-bottom: 0; }
.s5w-list li:hover, .s5w-list li[aria-selected="true"] { background: var(--blue, #2563EB); color: #fff; }

/* Две большие кнопки подряд: рейтинг и карточка компании */
.s5w-cta { display: grid; gap: 12px; margin: 4px 0 22px; }
.s5w-cta .s5w-btn-wide { margin: 0; }
.s5w-btn-off { opacity: 0.45; cursor: default; pointer-events: none; text-align: center; line-height: 1.35; padding-top: 10px; padding-bottom: 10px; }

/* Формы «Задать вопрос» и заявка 2027: строки-кнопки и блок «не нашли компанию» */
.s5w-row-btn { width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.s5w-row-btn:hover { background: rgba(234, 240, 251, 0.06); padding-left: 12px; padding-right: 12px; }
.s5w-lost { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--s5w-line); max-width: 560px; }
.s5w-lost-title { margin: 0 0 6px; font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 500; }
.s5w-lost-actions { display: grid; gap: 12px; margin-top: 16px; justify-items: start; }
.s5w-verdict { max-width: 560px; }
@media (max-width: 899px) { .s5w-lost-actions .s5w-btn { width: 100%; } }

/* Выравнивание колонки действий: кнопки, список и блок «не нашли» одной ширины. Шрифт кнопок общий со всем сайтом (моно, капсом) */
.s5w-cta, .s5w-ledger, .s5w-lost { max-width: 560px; }
.s5w-lost-actions { justify-items: stretch; }
.s5w-lost-actions .s5w-btn { width: 100%; }
.s5w-row-main strong { font-weight: 600; }
.s5w-row-go { font-weight: 500; }

/* Несколько анимированных блоков с текстовым свечением сразу выносим в свои слои: свечение растрируется один раз */
.s5w-rise, .s5w[data-state="done"] .s5w-mark-num { will-change: transform, opacity; }

/* Список действий набран тем же шрифтом, что и кнопки сайта: заголовки и действия моно капсом, пояснения обычным текстом */
.s5w-row-main strong,
.s5w-row-go,
.s5w-lost-title { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.s5w-row-main strong { line-height: 1.4; }
.s5w-row-go { font-size: 12px; }
.s5w-lost-title { font-size: 13px; }

/* Блок «Сертификат участника»: заголовок и две кнопки скачивания (PDF и картинка для соцсетей) */
.s5w-cert { padding: 18px 4px 20px; }
.s5w-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.s5w-dl-btn { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--s5w-line); background: rgba(234, 240, 251, 0.04); transition: background 0.15s, border-color 0.15s; }
.s5w-dl-btn:hover { background: rgba(234, 240, 251, 0.1); border-color: var(--blue-bright, #3B82F6); }
.s5w-dl-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-bright, #3B82F6); }
.s5w-dl-btn small { font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.35; color: var(--s5w-muted); }
.s5w-dl-icons { display: inline-flex; gap: 6px; }
.s5w-dl-icons svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 560px) { .s5w-dl { grid-template-columns: 1fr; } }

/* Светлая кнопка: явный фон, иначе ссылка-кнопка сливается с фоном страницы (у <button> фон от браузера) */
.s5w-btn-light { background: #eef2fa; color: #0b1b34 !important; border-color: #eef2fa; }
.s5w-btn-light:hover { background: #fff; border-color: #fff; }

/* Экран «компания не в рейтинге»: заголовок, название компании и один выделенный блок действий */
.s5w-verdict { outline: none; }
.s5w-verdict-name {
  margin: 0 0 20px; padding: 2px 0 2px 16px; border-left: 3px solid var(--blue-bright, #3B82F6);
  font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(20px, 4.4vw, 26px); line-height: 1.25; overflow-wrap: anywhere;
}
.s5w-verdict-box {
  margin-top: 24px; padding: 22px 20px 12px; max-width: 560px;
  border: 1px solid rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.08);
}
.s5w-verdict-box .s5w-lost-title { margin-bottom: 16px; color: var(--s5w-muted); }
.s5w-verdict-box .s5w-cta { margin: 0 0 12px; }
.s5w-verdict-box .s5w-ledger { margin-top: 12px; border-top-color: rgba(59, 130, 246, 0.35); }
.s5w-verdict-box .s5w-ledger li { border-bottom: 0; }
.s5w-lost .s5w-ledger { margin-top: 16px; }
@media (max-width: 899px) { .s5w-verdict-box { padding: 18px 14px 8px; } }

/* --- Бейдж кодом, сертификаты и расширенная версия (решение 03.11.2026) --- */
.s5w-preview { max-width: 560px; margin: 0 0 16px; padding: 10px 14px; border: 1px dashed var(--s5w-line); font: 14px/1.5 'Inter', sans-serif; color: var(--s5w-muted); }
.s5w-preview a { color: var(--blue-bright, #3B82F6) !important; text-decoration: underline !important; }
.s5w-kit { max-width: 560px; margin: 40px 0 0; }
.s5w-kit-h, .s5w-up-h { margin: 0 0 8px; font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
.s5w-kit-h2 { margin-top: 40px; }
.s5w-kit-lead { margin: 0 0 20px; font: 15px/1.55 'Inter', sans-serif; color: var(--s5w-muted); }
.s5w-opts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.s5w-seg { display: inline-flex; border: 1px solid var(--s5w-line); }
.s5w-seg button { background: none; border: 0; color: var(--s5w-muted); font: 500 14px 'Inter', sans-serif; padding: 9px 14px; cursor: pointer; }
.s5w-seg button + button { border-left: 1px solid var(--s5w-line); }
.s5w-seg button[aria-pressed="true"] { background: #EAF0FB; color: #0A1F44; }
.s5w-code-cap { margin: 0 0 8px; font: 14px/1.5 'Inter', sans-serif; color: var(--s5w-muted); }
.s5w-code-pre { margin: 0 0 12px; padding: 12px; max-height: 132px; overflow: auto; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--s5w-line); font: 12px/1.5 ui-monospace, Menlo, monospace; color: #C9D6F2; white-space: pre-wrap; word-break: break-all; }
.s5w-up { max-width: 560px; margin: 40px 0 8px; padding: 24px; border: 1px solid rgba(59, 130, 246, 0.55); background: linear-gradient(160deg, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0.04)); }
.s5w-up-kicker { margin: 0 0 8px; font: 600 13px 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-bright, #3B82F6); }
.s5w-up-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; margin: 16px 0 20px; }
.s5w-up-teaser { position: relative; display: flex; justify-content: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.s5w-up-badge { display: block; width: 104px; pointer-events: none; }
.s5w-up-badge svg { display: block; width: 100%; height: auto; }
.s5w-up-badge + .s5w-up-badge { margin-left: -40px; margin-top: 22px; opacity: 0.9; }
.s5w-up-lock { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; padding: 4px 8px; background: #0A1F44; border: 1px solid var(--s5w-line); font: 600 12px 'Inter', sans-serif; color: var(--s5w-text); }
.s5w-up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font: 15px/1.45 'Inter', sans-serif; }
.s5w-up-list li { position: relative; padding-left: 18px; }
.s5w-up-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--blue-bright, #3B82F6); }
.s5w-up-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (max-width: 560px) {
  .s5w-up-grid { grid-template-columns: minmax(0, 1fr); }
  .s5w-up { padding: 20px 16px; }
}

/* Участник (03.11, правки Ильи): без колонки с местом и точками, контент на всю ширину */
@media (min-width: 900px) {
  .s5w[data-state="done"] .s5w-stage { grid-template-columns: minmax(0, 1fr); max-width: 1040px; align-content: start; }
}
.s5w-done { max-width: none; }
.s5w-done .s5w-preview, .s5w-done .s5w-kit, .s5w-done .s5w-up { max-width: none; }
.s5w-done .s5w-cta { max-width: 760px; }

/* Бейдж: переключатель «с местом / без места», две прозрачные версии, у каждой кружки фона для примерки */
.s5w-switch { display: inline-flex; margin: 0 0 24px; padding: 4px; gap: 4px; background: rgba(234, 240, 251, 0.06); border: 1px solid var(--s5w-line); }
.s5w-switch button { appearance: none; -webkit-appearance: none; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--s5w-muted); font: 500 15px/1 'Inter', sans-serif; letter-spacing: 0; text-transform: none; padding: 11px 20px; cursor: pointer; transition: background .15s, color .15s; }
.s5w-switch button:hover { color: var(--s5w-text); }
.s5w-switch button[aria-checked="true"] { background: #EAF0FB; color: #0A1F44; font-weight: 600; }
.s5w-tiles { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-start; }
.s5w-tile-wrap { display: flex; gap: 14px; align-items: flex-end; }
.s5w-tile { appearance: none; -webkit-appearance: none; display: grid; gap: 10px; margin: 0; padding: 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.s5w-tile-cap { font: 500 14px/1.3 'Inter', sans-serif; color: var(--s5w-muted); transition: color .15s; }
.s5w-tile-pic { display: grid; place-items: center; width: 220px; aspect-ratio: 1 / 1.08; padding: 18px; background: var(--bg); box-shadow: 0 0 0 1px var(--s5w-line); transition: opacity .15s, box-shadow .15s, background-color .2s; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.s5w-tile-pic img { display: block; width: 100%; max-width: 168px; height: auto; pointer-events: none; }
.s5w-tile-solid { background: rgba(234, 240, 251, 0.05); }
.s5w-picked .s5w-tile-wrap:not(.is-on) .s5w-tile-pic { opacity: .35; }
.s5w-picked .s5w-tile-wrap:not(.is-on) .s5w-dots-bg { opacity: .35; transition: opacity .15s; }
.s5w-picked .s5w-tile-wrap:not(.is-on):hover .s5w-tile-pic,
.s5w-picked .s5w-tile-wrap:not(.is-on):hover .s5w-dots-bg { opacity: .8; }
.s5w-tile[aria-checked="true"] .s5w-tile-pic { box-shadow: 0 0 0 3px var(--blue-bright, #3B82F6), 0 0 0 9px rgba(59, 130, 246, 0.22); }
.s5w-tile[aria-checked="true"] .s5w-tile-cap { font-weight: 600; }
.s5w-tile[aria-checked="true"] .s5w-tile-cap::before { content: "✓ "; color: var(--blue-bright, #3B82F6); }
/* Бесплатному участнику: персональный бейдж рядом, под замком */
.s5w-tile-locked { text-decoration: none; }
.s5w-tile-locked .s5w-tile-pic { position: relative; background: #FFFFFF; }
.s5w-locked-svg { display: block; width: 100%; max-width: 168px; opacity: .55; filter: blur(.6px); pointer-events: none; }
.s5w-locked-svg svg { display: block; width: 100%; height: auto; }
.s5w-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: #0A1F44; color: #fff; font: 600 13px/1 'Inter', sans-serif; white-space: nowrap; box-shadow: 0 6px 18px rgba(10, 31, 68, .35); }
.s5w-lock svg { width: 14px; height: 14px; fill: currentColor; }
.s5w-tile-locked:hover .s5w-lock { background: var(--blue, #2563EB); }
.s5w-tile[aria-checked="true"] .s5w-tile-cap { color: var(--s5w-text); }
.s5w-tile-solo { cursor: default; }
.s5w-dots-bg { display: flex; flex-direction: column; gap: 10px; padding-bottom: 4px; }
.s5w-dot { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; padding: 0; border-radius: 50%; background: var(--c); border: 1px solid rgba(234, 240, 251, 0.35); cursor: pointer; transition: transform .12s; }
.s5w-dot:hover { transform: scale(1.12); }
.s5w-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--navy-deep, #0A1F44), 0 0 0 4px #EAF0FB; }
.s5w-tiles-note { margin: 16px 0 0; max-width: 560px; }
.s5w-code-box { margin-top: 24px; max-width: 760px; }
.s5w-copy-msg { margin-left: 12px; }

/* Сертификаты рядом: превью листа A4 (iframe с самой страницей сертификата) */
.s5w-certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.s5w-certs-one { grid-template-columns: minmax(0, 480px); }
.s5w-cert-card { display: grid; gap: 10px; }
.s5w-cert-pic { --k: 0.4; position: relative; display: block; aspect-ratio: 297 / 210; overflow: hidden; background: #fff; outline: 1px solid var(--s5w-line); transition: outline-color .15s; }
.s5w-cert-card:hover .s5w-cert-pic { outline: 2px solid var(--blue-bright, #3B82F6); }
.s5w-cert-pic iframe { position: absolute; left: 0; top: 0; width: 1123px; height: 794px; border: 0; transform: scale(var(--k)); transform-origin: 0 0; pointer-events: none; }
.s5w-cert-cap { display: flex; flex-direction: column; gap: 2px; font-family: 'Inter', sans-serif; }
.s5w-cert-cap strong { font-size: 16px; font-weight: 600; }
.s5w-cert-cap small { font-size: 14px; color: var(--s5w-muted); }

@media (max-width: 760px) {
  .s5w-tile-pic { width: min(200px, 62vw); padding: 12px; }
  .s5w-certs { grid-template-columns: minmax(0, 1fr); }
}
