body {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

.article-page {
  overflow-y: auto;
}

.articles-shell {
  width: min(calc(100% - 2rem), 62rem);
  min-height: 100dvh;
  margin-inline: auto;
  padding: clamp(2rem, 8vw, 5rem) 0;
}

.articles-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.articles-header a {
  width: fit-content;
  color: var(--color-red);
  font-family: var(--font-retro);
  font-weight: 700;
  text-transform: uppercase;
}

.articles-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.6vw, 3.45rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.articles-header p {
  max-width: 38rem;
  color: var(--color-muted);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  line-height: 1.55;
}

.articles-list {
  display: grid;
  counter-reset: article;
  gap: 0.8rem;
}

.articles-list article {
  position: relative;
  min-height: 0;
  padding: 1rem 1.05rem 1.05rem 4.25rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.52)),
    linear-gradient(90deg, rgba(215, 25, 32, 0.1), transparent 58%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 0 0 1px rgba(215, 25, 32, 0.16),
    0 0.9rem 2rem rgba(10, 10, 10, 0.045);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.articles-list article:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.66)),
    linear-gradient(90deg, rgba(215, 25, 32, 0.14), transparent 60%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 0 0 1px rgba(215, 25, 32, 0.28),
    0 1rem 2.2rem rgba(10, 10, 10, 0.065);
  transform: translateY(-1px);
}

.articles-list article::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  background: var(--color-red);
  opacity: 0.7;
}

.articles-list p {
  position: absolute;
  top: 0.95rem;
  left: 0.95rem;
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 1.85rem;
  margin: 0;
  border: 1px solid rgba(215, 25, 32, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-red);
  font-family: var(--font-retro);
  font-weight: 700;
  box-shadow: 0 0.5rem 1.2rem rgba(215, 25, 32, 0.08);
}

.articles-list h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.04rem, 2.6vw, 1.32rem);
  line-height: 1.18;
}

.articles-list h2 a {
  color: var(--color-text);
  text-decoration: none;
}

.articles-list h2 a:hover {
  color: var(--color-red);
}

.articles-list span {
  color: rgba(5, 5, 5, 0.82);
  font-size: clamp(0.96rem, 2.2vw, 1.08rem);
  line-height: 1.5;
}

.article-detail {
  width: min(calc(100% - 2rem), 58rem);
}

.article-detail .articles-header {
  margin-bottom: clamp(1.6rem, 4vw, 2.8rem);
}

.article-meta {
  color: var(--color-red) !important;
  font-family: var(--font-retro);
  font-size: 0.95rem !important;
  font-weight: 700;
  text-transform: uppercase;
}

.article-detail article {
  display: grid;
  gap: 0.9rem;
}

.article-detail h2 {
  margin-top: 1.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(215, 25, 32, 0.28);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.12;
}

.article-detail h3 {
  margin-top: 1.15rem;
  font-size: clamp(1.08rem, 2.5vw, 1.3rem);
  line-height: 1.25;
}

.article-detail p,
.article-detail li {
  max-width: 49rem;
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.article-detail a,
.articles-header p {
  overflow-wrap: anywhere;
}

.article-detail ul,
.article-detail ol {
  display: grid;
  gap: 0.38rem;
  padding-left: 1.4rem;
}

@media (min-width: 960px) {
  .article-detail .articles-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 49rem;
  }

  .article-detail .articles-header p:not(.article-meta) {
    max-width: 49rem;
    padding-top: 0;
    border-top: 0;
  }
}

.article-figure {
  margin: 1.2rem 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-figure figcaption {
  margin-top: 0.45rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.request-page {
  background:
    linear-gradient(rgba(215, 25, 32, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 25, 32, 0.018) 1px, transparent 1px),
    var(--color-bg);
  background-size: 4.8rem 4.8rem, 4.8rem 4.8rem, auto;
}

.request-page .article-detail {
  width: min(calc(100% - 2rem), 76rem);
  padding-block: clamp(1.5rem, 4vw, 3.2rem);
}

.request-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
  grid-template-areas:
    "topline visual"
    "copy visual";
  gap: clamp(1.1rem, 3vw, 2.4rem);
  align-items: center;
  min-height: clamp(22rem, 48vh, 31rem);
  margin-bottom: clamp(2rem, 5vw, 3.4rem) !important;
  padding: clamp(1.1rem, 3vw, 2.2rem);
  border: 1px solid rgba(215, 25, 32, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6)),
    linear-gradient(90deg, rgba(215, 25, 32, 0.08), transparent 60%);
  box-shadow: 0 1rem 2.6rem rgba(5, 5, 5, 0.055);
  overflow: hidden;
}

.request-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0.36rem;
  background: var(--color-red);
  opacity: 0.74;
}

.request-hero__topline {
  position: relative;
  z-index: 2;
  grid-area: topline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-self: start;
  align-items: center;
}

.request-hero__topline a,
.request-hero__topline .article-meta {
  margin: 0;
}

.request-hero__copy {
  position: relative;
  z-index: 2;
  grid-area: copy;
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  max-width: 47rem;
}

.request-page .request-hero h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.55rem, 4.9vw, 4.65rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.request-page .request-hero p:not(.article-meta) {
  max-width: 38rem;
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(215, 25, 32, 0.32);
  color: rgba(5, 5, 5, 0.76);
  font-size: clamp(1.06rem, 1.25vw, 1.2rem);
  line-height: 1.56;
}

.request-hero__visual {
  position: relative;
  z-index: 1;
  grid-area: visual;
  align-self: center;
  display: grid;
  place-items: end center;
  min-height: 16rem;
  margin: 0;
}

