/* ntp52.ru — вариант А «тёмный индустриальный». Токены из ДИЗАЙН.md */
:root {
  --clr-primary:     #00B8D4;
  --clr-primary-lt:  #E0F7FA;
  --clr-dark:        #0D1B2A;
  --clr-text:        #3D3D3D;
  --clr-heading:     #1A1A2E;
  --clr-bg:          #FFFFFF;
  --clr-bg-alt:      #F7F9FB;
  --clr-border:      #E0E6EC;
  --clr-white:       #FFFFFF;

  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --shadow-card:     0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-btn:      0 4px 12px rgba(0, 184, 212, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.7;
  color: var(--clr-text); background: var(--clr-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--clr-primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Кнопки (из ДИЗАЙН.md) ---------- */
.btn-primary {
  display: inline-block; background: var(--clr-primary); color: #fff;
  padding: 14px 32px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  box-shadow: var(--shadow-btn); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 184, 212, 0.45); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--clr-primary);
  border: 2px solid var(--clr-primary); padding: 12px 30px;
  border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
}
.btn-ghost {
  display: inline-block; background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.6); padding: 12px 30px;
  border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
}

/* ---------- Карточки ---------- */
.card {
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 28px 24px; transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.10); transform: translateY(-4px); }

.section-title { font-size: 34px; font-weight: 700; color: var(--clr-heading); margin: 0 0 12px; }
.section-subtitle { font-size: 16px; color: #6B7280; max-width: 560px; margin: 0 0 48px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; box-shadow: 0 1px 0 var(--clr-border);
}
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { font-weight: 800; font-size: 21px; color: var(--clr-heading); text-decoration: none; }
.logo span { color: var(--clr-primary); }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--clr-heading); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--clr-primary); }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: " ▾"; font-size: 11px; color: #94a3b3; }
.nav .sub {
  display: none; position: absolute; top: 100%; left: -14px; min-width: 300px;
  background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 10px 0; z-index: 60;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; }
.nav .sub a { display: block; padding: 9px 18px; font-size: 14px; }
.nav .sub a:hover { background: var(--clr-bg-alt); }
.header-cta { margin-left: 8px; padding: 11px 22px; font-size: 14px; }

