/*
Theme Name: vibro
Theme URI: https://vibro.kz/
Description: Тема интернет-магазина vibro.kz. Палитра «графит + шампань», карточки с полнокадровым фото. Без конструктора: WooCommerce и нативные шаблоны.
Author: Разработка для vibro.kz
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: vibro
Tags: woocommerce, dark, e-commerce
*/

/* vibro.kz — прототип редизайна. Палитра A: графит + шампань */

:root{
  --bg:#15161A;
  --surface:#1C1E23;
  --surface2:#232630;
  --tile:#F4F2EE;
  --text:#F2F0EC;
  --muted:#8A8781;
  --accent:#C9A66B;
  --accent-2:#DCC08C;
  --ink:#15161A;
  --line:rgba(242,240,236,.10);
  --ok:#6FBF8B;
  --radius:14px;
  --maxw:1280px;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  background:var(--bg);color:var(--text);
  font-family:'Onest','Golos Text','Segoe UI',system-ui,sans-serif;
  font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px}

/* ---------- шапка ---------- */
.topbar{background:#101115;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:38px}
.topbar b{color:var(--text);font-weight:500}
.hdr{position:sticky;top:0;z-index:50;background:rgba(21,22,26,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.hdr .wrap{display:flex;align-items:center;gap:28px;height:74px}
.logo{font-weight:800;font-size:27px;letter-spacing:-.5px;white-space:nowrap}
.logo span{color:var(--accent);font-weight:500}
.search{flex:1;display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:0 14px;height:44px;gap:10px}
.search input{flex:1;background:none;border:0;color:var(--text);font:inherit;font-size:15px;outline:none}
.search input::placeholder{color:var(--muted)}
.hdr-act{display:flex;align-items:center;gap:22px;font-size:14px;white-space:nowrap}
.hdr-act .phone{font-weight:600;font-size:16px}
.hdr-act .wa{color:var(--ok)}
.cart{display:flex;align-items:center;gap:8px;font-weight:600}
.cart .badge{background:var(--accent);color:var(--ink);border-radius:20px;font-size:12px;font-weight:700;padding:1px 7px}
.nav{border-bottom:1px solid var(--line);background:#131419}
.nav .wrap{display:flex;gap:26px;height:50px;align-items:center;font-size:14.5px;overflow-x:auto}
.nav a{color:#C9C6C0;white-space:nowrap;padding:4px 0;border-bottom:2px solid transparent}
.nav a:hover,.nav a.on{color:var(--text);border-color:var(--accent)}

/* ---------- герой ---------- */
.hero{padding:56px 0 44px;border-bottom:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.hero h1{font-size:52px;line-height:1.06;font-weight:700;letter-spacing:-1.2px;margin-bottom:20px}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero p.lead{font-size:18px;color:#C9C6C0;max-width:520px;margin-bottom:30px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:54px;padding:0 30px;border-radius:10px;font-weight:600;font-size:16px;border:0;cursor:pointer}
.btn-a{background:var(--accent);color:var(--ink)}
.btn-a:hover{background:var(--accent-2)}
.btn-o{border:1px solid rgba(242,240,236,.28);color:var(--text);background:none}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.guar{display:grid;gap:14px}
.guar-i{display:flex;gap:15px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:19px 22px}
.guar-i .ic{width:38px;height:38px;flex:none;border-radius:9px;background:rgba(201,166,107,.13);color:var(--accent);display:grid;place-items:center;font-size:18px}
.guar-i b{display:block;font-size:16px;font-weight:600;margin-bottom:3px}
.guar-i span{color:var(--muted);font-size:14px;line-height:1.45}

/* ---------- секции ---------- */
.sec{padding:52px 0}
.sec-h{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:26px;gap:20px}
.sec-h h2{font-size:30px;font-weight:700;letter-spacing:-.6px}
.sec-h a{color:var(--accent);font-size:15px}

/* плитки категорий */
.cats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.cat{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--surface);border:1px solid var(--line);aspect-ratio:16/10;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:18px}
.cat .ph{position:absolute;inset:0;background:linear-gradient(135deg,#242832,#1a1c22)}
.cat b{position:relative;font-size:17px;font-weight:600;display:block;width:100%}
.cat i{position:relative;display:block;font-style:normal;color:var(--muted);font-size:13px;margin-top:2px}

/* карточка товара */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:.15s}
.card:hover{border-color:rgba(201,166,107,.4);transform:translateY(-2px)}
.card .tile{background:#0F1013;aspect-ratio:1/1;display:grid;place-items:center;padding:0;position:relative;overflow:hidden;min-height:0}
.card .tile img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
.card .tag{position:absolute;top:10px;left:10px;background:var(--accent);color:var(--ink);font-size:11px;font-weight:700;letter-spacing:.3px;padding:3px 9px;border-radius:20px;text-transform:uppercase}
.card .body{padding:15px 16px 17px;display:flex;flex-direction:column;gap:10px;flex:1}
.card .nm{font-size:14.5px;line-height:1.35;min-height:39px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#DEDBD5}
.card .st{font-size:12.5px;color:var(--ok);display:flex;align-items:center;gap:6px}
.card .st::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--ok)}
.card .row{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px}
.card .pr{font-size:20px;font-weight:700;letter-spacing:-.4px}
.card .add{height:40px;padding:0 15px;border-radius:9px;background:var(--accent);color:var(--ink);font-weight:600;font-size:14px;border:0;cursor:pointer;white-space:nowrap}

/* полоса доверия */
.trust{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.trust .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;padding:34px 28px}
.trust div b{display:block;font-size:16px;font-weight:600;margin-bottom:4px}
.trust div span{color:var(--muted);font-size:14px}

/* блог */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.post{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.post .ph{aspect-ratio:16/9;background:linear-gradient(135deg,#262a34,#1b1d23)}
.post .b{padding:17px 19px 20px}
.post h3{font-size:16px;font-weight:600;line-height:1.35;margin-bottom:8px}
.post p{color:var(--muted);font-size:14px;line-height:1.5}
.post time{display:block;margin-top:11px;color:#6E6B66;font-size:12.5px}

/* seo-текст */
.seo{color:#A9A69F;font-size:15px;line-height:1.7;max-width:900px}
.seo h2{font-size:24px;color:var(--text);margin-bottom:14px;font-weight:600}
.seo p{margin-bottom:12px}

/* подвал */
.ft{background:#101115;border-top:1px solid var(--line);padding:46px 0 26px;margin-top:10px}
.ft-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:36px}
.ft h4{font-size:14px;font-weight:600;margin-bottom:13px;letter-spacing:.2px}
.ft a,.ft p{display:block;color:var(--muted);font-size:14px;margin-bottom:8px}
.ft .age{margin-top:30px;padding-top:20px;border-top:1px solid var(--line);color:#6E6B66;font-size:12.5px;display:flex;justify-content:space-between;gap:20px}
.ft .age b{color:var(--accent);font-weight:600}

/* ---------- каталог ---------- */
.crumbs{color:var(--muted);font-size:13.5px;padding:20px 0}
.crumbs a:hover{color:var(--text)}
.cat-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:8px}
.cat-head h1{font-size:38px;font-weight:700;letter-spacing:-1px}
.cat-head .cnt{color:var(--muted);font-size:14px}
.cat-lead{color:#A9A69F;font-size:15.5px;max-width:760px;margin:10px 0 26px}
.layout{display:grid;grid-template-columns:250px 1fr;gap:30px;align-items:start}
.filters{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;position:sticky;top:96px}
.fgrp{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.fgrp:last-child{border:0;margin:0;padding:0}
.fgrp h4{font-size:14px;font-weight:600;margin-bottom:12px}
.fopt{display:flex;align-items:center;gap:9px;color:#BDBAB4;font-size:14px;margin-bottom:9px}
.box{width:16px;height:16px;border:1px solid rgba(242,240,236,.28);border-radius:4px;flex:none}
.box.on{background:var(--accent);border-color:var(--accent)}
.fopt em{margin-left:auto;color:#6E6B66;font-style:normal;font-size:12.5px}
.prange{display:flex;gap:8px}
.prange input{width:100%;background:var(--bg);border:1px solid var(--line);border-radius:8px;height:38px;color:var(--text);font:inherit;font-size:14px;padding:0 10px}
.sortbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:16px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{background:var(--surface2);border:1px solid var(--line);border-radius:20px;padding:6px 13px;font-size:13px;color:#C9C6C0}
.chip.on{background:rgba(201,166,107,.14);border-color:rgba(201,166,107,.45);color:var(--accent)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.pager{display:flex;gap:8px;justify-content:center;margin-top:34px}
.pager a{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;color:#C9C6C0;font-size:14.5px}
.pager a.on{background:var(--accent);color:var(--ink);border-color:var(--accent);font-weight:600}

/* ---------- карточка товара ---------- */
.pdp{display:grid;grid-template-columns:1.05fr .95fr;gap:44px;padding:8px 0 20px}
.gal{display:grid;grid-template-columns:78px 1fr;gap:14px}
.thumbs{display:grid;gap:10px;align-content:start}
.thumb{background:#0F1013;border-radius:10px;aspect-ratio:1/1;display:grid;place-items:center;padding:7px;border:2px solid transparent;overflow:hidden;min-height:0}
.thumb.on{border-color:var(--accent)}
.thumb img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
.main-img{background:#0F1013;border-radius:var(--radius);display:grid;place-items:center;padding:0;aspect-ratio:1/1;overflow:hidden;min-height:0}
.main-img img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
.pdp h1{font-size:31px;font-weight:700;line-height:1.18;letter-spacing:-.7px;margin-bottom:12px}
.meta{display:flex;gap:16px;align-items:center;color:var(--muted);font-size:13.5px;margin-bottom:20px}
.stars{color:var(--accent);letter-spacing:1px}
.pricebox{display:flex;align-items:baseline;gap:14px;margin-bottom:6px}
.pricebox .p{font-size:38px;font-weight:700;letter-spacing:-1px}
.pricebox .old{color:#6E6B66;text-decoration:line-through;font-size:19px}
.pdp .instock{color:var(--ok);font-size:14px;margin-bottom:22px;display:flex;align-items:center;gap:7px}
.pdp .instock::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--ok)}
.buy{display:flex;gap:12px;margin-bottom:12px}
.buy .btn{flex:1}
.qty{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;height:54px;width:118px;justify-content:space-between;padding:0 14px;font-size:17px;background:var(--surface)}
.wa-btn{width:100%;height:50px;border-radius:10px;border:1px solid rgba(111,191,139,.4);color:var(--ok);background:rgba(111,191,139,.07);display:flex;align-items:center;justify-content:center;gap:9px;font-weight:600;font-size:15px;margin-bottom:24px}
.deliv{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;display:grid;gap:14px;margin-bottom:22px}
.deliv .r{display:flex;gap:13px;align-items:flex-start}
.deliv .r .ic{width:34px;height:34px;flex:none;border-radius:8px;background:rgba(201,166,107,.13);color:var(--accent);display:grid;place-items:center;font-size:16px}
.deliv b{display:block;font-size:14.5px;font-weight:600;margin-bottom:2px}
.deliv span{color:var(--muted);font-size:13.5px;line-height:1.45}
.specs{width:100%;border-collapse:collapse;font-size:14.5px}
.specs td{padding:11px 0;border-bottom:1px solid var(--line);vertical-align:top}
.specs td:first-child{color:var(--muted);width:44%}
.tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin:44px 0 24px}
.tabs div{padding-bottom:13px;font-size:16px;color:var(--muted);border-bottom:2px solid transparent;font-weight:500}
.tabs div.on{color:var(--text);border-color:var(--accent)}
.desc{color:#BDBAB4;font-size:15.5px;line-height:1.7;max-width:820px}
.desc p{margin-bottom:12px}
.rev{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;margin-bottom:14px}
.rev .top{display:flex;justify-content:space-between;margin-bottom:8px}
.rev b{font-weight:600;font-size:15px}
.rev time{color:#6E6B66;font-size:13px}
.rev p{color:#BDBAB4;font-size:14.5px}

/* ---------- age gate ---------- */
.age-gate{position:fixed;inset:0;background:rgba(11,12,15,.94);backdrop-filter:blur(7px);display:grid;place-items:center;z-index:200}
.age-box{max-width:470px;text-align:center;padding:44px 40px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.age-box .logo{font-size:32px;margin-bottom:22px}
.age-box h2{font-size:24px;font-weight:700;margin-bottom:12px;letter-spacing:-.4px}
.age-box p{color:var(--muted);font-size:14.5px;line-height:1.55;margin-bottom:26px}
.age-box .btns{display:flex;gap:12px}
.age-box .btn{flex:1}
.age-box small{display:block;margin-top:18px;color:#5F5C58;font-size:12px;line-height:1.5}

/* ---------- мобильный ---------- */
body.mob{font-size:15px}
.mob .wrap{padding:0 14px}
.mob .hdr .wrap{height:58px;gap:12px}
.mob .logo{font-size:21px}
.mob .hdr-act .phone,.mob .hdr-act .wa,.mob .topbar{display:none}
.mob .nav .wrap{height:44px;gap:18px;font-size:13.5px}
.mob .hero{padding:26px 0 24px}
.mob .hero-grid{grid-template-columns:1fr;gap:26px}
.mob .hero h1{font-size:31px;letter-spacing:-.7px}
.mob .hero p.lead{font-size:15.5px}
.mob .sec{padding:30px 0}
.mob .sec-h h2{font-size:22px}
.mob .cats{grid-template-columns:repeat(2,1fr);gap:11px}
.mob .grid,.mob .grid3{grid-template-columns:repeat(2,1fr);gap:11px}
.mob .card .nm{font-size:13px;min-height:35px}
.mob .card .pr{font-size:17px}
.mob .card .add{height:36px;padding:0 11px;font-size:13px}
.mob .card .body{padding:12px 12px 14px;gap:8px}
.mob .trust .wrap{grid-template-columns:1fr 1fr;gap:18px;padding:24px 14px}
.mob .posts{grid-template-columns:1fr}
.mob .layout{grid-template-columns:1fr}
.mob .filters{position:static}
.mob .pdp{grid-template-columns:1fr;gap:26px}
.mob .gal{grid-template-columns:1fr}
.mob .thumbs{grid-auto-flow:column;grid-template-columns:repeat(4,64px);order:2}
.mob .pdp h1{font-size:23px}
.mob .ft-grid{grid-template-columns:1fr 1fr;gap:22px}
.mob .cat-head h1{font-size:26px}
/* липкая покупка на мобильном */
.buybar{position:fixed;left:0;right:0;bottom:0;background:rgba(21,22,26,.97);border-top:1px solid var(--line);padding:11px 14px;display:flex;gap:11px;align-items:center;z-index:60}
.buybar .p{font-size:20px;font-weight:700;white-space:nowrap}
.buybar .btn{flex:1;height:48px}

/* мобильные фильтры — в кнопку */
.flt-btn{display:none}
.mob .filters{display:none}
.mob .flt-btn{display:inline-flex;align-items:center;gap:7px;background:var(--surface);border:1px solid rgba(201,166,107,.45);color:var(--accent);border-radius:20px;padding:7px 15px;font-size:13.5px;font-weight:600}
.mob .sortbar{flex-direction:column;align-items:stretch;gap:10px}
.mob .chips{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}
.mob .cat-lead{font-size:14.5px}


/* ================= БЛОГ ================= */
.blog-head{padding:34px 0 26px;border-bottom:1px solid var(--line)}
.blog-head h1{font-size:44px;font-weight:700;letter-spacing:-1.2px;margin-bottom:12px}
.blog-head p{color:#A9A69F;font-size:17px;max-width:640px}
.rubrics{display:flex;gap:9px;flex-wrap:wrap;margin:26px 0 30px}

/* большая карточка-подборка */
.feat{display:grid;grid-template-columns:1.15fr .85fr;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:28px}
.feat .ph{background:linear-gradient(135deg,#2a2f3b,#181a20);min-height:330px}
.feat .b{padding:38px 40px;display:flex;flex-direction:column;justify-content:center}
.feat .rub{color:var(--accent);font-size:12.5px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;margin-bottom:12px}
.feat h2{font-size:31px;line-height:1.2;font-weight:700;letter-spacing:-.7px;margin-bottom:14px}
.feat p{color:#A9A69F;font-size:15.5px;line-height:1.6;margin-bottom:20px}
.feat .m{display:flex;gap:16px;color:#6E6B66;font-size:13px}

/* сетка статей */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.bpost{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:.15s}
.bpost:hover{border-color:rgba(201,166,107,.4);transform:translateY(-2px)}
/* Превью статьи — квадрат. Картинки у постов разной ориентации, вертикальные
   растягивали карточку и искажались: внутри .ph не было правил для img. */
.bpost .ph{aspect-ratio:1/1;display:block;overflow:hidden;background:linear-gradient(135deg,#262a34,#1b1d23)}
.bpost .ph img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.bpost:hover .ph img{transform:scale(1.04)}
.bpost .b{padding:20px 21px 22px;display:flex;flex-direction:column;gap:9px;flex:1}
.bpost .rub{color:var(--accent);font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase}
.bpost h3{font-size:17.5px;line-height:1.3;font-weight:600;letter-spacing:-.2px}
.bpost p{color:var(--muted);font-size:14px;line-height:1.55}
.bpost .m{margin-top:auto;padding-top:6px;display:flex;gap:14px;color:#6E6B66;font-size:12.5px}

/* ---------- статья ---------- */
.art{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:46px;align-items:start;padding-bottom:20px}
.art h1{font-size:40px;line-height:1.14;font-weight:700;letter-spacing:-1px;margin-bottom:16px}
.art-meta{display:flex;gap:18px;align-items:center;color:#6E6B66;font-size:13.5px;margin-bottom:26px;flex-wrap:wrap}
.art-meta .rub{color:var(--accent);font-weight:600;text-transform:uppercase;letter-spacing:.5px;font-size:12.5px}
.art-cover{aspect-ratio:16/8;border-radius:var(--radius);background:linear-gradient(135deg,#2a2f3b,#181a20);margin-bottom:30px}
.lead{font-size:19px;line-height:1.6;color:#DEDBD5;margin-bottom:28px;padding-left:18px;border-left:3px solid var(--accent)}
.body{font-size:16.5px;line-height:1.75;color:#C3C0BA}
.body p{margin-bottom:17px}
.body h2{font-size:26px;font-weight:700;color:var(--text);letter-spacing:-.5px;margin:34px 0 14px}
.body h3{font-size:20px;font-weight:600;color:var(--text);margin:26px 0 10px}
.body ul{margin:0 0 17px 20px}
.body li{margin-bottom:8px}
.body a{color:var(--accent);border-bottom:1px solid rgba(201,166,107,.35)}
.body strong{color:var(--text);font-weight:600}
/* Таблицы в статьях. Стилей для них не было: сравнение типов товара
   удобнее читать таблицей, а на узком экране она уезжает в горизонтальную прокрутку. */
.body ol{margin:0 0 17px 20px}
.body .tw{overflow-x:auto;margin:0 0 20px;-webkit-overflow-scrolling:touch}
.body table{width:100%;border-collapse:collapse;font-size:15px;min-width:520px}
.body th,.body td{padding:11px 14px 11px 0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.body th{color:var(--muted);font-weight:600;font-size:13.5px;text-transform:uppercase;letter-spacing:.4px;white-space:nowrap}
.body tbody tr:last-child td{border-bottom:none}

/* оглавление */
.toc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;margin-bottom:30px}
.toc h4{font-size:13px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);margin-bottom:13px;font-weight:600}
.toc ol{margin-left:18px;color:#C3C0BA;font-size:15px}
.toc li{margin-bottom:8px}
.toc a:hover{color:var(--accent)}

/* товары внутри статьи */
.inprod{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin:30px 0}
.inprod .t{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:16px}
.inprod .t b{font-size:17px;font-weight:600}
.inprod .t a{color:var(--accent);font-size:14px}
.inprod .g{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}

/* FAQ */
.faq{margin:34px 0}
.faq .q{border:1px solid var(--line);border-radius:12px;padding:18px 22px;margin-bottom:10px;background:var(--surface)}
.faq .q b{display:block;font-size:16px;font-weight:600;margin-bottom:7px}
.faq .q p{color:var(--muted);font-size:15px;line-height:1.6;margin:0}

/* автор */
.author{display:flex;gap:16px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;margin:34px 0}
.author .av{width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#3a3f4d,#22252d);flex:none}
.author b{display:block;font-size:15.5px;font-weight:600}
.author span{color:var(--muted);font-size:14px}

/* боковая колонка статьи */
.aside{position:sticky;top:96px;display:grid;gap:18px}
.side-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.side-box h4{font-size:16px;font-weight:600;margin-bottom:14px}
.side-p{display:flex;gap:12px;align-items:center;margin-bottom:15px}
.side-p>span:last-child{min-width:0}
.side-p .im{width:62px;height:62px;border-radius:10px;overflow:hidden;background:#0F1013;flex:none}
.side-p .im img{width:100%;height:100%;object-fit:cover}
.side-p .nm{display:block;font-size:13.5px;line-height:1.35;color:#DEDBD5;margin-bottom:4px}
.side-p .pr{display:block;font-size:15px;font-weight:700}
.side-cta{background:linear-gradient(160deg,rgba(201,166,107,.16),rgba(201,166,107,.05));border:1px solid rgba(201,166,107,.32)}
.side-cta p{color:#C3C0BA;font-size:14px;line-height:1.55;margin-bottom:16px}
.side-cta .btn{width:100%;height:46px;font-size:15px}

/* следующая статья */
/* сетка блока «Читайте также». Имя .next не годится: такой же класс WordPress
   вешает на ссылку «следующая страница», и пагинация уезжала вниз. */
.next-read{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:12px}

/* мобильные правки блога */
.mob .blog-head h1{font-size:29px}
.mob .blog-head p{font-size:15px}
.mob .feat{grid-template-columns:1fr}
.mob .feat .ph{min-height:190px}
.mob .feat .b{padding:24px 20px}
.mob .feat h2{font-size:23px}
.mob .blog-grid,.mob .next-read{grid-template-columns:1fr}
.mob .art{grid-template-columns:1fr;gap:28px}
.mob .art h1{font-size:27px}
.mob .lead{font-size:17px}
.mob .body{font-size:16px}
.mob .body h2{font-size:22px}
.mob .aside{position:static}
.mob .inprod .g{grid-template-columns:1fr 1fr}
.mob .inprod{padding:18px}


/* ============ привязка к разметке WordPress и WooCommerce ============ */

.hide-mob{display:inline}
.sep{opacity:.5;padding:0 2px}
.sec.pt0{padding-top:0}
.art.art-solo{grid-template-columns:minmax(0,1fr)}

/* карточка в цикле */
.card .tile{display:block}
.card .tile img{width:100%;height:100%;object-fit:cover;display:block}
.card .nm{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .nm:hover{color:var(--accent)}
.card .st.out{color:var(--muted)}
.card .st.out::before{background:var(--muted)}
.card .pr del{color:#6E6B66;font-size:15px;font-weight:400;margin-right:7px}
.card .pr ins{text-decoration:none}
.card .add{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.card .added_to_cart{height:40px;padding:0 15px;border-radius:9px;border:1px solid var(--line);
  color:var(--text);font-weight:600;font-size:14px;display:inline-flex;align-items:center;text-decoration:none}

/* сетка каталога */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:0;padding:0;list-style:none}
.woocommerce ul.products li.product{margin:0;width:auto;float:none}
.woocommerce .products .card{height:100%}

/* заголовок архива */
.woocommerce-products-header{padding:6px 0 0}
.woocommerce-products-header__title{font-size:38px;font-weight:700;letter-spacing:-1px;margin-bottom:10px}
.term-description{color:#A9A69F;font-size:15.5px;max-width:760px;margin-bottom:22px}
.woocommerce-result-count{color:var(--muted);font-size:13.5px}
.woocommerce-ordering select{background:var(--surface2);border:1px solid var(--line);color:var(--text);
  border-radius:20px;padding:7px 13px;font:inherit;font-size:13.5px}

/* карточка товара */
.single-product div.product{display:grid;grid-template-columns:1.05fr .95fr;gap:44px;padding:8px 0 20px;align-items:start}
.single-product .woocommerce-product-gallery{background:#0F1013;border-radius:var(--radius);overflow:hidden}
.single-product .woocommerce-product-gallery img{width:100%;height:auto;display:block}
.single-product .product_title{font-size:31px;font-weight:700;line-height:1.18;letter-spacing:-.7px;margin-bottom:12px}
.single-product .price{font-size:34px;font-weight:700;letter-spacing:-1px;display:block;margin-bottom:8px}
.single-product .price del{font-size:19px;font-weight:400;color:#6E6B66;margin-right:12px}
.single-product .price ins{text-decoration:none}
.single-product .stock.in-stock{color:var(--ok);font-size:14px;margin-bottom:20px}
.single-product form.cart{display:flex;gap:12px;margin-bottom:12px;align-items:stretch}
.single-product form.cart .quantity input{height:54px;width:96px;background:var(--surface);border:1px solid var(--line);
  border-radius:10px;color:var(--text);font:inherit;font-size:17px;text-align:center}
.single-product form.cart button[type=submit]{flex:1;height:54px;padding:0 30px;border-radius:10px;border:0;
  background:var(--accent);color:var(--ink);font-weight:600;font-size:16px;cursor:pointer}
.single-product form.cart button[type=submit]:hover{background:var(--accent-2)}
.single-product .woocommerce-product-details__short-description{color:#BDBAB4;font-size:15px;margin-bottom:18px}
.single-product .product_meta{color:var(--muted);font-size:13.5px;margin-top:16px}
.single-product .product_meta a{color:#BDBAB4}
.woocommerce-tabs ul.tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin:44px 0 24px;padding:0;list-style:none}
.woocommerce-tabs ul.tabs li{padding-bottom:13px}
.woocommerce-tabs ul.tabs li a{font-size:16px;color:var(--muted);font-weight:500}
.woocommerce-tabs ul.tabs li.active a{color:var(--text)}
.woocommerce-tabs ul.tabs li.active{border-bottom:2px solid var(--accent);margin-bottom:-1px}
.woocommerce-Tabs-panel{color:#C3C0BA;font-size:16px;line-height:1.7;max-width:860px}
.woocommerce-Tabs-panel h2{font-size:24px;color:var(--text);margin-bottom:12px;font-weight:600}
table.shop_attributes{width:100%;border-collapse:collapse;font-size:14.5px;max-width:620px}
table.shop_attributes th,table.shop_attributes td{padding:11px 0;border-bottom:1px solid var(--line);text-align:left;font-weight:400}
table.shop_attributes th{color:var(--muted);width:44%}
.related.products>h2,.upsells.products>h2{font-size:30px;font-weight:700;letter-spacing:-.6px;margin:44px 0 22px}

/* корзина, оформление, аккаунт */
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:var(--radius);border-collapse:separate;width:100%}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border-top:1px solid var(--line);padding:14px}
.woocommerce table.shop_table thead th{color:var(--muted);font-size:13.5px}
.woocommerce .cart_totals h2,.woocommerce-billing-fields h3,.woocommerce-checkout h3{font-size:22px;font-weight:600;margin-bottom:14px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,
.woocommerce form .form-row select,.select2-container .select2-selection{
  background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--text);
  padding:12px 14px;font:inherit;font-size:15px;width:100%}
.woocommerce form .form-row label{color:#BDBAB4;font-size:14px;margin-bottom:6px;display:block}
.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{
  background:var(--accent);color:var(--ink);border-radius:10px;font-weight:600;border:0;padding:13px 24px}
.woocommerce #respond input#submit:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--accent-2);color:var(--ink)}
.woocommerce .button.alt,.woocommerce #place_order{width:100%;height:54px;font-size:16px}
.woocommerce-checkout #payment{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.woocommerce-checkout #payment ul.payment_methods{border:0;padding:0}
.woocommerce-error,.woocommerce-message,.woocommerce-info{background:var(--surface);border:1px solid var(--line);
  border-left:3px solid var(--accent);border-radius:10px;padding:14px 18px;color:#DEDBD5;list-style:none}

/* пагинация */
.pager ul.page-numbers,.woocommerce nav.woocommerce-pagination ul{display:flex;gap:8px;justify-content:center;
  list-style:none;border:0;margin:34px 0 0;padding:0}
.pager li,.woocommerce nav.woocommerce-pagination ul li{border:0}
.pager a,.pager span,.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{
  min-width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;
  color:#C9C6C0;font-size:14.5px;padding:0 12px;text-decoration:none}
.pager .current,.woocommerce nav.woocommerce-pagination ul li span.current{
  background:var(--accent);color:var(--ink);border-color:var(--accent);font-weight:600}

@media (max-width:900px){
  .hide-mob{display:none}
  .wrap{padding:0 14px}
  .hdr .wrap{height:58px;gap:12px}
  .logo{font-size:21px}
  .hero{padding:26px 0 24px}
  .hero-grid{grid-template-columns:1fr;gap:26px}
  .hero h1{font-size:31px;letter-spacing:-.7px}
  .hero p.lead{font-size:15.5px}
  .sec{padding:30px 0}
  .sec-h h2{font-size:22px}
  .cats{grid-template-columns:repeat(2,1fr);gap:11px}
  .grid,.grid3,.woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:11px}
  .posts,.next-read,.blog-grid{grid-template-columns:1fr}
  .card .nm{font-size:13px}
  .card .pr{font-size:17px}
  .card .add,.card .added_to_cart{height:36px;padding:0 11px;font-size:13px}
  .card .body{padding:12px 12px 14px;gap:8px}
  .trust .wrap{grid-template-columns:1fr 1fr;gap:18px;padding:24px 14px}
  .single-product div.product{grid-template-columns:1fr;gap:26px}
  .single-product .product_title{font-size:23px}
  .art{grid-template-columns:1fr;gap:28px}
  .art h1{font-size:27px}
  .aside{position:static}
  .ft-grid{grid-template-columns:1fr 1fr;gap:22px}
  .blog-head h1{font-size:29px}
  .woocommerce-products-header__title{font-size:26px}
  .inprod .g{grid-template-columns:1fr 1fr}
}


/* --- правки после первого прогона на живых данных --- */

/* меню выводится списком: убираем маркеры и раскладываем в строку */
.nav .nav-list{display:flex;gap:26px;list-style:none;margin:0;padding:0;align-items:center}
.nav .nav-list li{list-style:none}
.nav .nav-list a{color:#C9C6C0;white-space:nowrap;padding:4px 0;border-bottom:2px solid transparent;display:block}
.nav .nav-list a:hover,.nav .nav-list .current-menu-item a{color:var(--text);border-color:var(--accent)}
.ft .ft-list{list-style:none;margin:0;padding:0}
.ft .ft-list li{list-style:none}

/* длинная кнопка «Выберите параметры» раньше выдавливала цену за край карточки */
.card .body{min-width:0}
.card .row{flex-wrap:wrap;row-gap:8px}
.card .pr{white-space:nowrap;min-width:0}
.card .add,.card .added_to_cart{white-space:normal;line-height:1.15;text-align:center;max-width:100%;
  padding:0 12px;min-height:40px;height:auto}
@media (max-width:900px){
  .card .add,.card .added_to_cart{min-height:36px}
}


/* --- v0.1.3: переполнение грид-элементов и меню --- */
.card,.bpost,.cat,.guar-i{min-width:0}
.card .body,.card .row,.card .nm,.bpost .b{min-width:0;max-width:100%}
.card .nm{overflow-wrap:anywhere}
.woocommerce ul.products{list-style:none}
.woocommerce ul.products>li{list-style:none;min-width:0}
.woocommerce ul.products li.product .card{min-width:0}
.nav .wrap>ul{margin:0;padding:0}


/* --- v0.1.4: сетка каталога с запасом по специфичности --- */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;margin:0 !important;padding:0 !important;list-style:none !important;
}
ul.products>li,
.woocommerce ul.products>li.product{
  float:none !important;width:auto !important;margin:0 !important;
  clear:none !important;min-width:0;list-style:none !important;
}
ul.products::before,ul.products::after{content:none !important;display:none !important}
@media (max-width:900px){
  ul.products,.woocommerce ul.products,.woocommerce-page ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
}

/* ============ v0.2.0: фильтры, мобильное меню, липкая покупка ============ */

html.noscroll{overflow:hidden}

/* раскладка архива: фильтры + товары */
.layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:30px;align-items:start;margin-top:6px}
.catalog-col{min-width:0}
.filters{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:20px;position:sticky;top:96px}
.filters .fgrp{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.filters .fgrp:last-child{border:0;margin:0;padding:0}
.filters h4{font-size:14px;font-weight:600;margin-bottom:12px}
.fopt{display:flex;align-items:center;gap:9px;color:#BDBAB4;font-size:14px;margin-bottom:9px;cursor:pointer}
.fopt input[type=checkbox]{position:absolute;opacity:0;width:0;height:0}
.fopt .box{width:16px;height:16px;border:1px solid rgba(242,240,236,.28);border-radius:4px;flex:none;
  display:grid;place-items:center;transition:.12s}
.fopt .box.on{background:var(--accent);border-color:var(--accent)}
.fopt .box.on::after{content:'';width:8px;height:4px;border-left:2px solid var(--ink);
  border-bottom:2px solid var(--ink);transform:rotate(-45deg) translate(1px,-1px)}
.fopt em{margin-left:auto;color:#6E6B66;font-style:normal;font-size:12.5px}
.fopt.flink:hover{color:var(--text)}
.prange{display:flex;gap:8px}
.prange input{width:100%;background:var(--bg);border:1px solid var(--line);border-radius:8px;
  height:38px;color:var(--text);font:inherit;font-size:14px;padding:0 10px}
.fbtns{display:flex;flex-direction:column;gap:10px}
.fbtns .btn{width:100%;height:44px;font-size:15px}
.fclear{color:var(--muted);font-size:13.5px;text-align:center}
.fclear:hover{color:var(--accent)}
.fclose{display:none}

/* кнопка «Фильтры» — только на мобильном */
.flt-btn{display:none;align-items:center;gap:7px;background:var(--surface);
  border:1px solid rgba(201,166,107,.45);color:var(--accent);border-radius:20px;
  padding:8px 16px;font:inherit;font-size:13.5px;font-weight:600;cursor:pointer}

/* сортировка и счётчик */
.woocommerce-result-count{margin:0 0 14px}
.woocommerce-ordering{float:none;margin:0 0 14px}

@media (max-width:900px){
  .layout{grid-template-columns:1fr;gap:0}
  .flt-btn{display:inline-flex}

  /* фильтры выезжают панелью снизу */
  .filters{position:fixed;left:0;right:0;bottom:0;top:auto;max-height:86vh;overflow-y:auto;
    z-index:120;border-radius:16px 16px 0 0;transform:translateY(101%);transition:transform .22s ease;
    box-shadow:0 -18px 40px rgba(0,0,0,.5);padding:22px 16px 26px}
  .filters.open{transform:none}
  .fclose{display:block;position:absolute;top:10px;right:12px;background:none;border:0;
    color:var(--muted);font-size:30px;line-height:1;cursor:pointer;padding:4px 8px}

  /* меню-панель */
  .nav .wrap{display:none}
  .nav.open .wrap{display:block;height:auto;padding:10px 14px 18px;overflow:visible}
  .nav .nav-list{flex-direction:column;align-items:stretch;gap:0}
  .nav .nav-list li{border-bottom:1px solid var(--line)}
  .nav .nav-list li:last-child{border:0}
  .nav .nav-list a{padding:13px 2px;border:0;font-size:16px}
  .burger{display:block;font-size:20px;line-height:1}
}

/* липкая покупка */
.buybar{position:fixed;left:0;right:0;bottom:0;background:rgba(21,22,26,.97);
  border-top:1px solid var(--line);padding:11px 14px;display:flex;gap:11px;align-items:center;
  z-index:60;transition:transform .2s ease}
.buybar.hide{transform:translateY(110%)}
.buybar .p{font-size:20px;font-weight:700;white-space:nowrap}
.buybar .p del{font-size:14px;font-weight:400;color:#6E6B66;margin-right:6px}
.buybar .p ins{text-decoration:none}
.buybar .btn{flex:1;height:48px}
@media (min-width:901px){ .buybar{display:none} }


/* атрибут hidden должен побеждать display:grid у барьера */
.age-gate[hidden]{display:none !important}


/* бургер: на десктопе его быть не должно */
.burger{display:none;background:none;border:0;color:var(--text);font-size:22px;
  cursor:pointer;padding:6px 10px;line-height:1}
@media (max-width:900px){ .burger{display:block;font-size:20px} }


/* когда открыта панель фильтров или меню — плавающие кнопки не мешают */
html.noscroll .joinchat,
html.noscroll .buybar{opacity:0;pointer-events:none}
.filters{padding-bottom:26px}
@media (max-width:900px){ .filters .fbtns{position:sticky;bottom:0;background:var(--surface);padding-top:12px} }


/* --- v0.2.4: карточка товара, раскладка блоков под галереей --- */
/* Галерея и описание — две колонки, всё остальное (вкладки, похожие,
   апселлы, отзывы) должно идти во всю ширину, а не внутрь колонки. */
.single-product div.product > *:not(.woocommerce-product-gallery):not(.summary){
  grid-column:1 / -1;
}
.single-product div.product > .woocommerce-tabs{margin-top:8px}
.related.products>h2,.upsells.products>h2{color:var(--text)}
.related.products,.upsells.products{margin-top:10px}

/* галерея: миниатюры под крупным фото */
.single-product .flex-control-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;
  list-style:none;margin:12px 0 0;padding:0}
.single-product .flex-control-thumbs li{margin:0}
.single-product .flex-control-thumbs img{border-radius:10px;cursor:pointer;opacity:.65;transition:.15s}
.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover{opacity:1;outline:2px solid var(--accent);outline-offset:-2px}


/* --- v0.2.5: галерея и описание в карточке товара --- */
/* WooCommerce задаёт им float и ширину 48% — в гриде это ломает раскладку */
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary{
  float:none !important;width:auto !important;margin:0 !important;
}
.single-product div.product .summary{min-width:0}
.single-product .product_title{color:var(--text)}
.single-product .price{color:var(--text)}
.single-product .woocommerce-product-gallery__wrapper{margin:0}


/* --- v0.2.6: корзина и оформление --- */
/* таблице кто-то ставит display:flex — возвращаем табличную раскладку */
.woocommerce table.shop_table{display:table !important;table-layout:auto;border-spacing:0}
.woocommerce table.shop_table thead{display:table-header-group}
.woocommerce table.shop_table tbody{display:table-row-group}
.woocommerce table.shop_table tr{display:table-row}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td{display:table-cell;vertical-align:middle}
.woocommerce table.shop_table thead th{text-align:left;font-weight:600;color:var(--muted);
  font-size:13px;letter-spacing:.3px;text-transform:uppercase}
.woocommerce table.shop_table .product-thumbnail img{width:64px;height:64px;object-fit:cover;border-radius:10px}
.woocommerce table.shop_table .product-remove a{color:var(--muted);font-size:20px;text-decoration:none}
.woocommerce table.shop_table .product-remove a:hover{color:#E2606B}
.woocommerce table.shop_table .product-name a{color:var(--text);font-weight:500}
.woocommerce table.shop_table .product-name a:hover{color:var(--accent)}
.woocommerce .quantity input.qty{background:var(--bg);border:1px solid var(--line);border-radius:8px;
  color:var(--text);height:42px;width:78px;text-align:center;font:inherit}

/* акцентные кнопки WooCommerce перекрашены в фирменный цвет */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .checkout-button,
.woocommerce #place_order{
  background-color:var(--accent) !important;color:var(--ink) !important;border:0;
  border-radius:10px;font-weight:600;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce .checkout-button:hover,
.woocommerce #place_order:hover{background-color:var(--accent-2) !important;color:var(--ink) !important}
.woocommerce a.button.alt.disabled,
.woocommerce button.button:disabled{opacity:.45}

.cart_totals{max-width:600px;margin-left:auto}
.cart-collaterals{display:block}
.woocommerce ul#shipping_method{list-style:none;margin:0;padding:0}
.woocommerce ul#shipping_method li{margin-bottom:8px}
.woocommerce-shipping-destination,.woocommerce-shipping-calculator{color:var(--muted);font-size:13.5px}

/* обложки категорий: фото заполняет плитку, снизу затемнение под подпись */
.cat .ph img{width:100%;height:100%;object-fit:cover;display:block}
.cat .ph::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(10,11,13,0) 30%,rgba(10,11,13,.55) 65%,rgba(10,11,13,.88) 100%)}
.cat:hover .ph img{transform:scale(1.04)}
.cat .ph img{transition:transform .5s ease}

/* Шапка на узких экранах. Телефон и WhatsApp текстом не влезают рядом с поиском
   и корзиной — из-за них появлялась горизонтальная прокрутка всей страницы.
   Связаться можно из плавающей кнопки и подвала. */
@media (max-width:900px){
  .hdr-act .phone,.hdr-act .wa{display:none}
  .hdr .wrap{gap:10px}
  .hdr-act{gap:12px}
  .search{min-width:0}          /* flex-элемент обязан уметь сжиматься */
  .cart{white-space:nowrap}
}
/* последний рубеж: ничто не должно вылезать за край экрана */
html,body{overflow-x:hidden;max-width:100%}


/* --- v0.1.9: выпадающие подменю в шапке ---------------------------------
   Пункты «Доставка и оплата», «Возврат и обмен», «Контакты», «О магазине»
   свёрнуты в раздел «Покупателям», категории раскрываются подпунктами.
   Раньше меню выводилось с depth=1, дети не рендерились вовсе, а строка
   не помещалась и уезжала в горизонтальную прокрутку.                     */

@media (min-width:901px){
  /* прокрутка больше не нужна: строка помещается, а с overflow-x подменю бы обрезалось */
  .nav .wrap{overflow:visible}
  .nav .nav-list{position:relative}
  .nav .nav-list > li{position:relative}

  .nav .nav-list li > ul{
    position:absolute; top:100%; left:-14px; min-width:232px;
    margin:12px 0 0; padding:8px 0; list-style:none;
    background:#181A1F; border:1px solid var(--line); border-radius:10px;
    box-shadow:0 18px 40px rgba(0,0,0,.45);
    opacity:0; visibility:hidden; transform:translateY(6px);
    transition:opacity .16s ease, transform .16s ease, visibility .16s;
    z-index:80;
  }
  /* невидимый мостик, чтобы курсор доходил до списка через отступ */
  .nav .nav-list li > ul::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}

  .nav .nav-list li:hover > ul,
  .nav .nav-list li:focus-within > ul{opacity:1;visibility:visible;transform:none}

  .nav .nav-list li > ul li{border:0}
  .nav .nav-list li > ul a{
    padding:8px 16px; border:0; font-size:14px; color:#C9C6C0; white-space:nowrap;
  }
  .nav .nav-list li > ul a:hover{color:var(--text);background:rgba(242,240,236,.06)}

  .nav .nav-list .menu-item-has-children > a::after{
    content:"⌄"; margin-left:6px; font-size:12px; opacity:.55; line-height:1;
  }
}

@media (max-width:900px){
  /* в выезжающей панели подпункты просто списком с отступом */
  .nav .nav-list li > ul{display:block;list-style:none;margin:0 0 8px;padding:0 0 0 14px}
  .nav .nav-list li > ul li{border:0}
  .nav .nav-list li > ul a{padding:9px 2px;font-size:14.5px;color:var(--muted)}
}

/* узкий десктоп: до бургера ещё далеко (он с 900px), а строка меню уже впритык */
@media (min-width:901px) and (max-width:1010px){
  .nav .wrap{font-size:13.5px}
  .nav .nav-list{gap:16px}
}
