/*
Theme Name: Templat312 Child (Holoworks / Тач Лаб)
Template: templat312
Version: 1.0.6
Description: Дочерняя тема Holoworks: горизонтальная sticky-шапка (Вариант A), новая главная под 4 продукта и аренду, мобильное меню-аккордеон. Контент про куб сохранён в шаблоне page-golokub.
*/

/* ============================================================
   ПЕРЕМЕННЫЕ (токены родительской темы)
   ============================================================ */
:root{
  --hw-blue:#056fe1; --hw-dark:#000417; --hw-gray:#8993af; --hw-wh:#fff;
  --hw-grad:linear-gradient(82deg,#15b3e2 9.47%,#630fcf 67.01%,#230651 96.38%);
}

/* ============================================================
   ШАПКА Вариант A — горизонтальная sticky
   Перекрывает родной гамбургер-оверлей на десктопе
   ============================================================ */

/* верхняя служебная полоса */
.hw-topbar{background:var(--hw-dark);color:var(--hw-gray);font-family:Unbounded,sans-serif;font-weight:300;font-size:14px;position:relative;z-index:101}
.hw-topbar .site-width{display:flex;align-items:center;justify-content:flex-end;gap:26px;height:40px;max-width:1840px}
.hw-topbar a{color:var(--hw-gray);text-decoration:none;transition:.25s}
.hw-topbar a:hover{color:#fff}
.hw-tb-mobile{display:none}
.hw-tb-desktop{display:flex;align-items:center;gap:26px}

/* основная шапка: переопределяем родной .header в горизонтальный бар */
.header.hw-mode{background:linear-gradient(182deg,rgba(0,4,23,.92),rgba(0,4,23,.99))!important;backdrop-filter:blur(6px);box-shadow:0 2px 18px rgba(0,0,0,.25);position:sticky;top:0;padding:0}
.header.hw-mode .site-width{display:flex;align-items:center;justify-content:space-between;gap:32px;height:78px;max-width:1840px}
.header.hw-mode .logo img{max-height:56px;width:auto}

/* родной гамбургер/служебные блоки прячем на десктопе */
.header.hw-mode .menu,.header.hw-mode .time,.header.hw-mode .info,.header.hw-mode .email{display:none!important}

/* горизонтальное меню */
.hw-nav{display:flex;align-items:center;gap:26px;list-style:none;margin:0;padding:0;flex:1;justify-content:center}
.hw-nav>li{position:relative;list-style:none}
.hw-nav>li>a{color:#fff;font-family:Unbounded,sans-serif;font-weight:300;font-size:15px;line-height:78px;display:block;text-decoration:none;transition:.25s;white-space:nowrap}
.hw-nav>li>a:hover,.hw-nav>li.current-menu-item>a,.hw-nav>li.current-menu-parent>a{color:#15b3e2}
.hw-nav>li.menu-item-has-children>a::after{content:"";display:inline-block;width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:7px;vertical-align:middle;position:relative;top:-2px;opacity:.8}
/* dropdown */
.hw-nav .sub-menu{list-style:none;margin:0;padding:10px 0;position:absolute;top:68px;left:50%;transform:translateX(-50%) translateY(8px);min-width:270px;background:#0a0f24;border:1px solid rgba(255,255,255,.08);border-radius:8px;opacity:0;visibility:hidden;transition:.5s;box-shadow:0 12px 40px rgba(0,0,0,.45)}
.hw-nav>li:hover .sub-menu{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.hw-nav .sub-menu li{list-style:none}
.hw-nav .sub-menu a{display:block;color:#cfd6ea;font-size:14px;font-family:Montserrat,sans-serif;padding:10px 22px;text-decoration:none;transition:.2s;line-height:1.4}
.hw-nav .sub-menu a:hover{background:rgba(5,111,225,.18);color:#fff}

/* правый блок */
.hw-head-right{display:flex;align-items:center;gap:14px;flex:none}
.hw-max-link{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;line-height:0;transition:background-color .2s ease,transform .2s ease}
.hw-max-link img{display:block;width:24px;height:24px}
.hw-max-link:hover,.hw-max-link:focus-visible{background:rgba(255,255,255,.1);transform:translateY(-1px)}
.hw-max-link--topbar{width:24px;height:24px;flex:0 0 24px}
.hw-max-link--topbar img{width:22px;height:22px}
.hw-tb-messengers{display:flex;align-items:center;gap:10px}
.hw-tb-messengers .social{display:flex;align-items:center;margin:0}
.hw-social-row{display:flex;align-items:center;gap:12px;margin:14px 0}
.hw-social-row .social{margin:0}
.hw-max-link--footer{margin:0}
.hw-telegram-link{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;line-height:0;transition:background-color .2s ease,transform .2s ease}
.hw-telegram-link .icon{display:block;width:24px!important;height:24px!important;fill:#aeb6cc}
.hw-telegram-link:hover,.hw-telegram-link:focus-visible{background:rgba(255,255,255,.1);transform:translateY(-1px)}
.hw-head-phone{color:#fff;font-family:Unbounded,sans-serif;font-weight:400;font-size:18px;white-space:nowrap;text-decoration:none}
.hw-head-phone:hover{color:#15b3e2}
.hw-cta{display:inline-flex;align-items:center;background:var(--hw-blue);color:#fff;font-family:Unbounded,sans-serif;font-weight:400;font-size:14px;padding:13px 24px;border-radius:200px;border:0;cursor:pointer;text-decoration:none;transition:.25s;white-space:nowrap}
.hw-cta:hover{background:#0a5bc0;transform:translateY(-1px)}

/* бургер (только мобайл) */
.hw-burger{display:none;flex-direction:column;gap:6px;cursor:pointer;background:none;border:0;padding:6px}
.hw-burger span{width:28px;height:2px;background:#fff;display:block;transition:.3s}

/* мобильное меню-аккордеон */
.hw-mobile{display:none}
.hw-mobile-overlay{display:none}

/* отступ под sticky-шапку для не-главных страниц (у темы .header fixed) */
body:not(.home) .wrapper{padding-top:60px}

/* ============================================================
   МОБАЙЛ
   ============================================================ */
@media (max-width:1000px){
  .hw-topbar{display:block}
  .hw-topbar .site-width{justify-content:space-between;height:38px;gap:12px;padding:0 16px}
  .hw-tb-desktop{display:none}
  .hw-tb-mobile{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px}
  .hw-tb-mobile a{display:inline-flex;align-items:center;gap:7px;font-family:Unbounded,sans-serif;font-weight:300;font-size:13.5px;white-space:nowrap}
  .hw-tb-mobile svg{width:14px!important;height:14px!important;flex:none}
  .hw-tb-phone{color:#fff!important}
  .hw-tb-phone svg{stroke:var(--hw-blue)}
  .hw-tb-tg{color:var(--hw-gray)!important}

  .hw-nav,.hw-head-phone{display:none}
  .hw-burger{display:flex}
  .header.hw-mode .site-width{height:62px}
  .header.hw-mode .logo img{max-height:42px}

  /* кнопка-заявка: компактнее, чтобы влезла рядом с лого и бургером */
  .hw-cta{padding:10px 16px;font-size:13px}

  .hw-mobile{display:block;position:fixed;top:0;right:0;bottom:0;width:86%;max-width:360px;background:#0a0f24;z-index:200;transform:translateX(100%);transition:.35s ease;padding:72px 0 30px;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .hw-mobile.open{transform:translateX(0)}
  .hw-mobile-overlay.open{display:block;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:150}
  .hw-mobile-close{position:absolute;top:18px;right:20px;color:#fff;font-size:30px;line-height:1;cursor:pointer;background:none;border:0}

  .hw-macc{list-style:none;margin:0;padding:0}
  .hw-macc li{list-style:none;border-bottom:1px solid rgba(255,255,255,.07)}
  .hw-macc>li>a,.hw-macc .hw-acc-head{display:flex;align-items:center;justify-content:space-between;color:#fff;font-family:Unbounded,sans-serif;font-weight:300;font-size:17px;padding:15px 24px;text-decoration:none;cursor:pointer}
  .hw-acc-head .hw-arr{width:9px;height:9px;border-right:2px solid #8993af;border-bottom:2px solid #8993af;transform:rotate(45deg);transition:.3s;flex:none}
  .hw-acc.open .hw-arr{transform:rotate(-135deg)}
  .hw-acc-body{max-height:0;overflow:hidden;transition:max-height .35s ease;background:rgba(255,255,255,.03)}
  .hw-acc.open .hw-acc-body{max-height:600px}
  .hw-acc-body a{display:block;color:#cfd6ea;font-size:15px;font-family:Montserrat,sans-serif;padding:12px 24px 12px 38px;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.05)}
  .hw-acc-body a:active{background:rgba(5,111,225,.2)}
  .hw-mobile-cta{display:block;margin:22px 24px 0;background:var(--hw-blue);color:#fff;text-align:center;border-radius:200px;padding:15px;font-family:Unbounded,sans-serif;text-decoration:none}
  .hw-mobile-contacts{padding:22px 24px 0;color:var(--hw-gray);font-size:14px;font-family:Montserrat}
  .hw-mobile-contacts a{color:#fff;text-decoration:none;display:block;margin:6px 0;font-size:17px;font-family:Unbounded;font-weight:300}
}

/* ============================================================
   НОВАЯ ГЛАВНАЯ
   ============================================================ */
.hw-home-hero{background:#000417 url(https://holoworks.ru/wp-content/themes/templat312/assets/img/section1-min.jpg) no-repeat right center;background-size:cover;position:relative;padding:150px 0 90px}
.hw-home-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#000417 30%,rgba(0,4,23,.55) 70%,rgba(0,4,23,.2))}
.hw-hero-inner{position:relative;z-index:2;max-width:760px}
.hw-home-hero h1{color:#fff;font-family:Unbounded,sans-serif;font-weight:300;font-size:44px;line-height:1.2;margin:0 0 22px}
.hw-hero-sub{color:#cfd6ea;font-size:18px;line-height:1.55;margin:0 0 30px;max-width:620px}
.hw-hero-btns{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:30px}
.hw-btn-primary{background:#fff;color:#000417;font-family:Unbounded,sans-serif;font-weight:400;font-size:15px;padding:16px 32px;border-radius:200px;text-decoration:none;transition:.25s}
.hw-btn-primary:hover{background:#15b3e2;color:#fff}
.hw-btn-ghost{border:1px solid rgba(255,255,255,.4);color:#fff;font-family:Unbounded,sans-serif;font-weight:400;font-size:15px;padding:16px 32px;border-radius:200px;text-decoration:none;transition:.25s}
.hw-btn-ghost:hover{border-color:#15b3e2;color:#15b3e2}
.hw-hero-tags{display:flex;gap:10px;flex-wrap:wrap}
.hw-hero-tags span{border:1px solid rgba(255,255,255,.22);color:#cfd6ea;font-size:13px;padding:7px 14px;border-radius:200px}

.hw-home-sec{padding:80px 0}
.hw-home-sec-dark{background:#000417}
.hw-sec-title{font-family:Unbounded,sans-serif;font-weight:300;font-size:34px;color:#000417;text-align:center;margin:0 0 12px}
.hw-sec-title.hw-light,.hw-sec-lead.hw-light{color:#fff}
.hw-sec-lead{text-align:center;color:#525566;font-size:17px;max-width:680px;margin:0 auto 44px}
.hw-sec-lead.hw-light{color:#8993af}

.hw-cards{display:grid;gap:22px}
.hw-cards-4{grid-template-columns:repeat(4,1fr)}
.hw-cards-3{grid-template-columns:repeat(3,1fr)}
.hw-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e4eaf3;border-radius:12px;padding:30px 26px;text-decoration:none;transition:.25s;box-shadow:0 4px 18px rgba(0,0,0,.04)}
.hw-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(5,111,225,.14);border-color:#bcd4f5}
.hw-card-ic{width:52px;height:52px;border-radius:12px;background:var(--hw-grad);margin-bottom:20px;flex:none}
.hw-card h3{font-family:Unbounded,sans-serif;font-weight:400;font-size:19px;color:#000417;margin:0 0 12px;line-height:1.3}
.hw-card p{color:#525566;font-size:15px;line-height:1.5;margin:0 0 18px;flex:1}
.hw-card-more{color:#056fe1;font-family:Unbounded,sans-serif;font-size:14px;font-weight:400}
.hw-card-dark{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.1)}
.hw-card-dark h3{color:#fff}
.hw-card-dark:hover{border-color:#15b3e2;box-shadow:0 14px 34px rgba(0,0,0,.4)}

.hw-apply{background:#f3f6fb;border-radius:12px;padding:34px 30px}
.hw-apply h3{font-family:Unbounded,sans-serif;font-weight:400;font-size:21px;color:#000417;margin:0 0 12px}
.hw-apply p{color:#525566;font-size:16px;line-height:1.55;margin:0}

.hw-home-cta{background:var(--hw-grad);padding:70px 0}
.hw-home-cta h2{color:#fff;font-family:Unbounded,sans-serif;font-weight:300;font-size:30px;text-align:center;margin:0 0 34px;line-height:1.25}
.hw-cta-form{max-width:760px;margin:0 auto}

@media (max-width:1000px){
  .hw-cards-4{grid-template-columns:repeat(2,1fr)}
  .hw-home-hero h1{font-size:32px}
  .hw-home-hero{padding:110px 0 70px}
}
@media (max-width:600px){
  .hw-cards-4,.hw-cards-3{grid-template-columns:1fr}
  .hw-home-sec{padding:56px 0}
  .hw-sec-title{font-size:26px}
  .hw-home-hero h1{font-size:27px}
}

/* ============================================================
   ПОДВАЛ (новая 4-колоночная структура)
   ============================================================ */
.hw-footer .head{background:#000417;padding:60px 0 50px}
.hw-footer .head .site-width{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1.1fr;gap:34px;align-items:start;max-width:1840px}
.hw-foot-brand img{max-height:54px;width:auto;margin-bottom:18px}
.hw-foot-about{color:#8993af;font-size:14px;line-height:1.6;font-family:Montserrat,sans-serif;margin:0}
.hw-foot-col h4{color:#fff;font-family:Unbounded,sans-serif;font-weight:400;font-size:16px;margin:0 0 16px}
.hw-foot-col ul{list-style:none;margin:0;padding:0}
.hw-foot-col li{margin-bottom:10px;list-style:none}
.hw-foot-col a{color:#aeb6cc;font-size:14px;font-family:Montserrat,sans-serif;text-decoration:none;transition:.2s}
.hw-foot-col a:hover{color:#15b3e2}
.hw-foot-contacts .phone{color:#fff;font-family:Unbounded,sans-serif;font-size:18px;text-decoration:none;display:block;margin-bottom:10px}
.hw-foot-contacts .info{color:#8993af;font-size:14px;font-family:Montserrat,sans-serif;margin-bottom:7px}
.hw-foot-contacts .info a,.hw-foot-contacts .mail{color:#aeb6cc;text-decoration:none}
.hw-foot-contacts .social{display:flex;gap:12px;margin:14px 0}
.hw-foot-contacts .social a svg,.hw-foot-contacts .social a{width:24px;height:24px;fill:#aeb6cc}
.hw-foot-cta{display:inline-block;margin-top:8px;background:#056fe1;color:#fff;font-family:Unbounded,sans-serif;font-size:13px;padding:12px 22px;border-radius:200px;text-decoration:none;transition:.25s}
.hw-foot-cta:hover{background:#0a5bc0}
.hw-footer .bottom{background:#05081a;padding:18px 0}
.hw-footer .bottom .site-width{display:flex;justify-content:space-between;align-items:center;max-width:1840px;flex-wrap:wrap;gap:12px}
.hw-footer .copyright,.hw-footer .links a{color:#6b7290;font-size:13px;font-family:Montserrat,sans-serif;text-decoration:none}
.hw-footer .links a:hover{color:#15b3e2}
@media (max-width:1000px){
  .hw-footer .head .site-width{grid-template-columns:1fr 1fr;gap:28px}
  .hw-foot-brand{grid-column:1/-1}
}
@media (max-width:600px){
  .hw-footer .head .site-width{grid-template-columns:1fr}
  .hw-footer .bottom .site-width{flex-direction:column;text-align:center}
}

/* ===== CTA form (CF7) on home ===== */
.hw-cta-form .wpcf7{max-width:560px;margin:0 auto}
.hw-cta-form .wpcf7-form>p{margin:0 0 16px}
.hw-cta-form label{display:block;color:#fff;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500;line-height:1.4}
.hw-cta-form .wpcf7-form-control-wrap{display:block;margin-top:7px}
.hw-cta-form input.wpcf7-text,
.hw-cta-form input.wpcf7-tel{display:block;width:100%;box-sizing:border-box;padding:14px 18px;border:1px solid rgba(255,255,255,.35);border-radius:12px;background:rgba(255,255,255,.10);color:#fff;font-family:Montserrat,sans-serif;font-size:15px;outline:none;transition:.2s}
.hw-cta-form input.wpcf7-text::placeholder,
.hw-cta-form input.wpcf7-tel::placeholder{color:rgba(255,255,255,.6)}
.hw-cta-form input.wpcf7-text:focus,
.hw-cta-form input.wpcf7-tel:focus{border-color:#fff;background:rgba(255,255,255,.18)}
.hw-cta-form .wpcf7-submit{display:block;width:100%;margin-top:6px;padding:15px 24px;border:none;border-radius:200px;background:#000417;color:#fff;font-family:Unbounded,sans-serif;font-weight:400;font-size:15px;cursor:pointer;transition:.25s}
.hw-cta-form .wpcf7-submit:hover{background:#0a1233;transform:translateY(-1px)}
.hw-cta-form .wpcf7-acceptance{display:block;margin-top:14px}
.hw-cta-form .wpcf7-list-item{margin:0}
.hw-cta-form .wpcf7-acceptance label{display:flex;align-items:flex-start;gap:9px;color:rgba(255,255,255,.85);font-size:12.5px;font-weight:400;line-height:1.45;cursor:pointer}
.hw-cta-form .wpcf7-acceptance input[type=checkbox]{flex-shrink:0;margin-top:2px;width:16px;height:16px;accent-color:#fff;cursor:pointer}
.hw-cta-form .wpcf7-acceptance a{color:#fff;text-decoration:underline}
.hw-cta-form .wpcf7-response-output{color:#fff;border-radius:10px;margin:14px 0 0;font-family:Montserrat,sans-serif;font-size:13.5px}
.hw-cta-form .wpcf7-not-valid-tip{color:#ffd9d9;font-size:12.5px;margin-top:5px}
.hw-cta-form .wpcf7-spinner{margin:14px auto 0;display:block}

/* submit button — override parent theme specificity */
.hw-cta-form input[type=submit].wpcf7-submit{display:block !important;width:100% !important;margin-top:6px !important;padding:15px 24px !important;border:none !important;border-radius:200px !important;background:#000417 !important;color:#fff !important;font-family:Unbounded,sans-serif !important;font-weight:400 !important;font-size:15px !important;line-height:1.2 !important;cursor:pointer !important;box-shadow:none !important;text-transform:none !important;transition:.25s}
.hw-cta-form input[type=submit].wpcf7-submit:hover{background:#0a1233 !important;transform:translateY(-1px)}

/* actual submit is a <button> without class — target it directly */
.hw-cta-form form button[type=submit]{-webkit-appearance:none !important;appearance:none !important;display:block !important;width:100% !important;margin-top:6px !important;padding:15px 24px !important;border:none !important;border-radius:200px !important;background:#000417 !important;color:#fff !important;font-family:Unbounded,sans-serif !important;font-weight:400 !important;font-size:15px !important;line-height:1.2 !important;cursor:pointer !important;box-shadow:none !important;text-transform:none !important;transition:.25s}
.hw-cta-form form button[type=submit]:hover{background:#0a1233 !important;transform:translateY(-1px)}

/* footer text contrast — parent theme forces dark link color on dark bg */
.hw-footer .head a,
.hw-footer .hw-foot-col a{color:#c3cbe0 !important}
.hw-footer .head a:hover,
.hw-footer .hw-foot-col a:hover{color:#15b3e2 !important}
.hw-footer .hw-foot-about{color:#9aa4c2 !important}
.hw-footer .hw-foot-contacts .info,
.hw-footer .hw-foot-contacts .info *{color:#c3cbe0 !important}
.hw-footer .hw-foot-contacts a{color:#c3cbe0 !important}
.hw-footer h4{color:#ffffff !important}
.hw-footer .copyright,
.hw-footer .bottom a{color:#8c95b3 !important}
.hw-footer .bottom a:hover{color:#15b3e2 !important}

/* HW: карточки товаров на категорийных страницах продукции */
.hw-products{padding:50px 0 30px}
.hw-products-title{font-family:Unbounded,sans-serif;font-size:28px;color:#0b1430;margin:0 0 26px}
.hw-products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:26px}
.hw-pcard{display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9f2;border-radius:18px;overflow:hidden;transition:.25s}
.hw-pcard:hover{box-shadow:0 14px 40px rgba(11,20,48,.12);transform:translateY(-3px)}
.hw-pcard-img{display:block;aspect-ratio:4/3;overflow:hidden;background:#f3f5fb}
.hw-pcard-img img{width:100%;height:100%;object-fit:cover;display:block}
.hw-pcard-body{display:flex;flex-direction:column;gap:12px;padding:20px 22px 24px;flex:1}
.hw-pcard-title{font-family:Unbounded,sans-serif;font-size:18px;line-height:1.3;color:#0b1430;text-decoration:none}
.hw-pcard-title:hover{color:#056fe1}
.hw-pcard-desc{font-family:Montserrat,sans-serif;font-size:14px;line-height:1.55;color:#5a627d;margin:0;flex:1}
.hw-pcard-btn{align-self:flex-start;margin-top:6px;background:#056fe1;color:#fff;font-family:Unbounded,sans-serif;font-size:13px;padding:11px 26px;border-radius:200px;text-decoration:none;transition:.25s}
.hw-pcard-btn:hover{background:#0a5bc0}
@media(max-width:600px){.hw-products-grid{grid-template-columns:1fr}.hw-products-title{font-size:22px}}

/* HW: фирменное оформление контента товаров (труба/книга и др. — the_content в .section-16) */
.section-16{padding:30px 0 10px}
.section-16 .site-width{max-width:1100px}
.section-16 h2,.section-16 .wp-block-heading{font-family:Unbounded,sans-serif;font-size:26px;line-height:1.25;color:#0b1430;margin:42px 0 18px;padding-bottom:14px;border-bottom:2px solid #eef1f8}
.section-16 h2:first-child,.section-16 .wp-block-heading:first-child{margin-top:8px}
.section-16 p{font-family:Montserrat,sans-serif;font-size:16px;line-height:1.7;color:#3a425c;margin:0 0 16px}
.section-16 ul{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:12px}
.section-16 ul li{position:relative;padding-left:34px;font-family:Montserrat,sans-serif;font-size:15.5px;line-height:1.55;color:#3a425c}
.section-16 ul li::before{content:"";position:absolute;left:0;top:2px;width:20px;height:20px;border-radius:50%;background:#056fe1;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat}
.section-16 .wp-block-table{margin:0 0 26px;overflow-x:auto}
.section-16 table{width:100%;border-collapse:collapse;font-family:Montserrat,sans-serif;font-size:15px;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 6px 24px rgba(11,20,48,.06)}
.section-16 table thead th{background:#0b1430;color:#fff;font-family:Unbounded,sans-serif;font-weight:400;font-size:14px;text-align:left;padding:14px 18px}
.section-16 table td{padding:12px 18px;border-bottom:1px solid #eef1f8;color:#3a425c;vertical-align:top}
.section-16 table td:first-child{font-weight:600;color:#0b1430;width:42%}
.section-16 table tr:last-child td{border-bottom:none}
.section-16 table tr:nth-child(even) td{background:#f8faff}
.section-16 .wp-block-video{margin:0 0 22px}
.section-16 .wp-block-video video{width:100%;border-radius:14px;display:block}
/* блок цены */
.hw-price-block{background:linear-gradient(135deg,#0b1430,#1a2550);border-radius:16px;padding:30px 28px;margin:24px 0 30px;text-align:center;color:#fff}
.hw-price-label{font-family:Montserrat,sans-serif;font-size:14px;color:#aab4d4;margin-bottom:8px}
.hw-price-rub{font-family:Unbounded,sans-serif;font-size:34px;font-weight:500;color:#fff;line-height:1.1}
.hw-price-usd{font-family:Montserrat,sans-serif;font-size:14px;color:#cdd5ec;margin-top:8px}
.hw-price-rate{font-family:Montserrat,sans-serif;font-size:12.5px;color:#8c97bd;margin-top:6px}

/* HW: cookie-баннер — светлый, чтобы не сливался с тёмным фоном сайта */
#cookie-banner{background:#fff!important;backdrop-filter:none!important;border-top:3px solid #056fe1!important;box-shadow:0 -8px 40px rgba(11,20,48,.35)!important;padding:18px 24px!important}
#cookie-banner>div{padding-right:80px!important}
#cookie-banner span{color:#0b1430!important}
#cookie-banner a{color:#056fe1!important}
#cookie-banner button{background:#056fe1!important;color:#fff!important;box-shadow:0 4px 16px rgba(5,111,225,.45)!important;transition:.2s}
#cookie-banner button:hover{background:#0a5bc0!important;transform:translateY(-1px)}
@media(max-width:600px){#cookie-banner>div{padding-right:0!important}#cookie-banner button{width:100%}}

/* ===== HW PRODUCT GROUPS (вариант C) — страница Продукция ===== */
.hw-pg-wrap{padding:46px 0}
.hw-pg-row{display:flex;align-items:stretch;gap:0;background:#fff;border-radius:16px;overflow:hidden;
  margin-bottom:20px;box-shadow:0 6px 20px rgba(11,20,48,.07);
  transition:box-shadow .2s,transform .2s;text-decoration:none;color:inherit}
.hw-pg-row:hover{box-shadow:0 14px 34px rgba(11,20,48,.14);transform:translateY(-3px)}
.hw-pg-thumb{width:230px;flex-shrink:0;background:linear-gradient(160deg,#1a264f,#0b1430);
  position:relative;overflow:hidden;align-self:stretch;min-height:200px}
.hw-pg-thumb .hw-pg-img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;display:block!important}
.hw-pg-glow{position:absolute;inset:0;background:radial-gradient(circle at 55% 40%,rgba(90,150,255,.6),transparent 62%)}
.hw-pg-c28 .hw-pg-glow{background:radial-gradient(circle at 55% 40%,rgba(60,210,200,.55),transparent 62%)}
.hw-pg-c29 .hw-pg-glow{background:radial-gradient(circle at 55% 40%,rgba(180,110,255,.55),transparent 62%)}
.hw-pg-c30 .hw-pg-glow{background:radial-gradient(circle at 55% 40%,rgba(255,170,80,.5),transparent 62%)}
.hw-pg-body{padding:24px 28px;display:flex;flex-direction:column;justify-content:center;flex:1}
.hw-pg-cnt{font-size:12px;font-weight:600;color:#2547d0;margin-bottom:8px}
.hw-pg-title{font-family:Unbounded,sans-serif;font-size:21px;font-weight:600;margin:0 0 8px;color:#0b1430}
.hw-pg-desc{font-size:14px;color:#667;line-height:1.55;margin:0 0 16px;max-width:560px}
.hw-pg-btn{align-self:flex-start;font-weight:600;font-size:14px;color:#fff;background:#0b1430;
  padding:11px 22px;border-radius:30px;display:inline-block}
.hw-pg-row:hover .hw-pg-btn{background:#2547d0}
@media(max-width:680px){.hw-pg-row{flex-direction:column}.hw-pg-thumb{width:100%;height:160px}}

/* ===== Архив категории product_cat ===== */
.hw-cat-arch{padding:46px 0}
.hw-cat-crumb{font-size:13px;color:#7a85a3;margin-bottom:16px}
.hw-cat-crumb a{color:#7a85a3;text-decoration:none}
.hw-cat-crumb a:hover{color:#2547d0}
.hw-cat-title{font-family:Unbounded,sans-serif;font-size:32px;font-weight:700;color:#0b1430;margin:0 0 10px}
.hw-cat-desc{font-size:16px;color:#667;line-height:1.55;max-width:680px;margin:0 0 30px}
.hw-cat-empty{font-size:16px;color:#667;padding:30px 0}
.hw-cat-back{margin-top:30px}
.hw-cat-back a{font-weight:600;color:#2547d0;text-decoration:none}

/* === page Продукция (243): отступы, шрифты === */
body.page-id-243 .wrapper { padding-top: 30px; }
.page-id-243 .speedbar { margin-bottom: 17px; }
.page-id-243 h1 { font-size: 28px; }

/* ==== блок продукции — CSS из пака (1:1 образец) ==== */
.hw-products {
  --hw-text: #050b22;
  --hw-muted: #3f4a64;
  --hw-blue: #2f66ff;
  --hw-border: #e7ebf3;
  --hw-card-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);

  padding: 72px 0 84px;
  background: #fff;
  color: var(--hw-text);
  font-family: inherit;
}

.hw-products__head {
  max-width: 960px;
  margin: 0 auto 54px;
  padding: 0 24px;
  text-align: center;
}

.hw-products__head h2 {
  margin: 0 0 14px;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hw-products__head p {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.45;
  color: var(--hw-muted);
}

.hw-products__grid {
  width: min(1800px, calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.hw-product-card {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 297px;
  overflow: hidden;
  border: 1px solid var(--hw-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--hw-card-shadow);
}

.hw-product-card__media {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #3f8fff 0, #06142f 56%, #020716 100%);
}

.hw-product-card__media img {
  width: 100%;
  height: 100%;
  min-height: 297px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.hw-product-card:hover .hw-product-card__media img {
  transform: scale(1.035);
}

.hw-product-card__body {
  display: flex;
  flex-direction: column;
  padding: 36px 27px 29px;
}

.hw-product-card__body h3 {
  margin: 0 0 20px;
  font-size: clamp(13px, 0.65vw, 15px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hw-product-card__body p {
  margin: 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--hw-muted);
}

.hw-product-card__link {
  margin-top: auto;
  padding-top: 24px;
  width: max-content;
  color: var(--hw-blue);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none;
}

.hw-product-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1439px) {
  .hw-products__grid {
    width: min(1180px, calc(100% - 48px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hw-products {
    padding: 48px 0 56px;
  }

  .hw-products__head {
    margin-bottom: 34px;
  }

  .hw-products__grid {
    width: min(100% - 28px, 520px);
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hw-product-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hw-product-card__media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .hw-product-card__media img {
    min-height: 0 !important;
    height: 100% !important;
    aspect-ratio: auto;
  }

  .hw-product-card__body {
    padding: 28px 26px 30px;
  }

  .hw-product-card__body h3 {
    margin-bottom: 16px;
  }

  .hw-product-card__body p,
  .hw-product-card__link {
    font-size: 16px;
  }
}


/* =========================================================
   HOLOWORKS — ЕДИНАЯ ТИПОГРАФИЧЕСКАЯ ШКАЛА (modular 1.25)
   Только размеры/веса/line-height. Шрифт, сетку, цвета не трогаем.
   Внедрено 20260611-134416. Бэкап: style.css.bak-typo-20260611-134416
   ========================================================= */
:root{
  --fs-h1:    clamp(1.6875rem, 0.95rem + 2.4vw, 2.4375rem);
  --fs-h2:    clamp(1.4375rem, 0.95rem + 1.65vw, 1.875rem);
  --fs-h3:    clamp(1rem, 0.88rem + 0.5vw, 1.125rem);
  --fs-h4:    1rem;
  --fs-lead:  clamp(0.9375rem, 0.90rem + 0.25vw, 1rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.8125rem;
  --fw-heading: 600;
  --fw-medium:  500;
  --fw-body:    400;
  --lh-display: 1.1;
  --lh-heading: 1.15;
  --lh-h3:      1.3;
  --lh-lead:    1.5;
  --lh-body:    1.6;
  --lh-ui:      1.3;
}
.hw-home-hero h1{
  font-size: var(--fs-h1) !important;
  font-weight: var(--fw-heading) !important;
  line-height: var(--lh-display) !important;
}
.hw-products__head h2,
.hw-sec-title,
.hw-apply h2,
.hw-home-cta h2,
.section-16 h2{
  font-size: var(--fs-h2) !important;
  font-weight: var(--fw-heading) !important;
  line-height: var(--lh-heading) !important;
}
.hw-product-card__body h3,
.hw-card h3,
.hw-apply h3{
  font-size: var(--fs-h3) !important;
  font-weight: var(--fw-heading) !important;
  line-height: var(--lh-h3) !important;
}
.hw-foot-col h4{
  font-size: var(--fs-h4) !important;
  font-weight: var(--fw-medium) !important;
  line-height: var(--lh-ui) !important;
}
.hw-hero-sub,
.hw-sec-lead,
.hw-products__head p{
  font-size: var(--fs-lead) !important;
  font-weight: var(--fw-body) !important;
  line-height: var(--lh-lead) !important;
}
.hw-card p,
.hw-apply p,
.hw-product-card__body p{
  font-size: var(--fs-body) !important;
  font-weight: var(--fw-body) !important;
  line-height: var(--lh-body) !important;
}
.hw-foot-about,
.hw-foot-col a{
  font-size: var(--fs-small) !important;
  font-weight: var(--fw-body) !important;
  line-height: var(--lh-lead) !important;
}
.hw-nav > li > a{
  font-size: var(--fs-small) !important;
  font-weight: var(--fw-medium) !important;
  line-height: var(--lh-ui) !important;
}
.hw-cta-form label{
  font-size: var(--fs-small) !important;
  font-weight: var(--fw-medium) !important;
}
.hw-hero-tags span{
  font-size: var(--fs-micro) !important;
  font-weight: var(--fw-medium) !important;
  line-height: var(--lh-ui) !important;
}
.hw-btn-primary,
.hw-btn-ghost{
  font-size: var(--fs-body) !important;
  font-weight: var(--fw-medium) !important;
  line-height: var(--lh-ui) !important;
}
.hw-cta{
  font-size: var(--fs-small) !important;
  font-weight: var(--fw-medium) !important;
  line-height: var(--lh-ui) !important;
}
.hw-head-phone,
.hw-foot-contacts .phone{
  font-size: var(--fs-lead) !important;
  font-weight: var(--fw-medium) !important;
  line-height: var(--lh-ui) !important;
}
/* выравнивание высоты заголовков карточек продукции:
   3 строки заголовка резервируем, чтобы описания стартовали ровно */
.hw-product-card__body h3{
  min-height: calc(var(--fs-h3) * var(--lh-h3) * 2);  /* авто-подстройка под новый размер */
  margin-bottom: 8px;
}

/* H3 карточек: корректный перенос длинных названий в узкой колонке */
.hw-product-card__body h3{
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ===== HW: блок "Модели в категории" (вид из утверждённого мокапа) ===== */
.hw-cat-models{padding:34px 0 30px;background:#fff}
.hw-cat-models .hw-products-title{font-family:Unbounded,Montserrat,sans-serif;font-weight:600;font-size:23px;color:#0b1430;margin:0 0 22px}
.hw-cat-models .hw-products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.hw-cat-models .hw-pcard{display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9f2;border-radius:18px;overflow:hidden;transition:.25s}
.hw-cat-models .hw-pcard:hover{box-shadow:0 14px 40px rgba(11,20,48,.12);transform:translateY(-3px)}
.hw-cat-models .hw-pcard-img{display:block;aspect-ratio:4/3;overflow:hidden;background:radial-gradient(circle at 50% 45%,#3f8fff 0,#06142f 56%,#020716 100%)}
.hw-cat-models .hw-pcard-img img{width:100%!important;height:100%!important;object-fit:contain!important;display:block;padding:16px}
.hw-cat-models .hw-pcard-body{display:flex;flex-direction:column;gap:11px;padding:18px 20px 22px;flex:1}
.hw-cat-models .hw-pcard-title{font-family:Unbounded,Montserrat,sans-serif;font-weight:600;font-size:17px!important;line-height:1.3!important;color:#0b1430;text-decoration:none}
.hw-cat-models .hw-pcard-title:hover{color:#056fe1}
.hw-cat-models .hw-pcard-desc{font-size:13.5px;line-height:1.5;color:#5a627d;margin:0;flex:1}
.hw-cat-models .hw-pcard-price{font-family:Unbounded,Montserrat,sans-serif;font-weight:600;color:#0b1430}
.hw-cat-models .hw-pcard-btn{align-self:flex-start;margin-top:6px;background:#056fe1;color:#fff;font-family:Unbounded,Montserrat,sans-serif;font-weight:500;font-size:13px;padding:10px 24px;border-radius:200px;text-decoration:none}
.hw-cat-models .hw-pcard-btn:hover{background:#0a5bc0}
@media(max-width:1100px){.hw-cat-models .hw-products-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.hw-cat-models .hw-products-grid{grid-template-columns:1fr}}

/* HW fix: фото обложек продукции всегда заполняют медиа-блок (перекрывают тёмный фон) */
.hw-product-card__media{aspect-ratio:4/3}
.hw-product-card__media img{width:100%!important;height:100%!important;object-fit:cover;object-position:center}
@media(max-width:767px){.hw-product-card__media img{min-height:0!important}}


/* ===== SEO H1 hero (page-golokub: контент собран из секций home без H1) ===== */
.hw-h1-hero{padding:130px 0 0 0}
@media screen and (max-width:780px){.hw-h1-hero{padding:110px 0 0 0}}
.hw-h1-hero .hw-h1{color:var(--blue-dark,#000417);font-family:Unbounded,sans-serif;font-size:40px;font-weight:400;line-height:120%;margin:0}
@media screen and (max-width:780px){.hw-h1-hero .hw-h1{font-size:26px}}

/* ============================================================
   FIX продуктовых карточек на главной — ВЕРТИКАЛЬНЫЕ, ОДИН РЯД (как маскот)
   Единственный источник правды, переопределяет все патчи выше.
   ============================================================ */
.hw-products__grid{
  width:min(1280px,calc(100% - 64px));
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
}
.hw-product-card{
  display:flex !important;
  flex-direction:column !important;
  grid-template-columns:none !important;
  min-height:0 !important;
  overflow:hidden;
  border:1px solid #e7ebf3;
  border-radius:20px;
  background:#fff;
  box-shadow:0 14px 38px rgba(15,23,42,.07);
  transition:transform .3s ease, box-shadow .3s ease;
}
.hw-product-card:hover{transform:translateY(-6px);box-shadow:0 22px 52px rgba(15,23,42,.13)}
/* фото сверху — единый формат, фирменный фон */
.hw-product-card__media{
  position:relative;display:block;width:100% !important;
  aspect-ratio:4/3 !important;min-height:0 !important;height:auto !important;
  overflow:hidden;
  background:linear-gradient(135deg,#06142f 0%,#0a1f4a 55%,#020716 100%) !important;
}
.hw-product-card__media img{
  width:100% !important;height:100% !important;min-height:0 !important;
  object-fit:cover !important;object-position:center !important;
  transition:transform .4s ease;
}
.hw-product-card:hover .hw-product-card__media img{transform:scale(1.05)}
/* единая холодная тональность поверх разнородных фонов */
/* вуаль ::after удалена — затемняла картинки */

/* текст снизу */
.hw-product-card__body{
  display:flex;flex-direction:column;flex:1;
  padding:24px 24px 26px;
}
.hw-product-card__body h3{
  margin:0 0 10px !important;
  font-size:18px !important;line-height:1.28 !important;font-weight:600 !important;
  letter-spacing:-.01em;color:#050b22 !important;
  min-height:0 !important;overflow-wrap:break-word;hyphens:none;
}
.hw-product-card__body p{
  margin:0 !important;max-width:none !important;
  font-size:14.5px !important;line-height:1.5 !important;color:#3f4a64 !important;
}
.hw-product-card__link{
  margin-top:auto;padding-top:18px;width:max-content;
  color:#2f66ff !important;font-size:14.5px;font-weight:500;text-decoration:none;
}
.hw-product-card__link:hover{text-decoration:underline;text-underline-offset:4px}

/* планшет: 2 в ряд */
@media screen and (max-width:1000px){
  .hw-products__grid{width:min(720px,calc(100% - 40px));grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
/* телефон: 1 в ряд */
@media screen and (max-width:560px){
  .hw-products__grid{width:min(100% - 28px,440px);grid-template-columns:1fr;gap:18px}
  .hw-product-card__media{aspect-ratio:16/10 !important}
}
/* === Фикс галереи товаров: одинаковый размер всех фото === */
  aspect-ratio: 4/3;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f5f5;
}
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* === Фикс галереи товаров: единый размер контейнера === */
  height: 460px !important;
  display: flex !important;
  align-items: center !important;
}
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  overflow: hidden;
}
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === Галерея товара: единый размер === */
.section-15 .big,
.section-15 .big .slick-list,
.section-15 .big .slick-track {
  height: 460px !important;
}
.section-15 .big .slick-slide > div {
  height: 100%;
}
.section-15 .big .slick-slide .slide {
  height: 100%;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  overflow: hidden;
}
.section-15 .big .slick-slide .slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* центрирование по вертикали */
.section-15 .big {
  display: flex;
  align-items: center;
}

/* Fix: WP block editor color classes — CSS vars not loaded by theme */
.has-black-background-color { background-color: #000 !important; }
.has-white-background-color { background-color: #fff !important; }
.has-black-color { color: #000 !important; }
.has-white-color { color: #fff !important; }

/* Fix: columns background full-width strip — inherit the corrected bg */
.wp-block-columns.has-background::before,
.wp-block-media-text.has-background::before {
    background-color: inherit;
}

/* === Gutenberg block layout fixes (wp-block-library not loaded by theme) === */

/* Columns */
.wp-block-columns {
    display: flex !important;
    gap: 2em;
    flex-wrap: wrap !important;
    box-sizing: border-box;
}
.wp-block-column {
    flex-grow: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
@media (max-width: 781px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* Flex layout (used by columns natively) */
.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
}
.is-layout-flow > * + * {
    margin-block-start: 1.5rem;
    margin-block-end: 0;
}

/* Video block */
.wp-block-video video {
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

/* Image block alignment */
.wp-block-image.aligncenter {
    text-align: center;
}
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.wp-block-buttons {
    display: flex;
    gap: .5em;
    flex-wrap: wrap;
}
.wp-block-button__link {
    display: inline-block;
    padding: .75em 1.5em;
    border-radius: 4px;
    text-decoration: none;
}

/* Spacer */
.wp-block-spacer {
    clear: both;
}

/* Separator */
.wp-block-separator {
    border: none;
    border-bottom: 2px solid;
    margin: 2em auto;
    opacity: .25;
}


/* Fix: empty spacer columns take no width in columns block */
.wp-block-columns > .wp-block-column:empty {
    flex: 0 0 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

/* Fix: columns share width equally (not content-sized) */
.wp-block-columns.is-layout-flex {
    flex-wrap: nowrap !important;
}
.wp-block-columns.is-layout-flex > .wp-block-column {
    flex: 1 1 0 !important;
    min-width: 0;
}
/* Mobile: stack columns */
@media (max-width: 781px) {
    .wp-block-columns.is-layout-flex {
        flex-wrap: wrap !important;
    }
    .wp-block-columns.is-layout-flex > .wp-block-column {
        flex: 1 1 100% !important;
    }
}

/* Media & Text block */
.wp-block-media-text {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: center;
}
.wp-block-media-text .wp-block-media-text__media {
    grid-column: 1;
}
.wp-block-media-text .wp-block-media-text__content {
    grid-column: 2;
}
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
    grid-column: 2;
}
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    grid-column: 1;
}
.wp-block-media-text__media img,
.wp-block-media-text__media video {
    max-width: 100%;
    height: auto;
}


/* Override: exclude empty columns from flex distribution */
.wp-block-columns.is-layout-flex > .wp-block-column:not(:empty) {
    flex: 1 1 0 !important;
    min-width: 0;
}
/* Empty columns must stay collapsed regardless */
.wp-block-columns > .wp-block-column:empty,
.wp-block-columns.is-layout-flex > .wp-block-column:empty {
    flex: 0 0 0 !important;
    min-width: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border: none !important;
}

/* ============================================================
 * HW: Гутенберг-галерея (wp-block-gallery has-nested-images).
 * Тема не подключает wp-block-library, поэтому core-правила
 * сетки/кропа отсутствуют — картинки падали в полный размер.
 * Адаптация правил WP 7.0.3 block-library/style.css.
 * ============================================================ */
.wp-block-gallery.has-nested-images{align-items:flex-start;display:flex;flex-wrap:wrap;gap:16px}
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){margin:0;width:calc(50% - 8px)}
.wp-block-gallery.has-nested-images figure.wp-block-image{box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;max-width:100%;position:relative}
.wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;height:auto;max-width:100%!important;width:auto}
.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){width:100%}
.wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image:not(#individual-image){width:calc(50% - 8px)}
.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){width:calc(25% - 12px)}
.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){width:calc(20% - 12.8px)}
.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){width:calc(16.66667% - 13.33333px)}
.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){width:calc(14.28571% - 13.71429px)}
.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){width:calc(12.5% - 14px)}
.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image),
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(33.33333% - 10.66667px)}
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a,
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone){display:flex}
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{flex:1 0 0%;height:100%;object-fit:cover;width:100%}
@media (max-width:600px){
  .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image),
  .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(50% - 8px)}
}
