/* Лендинг МОТОРИСТ УФА. Тёмное жёсткое направление.
   Правила: радиусы 0-2px, без теней и градиентов, разделение только линиями 1px. */
:root {
  --black: #0a0b0c;
  --panel: #101315;
  --panel-hover: #0e1113;
  --line: #22272b;
  --line-2: #333a40;
  --text: #eceef0;
  --muted: #8b959d;
  --accent: #ff4d00;
  --amber: #ffb000;
  --font: 'Rubik', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --container: 1320px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { width: min(100% - 40px, var(--container)); margin: 0 auto; }
.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10.5px;
  font-weight: 400;
}
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 12px 18px; background: var(--accent); color: #000; font-weight: 700;
}
.skip-link:focus-visible { top: 12px; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--black); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; }
.brand b { display: block; font-size: 16px; font-weight: 900; letter-spacing: .02em; line-height: 1; }
.brand span { display: block; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
.header-tel { font-weight: 700; font-size: 16px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); padding: 9px 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #000; padding: 13px 22px;
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid var(--accent); cursor: pointer;
}
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn:hover { background: #ff6320; border-color: #ff6320; }
.btn--ghost:hover { background: var(--panel); border-color: var(--muted); }

/* Герой */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.1) brightness(.55); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,11,12,.96) 0%, rgba(10,11,12,.86) 38%, rgba(10,11,12,.3) 78%, rgba(10,11,12,.5) 100%);
}
.hero__grid {
  position: absolute; inset: 0; left: 50%; transform: translateX(-50%);
  width: min(100% - 40px, var(--container));
  background-image: linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
.hero__inner { position: relative; padding: 76px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); padding: 7px 12px; color: var(--amber); margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--amber); }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 68px); line-height: .99; font-weight: 900;
  letter-spacing: -.03em; text-transform: uppercase; max-width: 17ch;
}
.hero h1 mark { background: none; color: var(--accent); }
.hero__lede { margin-top: 24px; max-width: 54ch; color: var(--muted); font-size: 16.5px; }
.hero__warranty {
  margin-top: 22px; padding: 14px 18px; border: 1px solid var(--line-2);
  border-left: 3px solid var(--amber); max-width: 60ch; font-size: 15px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Полоса цифр */
.stats { margin-top: 54px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__cell { padding: 22px 24px 26px 0; border-right: 1px solid var(--line); }
.stats__cell:last-child { border-right: 0; }
.stats__cell b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.stats__cell span { display: block; color: var(--muted); margin-top: 8px; }

/* Секции */
.sec { padding: 76px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; padding-bottom: 26px; border-bottom: 1px solid var(--line-2); }
.sec-head h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.04; max-width: 17ch; }
.sec-head p { color: var(--muted); font-size: 15px; max-width: 46ch; }

/* Кому подходим */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; }
.audience__col { padding: 26px 28px 28px 0; border-right: 1px solid var(--line); }
.audience__col:last-child { border-right: 0; }
.audience__col h3 { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.audience__col p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* Спецификация услуг и станочный прайс */
.spec { margin-top: 30px; }
.spec-row {
  display: grid; grid-template-columns: 62px 1.05fr 1.45fr 200px; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.spec-row:hover { background: var(--panel-hover); }
.spec-row__n { font-family: var(--mono); font-size: 13px; color: var(--line-2); }
.spec-row:hover .spec-row__n { color: var(--accent); }
.spec-row h3 { font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.spec-row h3 small {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 6px;
}
.spec-row p { color: var(--muted); font-size: 14.5px; }
.spec-row__price { text-align: right; font-weight: 700; font-size: 16px; }
.spec-row__price span {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-top: 6px;
}
.spec-note { margin-top: 22px; color: var(--muted); font-size: 14px; max-width: 70ch; }

/* Процесс */
.steps { margin-top: 30px; }
.step { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center; }
.step:hover { background: var(--panel-hover); }
.step__n { font-family: var(--mono); font-size: 26px; color: var(--line-2); }
.step:hover .step__n { color: var(--accent); }
.step h3 { font-size: 18px; font-weight: 700; text-transform: uppercase; }
.step p { color: var(--muted); font-size: 14.5px; }

/* Станочный цех */
.machining { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; margin-top: 34px; align-items: start; }
.machining__photo img { width: 100%; height: 420px; object-fit: cover; }
.machining__photo figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 10px; }
.machining__list { list-style: none; }
.machining__list li { padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.machining__list li::before { content: "—"; color: var(--line-2); }

/* Техника */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tags span { border: 1px solid var(--line-2); padding: 9px 14px; font-size: 13.5px; color: var(--text); }

/* Кто делает */
.founder { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 34px; align-items: center; }
.founder img { width: 100%; height: 380px; object-fit: cover; }
.founder p { color: var(--muted); font-size: 16px; }
.founder p + p { margin-top: 16px; }
.founder strong { color: var(--text); }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 34px; }
.gallery button { padding: 0; border: 0; background: none; cursor: pointer; display: block; position: relative; overflow: hidden; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .gallery img { transition: transform .2s ease; }
  .gallery button:hover img { transform: scale(1.06); }
}
.gallery figcaption {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding-top: 8px;
}
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(6, 7, 8, .96);
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 16px; padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(94vw, 1400px); max-height: 82vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 24px; background: none; border: 1px solid var(--line-2); color: var(--text); padding: 9px 14px; cursor: pointer; }

/* Организациям */
.biz { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 34px; }
.biz__item { padding: 24px 30px 26px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.biz__item:nth-child(2n) { border-right: 0; padding-left: 30px; }
.biz__item h3 { font-size: 17px; font-weight: 700; text-transform: uppercase; }
.biz__item p { color: var(--muted); font-size: 14.5px; margin-top: 9px; }

/* FAQ */
.faq { margin-top: 30px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text); cursor: pointer;
  padding: 22px 44px 22px 0; font-size: 17px; font-weight: 700; position: relative;
}
.faq__q::after { content: "+"; position: absolute; right: 8px; top: 20px; color: var(--accent); font-size: 22px; }
.faq__q[aria-expanded="true"]::after { content: "−"; }
.faq__a { display: none; padding: 0 0 22px; color: var(--muted); font-size: 15px; max-width: 78ch; }
.faq__a.is-open { display: block; }

/* Контакты */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; }
.contacts__col { padding: 24px 28px 26px 0; border-right: 1px solid var(--line); }
.contacts__col:last-child { border-right: 0; }
.contacts__col h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; }
.contacts__col dl { margin-top: 14px; }
.contacts__col dt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.contacts__col dd { font-size: 15.5px; font-weight: 500; }
.contacts__map { margin-top: 34px; border: 1px solid var(--line); }
.contacts__map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Быстрая заявка */
.quick { margin-top: 34px; border: 1px solid var(--line-2); padding: 28px 30px 30px; }
.quick h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.quick p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.quick-form { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 10px; margin-top: 20px; }
.quick-form input {
  background: var(--black); border: 1px solid var(--line-2); color: var(--text);
  padding: 13px 14px; font-size: 15px;
}
.quick-form input::placeholder { color: var(--muted); }
.quick-form input:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }

