/*
Theme Name: IRS Laser Tech
Theme URI: https://irslasertech.ru
Author: Реман Сервис (по заказу IRS Laser Tech)
Description: Корпоративная тема для промышленной компании IRS Laser Tech (лазерная обработка и ремонт деталей). Собрана на основе прототипа wireframe/prototype/nav v3.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: irslt
*/

/* ==========================================================================
   1. WIREFRAME.CSS — базовые стили (типографика, форма, таблицы, структура)
   ========================================================================== */
/* ============================================
   Clean Figma Wireframe — Base Styles
   v2: Inter, rounded, серые плейсхолдеры
   ============================================ */


/* --- CSS Custom Properties --- */
:root {
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --bg-page: #ffffff;
  --bg-alt: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;

  --radius: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);

  --accent: #111827;
  --accent-light: #f3f4f6;

  --space-section: 48px;
  --space-inner: 24px;

  /* Маркеры верификации */
  --mark-open-border: #93b5cf;
  --mark-open-bg: #f0f6ff;
  --mark-assumed-border: #d4a07a;
  --mark-assumed-bg: #fdf5f0;
  --mark-gap-border: #c9a227;
  --mark-gap-bg: #fffde7;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Base Typography --- */
html {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-size: 2.2em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

h4 {
  font-size: 0.92em;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 20px; color: var(--text-secondary); }
li { margin-bottom: 4px; }

strong { color: var(--text-primary); font-weight: 600; }
small { font-size: 0.82em; color: var(--text-secondary); }

/* --- Buttons --- */
button {
  font-family: var(--font-body);
  padding: 10px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
button:hover { opacity: 0.85; }

/* --- Form Elements --- */
input, textarea, select {
  font-family: var(--font-body);
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92em;
  color: var(--text-primary);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
input::placeholder, textarea::placeholder { color: #9ca3af; }

label {
  display: block;
  font-size: 0.88em;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

/* --- Images & Figures --- */
img {
  max-width: 100%;
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-alt);
}

figcaption {
  padding: 10px 14px;
  font-size: 0.82em;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  background: white;
}

/* Image placeholder — серый блок с SVG-иконкой фото */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9ca3af;
  background: var(--bg-alt);
  min-height: 120px;
}
.img-placeholder svg { opacity: 0.45; }
.img-placeholder span {
  font-size: 0.8em;
  color: #9ca3af;
  text-align: center;
  padding: 0 16px;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 12px 0;
  font-size: 0.9em;
}
thead { background: var(--bg-alt); }
th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.85em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}
tr:last-child td { border-bottom: none; }
/* P3-04: zebra-striping */
tbody tr:nth-child(even) { background: var(--bg-alt); }

/* --- Structural Elements --- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px var(--space-section);
}

header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  background: white;
  border-bottom: 1px solid var(--border-color);
}

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  border-top: 1px solid var(--border-color);
}

section { padding: var(--space-section) 0; }

article {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  background: white;
}

/* --- Details/Summary (FAQ) --- */
details {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: white;
  overflow: hidden;
}
summary {
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::after {
  content: '→';
  transition: transform 0.2s;
  color: var(--text-secondary);
}
details[open] summary::after { transform: rotate(90deg); }
details > p, details > div { padding: 0 20px 16px; }

/* --- Print (P3-05) --- */
@media print {
  header { position: static; border-bottom: 1px solid #ccc; }
  section, .section-alt { break-inside: avoid; }
}

/* --- Responsive Base --- */
@media (max-width: 768px) {
  main { padding: 0 16px var(--space-section); }
  header { padding: 12px 16px; }
  footer { padding: 24px 16px; }
  h1 { font-size: 1.6em; }
  h2 { font-size: 1.25em; }
}

/* ==========================================================================
   2. PROTOTYPE.CSS — компоненты (hero, карточки, шаги, кейсы, CTA)
   ========================================================================== */
/* ============================================
   Clean Figma Prototype — Layout & Components
   v2: rounded cards, SVG placeholders, tooltips
   Работает поверх wireframe.css
   ============================================ */

/* --- Global Image Constraints --- */
/* Без этих правил крупные изображения (сканы сертификатов, патентов)
   растягивают секции на всю высоту экрана и ломают layout.
   Обнаружено при подстановке реальных фото в прототип ИРС 02.04.2026. */
img {
  max-width: 100%;
  height: auto;
}
.img-placeholder img,
.hero-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}
.case-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.cards article img,
.cards article .img-placeholder img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}
figure img,
section img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}




/* --- Header (sticky — P2-01) --- */
header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0; /* .proto-banner в проде отсутствует */
  z-index: 90;
  background: white;
}
.logo {
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
nav a {
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.88em;
  transition: background 0.15s;
}
nav a:hover { background: var(--accent-light); }
nav a.active { background: var(--accent); color: white; border-radius: 20px; }
.phone { font-size: 0.88em; color: var(--text-secondary); white-space: nowrap; }
.phone a { color: inherit; }
.email { font-size: 0.88em; color: var(--text-secondary); white-space: nowrap; }
.email a { color: inherit; }

/* --- Section alternation (P1-03: explicit class instead of nth-child) --- */
.section-alt {
  background: var(--bg-alt);
  margin: 0 -32px;
  padding: var(--space-section) 32px;
  border-radius: var(--radius);
}
/* Разделитель между секциями (P3-01) */
main > section + section {
  border-top: 1px solid var(--border-color);
}
main > .section-alt + section,
main > section + .section-alt {
  border-top: none; /* фон уже разделяет */
}

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero-content { border: none; padding: 0; background: transparent; }
.hero-content .subtitle {
  font-size: 1.05em;
  color: var(--text-secondary);
}
.hero-facts {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.hero-facts span {
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.82em;
  color: var(--text-primary);
  background: white;
}
.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hero-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border: none;
  background: none;
  display: block;
}
.cta-email {
  font-size: 0.85em;
  margin-top: 8px;
}
.cta-email a { color: var(--text-secondary); }

/* --- Email-альтернатива формы (заметный блок после </form>) --- */
.email-alt {
  max-width: 560px;
  margin: 1.75rem auto 0;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  text-align: center;
}
.email-alt-title {
  font-size: 1.05em;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  color: var(--text-primary);
}
.email-alt-link {
  display: inline-block;
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0.1rem 0 0.6rem 0;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.email-alt-link:hover { opacity: 0.75; }
.email-alt-hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.45;
}

/* --- Cards --- */
.cards {
  display: grid;
  gap: 16px;
}
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-6 { grid-template-columns: repeat(3, 1fr); } /* 6 items → 3x2 */

.cards article {
  transition: box-shadow 0.2s;
}
.cards article:hover {
  box-shadow: var(--shadow-hover);
}

/* Winning — выделенная карточка */
.winning {
  border: 2px solid var(--accent) !important;
}

/* Card с иконкой */
.cards article figure {
  margin-bottom: 12px;
  border: none;
  background: transparent;
}

/* --- Steps (процесс) --- */
.steps {
  counter-reset: step;
  max-width: 640px;
}
.steps > div {
  counter-increment: step;
  padding-left: 56px;
  position: relative;
  margin-bottom: 24px;
  border-left: 2px solid var(--border-color);
  padding-bottom: 24px;
  border-radius: 0;
  background: transparent;
}
.steps > div:last-child { border-left: none; }
.steps > div::before {
  content: counter(step);
  position: absolute;
  left: -17px;
  top: 0;
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: white;
  font-size: 0.9em;
}

/* --- Stats --- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.stats > div {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: white;
}
.stat-number {
  font-size: 2em;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

/* --- Case Study --- */
.case-study {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  background: white;
}
.case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.case-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.9em;
}
.case-specs p { margin: 0; }

