/* Norma Industries — стили публичного сайта
   Палитра построена от цветов товарного знака:
   мягкий зелёный #68AE66 (буквы ТМ) + сосновый #236245 (знак компании)
   на белом и жемчужно-мятном фоне */
:root {
  --green: #68ae66;        /* мягкий зелёный ТМ — акценты */
  --green-strong: #4e9350; /* насыщеннее — ховеры акцентов */
  --green-tint: #edf6ec;   /* светло-зелёная подложка */
  --pine: #236245;         /* сосновый — кнопки, заголовки */
  --pine-dark: #1a4d36;    /* ховер кнопок */
  --pine-deep: #143526;    /* футер, верхняя полоса */
  --mist: #f4f8f5;         /* жемчужный фон секций */
  --ink: #22302a;
  --gray: #5d6c64;
  --gray-light: #97a69d;
  --line: #e3ebe5;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(20, 53, 38, 0.07);
  --shadow-hover: 0 10px 30px rgba(20, 53, 38, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pine); text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 28px; }

/* ── Кнопки ── */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--green);
  color: var(--pine);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  background: transparent;
  transition: all 0.18s ease;
  text-align: center;
}
.btn:hover { background: var(--green-tint); }
.btn-primary { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); border-color: var(--pine-dark); }
.btn-outline { border-color: var(--green); }
.btn-white { background: #fff; border-color: #fff; color: var(--pine); }
.btn-white:hover { background: var(--green-tint); border-color: var(--green-tint); }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ── Верхняя полоса ── */
.topbar { background: var(--pine-deep); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; gap: 16px; }
.topbar a { color: #b9d8bd; }
.topbar-phone { font-weight: 700; color: #fff !important; font-size: 14px; }
.topbar-contacts { display: flex; gap: 18px; white-space: nowrap; align-items: center; }
.topbar-note { opacity: 0.85; }
.lang-switch { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; }
.lang-switch a { color: #b9d8bd; }
.lang-switch a:hover { color: #fff; }
.lang-active { color: #fff; border-bottom: 2px solid var(--green); padding-bottom: 1px; }
.lang-sep { opacity: 0.4; }

/* ── Навигация ── */
.mainnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.mainnav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 24px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a, .nav-drop > a { color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-links > a:hover, .nav-drop > a:hover, .nav-links a.active { color: var(--green-strong); }
.nav-cta { color: #fff !important; }
.nav-toggle, .nav-burger { display: none; }

.nav-drop { position: relative; }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  background: #fff;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  padding: 8px 0;
  z-index: 60;
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 9px 18px; color: var(--ink); font-size: 14.5px; }
.nav-drop-menu a:hover { background: var(--green-tint); color: var(--pine); }

/* ── Хлебные крошки ── */
.breadcrumbs { font-size: 13.5px; color: var(--gray-light); padding-top: 18px; padding-bottom: 18px; }
.breadcrumbs .sep { margin: 0 8px; }
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--green-strong); }

/* ── Герой: макрофото нетканого полотна, тонированное под палитру ── */
.hero {
  background:
    linear-gradient(90deg, rgba(243, 248, 244, 0.95) 0%, rgba(243, 248, 244, 0.82) 38%, rgba(243, 248, 244, 0.35) 62%, rgba(243, 248, 244, 0.05) 85%),
    url('/static/img/hero-texture.jpg') center right / cover no-repeat;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 40px; align-items: center; padding-top: 84px; padding-bottom: 92px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 8px 18px;
  box-shadow: var(--shadow); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; color: var(--pine); margin-bottom: 18px; }
.hero p { font-size: 17px; color: var(--gray); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Секции ── */
.section { padding: 56px 0; }
.section.pt-0 { padding-top: 8px; }
.section-alt { background: var(--mist); }
.section-title { font-size: clamp(24px, 3vw, 32px); color: var(--pine); margin-bottom: 30px; }
.page-title { font-size: clamp(26px, 3.4vw, 38px); color: var(--pine); margin-bottom: 14px; }
.page-lead { color: var(--gray); font-size: 16.5px; max-width: 800px; margin-bottom: 30px; }

/* ── Сетки и карточки ── */
.grid { display: grid; gap: 24px; }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.adv-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  color: var(--ink);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-img { aspect-ratio: 4 / 3; background: var(--mist); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 17px; color: var(--pine); line-height: 1.3; }
.card-body p { font-size: 14px; color: var(--gray); flex: 1; }
.card-cat { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-strong); font-weight: 700; }
.card-link { font-size: 14px; font-weight: 600; color: var(--green-strong); margin-top: auto; }
.cat-count { font-size: 13px; color: var(--gray-light); }

/* ── Преимущества ── */
.adv { background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.adv-icon { font-size: 30px; margin-bottom: 12px; }
.adv h3 { font-size: 17px; margin-bottom: 8px; color: var(--pine); }
.adv p { font-size: 14px; color: var(--gray); }

/* ── CTA-полоса ── */
.cta-band { background: linear-gradient(120deg, var(--pine-deep), var(--pine) 55%, var(--green-strong)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 26px; margin-bottom: 6px; }
.cta-inner p { opacity: 0.9; }

/* ── Блок торговой марки ── */
.tm-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.tm-logo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.tm-logo-card img { width: 100%; max-width: 380px; }
.tm-text p { color: var(--gray); margin-bottom: 14px; font-size: 15.5px; }
.tm-text .btn { margin-top: 6px; }

/* ── Поиск ── */
.search-form { display: flex; gap: 10px; margin-bottom: 32px; max-width: 520px; }
.search-form input {
  flex: 1; padding: 11px 18px; border: 2px solid var(--line); border-radius: 999px;
  font-size: 15px; outline: none;
}
.search-form input:focus { border-color: var(--green); }

/* ── Карточка товара ── */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 40px; }
.product-main-img {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--mist); aspect-ratio: 4 / 3;
}
.product-main-img img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 76px; height: 60px; border: 2px solid var(--line); border-radius: 8px;
  overflow: hidden; cursor: pointer; background: var(--mist); padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--green); }
.product-info h1 { font-size: clamp(24px, 3vw, 32px); color: var(--pine); margin-bottom: 12px; }
.product-lead { color: var(--gray); margin-bottom: 20px; }
.specs { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 14.5px; }
.specs td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--gray); width: 44%; }
.specs tr:nth-child(odd) td { background: var(--mist); }
.product-price { font-size: 17px; font-weight: 700; color: var(--pine); margin-bottom: 18px; }
.product-note { margin-top: 16px; font-size: 13px; color: var(--gray-light); }
.product-desc { margin-bottom: 48px; }
.rich-text { color: var(--ink); font-size: 15.5px; white-space: pre-line; }
.rich-text p { margin-bottom: 12px; white-space: normal; }
.rich-text h2, .rich-text h3 { color: var(--pine); margin: 20px 0 10px; white-space: normal; }
.rich-text ul, .rich-text ol { margin: 0 0 12px 22px; white-space: normal; }

/* ── Сертификаты ── */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 26px; }
.cert-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow 0.2s; }
.cert-item:hover { box-shadow: var(--shadow-hover); }

