/* ---------- Базовые переменные и темы ---------- */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-strip: #fbfbfc;
  --fg: #1a1d21;
  --fg-muted: #5b6470;
  --fg-faint: #8a929c;
  --accent: #c8362d;
  --accent-hover: #a82a22;
  --accent-soft: rgba(200, 54, 45, .08);
  --border: #e2e5ea;
  --card-bg: #ffffff;
  --shadow: 0 1px 2px rgba(20, 25, 35, .06), 0 4px 16px rgba(20, 25, 35, .05);

  /* фирменные цвета 1С — для подсветки плашек с конфигурациями */
  --c1c-yellow: #ffd200;
  --c1c-yellow-edge: #e0b900;
  --c1c-red: #d5292f;
  --c1c-glow: rgba(255, 210, 0, .34);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --bg-alt: #191d23;
    --bg-strip: #171a20;
    --fg: #e8eaed;
    --fg-muted: #9aa3af;
    --fg-faint: #6f7883;
    --accent: #f0655a;
    --accent-hover: #ff7d72;
    --accent-soft: rgba(240, 101, 90, .12);
    --border: #272c34;
    --card-bg: #1b1f26;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .2);

    --c1c-yellow: #ffd42e;
    --c1c-yellow-edge: #ffd42e;
    --c1c-red: #c8221f;
    --c1c-glow: rgba(255, 212, 46, .22);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.25; margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.hero {
  position: relative;
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* мягкое пятно акцентного цвета в правом верхнем углу */
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--accent-soft);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.eyebrow {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 700;
  letter-spacing: -.022em;
  margin-bottom: 24px;
}

.lead {
  max-width: 62ch;
  margin: 0;
  font-size: 18px;
  color: var(--fg-muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease,
              color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

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

.btn-ghost { border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Полоса с конфигурациями ---------- */

.strip {
  background: var(--bg-strip);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}

.strip-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  font-size: 14.5px;
  font-weight: 550;
  color: var(--fg-muted);
  white-space: nowrap;
  cursor: default;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease, box-shadow .18s ease;
}

/* точка-маркер слева от названия */
.chips li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-faint);
  flex: none;
  transition: background-color .18s ease, transform .18s ease;
}

@media (hover: hover) {
  .chips li:hover {
    background: var(--c1c-yellow);
    border-color: var(--c1c-yellow-edge);
    color: #23262b;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--c1c-glow);
  }

  .chips li:hover::before {
    background: var(--c1c-red);
    transform: scale(1.15);
  }
}

/* ---------- Секции ---------- */

.section { padding: 76px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(25px, 3.6vw, 32px);
  font-weight: 700;
  letter-spacing: -.018em;
  margin-bottom: 36px;
}
.section h2 + .lead { margin-top: -16px; margin-bottom: 32px; }

/* ---------- Карточки услуг ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card h3 {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 12px;
}

.card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--fg-muted);
}

/* ---------- Порядок работы ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.steps li {
  counter-increment: step;
  padding-left: 56px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.steps h3 {
  font-size: 17.5px;
  font-weight: 650;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  font-size: 15.5px;
  color: var(--fg-muted);
}

/* ---------- Контакты ---------- */

.contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 460px;
}

.contacts li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s ease;
}
.contacts li:hover { border-color: var(--accent); }

.contact-label {
  flex: 0 0 88px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.contacts a { font-size: 17px; font-weight: 550; }

/* ---------- Подвал ---------- */

.footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-muted);
}

.disclaimer {
  margin-top: 14px !important;
  max-width: 70ch;
  font-size: 12.5px !important;
  line-height: 1.55;
  color: var(--fg-faint) !important;
}

/* ---------- Мобильные ---------- */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 62px 0 54px; }
  .hero::before { width: 340px; height: 340px; top: -140px; right: -110px; }
  .section { padding: 58px 0; }
  .cta { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .chips li { white-space: normal; }
  .contacts li { flex-direction: column; gap: 2px; }
  .contact-label { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover, .card:hover, .chips li:hover { transform: none; }
  .chips li:hover::before { transform: none; }
}
