/* Путь: /wp-content/themes/lizard/assets/main.css */
/* Regular (Обычный) */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Italic (Для ваших кнопок и плашек) */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Bold / SemiBold (Для заголовков и кнопок) */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold / ExtraBold (Для заголовков и кнопок) */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Bold Italic (Идеально для кнопок Рутекс) */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* Путь: /wp-content/themes/lizard/assets/main.css */
/* ===== Базовые переменные и утилиты ===== */
:root{
  --c-dark:#0e2a3c;
  --c-deep:#0b2030;
  --c-blue:#163a52;
  --c-accent:#d62c2c;
  --c-light:#ffffff;
  --c-muted:#7f8b93;
  --container: 1200px;
  --radius: 14px;

  /* motion */
  --shadow-card: 0 10px 26px rgba(12,26,46,.12);
  --shadow-card-hover: 0 16px 38px rgba(12,26,46,.18);
  --shadow-btn: 0 6px 18px rgba(214,44,44,.25);
  /* --parallax: 0;            управляется JS */
  /* --kenburns-scale: 1.06;   масштаб в анимации hero */
}

*{box-sizing:border-box}
body.lizard{
  font-family: 'Montserrat', sans-serif;
  color:#1c1c1c;
  line-height:1.6;
  background:#fff;
}
.container{max-width:var(--container);margin:0 auto;padding:0 16px}

/* ===== Уважение к reduced-motion ===== */
@media (prefers-reduced-motion: reduce){
  *{animation: none !important; transition: none !important}
  /* :root{ --kenburns-scale: 1.01; } */
}