/* Подвал */
.site-footer { padding: 46px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer a:hover { color: var(--text); }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }

/* Мобильная нижняя панель */
.mobile-bar { display: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 980px) {
  .site-header .wrap { gap: 12px; }
  .site-header .wrap > * { min-width: 0; flex-shrink: 1; }
  .brand { min-width: 0; }
  .brand span.mono { display: none; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--black);
    border-bottom: 1px solid var(--line-2); padding: 8px 20px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-toggle { display: block; margin-left: auto; order: 3; flex-shrink: 0; }
  .header-tel { display: none; }
  .site-header .wrap > .btn { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__cell { padding: 18px 16px 20px 0; border-bottom: 1px solid var(--line); }
  .stats__cell:nth-child(2) { border-right: 0; }
  .audience { grid-template-columns: 1fr; }
  .audience__col { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .spec-row, .step { grid-template-columns: 1fr; gap: 8px; }
  .spec-row__price,   .machining { grid-template-columns: 1fr; gap: 24px; }
  .machining__photo img { height: 260px; }
  .founder, .biz { grid-template-columns: 1fr; }
  .biz__item { border-right: 0; padding-left: 0 !important; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; }
  .contacts__col { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-form { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 26px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--black); border-top: 1px solid var(--line-2);
  }
  .mobile-bar a {
    padding: 15px 0; text-align: center; font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: .04em;
  }
  .mobile-bar a + a { background: var(--accent); color: #000; }
  body { padding-bottom: 52px; }
}
@media (max-width: 560px) {
  .hero__inner { padding-top: 48px; }
  .hero__cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
