/* Лендинг движка карточек. Тёмная тема — та же логика, что и в карточках:
   один горячий акцент на графите, всё остальное молчит. */

:root {
  --bg: #0C0F12;
  --bg-soft: #12171C;
  --line: rgba(255,255,255,0.10);
  --text: #F2F5F8;
  --muted: #93A0AC;
  --hot-a: #FFB020;
  --hot-b: #FF6A18;
  --radius: 18px;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
h3 { font-size: 20px; }

.lead { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.lead--narrow { max-width: 720px; margin-bottom: 34px; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.note--center { text-align: center; }

section { padding: clamp(56px, 8vw, 104px) 0; }

/* ---------- шапка ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12,15,18,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo span { color: var(--hot-b); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px; border-radius: 25px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn--main { background: linear-gradient(100deg, var(--hot-a), var(--hot-b)); color: #1A1005; }
.btn--main:hover { opacity: .92; }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.03); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.24); }
.btn--wide { width: 100%; }

/* ---------- первый экран ---------- */

.hero { padding-top: clamp(40px, 6vw, 78px); }
.hero__in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .lead { margin-top: 20px; }

/* ---------- сравнение до/после ---------- */

.ba {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5);
  user-select: none; touch-action: none; cursor: ew-resize; aspect-ratio: 3 / 4;
}
.ba img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__clip { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba__clip img { width: var(--ba-w, 100%); max-width: none; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: rgba(255,255,255,.9); transform: translateX(-1px);
}
.ba__handle i {
  position: absolute; top: 50%; left: 50%; width: 42px; height: 42px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.ba__handle i::before, .ba__handle i::after {
  content: ''; position: absolute; top: 50%; width: 0; height: 0;
  border: 6px solid transparent; margin-top: -6px;
}
.ba__handle i::before { left: 6px; border-right-color: #12171C; }
.ba__handle i::after { right: 6px; border-left-color: #12171C; }
.ba__tag {
  position: absolute; top: 14px; padding: 6px 12px; border-radius: 14px;
  font-size: 13px; font-weight: 700; background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
}
.ba__tag--l { left: 14px; }
.ba__tag--r { right: 14px; }

/* ---------- лента поиска ---------- */

.feed { background: var(--bg-soft); border-block: 1px solid var(--line); }
.feed__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.feed__title { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.feed__title--bad { color: var(--muted); }
.feed__title--good { color: var(--hot-a); }
.feed__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feed__item { background: #fff; border-radius: 10px; overflow: hidden; padding-bottom: 8px; }
.feed__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.feed__item span {
  display: block; color: #2C3540; font-size: 11px; line-height: 1.3;
  padding: 6px 8px 0; height: 32px; overflow: hidden;
}
.feed__item b { display: block; color: #0F1620; font-size: 13px; padding: 0 8px; }

/* ---------- галерея ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.shot__pair { position: relative; aspect-ratio: 3 / 4; }
.shot__pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot__before { opacity: 0; transition: opacity .18s; z-index: 2; }
.shot:hover .shot__before, .shot:focus-within .shot__before { opacity: 1; }
.shot figcaption { padding: 12px 14px; font-size: 14px; color: var(--muted); }

/* ---------- шаги и тарифы ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.step b {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 16px;
  background: linear-gradient(100deg, var(--hot-a), var(--hot-b)); color: #1A1005;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-soft); text-align: center;
}
.plan--hot { border-color: rgba(255,140,40,.45); background: linear-gradient(180deg, rgba(255,140,40,.10), transparent 60%), var(--bg-soft); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 13px; font-size: 12px; font-weight: 700;
  background: linear-gradient(100deg, var(--hot-a), var(--hot-b)); color: #1A1005; white-space: nowrap;
}
.plan__sum { font-size: 34px; font-weight: 800; margin: 14px 0 10px; letter-spacing: -.02em; }
.plan__sum small { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan__for { color: var(--muted); font-size: 15px; min-height: 48px; margin-bottom: 18px; }

/* ---------- заявка ---------- */

.lead-form { background: var(--bg-soft); border-top: 1px solid var(--line); }
.lead-form__in { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: start; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 14px; height: 8px;
  border-left: 2px solid var(--hot-a); border-bottom: 2px solid var(--hot-a);
  transform: rotate(-45deg);
}
.form { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form select {
  height: 48px; padding: 0 14px; border-radius: 12px; font-size: 16px;
  color: var(--text); background: #0E1216; border: 1px solid var(--line);
}
.form input:focus, .form select:focus { outline: none; border-color: rgba(255,140,40,.6); }
.form__msg { font-size: 14px; min-height: 20px; }
.form__msg--ok { color: #6BD98A; }
.form__msg--err { color: #FF8A6B; }

.foot { padding: 40px 0 60px; border-top: 1px solid var(--line); }
.foot p { color: #66727E; font-size: 13px; max-width: 780px; }

@media (max-width: 620px) {
  .top .btn { height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
  .logo { font-size: 18px; }
  .feed__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__in, .lead-form__in { grid-template-columns: 1fr; }
  .feed__cols, .steps, .plans { grid-template-columns: 1fr; }
  .feed__grid { grid-template-columns: repeat(3, 1fr); }
}
