:root {
  --pages-max-width: min(100% - clamp(1rem, 0.4rem + 2.6vw, 2.5rem), 72rem);
  --pages-surface: rgba(255, 255, 255, 0.86);
  --pages-surface-strong: rgba(10, 20, 40, 0.92);
  --pages-border: rgba(10, 20, 40, 0.12);
  --pages-border-strong: rgba(10, 20, 40, 0.2);
  --pages-text: rgba(10, 20, 40, 0.92);
  --pages-text-soft: rgba(10, 20, 40, 0.72);
  --pages-text-on-dark: rgba(255, 255, 255, 0.92);
  --pages-title: rgba(10, 20, 40, 0.92);
  --pages-accent: #2f67ff;
  --pages-accent-strong: rgba(132, 204, 255, 0.95);
  --pages-shadow: 0 18px 48px rgba(10, 20, 40, 0.14);
}

body {
  background: radial-gradient(900px 560px at 12% -10%, rgba(47, 103, 255, 0.14), transparent 60%),
    radial-gradient(900px 560px at 88% 0%, rgba(132, 204, 255, 0.18), transparent 55%), #f6f7fb;
}

.page-content {
  width: var(--pages-max-width);
  margin: 0 auto;
  padding: clamp(1.4rem, 2.4vw, 2.2rem) 0 clamp(3rem, 6vw, 4.75rem);
}

.page-content section {
  margin-bottom: clamp(1.4rem, 3vw, 2.35rem);
}

.page-content section:last-of-type {
  margin-bottom: 0;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  margin: 0 0 0.8rem;
  color: var(--pages-title);
  letter-spacing: -0.02em;
}

.page-content h1 {
  font-size: clamp(2rem, 1.75rem + 1vw, 3rem);
  line-height: 1.05;
}

.page-content h2 {
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 2.1rem);
  line-height: 1.18;
}

.page-content h3 {
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.4rem);
  line-height: 1.3;
}

.page-content h4 {
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.2rem);
  line-height: 1.35;
}

.page-content p,
.page-content li,
.page-content td,
.page-content th {
  color: var(--pages-text);
  font-size: clamp(0.98rem, 0.94rem + 0.15vw, 1.05rem);
  line-height: 1.72;
}

.page-content p {
  margin: 0 0 0.95rem;
}

.page-content p:last-child,
.page-content li p:last-child,
.page-content td p:last-child,
.page-content th p:last-child {
  margin-bottom: 0;
}

.page-content strong {
  color: var(--pages-title);
}

.page-content a {
  color: var(--pages-accent);
  text-decoration: underline;
  text-decoration-color: rgba(47, 103, 255, 0.28);
  text-underline-offset: 0.18em;
}

.page-content a:hover,
.page-content a:focus-visible {
  text-decoration-color: rgba(47, 103, 255, 0.64);
}

.page-content code {
  padding: 0.08rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(47, 103, 255, 0.08);
  color: var(--pages-title);
}

.article-card,
.article-highlight,
.spoiler,
figure.article-table-wrap {
  border: 1px solid var(--pages-border);
  border-radius: 1.25rem;
  box-shadow: var(--pages-shadow);
}

.article-card,
.article-highlight {
  margin: 1.1rem 0 1.35rem;
  padding: 1rem 1.1rem;
  background: rgba(10, 20, 40, 0.03);
}

.article-highlight {
  background: linear-gradient(135deg, rgba(47, 103, 255, 0.08), rgba(132, 204, 255, 0.08));
  border-color: rgba(47, 103, 255, 0.16);
}

.article-media {
  margin: 1.15rem 0 1.4rem;
  text-align: center;
}

.article-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 0.95rem;
  margin: 0 auto;
}

.article-banner {
  margin: 1.15rem 0 1.4rem;
}

.article-banner-inner {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(10, 20, 40, 0.1);
  box-shadow: var(--pages-shadow);
  background: rgba(10, 20, 40, 0.06);
}

.article-banner-img {
  width: 100%;
  height: clamp(220px, 28vw, 360px);
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

.article-banner-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.7rem;
  padding: clamp(16px, 2.4vw, 22px);
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.58), rgba(10, 20, 40, 0.72));
  text-align: center;
}

.page-content p.article-banner-title,
.page-content .article-banner-title {
  margin: 0;
  color: #ffffff;
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.35rem);
  line-height: 1.12;
  text-shadow: 0 10px 26px rgba(10, 20, 40, 0.4);
}

