﻿:root{
  --bg:#f6f8fb;
  --surface:#ffffff;
  --surface2:#f1f4f9;
  --text:#0f172a;
  --muted:#444d5f;
  --line:#e5e9f2;
  --brand:#1f6feb;
  --brand2:#00a37a;

  --radius:5px;
  --shadow:0 12px 32px rgba(15,23,42,.08);
  --shadow2:0 10px 24px rgba(15,23,42,.08);

  --max:1250px;
  --pad:22px;
  --h:150px;
  --subh:36px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:15px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background: var(--bg);
}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}
.muted{color:var(--muted)}
.small{font-size:12px;color:var(--muted)}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  margin-bottom: 10px;
  color:var(--muted);
}
.pad{padding:20px}
main{padding:26px 0 56px}
.section{margin-top:18px}
.anchor{scroll-margin-top:calc(var(--h) + var(--subh) + 16px)}
.card a{color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 8px;
} 
.card a:after {
	content:""; /* # → */
	opacity:.9;
}

.anchor a{
  color:var(--brand);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.anchor a:hover{text-decoration:underline}
.anchor a:after{opacity:.9}

h1,h2,h3{margin:0 0 10px}
h1{font-size:26px;line-height:1.15}
.card.pad > h1{margin:0 0 4px}
.card.pad > h1 + *{margin-top:0}

/* записи без мини-галереи и страницы: отступ под заголовком */
body.single .card.pad > h1,
body.page .card.pad > h1{margin:0 0 18px}
h2{font-size:22px;line-height:1.2}
h3{font-size:17px;line-height:1.25}
p{margin:0 0 12px}

/* ===== HEADER ===== */
header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(31,42,55,.96);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,.12);
}
.topbar{
  height:var(--h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{display:flex;gap:12px;align-items:center;min-width:240px; max-width: 400px;}
.brand-logo{
  display:block;
  flex:0 0 auto;
  text-decoration:none;
}
.brand-text{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.brand-title{
  text-decoration:none;
}
.brand-max{
  display:none;
}
.logo{
  width:120px;height:120px;border-radius:var(--radius);
  background: url("../img/logo.png");
  flex:0 0 auto;
}
.logo.mini{width:60px;height:60px;box-shadow:none}
.brand b{
  display:block;
  font-size:32px;
  line-height:1.2;
  color:#fff;
}
.brand span{
  display:block;
  font-size:14px;
  color:rgba(255,255,255,.7);
  line-height:1.2;
}

/* ===== Header contacts: 2 columns ===== */
.contacts{
  display: grid;
  grid-template-columns: auto auto;
  gap: 14px 24px;
  align-items: center;
  font-size: 16px;
  white-space: nowrap;
}

.contacts-col{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-item{
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
}

.contact-item a{
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.contact-item a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.divider{width:1px;height:22px;background:var(--line)}

.actions{
  flex: 0 0 auto;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow2);
  font-weight:600;
  cursor:pointer;
  transition:transform .15s ease,border-color .15s ease, box-shadow .15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px); border-color:rgba(31,111,235,.35)}
.btn.primary{
  border:none;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
}
.btn.primary:hover{box-shadow:0 16px 35px rgba(31,111,235,.20)}

/* ===== Desktop subnav ===== */
.subnav{
  border-top: 1px solid rgba(255,255,255,.10);
  background: #0156a9;
}

.subnav .wrap.row{
  height: var(--subh);
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: left;

  -webkit-overflow-scrolling: touch;
}

/* WP menu  li */
.subnav .wrap.row li{
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
}
.subnav .wrap.row li::marker{ content: ""; }


.subnav .wrap.row > a,
.subnav .wrap.row li > a{
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;

  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.12);

  background: transparent;
  color: rgba(255,255,255,.92);
  font-weight: 400;
  text-decoration: none;
}

.subnav .wrap.row > a:last-child,
.subnav .wrap.row li:last-child > a{
  border-right: 0;
}

.subnav .wrap.row > a:hover,
.subnav .wrap.row li > a:hover{
  background: rgba(255,255,255,.08);
  text-decoration: none;
}

.subnav .sep{ display: none; }

.subnav-catalog{
  height:100%;
  display:flex;
  flex:0 0 auto;
}

.subnav-catalog__btn{
  height:100%;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 18px;
  border-right:1px solid rgba(255,255,255,.12);
  background:transparent;
  color:rgba(255,255,255,.92);
  font-weight:600;
  white-space:nowrap;
}

.subnav-catalog__btn:hover,
.subnav-catalog__btn[aria-expanded="true"]{
  background:rgba(255,255,255,.08);
}

.subnav-catalog__caret{
  width:7px;
  height:7px;
  margin-top:-3px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  transition:transform .15s ease;
}

.subnav-catalog__btn[aria-expanded="true"] .subnav-catalog__caret{
  transform:rotate(-135deg);
}

.catalog-panel{
  position:fixed;
  z-index:60;
  min-width:280px;
  max-width:400px;
  max-height:70vh;
  overflow:auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-top:none;
  border-radius:0 0 var(--radius) var(--radius);
  box-shadow:0 18px 30px rgba(15,23,42,.16);
  padding:10px 0 12px;
}

.catalog-panel[hidden]{
  display:none;
}

.catalog-drop{
  list-style:none;
  margin:0;
  padding:0;
}

.catalog-drop > li > a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:9px 18px;
  color:var(--text);
  font-weight:600;
  white-space:nowrap;
}

.catalog-drop > li > a:hover{
  background:var(--surface2);
  color:var(--brand);
}

.catalog-drop__arrow{
  color:#9aa3b2;
  font-size:12px;
}

.catalog-drop li ul{
  position:fixed;
  z-index:70;
  display:none;
  list-style:none;
  margin:0;
  padding:8px 0;
  width:max-content;
  min-width:260px;
  max-width:min(480px,calc(100vw - 24px));
  max-height:70vh;
  overflow:auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.catalog-drop li li a{
  display:block;
  padding:5px 16px;
  font-size:13px;
  line-height:1.35;
  color:var(--muted);
  white-space:normal;
}

.catalog-drop li li a:hover{
  background:var(--surface2);
  color:var(--brand);
}

/* ===== Мобильные (нет ховера): списки раскрыты внутри панели ===== */
@media (hover:none){
  .catalog-drop li ul{
    position:static;
    display:block;
    min-width:0;
    max-width:none;
    max-height:none;
    overflow:visible;
    margin:4px 0;
    padding:0;
    border:0;
    border-top:1px solid var(--line);
    border-radius:0;
    box-shadow:none;
  }
  .catalog-drop li li a{
    padding:5px 18px 5px 30px;
  }
}
/* ===== Mobile contact bar ===== */
.mcontacts{
  display:none;
  border-top:1px solid var(--line);
  background:#fff;
}
.mcontacts-row{
  height:34px;
  display:flex;
  align-items:center;
  gap:10px;
  overflow:auto;
  white-space:nowrap;
  -webkit-overflow-scrolling:touch;
}
.mcontact{
  color:var(--text);
  font-weight:600;
  font-size:13px;
}
.msep{ color:#c3c8d4; user-select:none; }

/* ===== Burger + mobile nav ===== */
.burger{
  display:none;
  width:42px;
  height:42px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow2);
  cursor:pointer;
  padding:0;
  position:relative;
  flex:0 0 auto;
}

.burger-lines{
  position:absolute;
  left:50%;
  top:50%;
  width:18px;
  height:2px;
  background:var(--text);
  transform:translate(-50%,-50%);
  border-radius:2px;
}

.burger-lines::before,
.burger-lines::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background:var(--text);
  border-radius:2px;
  transition:transform .18s ease, top .18s ease, opacity .18s ease;
}

.burger-lines::before{ top:-6px; }
.burger-lines::after{ top:6px; }

.burger.is-open .burger-lines{
  background:transparent; 
}
.burger.is-open .burger-lines::before{
  top:0;
  transform:rotate(45deg);
}
.burger.is-open .burger-lines::after{
  top:0;
  transform:rotate(-45deg);
}.mnav{
  display:none;
  border-top:1px solid var(--line);
  background:#fff;
}
.mnav .panel{
  padding:10px 0 14px;
  display:grid;
  gap:6px;
}
.mnav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-radius:var(--radius);
  color:var(--muted);
  font-weight:400;
  font-size:14px;
}
.mnav a:hover{
  background:var(--surface2);
  color:var(--text);
}
.mnav a:after{content:"→"; color:#9aa3b2}

/* ===== Categories ===== */
.cats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:0;
}
.cat{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cat:hover{
  border-color:rgba(31,111,235,.55);
  box-shadow:0 18px 45px rgba(15,23,42,.12);
  transform:translateY(-2px);
}
.cat-img{
  position:relative;
  height:170px;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:#eef2f7; /* цвет, пока грузится картинка */
}

.cat-img img{
  width:100%;
  height:100%;
  object-fit:cover;   /* ключевой момент */
  display:block;
}

.cat-img .label{
  position:absolute;
  left:12px;
  bottom:12px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.86);
  font-size:12px;
  color:rgba(15,23,42,.82);
  box-shadow:0 10px 20px rgba(15,23,42,.06);
}
.cat-img .label i{
  width:10px;height:10px;border-radius:99px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  display:inline-block;
}
.cat-body{padding:16px}
.cat-body p{margin:0 0 12px; font-size:14px; color:var(--muted)}
.cat-links{
  display:grid;
  gap:6px;
  font-size:14px;
}
.cat-links a{
  color:var(--brand);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.cat-links a:hover{text-decoration:underline}
.cat-links a:after{content:"→"; opacity:.9}

/* ===== Content blocks ===== */
.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.list{
  display:grid;
  gap:10px;
  margin-top:10px;
}
.item{
  border:1px solid var(--line);
  background:#fff;
  border-radius:var(--radius);
  padding: 5px 20px;
  display: flex;
  align-items: center;   /* КЛЮЧЕВО */
  gap: 20px;
}

.badge{
  border:1px solid var(--line);
  background:var(--surface2);
  border-radius:999px;
  padding:4px 8px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}

.badge_clean{
  font-size:15px;
  color:var(--muted);
  white-space:nowrap;
}

.badge_clean.icon{
  padding:6px;
  min-width:32px;
  min-height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.badge_clean.icon img{
  height:46px;
  object-fit:contain;
  display:block;
}
.cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

/* ===== Footer (dark) + layout fix ===== */
footer{
  background: rgba(31,42,55,.96);
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.12);
}

/* ВОТ ЭТО ВАЖНО: возвращаем 4 колонки на ПК */
footer .foot{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding-top: 42px;
  padding-bottom: 42px;
}

/* адаптив */
@media (max-width: 980px){
  footer .foot{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Заголовки колонок */
footer .foot b{
  color: rgba(255,255,255,.92);
}

/* Текст мелкий */
footer .foot .small{
  color: rgba(255,255,255,.60);
}

/* Ссылки */
footer .foot a{
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
}
footer .foot a:hover{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Лого во футере */
footer .foot .logo{
  width: 48px;
  height: 48px;
  background-size: contain;
}

footer .foot-brand{
  align-items: center;
}

/* ===== Responsive ===== */
@media(max-width:980px){
  .brand{ min-width: 0; }
  .contacts{display:none}
  .cats{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .foot{grid-template-columns:1fr 1fr}

  .subnav{display:none}

  .burger{
    display:inline-flex;
    flex: 0 0 auto;
  }
  .mcontacts{display:block}
  .actions .btn{ display:none; }
}

/* ===== Tables: base ===== */
.entry-content table,
.card table,
main table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.entry-content th,
.entry-content td,
.card th,
.card td,
main th,
main td {
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.12);
  vertical-align: top;
  text-align: left;
}

.entry-content thead th,
.card thead th,
main thead th {
  font-weight: 700;
  background: rgba(0,0,0,.04);
}

.entry-content tbody tr:nth-child(even),
.card tbody tr:nth-child(even),
main tbody tr:nth-child(even) {
  background: rgba(0,0,0,.02);
}

/* Links inside table */
.entry-content table a,
.card table a,
main table a {
  text-decoration: underline;
}

/* ===== Mobile: make tables scrollable ===== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  min-width: 640px; 
}

/* optional: prevent long strings from breaking layout */
.entry-content td,
.card td,
main td {
  word-break: break-word;
}

@media(max-width:560px){
  h1{font-size:28px}
  .foot{grid-template-columns:1fr}
}

@media (max-width: 640px){
  footer .foot{
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
/* ===== Mobile: prevent logo cropping ===== */
@media (max-width: 640px){
  /* сам логотип */
  header .logo{
    width: 64px;
    height: 64px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex: 0 0 auto;
  }

@media (max-width: 980px){
  .contacts .contact-item:nth-child(5),
  .contacts .contact-item:nth-child(7),
  .contacts .divider:nth-child(6),
  .contacts .divider:nth-child(8){
    display: none;
  }
}

  /* контейнер шапки: позволяем элементам по высоте умещаться */
  header .topbar{
    height: auto;
    min-height: 0;          /* снимаем жесткую минимальную высоту */
    padding: 12px 0;
    align-items: center;
    overflow: visible;      /* если где-то резало */
  }

  /* бренд-область: тоже без обрезки */
  header .brand{
    align-items: center;
    overflow: visible;
  }

  .brand .brand-desc{
    display: none;
  }

  .brand-max{
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }
  .brand-max span:last-child{
    color: #fff;
  }
  .brand-max .icon{
    opacity: .95;
  }
}

.row ul, .row li { margin: 0; padding: 0; list-style: none; }
.row li { display: inline; }

/* ===== Breadcrumbs ===== */
.breadcrumbs{
  margin: 18px 0 6px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a{
  color: rgba(31,111,235,.9);
  text-decoration: none;
}

.breadcrumbs a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs .bc-sep{
  opacity: .45;
}

.breadcrumbs .current{
  color: rgba(0,0,0,.6);
  font-weight: 500;
}

/* На тёмной шапке (если вдруг решишь туда перенести) */
header .breadcrumbs{
  color: rgba(255,255,255,.65);
}
header .breadcrumbs a{
  color: rgba(255,255,255,.9);
}
header .breadcrumbs .current{
  color: rgba(255,255,255,.75);
}

/* ===== Spoiler (details / summary) — fixed ===== */
details.spoiler{
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* Полоса заголовка — во всю ширину */
details.spoiler > summary{
  display: block;                 /* КЛЮЧЕВО */
  width: 100%;                    /* КЛЮЧЕВО */

  background: #f6f8fb;
  padding: 14px 18px;
  margin: 0;

  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
}

/* убираем стандартный маркер */
details.spoiler > summary::-webkit-details-marker{
  display: none;
}

/* стрелка */
details.spoiler > summary::after{
  content: "▸";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .2s ease;
  opacity: .6;
}

details.spoiler[open] > summary::after{
  transform: translateY(-50%) rotate(90deg);
}

/* Контент — нормальная ширина, НЕ сжимается */
details.spoiler > *:not(summary){
  padding: 18px;
  margin: 0;
  box-sizing: border-box;
}

/* страховка для таблиц */
details.spoiler table{
  width: 100%;
}
/* ===== Spoiler inside .pad — full width header ===== */
.pad details.spoiler{
  margin-left: -20px;
  margin-right: -20px;
  border-radius: 0;
}

/* если у .pad другой padding — подстрой это значение */
.pad details.spoiler > summary{
  padding-left: 20px;
  padding-right: 20px;
}

/* возвращаем нормальные отступы контенту */
.pad details.spoiler > *:not(summary){
  padding: 20px;
}

/* ===== Icons ===== */
.icon{
  width: 16px;
  height: 16px;
  display: inline-block;
  opacity: .8;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* phone */
.icon.phone{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-width='2' d='M3 5a2 2 0 012-2h2l2 5-2 1a16 16 0 007 7l1-2 5 2v2a2 2 0 01-2 2h-1C9.716 20 4 14.284 4 7V5z'/%3E%3C/svg%3E");
}

/* phone (max) */
.icon.phone-max{
  background-image: url("../img/max-icon.png");
}

/* mail */
.icon.mail{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-width='2' d='M3 5h18v14H3V5zm0 0l9 7 9-7'/%3E%3C/svg%3E");
}

/* location */
.icon.location{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-width='2' d='M12 11a3 3 0 100-6 3 3 0 000 6z'/%3E%3Cpath stroke-width='2' d='M12 22s8-4.5 8-11a8 8 0 10-16 0c0 6.5 8 11 8 11z'/%3E%3C/svg%3E");
}

/* time */
.icon.time{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-width='2' d='M12 8v4l3 3'/%3E%3Ccircle cx='12' cy='12' r='9' stroke-width='2'/%3E%3C/svg%3E");
}

/* ===== Post list ===== */
.post-list{
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.post-item{
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.post-item a{
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.post-item a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Category posts (horizontal rows) ===== */
.posts-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.post-row{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: stretch;

  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

@media (max-width: 980px){
  .post-row{
    grid-template-columns: 1fr;
  }
}

.post-row__media{
  display: block;
  height: 180px;
  background: rgba(0,0,0,.04);
}

@media (max-width: 980px){
  .post-row__media{
    height: 200px;
  }
}

.post-row__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-row__placeholder{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
}

.post-row__body{
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-row__title{
  margin: 0;
  font-size: 18px;
}

.post-row__title a{
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.post-row__title a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-row__excerpt{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.post-row__excerpt p{
  margin: 0;
}

.post-row__more{
  margin-top: auto;
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}

.post-row__more:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Advantages (compact, industrial) ===== */
.advantages{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

@media (max-width: 980px){
  .advantages{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.adv{
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 14px;
  row-gap: 6px;

  padding: 14px 0;
  border-top: 1px solid var(--line);
}


.adv-icon{
  grid-row: span 2;
  width: 24px;
  height: 24px;
  opacity: .85;
}

.adv h3{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.adv p{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}


/* ===== Responsive table → cards ===== */
@media (max-width: 768px){

  .responsive-table thead{
    display: none;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td{
    display: block;
    width: 100%;
  }

  .responsive-table tr{
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #fff;
  }

  .responsive-table td{
    padding: 8px 0;
    border: 0;
    font-size: 14px;
    text-align: left;            /* КЛЮЧЕВО */
  }

  .responsive-table td::before{
    content: attr(data-label);
    display: block;              /* label сверху */
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 2px;
  }
  
  .responsive-table tbody tr:first-child{
    display: none;
  }
}

/* ===== Layout: боковое меню + контент ===== */
.layout{
  display:flex;
  gap:22px;
  align-items:flex-start;
}

.sidebar{
  width:290px;
  flex:0 0 auto;
}

.side-block{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px 16px;
  margin-bottom:14px;
}

.side-block-title{
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:var(--muted);
  border-bottom:1px solid var(--line);
  padding-bottom:8px;
  margin-bottom:8px;
}

.side-menu{
  list-style:none;
  margin:0;
  padding:0;
}

.side-menu > li > a{
  display:block;
  padding:7px 0;
  font-weight:600;
  font-size:14px;
  color:var(--text);
  border-bottom:1px dashed rgba(0,0,0,.08);
}

.side-menu > li:last-child > a{
  border-bottom:0;
}

.side-menu > li > a:hover{
  color:var(--brand);
  text-decoration:underline;
  text-underline-offset:3px;
}

.side-menu li > ul{
  list-style:none;
  margin:4px 0 6px;
  padding:0 0 4px 12px;
  border-left:2px solid var(--line);
}

.side-menu li li a{
  display:block;
  padding:4px 0;
  font-size:13px;
  color:var(--muted);
}

.side-menu li li a:hover{
  color:var(--brand);
}

.main-col{
  flex:1;
  min-width:0;
}

/* ===== Карточки категорий продукции ===== */
.prod-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:16px;
}

@media(min-width:981px){
  .prod-cards--4{
    grid-template-columns:repeat(4,1fr);
  }
}

.prod-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.prod-card:hover{
  border-color:rgba(31,111,235,.55);
  box-shadow:0 18px 45px rgba(15,23,42,.12);
  transform:translateY(-2px);
}

.prod-card__media{
  display:block;
  height:180px;
  background:var(--surface2);
  border-bottom:1px solid var(--line);
}

.prod-card__media img,
main .prod-card__media img{
  width:100%;
  max-width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  padding:8px;
}

.prod-card__body{
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}

.prod-card h3{
  margin:0;
  font-size:16px;
}

.prod-card h3 a{
  color:var(--text);
  font-weight:700;
}

.prod-card h3 a:hover{
  color:var(--brand);
  text-decoration:underline;
  text-underline-offset:3px;
}

.prod-card__body p{
  margin:0;
  font-size:14px;
  color:var(--muted);
}

.prod-card__more{
  margin-top:auto;
  align-self:flex-start;
  font-weight:600;
  color:var(--brand);
}

.prod-card__more:after{
  content:"→";
  margin-left:6px;
  opacity:.9;
}

.prod-card__more:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* ===== Текстовые блоки ===== */
.text-block h2{
  color:var(--text);
}

.text-block h2:not(:first-child){
  margin-top:24px;
}

.text-block ul.pl{
  margin:0 0 4px;
  padding-left:20px;
  color:var(--muted);
}

.text-block ul.pl li{
  margin-bottom:6px;
}

.text-block ul.pl li::marker{
  color:var(--brand);
}

.prod-card__placeholder{
  height:100%;
  background:#eef2f7;
}

/* ===== Зум картинок (лайтбокс) ===== */
#lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  overflow:auto;
  background:rgba(15,23,42,.92);
  cursor:zoom-out;
}

#lightbox[hidden]{
  display:none;
}

#lightbox img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  margin:auto;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  cursor:default;
}

.card img,
.card figure img{
  max-width:100%;
  height:auto;
}

main .card img:not(a img){
  cursor:zoom-in;
}

/* ===== Описание рубрики и пагинация ===== */
.cat-desc{
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--line);
  color:var(--muted);
}

.cat-desc p{
  margin:0 0 10px;
}

.cat-desc p:last-child{
  margin-bottom:0;
}

.cat-desc img{
  max-width:100%;
  height:auto;
  border-radius:var(--radius);
}

.cat-desc figure{
  margin:14px 0;
}

.cat-desc figcaption{
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
}

.table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:14px 0;
}

.table-wrap table{
  margin:0;
}

.cat-desc table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  background:var(--surface);
}

main .card table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  background:var(--surface);
}

.cat-desc th,
.cat-desc td{
  border:1px solid var(--line);
  padding:8px 12px;
  text-align:left;
  vertical-align:top;
}

.cat-desc th{
  background:var(--surface2);
  color:var(--text);
  font-weight:600;
}

.cat-desc tbody tr:nth-child(even) td{
  background:#f8fafd;
}

.cat-desc ul,
.cat-desc ol{
  margin:10px 0;
  padding-left:20px;
}

.cat-desc li{
  margin-bottom:4px;
}

.cat-desc h2,
.cat-desc h3,
.cat-desc h4{
  color:var(--text);
}

.cat-desc h2{
  margin:22px 0 8px;
}

.cat-desc h3{
  margin:18px 0 6px;
}

.cat-desc blockquote{
  margin:12px 0;
  padding:8px 14px;
  border-left:3px solid var(--brand);
  background:var(--surface2);
  border-radius:0 var(--radius) var(--radius) 0;
}

.pagination{
  margin-top:24px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  height:38px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--text);
  font-weight:600;
}

.pagination .page-numbers:focus,
.pagination .page-numbers:hover{
  border-color:var(--brand);
  color:var(--brand);
}

.pagination .page-numbers.current{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}

.pagination .page-numbers.current:hover{
  color:#fff;
}

/* ===== Мини-галерея (блок) ===== */
.gallery{
  margin:0 0 24px;
}

.gallery__main{
  position:relative;
  aspect-ratio:16/10;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface2);
}

.gallery__slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .3s ease,visibility .3s;
}

.gallery__slide.is-active{
  opacity:1;
  visibility:visible;
}

.card .gallery__slide img{
  width:100%;
  height:100%;
  max-width:none;
  object-fit:contain;
  display:block;
  cursor:zoom-in;
  padding:10px;
}

.gallery__caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:20px 12px 9px;
  background:linear-gradient(180deg,rgba(15,23,42,0),rgba(15,23,42,.75));
  color:#fff;
  font-size:13px;
  line-height:1.35;
  pointer-events:none;
}

.gallery__thumbs{
  display:flex;
  gap:8px;
  margin-top:8px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom:2px;
}

.gallery__thumb{
  flex:0 0 auto;
  width:76px;
  height:57px;
  padding:0;
  border:2px solid transparent;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface2);
  cursor:pointer;
  opacity:.7;
  transition:opacity .2s,border-color .2s;
}

.gallery__thumb:hover{
  opacity:1;
}

.gallery__thumb.is-active{
  border-color:var(--brand);
  opacity:1;
}

.gallery__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ===== Мини-галерея + текст справа ===== */
.gallery-layout{
  display:flex;
  gap:24px;
  align-items:flex-start;
  margin-bottom:24px;
}

.gallery-layout .gallery{
  flex:0 0 55%;
  width:55%;
  min-width:0;
  margin-bottom:0;
}

.gallery-layout__text{
  flex:1 1 0;
  min-width:0;
  font-size:16px;
  line-height:1.65;
  color:var(--muted);
  overflow-wrap:break-word;
}

.gallery-layout__text p{
  margin:0 0 10px;
}

.gallery-layout__text p:last-child{
  margin-bottom:0;
}

.gallery-layout__text > h1{
  font-size:26px;
  line-height:1.15;
  color:var(--text);
  margin:0 0 18px;
}

.gallery-layout__text .btn{
  margin-top:14px;
  padding:14px 26px;
  font-size:17px;
}

.gallery-layout__btns{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:14px;
}

.gallery-layout__btns .btn{
  margin-top:0;
}

/* ===== h1 + мини-галерея в одной строке (галерея — первый блок поста) ===== */
.card.pad:has(> h1 + .gallery){
  display:grid;
  grid-template-columns:55% 1fr;
  gap:0 24px;
  align-items:center;
}

.card.pad:has(> h1 + .gallery) > h1{
  grid-column:2;
  grid-row:1;
  align-self:center;
  margin:0;
}

.card.pad:has(> h1 + .gallery) > .gallery{
  grid-column:1;
  grid-row:1;
  margin-bottom:0;
}

.card.pad:has(> h1 + .gallery) > *:not(h1):not(.gallery){
  grid-column:1 / -1;
}

@media(max-width:760px){
  .card.pad:has(> h1 + .gallery){
    display:block;
  }
  .card.pad:has(> h1 + .gallery) > h1{
    grid-column:auto;
    margin:0 0 10px;
  }
  .card.pad:has(> h1 + .gallery) > .gallery{
    grid-column:auto;
    margin-bottom:24px;
  }
}

/* ===== Адаптив: боковая колонка сверху ===== */
@media(max-width:980px){
  .layout{
    flex-direction:column;
  }
  .sidebar{
    width:100%;
  }
  .prod-cards{
    grid-template-columns:1fr;
  }
  .gallery-layout{
    flex-direction:column;
    gap:16px;
  }
  .gallery-layout__text:has(> h1){
    display:contents;
  }
  .gallery-layout__text:has(> h1) > h1{
    order:-2;
    margin:0 0 12px;
  }
  .gallery-layout__text:has(> h1) > p{
    margin-bottom:0;
    font-size:16px;
    line-height:1.65;
    overflow-wrap:break-word;
  }
  .gallery-layout__text:has(> h1) > .btn{
    margin-top:0;
  }
  .gallery-layout .gallery{
    flex:1 1 auto;
    width:100%;
    order:-1;
  }
}

@media(max-width:640px){
  .gallery__main{
    aspect-ratio:4/3;
  }
  .gallery__thumb{
    width:64px;
    height:48px;
  }
}

/* ===== INFO BLOCK (главная) ===== */
.info-block .card{
  background:var(--surface2);
  padding:12px 16px;
}

/* ===== Список PDF (блок) ===== */
.pdf-list{
  list-style:none;
  margin:16px 0 24px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.pdf-list__item{
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:10px 14px;
  transition:border-color .2s ease,box-shadow .2s ease;
}

.pdf-list__item:hover{
  border-color:rgba(31,111,235,.45);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.pdf-list__icon{
  flex:0 0 auto;
  min-width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fdecea;
  color:#d93025;
  border-radius:4px;
  font-size:10px;
  font-weight:700;
}

.pdf-list__label{
  flex:1 1 auto;
  min-width:0;
  color:var(--text);
  font-weight:600;
  font-size:14px;
  overflow-wrap:anywhere;
}

.pdf-list__size{
  flex:0 0 auto;
  font-size:12px;
  color:var(--muted);
}

.pdf-list__btn{
  flex:0 0 auto;
  padding:8px 16px;
  font-size:13px;
}

@media(max-width:640px){
  .pdf-list__item{
    flex-wrap:wrap;
  }
  .pdf-list__size{
    display:none;
  }
}

/* ===== Штатный блок «Аккордеон» (wp-block-accordion) — стиль сайта ===== */
.wp-block-accordion .wp-block-accordion-item{
  margin:16px 0;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.wp-block-accordion .wp-block-accordion-item summary{
  display:block;
  width:100%;
  background:#f6f8fb;
  padding:14px 18px;
  margin:0;
  cursor:pointer;
  font-weight:600;
  list-style:none;
  position:relative;
  color:var(--text);
  text-decoration:none;
}

.wp-block-accordion .wp-block-accordion-item summary:hover{
  background:#eef2f8;
}

.wp-block-accordion .wp-block-accordion-item summary::-webkit-details-marker{
  display:none;
}

.wp-block-accordion .wp-block-accordion-item summary::after{
  content:"▸";
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  transition:transform .2s ease;
  opacity:.6;
}

.wp-block-accordion .wp-block-accordion-item[open] > summary::after{
  transform:translateY(-50%) rotate(90deg);
}

.wp-block-accordion .wp-block-accordion-item > .wp-block-accordion-item__content{
  padding:18px;
  margin:0;
}

.wp-block-accordion .wp-block-accordion-item__content > *{
  margin-top:0;
}

.wp-block-accordion .wp-block-accordion-item__content > :last-child{
  margin-bottom:0;
}

/* ===== Аккордеон, новая разметка WP 6.8+ (h3 + button + panel, без details/summary) ===== */
.wp-block-accordion .wp-block-accordion-heading{
  margin:0;
  font-size:16px;
  font-weight:600;
  line-height:1.4;
}

.wp-block-accordion .wp-block-accordion-heading__toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
  margin:0;
  padding:14px 18px;
  background:#f6f8fb;
  border:none;
  box-shadow:none;
  cursor:pointer;
  font:inherit;
  font-size:16px;
  font-weight:600;
  line-height:1.4;
  color:var(--text);
  text-align:left;
}

.wp-block-accordion .wp-block-accordion-heading__toggle:hover{
  background:#eef2f8;
}

.wp-block-accordion .wp-block-accordion-heading__toggle:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:-2px;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-title{
  flex:1 1 auto;
  min-width:0;
  overflow-wrap:anywhere;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-icon{
  flex:0 0 auto;
  font-size:18px;
  line-height:1;
  opacity:.6;
}

.wp-block-accordion .wp-block-accordion-panel{
  padding:18px;
}

/* Закрытая панель: браузер не применяет display:none к hidden="until-found" и оставляет её место в потоке.
   Убираем отступ и прячем переполнение за нижней границей карточки (border item'а) */
.wp-block-accordion .wp-block-accordion-panel[hidden="until-found"]{
  padding:0;
  margin-bottom:-1px;
  overflow:hidden;
  box-sizing:content-box;
}

.wp-block-accordion .wp-block-accordion-panel > *{
  margin-top:0;
}

.wp-block-accordion .wp-block-accordion-panel > :last-child{
  margin-bottom:0;
}

/* ===== Страница 404 ===== */
.notfound{
  text-align:center;
  padding:34px 10px 26px;
}

.notfound__code{
  font-size:92px;
  font-weight:800;
  line-height:1;
  letter-spacing:2px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.notfound h1{
  margin:14px 0 6px;
}

.notfound p{
  margin:0 auto 18px;
  max-width:480px;
}

.notfound__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-bottom:22px;
}

.search-form{
  display:flex;
  gap:8px;
  max-width:420px;
  margin:0 auto;
}

.search-form__input{
  flex:1 1 auto;
  min-width:0;
  padding:9px 12px;
  font:inherit;
  color:var(--text);
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
}

.search-form__input:focus{
  outline:2px solid var(--brand);
  outline-offset:-1px;
}

.search-form__btn{
  flex:0 0 auto;
}