/* Readable Cyrillic headings (Archivo Black fills letter counters) */
.ads-page h1,
.ads-page h2,
.ads-page h3 {
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Ads landing — extends site tokens from /styles.css */
.ads-page {
  /* Red only for headline em + «Хит» badge — muted, not neon */
  --ads-accent: #b42318;
  --ads-ink: var(--black, #0a0a0a);
  --ads-paper: var(--white, #fff);
  --ads-muted: color-mix(in srgb, var(--ads-ink) 55%, transparent);
  --ads-line: color-mix(in srgb, var(--ads-ink) 14%, transparent);
  --ads-max: 78rem;
}

.ads-page .container {
  max-width: var(--ads-max);
}

.ads-page .header__inner {
  gap: 0.75rem;
}

.ads-page .ads-header-actions .lang__select {
  min-height: 32px;
  padding: 4px 28px 4px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ads-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.ads-brand__mark {
  font-family: "Archivo Black", "Work Sans", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  line-height: 1;
}

.ads-brand__tag {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  border: 1px solid var(--ads-line);
  padding: 0.2rem 0.4rem;
}

.ads-nav {
  display: none;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 900px) {
  .ads-nav {
    display: flex;
  }
}

.ads-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.ads-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ads-hero {
  position: relative;
  padding: clamp(2rem, 4.5vw, 3.25rem) 0 clamp(1.75rem, 4vw, 2.75rem);
  overflow: hidden;
  border-bottom: 2px solid var(--ads-ink);
  background: var(--ads-paper);
}

.ads-hero__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .ads-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.95fr);
    align-items: stretch;
    gap: 1.75rem;
  }
}

.ads-hero__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ads-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.55rem;
  border: 2px solid var(--ads-ink);
  background: var(--ads-paper);
  align-self: flex-start;
}

.ads-kicker__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ads-ink);
}

.ads-hero h1 {
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2.05rem, 4.6vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: none;
}

.ads-hero h1 em {
  font-style: normal;
  color: var(--ads-accent);
}

.ads-hero__lead {
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.4;
  max-width: 44rem;
  margin: 0 0 1.15rem;
  color: var(--ads-ink);
  opacity: 0.82;
}

.ads-hero__lead strong {
  color: var(--ads-ink);
  font-weight: 700;
  opacity: 1;
}

.ads-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.ads-page .ads-hero .btn {
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-width: 2px;
}

.ads-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: auto;
}

@media (min-width: 640px) {
  .ads-proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ads-proof__item {
  border: 2px solid var(--ads-ink);
  padding: 0.85rem 0.75rem;
  background: var(--ads-paper);
}

.ads-proof__val {
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.ads-proof__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.62;
  margin-top: 0.3rem;
  font-weight: 600;
}

.ads-hero__panel {
  border: 2px solid var(--ads-ink);
  background: var(--ads-paper);
  color: var(--ads-ink);
  padding: 0;
  box-shadow: 8px 8px 0 var(--ads-ink);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ads-hero__panel-head {
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--ads-line);
}

.ads-hero__panel h2 {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  color: var(--ads-ink);
}

.ads-hero__panel ul {
  margin: 0;
  padding: 0.85rem 1.1rem;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  flex: 1;
}

.ads-hero__panel li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.32;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ads-line);
}

.ads-hero__panel li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ads-hero__panel li span:first-child {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  border: 1px solid var(--ads-ink);
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
  color: var(--ads-ink);
}

.ads-hero__panel-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ads-line);
  margin-top: auto;
  border-top: 1px solid var(--ads-ink);
}

