:root{
  --bg: #f7f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #5b6475;
  --muted2: #7b869d;
  --line: rgba(15, 23, 42, .10);
  --shadow: 0 20px 60px rgba(15, 23, 42, .10);
  --shadow2: 0 14px 40px rgba(15, 23, 42, .08);

  --primary: #b45309; /* warm gold-brown */
  --primary2: #f59e0b;
  --accent: #0ea5e9; /* sky */
  --accent2:#14b8a6; /* teal */
  --bg-grid: rgba(15, 23, 42, .05);

  --radius: 18px;
  --radius2: 26px;

  --container: 1160px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  position: relative; /* создаем контекст слоев для фоновых псевдоэлементов */
  isolation: isolate; /* гарантируем корректное поведение z-index для фона */
}

/* лёгкая сетка поверх фона (без картинок) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: none;
  z-index: -1;
}

/* Орнамент на фоне: полупрозрачный повтор + маска для читаемости */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: none;
  opacity: 0;
  mix-blend-mode: normal;
  filter: none;
  z-index: -1;

  /* без градиентных масок: просто полупрозрачный повтор */
  mask-image: none;
}

/* Орнамент как фон именно для #main (ниже контента) */
#main{
  position: relative;
}
#main::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image: url("./ornament.jpg");
  background-repeat: repeat;
  background-size: 540px 540px;
  background-position: 50% 0%;
  opacity: .42;
  z-index: 0;
}
#main > *{
  position: relative;
  z-index: 1;
}

/* Catalog page */
.catalog-crumbs{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight: 850;
  padding: 10px 0 0;
  flex-wrap: wrap;
}
.catalog-crumbs a{
  color: var(--muted2);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.catalog-crumbs span[aria-hidden="true"]{
  opacity:.8;
}
.catalog-head{
  margin-top: 10px;
  padding: 6px 0 18px;
}
.catalog-head-left{
  max-width: 720px;
}
.catalog-toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}
.catalog-products-title{
  font-weight: 1000;
  font-size: 18px;
}
.catalog-products-sub{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.6;
  font-size: 14px;
}
.catalog-products-top{
  display:flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.catalog-quickbar{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
  margin: 6px 0 18px;
}

.catalog-layout{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}
.catalog-sidebar{
  position: sticky;
  top: 92px;
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 16px;
}

.filter-details + .filter-details{
  margin-top: 12px;
}
.filter-summary{
  list-style: none;
  cursor: pointer;
  font-weight: 1100;
  font-size: 14px;
}
.filter-summary::-webkit-details-marker{
  display:none;
}
.filter-body{
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.catalog-check{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  cursor: pointer;
}
.catalog-check input{
  width: 18px;
  height: 18px;
}
.catalog-check + .catalog-check{
  margin-top: 10px;
}

.range-row{
  display:flex;
  gap: 10px;
  align-items:center;
}
.range-input{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 10px 12px;
  outline: none;
}
.range-input:focus{
  box-shadow: 0 0 0 4px rgba(245,158,11,.14);
  border-color: rgba(180,83,9,.35);
}
.range-dash{
  color: var(--muted2);
  font-weight: 1100;
}

.catalog-main{ min-width: 0; }
.catalog-count{
  color: var(--muted);
  font-weight: 900;
}
.catalog-sort{
  display:flex;
  gap: 10px;
  align-items:center;
}
.sort-label{
  font-weight: 900;
  color: var(--muted2);
}
.sort-select{
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 10px 12px;
  outline: none;
  font-weight: 900;
  color: var(--text);
}
.sort-select:focus{
  box-shadow: 0 0 0 4px rgba(245,158,11,.14);
  border-color: rgba(180,83,9,.35);
}

.catalog-pagination{
  margin-top: 18px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
  justify-content: center;
}

@media (max-width: 1080px){
  .catalog-layout{
    grid-template-columns: 1fr;
  }
  .catalog-sidebar{
    position: relative;
    top: auto;
  }
  .catalog-toolbar{
    margin-top: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
}


a{ color: inherit; text-decoration: none; }
button, input{ font: inherit; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus{
  left: 14px;
  top: 14px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 1000;
}

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Top bar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.80);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  backdrop-filter: blur(10px);
}

/* Убедимся, что контент рисуется поверх орнамента-фона */
#main, header.topbar, footer{
  position: relative;
  z-index: 1;
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.logo-mark{
  width: 44px; height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--primary);
  border: 1px solid rgba(180, 83, 9, .25);
  background: rgba(245,158,11,.10);
}
.logo-text{ display: grid; gap: 2px; }
.logo-title{
  font-weight: 950;
  letter-spacing: .2px;
}
.logo-sub{
  font-size: 12px;
  font-weight: 750;
  color: var(--muted2);
}

.nav-desktop{
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.70);
}
.nav-link{
  font-weight: 850;
  font-size: 14px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-link:hover{
  color: var(--text);
  background: rgba(245,158,11,.12);
  transform: translateY(-1px);
}

.top-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.search{
  width: 440px;
  max-width: 44vw;
  position: relative;
}
.search-icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted2);
}
.search-input{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.78);
  padding: 12px 14px 12px 44px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.search-input::placeholder{ color: rgba(91,100,117,.75); font-weight: 700; }
