/* «Реклама и сотрудничество» (/reklama): a landing page of its own inside the site's shared header and
   footer. Everything is scoped under .rk; the two :has rules only let this page use the full width. */
main.detail-page:has(.rk) {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

body:has(.rk) {
  background: #F6F8F7;
}

html[data-theme="dark"] body:has(.rk) {
  background: var(--page, #101317);
}

.rk {
  font-family: var(--font-sans, Inter, system-ui, sans-serif);
  color: var(--ink, #303733);
  background: radial-gradient(1200px 520px at 88% 0, rgba(31, 77, 58, .06), transparent 62%);
  overflow-x: clip;
}

.rk-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

.rk * {
  box-sizing: border-box;
}

/* :where keeps the reset weightless, so every margin set below wins over it */
:where(.rk) :where(h1, h2, h3, p, ul, figure) {
  margin: 0;
}

.rk-hero {
  /* 2026-10-12, the owner: calmer - an editorial page of a data platform, not a selling banner.
     Lower, a lighter veil (dark only where the text is, the photograph almost natural on the right). */
  min-height: clamp(340px, 26vw, 392px);
  display: flex;
  align-items: center;
  padding: 32px 0 34px;
  color: #fff;
  background: linear-gradient(90deg, rgba(15, 30, 25, .80) 0%, rgba(15, 30, 25, .58) 36%, rgba(15, 30, 25, .14) 68%, rgba(15, 30, 25, 0) 100%), url("/static/img/hero-home-ridge.webp") center right / cover no-repeat;
  background-color: #2b3b34;
}

.rk-hero > .rk-wrap {
  width: 100%;
}

.rk-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 12px;
}

.rk .rk-hero h1 {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-weight: 700;
  font-size: clamp(30px, 3.06vw, 44px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: #fff;
  max-width: 760px;
  text-wrap: balance;
}

.rk-lead {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
  max-width: 520px;
  margin-top: 14px;
}

.rk-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.rk-hero-facts {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .64);
  margin-top: 16px;
}

.rk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font: 600 15px/1 var(--font-sans, Inter, system-ui, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s, opacity .15s, background-color .15s;
  cursor: pointer;
}

.rk-btn--light {
  background: #fff;
  color: #17392B;
}

.rk-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

.rk-btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
}

.rk-btn--primary {
  background: var(--brand-primary, #1F4D3A);
  color: #fff;
}

.rk-btn--secondary {
  background: var(--surface, #fff);
  border-color: var(--border, #DBE4DF);
  color: var(--ink-strong, #18231E);
}

.rk-btn:hover {
  transform: translateY(-1px);
}

.rk-btn:focus-visible {
  outline: 2px solid var(--brand-primary, #1F4D3A);
  outline-offset: 3px;
}

.rk-btn--light:focus-visible,
.rk-btn--ghost:focus-visible,
.rk-btn--primary:focus-visible {
  outline-color: #fff;
}

.rk a.rk-btn--light {
  color: #17392B;
}

.rk a.rk-btn--ghost {
  color: #fff;
}

.rk a.rk-btn--primary {
  color: #fff;
}

.rk a.rk-btn--secondary {
  color: var(--ink-strong, #18231E);
}

.rk-contact {
  padding-top: 22px;
}

.rk-contact-card {
  border-bottom: 1px solid var(--border, #DBE4DF);
  padding: 0 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 30px;
}

.rk-contact-cells {
  display: flex;
  gap: 30px;
}

.rk-contact-cell span {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2, #6B716D);
}

.rk-contact-cell strong {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-strong, #18231E);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.rk-contact-note {
  font-size: 14px;
  color: var(--ink-2, #6B716D);
}

.rk-contact-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rk-contact-actions .rk-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
}

.rk-hero .rk-btn {
  min-height: 44px;
  padding: 0 20px;
}

.rk-section {
  padding: clamp(48px, 6vw, 84px) 0 0;
}

.rk h2 {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.15;
  color: var(--ink-strong, #18231E);
  margin-bottom: 28px;
  letter-spacing: -.01em;
}

.rk h3 {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-strong, #18231E);
}

.rk-section p {
  font-size: 15.5px;
  line-height: 1.6;
}

.rk-muted {
  color: var(--ink-2, #6B716D);
}

.rk a:not(.rk-btn) {
  color: var(--brand-primary, #1F4D3A);
  text-underline-offset: 3px;
}

.rk-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rk-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #DBE4DF);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(31, 77, 58, .06);
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rk-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-primary-soft, #EDF3EF);
  color: var(--brand-primary, #1F4D3A);
  margin-bottom: 6px;
}

.rk-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;                 /* line icons: the stroke draws them */
}

.rk-split > .rk-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
}

.rk-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand-primary, #1F4D3A);
  margin-bottom: 12px;
}

.rk-split-text p:not(.rk-kicker) {
  margin-bottom: 14px;
}

.rk-ticks {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 9px;
}

.rk-ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-strong, #18231E);
}

.rk-ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--brand-primary, #1F4D3A);
  border-bottom: 2px solid var(--brand-primary, #1F4D3A);
  transform: rotate(45deg);
}

.rk-link-row {
  margin-top: 22px;
  font-weight: 600;
}

.rk-shot {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #DBE4DF);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 18px 48px rgba(31, 77, 58, .12);
}

.rk-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
  border: 1px solid var(--border, #DBE4DF);
}

.rk-shot figcaption {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2, #6B716D);
  padding: 10px 0 4px;
}

.rk-data {
  padding: clamp(44px, 5vw, 64px) 0 0;
}

.rk-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface, #fff);
  border: 1px solid var(--border, #DBE4DF);
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(31, 77, 58, .06);
}

.rk-stat {
  padding: 30px 24px;
  text-align: center;
  border-left: 1px solid var(--border, #DBE4DF);
}

.rk-stat:first-child {
  border-left: 0;
}

.rk-stat strong {
  display: block;
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  color: var(--ink-strong, #18231E);
  font-variant-numeric: tabular-nums;
}

.rk-stat span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2, #6B716D);
}

.rk-formats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.rk-format {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #DBE4DF);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(31, 77, 58, .05);
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rk-format-no {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: 30px;
  line-height: 1;
  color: var(--brand-primary, #1F4D3A);
  opacity: .45;
}

.rk .rk-format h3 {
  font-size: 18px;
}

.rk-format p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2, #6B716D);
}

.rk-trust {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  align-items: start;
  background: var(--brand-primary-soft, #EDF3EF);
  border: 1px solid var(--border, #DBE4DF);
  border-radius: 22px;
  padding: clamp(26px, 4vw, 44px);
}

.rk-trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface, #fff);
  color: var(--brand-primary, #1F4D3A);
}

.rk-trust-icon .rk-icon {
  width: 32px;
  height: 32px;
}

.rk-trust-copy h2 {
  margin-bottom: 14px;
}

.rk-trust-copy p {
  margin-bottom: 10px;
  max-width: 720px;
}

.rk-readers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rk-reader {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #DBE4DF);
  border-radius: 999px;
  padding: 12px 20px;
  font: 600 15px var(--font-sans, Inter, system-ui, sans-serif);
  color: var(--ink-strong, #18231E);
}

.rk-readers-note {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--ink-2, #6B716D);
}

.rk-cta {
  padding: clamp(48px, 6vw, 84px) clamp(16px, 4vw, 32px) 64px;
}

.rk-cta > .rk-wrap {
  border-radius: 24px;
  padding: clamp(36px, 6vw, 72px);
  color: #fff;
  background: linear-gradient(120deg, rgba(14, 40, 31, .96), rgba(23, 57, 43, .90)), url("/static/img/hero-home-ridge.webp") center / cover no-repeat;
  background-color: #17392B;
}

.rk .rk-cta h2 {
  color: #fff;
  margin-bottom: 14px;
}

.rk-cta p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .86);
  max-width: 620px;
}

.rk-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

@media (max-width: 1099px) {
  .rk-formats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .rk-split > .rk-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rk-contact-card {
    grid-template-columns: 1fr;
  }

  .rk-data-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rk-stat:nth-child(3),
  .rk-stat:nth-child(4) {
    border-top: 1px solid var(--border, #DBE4DF);
  }

  .rk-stat:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .rk-hero {
    min-height: 0;
    padding: 36px 0 40px;
    /* a narrow screen has no «right side»: the veil stays even, lighter than before */
    background: linear-gradient(180deg, rgba(15, 30, 25, .70), rgba(15, 30, 25, .62)), url("/static/img/hero-home-ridge.webp") 72% center / cover no-repeat;
  }

  .rk-hero-actions .rk-btn,
  .rk-contact-actions .rk-btn,
  .rk-cta-actions .rk-btn {
    flex: 1 1 100%;
  }

  .rk-contact-cells {
    flex-direction: column;
    gap: 14px;
  }

  .rk-formats {
    grid-template-columns: 1fr;
  }

  .rk-trust {
    grid-template-columns: 1fr;
  }

  .rk-stat {
    padding: 22px 12px;
  }

  .rk-reader {
    padding: 10px 16px;
    font-size: 14px;
  }

  .rk-btn {
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rk-btn {
    transition: none;
  }

  .rk-btn:hover {
    transform: none;
  }
}

html[data-theme="dark"] .rk .rk-card,
html[data-theme="dark"] .rk .rk-shot,
html[data-theme="dark"] .rk .rk-data-grid,
html[data-theme="dark"] .rk .rk-format {
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .rk .rk-btn--secondary {
  background: var(--surface);
  border-color: var(--border);
}

html[data-theme="dark"] .rk .rk-trust {
  background: var(--brand-primary-soft);
}

html[data-theme="dark"] .rk a:not(.rk-btn) {
  color: var(--brand-text, #6FBF97);
}
