/* ============================================================
   СТАЛЬТЕХНОПРОМ — одностраничный сайт
   Стили: тёмная «индустриальная» тема + оранжевый акцент
   ============================================================ */

/* ---------- Переменные и база ---------- */
:root {
  --bg: #0b0e12;
  --bg-soft: #0f141a;
  --surface: #151c24;
  --surface-2: #1a222c;
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef2f6;
  --muted: #9aa7b4;
  --accent: #ff6a00;
  --accent-light: #ff8a3d;
  --accent-soft: rgba(255, 106, 0, 0.12);
  --dark: #0b0e12;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1180px;
  --header-h: 76px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Consolas", "SFMono-Regular", "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #0b0e12; }

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: #0b0e12;
  font-weight: 700;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.section { padding: 100px 0; position: relative; }

.section--light {
  background: #f2f5f7;
  color: #111820;
  --text: #111820;
  --muted: #5c6874;
  --border: rgba(17, 24, 32, 0.12);
  --surface: #ffffff;
}

.section--dark { background: var(--bg); }

.section--seo {
  background: #e9edf1;
  color: #111820;
  padding: 64px 0;
  --text: #111820;
  --muted: #5c6874;
}

.section--steel { background: var(--bg); }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.eyebrow--light { color: var(--accent-light); }
.eyebrow--light::before { background: var(--accent-light); }

h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }

.accent { color: var(--accent); }
.hero h1 .accent { white-space: nowrap; }

.lead, .section-head__lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--accent {
  background: var(--accent);
  color: #0b0e12;
}
.btn--accent:hover { background: var(--accent-light); }

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 10px 16px; font-size: 0.88rem; border-radius: 8px; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }

.section--light .btn--ghost { border-color: rgba(17, 24, 32, 0.2); color: #111820; }
.section--light .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Тёмно-оранжевый для мелкого текста на светлом фоне: контраст 4.5:1 */
.section--light .eyebrow,
.section--light .link-arrow,
.section--light .step__num { color: #c2410c; }
.section--light .eyebrow::before { background: #c2410c; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-weight: 700;
  color: var(--accent);
  transition: gap 0.2s ease;
}
.link-arrow .icon { width: 18px; height: 18px; }
.link-arrow:hover { gap: 15px; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 14, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--container), 100% - 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand img { border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.045em;
}
.brand__text small {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__list a {
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
  padding: 6px 0;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav__list a:hover { color: var(--text); }
.nav__list a:hover::after { transform: scaleX(1); }

.nav__mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 16px; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.2s ease;
}
.header__phone .icon { width: 17px; height: 17px; color: var(--accent); }
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 76px) 0 90px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(255, 106, 0, 0.14), transparent 62%),
    radial-gradient(700px 500px at 8% 90%, rgba(60, 90, 120, 0.16), transparent 65%),
    linear-gradient(180deg, #0b0e12 0%, #0d1218 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 64px;
  align-items: center;
}

.hero h1 { margin: 0 0 22px; }

.hero__lead {
  color: var(--muted);
  font-size: 1.07rem;
  max-width: 56ch;
}

.hero__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 30px 0 34px;
}
.hero__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.93rem;
  color: #c7d1db;
}
.hero__list .icon {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: var(--accent);
  stroke-width: 2.2;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; }