.search-input:focus{
  border-color: rgba(180, 83, 9, .35);
  box-shadow: 0 0 0 4px rgba(245,158,11,.16);
  background: rgba(255,255,255,.96);
}

.icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.78);
  transition: transform .2s ease, box-shadow .2s ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}
.icon-btn:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(245,158,11,.16);
  border-color: rgba(180, 83, 9, .35);
}

.cart{
  width: 44px; height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.78);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cart:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}
.cart-badge{
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  color: #0b1220;
  background: var(--primary2);
  border: 1px solid rgba(15, 23, 42, .12);
  display: grid;
  place-items: center;
}

/* Hero */
.hero{ padding: 34px 0 6px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  gap: 22px;
}
.hero-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.badge{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.78);
  font-weight: 850;
  color: var(--muted);
  font-size: 13px;
}
.badge-accent{
  border-color: rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.78);
  color: var(--muted);
}

.hero-title{
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -.6px;
}
.hero-lead{
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
  max-width: 58ch;
  font-weight: 650;
}
.hero-ctas{
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 950;
  letter-spacing: .1px;
  border: 1px solid rgba(15, 23, 42, .12);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  user-select: none;
}
.btn:focus{ outline: none; box-shadow: 0 0 0 4px rgba(245,158,11,.20); }
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }

.btn-primary{
  border-color: rgba(180, 83, 9, .25);
  background: var(--primary2);
  color: #0b1220;
}
.btn-soft{
  background: rgba(255,255,255,.85);
  color: var(--text);
}
.btn-cart{
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  background: rgba(14,165,233,.10);
  border-color: rgba(14,165,233,.22);
}
.btn-full{ width: 100%; }

.size-card{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.80);
}
.size-icon{
  width: 46px; height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent2);
  border: 1px solid rgba(20,184,166,.26);
  background: rgba(20,184,166,.10);
}
.size-title{ font-weight: 1000; }
.size-sub{ color: var(--muted); font-weight: 700; margin-top: 2px; font-size: 14px; }