.ads-hero__panel-foot a,
.ads-hero__panel-foot div {
  background: var(--ads-paper);
  padding: 0.85rem 0.65rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.ads-hero__panel-foot a:hover {
  background: color-mix(in srgb, var(--ads-ink) 6%, var(--ads-paper));
}

.ads-hero__panel-foot strong {
  display: block;
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ads-hero__panel-foot span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.ads-section {
  padding: clamp(2.25rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--ads-line);
}

.ads-section--dark {
  background: var(--ads-ink);
  color: var(--ads-paper);
  border-bottom: none;
}

.ads-section--dark .ads-muted {
  opacity: 0.72;
}

.ads-section__head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.ads-section__head h2 {
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.65rem;
}

.ads-muted {
  margin: 0;
  color: var(--ads-muted);
  line-height: 1.45;
}

.ads-section--dark .ads-muted {
  color: color-mix(in srgb, var(--ads-paper) 72%, transparent);
}

.ads-grid-3 {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .ads-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ads-card {
  border: 1px solid var(--ads-ink);
  padding: 1.1rem 1.15rem;
  background: var(--ads-paper);
  color: var(--ads-ink);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.ads-section--dark .ads-card {
  border-color: color-mix(in srgb, var(--ads-paper) 25%, transparent);
  background: color-mix(in srgb, var(--ads-paper) 4%, transparent);
  color: var(--ads-paper);
}

.ads-card--hot {
  border-width: 2px;
  box-shadow: 6px 6px 0 var(--ads-ink);
}

.ads-card__top {
  display: flex;
  flex-wrap: wrap; /* 2026-10-07: long localized prices (de/pt/tr…) drop under the name instead of overflowing the card */
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  align-items: baseline;
}

.ads-card__name {
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.ads-card__price {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  white-space: nowrap;
}

.ads-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Space Mono", ui-monospace, monospace;
  background: var(--ads-accent);
  color: #fff;
  padding: 0.2rem 0.4rem;
  width: fit-content;
}

.ads-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  flex: 1;
}

.ads-card li {
  font-size: 0.92rem;
  line-height: 1.35;
  padding-left: 1rem;
  position: relative;
}

.ads-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: "Space Mono", ui-monospace, monospace;
  opacity: 0.7;
}

.ads-hits {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 760px) {
  .ads-hits {
    grid-template-columns: 1fr 1fr;
  }
}

.ads-hit {
  border: 1px solid currentColor;
  padding: 1rem 1.1rem;
}

.ads-hit h3 {
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.ads-hit p {
  margin: 0;
  line-height: 1.4;
  opacity: 0.85;
  font-size: 0.95rem;
}

.ads-cases {
  display: grid;
  gap: 0.85rem;
}

.ads-case {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--ads-ink);
  background: var(--ads-paper);
  color: inherit;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
}

.ads-case__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--ads-line);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ads-case__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.ads-case__note {
  padding: 0.65rem 0.75rem 0.8rem;
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
}

.ads-case__note strong {
  font-weight: 700;
}

.ads-steps {
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .ads-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ads-step {
  border: 1px solid var(--ads-ink);
  padding: 1rem;
  counter-increment: step;
  background: var(--ads-paper);
}

.ads-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.ads-step h3 {
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.ads-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ads-muted);
}

.ads-final {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--ads-paper);
  border-top: 2px solid var(--ads-ink);
}

.ads-final__box {
  border: 2px solid var(--ads-ink);
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 44rem;
  box-shadow: 10px 10px 0 var(--ads-ink);
  background: var(--ads-paper);
}

