/* =========================================================
   ПРОМОПТ — корпоративный сайт. Минималистичная промышленная палитра.
   Палитра: тёмно-синий #0F2A44, оранжевый акцент #F26B1F,
   серый #6B7280 / #E5E7EB, белый #FFFFFF.
   ========================================================= */

:root {
  --c-primary: #0F2A44;          /* тёмно-синий — основной */
  --c-primary-dark: #0A1F33;
  --c-primary-light: #1E3A5F;
  --c-accent: #F26B1F;           /* оранжевый — акценты, CTA */
  --c-accent-dark: #D9551A;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F5F7FA;
  --c-text: #1F2937;
  --c-muted: #6B7280;
  --c-border: #E5E7EB;
  --c-success: #16A34A;

  --shadow-sm: 0 2px 8px rgba(15, 42, 68, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 42, 68, 0.10);

  --radius: 6px;
  --radius-lg: 12px;

  --max-width: 1200px;
  --header-height: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { color: var(--c-primary); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

/* ---------- Layout ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--c-bg-alt); }
.section__title { text-align: center; margin-bottom: 16px; }
.section__lead { text-align: center; color: var(--c-muted); max-width: 760px; margin: 0 auto 56px; font-size: 18px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--c-border);
  height: var(--header-height);
  display: flex; align-items: center;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--c-primary); letter-spacing: 1.5px; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  display: grid; place-items: center;
  position: relative;
}
.logo__mark::after {
  content: ''; width: 18px; height: 18px;
  background: var(--c-accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.logo small { display: block; font-size: 10px; color: var(--c-muted); font-weight: 500; letter-spacing: 0.5px; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--c-text); font-weight: 500; font-size: 15px; }
.nav a.is-active, .nav a:hover { color: var(--c-accent); }

.header__contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.header__phone { color: var(--c-primary); font-weight: 700; font-size: 17px; }
.header__email { color: var(--c-muted); font-size: 13px; }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 36px; height: 36px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--c-primary); margin: 5px auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius); font-weight: 600; font-size: 15px; cursor: pointer; transition: all .2s ease; border: 2px solid transparent; text-align: center; line-height: 1; }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: #fff; color: var(--c-primary); }
.btn--outline { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Hero / Banner ---------- */
.hero {
  position: relative;
  min-height: 580px;
  background:
    linear-gradient(135deg, rgba(15,42,68,0.92) 0%, rgba(15,42,68,0.78) 100%),
    url('../img/hero-factory.svg') center/cover no-repeat;
  color: #fff;
  display: flex; align-items: center;
  padding: 80px 0;
}
.hero__content { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--c-accent); }
.hero__lead { font-size: 19px; color: rgba(255,255,255,0.88); margin-bottom: 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Banner-cards (для главной) ---------- */
.banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex; align-items: flex-end;
  padding: 28px;
  color: #fff;
  text-decoration: none;
  background: var(--c-primary);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,42,68,0.35) 0%, rgba(15,42,68,0.85) 90%);
  z-index: -1;
}
.banner__bg { position: absolute; inset: 0; z-index: -2; }
.banner__bg svg { width: 100%; height: 100%; }
.banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: #fff; }
.banner h3 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.banner p { color: rgba(255,255,255,0.85); margin: 0; font-size: 14px; }
.banner__arrow { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--c-accent); display: grid; place-items: center; color: #fff; font-size: 18px; }