/* Hero visual */
.pattern-card{
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow2);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.pattern-card::before{
  content:"";
  position: absolute;
  inset: -80px -60px auto -60px;
  height: 200px;
  background: transparent;
  transform: rotate(-8deg);
  opacity: .55;
}
.pattern-top{
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}
.pattern-chip{
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.85);
  font-weight: 950;
  color: var(--muted);
  font-size: 13px;
}
.pattern-title{
  font-weight: 1000;
  font-size: 18px;
  letter-spacing: -.2px;
}
.pattern-art{
  margin-top: 16px;
  height: 280px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.60);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-product{
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.86);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero-product:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  border-color: rgba(180, 83, 9, .24);
}
.hero-product-media{
  position: relative;
  overflow: hidden;
  background: rgba(245,158,11,.08);
}
.hero-product-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-product-fallback{
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(14,165,233,.14), rgba(20,184,166,.14));
}
.hero-product-body{
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.92);
}
.hero-product-title{
  font-weight: 1100;
  letter-spacing: -.2px;
}
.hero-product-price{
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero-product-empty{
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}
.motif{
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
}
.motif-1{
  width: 290px; height: 290px;
  left: -120px; top: -150px;
  background: rgba(245,158,11,.20);
}
.motif-2{
  width: 260px; height: 260px;
  right: -130px; top: -80px;
  background: rgba(14,165,233,.18);
}
.motif-3{
  width: 240px; height: 240px;
  left: 50px; bottom: -160px;
  background: rgba(20,184,166,.16);
}
.motif-stitch{
  position:absolute;
  inset: 18px 18px 18px 18px;
  border-radius: 18px;
  border: 2px dashed rgba(15, 23, 42, .10);
  background: transparent;
  opacity: .7;
}

.pattern-stats{
  margin-top: 16px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat{
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.72);
}
.stat-num{
  font-weight: 1100;
  font-size: 16px;
}
.stat-label{
  color: var(--muted);
  font-weight: 800;
  margin-top: 3px;
  font-size: 12px;
}

/* Section */
.section{ padding: 54px 0; }
.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head-wide{
  align-items: center;
}
.section-title{
  font-size: 26px;
  margin: 0;
  letter-spacing: -.25px;
}
.section-sub{
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 700;
}

/* Categories */
.category-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.category{
  padding: 16px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.78);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 12px 12px;
}
.category:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
  border-color: rgba(180, 83, 9, .22);
}
.category-icon{
  width: 44px; height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent2);
  border: 1px solid rgba(20,184,166,.25);
  background: rgba(20,184,166,.08);
  grid-row: span 2;
}
.category-title{
  font-weight: 1000;
  font-size: 16px;
  margin-top: 2px;
}
.category-sub{
  grid-column: 2 / -1;
  color: var(--muted);
  font-weight: 750;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}
.category-accent{
  background: rgba(245,158,11,.18);
}

/* Featured */
.section-featured{ padding-top: 10px; }
.filter-row{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.filter-row::-webkit-scrollbar{
  height: 8px;
}
.filter-row::-webkit-scrollbar-thumb{
  background: rgba(15, 23, 42, .14);
  border-radius: 999px;
}
.filter-row::-webkit-scrollbar-track{
  background: transparent;
}
.filter-row .chip{
  flex: 0 0 auto;
}
.filter-label{
  color: var(--muted2);
  font-weight: 900;
  font-size: 13px;
  margin-right: 2px;
}
.chip{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.78);
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.chip:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
  border-color: rgba(180, 83, 9, .22);
}
.chip-active{
  color: #7c2d12;
  border-color: rgba(180, 83, 9, .28);
  background: rgba(245,158,11,.20);
}

.product-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product{
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.86);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(180, 83, 9, .24);
}
.product-media{
  height: 180px;
  position: relative;
  overflow: hidden;
}
.product-bg{
  position: absolute;
  inset: 0;
  opacity: .98;
}
.product-bg-1{
  background: rgba(245,158,11,.16);
}
.product-bg-2{
  background: rgba(14,165,233,.16);
}
.product-bg-3{
  background: rgba(20,184,166,.14);
}
.product-bg-4{
  background: rgba(59,130,246,.14);
}
.product-bg-5{
  background: rgba(245,158,11,.14);
}
.product-bg-6{
  background: rgba(244,114,182,.12);
}

.product-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-tag{
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 13px;
  color: #0b1220;
  background: rgba(245,158,11,.95);
  border: 1px solid rgba(0,0,0,.08);
}
.tag-accent{
  background: rgba(20,184,166,.95);
}

