*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--wc-font);
  color: var(--wc-text);
  background: var(--wc-bg-page);
  line-height: 1.6;
}
a { color: var(--wc-primary); text-decoration: none; }
a:hover { color: var(--wc-primary-deep); }
.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--wc-bg);
  border-bottom: 1px solid var(--wc-border);
  box-shadow: var(--wc-shadow);
}
.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
}
.site-logo__img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: min(280px, 46vw);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--wc-border);
  border-radius: var(--wc-radius);
  background: var(--wc-bg);
  font: inherit;
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem;
  color: var(--wc-text);
  font-weight: 500;
}
.site-nav__item.is-active .site-nav__link { color: var(--wc-primary); }
.site-nav__item.is-disabled .site-nav__link {
  color: var(--wc-text-muted);
  cursor: not-allowed;
}
.badge {
  font-size: 0.72rem;
  font-style: normal;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--wc-blue-2);
  color: var(--wc-blue-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.5rem;
  align-items: center;
  margin: 0 0 1.75rem;
  padding: 1.85rem 1.35rem 1.55rem 1.75rem;
  border-radius: 18px;
  background:
    radial-gradient(380px 200px at 94% 8%, rgba(0, 145, 255, 0.32), transparent 70%),
    radial-gradient(320px 220px at 76% 120%, rgba(143, 200, 255, 0.72), transparent 72%),
    linear-gradient(105deg, #ffffff 0%, #f5faff 55%, #e4f2ff 100%);
  box-shadow: 0 12px 32px rgba(0, 53, 159, 0.07);
  overflow: hidden;
}
.hero-combo {
  display: flex;
  align-items: stretch;
  min-height: 52px;
  background: #fff;
  border: 1px solid #d7e6f5;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 53, 159, 0.05);
  overflow: hidden;
}
.hero-combo__tag {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  border-right: 1px solid #e6eef6;
}
.hero-combo select {
  height: 100%;
  max-width: 8.5rem;
  padding: 0 1.8rem 0 0.95rem;
  border: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.2 1.4 6 6.2l4.8-4.8'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  appearance: none;
  color: var(--wc-text);
  font: inherit;
  cursor: pointer;
}
.hero-combo input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 0.95rem;
  font: inherit;
  background: transparent;
}
.hero-combo input:focus,
.hero-combo select:focus {
  outline: none;
}
.hero-combo:focus-within {
  border-color: var(--wc-primary);
  box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.16);
}
.hero-combo button {
  flex: 0 0 auto;
  margin: 6px;
  min-height: 40px;
  padding: 0 1.35rem;
  border-radius: 8px;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.hero-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.9rem;
  border: 1px solid #d7e6f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--wc-text);
  font-size: 0.88rem;
}
.hero-chips a:hover {
  border-color: var(--wc-primary);
  color: var(--wc-primary-deep);
  background: #fff;
}
.hero-banner__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  position: relative;
  z-index: 1;
}
.hero-banner__aside strong {
  margin-top: 0;
  color: #12315c;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.hero-banner__aside span {
  margin-top: 0.2rem;
  color: var(--wc-text-muted);
  font-size: 0.86rem;
}
.btn, .hero-combo button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: var(--wc-radius);
  background: var(--wc-primary);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
a.btn,
a.btn:hover,
a.btn:focus-visible,
.btn:hover,
.hero-combo button:hover {
  color: #fff;
}
.btn:hover, .hero-combo button:hover { background: var(--wc-primary-deep); }
.btn-primary { font-weight: 500; }
.hero-combo button {
  min-height: 40px;
  margin: 6px;
  padding: 0 1.35rem;
  border-radius: 8px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.75rem auto 0;
}
.pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border: 1px solid #d7e6f5;
  background: #fff;
  color: var(--wc-text);
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 53, 159, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pager__num {
  width: 2.25rem;
  border-radius: 999px;
}
.pager__step {
  padding: 0 0.95rem;
  border-radius: 999px;
  color: var(--wc-primary-deep);
}
.pager a:hover {
  border-color: var(--wc-primary);
  color: var(--wc-primary-deep);
  background: var(--wc-primary-soft);
}
.pager a.is-active,
.pager a.is-active:hover {
  background: var(--wc-primary);
  border-color: var(--wc-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 145, 255, 0.28);
}

