*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--dom-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--dom-text);
  background: var(--dom-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .22;
  background-image: radial-gradient(circle, rgba(23,21,28,.12) .7px, transparent .8px);
  background-size: 12px 12px;
  mask-image: linear-gradient(to bottom, #000, transparent 44%);
}
img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button, input { font: inherit; }
button { color: inherit; touch-action: manipulation; }
ul, ol, p, h1, h2, h3 { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(0, 143, 104, .34);
  outline-offset: 2px;
}
.dom-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--dom-radius-sm);
  color: #fff;
  background: var(--dom-text);
  transform: translateY(-160%);
}
.dom-skip:focus { transform: translateY(0); }

.dom-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--dom-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 12px rgba(23, 21, 28, .05);
}
.dom-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: var(--dom-page);
  min-height: var(--dom-header-h);
  margin: 0 auto;
  padding: 0 10px;
}
.dom-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.04em;
}
.dom-logo__mark {
  position: relative;
  flex: 0 0 25px;
  width: 25px;
  height: 21px;
  margin-right: 7px;
  border: 3px solid var(--dom-text);
  border-radius: 50% 46% 48% 42%;
  background: var(--dom-accent);
  transform: rotate(-7deg);
}
.dom-logo__mark::after {
  position: absolute;
  left: 1px;
  bottom: -7px;
  width: 8px;
  height: 9px;
  content: "";
  border-left: 3px solid var(--dom-text);
  background: var(--dom-accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.dom-logo__text {
  overflow: hidden;
  max-width: 11em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dom-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: var(--dom-tap);
  min-height: var(--dom-tap);
  padding: 0 10px;
  border: 1px solid var(--dom-line);
  border-radius: 999px;
  color: var(--dom-text);
  background: var(--dom-surface-soft);
}
.dom-search__icon {
  position: relative;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.dom-search__icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}
.dom-search__text { margin-left: 2px; font-size: 12px; font-weight: 750; }
.dom-nav {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  min-width: 0;
}
.dom-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--dom-tap);
  padding: 0 3px;
  color: var(--dom-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.dom-nav a::after {
  position: absolute;
  right: 22%;
  bottom: 3px;
  left: 22%;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: transparent;
}
.dom-nav a.is-active { color: var(--dom-primary); }
.dom-nav a.is-active::after { background: var(--dom-primary-bright); }

.dom-main { width: 100%; max-width: var(--dom-page); margin: 0 auto; padding: 10px; }
.dom-bc {
  overflow: hidden;
  margin-bottom: 9px;
  color: var(--dom-muted);
  white-space: nowrap;
}
.dom-bc__list { display: flex; align-items: center; overflow: hidden; font-size: 12px; }
.dom-bc__item { display: flex; align-items: center; min-width: 0; }
.dom-bc__item:not(:last-child)::after { margin: 0 5px; content: "/"; color: #aaa2ab; }
.dom-bc__link { color: var(--dom-primary); }
.dom-bc__current { overflow: hidden; text-overflow: ellipsis; }

.dom-section { margin: 12px 0 18px; content-visibility: auto; contain-intrinsic-size: 420px; }
.dom-section:first-child { content-visibility: visible; contain-intrinsic-size: auto; }
.dom-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 7px;
}
.dom-section__head h1, .dom-section__head h2 {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: -.02em;
}
.dom-section__head h1::before, .dom-section__head h2::before {
  flex: 0 0 5px;
  width: 5px;
  height: 17px;
  margin-right: 7px;
  content: "";
  border-radius: 5px;
  background: linear-gradient(var(--dom-primary-bright) 0 55%, var(--dom-accent) 55%);
}
.dom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 8px; }
.dom-card { min-width: 0; }
.dom-card__cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(23, 21, 28, .1);
  border-radius: var(--dom-radius-sm);
  background: var(--dom-surface-soft) url('/static/dom/img/loading-cover.jpg') center / cover no-repeat;
  box-shadow: 0 3px 10px rgba(23, 21, 28, .08);
}
.dom-card__cover::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32);
}
.dom-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.dom-card__badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  overflow: hidden;
  padding: 3px 5px;
  border-radius: 5px;
  color: #fff;
  background: rgba(23, 21, 28, .82);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dom-card__title {
  overflow: hidden;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 760;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dom-card__title a { display: block; overflow: hidden; text-overflow: ellipsis; }
.dom-card__meta { overflow: hidden; color: var(--dom-muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }

.dom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--dom-tap);
  padding: 0 14px;
  border: 1px solid var(--dom-line);
  border-radius: 999px;
  color: var(--dom-text);
  background: var(--dom-surface);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}
.dom-btn--primary { border-color: var(--dom-primary); color: #fff; background: var(--dom-primary); }
.dom-muted { color: var(--dom-muted); font-weight: 400; font-size: 12px; }
.dom-ad:empty { display: none; }
.dom-ad { overflow: hidden; max-width: 100%; margin: 10px 0; }
.dom-links { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; }
.dom-links a { color: var(--dom-primary); }
.dom-footer {
  max-width: var(--dom-page);
  margin: 10px auto 0;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--dom-line);
  color: var(--dom-muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
}
.dom-footer__legal { max-width: 34em; margin: 0 auto 3px; }
.dom-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-bottom: 5px; }
.dom-footer__nav a { min-height: 24px; color: var(--dom-primary); font-size: 12px; }
.dom-more { display: inline-flex; align-items: center; min-height: 34px; padding: 0 4px 0 10px; color: var(--dom-primary); font-size: 12px; font-weight: 750; }
.dom-more::after { margin-left: 3px; content: "›"; font-size: 18px; line-height: 1; }
.dom-tabbar { display: none !important; }
.dom-visually-hidden {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 339px) {
  .dom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dom-logo__text { max-width: 7em; }
  .dom-search__text { display: none; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .dom-header { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .dom-header, .dom-footer, .dom-ad { display: none !important; }
  .dom-main { max-width: none; padding: 0; }
}
