/* РСК — новый сайт. Цвета с логотипа «РСКпром»: оранжевый и графит. */
:root {
  --accent: #dd6a33;
  --accent-dark: #c2541f;
  --ink: #16191d;
  --ink-2: #3a4048;
  --muted: #6b7280;
  --line: #e4e6ea;
  --bg: #ffffff;
  --bg-2: #f4f5f7;
  --dark: #1c2026;
  --dark-2: #262b33;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(16, 20, 26, .08);
  --font: "Jost", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.rsk-locked { overflow: hidden; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--dark); color: #fff; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 760px; }
.section--dark .lead { color: #c9ced6; }

/* ---------- кнопки ---------- */
.btn, .rsk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  padding: 14px 22px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; text-decoration: none; white-space: nowrap;
  transition: background .15s;
}
.btn:hover, .rsk-btn:hover { background: var(--accent-dark); }
.btn--ghost, .rsk-btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover, .rsk-btn--ghost:hover { background: rgba(255,255,255,.08); }
.rsk-btn:disabled { opacity: .6; cursor: default; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header__row { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.nav a:hover { color: var(--accent); }
.header__phone { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.burger { display: none; }

/* ---------- первый экран ---------- */
.hero { position: relative; color: #fff; background: var(--dark) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,21,26,.92) 0%, rgba(18,21,26,.78) 48%, rgba(18,21,26,.45) 100%); }
.hero__inner { position: relative; padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); max-width: 820px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: clamp(17px, 2vw, 20px); color: #d5d9df; max-width: 640px; }
.hero-search { display: flex; gap: 8px; margin-top: 30px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 18px; padding: 10px 12px; color: var(--ink); background: transparent; }
.hero-search .btn { padding-inline: 26px; }
.hero__examples { margin-top: 14px; font-size: 14px; color: #aeb5bf; }
.hero__examples button { font: inherit; color: #fff; background: rgba(255,255,255,.1); border: 0; border-radius: 6px; padding: 3px 9px; margin: 4px 4px 0 0; cursor: pointer; font-family: var(--mono); font-size: 13px; }
.hero__examples button:hover { background: var(--accent); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.hero__facts div { font-size: 14px; color: #aeb5bf; }
.hero__facts b { display: block; font-size: 28px; color: #fff; font-weight: 600; }

/* ---------- сетки и карточки ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 10px; }
.card ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.card li { margin: 4px 0; }
.card__num { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .1em; margin-bottom: 10px; }
.section--dark .card { background: var(--dark-2); border-color: #333a44; }
.section--dark .card ul { color: #c9ced6; }

.dir { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.dir:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dir img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.dir__body { padding: 20px 22px 24px; }
.dir__body p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* поставка комплектующих — главный блок */
.supply { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.supply__list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.supply__list li { position: relative; padding-left: 30px; color: #d5d9df; }
.supply__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 3px; background: var(--accent); }
.supply__brands { display: flex; flex-wrap: wrap; gap: 8px; }
.supply__brands span { padding: 7px 12px; border-radius: 6px; background: var(--dark-2); border: 1px solid #333a44; font-size: 14px; color: #e6e9ee; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { counter-increment: s; position: relative; padding: 18px 18px 18px 64px; background: var(--dark-2); border: 1px solid #333a44; border-radius: var(--radius); }
.step::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-weight: 600; }
.step b { display: block; margin-bottom: 2px; }
.step span { color: #aeb5bf; font-size: 15px; }

/* проекты */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.tabs button { font: inherit; font-size: 15px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); }
.tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.project { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--bg-2); }
.project__body { padding: 16px 18px 20px; }
.project__group { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; }
.project__body h3 { font-size: 17px; margin: 6px 0 0; }

/* новости */
.news { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.news img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--bg-2); }
.news__body { padding: 18px 20px 22px; }
.news time { font-size: 13px; color: var(--muted); }
.news p { font-size: 15px; color: var(--ink-2); margin: 8px 0 0; }

/* контакты */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contacts dl { margin: 0; display: grid; gap: 18px; }
.contacts dt { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contacts dd { margin: 2px 0 0; font-size: 20px; font-weight: 500; }
.contacts dd a { color: var(--ink); text-decoration: none; }
.cta { background: var(--accent); color: #fff; border-radius: 14px; padding: 34px; }
.cta p { color: #ffe9de; }
.cta .btn { background: #fff; color: var(--accent-dark); }
.cta .btn:hover { background: #fff3ec; }

.footer { background: var(--dark); color: #9aa2ad; font-size: 14px; padding: 32px 0; }
.footer__row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer a { color: #c9ced6; }

/* ---------- окно поиска (js/search.js) ---------- */
.rsk-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(12,14,18,.62); display: flex; justify-content: center; align-items: flex-start; padding: 6vh 16px 16px; overflow-y: auto; }
.rsk-overlay[hidden] { display: none; }
.rsk-panel { width: min(820px, 100%); background: #fff; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.rsk-panel__head { display: flex; gap: 10px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.rsk-field { flex: 1; min-width: 0; display: flex; gap: 8px; padding: 6px; border: 2px solid var(--accent); border-radius: 10px; }
.rsk-field input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 18px; padding: 8px 10px; font-family: var(--mono); }
.rsk-close { flex-shrink: 0; width: 40px; height: 40px; border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); }
.rsk-close:hover { color: var(--ink); }
.rsk-panel__body { padding: 18px 20px 22px; }
.rsk-status { color: var(--ink-2); margin: 0 0 14px; }
.rsk-status--small { font-size: 14px; margin-top: 14px; }
.rsk-status--error { color: #b42318; }
.rsk-cards { display: grid; gap: 12px; }
.rsk-card { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; }
.rsk-card__pn { font-family: var(--mono); font-size: 17px; font-weight: 600; word-break: break-all; }
.rsk-card__name { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.rsk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rsk-chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.rsk-card__side { text-align: right; display: grid; justify-items: end; gap: 6px; flex-shrink: 0; }
.rsk-card__price { font-size: 22px; font-weight: 600; color: var(--accent-dark); white-space: nowrap; }
.rsk-card__price--ask { font-size: 17px; color: var(--ink-2); }
.rsk-card__unit { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: -4px; }
.rsk-empty { text-align: center; padding: 18px 8px 8px; }
.rsk-empty__title { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.rsk-form__title { font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.rsk-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 14px; }
.rsk-input { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.rsk-input--wide { grid-column: 1 / -1; }
.rsk-input input, .rsk-input textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #cfd3d9; border-radius: 8px; color: var(--ink); background: #fff; }
.rsk-input textarea { min-height: 80px; resize: vertical; }
.rsk-input input:focus, .rsk-input textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.rsk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rsk-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 16px 0 6px; }
.rsk-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.rsk-form__actions { margin-top: 12px; }

/* ---------- телефон ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav.is-open { display: grid; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); gap: 4px; }
  .nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: inline-grid; }
  .header__row { gap: 12px; }
  .header__phone { margin-left: auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .supply { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__row { height: 64px; }
  .nav.is-open { top: 64px; }
  .logo img { height: 36px; }
  .header__phone { display: none; }
  .header .icon-btn:first-of-type { margin-left: auto; }
  .grid--2, .grid--3, .grid--4, .contacts { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .rsk-overlay { padding: 0; }
  .rsk-panel { border-radius: 0; min-height: 100%; }
  .rsk-card { flex-direction: column; align-items: stretch; }
  .rsk-card__side { text-align: left; justify-items: start; grid-template-columns: 1fr auto; align-items: center; }
  .rsk-card__unit { grid-column: 1; margin-top: -6px; }
  .rsk-card__side .rsk-btn { grid-row: 1 / span 2; grid-column: 2; }
  .rsk-form__grid { grid-template-columns: 1fr; }
  .cta { padding: 26px 20px; }
}

/* ---------- два направления, ремонт, гособоронзаказ ---------- */
.hero__repair { margin-top: 18px; color: #d5d9df; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero__repair .btn { padding: 11px 18px; font-size: 15px; }
.duo-section { padding: 0; margin-top: -40px; position: relative; z-index: 2; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo__card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s; }
.duo__card:hover { transform: translateY(-3px); }
.duo__card h2 { font-size: clamp(24px, 3vw, 32px); }
.duo__card p { color: var(--ink-2); }
.duo__card--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.duo__card--accent .eyebrow { color: #ffe1d1; }
.duo__card--accent p { color: #fff1e9; }
.duo__more { font-weight: 600; color: var(--accent-dark); }
.duo__card--accent .duo__more { color: #fff; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; counter-reset: f; }
.flow__step { counter-increment: f; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 66px; }
.flow__step::before { content: counter(f); position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 600; }
.flow__step b { display: block; margin-bottom: 4px; }
.flow__step span { color: var(--ink-2); font-size: 15px; }
.groups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.groups span { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.law__code { display: inline-block; font-weight: 600; font-size: 15px; color: #fff; background: var(--ink); border-radius: 6px; padding: 4px 10px; margin-bottom: 14px; }
.goz-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; padding: 24px; border-radius: var(--radius); background: var(--bg-2); }
.goz-note b { display: block; margin-bottom: 4px; }
.goz-note span { color: var(--ink-2); font-size: 15px; }
.project__body p { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
@media (max-width: 1080px) {
  .flow, .goz-note { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .duo, .flow, .goz-note { grid-template-columns: 1fr; }
  .duo-section { margin-top: -24px; }
  .duo__card { padding: 24px 20px; }
}