.section { margin-top: 2rem; }
.section__title { font-size: 1.25rem; margin: 0 0 1rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tab {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--wc-bg);
  border: 1px solid var(--wc-border);
  color: var(--wc-text);
}
.tab.is-active {
  background: var(--wc-primary-soft);
  border-color: var(--wc-primary);
  color: var(--wc-primary-deep);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.app-card {
  background: var(--wc-bg);
  border-radius: 1.25rem;
  box-shadow: var(--wc-shadow);
  border: 1px solid var(--wc-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 53, 159, 0.12);
}
.app-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.app-card__media {
  aspect-ratio: 560 / 320;
  background: linear-gradient(145deg, #1a2744, #0b1220);
  overflow: hidden;
}
.app-card__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.app-card__body {
  padding: 1rem 1.15rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.app-card__name {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}
.app-card__tagline {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--wc-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.app-card__tag {
  display: inline-block;
  padding: 0.16rem 0.7rem;
  font-size: 0.8rem;
  line-height: 1.5;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
}
.app-card__tag--0 { color: #0f6f8a; border-color: #8fd0e0; }
.app-card__tag--1 { color: #9a5b12; border-color: #efc27a; }
.app-card__tag--2 { color: #3d4db8; border-color: #b7c0f5; }
.app-card__tag--3 { color: #7a4ea3; border-color: #d7b8ee; }
.app-card__tag--4 { color: #a33b55; border-color: #f0b3c0; }
.app-card__tag--5 { color: #1f7a62; border-color: #9ed9c8; }
.tab--0.is-active { color: #0f6f8a; border-color: #8fd0e0; background: #f3fbfd; }
.tab--1.is-active { color: #9a5b12; border-color: #efc27a; background: #fff8ee; }
.tab--2.is-active { color: #3d4db8; border-color: #b7c0f5; background: #f4f6ff; }
.tab--3.is-active { color: #7a4ea3; border-color: #d7b8ee; background: #faf5ff; }
.tab--4.is-active { color: #a33b55; border-color: #f0b3c0; background: #fff5f7; }
.tab--5.is-active { color: #1f7a62; border-color: #9ed9c8; background: #f3fbf8; }

.site-footer {
  margin-top: 3rem;
  background: var(--wc-footer-bg);
  color: var(--wc-footer-text);
}
.site-footer a { color: var(--wc-footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding: 2.5rem 1.25rem;
}
.site-footer h3 {
  margin: 0 0 0.85rem;
  color: var(--wc-footer-heading);
  font-size: 1rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin: 0.35rem 0; }
.site-footer .contacts .label {
  display: inline-block;
  min-width: 2.5rem;
  margin-right: 0.35rem;
  opacity: 0.85;
}
.site-footer__legal {
  text-align: center;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--wc-text-muted);
}
.crumb a { font-weight: 600; }
.crumb__sep { color: var(--wc-text-muted); }
.crumb__current { color: var(--wc-text); }

.detail__intro h1 {
  margin: 0 0 0.65rem;
  font-size: 1.75rem;
}
.detail__tagline {
  margin: 0.75rem 0 1rem;
  color: var(--wc-text-muted);
}
.detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: start;
}
.detail__main,
.detail__side {
  background: var(--wc-bg);
  border-radius: 16px;
  box-shadow: var(--wc-shadow);
}
.detail__main { padding: 1.25rem 1.25rem 1.75rem; }
.detail__banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 560 / 320;
  background: var(--wc-blue-1);
}
.detail__overview h2,
.detail__side-title {
  margin: 1rem 0 0.75rem;
  font-size: 1.15rem;
}
.prose p { margin: 0 0 0.85rem; }
.prose p:last-child { margin-bottom: 0; }
.detail__side {
  padding: 0.35rem 1rem 1rem;
  position: sticky;
  top: 5.5rem;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.related-card {
  display: block;
  color: inherit;
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.related-card:hover { color: inherit; border-color: var(--wc-blue-3); }
.related-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 320;
  object-fit: cover;
  background: var(--wc-blue-1);
}
.related-card__body { padding: 0.75rem 0.85rem 0.9rem; }
.related-card h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.related-card p {
  margin: 0 0 0.55rem;
  color: var(--wc-text-muted);
  font-size: 0.86rem;
}
.related-empty {
  margin: 0 0 1rem;
  color: var(--wc-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail__layout { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .hero-banner { grid-template-columns: 1fr; padding: 1.25rem 1rem 1.15rem; }
  .hero-banner__aside { align-items: flex-start; text-align: left; }
  .hero-combo { flex-wrap: wrap; }
  .hero-combo__tag { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid #e6eef6; }
  .hero-combo select { width: 100%; max-width: none; min-height: 44px; }
  .hero-combo input { flex: 1 1 auto; min-height: 44px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--wc-bg);
    border-bottom: 1px solid var(--wc-border);
    padding: 0.75rem 1.25rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; margin-left: 0; }
  .site-header { position: sticky; }
  .site-header__inner { flex-wrap: wrap; position: relative; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .app-grid { grid-template-columns: 1fr; }
  .page { padding-left: 1rem; padding-right: 1rem; }
}