:root{
  --ink:#171817;
  --muted:#6d6f69;
  --paper:#f3eee4;
  --paper-2:#fbf8f1;
  --green:#284e49;
  --green-deep:#183a36;
  --gold:#c8943d;
  --gold-2:#e8c47a;
  --line:#ded4c4;
  --radius:26px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font-family:Arial,Helvetica,sans-serif;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.cat-container{width:min(1240px,calc(100% - 40px));margin:0 auto}
.cat-header{
  position:sticky;top:0;z-index:50;
  background:rgba(30,67,63,.96);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(12px);
}
.cat-header-inner{
  min-height:72px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:28px;
}
.cat-logo{display:flex;flex-direction:column;line-height:1}
.cat-logo strong{
  font:700 31px/1 Georgia,serif;
  letter-spacing:.3px;
}
.cat-logo span{
  margin-top:6px;
  font-size:10px;
  letter-spacing:2.3px;
  color:#e7d5ae;
}
.cat-nav{
  display:flex;align-items:center;justify-content:center;gap:24px;
  font-size:13px;
}
.cat-nav a{opacity:.9}
.cat-nav a:hover{opacity:1;color:#f4d394}
.cat-header-cta{
  padding:12px 18px;
  border:1px solid rgba(255,255,255,.5);
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}
.cat-header-actions{display:flex;align-items:center;gap:12px}
.cat-header .cart-header-btn{
  border-color:rgba(255,255,255,.4);
  background:transparent;
  color:#fff;
}
.cat-header .cart-header-btn span{
  background:#d3aa55;
  color:#1c1c1c;
}
.cat-breadcrumbs{
  display:flex;gap:8px;align-items:center;
  padding:26px 0 18px;
  color:#7b756c;
  font-size:13px;
}
.cat-breadcrumbs a{text-decoration:underline;text-underline-offset:3px}
.category-hero{
  display:grid;
  grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
  gap:18px;
  min-height:565px;
  margin-bottom:46px;
}
.category-copy,
.category-media{
  border-radius:var(--radius);
  overflow:hidden;
}
.category-copy{
  padding:58px 52px;
  background:linear-gradient(145deg,#162421,#23423d);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  box-shadow:0 18px 55px rgba(30,33,27,.13);
}
.category-eyebrow,.section-kicker{
  margin:0 0 16px;
  color:#deb766;
  font-size:12px;
  font-weight:800;
  letter-spacing:2.7px;
}
.category-copy h1{
  margin:0;
  font:700 clamp(42px,5vw,72px)/.98 Georgia,serif;
  letter-spacing:-1.8px;
  max-width:680px;
}
.category-lead{
  margin:24px 0 26px;
  max-width:590px;
  color:#e8e5dd;
  font-size:18px;
  line-height:1.6;
}
.category-benefits{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:13px;
}
.category-benefits li{
  position:relative;
  padding-left:27px;
  color:#f7f3ea;
  font-size:15px;
  line-height:1.4;
}
.category-benefits li:before{
  content:"";
  position:absolute;left:0;top:.48em;
  width:9px;height:9px;
  border:2px solid #d5ad58;
  transform:rotate(45deg);
}
.category-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.cat-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  transition:.2s ease;
}
.cat-btn-gold{
  color:#1b1a17;
  background:linear-gradient(135deg,var(--gold-2),var(--gold));
  box-shadow:0 8px 24px rgba(196,145,55,.23);
}
.cat-btn-gold:hover{transform:translateY(-1px)}
.cat-btn-outline{
  color:#fff;
  border-color:rgba(255,255,255,.46);
  background:rgba(255,255,255,.04);
}
.category-media{
  position:relative;
  min-height:565px;
  background:#d4ccbd;
  box-shadow:0 18px 55px rgba(30,33,27,.13);
}
.category-media img,
.category-media video{
  width:100%;
  height:100%;
  object-fit:cover;
}
.category-media video{position:absolute;inset:0}
.media-badge{
  position:absolute;
  left:20px;bottom:20px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(17,28,26,.72);
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.4px;
  backdrop-filter:blur(8px);
}
.products-section{
  padding:56px 0 72px;
  background:var(--paper-2);
  border-top:1px solid rgba(115,99,70,.12);
  border-bottom:1px solid rgba(115,99,70,.12);
}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:26px;
  margin-bottom:28px;
}
.section-head h2,.guide-grid h2,.contact-copy h2{
  margin:0;
  font:700 clamp(34px,4vw,52px)/1 Georgia,serif;
  letter-spacing:-1px;
}
.section-head>p{
  margin:0 0 4px;
  max-width:380px;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
  text-align:right;
}
/* карточки товаров — общие с главной (.catalog-grid / .product-card из style.css) */
.products-section .catalog-grid{margin:0}
.products-section .bundles-block{margin:0}
.category-media .media-fallback{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:linear-gradient(150deg,#24443d,#16302b);
  color:#d3b879;
  font:600 15px/1 Arial,Helvetica,sans-serif;
  letter-spacing:.4em;
  text-transform:uppercase;
}
.guide-section{padding:72px 0}
.guide-grid{
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  gap:68px;
  align-items:start;
}
.guide-list{
  margin:0;padding:0;
  list-style:none;
  counter-reset:guide;
  display:grid;
  gap:12px;
}
.guide-list li{
  counter-increment:guide;
  display:grid;
  grid-template-columns:54px 1fr;
  gap:16px;
  align-items:center;
  padding:17px 19px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  line-height:1.45;
}
.guide-list li:before{
  content:"0" counter(guide);
  display:flex;align-items:center;justify-content:center;
  width:48px;height:48px;
  border-radius:50%;
  background:#eef0e8;
  color:var(--green);
  font:700 15px Georgia,serif;
}
.contact-section{padding:0 0 76px}
.contact-card{
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  gap:50px;
  padding:46px;
  border:1px solid #d5ab60;
  border-radius:24px;
  background:linear-gradient(135deg,#fffaf1,#f9f4ea);
}
.contact-copy p:last-child{
  max-width:520px;
  color:var(--muted);
  line-height:1.6;
}
.contact-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.contact-form label{display:grid;gap:7px}
.contact-form label>span{font-size:12px;font-weight:700;color:#6d675e}
.contact-form input,
.contact-form textarea{
  width:100%;
  border:1px solid #d8cfc0;
  border-radius:13px;
  background:#fff;
  padding:13px 14px;
  font:inherit;
  outline:none;
}
.contact-form input:focus,
.contact-form textarea:focus{border-color:#b88a3b;box-shadow:0 0 0 3px rgba(184,138,59,.12)}
.contact-comment{grid-column:1/-1}
.privacy-row{
  grid-column:1/-1;
  grid-template-columns:auto 1fr !important;
  align-items:start;
}
.privacy-row input{width:17px;height:17px;margin-top:2px}
.privacy-row span{font-weight:400!important;line-height:1.4}
.privacy-row a{text-decoration:underline}
.contact-submit{width:max-content}
.form-status{margin:0;align-self:center;font-size:13px;color:var(--green)}
.cat-footer{
  padding:26px 0 34px;
  color:#dfe6df;
  background:var(--green-deep);
}
.cat-footer-inner{display:flex;justify-content:space-between;gap:30px;align-items:center}
.cat-footer-inner>div:first-child{display:flex;flex-direction:column;gap:4px}
.cat-footer strong{font:700 24px Georgia,serif}
.cat-footer span{font-size:11px;letter-spacing:1.5px;color:#cbbd9f}
.cat-footer-inner>div:last-child{display:flex;gap:20px;font-size:12px}
@media(max-width:960px){
  .cat-nav{display:none}
  .cat-header-inner{grid-template-columns:1fr auto}
  .category-hero{grid-template-columns:1fr;min-height:0}
  .category-copy{padding:40px 34px}
  .category-media{min-height:470px;order:-1}
  .guide-grid,.contact-card{grid-template-columns:1fr;gap:28px}
}
@media(max-width:620px){
  .cat-container{width:min(100% - 24px,1240px)}
  .cat-header-inner{min-height:62px;gap:12px}
  .cat-logo strong{font-size:25px}
  .cat-logo span{font-size:8px;letter-spacing:1.7px}
  .cat-header-cta{padding:10px 12px;font-size:11px}
  .cat-breadcrumbs{padding-top:18px}
  .category-hero{margin-bottom:28px}
  .category-copy{padding:32px 24px}
  .category-copy h1{font-size:42px}
  .category-lead{font-size:16px;margin:18px 0 22px}
  .category-media{min-height:360px}
  .category-actions{display:grid;grid-template-columns:1fr}
  .cat-btn{width:100%}
  .products-section{padding:42px 0 52px}
  .section-head{align-items:start;flex-direction:column}
  .section-head>p{text-align:left}
  .guide-section{padding:52px 0}
  .contact-section{padding-bottom:48px}
  .contact-card{padding:28px 20px}
  .contact-form{grid-template-columns:1fr}
  .contact-comment,.privacy-row{grid-column:auto}
  .cat-footer-inner{align-items:flex-start;flex-direction:column}
  .cat-footer-inner>div:last-child{flex-wrap:wrap}
}
/* category layout hardening */
html,body{max-width:100%;overflow-x:hidden}
.category-copy,.category-media,.category-hero>*{min-width:0}
.category-copy{padding:52px 44px}
.category-copy h1{
  max-width:100%;
  font-size:clamp(40px,3.8vw,58px);
  overflow-wrap:anywhere;
  hyphens:auto;
}
@media(max-width:620px){
  .cat-header-cta{white-space:nowrap;padding:9px 10px;font-size:10px}
  .category-copy{padding:30px 24px;overflow:hidden}
  .category-copy h1{font-size:38px;line-height:1.02;overflow-wrap:anywhere;hyphens:auto}
  .category-lead,.category-benefits li{max-width:100%;overflow-wrap:anywhere}
}

.cat-nav a.active{color:#f1cf84}
@media(max-width:620px){
  .cat-header-inner{display:flex;justify-content:space-between}
  .cat-header-cta{display:none}
  .category-hero,
  .category-copy,
  .category-media,
  .category-lead,
  .category-benefits,
  .category-actions{width:100%;max-width:100%;min-width:0}
  .category-copy *{max-width:100%;min-width:0}
  .category-copy h1{font-size:36px;white-space:normal;overflow-wrap:break-word}
  .category-lead,
  .category-benefits li{white-space:normal;overflow-wrap:break-word}
}

/* --- STORE 4.1: фильтры и пагинация категории --- */
.category-toolbar{margin:0 0 22px;display:flex;flex-direction:column;gap:12px}
.cat-filters{display:flex;flex-wrap:wrap;gap:8px}
.cat-filter-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:rgba(233,226,213,.5);border:1px solid #ddd3c2;border-radius:12px;padding:6px 10px}
.cat-filter-group>b{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#6d6355;font-weight:600}
.cat-chip{border:1px solid #cfc4b0;background:#fff;border-radius:999px;padding:4px 12px;font-size:13px;cursor:pointer;color:#3c362c}
.cat-chip:hover{border-color:#8d8371}
.cat-chip.active{background:#3c362c;color:#f4efe6;border-color:#3c362c}
.cat-toolbar-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cat-sort{display:flex;align-items:center;gap:8px;font-size:13px;color:#6d6355}
.cat-sort select{border:1px solid #cfc4b0;border-radius:8px;padding:6px 8px;background:#fff;font:inherit}
.cat-instock{display:flex;align-items:center;gap:6px;font-size:13px;color:#6d6355}
.cat-btn-ghost{border:1px solid transparent;background:none;color:#8d8371;text-decoration:underline;padding:4px;cursor:pointer}
.cat-btn-ghost:hover{color:#3c362c}
.cat-load-more{text-align:center;margin-top:26px}
@media (max-width:640px){.cat-toolbar-row{align-items:stretch;flex-direction:column}.cat-sort select{width:100%}}