/* ── Контакты ── */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.contact-label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-light); margin-bottom: 2px; }
.contact-list a, .contact-list span:not(.contact-label) { font-size: 17px; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--green-strong); }

.contact-form-wrap { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-form-wrap h2 { color: var(--pine); margin-bottom: 18px; font-size: 22px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gray); }
.contact-form input, .contact-form textarea {
  padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; outline: none; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green); }
.form-note { font-size: 12px; color: var(--gray-light); }
.form-product { background: var(--green-tint); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.alert { padding: 13px 18px; border-radius: 10px; margin-bottom: 16px; font-size: 14.5px; }
.alert-ok { background: #e4f4e0; color: #1e5c14; border: 1px solid #bce0b3; }
.alert-err { background: #fdeaea; color: #8f1f1f; border: 1px solid #f3c1c1; }

.empty { color: var(--gray-light); padding: 30px 0; }

/* ── Футер ── */
.footer { background: var(--pine-deep); color: #c2d8c6; margin-top: 20px; font-size: 14px; }
.footer a { color: #c2d8c6; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr; gap: 36px; padding-top: 44px; padding-bottom: 34px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-about { margin-top: 16px; font-size: 13.5px; opacity: 0.85; max-width: 340px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.socials a:hover { background: var(--green-strong); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; padding-bottom: 18px; font-size: 13px; opacity: 0.9; flex-wrap: wrap; gap: 10px;
}
.logo-plate { display: inline-block; background: #fff; padding: 9px 14px; border-radius: 10px; }
.logo-plate img { display: block; }
.footer-tm-wrap { display: inline-flex; align-items: center; gap: 10px; }
.footer-tm { display: inline-block; border-radius: 10px; }

/* ── 404 ── */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 40px 20px; }
.notfound h1 { font-size: 64px; color: var(--green); }

/* ── Адаптив ── */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .tm-inner { grid-template-columns: 1fr; gap: 28px; }
  .tm-logo-card { max-width: 420px; }
  .product-page { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-note { display: none; }
}

@media (max-width: 760px) {
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
  .nav-burger span { width: 24px; height: 3px; background: var(--pine); border-radius: 2px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hover); padding: 8px 0;
  }
  .nav-links > a, .nav-drop > a { padding: 12px 22px; display: block; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-drop-menu { display: block; position: static; box-shadow: none; border: none; padding-left: 16px; }
  .nav-cta { margin: 10px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