.request-hero__visual::before {
  content: "";
  position: absolute;
  inset: auto 50% 2rem auto;
  width: min(18rem, 70%);
  aspect-ratio: 1;
  border: 1px solid rgba(215, 25, 32, 0.3);
  background: rgba(215, 25, 32, 0.065);
  transform: translateX(50%) rotate(-4deg);
}

.request-hero__visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 18rem);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 1.2rem 1.8rem rgba(5, 5, 5, 0.14));
}

.request-page .article-detail article {
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.request-page .article-detail h2 {
  margin-top: clamp(1.3rem, 3vw, 2.4rem);
  padding-top: clamp(1rem, 2vw, 1.35rem);
}

.request-page .request-grid {
  gap: 1rem;
}

.request-page .request-grid section {
  min-height: 0;
  padding: clamp(1rem, 2vw, 1.3rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
    linear-gradient(90deg, rgba(215, 25, 32, 0.06), transparent 62%);
}

.request-page .request-grid section:first-child {
  grid-column: span 3;
}

.request-page .facts {
  max-width: 49rem;
}

.request-page .action-link {
  justify-self: start;
  margin-top: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(215, 25, 32, 0.45);
  color: var(--color-red);
  text-decoration: none;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.request-page .action-link:hover {
  background: var(--color-red);
  color: white;
  transform: translateY(-1px);
}

@media (min-width: 960px) {
  .request-page .article-detail .articles-header {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
  }

  .request-page .request-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .request-page .request-grid section {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .request-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topline"
      "copy"
      "visual";
    min-height: 0;
  }

  .request-page .request-hero h1 {
    max-width: 14ch;
    font-size: clamp(2.25rem, 11vw, 4.3rem);
  }

  .request-hero__visual {
    min-height: 11rem;
    place-items: center;
  }

  .request-hero__visual img {
    width: min(58vw, 13rem);
  }

  .request-page .request-grid,
  .request-page .facts,
  .request-page .faq-list {
    grid-template-columns: 1fr;
  }

  .request-page .request-grid section,
  .request-page .request-grid section:first-child {
    grid-column: auto;
  }
}

body.is-loading {
  overflow: hidden;
}

a {
  color: var(--color-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

a:hover {
  color: var(--color-red);
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 4px;
}

::selection {
  background: var(--color-red);
  color: white;
}

.not-found {
  position: relative;
  display: grid;
  min-height: 100dvh;
  padding: clamp(1rem, 3vw, 2.2rem);
  overflow: hidden;
  background:
    linear-gradient(rgba(215, 25, 32, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 25, 32, 0.02) 1px, transparent 1px),
    var(--color-bg);
  background-size: 4.8rem 4.8rem, 4.8rem 4.8rem, auto;
}

.not-found__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.not-found__top .brand__mark,
.not-found__top .telegram-link {
  position: static;
}

.not-found__content {
  align-self: center;
  justify-self: center;
  display: grid;
  gap: clamp(0.85rem, 1.8vw, 1.3rem);
  width: min(100%, 76rem);
  margin-top: clamp(2rem, 6vh, 4rem);
  justify-items: center;
}

.not-found__hero-line {
  display: flex;
  align-items: end;
  gap: clamp(0.5rem, 1.1vw, 1rem);
  justify-content: center;
  width: 100%;
}

.not-found h1 {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 10.5vw, 9.2rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
}

.not-found h1 span {
  color: var(--color-red);
}

.not-found__head-link {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: clamp(8.5rem, 15vw, 15rem);
  color: inherit;
  line-height: 0;
  transition: transform var(--ease);
}

.not-found__head-link::before {
  content: "";
  position: absolute;
  inset: 17% 17% 8%;
  z-index: 0;
  border: 1px solid rgba(215, 25, 32, 0.34);
  background: rgba(215, 25, 32, 0.08);
  transform: rotate(-5deg);
  transition: background var(--ease), transform var(--ease);
}

.not-found__head-link:hover {
  animation: not-found-wiggle 380ms ease-in-out;
}

.not-found__head-link:hover::before {
  background: rgba(215, 25, 32, 0.13);
  transform: rotate(-8deg) scale(1.04);
}

.not-found__head {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0.8rem 1.4rem rgba(0, 0, 0, 0.08));
  transform: translateY(0.1em);
}

.not-found__copy {
  display: grid;
  justify-items: center;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  padding-left: 0;
  text-align: center;
}

.not-found p {
  max-width: 36rem;
  color: var(--color-text);
  font-size: clamp(1.35rem, 3vw, 2.5rem);
  line-height: 1.18;
}

.not-found p span {
  display: block;
}

.not-found a {
  color: var(--color-red);
  font-family: var(--font-retro);
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--ease), transform var(--ease);
}

.not-found a:hover {
  color: var(--color-text);
  transform: translateY(-1px);
}

@keyframes not-found-wiggle {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-2px) rotate(-1deg);
  }
  55% {
    transform: translateX(2px) rotate(1deg);
  }
  80% {
    transform: translateX(-1px) rotate(-0.5deg);
  }
}

@media (max-width: 760px) {
  .not-found {
    overflow-y: auto;
    background-size: 3.6rem 3.6rem, 3.6rem 3.6rem, auto;
  }

  .not-found__top .brand__mark {
    width: clamp(5.7rem, 31vw, 6.8rem);
  }

  .not-found__top .telegram-link {
    width: clamp(6rem, 32vw, 7rem);
  }

  .not-found__content {
    justify-items: center;
    text-align: center;
  }

  .not-found__hero-line {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
  }

  .not-found__head-link {
    width: min(52vw, 13rem);
  }

  .not-found__copy {
    justify-items: center;
    padding-left: 0;
  }
}