.page-content p.article-banner-subtitle,
.page-content .article-banner-subtitle {
  margin: 0;
  color: #ffffff;
  max-width: 58ch;
  font-size: clamp(1rem, 0.92rem + 0.3vw, 1.15rem);
  text-shadow: 0 10px 26px rgba(10, 20, 40, 0.4);
}

.article-banner-title,
.article-banner-subtitle,
.cta-breathe {
  z-index: 1;
}

.article-banner-overlay::before {
  content: "";
  position: absolute;
  inset: auto;
  width: min(860px, calc(100% - 24px));
  height: auto;
  padding: 0;
  border-radius: 18px;
  background: rgba(10, 20, 40, 0.42);
  box-shadow: 0 22px 60px rgba(10, 20, 40, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.article-banner-overlay > * {
  position: relative;
}

.cta-breathe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(10, 20, 40, 0.96);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 22px 60px rgba(10, 20, 40, 0.22);
  width: min(320px, 100%);
  animation: cta-breathe 1.8s ease-in-out infinite;
  transform-origin: center;
  text-decoration: none !important;
}

.cta-breathe:hover {
  filter: brightness(1.03);
}

@keyframes cta-breathe {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 22px 60px rgba(10, 20, 40, 0.22);
  }
  50% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 26px 74px rgba(10, 20, 40, 0.26);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 22px 60px rgba(10, 20, 40, 0.22);
  }
}

.article-media figcaption {
  margin-top: 0.7rem;
  color: var(--pages-text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.article-side-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: start;
}

.article-side-layout > * {
  min-width: 0;
}

.article-side-layout .article-media {
  margin: 0;
}

.article-side-layout .article-media img {
  width: 100%;
  max-width: 100%;
}

.article-side-sticky {
  position: sticky;
  top: 18px;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1.15rem;
}

.page-content ul {
  padding-left: 0;
  list-style: none;
}

.page-content ul li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.35rem;
}

.page-content ul li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pages-accent), var(--pages-accent-strong));
  transform: translateY(-50%);
}

.page-content ol {
  padding-left: 1.35rem;
}

.page-content ol li {
  margin-bottom: 0.55rem;
  padding-left: 0.15rem;
}

.page-content ul ul,
.page-content ul ol,
.page-content ol ul,
.page-content ol ol {
  margin-top: 0.75rem;
  margin-bottom: 0.3rem;
}

figure.article-table-wrap {
  display: block;
  width: 100%;
  margin: 1.15rem 0 1.4rem;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.92);
  -webkit-overflow-scrolling: touch;
}

figure.article-table-wrap table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}

figure.article-table-wrap th,
figure.article-table-wrap td {
  padding: 0.85rem 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(10, 20, 40, 0.09);
}

figure.article-table-wrap th {
  color: var(--pages-title);
  font-weight: 800;
  white-space: nowrap;
  background: rgba(47, 103, 255, 0.07);
}

figure.article-table-wrap tbody tr:last-child td {
  border-bottom: none;
}

figure.article-table-wrap tbody tr:hover td {
  background: rgba(10, 20, 40, 0.02);
}

.block-image.block-image--auto {
  margin: 0;
}

.faq-group {
  display: grid;
  gap: 0.7rem;
}

.spoiler {
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.92) 0%, rgba(10, 20, 40, 0.86) 100%);
  border-color: rgba(10, 20, 40, 0.08);
  overflow: hidden;
}

p.spoiler-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.95rem 1.05rem;
  color: var(--pages-text-on-dark);
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

p.spoiler-toggle::after {
  content: "+";
  flex: 0 0 auto;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.spoiler.active p.spoiler-toggle::after {
  content: "−";
}

p.spoiler-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: -2px;
}

.spoiler-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.05rem;
  background: rgba(255, 255, 255, 0.96);
  transition: max-height 220ms ease, padding 220ms ease;
}

.spoiler-content p,
.spoiler-content li {
  color: var(--pages-text);
}

@media (max-width: 900px) {
  .page-content {
    width: min(100% - 1rem, 100%);
    padding-top: 1rem;
  }

  .article-card,
  .article-highlight,
  .spoiler,
  figure.article-table-wrap {
    border-radius: 1rem;
  }

  figure.article-table-wrap table {
    min-width: 30rem;
  }

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

  .article-side-sticky {
    position: static;
  }
}
