/* ============================================================
   bushenka.ru — статический сайт
   Дизайн: индустриальный «наряд-заказ» / спецификация
   Палитра: ink-blue + caution-amber + cloud-grey
   ============================================================ */

:root {
  --ink:      #14253B;   /* основной тёмный, шапка/футер/заголовки */
  --ink-2:    #1B2E47;   /* поверхности на тёмном */
  --ink-line: #2C3F5A;   /* линии на тёмном */
  --amber:    #F4A300;   /* акцент: CTA, цифры, выделения */
  --amber-d:  #D88F00;   /* амбер при наведении */
  --steel:    #5C6B7A;   /* приглушённый текст */
  --cloud:    #F4F6F8;   /* светлый фон секций */
  --line:     #E1E5EA;   /* хейрлайны на светлом */
  --white:    #FFFFFF;
  --text:     #1C2733;   /* основной текст */

  --maxw: 1160px;
  --gut: clamp(20px, 5vw, 56px);

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-mono: "Space Mono", ui-monospace, "Courier New", monospace;
}

/* -------- reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* -------- layout -------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--cloud { background: var(--cloud); }
.section--ink { background: var(--ink); color: #DCE3EC; }

/* -------- type -------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--amber); display: inline-block; }
.section--ink .eyebrow { color: var(--amber); }

.h-sec { font-size: clamp(32px, 5.2vw, 56px); text-transform: uppercase; color: var(--ink); }
.section--ink .h-sec { color: var(--white); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--steel); max-width: 60ch; }
.section--ink .lead { color: #AEBBCB; }

/* -------- buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 19px;
  text-transform: uppercase; letter-spacing: 0.03em;
  padding: 15px 30px; border: 2px solid transparent; border-radius: 2px;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-d); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--ink-line); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--white);
  border-bottom: 1px solid var(--ink-line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: flex; align-items: baseline; gap: 2px; font-family: var(--f-display); font-weight: 700; font-size: 25px; text-transform: uppercase; letter-spacing: 0.02em; }
.logo b { color: var(--white); }
.logo span { color: var(--amber); }
.logo small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--steel); margin-left: 6px; text-transform: uppercase; align-self: center; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 15px; color: #C4CFDC; padding: 6px 0; position: relative; transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--amber); }

.header-tel { font-family: var(--f-display); font-weight: 600; font-size: 21px; color: var(--white); white-space: nowrap; }
.header-cta { white-space: nowrap; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: transparent; border: 1px solid var(--ink-line); border-radius: 2px; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
.burger span { top: 21px; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 100% at 80% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero h1 {
  font-size: clamp(40px, 8.2vw, 92px);
  text-transform: uppercase;
  max-width: 16ch;
  margin: 16px 0 0;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero-sub { font-size: clamp(17px, 2.1vw, 21px); color: #AEBBCB; max-width: 52ch; margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-actions .tel-inline { font-family: var(--f-display); font-weight: 600; font-size: 24px; color: var(--white); }
.hero-actions .tel-inline small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--steel); text-transform: uppercase; }

.chips { display: flex; flex-wrap: wrap; gap: 0; margin-top: 48px; border-top: 1px solid var(--ink-line); }
.chip { flex: 1 1 200px; padding: 22px 24px 22px 0; border-right: 1px solid var(--ink-line); }
.chip:last-child { border-right: 0; }
.chip b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 22px; text-transform: uppercase; color: var(--white); }
.chip span { font-size: 14px; color: #93A2B4; }

/* ============================================================
   INVENTORY (что выкупаем)
   ============================================================ */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }
.sec-head .lead { margin: 12px 0 0; }

.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.section--cloud .inv-grid { background: var(--line); }
.inv-item { background: var(--white); padding: 28px 26px; display: flex; flex-direction: column; gap: 8px; transition: background .15s; }
.inv-item:hover { background: #FBFCFD; }
.inv-item .sku { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--amber-d); }
.inv-item h3 { font-size: 26px; text-transform: uppercase; color: var(--ink); }
.inv-item p { margin: 0; font-size: 15px; color: var(--steel); }

/* ============================================================
   PROCESS (как это работает)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); margin-top: 8px; }
.step { background: var(--ink); padding: 30px 24px 34px; }
.step .num { font-family: var(--f-mono); font-size: 13px; color: var(--amber); letter-spacing: .1em; }
.step h3 { font-size: 23px; text-transform: uppercase; color: var(--white); margin: 14px 0 10px; }
.step p { font-size: 14.5px; color: #9FAEC0; margin: 0; }
.process-note { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ============================================================
   WHY (преимущества)
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why { border-top: 3px solid var(--amber); padding-top: 20px; }
.why h3 { font-size: 24px; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.why p { margin: 0; font-size: 15.5px; color: var(--steel); }

/* ============================================================
   STATS strip
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.stat { background: var(--ink); padding: 36px 26px; }
.stat b { font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 6vw, 64px); color: var(--amber); line-height: 1; display: block; }
.stat span { font-size: 14px; color: #9FAEC0; margin-top: 10px; display: block; }

/* ============================================================
   FORM (наряд-заказ)
   ============================================================ */