/* мобильное меню: чекбокс без JS */
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Полоса заголовка внутренней страницы ---------- */
.page-hero { background: var(--clr-dark); color: #fff; padding: 52px 0 44px; }
.page-hero h1 { font-size: 38px; line-height: 1.15; margin: 10px 0 0; font-weight: 800; max-width: 900px; text-wrap: balance; }
.breadcrumbs { font-size: 13px; color: #8fa1b3; }
.breadcrumbs a { color: #8fa1b3; text-decoration: none; }
.breadcrumbs a:hover { color: var(--clr-primary); }

/* ---------- Статья ---------- */
.article { padding: 48px 0 64px; }
.article-inner { max-width: 800px; }
.article h2 { font-size: 28px; color: var(--clr-heading); margin: 42px 0 14px; line-height: 1.25; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 20px; color: var(--clr-heading); margin: 30px 0 10px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 24px; }
.article li { margin-bottom: 6px; }
.article hr { border: 0; border-top: 1px solid var(--clr-border); margin: 36px 0; }
.article blockquote {
  margin: 0 0 16px; padding: 14px 20px; border-left: 3px solid var(--clr-primary);
  background: var(--clr-bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; }
.article th, .article td { border: 1px solid var(--clr-border); padding: 9px 14px; text-align: left; }
.article th { background: var(--clr-bg-alt); color: var(--clr-heading); }
.article tr:nth-child(even) td { background: #fbfcfe; }

/* ---------- CTA-полоса ---------- */
.cta-band { background: var(--clr-dark); color: #fff; text-align: center; padding: 52px 20px; }
.cta-band .t { font-size: 26px; font-weight: 800; display: block; margin-bottom: 8px; }
.cta-band .s { color: #b9c6d2; display: block; margin-bottom: 22px; }

/* ---------- Футер ---------- */
.site-footer { background: #0A1420; color: #8fa1b3; font-size: 14px; padding: 40px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 26px; }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #d5dee6; font-size: 14px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: #8fa1b3; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--clr-primary); }
.site-footer .bottom { border-top: 1px solid #1b2938; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Главная ---------- */
.hero {
  position: relative; color: #fff; text-align: center; padding: 96px 20px 88px;
  background:
    linear-gradient(rgba(13,27,42,.78), rgba(13,27,42,.88)),
    repeating-linear-gradient(115deg, #16283c 0 26px, #0f2033 26px 52px);
  /* TODO: заменить на фото цеха: background-image: linear-gradient(...), url(/img/hero.jpg) */
}
.hero .badge {
  display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(0,184,212,.15); color: #7fe6f5; border: 1px solid rgba(0,184,212,.4);
  padding: 6px 16px; border-radius: 99px; margin-bottom: 20px;
}
.hero h1 { font-size: 50px; line-height: 1.15; font-weight: 800; margin: 0 auto 16px; max-width: 800px; text-wrap: balance; }
.hero .sub { font-size: 17px; color: #c8d4de; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 44px 0; }
.metrics .m b { display: block; color: var(--clr-primary); font-size: 28px; margin-bottom: 6px; }
.metrics .m .mt { color: var(--clr-heading); font-weight: 600; display: block; margin-bottom: 4px; }
.metrics .m p { font-size: 14px; margin: 0; }

.section { padding: 64px 0; }
.section.alt { background: var(--clr-bg-alt); }

.hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hub { display: block; text-decoration: none; overflow: hidden; padding: 0; border-top: 3px solid var(--clr-primary); }
.hub .ph { height: 160px; background: linear-gradient(120deg, #24425f, #0d1b2a); }
/* TODO: у каждого хаба заменить .ph на фото раздела */
.hub .tx { padding: 20px 22px 24px; }
.hub .tx b { color: var(--clr-heading); font-size: 18px; display: block; margin-bottom: 8px; }
.hub .tx p { font-size: 14px; color: var(--clr-text); margin: 0 0 10px; }
.hub .more { color: var(--clr-primary); font-weight: 600; font-size: 14px; }

.mats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mat { display: block; text-decoration: none; border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
       padding: 16px 18px; font-size: 14px; color: var(--clr-text); background: #fff; transition: border-color .2s, box-shadow .2s; }
.mat:hover { border-color: var(--clr-primary); box-shadow: var(--shadow-card); }
.mat b { display: block; color: var(--clr-heading); margin-bottom: 4px; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { text-align: center; font-size: 14px; }
.step i { display: block; font-style: normal; width: 42px; height: 42px; line-height: 42px; margin: 0 auto 12px;
          border-radius: 50%; background: var(--clr-primary); color: #fff; font-weight: 700; font-size: 17px; }
.step b { color: var(--clr-heading); display: block; margin-bottom: 6px; }
.step p { margin: 0; }

/* форма-витрина на главной */
.contact { display: grid; grid-template-columns: 3fr 2fr; gap: 36px; }
.form label { display: block; font-size: 14px; color: var(--clr-heading); font-weight: 600; margin: 0 0 6px; }
.form input, .form textarea {
  width: 100%; border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
  padding: 12px 14px; font: inherit; margin-bottom: 16px; background: #fff;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--clr-primary); outline-offset: -1px; }
.contact .info { font-size: 15px; }
.contact .info b { color: var(--clr-heading); }
.contact .info p { margin: 0 0 12px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .metrics, .mats { grid-template-columns: repeat(2, 1fr); }
  .hubs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 27px; }
  .section-title { font-size: 26px; }
  .hubs, .metrics, .mats, .steps { grid-template-columns: 1fr; }

  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--clr-border); padding: 8px 0 12px;
  }
  .nav a { padding: 11px 20px; }
  .nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .nav .has-sub > a::after { content: ""; }
  .header-cta { margin: 8px 20px 0; text-align: center; }
  .nav-toggle-label {
    display: block; margin-left: auto; cursor: pointer; font-size: 26px;
    color: var(--clr-heading); user-select: none; padding: 4px 8px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