/* --- Guarantee (P2-04: визуально отличается от .winning) --- */
.guarantee {
  border: 2px solid #16a34a;
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px 0;
  background: #f0fdf4;
}
.guarantee h2 { margin-bottom: 12px; }
.guarantee ul { color: var(--text-secondary); }

/* --- CTA Section --- */
.cta-section {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 40px;
  margin: 32px 0;
}
.cta-section form {
  display: grid;
  gap: 12px;
  max-width: 480px;
  margin-top: 20px;
}
.cta-section button {
  margin-top: 8px;
  width: fit-content;
}
.consent {
  font-size: 0.78em;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  align-items: start;
}
.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.consent label {
  font-weight: 400;
  margin: 0;
}

/* --- Two-column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* --- Pain points --- */
.pain {
  border-style: dashed !important;
}

/* --- Badges (сертификаты/логотипы) --- */
.badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}


/* --- Footer --- */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-grid h4 {
  font-size: 0.88em;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a {
  color: var(--text-secondary);
  font-size: 0.85em;
}
.footer-grid a:hover { color: var(--text-primary); }
.footer-legal {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78em;
  color: var(--text-secondary);
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero,
  .two-col,
  .cards-2,
  .cards-3,
  .cards-4,
  .case-images {
    grid-template-columns: 1fr;
  }
  .stats { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  header { flex-direction: column; align-items: flex-start; position: static; } /* P2-01: на мобильном — не sticky */
  .section-alt { margin: 0 -16px; padding: var(--space-section) 16px; }
  .cta-section { padding: 24px; margin: 24px -16px; }
  /* P2-06: consent крупнее на мобильном */
  .consent { font-size: 0.85em; }
  .consent input[type="checkbox"] { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  /* P3-02: footer одна колонка на маленьких экранах */
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   3. NAV.CSS — навигация и подвал (#site-nav / #site-footer)
   ========================================================================== */
/* ============================================
   IRS Laser Tech — Навигация v3 (новая структура 2026)
   Все стили скопированы под #site-nav / #site-footer
   чтобы не конфликтовать с wireframe.css / prototype.css
   ============================================ */

/* ── Topbar ── */
#site-nav {
  position: sticky;
  top: 0; /* .proto-banner в проде отсутствует */
  z-index: 90;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sn-topbar {
  background: #fff;
  border-bottom: 1px solid #E0E0E0;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}

.sn-logo {
  font-size: 22px;
  font-weight: 800;
  color: #B71C1C !important;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  white-space: nowrap;
}
.sn-logo span {
  color: #D32F2F;
  font-weight: 400;
}

.sn-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sn-topbar-email {
  font-size: 13px;
  color: #616161;
}

.sn-topbar-phone {
  font-weight: 700;
  font-size: 15px;
  color: #212121 !important;
  text-decoration: none !important;
}

.sn-topbar-cta {
  background: #D32F2F !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.sn-topbar-cta:hover {
  background: #B71C1C !important;
  opacity: 1 !important;
}

/* ── Navbar (красная полоса) ── */
.sn-navbar {
  background: #B71C1C;
  padding: 0 32px;
  position: relative;
  z-index: 1000;
}

.sn-nav-list {
  list-style: none !important;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 !important;
}

.sn-nav-list > li {
  position: relative;
}

.sn-nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
  border-radius: 0;
  background: transparent;
}
.sn-nav-list > li > a:hover,
.sn-nav-list > li:hover > a {
  background: rgba(0,0,0,0.15);
}

/* Текущий раздел */
.sn-nav-list > li > a.sn-active,
.sn-nav-list > li > a.sn-in-branch {
  background: rgba(255,255,255,0.15);
}

/* Стрелки */
.sn-arrow-down {
  font-size: 9px;
  opacity: 0.5;
  transition: transform 0.2s;
}
.sn-nav-list > li:hover .sn-arrow-down {
  transform: rotate(180deg);
  opacity: 0.8;
}
.sn-arrow-right {
  font-size: 9px;
  color: #999;
  margin-left: auto;
  transition: color 0.15s;
}
a:hover > .sn-arrow-right {
  color: #B71C1C;
}

/* ── Статус-точки ── */
.sn-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 2px;
}
.sn-dot-ready  { background: #4CAF50; }
.sn-dot-hub    { background: #2196F3; }
.sn-dot-future { background: #B0BEC5; }
.sn-dot-question {
  background: #FF9800;
  border: 1px dashed #E65100;
  width: 8px;
  height: 8px;
}

/* ── Dropdown Level 1 ── */
.sn-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  min-width: 280px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  z-index: 100;
  list-style: none !important;
  margin: 0;
}

.sn-nav-list > li:hover > .sn-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sn-dropdown li {
  list-style: none;
  position: relative;
}

.sn-dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  color: #424242 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.12s;
  background: transparent;
  border-radius: 0;
}
.sn-dropdown li a:hover {
  background: #FFEBEE;
  color: #B71C1C !important;
}

/* Активная страница в dropdown */
.sn-dropdown li a.sn-active {
  background: #FFEBEE;
  color: #B71C1C !important;
  font-weight: 600;
}

/* ── Dropdown Level 2 (flyout) ── */
.sn-sub-dropdown {
  position: absolute;
  top: -6px;
  left: 100%;
  background: #fff;
  border-radius: 0 10px 10px 0;
  box-shadow: 4px 8px 32px rgba(0,0,0,0.12);
  min-width: 260px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-4px);
  transition: all 0.15s ease;
  z-index: 101;
  list-style: none !important;
  margin: 0;
}

.sn-dropdown li:hover > .sn-sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sn-sub-dropdown li {
  list-style: none;
  position: relative;
}

.sn-sub-dropdown li a {
  padding: 8px 16px;
  font-size: 12.5px;
}

/* ── Dropdown Level 3 (deep flyout) ── */
.sn-sub-sub-dropdown {
  position: absolute;
  top: -6px;
  left: 100%;
  background: #fff;
  border-radius: 0 10px 10px 0;
  box-shadow: 4px 8px 32px rgba(0,0,0,0.1);
  min-width: 230px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-4px);
  transition: all 0.15s ease;
  z-index: 102;
  list-style: none !important;
  margin: 0;
}

.sn-sub-dropdown li:hover > .sn-sub-sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Доп. правило темы (в оригинальном прототипе отсутствовало): 4-й и любой более
   глубокий уровень вложенности переиспользует класс .sn-sub-sub-dropdown, поэтому
   правило самореференсно — сколько бы уровней ни было вложено, каждый следующий
   раскрывается при наведении на <li> внутри предыдущего .sn-sub-sub-dropdown. */
.sn-sub-sub-dropdown li:hover > .sn-sub-sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sn-sub-sub-dropdown li {
  list-style: none;
  position: relative;
}

.sn-sub-sub-dropdown li a {
  padding: 7px 14px;
  font-size: 12px;
  color: #616161 !important;
}
.sn-sub-sub-dropdown li a:hover {
  background: #FFEBEE;
  color: #B71C1C !important;
}

/* ── Label в ссылке (для flex) ── */
.sn-label {
  flex: 1;
}

/* ── Footer ── */
#site-footer {
  border-top: none;
  padding: 0;
  max-width: 100%;
}

.sn-footer {
  background: #212121;
  color: rgba(255,255,255,0.6);
  padding: 40px 32px;
  margin-top: 48px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sn-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.sn-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.sn-footer a {
  display: block;
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none !important;
  font-size: 12.5px;
  padding: 3px 0;
  transition: color 0.15s;
}
.sn-footer a:hover {
  color: #fff !important;
}

.sn-footer span {
  display: block;
  font-size: 12.5px;
  padding: 3px 0;
  color: rgba(255,255,255,0.4);
}

.sn-footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.sn-footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 16px;
  line-height: 1.5;
}

/* ── Легенда навигации (под меню) ── */
.sn-nav-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 8px 32px;
  background: #fafafa;
  border-bottom: 1px solid #e5e7eb;
  font-size: 11px;
  color: #9e9e9e;
  flex-wrap: wrap;
}
.sn-nav-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .sn-nav-list > li > a {
    padding: 11px 10px;
    font-size: 12px;
  }
  .sn-topbar { padding: 10px 20px; }
  .sn-navbar { padding: 0 20px; }
}