.product-body{
  padding: 14px 14px 16px;
}
.product-title{
  margin: 0;
  font-weight: 1000;
  letter-spacing: -.2px;
  font-size: 16px;
}
.product-rating{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.stars{
  position: relative;
  width: 108px;
  height: 18px;
}
.stars::before{
  content:"★★★★★";
  position:absolute;
  inset:0;
  color: rgba(15, 23, 42, .14);
  letter-spacing: 2px;
  font-size: 18px;
}
.stars-fill{
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width: var(--fill, 100%);
  overflow: hidden;
}
.stars-fill::before{
  content:"★★★★★";
  position:absolute;
  inset:0;
  color: rgba(180, 83, 9, .95);
  letter-spacing: 2px;
  font-size: 18px;
}
.rating-text{
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.product-bottom{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.product-price{
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price{
  font-weight: 1100;
  letter-spacing: -.3px;
}
.currency{
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.demo-note{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.demo-note-card{
  width: 100%;
  max-width: 980px;
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.80);
  padding: 14px 14px;
}
.demo-note-title{ font-weight: 1000; }
.demo-note-sub{
  color: var(--muted);
  margin-top: 6px;
  font-weight: 750;
  line-height: 1.6;
}

/* Why */
.why-grid{
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 18px;
  align-items: start;
}
.why-copy{ padding: 6px 0; }
.why-list{
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.why-item{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.78);
}
.why-icon{
  width: 44px; height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent2);
  border: 1px solid rgba(20,184,166,.24);
  background: rgba(20,184,166,.08);
}
.why-title{ font-weight: 1000; }
.why-sub{ color: var(--muted); font-weight: 750; margin-top: 3px; }

.why-panel{
  position: relative;
  display: flex;
  justify-content: center;
}
.panel-card{
  width: 100%;
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow2);
  padding: 18px;
  position: relative;
  z-index: 2;
}
.panel-kicker{
  font-weight: 950;
  color: var(--muted2);
  font-size: 13px;
}
.panel-title{
  margin-top: 10px;
  font-weight: 1100;
  font-size: 18px;
  letter-spacing: -.2px;
}
.panel-rows{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.panel-card > .btn-full{
  margin-top: 12px;
}
.panel-row{
  display: grid;
  grid-template-columns: 12px 1fr 26px;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.70);
}
.panel-row-text{ font-weight: 900; }
.panel-row-arrow{
  color: var(--muted2);
  font-weight: 1100;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-1{ background: rgba(245,158,11,.95); box-shadow: 0 0 0 4px rgba(245,158,11,.20); }
.dot-2{ background: rgba(20,184,166,.95); box-shadow: 0 0 0 4px rgba(20,184,166,.20); }
.dot-3{ background: rgba(244,114,182,.85); box-shadow: 0 0 0 4px rgba(244,114,182,.18); }
.panel-glow{
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(245,158,11,.25);
  filter: blur(14px);
  right: -70px;
  top: 30px;
}

/* Newsletter */
.newsletter{
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow2);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before{
  content:"";
  position:absolute;
  inset:-50px;
  background-image: url("./ornament.jpg");
  background-repeat: repeat;
  background-size: 540px 540px;
  background-position: 50% 0%;
  opacity: 1;
  mix-blend-mode: multiply;
  filter: saturate(1.05) contrast(1.02);
  mask-image: none;
  pointer-events:none;
}
.newsletter > *{
  position: relative;
  z-index: 1;
}
.newsletter-title{
  font-size: 22px;
  margin: 0;
}
.newsletter-copy p{ margin-top: 10px; }
.newsletter-form{
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,1);
  padding: 16px;
}
.newsletter-row{
  display: flex;
  gap: 10px;
}
.newsletter-input{
  flex: 1;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,1);
  padding: 12px 12px;
  outline: none;
}
.newsletter-input:focus{
  border-color: rgba(180, 83, 9, .35);
  box-shadow: 0 0 0 4px rgba(245,158,11,.16);
}
.newsletter-privacy{
  color: var(--muted);
  font-weight: 750;
  margin-top: 10px;
  line-height: 1.5;
  font-size: 13px;
}

/* Подписка: обычный белый фон без орнамента */
#main > section.section.section-newsletter > div > div.newsletter{
  background: #fff !important;
  background-image: none !important;
}
#main > section.section.section-newsletter > div > div.newsletter::before{
  opacity: 0 !important;
  background-image: none !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  mask-image: none !important;
}

/* Footer */
.footer{
  padding: 34px 0 46px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.62);
}
.footer-inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}
.footer-left{ max-width: 460px; }
.footer-logo{
  font-weight: 1100;
  font-size: 16px;
}
.footer-sub{
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
  font-weight: 750;
}
.footer-meta{
  margin-top: 14px;
  color: var(--muted2);
  font-weight: 850;
}
.footer-cols{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(560px, 100%);
}
.footer-col{
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.70);
}
.footer-col-title{
  font-weight: 1100;
  margin-bottom: 10px;
}
.footer-link{
  display: block;
  color: var(--muted);
  font-weight: 900;
  padding: 8px 0;
  transition: color .2s ease, transform .2s ease;
}
.footer-link:hover{
  color: var(--text);
  transform: translateY(-1px);
}
.footer-text{
  color: var(--muted);
  font-weight: 850;
  margin-top: 8px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1080px){
  .hero-grid{ grid-template-columns: 1fr; }
  .pattern-card{ min-height: 380px; }
  .search{ width: 340px; max-width: 50vw; }
  .category-grid{ grid-template-columns: repeat(2, 1fr); }
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
  .why-grid{ grid-template-columns: 1fr; }
  .newsletter{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; }
  .footer-cols{ grid-template-columns: 1fr; width: 100%; }
}

