/* ============ steam.boutique — светлая современная тема ============ */
:root {
  --bg: #f3f5f9;
  --bg-2: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --border: #e6e9f2;
  --text: #1a2333;
  --text-dim: #64748b;
  --accent: #4f46e5;
  --accent-2: #3b82f6;
  --accent-soft: #eef2ff;
  --grad: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --blue-soft: #dbeafe;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 4px 12px rgba(16, 24, 40, .08);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .18);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

main { flex: 1 0 auto; padding: 24px 0 64px; }

/* ---------- Шапка ---------- */
.topbar {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); display: block; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--text-dim); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--accent); background: var(--accent-soft); }
.nav a.has-unread { color: var(--red); }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 20px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px var(--surface);
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 10px; border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
  background: var(--surface); color: var(--text); transition: all .15s; line-height: 1.4;
}
.btn:hover { filter: brightness(.98); box-shadow: var(--shadow-sm); text-decoration: none; border-color: #cfd6e4; }
.btn-accent { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 2px 6px rgba(79, 70, 229, .3); }
.btn-accent:hover { filter: brightness(1.05); box-shadow: 0 4px 10px rgba(79, 70, 229, .4); }
.btn-blue { background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: transparent; color: #fff; }
.btn-danger { background: linear-gradient(180deg, #ef4444, #dc2626); border-color: transparent; color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-dim); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Регион-селектор ---------- */
.region-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 7px 14px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.region-btn:hover { border-color: var(--accent-2); color: var(--accent); }
.region-flag { font-size: 16px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 8vh 16px 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 560px; max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-close { margin-left: auto; background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-search { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.modal-search input {
  width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 14px; outline: none;
}
.modal-search input:focus { border-color: var(--accent-2); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.region-list { overflow-y: auto; padding: 8px; }
.region-list .group-label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); padding: 10px 12px 4px; font-weight: 700; }
.region-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--text); font-size: 14px; }
.region-item:hover { background: var(--surface-2); text-decoration: none; }
.region-item.current { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* ---------- Герой ---------- */
.hero {
  background:
    radial-gradient(600px 220px at 15% -20%, rgba(99, 102, 241, .16), transparent 60%),
    radial-gradient(700px 260px at 85% -30%, rgba(59, 130, 246, .14), transparent 60%),
    linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
  text-align: center;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4.5vw, 42px); color: var(--text); letter-spacing: -.03em; }
.hero p { margin: 0 auto; max-width: 640px; color: var(--text-dim); font-size: 16.5px; }

/* ---------- Карточки товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d2f7; }
.card-cover {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe); color: var(--accent);
  font-size: 44px; font-weight: 900; overflow: hidden;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--text); }
.card-body .sub { color: var(--text-dim); font-size: 13.5px; margin-bottom: 14px; flex: 1; }
.card-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 21px; font-weight: 800; color: var(--text); }
.price .cur { color: var(--accent); }

/* ---------- Страница товара ---------- */
.product-top { display: grid; grid-template-columns: 360px 1fr; gap: 30px; margin-top: 24px; }
@media (max-width: 820px) { .product-top { grid-template-columns: 1fr; } }
.product-cover {
  border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden;
  aspect-ratio: 16/9; background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 900; color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: clamp(22px, 3vw, 30px); color: var(--text); margin: 0 0 10px; letter-spacing: -.02em; }
.product-desc { color: var(--text-dim); font-size: 15px; margin-bottom: 20px; }

.price-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.price-box .label { color: var(--text-dim); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.price-box .big { font-size: 32px; font-weight: 800; color: var(--text); }
.price-box .big .cur { color: var(--accent); }
.price-box .region-note { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

.region-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.region-table th, .region-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.region-table th { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.region-table tr.current-row { background: var(--accent-soft); }
.region-table tr.current-row td { color: var(--accent); font-weight: 700; }

/* ---------- Формы ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; max-width: 460px; margin: 32px auto; box-shadow: var(--shadow);
}
.form-card.wide { max-width: 640px; }
.form-card h2 { margin: 0 0 20px; font-size: 22px; color: var(--text); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-dim); font-weight: 600; }
.form-control {
  width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--accent-2); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
select.form-control { appearance: auto; }
.form-hint { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.steam-preview { margin-top: 8px; font-size: 13px; }

/* ---------- Flash ---------- */
.flash { max-width: 1180px; margin: 16px auto 0; padding: 0 20px; }
.flash-item { padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; font-size: 14px; border: 1px solid transparent; }
.flash-success { background: var(--green-soft); border-color: #bbf7d0; color: #166534; }
.flash-error { background: var(--red-soft); border-color: #fecaca; color: #991b1b; }
.flash-warning { background: var(--amber-soft); border-color: #fde68a; color: #92400e; }
.flash-info { background: var(--blue-soft); border-color: #bfdbfe; color: #1e40af; }

/* ---------- Таблицы ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px 12px; color: var(--text-dim); border-bottom: 1px solid var(--border); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: var(--surface-2); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-green { background: var(--green-soft); color: #15803d; }
.badge-red { background: var(--red-soft); color: #b91c1c; }
.badge-amber { background: var(--amber-soft); color: #a16207; }
.badge-blue { background: var(--blue-soft); color: #1d4ed8; }
.badge-gray { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }

/* ---------- Админка ---------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 20px; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-side { position: sticky; top: 84px; align-self: start; }
.admin-side .menu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow-sm); }
.admin-side .menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text-dim); font-size: 14px; font-weight: 600; }
.admin-side .menu a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.admin-side .menu a.active { background: var(--accent-soft); color: var(--accent); }
.admin-content { min-width: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 26px; font-weight: 800; color: var(--text); }
.stat .lbl { color: var(--text-dim); font-size: 13px; }

.page-head { display: flex; align-items: center; gap: 14px; margin: 24px 0 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 24px; color: var(--text); letter-spacing: -.02em; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.panel h3 { margin: 0 0 14px; color: var(--text); font-size: 16px; }
.panel code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }

/* ---------- Подвал ---------- */
footer { border-top: 1px solid var(--border); padding: 22px 0; color: var(--text-dim); font-size: 13px; margin-top: auto; background: var(--surface); }
footer .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }

/* ---------- Бейдж региона (вместо эмодзи-флагов) ---------- */
.rflag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 19px; padding: 0 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 10px; font-weight: 800; color: var(--text-dim);
  letter-spacing: .04em; vertical-align: middle; margin-right: 4px;
}

/* Контейнер внутри админки не дублирует отступы боковой навигации */
.admin-content .container { padding: 0; max-width: none; }

/* ---------- Каталог: сайдбар + поиск ---------- */
.catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; margin-top: 26px; }
@media (max-width: 860px) { .catalog-layout { grid-template-columns: 1fr; } }
.catalog-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.catalog-search { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.catalog-search input { background: var(--surface-2); }
.cat-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow-sm); }
.cat-list a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text-dim); font-size: 14px; font-weight: 600; }
.cat-list a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.cat-list a.active { background: var(--accent-soft); color: var(--accent); }
.catalog-head { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.catalog-head h2 { margin: 0; font-size: 20px; color: var(--text); }
.catalog-main .grid { margin-top: 16px; }

/* ---------- Карточка-ссылка ---------- */
.card-link { color: var(--text); text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card-link .card-body h3 { transition: color .15s; }
.card-link:hover .card-body h3 { color: var(--accent); }

/* ---------- Цена «от …» ---------- */
.price-from { font-size: 13px; font-weight: 700; color: var(--text-dim); vertical-align: middle; margin-right: 2px; }

/* ---------- Уведомление «уже куплено» ---------- */
.notice-paid {
  background: var(--green-soft); border: 1px solid #bbf7d0; color: #166534;
  border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 14px 0 0;
}
.notice-paid a { color: #15803d; font-weight: 700; }

/* ---------- Модалка подтверждения покупки ---------- */
.modal-small { max-width: 440px; }
.modal-body { padding: 18px 20px; font-size: 14.5px; color: var(--text); }
.modal-body p { margin: 0; }
.modal-foot { padding: 12px 20px 18px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); }

/* ---------- Видео и уникальное содержимое ---------- */
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #0f172a; margin-bottom: 12px; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.unique-content {
  background: var(--accent-soft); border: 1px dashed #c7d2fe; color: var(--text);
  border-radius: 12px; padding: 14px 16px; font-size: 15px; margin-bottom: 10px;
}

/* ---------- Отзывы ---------- */
.stars { white-space: nowrap; color: #f59e0b; letter-spacing: 2px; font-size: 15px; }
.star { color: #f59e0b; }
.star-off { color: #d8dee9; }
.star-half { background: linear-gradient(90deg, #f59e0b 50%, #d8dee9 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.star-input { display: flex; gap: 4px; font-size: 26px; }
.star-btn { background: none; border: none; cursor: pointer; color: #d8dee9; font-size: 26px; line-height: 1; padding: 2px; transition: color .12s, transform .12s; }
.star-btn:hover { transform: scale(1.15); }
.star-btn.on { color: #f59e0b; }
.review-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.review-item p { margin: 6px 0 0; font-size: 14.5px; color: var(--text); }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }

/* ---------- Поддержка ---------- */
.ticket-msg { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface-2); }
.ticket-msg p { margin: 6px 0 0; }
.ticket-msg.ticket-admin { background: var(--accent-soft); border-color: #c7d2fe; }
.ticket-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; color: var(--text); }
.ticket-row:hover { border-color: #c9d2f7; box-shadow: var(--shadow-sm); text-decoration: none; }

/* ---------- Чекбоксы категорий ---------- */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.check-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer; font-size: 14px; }
.check-item:hover { border-color: #c9d2f7; }
.check-item input { accent-color: var(--accent); }

/* ---------- Сайдбар каталога: поиск и категории ---------- */
.side-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.side-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); margin-bottom: 11px;
}
.side-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.catalog-search { background: none; border: none; box-shadow: none; padding: 0; }
.cat-nav { padding: 10px; }
.cat-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 11px; border-radius: 10px; color: var(--text-dim);
  font-size: 14px; font-weight: 600; margin-bottom: 2px; transition: background .12s, color .12s;
}
.cat-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.cat-nav a.active { background: var(--accent-soft); color: var(--accent); }
.cat-nav .cnt {
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px;
  padding: 1px 8px; min-width: 26px; text-align: center;
}
.cat-nav a.active .cnt { background: #fff; border-color: #c7d2fe; color: var(--accent); }

/* ---------- Подпись «Обучающий видеоматериал» в карточках ---------- */
.card-label {
  display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-dim); margin-bottom: 2px;
}
.card-body h3 { line-height: 1.3; }

/* ---------- Мои материалы (личный кабинет) ---------- */
.materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.material-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s, border-color .16s;
}
.material-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c9d2f7; text-decoration: none; }
.material-cover {
  aspect-ratio: 16/8; background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--accent); overflow: hidden;
}
.material-cover img { width: 100%; height: 100%; object-fit: cover; }
.material-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.material-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.material-title { font-size: 16px; color: var(--text); }
.material-meta { font-size: 12.5px; color: var(--text-dim); margin-bottom: 12px; }

/* ---------- Страница материала ---------- */
.material-photo {
  width: 100%; border-radius: 12px; border: 1px solid var(--border);
  margin-bottom: 12px; display: block; object-fit: cover; max-height: 380px;
}
.video-player {
  width: 100%; border-radius: 12px; background: #0f172a; margin-bottom: 12px;
  display: block; aspect-ratio: 16/9;
}
.material-desc {
  color: var(--text-dim); font-size: 14.5px; line-height: 1.6;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px;
}
.material-desc p { margin: 0 0 8px; }
.material-desc p:last-child { margin-bottom: 0; }

/* ---------- Разное ---------- */
.muted { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 12px; }
.empty { text-align: center; color: var(--text-dim); padding: 40px 16px; }
.nowrap { white-space: nowrap; }
.purchased-row { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface); }
.purchased-row .g { font-size: 26px; }