/* ---------- Cards / Features ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .2s ease;
}
.card:hover { border-color: var(--c-accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon { width: 52px; height: 52px; background: rgba(242, 107, 31, 0.1); color: var(--c-accent); border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; font-size: 24px; font-weight: 700; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--c-muted); font-size: 15px; margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.stat__num { font-size: 44px; font-weight: 800; color: var(--c-accent); line-height: 1; margin-bottom: 8px; }
.stat__label { color: var(--c-muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.industry { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); transition: all .2s ease; }
.industry:hover { border-color: var(--c-accent); transform: translateX(2px); }
.industry__icon { width: 36px; height: 36px; background: var(--c-primary); color: #fff; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 18px; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: #fff; padding: 60px 0;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: var(--c-accent); opacity: 0.12;
  border-radius: 50%;
}
.cta-strip h2 { color: #fff; }
.cta-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form--wide { max-width: 100%; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--c-text); }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: #fff; color: var(--c-text); transition: border-color .2s ease;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--c-accent); }
.form textarea { min-height: 130px; resize: vertical; }
.form__hint { font-size: 13px; color: var(--c-muted); margin-top: -4px; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--c-muted); }
.form__check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert--success { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.alert--error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ---------- Page hero (внутренние) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -80px; bottom: -80px;
  width: 320px; height: 320px;
  background: var(--c-accent); opacity: 0.10; border-radius: 50%;
}
.page-hero h1 { color: #fff; }
.page-hero__lead { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 760px; }
.breadcrumbs { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 12px; }
.breadcrumbs a { color: rgba(255,255,255,0.85); }
.breadcrumbs a:hover { color: var(--c-accent); }

/* ---------- Content / prose ---------- */
.prose { font-size: 16px; line-height: 1.75; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul li { margin-bottom: 8px; }
.prose strong { color: var(--c-primary); }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.split--reverse { grid-template-columns: 1fr 1.2fr; }
.split__media { background: var(--c-bg-alt); border-radius: var(--radius-lg); padding: 32px; }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.case {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 28px; transition: all .2s ease;
}
.case:hover { box-shadow: var(--shadow-md); border-color: var(--c-accent); }
.case__industry { display: inline-block; padding: 4px 12px; background: rgba(242, 107, 31, 0.10); color: var(--c-accent); border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.case h3 { font-size: 19px; margin-bottom: 12px; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 14px 0 0; }
.case dt { color: var(--c-muted); }
.case dd { margin: 0; color: var(--c-text); font-weight: 500; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; counter-reset: step; }
.process__step { position: relative; padding: 24px 24px 24px 70px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.process__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 18px; top: 22px;
  font-size: 32px; font-weight: 800; color: var(--c-accent);
  font-family: 'Inter', sans-serif;
}
.process__step h4 { font-size: 16px; margin-bottom: 6px; }
.process__step p { color: var(--c-muted); font-size: 14px; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--c-primary-dark); color: rgba(255,255,255,0.75); padding: 60px 0 24px; font-size: 14px; }
.footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--c-accent); }
.footer__bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.55); }
.footer__messengers { display: flex; gap: 10px; margin-top: 12px; }
.footer__messengers a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: grid; place-items: center; color: #fff; transition: all .2s ease;
}
.footer__messengers a:hover { background: var(--c-accent); }

/* ---------- Contacts grid ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-bottom: 48px; }
.contact-block { padding: 28px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.contact-block h4 { font-size: 14px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.contact-block .big { font-size: 18px; font-weight: 600; color: var(--c-primary); }

.requisites { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 28px; }
.requisites table { width: 100%; border-collapse: collapse; font-size: 14px; }
.requisites td { padding: 10px 0; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.requisites td:first-child { color: var(--c-muted); width: 35%; padding-right: 16px; }
.requisites td:last-child { color: var(--c-text); }

/* ---------- Slider (главная) ---------- */
.slider { position: relative; }
.slider__slides { display: flex; overflow: hidden; }
.slider__slide { min-width: 100%; transition: transform .5s ease; }
.slider__dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.slider__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); border: 0; cursor: pointer; padding: 0; }
.slider__dot.is-active { background: var(--c-accent); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--c-border); }
.table th { background: var(--c-bg-alt); color: var(--c-primary); font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-md); gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--c-border); }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: block; }
  .header__contacts { display: none; }
  .banner-grid { grid-template-columns: 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form__row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { min-height: 460px; padding: 56px 0; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
