/* Видно ли (vidnoli.ru) — графитовая гамма, акцент янтарно-оранжевый */

:root {
  --graphite: #1f2937;
  --graphite-deep: #111827;
  --ink: #374151;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f4f4f5;
  --line: #e5e7eb;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-ink: #ffffff;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow { max-width: 760px; }

h1, h2, h3 {
  color: var(--graphite);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }

/* Кнопки */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--large { font-size: 1.1rem; padding: 16px 32px; }
.btn--small { font-size: 0.9rem; padding: 9px 18px; }
.btn--full { width: 100%; }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.header--scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--graphite);
  letter-spacing: -0.02em;
}

.logo em {
  font-style: normal;
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--graphite-deep);
  padding: 96px 0 88px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 15% 0%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(500px 300px at 85% 25%, rgba(249, 115, 22, 0.10), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero__chat {
  max-width: 460px;
  margin: 48px auto 0;
  text-align: left;
  background: var(--graphite);
  border: 1px solid #374151;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: rotate(-1.2deg);
  animation: hero-chat-float 5s ease-in-out infinite;
}

@keyframes hero-chat-float {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50% { transform: rotate(-1.2deg) translateY(-8px); }
}

.hero__chat-q {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
}

.hero__chat-a {
  background: #374151;
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: 12px 12px 4px 12px;
}

.hero__chat-note {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 12px;
}

.hero h1 { color: #ffffff; max-width: 760px; margin: 0 auto 20px; }

.hero__sub {
  color: #d1d5db;
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero__micro {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 16px;
}

/* Секции */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--graphite); }
.section--dark h2 { color: #ffffff; }

.section__lead {
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 20px;
}

/* Карточки */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card__icon svg { width: 24px; height: 24px; }

.section--alt .card { background: #ffffff; }

.card--check { border-top: 3px solid var(--accent); }

.card p { font-size: 0.95rem; }

/* Шаги */
.steps {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 20px;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Блок отчёта */
.report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
}

.list { list-style: none; display: grid; gap: 14px; margin-bottom: 20px; }

.list li {
  padding-left: 26px;
  position: relative;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.list--dark li::before { background: var(--accent); }

.report__note {
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 24px;
}

.report__mock {
  background: var(--graphite-deep);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  display: grid;
  gap: 10px;
}

.report__mock-head {
  color: #ffffff;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #374151;
}

.report__mock-row {
  color: #e5e7eb;
  padding: 8px 10px;
  border-radius: 8px;
  background: #1f2937;
  border-left: 3px solid var(--muted);
}

.report__mock-row--ok { border-left-color: var(--ok); }
.report__mock-row--warn { border-left-color: var(--warn); }
.report__mock-row--bad { border-left-color: var(--bad); }

.report__mock-foot { color: #9ca3af; font-style: italic; }

/* Цена */
.price-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}

.price-card__sum {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--graphite);
  margin-bottom: 20px;
}

.price-card__badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.price-card .btn { margin-top: 8px; }

.price-card__micro {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 14px;
}

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 24px; }

.faq__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item.open {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--graphite);
  text-align: left;
  cursor: pointer;
}

.faq__chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.faq__item.open .faq__chevron { transform: rotate(180deg); }

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq__item.open .faq__answer { grid-template-rows: 1fr; }

.faq__answer-inner { overflow: hidden; }

.faq__answer p { padding-top: 12px; font-size: 0.97rem; }

/* Появление при скролле */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__chat { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .faq__answer, .faq__chevron, .card { transition: none; }
}

/* Форма */
.form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
}

.form__field { display: grid; gap: 6px; }

.form__field span {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--graphite);
}

.form__field input {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form__field input.is-error { border-color: var(--bad); }

.form__status { font-size: 0.95rem; min-height: 1.4em; }
.form__status--ok { color: var(--ok); }
.form__status--error { color: var(--bad); }

.form__micro { font-size: 0.82rem; color: var(--muted); }

.form__micro a { color: var(--muted); text-decoration: underline; }
.form__micro a:hover { color: var(--accent); }

.form__hint { font-size: 0.8rem; color: var(--muted); }

/* Футер */
.footer {
  background: var(--graphite-deep);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer__legal { color: #6b7280; font-size: 0.82rem; }

.logo--footer { color: #ffffff; }
.logo--footer em { color: var(--accent); }

.logo--link { text-decoration: none; }

.footer__link { color: #9ca3af; text-decoration: none; }
.footer__link:hover { color: #ffffff; }

/* Адаптив */
@media (max-width: 800px) {
  .report { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__contacts { align-items: flex-start; }
}
