/* ==========================================================================
   Elephant Ads — design tokens
   Palette: elephant hide (warm violet-grey) + tusk ivory + deep jade signal
   ========================================================================== */

:root {
  --ink:        #211F26;
  --graphite:   #3A3742;
  --hide:       #6F6A78;
  --mist:       #A8A3B0;
  --paper:      #F1EFF2;
  --paper-deep: #E4E1E8;
  --ivory:      #E7DFD1;
  --jade:       #17624E;
  --jade-lit:   #1E8062;
  --line:       rgba(33, 31, 38, .14);
  --line-hard:  rgba(33, 31, 38, .28);

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --radius: 3px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--jade); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--jade-lit); }

:focus-visible {
  outline: 2px solid var(--jade-lit);
  outline-offset: 3px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3 { margin: 0; font-weight: 600; }

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.14;
  letter-spacing: -.015em;
}

h3 {
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.35;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  line-height: 1.6;
  color: var(--graphite);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hide);
  display: block;
  margin-bottom: .9rem;
}

.muted { color: var(--hide); }

.small { font-size: .88rem; line-height: 1.55; }

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  padding-block: clamp(52px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.section--flush { border-top: 0; }

.section__head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gut); top: 10px;
  z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 239, 242, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 62px;
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .96rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand svg { flex: none; }

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

.nav a {
  font-size: .9rem;
  color: var(--graphite);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--jade);
}

.lang {
  display: flex; align-items: center; gap: 2px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  border: 1px solid var(--line-hard);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang a {
  padding: 4px 9px;
  text-decoration: none;
  color: var(--hide);
  text-transform: uppercase;
}
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-hard);
  border-radius: var(--radius);
  padding: 7px 11px;
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--ink); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .lang { order: 2; }
  .nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 12px;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .site-head__inner { flex-wrap: wrap; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn--primary { background: var(--jade); color: #fff; }
.btn--primary:hover { background: var(--jade-lit); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-hard);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ==========================================================================
   SIGNATURE: the data plate
   A spec sheet for an ad account, set like a machine nameplate.
   ========================================================================== */

.plate {
  background: var(--ivory);
  border: 1px solid var(--line-hard);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  position: relative;
}

.plate__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line-hard);
}

.plate__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.plate__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jade);
  white-space: nowrap;
}
.plate__status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--jade-lit);
  flex: none;
}

.plate__rows { margin: 0; }

.plate__row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line-hard);
  font-family: var(--font-mono);
  font-size: .8rem;
}
.plate__row:last-child { border-bottom: 0; }

.plate__row dt {
  color: var(--hide);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .69rem;
  flex: none;
}

.plate__row dd {
  margin: 0 0 0 auto;
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.plate__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-hard);
  font-size: .84rem;
  color: var(--graphite);
  line-height: 1.5;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-block: clamp(44px, 7vw, 84px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__copy .lede { margin-top: 1.15rem; }
.hero__copy .btn-row { margin-top: 1.9rem; }

.hero__note {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--hide);
  letter-spacing: .02em;
}

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

/* ==========================================================================
   Grids
   ========================================================================== */

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

@media (max-width: 860px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

/* Plain content card (not a plate) */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .93rem; color: var(--graphite); }

/* ==========================================================================
   Problem list — hairline rows, no bullets
   ========================================================================== */

.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(12px, 3vw, 40px);
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.row__term {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}

.row__desc { color: var(--graphite); font-size: .95rem; }

@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================================
   Steps — a real sequence, so numbering carries meaning
   ========================================================================== */

.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: clamp(12px, 2.5vw, 28px);
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--jade);
  letter-spacing: .04em;
  padding-top: .28rem;
}

.step h3 { margin-bottom: .35rem; }
.step p { font-size: .95rem; color: var(--graphite); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--hide);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }

.faq details > div {
  padding: 0 0 22px;
  max-width: 68ch;
  color: var(--graphite);
  font-size: .95rem;
}

/* ==========================================================================
   Appraisal builder
   ========================================================================== */

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

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

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hide);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-hard);
  border-radius: var(--radius);
  padding: 11px 13px;
}

.field textarea { min-height: 92px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--jade-lit);
  outline-offset: 1px;
  border-color: transparent;
}

.preview {
  position: sticky; top: 84px;
}

.preview pre {
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 16px;
  color: var(--graphite);
}

@media (max-width: 860px) { .preview { position: static; } }

/* ==========================================================================
   Reviews
   ========================================================================== */

.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.review__meta {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .05em;
  color: var(--hide);
  text-transform: uppercase;
}
.review__meta span:last-child { margin-left: auto; }

.review p { font-size: .95rem; color: var(--graphite); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.band {
  background: var(--ink);
  color: var(--paper);
}
.band h2 { color: #fff; }
.band p { color: var(--mist); }
.band .btn--ghost { color: var(--paper); border-color: rgba(241,239,242,.34); }
.band .btn--ghost:hover { border-color: var(--paper); }

.band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 72px);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
  font-size: .89rem;
  color: var(--hide);
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

@media (max-width: 700px) { .foot__grid { grid-template-columns: 1fr; gap: 22px; } }

.foot__grid h3 {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hide);
  margin-bottom: 10px;
  font-weight: 500;
}

.foot__grid ul { list-style: none; margin: 0; padding: 0; }
.foot__grid li { margin-bottom: 6px; }
.foot__grid a { color: var(--graphite); text-decoration: none; }
.foot__grid a:hover { color: var(--ink); text-decoration: underline; }

.foot__legal {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  font-size: .82rem;
}

/* ==========================================================================
   Scroll reveal (opt-in, honours reduced motion)
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Sticky Telegram bar — mobile only.
   The whole funnel ends in one chat, so the way there should never be
   more than a thumb away.
   ========================================================================== */

.tg-bar { display: none; }

@media (max-width: 760px) {
  .tg-bar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(241, 239, 242, .96);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line-hard);
  }

  .tg-bar .btn {
    width: 100%;
    justify-content: center;
    padding-block: 16px;
  }

  body { padding-bottom: 78px; }
}

/* Логотип: работает и со знаком-кодом, и с картинкой из img/ */
.brand img { height: 26px; width: 26px; flex: none; display: block; object-fit: contain; }

/* Двухколоночный текстовый блок для длинных разделов */
.prose { max-width: 68ch; }
.prose h3 { margin: 1.8rem 0 .5rem; }
.prose p { color: var(--graphite); }
.prose ul { margin: .6rem 0 1.1rem; padding-left: 1.1rem; color: var(--graphite); }
.prose li { margin-bottom: .4rem; }