@media (max-width: 1024px) {
  .sn-nav-list > li > a {
    padding: 10px 8px;
    font-size: 11.5px;
  }
  .sn-topbar-email { display: none; }
}

@media (max-width: 768px) {
  .sn-nav-list {
    flex-wrap: wrap;
  }
  .sn-topbar-right {
    gap: 12px;
  }
  .sn-topbar-email { display: none; }
  .sn-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  #site-nav {
    position: static;
  }
}

@media (max-width: 480px) {
  .sn-footer-grid {
    grid-template-columns: 1fr;
  }
  .sn-topbar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ── Print ── */
@media print {
  #site-nav { display: none; }
  #site-footer { display: none; }
}

/* ==========================================================================
   4. ДОПОЛНЕНИЯ ТЕМЫ WORDPRESS (не входили в исходный прототип)
   ========================================================================== */

/* Раскрытие подменю тапом на touch-устройствах (assets/js/main.js) */
.sn-has-children.sn-open > .sn-dropdown,
.sn-has-children.sn-open > .sn-sub-dropdown,
.sn-has-children.sn-open > .sn-sub-sub-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Хлебные крошки (inc/template-helpers.php) */
.irslt-breadcrumbs {
  font-size: 0.85em;
  color: var(--text-secondary);
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}
.irslt-breadcrumbs a,
.irslt-breadcrumbs span {
  display: inline;
  font-size: 0.85em;
  line-height: 1.4;
  vertical-align: middle;
  color: var(--text-secondary);
}
.irslt-breadcrumbs a { color: var(--text-secondary); }
.irslt-breadcrumbs a:hover { color: var(--accent); }

/* FAQ-аккордеон на страницах услуг — использует нативные <details>/<summary>
   из wireframe.css, доп. стилей не требуется. */

/* Таблица характеристик услуги (specs_table) — использует базовые стили table
   из wireframe.css, доп. стилей не требуется. */

/* Фильтры кейсов (archive-case.php) */
.irslt-case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 32px;
}
.irslt-case-filters select {
  width: auto;
  min-width: 180px;
}
.irslt-case-filters button,
.irslt-case-filters .irslt-reset-filters {
  padding: 10px 18px;
}
.irslt-case-filters .irslt-reset-filters {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Пагинация (архив кейсов) */
.irslt-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.irslt-pagination a,
.irslt-pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
}
.irslt-pagination .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Кастомный логотип в шапке (если задан через Настройщик) */
.sn-logo-wrap img {
  max-height: 44px;
  width: auto;
  border: none;
  border-radius: 0;
}