/* ===== Header ===== */
.site-header__topbar{background:#FBFAF6;border-bottom:1px solid #eef2f5}
.site-header .container{display:flex;align-items:center;gap:24px;padding:14px 16px}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;transform:translateZ(0)}
.brand__logo{height:38px;width:auto;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.brand:hover .brand__logo{transform:scale(1.06)}

.main-nav__list{display:flex;gap:22px;list-style:none;margin:0;padding:0}
.main-nav__link{font-family:Roboto,sans-serif;display:inline-block;padding:8px 4px;color:#1c1c1c;text-decoration:none;transition:color .25s}
.main-nav__link:hover{color:var(--c-accent)}

.site-header__cta{margin-left:auto;display:flex;align-items:center;gap:12px}
.btn{font-family:Roboto,sans-serif;display:inline-flex;align-items:center;gap:8px;
  /* border-radius:18px; */
  padding:12px 40px;text-decoration:none;border:1px solid transparent;cursor:pointer;transition:transform .2s, box-shadow .25s, filter .2s}
.btn--red{background:var(--c-accent);color:#fff;box-shadow: var(--shadow-btn)}
.btn--red:hover{filter:brightness(0.97);transform:translateY(-1px)}
.btn--light{background:#fff;color:#012A4E;border-color:#dfe6eb}
.btn--light:hover{transform:translateY(-1px);box-shadow:0 8px 22px #012A4E}
.btn--ghost{background:transparent;color:#fff;border-color:#fff}
.burger{width:44px;height:44px;border-radius:10px;border:1px solid #e5ecf0;background:#fff;display:none;align-items:center;justify-content:center;transition:transform .2s}
.burger__bar{display:block;width:20px;height:2px;background:#1c1c1c;margin:2px 0}
.burger:active{transform:scale(.98)}

/* --- 320px (Mobile Portrait) --- */
@media (min-width: 320px) {
    .site-header .container {
        flex-wrap: wrap; /* Allow elements to stack */
        padding: 10px 12px;
        gap: 12px;
    }
    .brand__logo {
        height: 30px; /* Smaller logo for tiny screens */
    }
    .main-nav {
        order: 3; /* Move navigation below logo and CTA */
        width: 100%;
    }
    .main-nav__list {
        gap: 10px;
        justify-content: space-between;
        overflow-x: auto; /* Horizontal scroll if menu is long */
        padding-bottom: 4px;
    }
    .main-nav__link {
        font-size: 13px;
        white-space: nowrap;
    }
    .site-header__cta {
        gap: 8px;
    }
}

/* --- 480px (Mobile Landscape) --- */
@media (min-width: 480px) {
    .brand__logo {
        height: 34px;
    }
    .main-nav__list {
        justify-content: flex-start;
        gap: 16px;
    }
}

/* --- 640px (Small Tablets) --- */
@media (min-width: 640px) {
    .site-header .container {
        padding: 12px 16px;
        gap: 20px;
    }
    .main-nav {
        order: unset; /* Return to natural flow */
        width: auto;
    }
    .main-nav__list {
        overflow: visible;
    }
}

/* --- Планшеты и малые ноутбуки (800px - 1024px) --- */
@media (min-width: 800px) and (max-width: 1200px) {
    .site-header .container {
        display: flex;
        justify-content: space-between; /* Лого слева, всё остальное справа */
        align-items: center;
        gap: 15px; /* Минимальный зазор */
        padding: 10px 15px;
    }

    .brand {
        flex-shrink: 0; /* Логотип не сжимается */
    }

    .brand__logo {
        height: 32px; /* Компактный размер */
    }

    .main-nav {
        flex-grow: 1; /* Навигация забирает свободное место */
        display: flex;
        justify-content: flex-end; /* Прижимаем меню к кнопке телефона */
    }

    .main-nav__list {
        gap: 15px; /* Узкие зазоры между пунктами */
    }

    .main-nav__link {
        font-size: 13px; /* Чуть меньше шрифт */
        white-space: nowrap; /* Запрещаем перенос слов */
    }

    .site-header__cta {
        flex-shrink: 0; /* Кнопка с телефоном не сжимается */
    }
    
    /* Стили для красной кнопки как на фото */
    .phone-btn {
        background: #d32f2f;
        color: #fff;
        padding: 8px 16px;
        border-radius: 50px;
        font-size: 13px;
        text-decoration: none;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

/* Для экранов больше 1200px возвращаем комфортные отступы */
@media (min-width: 1201px) {
    .main-nav__list { gap: 24px; }
    .main-nav__link { font-size: 15px; }
    .brand__logo { height: 38px; }
}
.main-nav {
  margin: 0 auto;
}


/* Mobile menu */
.mobile-menu{background:#fff;border-top:1px solid #eef2f5}
.mobile-menu__list{list-style:none;margin:0;padding:12px}
.mobile-menu__list li{border-bottom: 0;}
.mobile-menu__list a{display:block;padding:12px 6px;color:#1c1c1c;text-decoration:none;transition:background .2s}
.mobile-menu__list a:hover{background:#f7f9fb}

/* ===== Hero (параллакс + Ken Burns) ===== */
.hero{position:relative;background:#000;color:#fff;isolation:isolate;overflow:hidden}
.hero__media{position:relative;overflow:hidden}
.hero__media img{
  width:100%;
  max-height: 446px;
  display:block;
  /* transform: translateY(calc(var(--parallax)*-0.25px)) scale(var(--kb-scale, 1)); */
  /* will-change: transform; */
  /* animation: kb-zoom 18s ease-in-out infinite alternate; */
}
.hero__overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.35) 40%,rgba(0,0,0,.6));
  /* transform: translateY(calc(var(--parallax)*-0.12px)); */
  /* will-change: transform; */
}
/* @keyframes kb-zoom{
  0%{ --kb-scale: 1; transform: translateY(calc(var(--parallax)*-0.25px)) scale(1); }
  100%{ --kb-scale: var(--kenburns-scale); transform: translateY(calc(var(--parallax)*-0.25px)) scale(var(--kenburns-scale)); }
} */
.hero__kicker{opacity:.85;margin:0 0 6px}
.hero__title{font-size:40px;line-height:1.15;margin:0 0 12px;text-shadow:0 6px 22px rgba(0,0,0,.35)}
.hero__desc{max-width:760px;opacity:.95;margin:0 0 16px}
.hero__actions{display:flex;gap:12px}
.hero{position:relative;background:#000;color:#fff;isolation:isolate}
.hero__media img{width:100%;max-height:446px;display:block;filter:saturate(1.05)}
.hero__overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.35) 40%,rgba(0,0,0,.6));display: flex;align-items: center;}
.hero__kicker{opacity:.85;margin:0 0 6px}
.hero__title{font-family: 'Montserrat', sans-serif;
font-weight: 800;
font-size: 45px;
line-height: 100%;
line-height:1.0;
color: #fff;
margin:0 0 12px}
.hero__desc{max-width:1000px;opacity:.95;margin:0 0 16px;font-size: 24px;color: #fff;}
.hero__actions{display:flex;gap:12px}

/* ===== Industries icons band ===== */
.industries{padding:26px 0}
.industries__list{display:flex;flex-wrap:wrap;gap:18px;justify-content:center;list-style:none;margin:0;padding:0}
.industries__item{display:flex;flex-direction:column;align-items:center;gap:8px;width:96px;transition:transform .2s}
.industries__icon{width:64px;height:64px;border-radius:50%;background:#0a2b40;color:#fff;display:grid;place-items:center;font-size:26px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.industries__name{font-weight:600;font-size:14px;color:#1c1c1c}
.industries__item:hover{transform:translateY(-4px)}

/* ===== Product cards ===== */
.products{padding:22px 0 8px;   background-color: #FBFAF6; /* Очень светлый серый фон для всей секции */
}
.cards{display:grid;grid-template-columns: repeat(4,1fr);gap:22px}
.card{background:#fff;border:1px solid #e6edf2;border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-card);transform:translateZ(0);transition:transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s}
.card__img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .45s ease}
.card__title{font-size:20px;margin:14px 16px 8px}
.card__text{margin:0 16px 14px;color:#3b3e46}
.card__link{margin:0 16px 18px auto;color:var(--c-blue);text-underline-offset:3px;position:relative;text-decoration: none;}
.card__link::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:currentColor;transform:scaleX(.2);transform-origin:left;opacity:.25;transition:transform .25s, opacity .25s}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow-card-hover)}
.card:hover .card__img{transform:scale(1.04)}
.card:hover .card__link::after{transform:scaleX(1);opacity:.6}

/* ===== Benefits (синяя полоса) ===== */
.benefits{background:#004077;color:#fff;padding:60px 0}
.benefits__grid{display:grid;grid-template-columns:repeat(6,1fr);gap:18px}
.benefits__item{display:flex;gap:12px;align-items: center;opacity:0;transform:translateY(14px);transition:transform .6s ease, opacity .6s ease;flex-direction: column;}
.benefits__icon{font-size:28px;min-width:28px}
.benefits__caption{font-family:'Roboto',sans-serif;font-size:14px;line-height:1.35;margin:0;opacity:.95;text-align: center;}
.benefits__item.is-in{opacity:1;transform:none}

/* ===== Advancing section ===== */
.advancing{padding:40px 0}
.advancing__title{text-align:center;margin:0 0 8px;font-size:26px}
.advancing__lead{text-align:center;max-width:860px;margin:0 auto 22px;color:#3b3e46}
.advancing__gallery{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.advancing__img{width:100%;border-radius:10px;object-fit:cover;aspect-ratio:4/3;opacity:0;transform:translateY(18px) scale(.98);transition:transform .6s ease, opacity .6s ease}
.advancing__img.is-in{opacity:1;transform:none}

/* ===== Testimonials ===== */
.testimonials{background:#0a2b40;color:#fff;padding:38px 0}
.testimonials__title{text-align:center;margin:0 0 18px}
.testimonial{background:#082335;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:18px;text-align:center;transform:translateY(12px);opacity:0;transition:transform .6s ease, opacity .6s ease}
.testimonial__avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;max-width: 64px;margin:0 auto 10px;display:block;box-shadow:0 6px 14px rgba(0,0,0,.25)}
.testimonial__text{font-style:italic;margin:0 0 8px}
.testimonial__author{font-size:14px;opacity:.9}
.testimonial.is-in{transform:none;opacity:1}

/* ===== Footer ===== */
.site-footer__top{background:#071c2a;color:#cbd6de;padding:34px 0}
.site-footer__cols{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:22px}
.site-footer__title{color:#fff;margin:0 0 10px}
.site-footer__text{margin:0 0 14px;color:#cbd6de}
.site-footer__list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.site-footer__list a{color:#cbd6de;text-decoration:none;transition:color .2s}
.site-footer__list a:hover{color:#fff}
.site-footer__brand img{height:26px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.3))}
.site-footer__bottom{background:#061522;color:#93a4b1}
.site-footer__bottom .container{padding:12px 16px}
.site-footer__copy{margin:0}

/* ===== Reveal утилиты для общего использования ===== */
.reveal{opacity:0;transform:translateY(16px);transition:transform .6s ease, opacity .6s ease}
.reveal.is-in{opacity:1;transform:none}
.reveal--up{transform:translateY(20px)}
.reveal--fade{transform:none;opacity:.2}
.reveal--scale{transform:scale(.96);}

/* ===== Гладкий скролл для якорей ===== */
html{scroll-behavior:smooth}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .benefits__grid{grid-template-columns:repeat(3,1fr)}
  .site-footer__cols{grid-template-columns:1fr 1fr}
}
@media (max-width: 768px){
  .main-nav{display:none}
  .burger{display:flex}
  .hero__title{font-size:30px}
  .hero__media img{height:64vw;max-height:520px}
  .cards{grid-template-columns:1fr}
  .benefits__grid{grid-template-columns:repeat(2,1fr)}
  .advancing__gallery{grid-template-columns:1fr}
}
@media (max-width:480px){
  .industries__item{width:80px}
  .benefits__grid{grid-template-columns:1fr}
}


/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.modal.is-open { display: flex; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s;
}
.modal.is-open .modal__overlay { opacity: 1; }

.modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0,0,0,.35);
  transform: translateY(40px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  padding: 28px 28px 32px;
}
.modal.is-open .modal__dialog {
  transform: none;
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: 0;
  font-size: 22px;
  color: #666;
  cursor: pointer;
}
.modal__close:hover { color: #000; }

.modal__header { margin-bottom: 18px; }
.modal__title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 700;
}
.modal__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.modal__success {
  margin-top: 16px;
  text-align: center;
  color: #2a7c2a;
  font-weight: 600;
}
.modal__success i { margin-right: 6px; }
/* ===== Contact Form 7 (kform) inside modal ===== */
.modal .wpcf7 form {
  display: grid;
  gap: 16px;
}

.modal .wpcf7-form p {
  margin: 0;
}

.modal .wpcf7 label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1c1c1c;
  margin-bottom: 6px;
  display: block;
}

.modal .wpcf7 input[type="text"],
.modal .wpcf7 input[type="email"],
.modal .wpcf7 input[type="tel"],
.modal .wpcf7 textarea {
  width: 100%;
  border: 1px solid #d7dee5;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  transition: border-color .25s, box-shadow .25s;
}

.modal .wpcf7 input:focus,
.modal .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--c-accent, #d62c2c);
  box-shadow: 0 0 0 3px rgba(214,44,44,.15);
}

.modal .wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

.modal .wpcf7-submit {
  background: var(--c-accent, #d62c2c);
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: filter .25s, transform .2s;
}

.modal .wpcf7-submit:hover {
  filter: brightness(.95);
  transform: translateY(-1px);
}

/* Сообщения CF7 */
.modal .wpcf7-response-output {
  margin-top: 10px;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
}

.modal .wpcf7-not-valid-tip {
  font-size: 13px;
  color: var(--c-accent, #d62c2c);
  margin-top: 4px;
}


/* link-card: вся карточка как ссылка */
.card--link {
  text-decoration: none;
  color: inherit;
  display: flex;            /* повторяем поведение .card */
  flex-direction: column;
  border: 1px solid #e6edf2;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s;
}
.card--link:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.card--link .card__link { margin-left: 16px; margin-right: 16px; margin-bottom: 18px; }

/* доп. логотип/бренд внутри карточки */
.card__brand {
  width: auto;
  max-width: 56%;
  height: auto;
  margin: 10px 16px 0;
  object-fit: contain;
  opacity: .9;
}

/* --- Продукты ----*/

.cards-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    background-color: #FBFAF6; /* Очень светлый серый фон для всей секции */
}

.custom-card {
    background: #ffffff; /* Чистый белый */
    border: 1px solid #e5e7eb; /* Светло-серая тонкая граница */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Эффект при наведении — мягкая глубокая тень */
.custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db; /* Чуть темнее при наведении */
}

.card-image {
    /* background-color: #FBFAF6; Подложка для фото, если оно прозрачное */
    border-bottom: 1px solid #FBFAF6;
}

.card-image img {
    width: 100%;
    padding: 20px;
    filter: grayscale(10%); /* Легкий эффект серого для стиля, убирается при ховере */
    transition: filter 0.3s ease;
}

.custom-card:hover .card-image img {
    filter: grayscale(0%);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827; /* Почти черный для контраста заголовка */
}

.card-content p {
    font-size: 0.95rem;
    color: #000; /* Спокойный серый для текста */
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-btn {
    font-family: Roboto, sans-serif;
    margin-top: auto;
    display: block; /* Растягиваем на всю ширину */
    background: transparent; /* Убираем фон */
    color: #888888; /* Светло-серый цвет текста как на фото */
    text-decoration: none;
    text-align: left; /* Текст прижат к левому краю */
    padding: 15px 0; /* Отступы сверху и снизу */
    border-top: 1px solid #e5e7eb; /* Та самая серая линия сверху */
    font-weight: normal;
    font-size: 14px;
    transition: color 0.2s ease;
}


/* Адаптив (планшет/моб) */
@media (max-width: 1100px) { .cards-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-container { grid-template-columns: 1fr; } }


/* --------------------*/

/* ===== PRODUCTS (taxonomy + single) — NEW ===== */

/* утилита: более широкий контейнер */
.container--wide {max-width: 1870px;margin: 0 auto;padding: 0 16px;}

/* ---------- Категория (архив таксы) ---------- */
.prod-archive { padding: 28px 0 40px; }

.prod-archive__head {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 26px;
}
/* выделение шапки категории фоном */
.prod-archive__head--band {
  background: #f6f8fb;
  border: 1px solid #e6edf2;
  border-radius: 10px;
  padding: 22px;
}

.prod-archive__title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  color: var(--c-accent, #d62c2c);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.prod-archive__desc { color: #3b3e46; line-height: 1.6; }
.prod-archive__thumb { display: flex; justify-content: flex-end; }
.prod-archive__thumb img {
  width: auto;
  max-width: 100%;
  max-height: 340px;         /* ограничиваем высоту как в макете */
  object-fit: contain;
  border: 1px solid #e6edf2;
  border-radius: 10px;
  background: #fff;
}

/* сетка карточек */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* карточка категории/товара в листинге */
.prod-card {
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 12px;
}
.prod-card__link { display:block; color:inherit; text-decoration:none; }

/* заголовок сверху, по центру — как на скрине */
.prod-card__title {
  margin: 14px 14px 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #214c8f; /* спокойный синий как на оригинале */
}

/* плитка с картинкой */
.prod-card__media {
  margin: 6px 14px 10px;
  background: #f3f6f9;
  border: 1px solid #e6edf2;
  border-radius: 10px;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.prod-card__img { width: 100%; height: 100%; object-fit: contain; }

/* подпись/короткое описание под плиткой, мелким шрифтом */
.prod-card__excerpt {
  margin: 0 14px 14px;
  color: #81919e;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1024px){
  .prod-archive__head { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px){
  .prod-grid { grid-template-columns: 1fr; }
}

/* ---------- Страница товара ---------- */
.prod-single { padding: 26px 0 44px; }
.prod-single__wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* левое меню */
.prod-single__nav-title { margin: 0 0 10px; font-weight: 700; color:#1c1c1c; }
.prod-single__list {
  list-style:none; margin:0; padding:0;
  border:1px solid #e6edf2; border-radius:10px; overflow:hidden;
  background: #fff;
}
.prod-single__item { border-bottom:1px solid #eef3f6; }
.prod-single__item:last-child { border-bottom:0; }
.prod-single__item a {
  display:block; padding:12px 14px; color:#163a52; text-decoration:none;
}
.prod-single__item a:hover { background:#f6f9fb; }
.prod-single__item.is-active a {
  background: var(--c-accent, #d62c2c);
  color:#fff; font-weight:700;
}

/* правая часть: заголовок и 2 колонки как на макете */
.prod-single__title { margin:0 0 14px; font-size:26px; font-weight:800; color:#1c1c1c; text-shadow:0 1px 0 rgba(0,0,0,.05); }
.prod-single__body { display:grid; grid-template-columns: 520px 1fr; gap: 26px; align-items:start; }

/* большая картинка товара */
.prod-single__image img {
  width:100%; height:auto; object-fit: contain;
  border:1px solid #e6edf2; border-radius:12px; background:#fff;
  max-height: 560px; /* визуально близко к макету */
}

/* текст/спеки справа */
.prod-single__text { color:#3b3e46; }
.prod-single__text h2, .prod-single__text h3 { margin-top: 0.6rem; }
.prod-single__text ul { margin: .4rem 0 1rem 1.2rem; }
.prod-single__text li { margin: .3rem 0; }

@media (max-width: 1024px){
  .prod-single__wrap { grid-template-columns: 1fr; }
  .prod-single__body { grid-template-columns: 1fr; }
}


/* ===== Dropdown .main-nav (ровные уровни, переносы, плотный 2-й) ===== */

.site-header, .main-nav { position: relative; z-index: 50; }

/* верхняя полоса */
.main-nav__list{
  display:flex; align-items:center; gap:22px;
  list-style:none; margin:0; padding:0;
}
.main-nav__item{ position:relative; }
.main-nav__link{
  font-family: Roboto,sans-serif;
  display:inline-block; padding:10px 8px; text-decoration:none;
  color:#1c1c1c; transition:color .2s ease;
}
.main-nav__link:hover{ color:var(--c-accent, #d62c2c); }

/* стрелка у пунктов 1-го уровня с детьми */
.main-nav__item--has-children > .main-nav__link::after,
.menu-item-has-children > a:not(.sub-menu a)::after{
  content:""; display:inline-block; width:7px; height:7px; margin-left:8px;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-1px); opacity:.6;
}

/* ---------- 1-й уровень выпадашки ---------- */
.main-nav__list > li > .sub-menu{
  position:absolute; top: calc(100% + 10px); left: 0;
  min-width: 260px;
  background:#191e24; color:#fff; border-radius:12px;
  box-shadow:0 18px 42px rgba(0,0,0,.28);
  padding:8px 0; margin:0; list-style:none;
  opacity:0; visibility:hidden; pointer-events:none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1000;
}
/* мостик, чтобы курсор не терял ховер */
.main-nav__list > li > .sub-menu::before{
  content:""; position:absolute; left:0; right:0; top:-12px; height:12px;
}

.main-nav__list > li:hover > .sub-menu,
.main-nav__list > li:focus-within > .sub-menu{
  opacity:1; visibility:visible; pointer-events:auto; transform:none;
}

/* элементы меню внутри выпадашек */
.sub-menu{ backdrop-filter: saturate(1.05); }
.sub-menu > li{position:relative;list-style: none;}
.sub-menu > li > a{
  position:relative;
  display:flex; align-items:center; gap:10px;
  padding:12px 42px 12px 16px;
  color:#fff; text-decoration:none;
  font-weight:700; line-height:1.35;
  white-space:normal;           /* разрешаем перенос строки */
  word-break:break-word;        /* длинные слова тоже не ломают сетку */
}
.sub-menu > li + li{ border-top:1px solid rgba(255,255,255,.06); }
.sub-menu > li > a:hover{ background:rgba(255,255,255,.06); }

/* стрелка для пунктов, у которых есть 2-й уровень — ровно по центру строки */
.sub-menu > li.menu-item-has-children > a::after{
  content:"";
  position:absolute; right:14px; top:50%; transform:translateY(-50%) rotate(-45deg);
  width:7px; height:7px; opacity:.6;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor;
}

/* ---------- 2-й уровень (вправо, плотнее) ---------- */
.sub-menu > li > .sub-menu{
  position:absolute;
  top: 0;
  left: calc(100% + 8px);
  min-width: 260px;
  background:#191e24;
  border-radius:12px;
  box-shadow:0 14px 36px rgba(0,0,0,.25);
  padding:4px 0;
  margin:0;              /* короче вертикальные отступы */
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform: translateX(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1001;
}
/* мостик между 1-м и 2-м уровнями */
.sub-menu > li > .sub-menu::before{
  content:""; position:absolute; top:0; left:-10px; width:10px; height:100%;
}

/* показываем 2-й уровень только над активным пунктом */
.sub-menu > li:hover > .sub-menu,
.sub-menu > li:focus-within > .sub-menu{
  opacity:1; visibility:visible; pointer-events:auto; transform:none;
}

/* мобильная деградация — раскрываем списком */
@media (max-width:1024px){
  .main-nav__list{ gap:14px; }
  .main-nav__list > li > .sub-menu,
  .sub-menu > li > .sub-menu{
    position:static; inset:auto; transform:none;
    opacity:1; visibility:visible; pointer-events:auto;
    box-shadow:none; background:transparent; padding:0; margin:0;
  }
  .sub-menu > li > a{ color:inherit; font-weight:600; padding:10px 0 10px 18px; }
  .sub-menu > li > .sub-menu > li > a{ padding-left:34px; }
}







.industries__link{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  text-decoration:none; color:inherit;
}
.industries__link:hover .industries__name{ text-decoration:underline; }



/* ===== ADVANCING (hero 16:9 + thumbs grid) ===== */

.advancing{ padding:28px 0 36px; }
.advancing__title{ text-align:center; margin:0 0 8px; font-size:28px; font-weight:800; }
.advancing__lead{ text-align:center; max-width:860px; margin:0 auto 18px; color:#3b3e46; }

/* Hero: 100% ширины контейнера, фикс. 16:9 */
.advancing__hero{
  position:relative; border-radius:18px; overflow:hidden;
  background:#0b1e2c;
  box-shadow:0 14px 40px rgba(9,17,26,.28);
}
.advancing__hero::before{
  content:""; display:block; width:100%; aspect-ratio:16/9; /* фикс пропорции */
}
.advancing__hero-link{ position:absolute; inset:0; display:block; cursor:zoom-in; }
.advancing__hero-img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center;
  transition: transform .35s ease;
}
.advancing__hero-link:hover .advancing__hero-img{ transform: scale(1.02); }

/* Превью: аккуратная сетка 3–4 в ряд */
.advancing__grid{
  list-style:none; margin:12px 0 0; padding:0;
  display:grid; gap:12px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px){
  .advancing__grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px){
  .advancing__grid{ grid-template-columns: repeat(2, 1fr); }
}

.advancing__cell{
  border-radius:12px; overflow:hidden;
  background:#0d2233; border:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 22px rgba(0,0,0,.12);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.advancing__cell:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}
.advancing__thumb-link{ display:block; }
.advancing__thumb-img{
  display:block; width:100%; height:100%;
  aspect-ratio: 4/3; object-fit: cover;
}


/* ===== SERVICE PAGE ===== */
.service__hero{
  position:relative; overflow:hidden; color:#fff;
  --overlay: linear-gradient(180deg, rgba(8,17,26,.55) 0%, rgba(8,17,26,.7) 40%, rgba(8,17,26,.85) 100%);
}
.service__hero-media{
  position:absolute; inset:0;
}
.service__hero-media img{
  width:100%; height:100%; object-fit:cover; object-position:center;
  aspect-ratio: 16/5;
  filter:saturate(1.05) contrast(1.05);
}
.service__hero::after{
  content:""; position:absolute; inset:0; background:var(--overlay);
}
.service__hero-inner{
  position:relative; z-index:1; padding:64px 0 48px;
  min-height: 360px; display:flex; flex-direction:column; justify-content:flex-end;
}
.service__title{
  margin:0 0 10px; font-size:42px; font-weight:800; letter-spacing:.2px;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}
.service__lead{
  max-width:900px; margin:0; font-size:18px; line-height:1.6; opacity:.98;
}

/* Info */
.service__info{ padding:26px 0 10px; text-align:center; }
.service__h2{
  margin:0 0 8px; font-size:28px; font-weight:800; color:#16202a;
}
.service__note{ margin:0; }
.service__link{
  display:inline-block; margin-top:2px; font-weight:700; text-decoration:none;
  color:#2b5bd8; border-bottom:2px solid rgba(43,91,216,.2); padding-bottom:2px;
}
.service__link:hover{ border-color: rgba(43,91,216,.5); }

/* Classes */
.service__classes{ padding:10px 0 40px; }
.service__h3{ text-align:center; margin:0 0 16px; font-size:26px; font-weight:800; }
.service__dates{
  max-width:920px; margin:0 auto 18px; padding:0; list-style:none;
  display:flex; flex-wrap:wrap; gap:10px 18px; justify-content:center;
}
.service__dates li{
  background:#f3f5f7; border:1px solid #e6eaee; color:#1f2a35;
  padding:10px 14px; border-radius:999px; font-weight:600;
  box-shadow:0 6px 16px rgba(20,30,40,.06);
}
.service__cta{ text-align:center; margin-top:8px; }
.service__cta .btn{ padding:.8rem 1.1rem; border-radius:999px; }

@media (max-width: 768px){
  .service__hero-inner{ padding:48px 0 36px; min-height: 300px; }
  .service__title{ font-size:34px; }
  .service__lead{ font-size:16px; }
}


/* page.php */
.page-hero{ position:relative; color:#fff; }
.page-hero__media{ margin:0; position:absolute; inset:0; }
.page-hero__media img{ width:100%; height:100%; object-fit:cover; object-position:center; filter:saturate(1.05) contrast(1.05); }
.page-hero::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,17,26,.55) 0, rgba(10,17,26,.8) 60%); }
.page-hero__inner{ position:relative; z-index:1; min-height:260px; display:flex; align-items:flex-end; padding:48px 0 28px; }
.page-hero__title{ margin:0; font-size:36px; font-weight:800; text-shadow:0 2px 10px rgba(0,0,0,.3); }

.page-header{ padding:28px 0 10px; }
.page-header__title{ margin:0; font-size:36px; font-weight:800; }

.breadcrumbs{ margin-top:8px; font-size:14px; color:#6b7280; }

.page-content{ padding:26px 0 40px; }
.page-article__body{ max-width: 900px; }
.page-article__body p{
  text-align:justify;
}
.page-article__edit{ margin-top:18px; }

.page-comments{ padding:0 0 40px; }


/* ===== Header: burger + mobile panel (чистая логика) ===== */
.site-header{position:sticky;top:0;z-index:100;background:#fff}

/* базовая сетка */
.site-header__topbar .container{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.brand__logo{height:44px;width:auto;display:block}

/* BURGER */
.burger{
  display:none; /* покажем на мобилках ниже */
  position:relative; width:44px; height:40px;
  border:0; background:transparent; cursor:pointer;
}
.burger__bar{
  position:absolute; left:50%;
  width:22px; height:2px; background:#1d2430; border-radius:2px;
  transform:translateX(-50%); transition:transform .2s, opacity .2s, top .2s;
}
.burger__bar--top{ top:12px }
.burger__bar--mid{ top:19px }
.burger__bar--bot{ top:26px }

/* состояние "открыто" */
.menu-open .burger__bar--mid{ opacity:0 }
.menu-open .burger__bar--top{ top:19px; transform:translateX(-50%) rotate(45deg) }
.menu-open .burger__bar--bot{ top:19px; transform:translateX(-50%) rotate(-45deg) }

/* мобильная панель */
.mobile-menu{
  position:fixed; inset:64px 0 0 0; /* ниже шапки */
  background:#0f141a; color:#fff; z-index:99; /* меньше, чем шапка */
  transform:translateY(-8px);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
}
.mobile-menu__inner{ padding:16px 18px }
.menu-open #mobileMenu{
  opacity:1; visibility:visible; transform:none; pointer-events:auto;
}

/* список мобильного меню (простой) */
.mobile-menu__list{ list-style:none; margin:0; padding:0; display:grid; gap:10px }
.mobile-menu__list a{
  display:block; padding:12px 12px; color:#fff; text-decoration:none;
  background:rgba(255,255,255,.06); border-radius:10px;
}
.mobile-menu__list .sub-menu{ padding-left:12px }
.mobile-menu__list .sub-menu a{ background:transparent; padding-left:18px }

/* Адаптив показываем бургер и прячем десктоп-меню */
@media (max-width:900px){
  .main-nav{ display:none }
  .burger{ display:block }
  .site-header__cta{ display:flex; align-items:center; gap:10px }
  .site-header__cta .btn{ padding:.55rem .8rem; border-radius:999px }
}
@media (max-width:640px){
  .brand__logo{ height:36px }
  .site-header__cta .btn{ font-size:0; padding:.5rem .6rem }
  .site-header__cta .btn i{ font-size:18px; margin:0 }
}

/* Мобильная панель строго под шапкой */
.mobile-menu{
  position:fixed; top:var(--hdr,64px); right:0; bottom:0; left:0;
  background:#0f141a; color:#fff; z-index:99;
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translateY(-8px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
}
.menu-open #mobileMenu{
  opacity:1; visibility:visible; pointer-events:auto; transform:none;
}

/* Круглая кнопка телефона на мобиле */
@media (max-width:640px){
  .site-header__cta .btn{
    width:44px; height:44px; padding:0; border-radius:50%;
    display:grid; place-items:center; box-shadow:0 10px 24px rgba(214,44,44,.25);
    font-size:0; /* текст скрываем */
  }
  .site-header__cta .btn i{ font-size:18px; margin:0; }
}

/* Бургер — три полоски, не слипаются */
.burger{ position:relative; width:44px; height:40px; border:0; background:transparent; cursor:pointer; }
.burger__bar{ position:absolute; left:50%; width:22px; height:2px; background:#1d2430; border-radius:2px; transform:translateX(-50%); transition:transform .2s, opacity .2s, top .2s; }
.burger__bar--top{ top:12px } .burger__bar--mid{ top:19px } .burger__bar--bot{ top:26px }
.menu-open .burger__bar--mid{ opacity:0 }
.menu-open .burger__bar--top{ top:19px; transform:translateX(-50%) rotate(45deg) }
.menu-open .burger__bar--bot{ top:19px; transform:translateX(-50%) rotate(-45deg) }

/* ===== Mobile menu: аккуратный вид + внутренний скролл ===== */

/* панель лежит под шапкой; прокрутка — внутри */
.mobile-menu{
  position:fixed;
  top:var(--hdr,64px); right:0; bottom:0; left:0;
  background:rgba(12,18,24,.96);
  color:#fff; z-index:99;

  display:flex; /* чтобы inner занял остаток и скроллился */
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translateY(-8px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
}
.menu-open #mobileMenu{ opacity:1; visibility:visible; pointer-events:auto; transform:none; }

.mobile-menu__inner{
  flex:1 1 auto;
  height:calc(100dvh - var(--hdr,64px)); /* внутренний скролл */
  overflow:auto; -webkit-overflow-scrolling:touch;
  padding:14px 16px 22px;
}

/* разделители и типографика */
.mobile-menu__list{
  list-style:none; margin:0; padding:0; display:grid; gap:12px;
}
.mobile-menu__title{
  margin:6px 0 2px; padding-top:8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing:.06em; text-transform:uppercase; color:#95a3b3;
  border-top:1px solid rgba(255,255,255,.06);
}

/* пункт меню */
.mobile-menu__item{ list-style:none; }
.mobile-menu__link{
  display:flex; align-items:center; min-height:44px;
  padding:12px 14px;
  color:#eaf1f7; text-decoration:none;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  transition:background .15s,border-color .15s,transform .08s ease-in-out;
}
.mobile-menu__link:hover{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.15); }
.mobile-menu__link:active{ transform:translateY(1px); }

/* уровень 2 — компактнее и с отступом */
.mobile-sub{
  list-style:none;
  margin:6px 0 0 0;
  /* padding:0 0 0 10px; */
  display:grid;
  gap:8px;
}
.mobile-sub a{
  display:block; padding:10px 12px; border-radius:10px;
  color:#dbe6f0; text-decoration:none;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}
.mobile-sub a:hover{ background:rgba(255,255,255,.10); }

/* кастом скролл бар (необязательно, но аккуратно выглядит) */
.mobile-menu__inner::-webkit-scrollbar{ width:10px }
.mobile-menu__inner::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.14); border-radius:8px;
  border:2px solid rgba(12,18,24,.96);
}
.mobile-menu__inner{ scrollbar-color:rgba(255,255,255,.14) rgba(12,18,24,.96); scrollbar-width:thin; }

/* немного «воздуха» у нижнего края на устройствах с жестами */
@supports (padding: env(safe-area-inset-bottom)){
  .mobile-menu__inner{ padding-bottom: max(22px, env(safe-area-inset-bottom)) }
}

/* ===== Телефон-кнопка: идеальный круг и центр иконки ===== */
@media (max-width:640px){
  .site-header__cta .btn{
    width:44px;
    height:44px;
    padding:0;
    border-radius:50%;
    display:inline-grid;
    place-items:center;
    font-size:0; /* скрыть текст, оставляем только иконку */
    box-shadow:0 10px 24px rgba(214,44,44,.25);
    align-items: center;
    align-content: center;
  }
  .site-header__cta .btn i{
    font-size:18px;
    line-height:1;
    margin:0;
    transform:none;
    margin-top: 6px;
  }
}

.hero-title, .hero-subtitle {
  text-align:left;
}

/* на узких — логотип компактнее, бургер рядом */
@media (max-width:900px){
.page-home .hero {
  min-height: 60vh;
}
  .brand__logo{ height:38px }
}

/* Планшеты (до 800px) */
@media (max-width: 800px) {
    .hero {
        height: 400px; /* Немного уменьшаем высоту */
    }
    .hero h1 {
        font-size: 32px; /* Уменьшаем заголовок */
    }
}

/* Мобильные (до 480px) */
@media (max-width: 480px) {
    .hero {
        height: 300px; /* Компактная высота для телефона */
    }
    
    .hero h1 {
        font-size: 24px;
        line-height: 1.3;
        font-weight: 800;
        text-transform: uppercase;
    }
    
    .hero p {
        font-size: 14px;
        margin-top: 10px;
    }
}

/* Маленькие смартфоны (до 320px) */
@media (max-width: 320px) {
    .hero {
        height: 250px;
        padding: 0 10px;
    }
    .hero h1 {
        font-size: 20px;
    }
}

.hero-portal {
    max-width: 1500px;
    height: 350px;
    margin: 0 auto;       /* Центрирует блок на странице */
    position: relative;   /* База для позиционирования текста */
    width: 100%;
    overflow: hidden;
    color: #fff;          /* Цвет текста для контраста с фоном */
}

.hero-portal a{
  color:#fff;
}

.hero-image {
    width: 100%;
    /* height: 500px;        /* Можно задать фиксированную высоту или auto */
    /* object-fit: cover;    Чтобы фото не растягивалось некрасиво */ */
    display: block;
}

/* Контейнер с текстом поверх фото */
.hero-content {
    position: absolute;
    top: 50%;             /* Сдвиг на середину высоты */
    left: 50%;            /* Сдвиг на середину ширины */
    transform: translate(-50%, -50%); /* Точное центрирование по осям */
    text-align: center;
    width: 90%;           /* Чтобы текст не прилипал к краям фото */
    z-index: 2;
}

/* Добавим легкое затемнение фото, чтобы текст лучше читался */
.hero-portal::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Полупрозрачный черный слой */
    z-index: 1;
}

/* === SECTORS (новый блок) =============================================== */
.sectors { --s-gap:16px; --s-col:120px; --s-radius:20px; --s-pad:14px; }
.sectors__container { margin: 0 auto; }
.sectors__list {
  list-style:none; margin:0; padding:0;
  display:grid; gap:var(--s-gap);
  grid-template-columns: repeat(auto-fill, minmax(max(140px, var(--s-col)), 1fr));
}
.sectors__item { min-width:0; }

.sectors__card {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; padding:var(--s-pad);
  background:#fff; /* если у вас тёмная тема — можно заменить на var(--card-bg, #fff) */
  border-radius:var(--s-radius);
  text-align:center; text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.sectors__card--clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.sectors__card--clickable:active { transform: translateY(0); }

.sectors__media {
  width:100%; aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center;
  /* важно: НИКАКИХ рамок/окантовок для картинок */
  background:transparent; border:0; box-shadow:none;
}

.sectors__img {
  max-width:50%; max-height:50%;
  width:auto; height:auto;
  object-fit:contain; object-position:center;
  display:block; border:0 !important; outline:0 !important; box-shadow:none !important;
}
.sectors__img--fallback {
  font-size:48px; line-height:1; display:flex; align-items:center; justify-content:center;
}

.sectors__title {
  font-size:14px; line-height:1.3; font-weight:600; color:#0f172a;
  word-break:break-word;
}

/* адаптив */
@media (max-width: 768px){
  .sectors { --s-gap:12px; --s-col:110px; --s-radius:16px; --s-pad:12px; }
  .sectors__title { font-size:13px; }
}
@media (max-width: 480px){
  .sectors { --s-col:100px; }
  .sectors__title { font-size:12px; }
}


/* Центрирование сетки с иконками */
.sectors__list {
  display: grid;
  grid-auto-rows: auto;
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  justify-content: center; /* центрируем грид */
  gap: var(--s-gap);
}

.sectors__item {
  justify-self: center; /* каждая карточка по центру */
}

/* === COOKIES BANNER === */
.cookies {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 640px;
  width: calc(100% - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 9999;
  font-size: 14px;
  line-height: 1.4;
  animation: cookies-slide .3s ease;
}

.cookies__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
}

.cookies__text {
  margin: 0;
  color: #0f172a;
}

.cookies__link {
  color: #0a66c2;
  text-decoration: underline;
}

.cookies__btn {
  align-self: flex-end;
  padding: 8px 18px;
  border: none;
  border-radius: 12px;
  background: #0a66c2;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.cookies__btn:hover { background:#084d99; }

@keyframes cookies-slide {
  from { transform: translate(-50%, 100%); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

@media (max-width:480px){
  .cookies__inner { padding: 14px 16px; }
  .cookies__btn { align-self: stretch; }
}


.kform__row--checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.kform__check {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
}

.kform__check input[type="checkbox"] {
  margin-top: 2px;
}

.kform__check a {
  color: #0a66c2;
  text-decoration: underline;
}
.kform__check a:hover {
  text-decoration: none;
}

.kform__row--checks { display:flex; flex-direction:column; gap:12px; font-size:14px; line-height:1.45; }

/* базовая обёртка чекбокса CF7 */
.kform__check .wpcf7-form-control-wrap { display:inline-block; }

/* прячем дефолтный текст варианта у CF7 (мы используем свой label) */
.kform__check .wpcf7-list-item { display:inline-flex; align-items:flex-start; margin:0; }
.kform__check .wpcf7-list-item-label { display:none; }

/* визуал и кликабельность */
.kform__check input[type="checkbox"] { margin-top:2px; }
.kform__checklabel { margin-left:8px; cursor:pointer; }
.kform__checklabel a { color:#0a66c2; text-decoration:underline; }
.kform__checklabel a:hover { text-decoration:none; }

.service__about-inner{display:grid;grid-template-columns:1.6fr 1fr;gap:24px;align-items:start}
@media (max-width: 900px){.service__about-inner{grid-template-columns:1fr}}
.service__contact-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.service__contact{display:inline-block;text-decoration:none;border-bottom:1px dotted currentColor}
.kform{max-width:880px;margin:24px 0;display:grid;gap:16px}
.kform__grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:700px){.kform__grid-2{grid-template-columns:1fr}}
.kform__label{display:block;margin-bottom:6px;font-weight:600}
.kform__input,.kform__textarea,.kform__file{width:100%;padding:12px;border:1px solid #e5e7eb;border-radius:10px;font-family:inherit}
.kform__textarea{min-height:140px;resize:vertical}
.kform__checkbox{display:block;padding:12px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa}
.kform__checkbox a{text-decoration:underline}
.kform__hint{display:block;color:#6b7280;margin-top:6px}
/*
.btn{display:inline-grid;place-items:center;padding:12px 20px;border-radius:999px;border:none;cursor:pointer}
.btn--red{background:#ef4444;color:#fff}
.btn--red:hover{filter:brightness(0.95)}*/


/* ===== RUTEXX Service Form (unique, legacy-safe) ===== */
.ruxsf{--rux-blue:#2563eb;--rux-red:#ef4444;--rux-text:#0f172a;--rux-muted:#64748b}
.ruxsf--card{
  max-width: 820px;
  margin: 48px auto;
  padding: 28px;
  background:#fff;
  border-radius: 18px;
  border:1px solid rgba(37,99,235,.15);
  box-shadow:0 12px 36px rgba(2,6,23,.08);
}

.ruxsf__title{
  margin:0 0 18px;
  text-align:center;
  font-weight:800;
  font-size:clamp(22px,2.6vw,32px);
  color:var(--rux-text);
}

/* Layout */
.ruxsf__row{margin-bottom:16px}
.ruxsf__row--center{text-align:center}
.ruxsf__grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:760px){.ruxsf__grid-2{grid-template-columns:1fr}}

.ruxsf__label{display:block;margin-bottom:6px;font-weight:600;color:var(--rux-text)}

/* Inputs */
.ruxsf__input,.ruxsf__textarea,.ruxsf__file{
  width:100%;
  padding:12px 14px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  font-family:inherit;
  transition:border-color .15s, box-shadow .15s;
}
.ruxsf__textarea{min-height:150px;resize:vertical}
.ruxsf__input:focus,.ruxsf__textarea:focus,.ruxsf__file:focus{
  outline:none;border-color:var(--rux-blue);box-shadow:0 0 0 4px rgba(37,99,235,.16);
}
.ruxsf__hint{display:block;margin-top:6px;color:var(--rux-muted);font-size:13px}

/* Consent checkboxes (supports both kform__* and ruxsf__* inside this card) */
.ruxsf .kform__row--checks,
.ruxsf__checks{display:grid;gap:10px;margin-top:8px}
.ruxsf .kform__check,
.ruxsf__check{
  display:flex;align-items:flex-start;gap:10px;
  padding:12px 14px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;
}

/* CF7 renders input first because of label_first — стилизуем сам input */
.ruxsf__checkbox input[type="checkbox"]{
  width:18px;height:18px;min-width:18px;min-height:18px;
  margin-top:2px;cursor:pointer;accent-color:var(--rux-blue);
}
.ruxsf .kform__checklabel,
.ruxsf__checklabel{line-height:1.55;color:var(--rux-text)}
.ruxsf .kform__checklabel a,
.ruxsf__checklabel a{color:var(--rux-blue);text-decoration:underline}

/* Submit button — красный, по центру */
.ruxsf__btn{
  display:inline-grid;place-items:center;border:none;cursor:pointer;
  padding:12px 28px;border-radius:999px;font-weight:700;
}
.ruxsf__btn--primary{
  color:#fff;
  background:linear-gradient(90deg,#2563eb 0%, #ef4444 100%);
  box-shadow:0 10px 20px rgba(239,68,68,.25);
  transition:transform .15s, filter .15s;
  margin-top: 2rem;
}
.ruxsf__btn--primary:hover{transform:translateY(-1px);filter:brightness(.98)}
.ruxsf__btn--primary:active{transform:translateY(0)}

/* CF7 validation tips scoped */
.ruxsf span.wpcf7-not-valid-tip{display:block;margin-top:6px;font-size:12px;color:#ef4444}
.ruxsf div.wpcf7-response-output{margin:16px 0 0;padding:12px 14px;border-radius:10px;border:1px solid rgba(37,99,235,.25)}

/* ===== RUTEXX Service Form (isolated) ===== */
.ruxsf{--rux-blue:#2563eb;--rux-red:#ef4444;--rux-text:#0f172a;--rux-muted:#64748b}
.ruxsf--card{
  max-width:820px;margin:48px auto;padding:28px;background:#fff;border-radius:18px;
  border:1px solid rgba(37,99,235,.15);box-shadow:0 12px 36px rgba(2,6,23,.08);
}

.ruxsf__title{margin:0 0 18px;text-align:center;font-weight:800;
  font-size:clamp(22px,2.6vw,32px);color:var(--rux-text)}

/* layout */
.ruxsf__row{margin-bottom:16px}
.ruxsf__row--center{text-align:center}
.ruxsf__grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:760px){.ruxsf__grid-2{grid-template-columns:1fr}}

.ruxsf__label{display:block;margin-bottom:6px;font-weight:600;color:var(--rux-text)}

/* inputs */
.ruxsf__input,.ruxsf__textarea,.ruxsf__file{
  width:100%;padding:12px 14px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;font-family:inherit;
  transition:border-color .15s, box-shadow .15s;
}
.ruxsf__textarea{min-height:150px;resize:vertical}
.ruxsf__input:focus,.ruxsf__textarea:focus,.ruxsf__file:focus{
  outline:none;border-color:var(--rux-blue);box-shadow:0 0 0 4px rgba(37,99,235,.16)
}
.ruxsf__hint{display:block;margin-top:6px;color:var(--rux-muted);font-size:13px}

/* checkboxes */
.ruxsf__checks{display:grid;gap:10px;margin-top:8px}
.ruxsf__check{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;
  background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px}
.ruxsf__checkbox input[type="checkbox"]{
  width:18px;height:18px;min-width:18px;margin-top:2px;cursor:pointer;accent-color:var(--rux-blue)
}
.ruxsf__checklabel{line-height:1.55;color:var(--rux-text)}
.ruxsf__checklabel a{color:var(--rux-blue);text-decoration:underline}

/* Скрываем внутренний текст опции ("agree"), чтобы не дублировался */
.ruxsf .wpcf7-list-item-label{display:none}

/* submit (красная, по центру, не ломает .btn--red в шапке) */
.ruxsf__btn{
  display:inline-grid;
  place-items:center;
  border:none;
  cursor:pointer;
  padding:12px 28px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(90deg,#2563eb 0%, #ef4444 100%);
  font-weight:700;
  box-shadow:0 10px 20px rgba(239,68,68,.25);
  transition:transform .15s, filter .15s;
  margin-top: 2rem;
}
.ruxsf__btn:hover{transform:translateY(-1px);filter:brightness(.98)}
.ruxsf__btn:active{transform:translateY(0)}

/* CF7 validation scoped */
.ruxsf span.wpcf7-not-valid-tip{display:block;margin-top:6px;font-size:12px;color:#ef4444}
.ruxsf div.wpcf7-response-output{margin:16px 0 0;padding:12px 14px;border-radius:10px;border:1px solid rgba(37,99,235,.25)}

.main_btn {
  color: #004077;
  font-weight:bold;
}


/*------ BLOG --------*/

.blog-container {
    display: grid;
    grid-template-columns: 70% 30%; /* Соотношение сторон */
    /* gap: 40px; */
    max-width: 1500px;
    margin: 15px auto;
    /* padding: 0 20px; */
    font-family: 'Montserrat', sans-serif;
}

h3 a {
  color: black;
}
h3 p {
  font-family: Roboto, sans-serif;
  color:#000;
}
/* Статьи слева */
.articles-list {
    max-width: 1300px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}

.article-row {
    display: flex;
    align-items: flex-start;
    /* gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px; */
}

/* Чередование: каждый второй пост картинка слева (если нужно как в журналах) 
.article-row:nth-child(even) {
    flex-direction: row-reverse;
} */

.article-body {
    flex: 1; /* Текст занимает оставшееся место */
}

.article-image {
    flex: 0 0 45%; /* Картинка занимает 45% ширины */
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 4px; /* Легкое скругление как на макете */
    display: block;
}

.article-title {
    display: none !important;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase; /* Как в заголовке про клипсатор */
}

.article-title a {
    text-decoration: none;
    color: #1a1a1a;
}

.article-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .article-row {
        flex-direction: column !important;
    }
    .article-image {
        order: -1; /* Картинка всегда сверху на мобильных */
        flex: 0 0 100%;
    }
}

/* Новости справа */
.sidebar-news {
    max-width: 350px;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    padding: 0px 20px 0 20px;
}

.sidebar-section {
    margin-bottom: 30px;
}

/* Заголовок секции с синей линией */
.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: none;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px; /* Длина синей линии */
    height: 3px;
    background-color: #00aaff; /* Голубой цвет из макета */
}

/* Список постов */
.posts-list {
    background-color: #f8f9fa; /* Светло-серый фон блока из макета */
    padding: 15px;
    border-radius: 4px;
}

.mini-post {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef0f2;
}

.mini-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mini-post-title {
font-family: "Montserrat", sans-serif;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.mini-post-title a {
    text-decoration: none;
    color: #222;
    transition: color 0.2s;
}

.mini-post-title a:hover {
    color: #00aaff;
}

/* Дата с иконкой */
.mini-post-date {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-post-date i {
    font-size: 12px;
}

/* Адаптив */
@media (max-width: 900px) {
    .blog-container { grid-template-columns: 1fr; }
}

.search-wrapper {
    display: flex;
    width: 100%;
    max-width: 400px; /* Можно настроить под ширину сайдбара */
    height: 45px;
    border: 1px solid #003e7e; /* Темно-синяя рамка в цвет кнопки */
    border-radius: 4px;
    overflow: hidden; /* Чтобы углы кнопки не вылезали за рамку */
}

/* Поле ввода */
.search-wrapper input {
    flex: 1;
    border: none;
    padding: 0 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
}

.search-wrapper input::placeholder {
    color: #999;
}

/* Кнопка "Найти" */
.search-wrapper button {
    background-color: #003e7e; /* Фирменный синий Рутекс */
    color: #ffffff;
    border: none;
    padding: 0 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-wrapper button:hover {
    background-color: #002d5c; /* Затемнение при наведении */
}

/* Убираем стандартные отступы формы в WP */
.searchform-rutex {
    margin: 0 0 20px 0;
}

/* --- АДАПТИВНАЯ СЕТКА --- */

/* 1200px — Переходное состояние для ноутбуков */
@media (max-width: 1200px) {
    .blog-container {
        grid-template-columns: 65% 35%; /* Чуть расширяем сайдбар */
        gap: 30px;
    }
    .article-image {
        flex: 0 0 40%; /* Немного уменьшаем картинку */
    }
}

/* 900px - 800px — Сайдбар уходит вниз */
@media (max-width: 900px) {
    .blog-container {
        grid-template-columns: 1fr; /* Одна колонка */
        margin: 20px auto;
    }
    .sidebar-news {
        max-width: 100%; /* Сайдбар на всю ширину */
        padding: 20px 0;
        border-top: 2px solid #f0f0f0;
    }
    .search-wrapper {
        max-width: 100%; /* Поиск на всю ширину */
    }
}

/* 800px — Планшеты (горизонтальные) */
@media (max-width: 800px) {
    .article-row {
        gap: 20px;
        margin-bottom: 40px;
    }
    .article-title {
        font-size: 24px;
    }
}

/* 480px — Смартфоны (вертикальные) */
@media (max-width: 480px) {
    .blog-container {
        padding: 0 15px;
    }
    .article-row {
        flex-direction: column !important; /* Текст под картинку */
        gap: 15px;
    }
    .article-image {
        flex: 0 0 100%;
        order: -1; /* Картинка всегда первая */
    }
    .article-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .article-content {
        font-size: 14px;
    }
    .section-title {
        font-size: 18px;
    }
}

/* 320px — Маленькие смартфоны */
@media (max-width: 320px) {
    .article-title {
        font-size: 18px;
    }
    .search-wrapper button {
        padding: 0 15px; /* Уменьшаем кнопку поиска, чтобы влезла */
        font-size: 13px;
    }
    .mini-post-title {
        font-size: 13px;
    }
}


/*--- meat - no-meat---*/
.product-grid-container2 {
    max-width: 1500px;
    margin: 0 auto;
    padding-top: 15px;
    font-family: sans-serif;
}

.section-title2 {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: none;
}
.section-title2::after {
  content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #00aaff;
}

.posts-grid2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки в ряд */
    gap: 20px;
    margin-bottom: 40px;
}

.post-card2 {
    display: flex;
    flex-direction: column;
}

.post-thumbnail2 img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Чтобы картинки были одинаковой высоты */
    border-radius: 4px;
}

.post-title2 {
    font-size: 16px;
    line-height: 1.4;
    margin: 15px 0 10px;
}

.post-title2 a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.reading-time2 {
    font-size: 12px;
    color: #888;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .posts-grid2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .posts-grid2 { grid-template-columns: 1fr; }
}
/* Базовые стили контейнера */
.product-grid-container2 {
    max-width: 1500px;
    margin: 0 auto;
    /* padding: 15px; */
    box-sizing: border-box;
}

/* Сетка по умолчанию (Desktop > 1200px) */
.posts-grid2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.post-thumbnail2 img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10; /* Поддерживает пропорции как на картинке */
    object-fit: cover;
    display: block;
}

.post-title2 {
    font-size: 16px;
    margin: 12px 0 8px;
    line-height: 1.3;
}

/* --- АДАПТИВНАЯ ВЕРСТКА --- */

/* 1. Планшеты и небольшие ноутбуки (до 1200px) */
@media screen and (max-width: 1200px) {
    .product-grid-container2 {
        max-width: 800px;
    }
    .posts-grid2 {
        grid-template-columns: repeat(2, 1fr); /* Переходим на 2 колонки */
        gap: 20px;
    }
}

/* 2. Крупные телефоны и мини-планшеты (до 800px) */
@media screen and (max-width: 800px) {
    .product-grid-container2 {
        max-width: 480px;
    }
    .posts-grid2 {
        grid-template-columns: repeat(2, 1fr); /* Все еще 2 колонки, но плотнее */
        gap: 15px;
    }
    .post-title2 {
        font-size: 14px;
    }
}

/* 3. Средние телефоны (до 480px) */
@media screen and (max-width: 480px) {
    .posts-grid2 {
        grid-template-columns: 1fr; /* Одна колонка в ряд */
    }
    .section-title2 {
        font-size: 20px;
    }
}

/* 4. Маленькие телефоны (до 320px) */
@media screen and (max-width: 320px) {
    .product-grid-container2 {
        padding: 10px;
    }
    .post-title2 {
        font-size: 13px;
    }
    .reading-time2 {
        font-size: 11px;
    }
}

/*----- single blog ------*/
/* Базовые стили контейнера */
.rutex-layout {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.4;
/*     padding: 20px; */
}

/* Общие стили для строк (статьи) */
.rutex-row {
    display: flex;
/*     gap: 30px; */
/*     margin-bottom: 40px; */
    align-items: flex-start;
}

.rutex-text {
    flex: 1;
    text-align: left;
    padding: 10px
}

.rutex-text h3 {
		font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 600;
/*     text-transform: uppercase; */
    margin-top: 0;
    margin-bottom: 15px;
    color: #000;
}

.gutentor-single-item-desc {
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
}

.read-time {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.rutex-image {
    flex: 0 0 50%;
}

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

/* Специфические стили для промо-блока (Блок 2) */
.special-promo {
/*     background-color: #f8f8f8; */
/*     padding: 40px; */
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.special-promo .rutex-text {
    text-align: center;
    width: 100%;
}

.special-promo img {
    max-width: 100%;
    height: auto;
}

/* Адаптивность */

/* 1200px (Desktop) - Стили выше */

/* 800px (Tablets) */
@media (max-width: 800px) {
    .rutex-text h3 { font-size: 20px; }
/*     .rutex-row { gap: 20px; } */
}

/* 640px (Small Tablets) */
@media (max-width: 640px) {
    .rutex-row {
        flex-direction: column;
    }
    .rutex-image {
        flex: none;
        width: 100%;
        order: -1; /* Картинка сверху для мобильных */
    }
/*     .special-promo { padding: 20px; } */
}

/* 480px (Smartphones) */
@media (max-width: 480px) {
    .rutex-text h3 { font-size: 18px; }
    .gutentor-single-item-desc { font-size: 13px; }
}

/* 320px (Small Smartphones) */
@media (max-width: 320px) {
    .rutex-layout { padding: 10px; }
    .rutex-text h3 { font-size: 16px; }
}
/* Вспомогательные классы без изменений */
.post-content { font-weight: 800; text-align: center; min-width: 100%; }
.gutentor-single-item-desc { font-family: Roboto, sans-serif; font-size: 16px; font-weight: normal; line-height: normal; }


.single-post-container {
    max-width: 800px; /* Оптимальная ширина для чтения текста */
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

.post-header {
    text-align: left;
    /* margin-bottom: 40px; */
    color: #999999;
    text-decoration:none;
}

.post-header a{
    color: #999999;
    text-decoration:none;

}

.post-category-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.post-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 10px 0 20px;
    color: #111;
}

.post-meta {
    font-size: 14px;
    color: #9ca3af;
}

.meta-item { margin: 0 10px; }

.post-featured-image {
    margin-bottom: 40px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Оформление текста внутри the_content() */
.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
}

.post-content p { margin-bottom: 25px; }

.post-content h2, .post-content h3 {
    margin: 40px 0 20px;
    color: #111;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Навигация */
.rutex-simple-nav {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    padding: 20px 0;
    font-family: 'Montserrat', sans-serif;
}

.mini-post-content {
  font-weight: 800;
}

.red-btn {
    display: inline-block;
    background-color: #e41d24; /* Тот самый красный из логотипа */
    color: #ffffff;
    padding: 14px 35px;
    font-weight: 800;
    font-style: italic; /* Наклон как у надписи Рутекс */
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 4px 15px; /* Скошенные углы */
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    border: none;
    margin: 20px;
}

/* Эффект при наведении */
.red-btn:hover {
    background-color: #c4191f; /* Чуть темнее при наведении */
    box-shadow: 0 4px 15px rgba(228, 29, 36, 0.4);
    transform: translateY(-2px);
}

.red-btn:active {
    transform: translateY(0);
}

/* Убираем подчеркивание ссылок WordPress */
.rutex-simple-nav a {
    text-decoration: none !important;
}

/* Адаптив для мобильных телефонов */
/* 1200px+ (Большие экраны) */
@media (min-width: 1200px) {
    .single-post-container {
        max-width: 900px; /* Чуть шире для лучшего восприятия на десктопах */
        margin: 60px auto;
    }
}

/* 800px (Планшеты в альбомной ориентации) */
@media (max-width: 800px) {
    .single-post-container {
        margin: 30px auto;
        padding: 0 30px;
    }
    .post-title {
        font-size: 32px;
    }
}

/* 640px (Планшеты в портретной ориентации) */
@media (max-width: 640px) {
    .post-title {
        font-size: 28px;
    }
    .post-content {
        font-size: 17px;
        line-height: 1.7;
    }
    .post-featured-image {
        margin-bottom: 25px;
    }
    .rutex-simple-nav {
        margin-top: 30px;
    }
}

/* 480px (Смартфоны) */
@media (max-width: 480px) {
    .single-post-container {
        padding: 0 15px;
    }
    .post-header {
        margin-bottom: 25px;
    }
    .post-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .post-meta {
        font-size: 13px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    /* Кнопки навигации в стек */
    .rutex-simple-nav {
        flex-direction: column;
        align-items: center;
        gap: 0; /* Убираем gap, так как у кнопок есть margin 20px */
    }
    .red-btn {
        width: 100%;
        margin: 10px 0; /* Уменьшаем боковые отступы для мобилок */
        padding: 12px 20px;
        text-align: center;
    }
}

/* 320px (Малые смартфоны) */
@media (max-width: 320px) {
    .post-title {
        font-size: 20px;
        word-wrap: break-word; /* Чтобы длинные слова не ломали верстку */
    }
    .post-content {
        font-size: 16px;
    }
    .post-category-tag {
        font-size: 10px;
        padding: 4px 10px;
    }
    .red-btn {
        font-size: 12px;
        padding: 10px 15px;
    }
    .meta-item {
        margin: 0;
    }
}


/*-------- Search ---------*/
.search-results-page {
    padding: 40px 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.container2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container3 {
    margin: 0 auto;

}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}

.page-title span {
    color: #e41d24; /* Выделяем запрос красным Рутекс */
}

/* Сетка карточек */
.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
       background-color: #FBFAF6; /* Очень светлый серый фон для всей секции */

}

/* Стили карточки */
.custom-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image img {
    width: 100%;
    /* height: 180px; */
    /* object-fit: cover; */
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.post-date {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.entry-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
}

.entry-title a {
    text-decoration: none;
    color: #111;
}

.read-more-link {
    color: #e41d24;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* Адаптив */
@media (max-width: 1024px) { .cards-container { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .cards-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { 
    .cards-container { grid-template-columns: 1fr; }
    .page-title { font-size: 20px; }
}

/*---- Глоссарий ----*/

/* Общий контейнер */
.glossary-header-block {
    background-color: #004077; /* Единый фон */
    padding: 20px 10px;
    width: 100%;
    box-sizing: border-box;
}

.glossary-alphabet-block {
    background-color: #013562; /* Единый фон */
    /* padding: 20px 10px; */
    width: 100%;
    box-sizing: border-box;
}

/* Форма поиска */
.glossary-search-form {
    display: flex;
    max-width: 800px;
    margin: 0 auto; /* Центрируем и даем отступ до букв */
}

.glossary-search-field {
    flex-grow: 1;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
    border-radius: 6px 0 0 6px;
}

.glossary-search-submit {
    background-color: #d32f2f;
    color: #fff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    border-radius: 0 6px 6px 0;
}

/* Алфавитный блок */
.alphabet-filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.1); /* Тонкая линия разделения */
    padding: 10px;
}

.alphabet-label {
    color: #fff;
    font-size: 14px;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
}

.alphabet-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
}

.alphabet-list a{
  color: #fff;
}

.alphabet-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.alphabet-link:hover, .alphabet-link.is-active {
    color: #d32f2f;
    font-weight: bold;
}

/* --- Адаптивная логика --- */

/* Планшеты (640px - 800px) */
@media (min-width: 640px) {
    .glossary-header-block { padding: 30px 20px; }
    .alphabet-list { gap: 10px 14px; }
}

/* Десктоп (800px+) */
@media (min-width: 800px) {
    .alphabet-filter-container {
        flex-direction: row; /* В одну линию на больших экранах */
        justify-content: center;
    }
}

/* Широкий экран (1200px) */
@media (min-width: 1200px) {
    .glossary-header-block {
        max-width: 100%;
    }
    .glossary-search-form {
        max-width: 900px;
        height: 50px;
    }
}

/* Мобильные (320px - 480px) */
@media (max-width: 480px) {
    .glossary-search-form {
        flex-direction: column;
        gap: 5px;
    }
    .glossary-search-submit {
        padding: 12px;
    }
    .alphabet-link {
        font-size: 16px; /* Крупнее для пальцев */
        min-width: 30px;
        text-align: center;
    }
}

/* Базовые стили (начиная с 320px) */
.glossary-container {
  display: grid;
  grid-template-columns: 1fr; /* По умолчанию 1 колонка */
  gap: 10px;
  padding: 15px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.glossary-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px 15px;
  
  font-family: sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  color: #000;
  line-height: 1.2;
  transition: transform 0.2s ease;
}

/* --- Адаптивная сетка --- */

/* От 480px: увеличиваем отступы */
@media (min-width: 480px) {
  .glossary-container {
    gap: 15px;
    padding: 20px;
  }
}

/* От 640px: сетка в 2 колонки */
@media (min-width: 640px) {
  .glossary-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .glossary-item {
    font-size: 14px;
    min-height: 80px;
  }
}

/* От 800px: сетка в 4 колонки (как на макете) */
@media (min-width: 800px) {
  .glossary-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .glossary-item {
    /* padding: 35px 10px; */
  }
}

/* От 1200px: фиксируем ширину контейнера и увеличиваем интервалы */
@media (min-width: 1200px) {
  .glossary-container {
    gap: 20px;
    padding: 40px 0;
  }
  .glossary-item {
    font-size: 18px;
    /* padding: 45px 20px; */
  }
}

/* Эффект при наведении (только для устройств с мышкой) */
@media (hover: hover) {
  .glossary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
  }
}

:root {
  --primary-red: #e31e24;
  --dark-bg: #001529;
  --text-gray: #8c8c8c;
  --border-color: #f0f0f0;
}

.glossary-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  /* gap: 30px; */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 0 40px;
  font-family: 'Arial', sans-serif;
}

/* Стили аккордеона */
.glossary-letter {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0 10px -25px;
}

.glossary-accordion {
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  background: #fff;
  border-radius: 4px;
}

.glossary-acc-header {
  padding: 15px 20px;
  position: relative;
  cursor: pointer;
}

.glossary-acc-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
}

.glossary-acc-subtitle {
  color: var(--text-gray);
  font-size: 12px;
}

.glossary-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
}

/* Развернутый контент */
.glossary-acc-content {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border-color);
}

.glossary-acc-content p {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

.glossary-btn-more {
  background: var(--primary-red);
  color: #fff;
  border: none;
  padding: 10px 25px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
}

/* Сайдбар */
.glossary-promo-card {
  background: var(--dark-bg);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.glossary-btn-order {
  background: var(--primary-red);
  width: 100%;
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 4px;
  font-weight: bold;
}

/* --- АДАПТИВЫ --- */

/* 320px - 639px: Все в одну колонку, уменьшенные отступы */
@media (max-width: 639px) {
  .glossary-letter { margin-left: 0; }
}

/* 640px - 799px: Появление небольших отступов */
@media (min-width: 640px) {
  .glossary-wrapper { padding: 40px; }
}

/* 800px - 1199px: Две колонки (70/30) */
@media (min-width: 800px) {
  .glossary-wrapper {
    grid-template-columns: 1fr 300px;
  }
}

/* 1200px: Фиксированная ширина и полная точность */
@media (min-width: 1200px) {
  .glossary-wrapper {
    grid-template-columns: 1fr 300px;
    padding: 0 0 20px 20px;
    /* gap: 50px; */
  }
}
.glossary-container2 {
    padding: 0 20px 0 10px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

/* Заглавные буквы (А, Д) */
.glossary-letter2 {
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0 10px -25px; /* Вынос буквы влево как на макете */
    color: #001a34;
}

/* Элемент списка */
.glossary-item2 {
    border: 1px solid #eee;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.glossary-item2:last-of-type {
    border-bottom: 1px solid #eee;
}

/* Шапка элемента */
.glossary-header2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.glossary-header3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.glossary-title2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.glossary-subtitle2 {
    font-size: 13px;
    color: #999;
    margin: 4px 0 0 0;
}

.glossary-icon2 {
    font-family: Roboto, sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #666;
}

/* Контент внутри (скрыт по умолчанию) */
.glossary-content2 {
    display: none; 
    padding: 20px 0 10px 0;
}

/* Состояние Active для показа контента */
.glossary-item2.active .glossary-content2 {
    display: block;
}

.glossary-content2 p {
     font-size: 16px;
    line-height: 1.2;
    color: #444;
    font-family: Roboto;
    /* margin-bottom: 20px;*/
}

/* Красная кнопка */
.glossary-button2 {
    display: inline-block;
    background-color: #e31e24;
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: bold;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
}

.glossary-button2:hover {
    background-color: #c4181d;
}

:root {
  --glossary-navy: #001d35; /* Темно-синий фон первой карточки */
  --glossary-red: #e31e24;  /* Красный цвет кнопки */
  --glossary-gray-text: #666666;
  --glossary-light-gray: #b3b3b3;
  --glossary-border: #eeeeee;
}

/* Контейнер сайдбара */
.glossary-sidebar {
  width: 100%;
  max-width: 320px; /* Ширина как на мобильном макете */
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Montserrat', sans-serif;
}

/* ОБЩИЕ СТИЛИ КАРТОЧЕК */
.glossary-promo-card, 
.glossary-product-card {
  padding: 25px;
  border-radius: 15px; /* Заметное скругление углов */
  text-align: center;
}

/* ПЕРВАЯ КАРТОЧКА (ТЕМНАЯ) */
.glossary-promo-card.glossary-dark {
  background-color: var(--glossary-navy);
  color: #ffffff;
}

.glossary-promo-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
}

.glossary-promo-card img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.glossary-promo-card p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.glossary-btn-order {
  background-color: var(--glossary-red);
  color: #ffffff;
  border: none;
  width: 100%;
  padding: 12px 0;
  border-radius: 5px;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

/* ВТОРАЯ КАРТОЧКА (СВЕТЛАЯ) */
.glossary-product-card {
  background-color: #ffffff;
  border: 1px solid var(--glossary-border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Мягкая тень */
  text-align: left; /* Текст слева */
  display: flex;
  flex-direction: column;
}

.glossary-product-card img {
  width: 100%;
  margin-bottom: 20px;
}

.glossary-product-card h4 {
  color: #000;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.glossary-product-card p {
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Ссылка "Подробнее" с линией-разделителем */
.glossary-link {
  display: block;
  border-top: 1px solid var(--glossary-border); /* Линия как на картинке */
  padding-top: 15px;
  color: var(--glossary-light-gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}

.glossary-link:hover {
  color: var(--glossary-gray-text);
}

/*------  Page.php  --------*/

.industry-page {
    font-family: 'Helvetica', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
.industry-header {
    display: flex;
    gap: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.industry-title-block h1 {
    font-size: 32px;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

/* Сетка контента */
.content-flex {
    display: flex;
    gap: 50px;
}

.content-left { flex: 0 0 400px; }
.content-right { flex: 1; }

/* Иконки характеристик */
.specs-icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.spec-icon {
    background: #f4f4f4;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: bold;
}

/* Статьи по теме */
.related-articles {
    margin-top: 60px;
    border-top: 1px solid #ccc;
    padding-top: 30px;
}

.articles-grid {
    display: flex;
    gap: 20px;
}

.article-card {
    flex: 1;
    background: #fff;
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-card h4 { margin: 10px 0; color: #d32f2f; /* Красный как на скрине */ }

.woocommerce img, .woocommerce-page img {
  height: 3rem !important;
}