.order { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--white); }
.order-aside { background: var(--ink); color: var(--white); padding: clamp(32px, 4vw, 48px); }
.order-aside .eyebrow { color: var(--amber); }
.order-aside h2 { font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; color: var(--white); }
.order-aside ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.order-aside li { display: flex; gap: 12px; font-size: 15.5px; color: #C4CFDC; align-items: flex-start; }
.order-aside li::before { content: "—"; color: var(--amber); font-family: var(--f-mono); }
.order-aside .ticket-id { margin-top: 30px; font-family: var(--f-mono); font-size: 12px; color: var(--steel); letter-spacing: .08em; border-top: 1px dashed var(--ink-line); padding-top: 18px; }

.order-form { padding: clamp(32px, 4vw, 48px); }
.fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.fieldset > legend { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; padding: 0; }
.reasons { display: flex; flex-wrap: wrap; gap: 10px; }
.reason input { position: absolute; opacity: 0; pointer-events: none; }
.reason span {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 14.5px; color: var(--text); transition: all .12s; user-select: none;
}
.reason input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.reason input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.reason:hover span { border-color: var(--steel); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--steel); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 16px; color: var(--text);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 2px; background: var(--white);
  transition: border-color .12s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 84px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--steel); margin: 4px 0 22px; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--ink); }
.consent a { color: var(--ink); text-decoration: underline; }
.order-form .btn { width: 100%; justify-content: center; }
.form-note { display: none; margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--amber); background: var(--cloud); font-size: 14.5px; }
.form-note.is-visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #AEBBCB; padding: 56px 0 28px; border-top: 1px solid var(--ink-line); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--ink-line); }
.foot-col h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin: 0 0 16px; font-weight: 400; }
.foot-col a { display: block; color: #C4CFDC; font-size: 15px; padding: 4px 0; }
.foot-col a:hover { color: var(--amber); }
.foot-tel { font-family: var(--f-display); font-weight: 600; font-size: 26px; color: var(--white); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 13px; color: var(--steel); }
.placeholder { color: var(--amber-d); background: rgba(244,163,0,.1); padding: 0 4px; border-radius: 2px; font-style: normal; }

/* ============================================================
   SUBPAGE bits
   ============================================================ */
.page-head { background: var(--ink); color: var(--white); padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 5vw, 60px); position: relative; }
.crumbs { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--steel); margin-bottom: 18px; }
.crumbs a { color: #9FAEC0; }
.crumbs a:hover { color: var(--amber); }
.page-head h1 { font-size: clamp(34px, 6vw, 68px); text-transform: uppercase; max-width: 18ch; }
.page-head .lead { color: #AEBBCB; margin-top: 18px; }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(26px, 3.4vw, 38px); text-transform: uppercase; color: var(--ink); margin: 40px 0 14px; }
.prose h3 { font-size: 23px; text-transform: uppercase; color: var(--ink); margin: 28px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 20px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--amber); }

/* ============================================================
   CASES (галерея выкупленного оборудования) + фото на страницах
   ============================================================ */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case { background: var(--ink); margin: 0; display: flex; flex-direction: column; }
.case img { width: 100%; height: 400px; object-fit: cover; background: var(--cloud); }
.case figcaption { padding: 18px 22px; background: var(--ink); }
.case figcaption span { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--amber); text-transform: uppercase; margin-bottom: 5px; }
.case figcaption span a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.case figcaption b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 24px; text-transform: uppercase; color: var(--white); line-height: 1.05; }

.media { margin: 0 0 30px; border: 1px solid var(--line); }
.media img { width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.media figcaption { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--steel); padding: 11px 15px; border-top: 1px solid var(--line); text-transform: uppercase; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .inv-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .order { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav, .header-cta, .header-tel { display: none; }
  .burger { display: block; }
  body.nav-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 70px;
    background: var(--ink-2); padding: 8px var(--gut) 18px; border-bottom: 1px solid var(--ink-line);
  }
  body.nav-open .nav a { padding: 13px 0; border-bottom: 1px solid var(--ink-line); font-size: 17px; }
  .chip { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--ink-line); padding: 16px 0; }
  .chip:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .case-grid { grid-template-columns: 1fr; }
  .inv-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { gap: 14px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .tel-inline { width: 100%; }
}

/* -------- a11y -------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.skip { position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
