/* ============================================================
   Электроарсенал — общий stylesheet для всех страниц сайта.
   ============================================================ */

@import url("bootstrap-icons.min.css");

:root {
  --ink: #212a35;          /* основной тёмный цвет текста/шапки */
  --muted: #5c6773;        /* приглушённый серый */
  --accent: #ff4500;       /* фирменный оранжевый (как в старом слогане) */
  --accent-soft: #fff4ee;  /* светлый оранжевый фон для выделений */
  --bg-soft: #f4f5f7;      /* светло-серый фон секций */
  --line: #e3e6ea;         /* тонкие линии/рамки */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Verdana, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

img { max-width: 100%; }

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

a
{
  color: var(--accent);
}

a:not(.brand):hover
{
  color: #ff703b;
}


/* ---------- Шапка: логотип + контакты ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}

.brand span { color: var(--accent); }

.top-contacts {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.top-contacts a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.top-contacts a:hover { color: var(--accent); }

/* ---------- Навигация по каталогу ---------- */

.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.main-nav a {
  display: inline-block;
  padding: 11px 0;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Активный пункт меню — текущая страница (класс .active добавляет site.js) */
.main-nav a.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* Кнопка «Меню» (видна только на мобильных) */
.nav-toggle { display: none; }

/* ---------- Слайдер (баннеры, главная страница) ---------- */

.hero { padding-top: 24px; }

.slider {
  position: relative;
  aspect-ratio: 970 / 360;
  min-height: 180px;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .5s ease;
}

.slide.active { opacity: 1; z-index: 1; }

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* баннеры не обрезаются — текст на них остаётся целым */
}

.dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(33, 42, 53, .3);
  cursor: pointer;
}

.dot.active { background: var(--accent); }

/* ---------- Слоган (главная) ---------- */

.slogan {
  text-align: center;
  padding: 30px 16px 6px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Каталог продукции (главная) ---------- */

.catalog {
  background: var(--bg-soft);
  padding: 48px 0 56px;
  margin-top: 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
}

.section-rule {
  width: 56px;
  height: 3px;
  background: var(--accent);
  border: none;
  margin: 0 0 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(33, 42, 53, .10);
  border-color: var(--accent);
}

.card .tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
}

.card .name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.card .go {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- О компании (главная) ---------- */

.about { padding: 56px 0; scroll-margin-top: 90px; }

.about p {
  max-width: 920px;
  margin: 0 0 18px;
  font-size: 16px;
  text-align: justify;
}

.callout {
  max-width: 920px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- Хлебные крошки (страницы товаров) ---------- */

.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb .container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.breadcrumb a { color: var(--ink); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb b { font-weight: 600; }

/* ---------- Страница товара ---------- */

.product-page { padding: 36px 0 56px; }

.product-page h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.product-page > .container > hr.section-rule { margin-bottom: 28px; }

/* Вводный абзац перед блоками товаров */
.page-intro {
  max-width: 920px;
  margin: 0 0 4px;
  font-size: 16px;
  text-align: justify;
}

/* Блок «фото слева + текст справа» */
.prod-block {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  margin-top: 40px;
}

.prod-fig {
  flex: 0 0 380px;
  margin: 0;
}

.prod-fig img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(33, 42, 53, .12);
}

.prod-text { flex: 1; min-width: 0; }

.prod-text h2 { font-size: 22px; line-height: 1.3; margin: 0 0 12px; }
.prod-text h3 { font-size: 18px; line-height: 1.3; margin: 20px 0 8px; }

.prod-text p {
  margin: 0 0 14px;
  font-size: 16px;
  text-align: justify;
}

.prod-text ul, .prod-text ol {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 16px;
}

.prod-text li { margin-bottom: 6px; }

/* Таблица характеристик (фенопласт) */
dl.specs {
  margin: 0 0 14px;
  border-top: 1px solid var(--line);
}

dl.specs dt {
  font-weight: 700;
  font-size: 15px;
  margin-top: 12px;
}

dl.specs dd {
  margin: 2px 0 0;
  font-size: 15px;
  color: #39424e;
}

dl.specs .method {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* Мини-карточки (растворители «Вершина», арматура) */
.mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.mini-card img {
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
  background: #fff;
}

.mini-card h2 { font-size: 17px; line-height: 1.35; margin: 0; }

.mini-card p {
  font-size: 14.5px;
  color: #39424e;
  margin: 0;
}

/* ---------- Контакты (тёмная полоса) ---------- */

.contacts-band {
  background: var(--ink);
  color: #fff;
  padding: 40px 0;
}

.contacts-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.contacts-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .6);
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
}

.contact-item a:hover { color: var(--accent); }

.contact-item.email a { font-size: 16px; font-weight: 400; }

/* ---------- Подвал ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* Строка копирайта — по центру, с вертикальными отступами */
.site-footer > .container {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* ---------- Мобильная версия ---------- */

@media (max-width: 720px) {
  .header-inner { justify-content: center; text-align: center; }
  .brand { font-size: 21px; }
  .top-contacts { justify-content: center; font-size: 13px; gap: 6px 14px; }

  /* Навигация сворачивается в кнопку «Меню» */
  .nav-inner { padding-top: 8px; padding-bottom: 6px; }
  .nav-toggle {
    display: block;
    margin: 0 auto 4px;
    min-width: 150px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 7px;
    cursor: pointer;
  }
  .nav-toggle:hover { color: var(--accent); border-color: var(--accent); }
  .main-nav ul { display: none; flex-direction: column; gap: 0; padding-bottom: 6px; }
  .main-nav ul.open { display: flex; }
  .main-nav li a {
    display: block;
    padding: 9px 2px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav li:last-child a { border-bottom: none; }

  .hero { padding-top: 16px; }
  .slider { aspect-ratio: auto; height: 250px; border-radius: 8px; }

  .slogan { padding-top: 22px; }

  .catalog { padding: 36px 0 42px; margin-top: 16px; }
  .section-title { font-size: 22px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
  .card { padding: 14px; }
  .card .name { font-size: 15px; }

  .about { padding: 40px 0; }

  .product-page h1 { font-size: 24px; }
  .prod-block { flex-direction: column; gap: 20px; margin-top: 32px; }
  .prod-fig { flex: none; width: 100%; max-width: 460px; }

  .contacts-band { padding: 32px 0; }
  .contact-item a { font-size: 18px; }
}
