/* Сайт ООО «ЭС ВЭ КУПЕРС» (svcoopers.ru) - темная инженерная тема */
:root {
  --bg: #0b1220;
  --bg2: #0d1626;
  --panel: #101a2d;
  --line: #1f2d47;
  --line2: #1a2740;
  --text: #dbe4f0;
  --muted: #8fa0b5;
  --muted2: #6b7c94;
  --accent: #38bdf8;
  --accent-btn: #0ea5e9;
  --accent-btn-h: #0284c7;
  --onec: #ffb02e;
  --flow: #ff8a3d;
  --ok: #34d399;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Фоновая сетка */
.grid-bg {
  position: fixed; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line2) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* Верхняя полоса */
.toprow { border-bottom: 1px solid var(--line); background: rgba(8,14,26,.9); font-size: 13px; }
.toprow-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.toprow-menu { display: flex; gap: 18px; flex-wrap: wrap; }
.toprow-menu a { color: var(--muted); text-decoration: none; }
.toprow-menu a:hover { color: var(--accent); }
.toprow-note { color: var(--muted); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .toprow-note { display: none; } }

/* Шапка */
.topbar { border-bottom: 1px solid var(--line); background: rgba(11,18,32,.85); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 20px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700;
  color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand .logo { color: var(--onec); display: inline-flex; align-items: center; }
.brand-name { white-space: nowrap; }
.onec { color: var(--onec); }
.menu { display: flex; gap: 18px; flex-wrap: nowrap; align-items: center;
  flex: 0 1 auto; min-width: 0; overflow: hidden; }
.menu a { white-space: nowrap; color: var(--muted); font-size: 15px; }
.menu a:hover { color: var(--text); text-decoration: none; }
.top-actions { display: flex; gap: 10px; flex: none; white-space: nowrap; }

/* Кнопки */
.btn { display: inline-block; padding: 11px 20px; border-radius: 9px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
button.btn { font-family: inherit; line-height: 1.2; }
button.btn-ghost { background: none; color: var(--text); }
.btn-primary { background: var(--accent-btn); color: #fff; }
.btn-primary:hover { background: var(--accent-btn-h); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Первый экран */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; padding: 68px 0 54px; align-items: center; }
.kicker { color: var(--onec); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
h1 { font-size: 44px; line-height: 1.15; margin: 0 0 20px; font-weight: 700; letter-spacing: -.02em; }
h1 span { color: var(--onec); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.hero-card h2 { font-size: 18px; margin: 0 0 6px; }
.hero-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 11px 0; border-top: 1px solid var(--line2); font-size: 14.5px; }
.hero-card li span { color: var(--muted); }
.hero-card li strong { color: var(--ok); font-weight: 500; font-size: 13.5px; white-space: nowrap; }

/* Секции */
.section { padding: 56px 0; border-top: 1px solid var(--line2); }
.section[id], [id] { scroll-margin-top: 76px; }
.section-head { margin-bottom: 28px; }
.section-head h3 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; max-width: 720px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.panel p { margin: 0 0 14px; color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }
.panel strong, .panel b { color: var(--text); }
.hl { color: var(--onec); }

/* Карточки направлений и каталога */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; }
.card h4 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; flex: 1; }
.card .badge { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600;
  color: var(--onec); border: 1px solid rgba(255,176,46,.35); background: rgba(255,176,46,.08);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.card .price-tag { font-size: 16px; font-weight: 700; color: var(--text); padding-top: 12px;
  border-top: 1px solid var(--line2); display: flex; align-items: center; justify-content: space-between; }
.card .price-tag small { font-weight: 400; font-size: 13px; color: var(--muted); }

/* Переключатель категорий каталога */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-tab { font-size: 14px; padding: 8px 15px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted); font-family: inherit; }
.cat-tab.on, .cat-tab:hover { border-color: var(--onec); color: var(--onec); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(56,189,248,.14); color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.step h4 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '-'; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Форма обратной связи */
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.cm-form { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; background: var(--panel); }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cm-input { width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text);
  font: inherit; font-size: 15px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.cm-input::placeholder { color: var(--muted); opacity: .8; }
.cm-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, .16); }
.cm-area { resize: vertical; min-height: 104px; }
.cm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cm-note { font-size: 13.5px; color: var(--muted); }
.cm-status { font-size: 14px; color: var(--ok); display: none; }
.cm-status.err { color: #f87171; }

/* О компании: иллюстрации */
.about-fig { margin: 22px 0 30px; }
.about-fig img { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line2); }
.about-fig.small img { max-width: min(100%, 640px); }
.about-fig.wide img { max-width: min(100%, 760px); }
.about-fig figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Юридические и контактные страницы */
.legal { padding-top: 48px; padding-bottom: 24px; }
.legal h1 { font-size: 34px; margin-bottom: 8px; }
.legal .updated { color: var(--muted2); font-size: 14px; margin-bottom: 28px; }
.legal .panel p { color: var(--muted); }
.legal .panel h3 { color: var(--text); font-size: 18px; margin: 26px 0 10px; }
.legal .panel h3:first-child { margin-top: 0; }
.legal ol, .legal ul, .list { color: var(--muted); padding-left: 22px; }
.legal li, .list li { margin-bottom: 8px; }
.list b { color: var(--text); }
.legal + .section > h2:first-child,
.legal + .section > h3:first-child { margin-top: 0; }
.legal:has(+ .section) { padding-bottom: 8px; }

/* Подвал */
.footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: 14.5px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer h5 { color: var(--text); font-size: 15px; margin: 0 0 12px; }
.footer a { color: var(--muted); }
.footer-cols a { display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line2); padding-top: 20px; font-size: 13.5px; color: var(--muted2); }

@media (max-width: 1080px) {
  .menu { gap: 13px; }
  .menu a { font-size: 14px; }
  .brand { font-size: 18px; }
}
@media (max-width: 960px) {
  .hero, .lead-grid { grid-template-columns: 1fr; padding: 44px 0 36px; gap: 28px; }
  h1 { font-size: 34px; }
  .cards, .steps, .footer-cols, .cm-row { grid-template-columns: 1fr; }
  .menu { display: none; }
  .section { padding: 40px 0; }
  .section-head h3 { font-size: 25px; }
}
@media (max-width: 520px) {
  .topbar-inner { gap: 10px; }
  .top-actions .btn-ghost { display: none; }
  .brand-name { font-size: 17px; }
}
