
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter 18pt', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 3em;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

h2 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 2em;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

h3, h4, h5, h6 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

small, .hero__address, .footer-left__contacts {
    font-family: 'Inter 18pt', sans-serif;
    font-size: 0.9em;
}

button, .btn, .hero__cta, .hero__kp-btn, .main-menu__list .menu-item > a, .main-menu-inner__list .menu-item > a {
    font-family: 'Inter 24pt', sans-serif;
}

/* ============================================
   2. УТИЛИТЫ И ОБЩИЕ КЛАССЫ
   ============================================ */
.widget { margin-bottom: 20px; }
.widget:last-child { margin-bottom: 0; }
.widget__title { margin: 0 0 10px 0; font-size: 1.5em; color: #fff; }
.widget-area:empty { display: none; }

/* ============================================
   3. ШАПКА САЙТА (HEADER)
   ============================================ */
.header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.header--home {
    max-width: none;
    padding: 0;
    margin: 0;
}

.header--inner {
    background-color: #34495e;
    color: #ecf0f1;
    max-width: none;
    margin: 0;
    padding: 0;
}

.header--inner .widget {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* --- Общие стили для Topbar (Hero и Inner) --- */
.hero__topbar-inner, 
.header-inner__topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.hero__topbar-col, .header-inner__topbar-col { min-width: 0; }
.hero__topbar-col--left, .header-inner__topbar-col--left { text-align: left; }
.hero__topbar-col--center, .header-inner__topbar-col--center { text-align: center; }
.hero__topbar-col--right, .header-inner__topbar-col--right { text-align: right; }

/* --- Hero Topbar --- */
.hero__topbar {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero__address { color: #fff; font-size: 0.9em; line-height: 1.4; }

.hero__kp-btn, .header-inner__kp-btn {
    display: inline-block;
    color: #e67e22;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9em;
    border-radius: 4px;
    border-bottom: 1px dashed #e67e22;
}
.hero__kp-btn:hover, .header-inner__kp-btn:hover { background-color: #d35400; }

.hero__lang a, .header-inner__lang a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    margin-left: 10px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    transition: background-color 0.3s, border-color 0.3s;
}
.hero__lang a:first-child, .header-inner__lang a:first-child { margin-left: 0; }
.hero__lang a:hover, .header-inner__lang a:hover { background-color: rgba(255, 255, 255, 0.15); border-color: #fff; }

/* --- Inner Topbar --- */
.header-inner__topbar {
    width: 100%;
    background: #1E1E1E;
    margin: 0;
    padding: 0;
}

.header-inner__address { color: #fff; font-size: 0.9em; line-height: 1.4; }

/* ============================================
   4. HERO-БАННЕР (ГЛАВНАЯ СТРАНИЦА)
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 95vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.61);
    z-index: 1;
}

/* --- Hero Navbar --- */
.hero__navbar {
    position: relative;
    z-index: 10;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 30px;
}
.hero__contacts {width:135px;}

.hero__navbar-col { min-width: 0; }
.hero__logo-img { max-width: 180px; height: auto; display: block; }

/* --- Hero Content --- */
.hero__content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.hero__title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    color: #fff;
    font-size: 3em;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero__subtitle {
    font-family: 'Inter 24pt', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.4em;
    margin: 0 0 40px 0;
    line-height: 1.5;
}

.hero__cta {
    display: inline-block;
    padding: 16px 48px;
    background-color: #e67e22;
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.2s;
}
.hero__cta:hover { background-color: #d35400; transform: translateY(-2px); }

/* ============================================
   5. ХЕДЕР ВНУТРЕННИХ СТРАНИЦ (HEADER-INNER)
   ============================================ */
.header-inner { width: 100%; }

/* --- Inner Navbar --- */
.header-inner__navbar {
    width: 100%;
    background: #34495e;
    margin: 0;
    padding: 0;
}

.header-inner__navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    align-items: center;
    gap: 30px;
}

.header-inner__navbar-col { min-width: 0; }
.header-inner__logo-img { width: 250px; height: auto; max-width: 100%; display: block; }

.header-inner__contacts { width:135px;text-align: right; }
.header-inner__contacts a { color: #fff; text-decoration: none; }
.header-inner__contacts a:hover { color: #e67e22; }

/* ============================================
   6. ГЛАВНОЕ МЕНЮ (ОБЩЕЕ ДЛЯ HERO И INNER)
   ============================================ */
.main-menu__list, 
.main-menu-inner__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-menu__list .menu-item, 
.main-menu-inner__list .menu-item { position: relative; }

.main-menu__list .menu-item > a, 
.main-menu-inner__list .menu-item > a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.main-menu__list .menu-item > a:hover, 
.main-menu-inner__list .menu-item > a:hover { color: #e67e22; }

.main-menu__list .sub-menu, 
.main-menu-inner__list .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 6px;
    z-index: 100;
}

.main-menu__list .menu-item:hover > .sub-menu, 
.main-menu-inner__list .menu-item:hover > .sub-menu,
.main-menu__list .menu-item.is-open > .sub-menu,
.main-menu-inner__list .menu-item.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-menu__list .sub-menu .menu-item, 
.main-menu-inner__list .sub-menu .menu-item { width: 100%; }

.main-menu__list .sub-menu .menu-item > a, 
.main-menu-inner__list .sub-menu .menu-item > a {
    color: #333;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.95em;
}

.main-menu__list .sub-menu .menu-item > a:hover, 
.main-menu-inner__list .sub-menu .menu-item > a:hover { background: #f5f5f5; color: #e67e22; }

/* --- Кнопка-бургер (мобильное меню) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Cheeseburger: средняя полоска короче и смещена влево */
.menu-toggle__bar:nth-child(2) { width: 14px; transform: translateX(-5px); }

.menu-toggle.is-active .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Мобильные блоки (языки в бургере, телефоны) — только < 768px --- */
.mobile-langs,
.header-mobile-phones { display: none; }

/* ============================================
   7. ОСНОВНОЙ КОНТЕНТ (MAIN, BREADCRUMBS, PAGE)
   ============================================ */
.main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}
.main__wrapper { width: 100%; }

/* --- Breadcrumbs --- */
.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
    box-sizing: border-box;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: 'Inter 18pt', sans-serif;
    font-size: 0.9em;
    color: #666;
}

.breadcrumbs__item { display: flex; align-items: center; }

.breadcrumbs__link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs__link:hover { color: #e67e22; }

.breadcrumbs__item + .breadcrumbs__item::before {
    content: '›';
    margin-right: 8px;
    color: #ccc;
    font-size: 1.2em;
    line-height: 1;
}

.breadcrumbs__item--current .breadcrumbs__current {
    color: #333;
    font-weight: 600;
}

/* --- Page Header --- */
.page-header { margin-bottom: 30px; }
.page-header__title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 2.2em;
    line-height: 1.2;
    color: #34495e;
    margin: 0;
}
/* --- PageInner menu --- */
.page-menu {border-bottom:1px solid #c3c3c3;margin-bottom: 30px;}
.page-menu__list {
    display: grid;
    grid-auto-flow: column;
    list-style-type: none;
    width: 65%;margin-bottom: 5px !important;
}
.page-menu__item {margin: 0 15px;}
.page-menu__item a {margin: 0 10px;text-decoration:none !Important;}
.page-menu__item--active {border-bottom:1px solid;}
.page-menu__item--active a {font-weight:600;text-decoration:none !Important;}

/* --- Page Content --- */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.page-content__body {
    width: 100%;
    font-family: 'Inter 18pt', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #5f5f5f;
}

.page-content__body h2 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.6em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #34495e;
}

.page-content__body h3 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 1.35em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #34495e;
}

.page-content__body p { margin-bottom: 1.5em; }

.page-content__body ul,
.page-content__body ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.page-content__body li { margin-bottom: 0.5em; }

.page-content__body a {
    color: #e67e22;
    text-decoration: underline;
    transition: color 0.2s;
}
.page-content__body a:hover { color: #d35400; }

/* Ссылки-карточки рубрик и контактов: без подчёркивания (в т.ч. оранжевого).
   Специфичность (0,2,0) перебивает .page-content__body a (0,1,1). */
.page-content__body .equipment-item a,
.page-content__body .equipment-subcategory a,
.page-content__body .equip-card,
.page-content__body .location-card a,
.page-content__body .department-card a {
    text-decoration: none;
}

.page-content__body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0;
}

.page-content__body blockquote {
    border-left: 4px solid #e67e22;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.page-content__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-content__body th,
.page-content__body td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.page-content__body th {
    background: #f5f5f5;
    font-weight: 600;
}

/* ============================================
   КОЛОНКИ GUTENBERG — раскладку делает ядро WP,
   тема задаёт только отступы (flex-wrap/flex-basis НЕ трогаем)
   ============================================ */
.wp-block-columns {
    gap: 30px;
    margin-bottom: 40px;
}

.wp-block-column {
    min-width: 0; /* защита от «разрыва» при длинном слове/картинке */
}

.wp-block-column > * { margin-top: 0; margin-bottom: 20px; }
.wp-block-column > *:last-child { margin-bottom: 0; }

/* На брейкпоинте ядра (≤781px) ядро само складывает колонки;
   лишь уменьшаем gap под мобильную тему */
@media (max-width: 781px) {
    .wp-block-columns { gap: 20px; }
}

/* ============================================
   COOKIE-БАННЕР (152-ФЗ)
   ============================================ */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #1e1e1e;
    color: #eee;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
}
.cookie-consent[hidden] { display: none; }

.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent__text {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}
.cookie-consent__text a { color: #e67e22; text-decoration: underline; }

.cookie-consent__accept {
    flex: 0 0 auto;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.cookie-consent__accept:hover { background: #cf6d12; }

@media (max-width: 768px) {
    .cookie-consent__inner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-consent__accept { width: 100%; }
}

/* ============================================
   8. ПОДВАЛ (FOOTER)
   ============================================ */
.footer {
    width: 100%;
    max-width: none;
    margin: 40px 0 0 0;
    padding: 30px 0;
    background-color: #222;
    color: #aaa;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.footer__column { min-width: 0; }
.footer__column--left { text-align: left; }
.footer__column--center { text-align: center; }
.footer__column--right { text-align: right; }

/* --- Виджет левой колонки футера --- */
.footer-left { display: flex; flex-direction: column; gap: 20px; }
.footer-left__logo img { width: 200px; height: auto; max-width: 100%; display: block; }
.footer-left__contacts { font-size: 0.95em; line-height: 1.6; }
.footer-left__contacts a { color: #aaa; text-decoration: none; transition: color 0.2s; }
.footer-left__contacts a:hover { color: #fff; }
.footer-left__privacy { margin-top: 10px; padding-top: 15px; border-top: 1px solid #444; }
.footer-left__privacy-link { color: #aaa; text-decoration: none; font-size: 0.9em; transition: color 0.2s; }
.footer-left__privacy-link:hover { color: #fff; text-decoration: underline; }

/* --- Меню в футере --- */
.footer .menu, .footer__column ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}
.footer .menu li, .footer__column ul.menu li { margin: 0; padding: 0; }
.footer .menu li a, .footer__column ul.menu li a {
    display: block;
    padding: 6px 0;
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}
.footer .menu li a:hover, .footer__column ul.menu li a:hover {
    color: #e67e22;
    text-decoration: none;
}

/* ============================================
   9. МОДАЛЬНОЕ ОКНО (MODAL)
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal.is-active { display: flex; }

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 420px;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}
.modal__close:hover { color: #333; }

.modal__title { margin: 0 0 25px 0; font-size: 1.5em; color: #222; text-align: center; }

body.modal-open { overflow: hidden; }

.modal__form { display: flex; flex-direction: column; gap: 20px; }
.modal__label { display: flex; flex-direction: column; font-size: 0.9em; color: #555; font-weight: 600; }
.modal__label--checkbox {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    font-weight: 400;
}
.modal__label--checkbox input[type="checkbox"] {
    order: -1;
    width: 16px;
    height: 16px;
    margin: 3px 0 0 0;
    flex-shrink: 0;
    cursor: pointer;
}
.modal__input {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s;
}
.modal__input:focus { outline: none; border-color: #e67e22; }
.modal__input--error { border-color: #d93025; }

.modal__hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8em;
    font-weight: 400;
    color: #999;
    line-height: 1.3;
}

.modal__error {
    display: block;
    margin-top: 6px;
    font-size: 0.8em;
    font-weight: 400;
    color: #d93025;
    line-height: 1.3;
}

.modal__submit {
    padding: 14px;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s;
}
.modal__submit:hover { background: #d35400; }

.form-success-message {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 100000;
    max-width: 90%;
    padding: 14px 22px;
    border-radius: 6px;
    background: #2e7d32;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.form-success-message.is-visible {
    opacity: 1;
    visibility: visible;
}
.form-success-message[hidden] { display: none; }
.modal__submit:disabled,
.modal__submit:disabled:hover {
    background: #cccccc;
    color: #f2f2f2;
    cursor: not-allowed;
    opacity: 1;
    transition: none;
}

/* ============================================
   СТИЛИ ДЛЯ КАТЕГОРИЙ
   ============================================ */
/* Блок тегов на странице рубрики */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.category-tags__label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-right: 4px;
}

.category-tags__item {
    display: inline-block;
    background-color: #f4f4f4;
    color: #555;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.category-tags__item:hover {
    background-color: #0073aa;
    color: #ffffff;
}

/* ============================================
   10. СТИЛИ ДЛЯ ЗАПИСЕЙ
   ============================================ */
/* Обложка записи */
.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Контент записи */
.entry-content {
    margin-bottom: 40px;
}

/* Раскладка записи: изображение + контент */
.post-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .post-layout--with-image {
        flex-direction: row;
        align-items: flex-start;
    }

    .post-layout__image {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .post-layout__content {
        flex: 1;
        min-width: 0;
    }
}

.post-thumbnail__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Контент записи */
.entry-content {
    margin-bottom: 20px;
}

/* Навигация между записями */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.post-navigation__prev,
.post-navigation__next {
    flex: 1;
}

.post-navigation__next {
    text-align: right;
}

.post-navigation a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: #0073aa;
}

/* === Теги на странице Записи (справа от изображения) === */
.post-tags-block,
.post-tags-group,
.post-tags-group__label,
.post-tag-link,
.post-tag-link:hover {
    display: none;
}

/*
.post-tags-block {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-tags-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-tags-group__label {
    font-weight: 600;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-tag-link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.post-tag-link:hover {
    color: #005177;
    text-decoration: underline;
}
*/

/* === Теги на странице Категории 39 (в ряд с фонами) === */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.category-tags__label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-right: 4px;
}

.category-tags__item {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.category-tags__item:hover {
    opacity: 0.8;
}

/* Обычные теги - серый фон */
.category-tags--regular .category-tags__item {
    background-color: #f4f4f4;
    color: #555;
}

.category-tags--regular .category-tags__item:hover {
    background-color: #0073aa;
    color: #ffffff;
}

/* Отрасли - синий фон */
.category-tags--industry .category-tags__item {
    background-color: #e3f2fd;
    color: #1976d2;
}

.category-tags--industry .category-tags__item:hover {
    background-color: #1976d2;
    color: #ffffff;
}

/* Материалы - зеленый фон */
.category-tags--material .category-tags__item {
    background-color: #e8f5e9;
    color: #388e3c;
}

.category-tags--material .category-tags__item:hover {
    background-color: #388e3c;
    color: #ffffff;
}

/* Адаптивность для мобильных */
@media (max-width: 767px) {
    .post-tags-block {
        margin-top: 15px;
        margin-bottom: 20px;
    }
    
    .category-tags {
        margin-bottom: 15px;
    }
}

/* Адаптивность для тегов на мобильных */
@media (max-width: 767px) {
    .post-tags {
        margin-top: 10px;
        margin-bottom: 20px;
    }
}

/* ============================================
   11. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ============================================ */
@media (max-width: 992px) {
    /* Навигация (Hero и Inner) */
    .inner__topbar-col--center {display:none;}
    .hero__navbar-inner, 
    .header-inner__navbar-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    
    .hero__logo-img, 
    .header-inner__logo-img { width:150px;margin: 0 auto; }

    .main-menu__list, 
    .main-menu-inner__list {
        flex-direction: column;
        gap: 10px;
    }

    .main-menu__list .sub-menu, 
    .main-menu-inner__list .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        padding-left: 20px;
        display: none;
    }

    .main-menu__list .menu-item:hover > .sub-menu, 
    .main-menu-inner__list .menu-item:hover > .sub-menu,
    .main-menu__list .menu-item.is-open > .sub-menu,
    .main-menu-inner__list .menu-item.is-open > .sub-menu { display: block; }

    .main-menu__list .sub-menu .menu-item > a, 
    .main-menu-inner__list .sub-menu .menu-item > a { color: #fff; }

    .header-inner__contacts { width:100%;text-align: center; }
}

@media (max-width: 768px) {
    /* Hero */
    .hero { height: 100svh; max-height: none; }
    .hero__title { font-size: 1.8em; }
    .hero__subtitle { font-size: 1.1em; }
    .hero__cta { padding: 14px 32px; font-size: 1em; }
    .hero__lang a { margin-left: 5px; }
    
    /* Topbars (Hero и Inner) */
    .hero__topbar-inner, 
    .header-inner__topbar-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }

    .hero__topbar-col--left, .hero__topbar-col--center, .hero__topbar-col--right,
    .header-inner__topbar-col--left, .header-inner__topbar-col--center, .header-inner__topbar-col--right {
        text-align: center;
    }

    /* Языки убираем из шапки (переносим в конец бургер-меню) */
    .hero__topbar-col--right,
    .header-inner__topbar-col--right { display: none; }
    .hero__lang,
    .header-inner__lang { display: none; }

    /* Телефоны под адресом */
    .header-mobile-phones {
        display: block;
        margin-top: 8px;
        line-height: 1.6;
    }
    .header-mobile-phones a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
    }
    .header-mobile-phones a:hover { color: #e67e22; }

    /* --- Мобильное меню (бургер) --- */
    .menu-toggle { display: inline-flex; order: 2; margin-left: auto; }

    .hero__navbar-inner,
    .header-inner__navbar-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        text-align: left;
    }

    .hero__navbar-col--logo,
    .header-inner__navbar-col--logo { order: 1; margin: 0; text-align: left; }

    .hero__navbar-col--menu,
    .header-inner__navbar-col--menu {
        order: 3;
        flex-basis: 100%;
        width: 100%;
    }

    .hero__navbar-col--contacts,
    .header-inner__navbar-col--contacts { display: none; }

    .main-menu,
    .main-menu-inner {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.35s ease;
    }

    .main-menu.is-active,
    .main-menu-inner.is-active {
        max-height: 85vh;
        overflow-y: auto;
        opacity: 1;
    }

    .main-menu__list,
    .main-menu-inner__list { align-items: stretch; }

    /* Плоское меню: отказ от выпадающих подменю */
    .main-menu__list .sub-menu,
    .main-menu-inner__list .sub-menu {
        display: block;
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
        padding-left: 0;
    }
    .main-menu__list .sub-menu .menu-item > a,
    .main-menu-inner__list .sub-menu .menu-item > a {
        padding-left: 20px;
        font-size: 0.9em;
    }

    /* Языки — последние пункты бургер-меню */
    .mobile-langs {
        display: block;
        margin-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 15px;
    }
    .mobile-langs a {
        color: #fff;
        text-decoration: none;
    }
    .mobile-langs a:hover { color: #e67e22; }

    /* Footer */
    .footer { padding: 20px 0; }
    .footer__columns { grid-template-columns: 1fr; gap: 20px; }
    .footer__column--left, .footer__column--center, .footer__column--right { text-align: center; }
    .footer-left { align-items: center; }
    
    /* Breadcrumbs & Page */
    .breadcrumbs__list { font-size: 0.85em; gap: 6px; }
    .page-header__title { font-size: 1.6em; }
    .page-content__body h2 { font-size: 1.4em; }
    .page-content__body h3 { font-size: 1.2em; }
}

/* === Двухколоночная раскладка для рубрики 39 === */
.category-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.category-layout__sidebar {
    flex: 0 0 280px;
    max-width: 280px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.category-layout__content {
    flex: 1;
    min-width: 0;
}

/* Боковой блок с тегами */
.category-sidebar-tags,
.category-sidebar-tags__title,
.category-sidebar-group,
.category-sidebar-group:last-child,
.category-sidebar-group__label,
.category-sidebar-group__list,
.category-sidebar-tag,
.category-sidebar-tag:hover,
.category-sidebar-tag--regular,
.category-sidebar-tag--regular:hover,
.category-sidebar-tag--industry,
.category-sidebar-tag--industry:hover,
.category-sidebar-tag--material,
.category-sidebar-tag--material:hover {
    display: none;
}

/*
.category-sidebar-tags {
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.category-sidebar-tags__title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0073aa;
}

.category-sidebar-group {
    margin-bottom: 20px;
}

.category-sidebar-group:last-child {
    margin-bottom: 0;
}

.category-sidebar-group__label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.category-sidebar-group__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-sidebar-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.category-sidebar-tag:hover {
    opacity: 0.85;
}

.category-sidebar-tag--regular {
    background-color: #f0f0f0;
    color: #555;
}

.category-sidebar-tag--regular:hover {
    background-color: #0073aa;
    color: #fff;
}

.category-sidebar-tag--industry {
    background-color: #e3f2fd;
    color: #1976d2;
}

.category-sidebar-tag--industry:hover {
    background-color: #1976d2;
    color: #fff;
}

.category-sidebar-tag--material {
    background-color: #e8f5e9;
    color: #388e3c;
}

.category-sidebar-tag--material:hover {
    background-color: #388e3c;
    color: #fff;
}
*/

/* SEO-текст в правой колонке */
.category-layout__content .category-seo-description {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* === Адаптивность === */
@media (max-width: 991px) {
    .category-layout {
        flex-direction: column;
        gap: 30px;
    }

    .category-layout__sidebar {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        position: static;
    }

    /* .category-sidebar-tags { padding: 15px; } */
}

@media (max-width: 575px) {
    .category-sidebar-group__list {
        gap: 5px;
    }

    .category-sidebar-tag {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* ============================================
   ПАГИНАЦИЯ (WP the_posts_pagination)
   ============================================ */
.pagination {
    margin: 40px 0 10px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    box-sizing: border-box;
    font-family: 'Inter 24pt', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #34495e;
    background-color: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 6px;
    text-decoration: none;
    transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}

.pagination a.page-numbers:hover {
    color: #fff;
    background-color: #e67e22;
    border-color: #e67e22;
    box-shadow: 0 4px 12px rgba(230, 126, 34, .3);
}

.pagination .page-numbers.current {
    color: #fff;
    background-color: #e67e22;
    border-color: #e67e22;
    cursor: default;
}

.pagination .page-numbers.dots {
    min-width: auto;
    padding: 0 4px;
    color: #95a5a6;
    background-color: transparent;
    border-color: transparent;
    letter-spacing: 1px;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 0 18px;
}

@media (max-width: 575px) {
    .pagination {
        margin: 30px 0 10px;
    }

    .pagination .nav-links {
        gap: 6px;
    }

    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        padding: 0 12px;
    }
}
/* === ДИЗАЙН ЗАПЧАСТЕЙ (ID 39) === */
.product-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; padding: 10px 0 50px; }
.product-image-wrap { position: relative; background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 20px; text-align: center; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; transition: transform 0.3s ease; display: block; }
.product-image:hover { transform: scale(1.03); }
.zoom-hint { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); color: #fff; padding: 6px 12px; border-radius: 4px; font-size: 12px; pointer-events: none; display: flex; align-items: center; gap: 6px; }
.zoom-hint::before { content: "⌕"; font-size: 14px; }
.product-info h1 { font-size: 32px; font-weight: 700; color: #1e3a5f; margin-bottom: 20px; line-height: 1.2; }
.product-lead-wrap { font-size: 16px; color: #555; margin-bottom: 16px; line-height: 1.7; }
.product-lead-wrap em.client-ref, .product-client { display: block; font-size: 14px; color: #7f8c8d; font-style: italic; padding-left: 16px; border-left: 3px solid #E87722; margin-top: 20px; line-height: 1.5; }
.seo-content { padding: 10px 0 60px; }
.seo-content h2 { font-size: 24px; color: #1e3a5f; margin: 40px 0 20px; font-weight: 700; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content p { margin-bottom: 16px; color: #444; line-height: 1.7; }
.reference-note { font-size: 15px; color: #666; font-style: italic; padding: 16px 20px; background: #f7f9fb; border-left: 3px solid #c0c7d0; border-radius: 0 4px 4px 0; margin: 24px 0; }
.reverse-engineering { background: #f7f9fb; border-left: 4px solid #E87722; padding: 30px 35px; margin: 30px 0; border-radius: 0 4px 4px 0; }
.reverse-engineering h2 { margin-top: 0; }
.reverse-engineering p { margin-bottom: 14px; }
.simple-list { list-style: none; margin: 16px 0 0; }
.simple-list li { position: relative; padding-left: 20px; margin-bottom: 10px; color: #444; line-height: 1.6; }
.simple-list li::before { content: "—"; position: absolute; left: 0; color: #1e3a5f; font-weight: 700; }
.specs-table { width: 100%; border-collapse: collapse; margin: 24px 0; background: #fff; border: 1px solid #e0e0e0; }
.specs-table thead th { background: #1e3a5f; color: #fff; padding: 14px 18px; text-align: left; font-weight: 600; font-size: 15px; }
.specs-table thead th:first-child { border-top: 3px solid #E87722; }
.specs-table tbody td { padding: 14px 18px; border-bottom: 1px solid #eee; vertical-align: top; }
.specs-table tbody tr:nth-child(even) { background: #fafbfc; }
.specs-table tbody tr:hover { background: #f0f4f8; }
.specs-table td:first-child { font-weight: 600; color: #1e3a5f; width: 40%; }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; justify-content: center; align-items: center; padding: 40px; cursor: zoom-out; animation: lb-fade 0.25s ease; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 36px; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,0.1); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 768px) {
    .product-hero { grid-template-columns: 1fr; gap: 30px; }
    .product-info h1 { font-size: 24px; }
    .seo-content h2 { font-size: 20px; }
    .reverse-engineering { padding: 20px; }
    .specs-table { font-size: 14px; }
    .specs-table thead th, .specs-table tbody td { padding: 10px 12px; }
    .product-image-wrap { aspect-ratio: 4 / 3; }
}

/* Скрываем стандартное крупное изображение темы для рубрики Запчасти (ID 39), 
   так как у нас теперь свой блок product-hero */
.category-39 .single-product__main-image,
.category-39 .post-layout__image,
.category-39 .single-product__media {
    display: none !important;
}

/* === СКРЫТИЕ ДУБЛИРУЮЩЕГО БЛОКА МЕДИА ДЛЯ РУБРИКИ ЗАПЧАСТИ (ID 39) === */
body.category-39 .single-product__media,
body.category-39 .single-product__main-image {
}

/* === СКРЫТИЕ ДУБЛЯ МЕДИА ДЛЯ ЗАПЧАСТЕЙ (ID 39) === */
/* Ищем класс category-39 на любом уровне вложенности (body, article, div) */
.category-39 .single-product__media,
.category-39 .single-product__main-image,
.category-39 .single-product__image-wrap {
    display: none !important;
}

/* Временное правило для конкретной записи "Бункер загрузки" (ID 676) для проверки */
.single-post.postid-676 .single-product__media,
.single-post.postid-676 .single-product__main-image {
    display: none !important;
}

/* Скрываем дублирующийся H1 темы для рубрики Запчасти (ID 39) */
body.category-39 .single-product__title,
body.category-39 h1.single-product__title {
}

/* === СКРЫТИЕ СТАРОГО H1 ДЛЯ ЗАПЧАСТЕЙ (ID 39) === */
/* Скрываем любой H1, который НЕ находится внутри .product-hero */
body.category-39 h1:not(.product-info h1):not(.product-hero h1) {
}

/* Скрываем лишний H1 только для рубрики Запчасти (ID 39) */
body.category-39 .page-content__body .single-product__content > h1 {
    display: none;
}

/* Список особенностей (адаптировано под Gutenberg) */
/* Уменьшаем отступ между заголовком особенности и описанием (для br от Shift+Enter) */
/* Нейтрализуем лишний отступ от тега <br> внутри списка особенностей Gutenberg */
.wp-block-list.features-list li br {
    line-height: 0;
    font-size: 0;
    margin: 0;
    padding: 0;
    display: inline;
}

/* Гарантируем компактный отступ от заголовка особенности */
.wp-block-list/* Убираем маркеры списка Gutenberg */
ul.features-list li::marker {
    content: "" !important;
}

/* Заголовок особенности делаем блочным с компактным отступом */
ul.features-list li strong {
    display: block;
    color: #1e3a5f;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px !important;
}

/* Полностью скрываем <br>, чтобы он не создавал лишнюю высоту строки */
ul.features-list li br {
    display: none !important;
}

/* === КОРРЕКТНЫЕ СТИЛИ СПИСКА ОСОБЕННОСТЕЙ (Gutenberg) === */
/* Убираем только маркеры и стандартный отступ под них */
ul/* Стили элемента списка: 20px слева создают нужный отступ от оранжевой линии до текста */
ul/* Гарантируем удаление маркеров Gutenberg */
ul.features-list li::marker {
    content: "" !important;
}

/* Заголовок особенности */
ul.features-list li strong {
    display: block;
    color: #1e3a5f;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px !important;
}

/* Скрываем <br>, чтобы он не добавлял лишнюю высоту */
ul.features-list li br {
    display: none !important;
}

/* Скрываем <br> от Shift+Enter в списке особенностей Gutenberg */

/* === СПИСОК ОСОБЕННОСТЕЙ (Адаптировано под Gutenberg) === */
.features-list {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}

.features-list li {
    position: relative;
    padding: 16px 20px; /* Этот отступ создает пространство от оранжевой линии до текста */
    border-left: 3px solid #E87722;
    margin-bottom: 16px;
    background: #fafbfc;
    border-radius: 0 4px 4px 0;
    line-height: 1.6;
    color: #555;
    font-size: 15px;
}

/* Убираем маркеры списка, если Gutenberg их добавляет */
.features-list li::marker {
    content: "";
}