@media (max-width: 720px){
  .nav-desktop{ display: none; }
  .search{ width: 240px; max-width: 42vw; }
  .category-grid{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: 1fr; }
  .hero-ctas .btn{ width: 100%; }
  .pattern-stats{ grid-template-columns: 1fr; }
  .newsletter-row{ flex-direction: column; }
  .newsletter-form button{ width: 100%; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* About page */
.about-crumbs{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight: 850;
  padding: 10px 0 0;
  flex-wrap: wrap;
}
.about-crumbs a{
  color: var(--muted2);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.about-hero{
  margin-top: 16px;
  max-width: 900px;
}
.about-title{
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -.5px;
  font-weight: 1100;
  line-height: 1.05;
}
.about-lead{
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.7;
  font-size: 16px;
}

.about-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.about-card{
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 16px 16px;
}
.about-card-icon{
  width: 44px;
  height: 44px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent2);
  border: 1px solid rgba(20,184,166,.24);
  background: #fff;
}
.about-card-title{
  margin-top: 12px;
  font-weight: 1100;
  font-size: 16px;
}
.about-card-sub{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.6;
  font-size: 14px;
}

.about-split{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.about-section-title{
  font-weight: 1100;
  font-size: 18px;
  margin-bottom: 12px;
}
.about-timeline{
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 18px;
}
.timeline{
  display: grid;
  gap: 14px;
}
.timeline-item{
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
}
.timeline-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 4px;
  background: var(--primary2);
}
.timeline-year{
  font-weight: 1100;
  color: var(--text);
}
.timeline-text{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.6;
  font-size: 14px;
}

.about-faq{
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 18px;
}
.faq-item{
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 12px 12px;
}
.faq-item + .faq-item{
  margin-top: 10px;
}
.faq-summary{
  cursor: pointer;
  font-weight: 1100;
}
.faq-body{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.6;
  font-size: 14px;
}

.values-list{
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
.value-item{
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
}
.value-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--primary2);
  box-shadow: 0 0 0 4px rgba(245,158,11,.20);
}
.value-text{
  color: var(--muted);
  font-weight: 750;
  line-height: 1.6;
  font-size: 14px;
}

@media (max-width: 1080px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-split{ grid-template-columns: 1fr; }
}

/* Cart page */
.cart-crumbs{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight: 850;
  padding: 10px 0 0;
  flex-wrap: wrap;
}
.cart-crumbs a{
  color: var(--muted2);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.cart-head{
  margin-top: 10px;
}

.cart-layout{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  margin-top: 12px;
}
.cart-items-list{
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 12px 12px;
}
.cart-item{
  display:grid;
  grid-template-columns: 124px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.cart-item:last-child{
  border-bottom: none;
}
.cart-item-media{
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  height: 92px;
  overflow: hidden;
  position: relative;
  margin-left: 4px;
}
.cart-item-media .product-bg{
  position:absolute;
  inset:0;
}
.cart-item-media .product-tag{
  top: 10px;
  left: 10px;
}

.cart-item-body{
  display:flex;
  flex-direction: column;
}
.cart-item-meta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.cart-item-sub{
  color: var(--muted);
  font-weight: 750;
  font-size: 14px;
}
.cart-item-remove{
  color: var(--muted2);
  font-weight: 900;
  font-size: 13px;
  text-decoration: underline;
}
.cart-item-remove:hover{
  color: var(--text);
}

.cart-item-bottom{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.qty{
  display:flex;
  align-items:center;
  gap: 8px;
}
.qty-btn{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  font-weight: 1100;
  cursor: pointer;
}
.qty-input{
  width: 64px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 10px 12px;
  outline: none;
  font-weight: 950;
}
.qty-input:focus{
  box-shadow: 0 0 0 4px rgba(245,158,11,.14);
  border-color: rgba(180,83,9,.35);
}

.cart-item-price{
  display:flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 1100;
}

/* Product page */
.product-crumbs{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight: 850;
  padding: 10px 0 0;
  flex-wrap: wrap;
}
.product-crumbs a{
  color: var(--muted2);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.product-layout{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
  margin-top: 12px;
}
.product-main{ min-width: 0; }
.product-gallery{
  background: #fff;
  border-radius: var(--radius2);
  padding: 12px; /* отступ ВНУТРИ галереи */
}
.product-media-large{
  height: 420px;
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  overflow:hidden;
  position: relative;
}
.product-media-large .product-bg{
  position:absolute;
  inset: 0;
}
.product-thumbs{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.thumb{
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  display:block;
  position: relative;
  overflow:hidden;
}
.thumb .product-bg{
  position:absolute;
  inset:0;
}

.product-info{
  margin-top: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 16px;
}
.product-page-title{
  margin: 0;
  font-size: 26px;
  letter-spacing: -.3px;
}
.product-page-sub{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.product-page-sold{
  color: var(--muted);
  font-weight: 900;
}
.product-badges{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.product-tabs{
  margin-top: 16px;
  display:grid;
  gap: 10px;
}
.tab{
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 12px 12px;
}
.tab-summary{
  cursor: pointer;
  font-weight: 1100;
  font-size: 14px;
}
.tab-body{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.7;
  font-size: 14px;
}

.product-buy{
  position: sticky;
  top: 92px;
  align-self: start;
  z-index: 1;
}
.buy-card{
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 16px;
  position: relative;
  top: auto;
}
.buy-price{
  display:flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 1100;
}
.buy-row{
  margin-top: 14px;
}
.buy-row + .btn-full{
  margin-top: 14px;
}
.buy-label{
  font-weight: 1000;
  color: var(--muted2);
  font-size: 13px;
  margin-bottom: 10px;
}
.size-choices{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.size-pill{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  font-weight: 1000;
  color: var(--text);
}
.size-pill-active{
  border-color: rgba(180, 83, 9, .35);
  box-shadow: 0 0 0 4px rgba(245,158,11,.10);
}
.buy-note{
  margin-top: 12px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.6;
  font-size: 13px;
}

.buy-service{
  margin-top: 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 16px;
  position: relative;
  top: auto;
  z-index: auto;
}
.service-item{
  display:flex;
  gap: 12px;
  align-items: flex-start;
}
.service-item + .service-item{
  margin-top: 14px;
}
.service-icon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  font-weight: 1100;
  color: var(--accent2);
}
.service-title{
  font-weight: 1100;
}
.service-sub{
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
  font-size: 13px;
}

.product-related{
  margin-top: 20px;
}
.related-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

@media (max-width: 1080px){
  .product-layout{ grid-template-columns: 1fr; }
  .product-buy{
    position: relative;
    top: auto;
  }
  .buy-card{ position: relative; top: auto; }
  .product-media-large{ height: 360px; }
}
.cart-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  justify-content: flex-start;
}

.cart-summary{
  min-width: 0;
}
.summary-card{
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 16px 16px;
}
.summary-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.summary-label{
  color: var(--muted);
  font-weight: 900;
}
.summary-value{
  color: var(--text);
  font-weight: 1100;
}
.summary-divider{
  height: 1px;
  background: rgba(15, 23, 42, .08);
  margin: 10px 0;
}
.summary-total .summary-label{
  color: var(--text);
}
.summary-total .summary-value{
  font-size: 18px;
}

.promo-row{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 10px;
}
.promo-input{
  flex: 1;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  padding: 12px 12px;
  outline: none;
  font-weight: 900;
}
.promo-input:focus{
  box-shadow: 0 0 0 4px rgba(245,158,11,.14);
  border-color: rgba(180,83,9,.35);
}
.summary-note{
  margin-top: 12px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.6;
  font-size: 13px;
}

@media (max-width: 1080px){
  .cart-layout{
    grid-template-columns: 1fr;
  }
  .cart-items-list{
    padding: 10px 10px;
  }
}

/* Ниже были “жёсткие” правила для прозрачности; отключаем принудительные белые фоны,
   чтобы видеть орнамент/фон-текстуры на `#main`. */

/* Убираем полупрозрачность, которая может появляться через `opacity`/псевдоэлементы */
header,
#main,
footer{
  opacity: 1 !important;
}
header *,
#main *,
footer *{
  opacity: 1 !important;
}
header *::before,
header *::after,
#main *::before,
#main *::after,
footer *::before,
footer *::after{
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