/* Карусель фото в hero-блоке (2+ фото в поле "Герой: фото") */
.irslt-slider {
  position: relative;
}
.irslt-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}
.irslt-slider-track figure {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: none;
}
.irslt-slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  background: none;
}
.irslt-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  padding: 0;
}
.irslt-slider-arrow:hover { background: #fff; }
.irslt-slider-prev { left: 12px; }
.irslt-slider-next { right: 12px; }
.irslt-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.irslt-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: none;
  padding: 0;
  cursor: pointer;
}
.irslt-slider-dot.is-active { background: #fff; }

/* === Перенос прототипа: фото без обрезки, лайтбокс, карусели === */
.irs-shot{display:block;width:100%;aspect-ratio:4/3;background:var(--bg-alt);border:1px solid var(--border-color);border-radius:var(--radius-sm);overflow:hidden;cursor:zoom-in;transition:border-color .2s,box-shadow .2s}
.irs-shot img{width:100%;height:100%;object-fit:contain;display:block;max-height:none;background:var(--bg-alt)}
.irs-shot:hover{border-color:#cc1122;box-shadow:var(--shadow-hover)}
.irs-shot + figcaption{font-size:0.8em;color:var(--text-secondary);text-align:center;margin-top:6px}
.irslt-slider-track img{object-fit:contain;background:var(--bg-alt)}
.irs-carousel{position:relative;border:1px solid var(--border-color);border-radius:var(--radius);overflow:hidden;background:var(--bg-alt);aspect-ratio:16/10}
.irs-carousel .irslt-slider-track{height:100%}
.irs-carousel figure{position:relative}
.irs-carousel figcaption{position:absolute;left:0;right:0;bottom:0;background:rgba(255,255,255,.9);font-size:0.8em;color:var(--text-secondary);text-align:center;padding:6px 12px;margin:0}
section:has(> .container > .irslt-proto),section:has(> .page-content > .irslt-proto){padding:0}
.irslt-proto > section + section{border-top:1px solid var(--border-color)}
.irslt-proto > .section-alt + section,.irslt-proto > section + .section-alt{border-top:none}


/* ===== Consent checkboxes & cookie banner ===== */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #e53935;
  cursor: pointer;
}
.consent label {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
  cursor: pointer;
}
.consent label a {
  color: #c62828;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent label a:hover {
  color: #111827;
}

/* Cookie banner */
#irs-cookie-banner {
  font-family: Inter, sans-serif;
}
#irs-cookie-banner p a:hover {
  color: #ff6f6f !important;
}
#irs-cookie-accept:hover {
  background: #c62828 !important;
}