.tech-card {
  position: relative;
  background: linear-gradient(165deg, #19212b 0%, #0f151c 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: rotate(-1.1deg);
}

.tech-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tech-card__dots { display: inline-flex; gap: 5px; margin-right: auto; }
.tech-card__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.tech-card__dots i:first-child { background: var(--accent); }
.tech-card__code { color: rgba(255, 255, 255, 0.35); }

.tech-card__drawing {
  margin: 14px -6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.tech-card__drawing svg { width: 100%; height: auto; }

.tech-card__specs {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.tech-card__specs li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
}
.tech-card__specs li:last-child { border-bottom: 0; }
.tech-card__specs span {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  flex: none;
}
.tech-card__specs strong { font-weight: 600; text-align: right; color: #cbd5df; }

.hero__badge {
  position: absolute;
  right: 20px;
  bottom: -18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border-radius: 999px;
  background: #0b0e12;
  border: 1px solid rgba(255, 106, 0, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: rotate(1.4deg);
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.18);
}

/* ---------- Бегущая строка ---------- */
.ticker {
  position: relative;
  background: var(--accent);
  color: #0b0e12;
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 26px;
}
.ticker i {
  width: 6px;
  height: 6px;
  background: #0b0e12;
  transform: rotate(45deg);
  flex: none;
  opacity: 0.6;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Заголовок секции ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}
.section-head h2 { max-width: 20ch; }
.section-head__lead { justify-self: end; max-width: 44ch; }

/* ---------- Услуги ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: 0 18px 40px rgba(17, 24, 32, 0.08);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff0e4;
  color: var(--accent);
}
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card__num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgba(17, 24, 32, 0.3);
  letter-spacing: 0.08em;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.94rem; }

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
}
.service-card__tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 32, 0.05);
  border: 1px solid rgba(17, 24, 32, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  color: #4a5763;
}

/* ---------- О компании ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 80px;
  align-items: center;
}
.about__content h2 { margin-bottom: 24px; max-width: 22ch; }
.about__content p { color: var(--muted); margin-bottom: 16px; max-width: 54ch; }

.about__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.fact:hover { border-color: rgba(255, 106, 0, 0.4); transform: translateY(-3px); }
.fact__value {
  font-family: var(--mono);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.fact__label { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* ---------- Нержавейка ---------- */
.steel-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 40px;
  align-items: center;
  padding: 64px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 106, 0, 0.28);
  background:
    radial-gradient(600px 320px at 88% 20%, rgba(255, 106, 0, 0.18), transparent 65%),
    linear-gradient(140deg, #161d25 0%, #0d1218 70%);
  overflow: hidden;
}
.steel-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent);
}
.steel-box h2 { margin-bottom: 20px; max-width: 24ch; }
.steel-box p { color: var(--muted); max-width: 58ch; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.chips li {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.83rem;
  font-weight: 600;
  color: #c9d3dd;
}

.steel-box__mark {
  text-align: right;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  user-select: none;
}
.steel-box__mark span {
  display: block;
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.steel-box__mark small {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  -webkit-text-stroke: 0;
}

/* ---------- Этапы ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::after {
  content: "";
  position: absolute;
  top: 50px;
  right: -20px;
  width: 20px;
  height: 1px;
  background: rgba(17, 24, 32, 0.18);
}
.step:last-child::after { display: none; }
.step__num {
  display: block;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step h3 { margin-bottom: 10px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Работы ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.work {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.work:hover { transform: translateY(-4px); border-color: rgba(255, 106, 0, 0.4); }
.work__img { background: #0d1218; overflow: hidden; }
.work__img img { width: 100%; transition: transform 0.5s ease; }
.work:hover .work__img img { transform: scale(1.03); }
.work figcaption { padding: 22px 24px 26px; }
.work h3 { margin-bottom: 8px; }
.work p { color: var(--muted); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: start;
}
.faq__head { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__head h2 { margin-bottom: 18px; }
.faq__note { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }

.faq__list { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 24px;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(255, 106, 0, 0.4); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(17, 24, 32, 0.05);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: #fff0e4; }
.faq-item p {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 65ch;
}

/* ---------- SEO-текст ---------- */
.seo-text { max-width: 900px; }
.seo-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 16px; }
.seo-text p { color: var(--muted); font-size: 0.95rem; }
.seo-text p + p { margin-top: 12px; }

/* ---------- Контакты ---------- */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}
.contacts__info h2 { margin-bottom: 20px; }
.contacts__lead { color: var(--muted); max-width: 46ch; }

.contact-list {
  display: grid;
  gap: 18px;
  margin: 34px 0 30px;
}
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 106, 0, 0.25);
  color: var(--accent);
}
.contact-list__icon .icon { width: 19px; height: 19px; }
.contact-list__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 2px;
}
.contact-list__value {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}
a.contact-list__value:hover { color: var(--accent); }
.contact-list__sub { display: block; font-size: 0.82rem; color: var(--muted); }

.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.map-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(130deg, #131a22, #0d1218);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.map-card:hover { border-color: rgba(255, 106, 0, 0.45); }
.map-card__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 85%);
}
.map-card__pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0e12;
}
.map-card__pin .icon { width: 21px; height: 21px; }
.map-card__text { position: relative; display: flex; flex-direction: column; line-height: 1.35; }
.map-card__text strong { font-size: 0.95rem; }
.map-card__text small { font-size: 0.78rem; color: var(--muted); }
.map-card__arrow { position: relative; margin-left: auto; color: var(--accent); width: 18px; height: 18px; }

/* ---------- Форма ---------- */
.contacts__form-wrap { position: relative; }

.form {
  background: linear-gradient(165deg, #151d26 0%, #10161d 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
  color-scheme: dark;
}
.form h3 { font-size: 1.45rem; margin-bottom: 6px; }
.form__note { color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; }

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field { display: block; margin-bottom: 14px; }
.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b9c5d0;
}
.req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 16, 0.65);
  color: var(--text);
  font-size: 0.93rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.28); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(8, 12, 16, 0.9);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #e5484d; }

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 20px;
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkbox a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }

.form__submit { width: 100%; }
.form__status { margin-top: 14px; font-size: 0.85rem; min-height: 1.2em; }
.form__status.is-success { color: #58c27d; }
.form__status.is-error { color: #ff7b7b; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Подвал ---------- */
.footer {
  background: #080a0d;
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 48px;
}
.footer__brand p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  max-width: 36ch;
}
.footer h4 {
  margin-bottom: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}
.footer__nav ul,
.footer__contacts ul { display: grid; gap: 9px; }
.footer__nav a,
.footer__contacts li {
  font-size: 0.87rem;
  color: var(--muted);
}
.footer__nav a:hover,
.footer__contacts a:hover { color: var(--accent); }
.footer__contacts .btn { margin-top: 20px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Cookie ---------- */
.cookie {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 70;
  width: min(400px, calc(100% - 44px));
  padding: 20px;
  border-radius: 14px;
  background: rgba(17, 23, 30, 0.97);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}
.cookie p { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.cookie a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.cookie[hidden] { display: none; }

/* ---------- Анимации появления ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Юридическая страница ---------- */
.legal-page {
  min-height: 100vh;
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--bg);
}
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 46px;
}
.legal-header .brand__text small { display: none; }
.legal {
  max-width: 820px;
}
.legal h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.legal .legal__updated { color: var(--muted); font-size: 0.82rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal p, .legal li { color: #b7c2cd; font-size: 0.94rem; }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { margin: 10px 0 0 20px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal .legal__note {
  margin: 30px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 106, 0, 0.07);
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
  color: #d6dde5;
}
.legal a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.legal .btn { margin-top: 40px; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1100px) {
  .nav__list { gap: 18px; }
  .header__phone span { display: none; }
  .header__phone { padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
  .hero__grid { gap: 40px; }
  .about { gap: 48px; }
  .faq { gap: 44px; }
  .contacts { gap: 44px; }
}

@media (max-width: 1024px) {
  .burger { display: flex; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    padding: 28px 24px 40px;
    background: rgba(11, 14, 18, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .nav__list li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav__list a { display: block; padding: 16px 0; font-size: 1.1rem; color: var(--text); }
  .nav__list a::after { display: none; }
  .nav__mobile {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    justify-items: start;
  }
  .nav__mobile-phone { font-size: 1.3rem; font-weight: 800; }
  .nav__mobile-mail { color: var(--muted); font-size: 0.95rem; }
  .nav__mobile .btn { margin-top: 8px; }

  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .tech-card { transform: none; }
  .hero__badge { right: 8px; }

  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .section-head__lead { justify-self: start; }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .about__facts { max-width: 640px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }

  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works .work:last-child { grid-column: 1 / -1; }
  .works .work:last-child .work__img img { max-height: 420px; object-fit: cover; }

  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .contacts { grid-template-columns: 1fr; }
  .form { max-width: 680px; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}

@media (max-width: 720px) {
  .container, .header__inner { width: min(var(--container), 100% - 32px); }

  h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }

  .brand__text strong { font-size: 0.86rem; }
  .brand__text small { font-size: 0.64rem; }

  .hero { padding-bottom: 64px; }
  .hero__list { grid-template-columns: 1fr; gap: 8px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__badge { bottom: -16px; right: 50%; transform: translateX(50%); }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  .services { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 24px; }

  .about__facts { grid-template-columns: 1fr; gap: 12px; }
  .fact { padding: 22px; }

  .steel-box { grid-template-columns: 1fr; padding: 34px 26px; gap: 26px; }
  .steel-box__mark { text-align: left; }

  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px; }

  .works { grid-template-columns: 1fr; }
  .works .work:last-child { grid-column: auto; }

  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }

  .footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; }

  .cookie { left: 16px; right: 16px; bottom: 16px; width: auto; }

  .legal-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 420px) {
  .header__phone { display: none; }
  .tech-card { padding: 16px; }
  .tech-card__specs li { flex-direction: column; gap: 2px; }
  .tech-card__specs strong { text-align: left; }
}

/* ---------- Доступность: меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* ---------- Печать ---------- */
@media print {
  .header, .ticker, .cookie, .hero__visual, .contacts__form-wrap, .footer__nav, .footer__contacts .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero { padding: 20px 0; background: #fff !important; color: #000 !important; }
  .section * { color: #000 !important; }
}
