@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-cyrillic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-cyrillic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-cyrillic-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-cyrillic-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0c0f;
  --yellow: #fed301;
  --pink: #fe2d7a;
  --text: #ffffff;
  --muted: #c4c4c6;
  --line: #2a2b30;
  --max: 1120px;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text);
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--yellow);
  color: var(--bg);
  padding: 8px 12px;
  font-weight: 700;
  z-index: 20;
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--text);
}

.mark:hover {
  color: var(--text);
}

.mark .bang {
  color: var(--pink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--yellow);
  color: var(--bg);
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  cursor: pointer;
}

.btn:hover {
  background: #ffe45a;
  border-color: #ffe45a;
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.header-cta {
  flex-shrink: 0;
}

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: center;
}

.rule {
  display: block;
  width: 96px;
  height: 8px;
  background: var(--yellow);
  margin-bottom: 28px;
}

h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 16px;
  line-height: 1.12;
}

h1 {
  font-size: clamp(36px, 4.05vw, 58px);
}

.nowrap {
  white-space: nowrap;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 38ch;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.caption {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.funnel {
  width: min(320px, 100%);
}

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-end;
  gap: 8px;
}

.qr-block img {
  width: 144px;
  height: 144px;
  border-radius: var(--radius);
}

.qr-block figcaption {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.section {
  padding: 64px 0;
}

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

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.post:hover {
  border-color: var(--yellow);
  color: inherit;
}

.post:hover h3 {
  color: var(--yellow);
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--yellow);
  padding: 4px 8px;
  border-radius: 4px;
}

.post h3 {
  font-size: 22px;
  margin: 0;
}

.post p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  flex: 1;
}

.post .more {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.post:hover .more {
  color: var(--yellow);
}

.note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.rubrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rubric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 160px;
  padding: 24px;
  border-top: 8px solid var(--yellow);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  color: inherit;
}

.rubric:hover {
  color: inherit;
  background: #141518;
}

.rubric h3 {
  font-size: 24px;
  margin: 0;
}

.rubric p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-grid p {
  color: var(--muted);
  margin: 0 0 16px;
}

.about-grid p:last-child {
  margin-bottom: 0;
}

.cta {
  background: var(--yellow);
  color: var(--bg);
}

.cta .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

.cta h2,
.cta p {
  color: var(--bg);
}

.cta p {
  margin: 0;
  max-width: 46ch;
  font-weight: 600;
}

.cta .btn {
  background: var(--bg);
  color: var(--yellow);
  border-color: var(--bg);
}

.cta .btn:hover {
  background: #1a1b20;
  color: var(--yellow);
  border-color: #1a1b20;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 32px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--yellow);
}

.need-url {
  border-bottom: 1px dashed var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .cta .wrap {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    min-height: 0;
    justify-content: center;
  }

  .funnel {
    width: min(260px, 70%);
    margin: 0 auto;
  }


}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    display: flex;
    order: 3;
    width: 100%;
    gap: 20px;
    padding: 0 0 12px;
  }

  .header-cta .btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .qr-block {
    display: none;
  }

  .funnel {
    width: 168px;
  }

  .posts,
  .rubrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

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

  .lead {
    font-size: 18px;
  }
}

[data-link][hidden] {
  display: none !important;
}

.page-hero {
  padding: 56px 0 8px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--yellow);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.filter {
  min-height: 40px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.filter:hover,
.filter[aria-pressed="true"] {
  background: var(--yellow);
  color: var(--bg);
  border-color: var(--yellow);
}

.empty {
  display: none;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty.is-visible,
.empty:not([hidden]) {
  display: block;
}

.empty[hidden] {
  display: none;
}

.empty p {
  margin: 0 0 20px;
  color: var(--muted);
}

.article {
  max-width: 720px;
}

.article p,
.article li {
  color: var(--muted);
}

.article ul {
  padding-left: 1.25em;
}

.article h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 36px 0 12px;
}

.article pre,
.article code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.article pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #141518;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

h1 {
  overflow-wrap: break-word;
}

.article h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.article a {
  color: var(--text);
}

.article a:hover {
  color: var(--yellow);
}

.article ol {
  padding-left: 1.25em;
}

.article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

.article p:last-child,
.article ul:last-child,
.article ol:last-child {
  margin-bottom: 0;
}


.subscribe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: 48px;
  align-items: center;
}

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


.article-cover {
  margin: 32px 0 0;
  max-width: 880px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.post-cover {
  display: block;
  width: 100%;
  margin: 0 0 4px;
}

.post-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 720;
  object-fit: cover;
  border-radius: 4px;
}

.nw {
  white-space: nowrap;
}
