/* =========================================================
   yourconsultonline — стили сайта-визитки
   Вдохновлено типографикой и воздухом jamesclear.com
   ========================================================= */

:root {
  /* Палитра */
  --ink:        #14181f;   /* основной текст */
  --ink-soft:   #475063;   /* вторичный текст */
  --ink-faint:  #8b94a3;   /* подписи */
  --paper:      #ffffff;   /* фон */
  --paper-2:    #f7f6f2;   /* тёплый светлый блок */
  --line:       #e7e4dc;   /* границы */
  --gold:       #f2b705;   /* акцент */
  --gold-deep:  #c8930a;   /* акцент при наведении */
  --navy:       #0e1320;   /* тёмные секции */

  /* Типографика */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Ритм */
  --wrap: 1080px;
  --read: 720px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* запас под липкую шапку (68px) при переходе по якорям — иначе заголовок
     секции упирается в шапку и у него срезается верх */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .5em;
}

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px;
}

.lead { font-size: 21px; color: var(--ink-soft); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .dot { color: var(--gold); }
.brand img { width: 26px; height: 26px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  max-width: 14ch;
}
.hero .lead { max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 15px;
  color: var(--ink-faint);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta b { color: var(--ink); font-weight: 600; }

/* ---------- Секции ---------- */
section { padding: 72px 0; }
.section-head { max-width: var(--read); margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 46px); }
.section-head p { color: var(--ink-soft); font-size: 19px; margin-bottom: 0; }

.section-tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Услуги ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Раздел «Не только прокат» — 4 карточки ровной сеткой 2×2 */
.cards-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  padding: 34px 30px;
}
.section-tint .card { background: var(--paper-2); }
.card .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: .04em;
}
.card h3 { font-size: 22px; margin: 14px 0 10px; }
.card p { font-size: 16px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ---------- Почему ниша ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split .prose p { font-size: 19px; color: var(--ink-soft); }
.split .prose p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  font-weight: 600;
  float: left;
  line-height: .82;
  padding: 6px 12px 0 0;
  color: var(--ink);
}
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 16px 0 16px 38px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  color: var(--ink);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 22px;
  width: 9px; height: 16px;
  border: solid var(--gold-deep);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* ---------- Как это работает ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step .step-no {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.step h3 { font-size: 22px; margin: 16px 0 8px; }
.step p { font-size: 16px; color: var(--ink-soft); margin: 0; }

/* ---------- Тёмная секция контактов ---------- */
.contact {
  background: var(--navy);
  color: #e9ecf2;
  border: 0;
}
.contact h2 { color: #fff; }
.contact .section-head p { color: #9aa4b2; }
.contact a.muted { color: #9aa4b2; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 4px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-row .ic {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(242,183,5,.14);
  color: var(--gold);
}
.contact-row .ic svg { width: 20px; height: 20px; }
.contact-row .lbl { font-size: 13px; color: #9aa4b2; letter-spacing: .04em; text-transform: uppercase; }
.contact-row .val { font-size: 19px; color: #fff; font-weight: 500; }
.contact-row a.val:hover { color: var(--gold); }

.contact-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 { color: #fff; font-size: 22px; }
.contact-card p { color: #9aa4b2; font-size: 16px; }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 48px 0;
  font-size: 14px;
  color: var(--ink-faint);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-top .brand { color: var(--ink); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { line-height: 1.7; }
.footer-legal b { color: var(--ink-soft); font-weight: 600; }

/* =========================================================
   Страница реквизитов
   ========================================================= */
.page-hero { padding: 72px 0 24px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); }
.page-hero p { color: var(--ink-soft); font-size: 19px; max-width: 60ch; }

.req-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; padding-top: 24px; }

.req-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.req-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--line);
}
.req-row:last-child { border-bottom: 0; }
.req-row:nth-child(odd) { background: var(--paper-2); }
.req-row dt {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 18px 22px;
  font-weight: 600;
}
.req-row dd {
  margin: 0;
  padding: 18px 22px;
  font-size: 17px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.req-row.head dd { font-family: var(--serif); font-size: 19px; }

.pay-box {
  position: sticky;
  top: 92px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.pay-box h3 { font-size: 22px; }
.pay-box p { font-size: 15px; color: var(--ink-soft); }
.pay-box .qr {
  max-width: 280px;
  margin: 18px auto 6px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20,24,31,.12);
}

.copy-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid, .req-layout { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .pay-box { position: static; max-width: 420px; }
  .req-row { grid-template-columns: 1fr; }
  .req-row dt { padding-bottom: 4px; }
  .req-row dd { padding-top: 0; }
  .req-row:nth-child(odd) { background: var(--paper-2); }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.open .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  section { padding: 56px 0; }
  .split .prose p:first-of-type::first-letter { font-size: 2.8em; }
}