/* Компактные превью в блоках .badges: сертификаты «О компании», сканы отзывов.
   Без ограничения картинка растягивалась на всю колонку (1136×847). Клик открывает оригинал. */
.badges:not(.badges-certs){align-items:flex-start}
.badges:not(.badges-certs) figure{flex:0 1 190px;max-width:210px;margin:0}
.badges:not(.badges-certs) figure > a{display:block;cursor:zoom-in;border:1px solid var(--border-color);border-radius:6px;overflow:hidden;background:#fff}
.badges:not(.badges-certs) figure > a:hover{border-color:#c62828}
.badges:not(.badges-certs) figure img{display:block;width:100%;height:140px;object-fit:contain;background:#fff;transition:opacity .2s}
.badges:not(.badges-certs) figure > a:hover img{opacity:.9}
.badges:not(.badges-certs) figcaption{margin-top:6px;font-size:12px;line-height:1.35;color:var(--text-secondary);text-align:center}
@media (max-width:640px){.badges:not(.badges-certs) figure{flex:0 1 45%;max-width:none}}

/* Сертификаты на главной: клик открывает полный размер (GLightbox), подпись под каждым сканом */
.badges-certs{align-items:flex-start}
.badges-certs figure{flex:0 1 480px;max-width:480px;margin:0}
.badges-certs figure a{display:block;cursor:zoom-in}
.badges-certs figure a img{display:block;width:100%;height:auto}
.badges-certs figure a:hover img{opacity:.9;transition:opacity .2s}
.badge-caption{padding:10px 2px 0;font-size:.9rem;line-height:1.45}
.badge-caption strong{display:block;margin-bottom:4px}
.badge-caption span{display:block;opacity:.75;font-size:.85rem}
@media (max-width:640px){.badges-certs figure{flex:1 1 100%}}

/* Карусели участков на «О компании»: каждая под своим разделом */
.irs-shopfloor{max-width:720px;margin:1.25rem auto 0}
.irs-shopfloor figcaption{margin-top:8px;font-size:.85em;color:var(--text-secondary);text-align:center}
.irs-shopfloor img{cursor:zoom-in}

/* Подсказка про карточку предприятия — контраст на светлом фоне */
.cta-section small{color:#4b5563}
