/* ============ РепуСтар — лендинг ============ */
/* Палитра: тёплый paper/ink + amber акцент. Шрифты: Unbounded (заголовки) + Onest (текст) */

:root {
  --paper: #faf7f1;
  --paper-2: #f3eee4;
  --ink: #1a1611;
  --ink-2: #2a2419;
  --muted: #6e6759;
  --line: #e5ddcd;
  --line-dark: #3a3324;
  --accent: #f59e0b;
  --accent-strong: #d97f00;
  --accent-soft: #fdeecb;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Unbounded", "Onest", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo { font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0; }
.logo span { color: var(--ink); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: #241a02; font-size: 16px; line-height: 1;
  flex-shrink: 0;
  margin-right: 8px;
}

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: color 0.15s;
}
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none; text-align: center;
  cursor: pointer; border: 2px solid transparent;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
  min-height: 48px;
}
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); color: #241a02; }
.btn-accent:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-big { padding: 16px 34px; font-size: 18px; }
.btn-header { padding: 9px 18px; font-size: 15px; min-height: 40px; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 56px; align-items: center; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 14px;
}
.eyebrow-dark { color: #f7c664; }

h1, h2, h3 { font-family: var(--font-head); }
h1 { font-size: 42px; line-height: 1.14; letter-spacing: -1px; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent-strong); }
.lead { font-size: 19px; color: var(--muted); margin: 20px 0 28px; max-width: 560px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-facts { list-style: none; display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-facts li {
  font-size: 14.5px; color: var(--muted); font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* визуал — карточка рейтинга */
.hero-visual { display: flex; justify-content: center; }
.rating-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; width: 320px; box-shadow: 0 24px 60px -24px rgba(26, 22, 17, 0.25);
  transform: rotate(1.5deg);
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-16px); }
}
.rc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.rc-avatar {
  width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.rc-name { font-weight: 700; font-size: 15.5px; }
.rc-cat { font-size: 13px; color: var(--muted); }
.rc-score { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num stars" "num count"; column-gap: 16px; align-items: center; }
.rc-num { grid-area: num; font-family: var(--font-head); font-size: 46px; font-weight: 800; letter-spacing: -2px; }
.rc-stars { grid-area: stars; color: var(--accent-strong); font-size: 19px; letter-spacing: 2px; }
.rc-count { grid-area: count; color: var(--muted); font-size: 14px; }
.rc-meta { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.rc-badge { background: var(--accent-soft); color: #7c5200; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.rc-badge-warm { background: var(--paper-2); color: var(--muted); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2 { color: var(--paper); }
.section-sub { color: var(--muted); margin: -6px 0 40px; max-width: 560px; }
.section-sub-dark { color: #b3a888; }
h2 { font-size: 32px; letter-spacing: -0.5px; font-weight: 800; margin-bottom: 8px; }

/* услуги — featured-блок + карточки */
.svc-featured {
  display: grid; grid-template-columns: 1.35fr 0.9fr;
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 20px;
}
.svc-f-copy { padding: 36px; }
.svc-f-copy h3 { font-size: 25px; font-weight: 800; margin: 14px 0 10px; color: var(--paper); }
.svc-f-copy p { color: #b3a888; font-size: 16px; max-width: 520px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); background: var(--paper-2); padding: 5px 10px; border-radius: 8px;
}
.tag-dark { color: #f7c664; background: rgba(245, 158, 11, 0.16); }
.svc-f-list { list-style: none; margin-top: 20px; display: grid; gap: 9px; }
.svc-f-list li { color: var(--paper); font-size: 15px; padding-left: 24px; position: relative; }
.svc-f-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.svc-f-price {
  background: var(--ink-2); border-left: 1px solid var(--line-dark);
  padding: 36px; display: flex; flex-direction: column; gap: 16px;
}
.svc-price-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 1px dashed var(--line-dark); padding-bottom: 14px;
}
.svc-price-name { color: #b3a888; font-size: 14.5px; }
.svc-price-val { color: var(--paper); font-weight: 800; font-size: 22px; white-space: nowrap; }
.svc-f-price .btn { margin-top: auto; }
.svc-f-hint { color: #8d8163; font-size: 13px; text-align: center; margin: 0; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(26, 22, 17, 0.3); }
.svc-card h3 { font-size: 18px; font-weight: 800; }
.svc-card p { color: var(--muted); font-size: 15px; flex-grow: 1; }
.svc-card-price { font-weight: 800; font-size: 20px; }
.svc-card-price span { font-size: 13px; font-weight: 500; color: var(--muted); }
.svc-card-link { color: var(--accent-strong); font-weight: 700; font-size: 15px; text-decoration: none; }
.svc-card-link:hover { text-decoration: underline; }

/* гарантии — столбики с цифрами */
.section-tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.guar-item { border-top: 2px solid var(--ink); padding-top: 20px; }
.guar-num {
  font-family: var(--font-head);
  font-size: 44px; font-weight: 800; letter-spacing: -2px; line-height: 1;
  color: var(--ink); margin-bottom: 16px;
}
.guar-num span { font-family: var(--font); font-size: 20px; font-weight: 600; letter-spacing: 0; margin-left: 8px; color: var(--muted); }
.guar-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.guar-item p { color: var(--muted); font-size: 14.5px; }

/* шаги */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--accent);
  color: #f7c664; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 5px; color: var(--paper); }
.step p { color: #b3a888; font-size: 15.5px; max-width: 640px; }

/* калькулятор */
.calc {
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
  padding: 38px 40px; max-width: 640px; margin: 0 auto;
}
.calc-embed {
  background: transparent; border-radius: 0; padding: 0; max-width: none; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.calc-embed .calc-top { margin-bottom: 4px; flex-direction: column; align-items: flex-start; gap: 10px; }
.calc-embed .calc-num { font-size: 44px; }
.calc-embed .calc-total { text-align: left; }
.calc-embed .calc-total-num { font-size: 26px; }
.calc-embed .calc-scale { margin: 2px 2px 4px; }
.calc-embed .calc-hint { margin: 0; text-align: left; }
.calc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.calc-count { display: flex; align-items: baseline; gap: 10px; }
.calc-num { font-family: var(--font-head); font-size: 56px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.calc-unit { color: #b3a888; font-size: 18px; }
.calc-total { text-align: right; }
.calc-total-num { font-family: var(--font-head); display: block; font-size: 28px; font-weight: 800; color: var(--accent); }
.calc-total-unit { color: #b3a888; font-size: 13.5px; }
.calc-gift {
  display: inline-block; margin-top: 10px; padding: 7px 14px; border-radius: 999px;
  background: var(--accent-soft); color: #7c5200; font-size: 13.5px; font-weight: 700;
}
.calc-embed .calc-gift { margin-top: 0; }
.calc-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  background: var(--line-dark); outline: none; cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--ink-2); box-shadow: 0 0 0 2px var(--accent); cursor: grab;
}
.calc-range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--ink-2); box-shadow: 0 0 0 2px var(--accent); cursor: grab;
}
.calc-scale { display: flex; justify-content: space-between; color: #8d8163; font-size: 13px; margin: 8px 2px 24px; }
.calc .btn { display: block; }
.calc-hint { color: #8d8163; font-size: 13.5px; text-align: center; margin: 14px 0 0; }
.plans-note { color: var(--muted); font-size: 14.5px; margin-top: 22px; text-align: center; }

/* кейсы */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.case-card {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.case-title { font-weight: 700; font-size: 16px; color: var(--paper); }
.case-badge { font-size: 12px; font-weight: 700; color: #f7c664; border: 1px solid #4a3f28; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.case-score { font-family: var(--font-head); font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: var(--paper); }
.case-score b { color: var(--accent); }
.case-line { color: #b3a888; font-size: 14px; }
.cases-note { margin-top: 20px; color: #8d8163; font-size: 13.5px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 0; font-weight: 700; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; font-weight: 500; color: var(--accent-strong); transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 22px; max-width: 620px; }

/* CTA */
.section-cta { padding: 96px 0; }
.cta-box { text-align: center; }
.cta-box h2 { font-size: 34px; }
.cta-box p { color: var(--muted); margin: 12px 0 28px; }
.cta-hint { font-size: 14px; margin-top: 18px !important; }
.cta-hint a { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-btn {
  min-height: 54px; display: flex; align-items: center; justify-content: center;
  color: #fff !important; border: none; font-weight: 700;
}
.contact-btn:hover { transform: translateY(-2px); }
.ct-tg { background: #2aabee; }
.ct-wa { background: #25d366; color: #062e14 !important; }
.ct-mail { background: #6e6759; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--paper-2); }
.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.footer-inner p { color: var(--muted); font-size: 14.5px; }
.logo-footer { margin-bottom: 8px; }
.footer-muted { font-size: 13px !important; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 0 48px; }
  h1 { font-size: 36px; }
  .hero-visual { order: 2; }
  .case-grid { grid-template-columns: 1fr; }
  .svc-featured { grid-template-columns: 1fr; }
  .svc-f-price { border-left: none; border-top: 1px solid var(--line-dark); }
  .guar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 16px 24px; gap: 14px; }
  .nav.open { display: flex; }
  .btn-header { display: none; }
  .burger { display: block; margin-left: auto; }
  h1 { font-size: 29px; }
  h2 { font-size: 26px; }
  .step { grid-template-columns: 52px 1fr; gap: 16px; }
  .step-num { width: 44px; height: 44px; font-size: 17px; }
  .rating-card { width: 280px; padding: 22px; }
  .hero-facts { flex-direction: column; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .calc:not(.calc-embed) { padding: 28px 22px; }
  .calc-num { font-size: 44px; }
  .calc-total-num { font-size: 24px; }
  .svc-grid { grid-template-columns: 1fr; }
  .guar-grid { grid-template-columns: 1fr; }
  .svc-f-copy, .svc-f-price { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