.ads-final__box h2 {
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.ads-final__box p {
  margin: 0 0 1.25rem;
  line-height: 1.45;
  color: var(--ads-muted);
}

.ads-footer {
  padding: 1.25rem 0 5.5rem;
  border-top: 1px solid var(--ads-line);
}

.ads-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.ads-footer a {
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  .ads-hero__panel {
    animation: ads-pop 0.55s ease-out both;
  }
  .ads-proof__item {
    animation: ads-rise 0.45s ease-out both;
  }
  .ads-proof__item:nth-child(2) { animation-delay: 0.05s; }
  .ads-proof__item:nth-child(3) { animation-delay: 0.1s; }
  .ads-proof__item:nth-child(4) { animation-delay: 0.15s; }
  .ads-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .ads-card:hover {
    transform: translate(-2px, -2px);
  }
}

@keyframes ads-pop {
  from { opacity: 0; transform: translate(8px, 8px); }
  to { opacity: 1; transform: none; }
}
@keyframes ads-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ==== 2026-09-30: anchors below sticky header, compact mobile header, calm nudge ==== */
/* --ads-hdr = real header height, set by ads-i18n.js; fallbacks below */
html {
  scroll-padding-top: calc(var(--ads-hdr, 74px) + 16px);
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: calc(var(--ads-hdr, 60px) + 12px);
  }
  /* One-row header: brand left, actions right, no wrapping */
  .ads-page .header__inner {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .ads-page .ads-brand {
    gap: 6px;
    min-width: 0;
    flex-shrink: 1;
  }
  .ads-page .ads-brand__tag {
    font-size: 0.56rem;
    line-height: 1.15;
    padding: 0.15rem 0.3rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .ads-page .ads-header-actions {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    flex-shrink: 0;
  }
  .ads-page .ads-header-actions .lang__select {
    min-width: 0;
    padding: 4px 22px 4px 7px;
    background-position: right 5px center;
  }
  .ads-page .ads-header-actions .btn--sm {
    padding: 5px 9px;
  }

  /* Contact nudge → slim non-blocking bar at the bottom, left of the TG/Chat buttons */
  .ads-page .nudge {
    position: fixed;
    left: 10px;
    right: 96px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: 420px;
    padding: 7px 30px 7px 10px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border-width: 2px;
    box-shadow: 3px 3px 0 #000;
  }
  .ads-page .nudge__text {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
    font-size: 11px;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ads-page .nudge__cta {
    flex: 0 0 auto;
  }
  .ads-page .nudge__cta .btn {
    min-height: 30px;
    max-width: 86px;
    padding: 5px 8px;
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: 0.5px;
    white-space: normal;
    text-align: center;
  }
  .ads-page .nudge__cta #nudgeOpenTg,
  .ads-page .nudge__arrow {
    display: none;
  }
  .ads-page .nudge__close {
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    font-size: 18px;
  }
  /* last lines of the page stay readable above the floating TG/Chat column and the bar */
  .ads-page .ads-footer {
    padding-bottom: 150px;
  }
}

/* Narrow phones: header Telegram duplicates the floating TG button — hide it so the header stays one row */
@media (max-width: 560px) {
  .ads-page .ads-header-actions a[data-ads="tgBtn"] {
    display: none;
  }
}

/* Opened on #anchor → no nudge on this view (class set by ads-i18n.js) */
html.ads-nudge-off .ads-page .nudge {
  display: none !important;
}

/* Very narrow phones (<360px): drop the small «Meta Ads» tag so nothing overlaps */
@media (max-width: 359px) {
  .ads-page .ads-brand__tag {
    display: none;
  }
}

/* ==== 2026-09-30b: desktop nudge = same slim bar as mobile, parked left of the TG/Chat column ==== */
@media (min-width: 641px) {
  .ads-page .nudge {
    position: fixed;
    left: auto;
    right: 98px; /* float column: right 16px + 72px wide (≤980px) */
    bottom: 16px;
    width: 340px;
    max-width: calc(100vw - 130px);
    padding: 7px 30px 7px 10px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border-width: 2px;
    box-shadow: 3px 3px 0 #000;
  }
  .ads-page .nudge__text {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ads-page .nudge__cta {
    flex: 0 0 auto;
  }
  .ads-page .nudge__cta .btn {
    min-height: 30px;
    max-width: 96px;
    padding: 5px 8px;
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: 0.5px;
    white-space: normal;
    text-align: center;
  }
  .ads-page .nudge__cta #nudgeOpenTg,
  .ads-page .nudge__arrow {
    display: none;
  }
  .ads-page .nudge__close {
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    font-size: 18px;
  }
}
@media (min-width: 981px) {
  .ads-page .nudge {
    right: 128px; /* float column: right 24px + 92px wide */
    bottom: 24px;
  }
}
/* Desktop: the bar steps aside while it would sit on top of content (class toggled by ads-i18n.js) */
.ads-page .nudge.nudge--tucked {
  visibility: hidden;
  pointer-events: none;
  animation: none;
}
