:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-soft: #f9fafc;
  --text: #1d2633;
  --muted: #687283;
  --line: #e0e6ef;
  --accent: #1e87f0;
  --accent-dark: #0f5eb8;
  --ok: #1db36b;
  --shadow: 0 10px 30px rgba(30, 39, 55, 0.08);
}

body.dark {
  color-scheme: dark;
  --bg: #151922;
  --surface: #202633;
  --surface-soft: #171c26;
  --text: #eef3fb;
  --muted: #a6b0c1;
  --line: #303847;
  --accent: #58a6ff;
  --accent-dark: #8bc0ff;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(260px, 640px) auto;
  gap: 22px;
  align-items: center;
  padding: 16px max(20px, calc((100vw - 1180px) / 2));
  background: #1374d8;
  color: #fff;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #fff;
  color: #1374d8;
  font-weight: 800;
  font-size: 26px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.search {
  display: flex;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.search input {
  width: 100%;
  border: 0;
  padding: 0 16px;
  font: inherit;
  outline: 0;
}

.search button,
.icon-button {
  width: 48px;
  border: 0;
  background: #0e5fb4;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  height: 42px;
  border-radius: 8px;
}

.login-link {
  color: #fff;
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tabs a,
.tabs button,
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tabs a.active,
.tabs button.active,
.tag.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  min-height: 164px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.thumb {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.placeholder {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1374d8, #1db36b);
  color: #fff;
  font-weight: 800;
  font-size: 28px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.card h2 a:hover,
.source-link:hover,
.back-link:hover {
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 4px 8px;
  color: var(--accent-dark);
  font-weight: 700;
}

.detail {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.detail-info h2 {
  margin: 14px 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.detail-info p,
.detail-body p {
  color: var(--muted);
  line-height: 1.65;
}

.detail-body {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.source-link {
  font-weight: 700;
  color: var(--accent-dark);
}

.panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.tag {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  text-align: left;
}

.category-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.category-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.category-list li:last-child {
  border-bottom: 0;
}

.home-layout {
  grid-template-columns: 338px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.home-layout .home-feed {
  grid-column: 2;
  grid-row: 1;
}

.home-layout .sidebar {
  grid-column: 1;
  grid-row: 1;
}

.home-feed .hero {
  align-items: center;
  margin: 22px 0 26px;
}

.home-feed .hero h1 {
  font-size: 30px;
  line-height: 1.2;
  color: #344052;
}

.home-feed .hero h1::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 22px;
  margin-right: 18px;
  border-radius: 2px;
  background: var(--line);
  vertical-align: -3px;
}

.category-intro {
  margin: 20px 0 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-intro h1 {
  max-width: none;
  font-size: 34px;
  line-height: 1.18;
  color: #253044;
}

.category-intro p:last-child {
  max-width: 860px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.home-layout .tabs {
  display: none;
}

.home-layout .cards {
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-layout .card {
  position: relative;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 92px;
  padding: 14px 290px 14px 34px;
  overflow: hidden;
  box-shadow: none;
}

.home-layout .card::before {
  content: "новое";
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 9px;
  border-radius: 0 0 8px 0;
  background: #62d4b1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-layout .thumb,
.home-layout .placeholder {
  width: 56px;
  height: 56px;
  margin: 8px auto 0;
  border-radius: 8px;
}

.home-layout .placeholder {
  font-size: 20px;
}

.home-layout .card h2 {
  margin-bottom: 5px;
  font-size: 15px;
}

.home-layout .card p {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-layout .meta {
  gap: 14px;
  margin-top: 8px;
}

.home-layout .meta span:nth-child(3) {
  position: absolute;
  right: 150px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 70px;
  text-align: center;
  color: #314052;
}

.home-layout .meta span:nth-child(4) {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 86px;
  text-align: right;
  color: #152235;
  font-weight: 700;
}

.home-layout .panel {
  padding: 16px;
  box-shadow: var(--shadow);
}

.home-layout .panel:first-child h2 {
  padding: 14px;
  border-radius: 0;
  background: linear-gradient(135deg, #2994ff, #2d62df);
  color: #fff;
  text-align: center;
}

.home-layout .tag {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 0;
  padding: 14px 10px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

.home-layout .tag.active {
  background: #eef6ff;
  color: var(--accent-dark);
}

.category-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.category-list a.active,
.category-list a:hover {
  color: var(--accent-dark);
}

.category-list em {
  min-width: 18px;
  height: 18px;
  border-radius: 2px;
  background: #d8d8d8;
  color: transparent;
  font-size: 0;
}

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: #2a75c7;
  font-weight: 700;
}

.breadcrumbs strong {
  color: #5e6876;
  font-weight: 700;
}

.sitemap-layout {
  grid-template-columns: 1fr;
}

.sitemap-page {
  max-width: 100%;
}

.sitemap-section {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.sitemap-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #172333;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sitemap-grid a,
.sitemap-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #273244;
  background: var(--surface-soft);
  font-weight: 700;
}

.sitemap-grid a:hover,
.sitemap-list a:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.sitemap-grid span {
  color: var(--muted);
  font-weight: 600;
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #182232;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(16, 28, 44, 0.05);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pagination a:hover,
.pagination a.active {
  border-color: transparent;
  background: linear-gradient(135deg, #2994ff, #2f63db);
  color: #fff;
  transform: translateY(-1px);
}

.footer {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.25fr) minmax(280px, 1fr);
  gap: 56px;
  margin-top: 46px;
  padding: 46px max(28px, calc((100vw - 1180px) / 2)) 28px;
  color: #c9d3e1;
  background: #0f1828;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer > div:first-child,
.footer > .footer-links {
  display: none;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.footer-column h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.footer-column a {
  color: #96a3b6;
  font-size: 14px;
  line-height: 1.45;
  transition: color 0.18s ease;
}

.footer-column a:hover {
  color: #fff;
}

.footer-brand-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px 16px;
  align-content: start;
  align-items: center;
  justify-self: end;
  max-width: 340px;
}

.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
}

.footer-brand-block strong {
  color: #fff;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.footer-brand-block p,
.footer-brand-block span {
  grid-column: 1 / -1;
  margin: 0;
  color: #96a3b6;
}

.footer-brand-block span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.footer-brand-block span::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #20bd84;
  box-shadow: 0 0 0 5px rgba(32, 189, 132, 0.12);
}

.footer-copy {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #657287;
  text-align: center;
  font-size: 13px;
}

.product-topbar {
  background: #162235;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 66px;
}

.product-topbar .brand-mark {
  background: #fff;
  color: #2377d9;
  border-radius: 50%;
}

.product-topbar .search {
  height: 38px;
  border-radius: 6px;
}

.platform-nav {
  display: flex;
  align-items: stretch;
  height: 66px;
  margin-left: auto;
}

.platform-nav > span,
.theme-pill {
  display: grid;
  place-items: center;
  min-width: 72px;
  padding: 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.theme-pill {
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  cursor: pointer;
}

.lang-link {
  display: grid;
  place-items: center;
  min-width: 48px;
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.lang-link.active {
  color: #fff;
  background: rgba(42, 145, 255, 0.22);
}

.language-menu {
  position: relative;
  display: flex;
  align-items: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.language-current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-current span,
.language-dropdown span {
  font-size: 24px;
  line-height: 1;
}

.language-current strong {
  font-size: 13px;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  display: none;
  width: 210px;
  padding: 6px 0;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 16px 36px rgba(13, 25, 42, 0.2);
}

.language-menu:hover .language-dropdown,
.language-menu:focus-within .language-dropdown {
  display: block;
}

.language-dropdown a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  color: #637083;
  font-weight: 700;
}

.language-dropdown a.active,
.language-dropdown a:hover {
  background: #2f83ee;
  color: #fff;
}

.language-dropdown em {
  font-style: normal;
}

.product-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.product-titlebar h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: #505866;
}

.product-titlebar span {
  color: var(--muted);
  font-size: 14px;
}

.product-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 30px;
}

.product-sidebar,
.product-content {
  display: grid;
  gap: 20px;
  align-content: start;
}

.download-panel,
.product-panel,
.screenshot-panel,
.article-panel,
.share-panel,
.comments-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.download-panel {
  padding: 22px;
  text-align: center;
}

.app-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 8px;
  object-fit: cover;
}

.file-size {
  margin-bottom: 14px;
  font-size: 44px;
  font-weight: 800;
  color: #132033;
}

.zip-note {
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid #efe8a8;
  background: #fffbd4;
  color: #6b6334;
}

.check-row {
  display: flex;
  justify-content: space-between;
  margin: 12px 10px 20px;
  color: var(--muted);
}

.download-button,
.setup-button,
.comments-panel button {
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #1bc47d, #0aa06e);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(14, 160, 110, 0.22);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-size: inherit;
  font-family: inherit;
}

/* Анимация при наведении */
.download-button:hover:not(:disabled),
.setup-button:hover:not(:disabled),
.comments-panel button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(14, 160, 110, 0.35);
  background: linear-gradient(135deg, #25d488, #12b374);
}

/* Активное состояние (клик) */
.download-button:active:not(:disabled),
.setup-button:active:not(:disabled),
.comments-panel button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(14, 160, 110, 0.25);
}

.download-button {
  width: 100%;
  padding: 15px;
  display: block;
  margin: 0;
  font-size: 1rem;
}

.download-panel small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.product-panel {
  padding: 20px;
}

.product-panel h2,
.comments-panel h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.detail-list strong {
  color: var(--muted);
  font-weight: 500;
  text-align: right;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #343b48;
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
}

.related-item:hover {
  color: var(--accent-dark);
  background: var(--surface-soft);
}

.related-item img,
.related-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.related-placeholder {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 800;
}

.screenshot-panel {
  padding: 20px;
  text-align: center;
}

.screenshot-panel img,
.large-placeholder {
  width: min(700px, 100%);
  max-height: 460px;
  object-fit: contain;
  border-radius: 4px;
}

.large-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  margin: auto;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 70px;
  font-weight: 800;
}

.setup-row {
  text-align: center;
}

.setup-button {
  padding: 14px 28px;
  background: linear-gradient(135deg, #2a91ff, #2f63db);
  box-shadow: 0 12px 22px rgba(47, 99, 219, 0.24);
}

.setup-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #3b9eff, #3b70e8);
  box-shadow: 0 16px 28px rgba(47, 99, 219, 0.35);
}

.setup-button:active:not(:disabled) {
  box-shadow: 0 8px 16px rgba(47, 99, 219, 0.25);
}

.article-panel,
.share-panel,
.comments-panel {
  padding: 24px;
}

.article-panel h2 {
  margin: 26px 0 8px;
  font-size: 26px;
  line-height: 1.2;
  color: #172333;
}

.article-panel h2:first-of-type {
  margin-top: 10px;
}

.section-mark {
  width: 64px;
  height: 3px;
  margin: 0 0 20px;
  background: linear-gradient(90deg, #2994ff, #7d58d8);
}

.article-panel p {
  margin: 0 0 9px;
  color: #5d6470;
  line-height: 1.65;
}

.article-panel .lead {
  margin-bottom: 20px;
}

.share-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.share-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  color: #172333;
}

.share-panel .section-mark {
  margin-bottom: 0;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 118px;
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(20, 35, 58, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.share-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.share-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 24px rgba(20, 35, 58, 0.2);
}

.share-facebook {
  background: #1877f2;
}

.share-x {
  background: #111827;
}

.comments-panel textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.comment-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.comment-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-card strong {
  color: var(--text);
}

.comment-card span {
  color: var(--muted);
  font-size: 12px;
}

.comment-card p {
  margin: 0;
  color: #4f5a69;
  line-height: 1.55;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form input:not([type="hidden"]) {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.comment-check {
  position: absolute;
  left: -9999px;
}

.comments-panel button {
  padding: 14px 24px;
  background: linear-gradient(135deg, #2a91ff, #2f63db);
}

.admin-page {
  width: min(1100px, calc(100% - 32px));
  margin: 36px auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.admin-header h1 {
  font-size: 34px;
}

.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-stats span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-card.approved {
  border-left-color: var(--ok);
}

.admin-card.rejected {
  border-left-color: #c94b4b;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.admin-card-head span,
.admin-card small {
  color: var(--muted);
}

.admin-card p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-actions button {
  border: 0;
  border-radius: 7px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* Отключённые кнопки скачивания */
.download-button:disabled,
.setup-button:disabled {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: 0 4px 6px rgba(107, 114, 128, 0.15);
  opacity: 0.6;
  transform: none !important;
}

.download-button:disabled:hover,
.setup-button:disabled:hover {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  box-shadow: 0 4px 6px rgba(107, 114, 128, 0.15);
  transform: none !important;
}

.download-button:disabled::before {
  content: '⚠ ';
}

@media (max-width: 900px) {
  .topbar,
  .layout {
    grid-template-columns: 1fr;
  }

  .home-layout .home-feed,
  .home-layout .sidebar {
    grid-column: 1;
    grid-row: auto;
  }

  .home-layout .sidebar {
    order: -1;
  }

  .home-layout .card {
    padding-right: 16px;
  }

  .home-layout .meta span:nth-child(3),
  .home-layout .meta span:nth-child(4) {
    position: static;
    transform: none;
    min-width: 0;
    text-align: left;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .sitemap-grid,
  .sitemap-list {
    grid-template-columns: 1fr;
  }

  .detail-head {
    grid-template-columns: 1fr;
  }

  .product-layout,
  .product-titlebar {
    grid-template-columns: 1fr;
  }

  .product-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .platform-nav {
    height: auto;
    flex-wrap: wrap;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-buttons {
    justify-content: flex-start;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 36px;
  }

  .footer-brand-block {
    justify-self: start;
  }

  .footer-brand-block strong {
    font-size: 32px;
  }
}

@media (max-width: 560px) {
  .card {
    grid-template-columns: 1fr;
  }

  .thumb,
  .placeholder {
    width: 100%;
    height: 140px;
  }
}
