:root{
  --bg:#f6f1eb;
  --surface:#fffdfa;
  --surface-strong:#ffffff;
  --text:#241913;
  --muted:#6f6258;
  --line:#e6d9cc;
  --accent:#2563eb;
  --accent-dark:#1d4ed8;
  --accent-soft:#dbeafe;
  --warm:#b66a4e;
  --shadow:0 14px 36px rgba(71,46,31,.10);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Segoe UI",Tahoma,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.88), transparent 26%),
    linear-gradient(180deg, #fffaf6 0%, var(--bg) 100%);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.container{
  width:min(1240px, calc(100% - 28px));
  margin:0 auto;
  padding:18px 0 36px;
}
.site-header,
.content-panel,
.home-hero,
.info-page{
  background:rgba(255,253,250,.94);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.site-header{padding:18px 20px;margin-bottom:18px}
.site-header__top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.brand-link{
  display:inline-block;
  font-size:13px;
  font-weight:800;
  letter-spacing:.16em;
  color:var(--warm);
  text-transform:uppercase;
  margin-bottom:10px;
}
.page-title{
  margin:0;
  font-size:clamp(28px,4vw,42px);
  line-height:1.08;
}
.page-lead{
  max-width:760px;
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.55;
}
.instagram-link{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--accent-dark);
  font-weight:600;
}
.section-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.section-nav__item{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.7);
  color:var(--muted);
  font-size:14px;
}
.section-nav__item.is-active{
  background:var(--accent-soft);
  border-color:#9dc1ff;
  color:var(--accent-dark);
}
.home-hero{padding:24px 22px;margin-bottom:20px}
.home-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.home-card{
  min-height:132px;
  padding:18px;
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#fff7ef);
  border:1px solid var(--line);
}
.home-card h2{margin:0 0 10px;font-size:20px}
.home-card p{margin:0;color:var(--muted);line-height:1.45;font-size:14px}
.content-panel{padding:18px 18px 24px}
.filters{
  display:grid;
  gap:12px;
  margin-bottom:18px;
}
.search-row,
.select-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.field,
.select{
  width:100%;
  min-height:46px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  font-size:15px;
}
.search-row .field{flex:1 1 300px}
.select-row .select{flex:1 1 220px}
.filter-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.filter-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}
.filter-button.is-active{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.card{
  display:flex;
  flex-direction:column;
  border-radius:20px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
}
.card__image-link{display:block;background:#f5ece1}
.card__image{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.card__body{
  display:grid;
  gap:8px;
  padding:12px;
}
.card__title{
  margin:0;
  font-size:16px;
  line-height:1.32;
  overflow-wrap:anywhere;
}
.card__price{
  margin:0;
  font-weight:700;
  color:#2b231d;
}
.card__meta{
  margin:0;
  font-size:13px;
  color:var(--muted);
  line-height:1.4;
}
.card__status{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  margin:0;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  overflow-wrap:anywhere;
}
.status-in-stock{background:#e7f6eb;color:#2d7a45}
.status-partial{background:#dbeafe;color:#1d4ed8}
.status-out-of-stock{background:#fce8e6;color:#934238}
.detail-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border-radius:12px;
  background:#f6ede4;
  color:#3a2d23;
  font-weight:600;
}
.page-meta{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  color:var(--muted);
  margin-bottom:12px;
}
.empty-state{
  padding:24px 10px;
  text-align:center;
  color:var(--muted);
  line-height:1.55;
}
.detail-layout{
  display:grid;
  grid-template-columns:minmax(0, 480px) minmax(0, 1fr);
  gap:18px;
}
.detail-image{
  width:100%;
  aspect-ratio:1/1;
  border-radius:22px;
  object-fit:cover;
  border:1px solid var(--line);
  background:#f5ece1;
}
.detail-panel{
  display:grid;
  gap:12px;
  align-content:start;
}
.detail-title{margin:0;font-size:clamp(28px,3.5vw,42px);line-height:1.1}
.detail-price{margin:0;font-size:26px;font-weight:800}
.detail-list{
  margin:0;
  padding-left:20px;
  line-height:1.7;
}
.back-link{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  width:max-content;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
}
.pagination{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  margin-top:22px;
}
.pagination__link{
  min-width:42px;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
}
.pagination__link.is-current{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.pagination__link.is-disabled{
  opacity:.45;
  pointer-events:none;
}
.site-footer{
  padding:18px 4px 0;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}
.info-page{padding:22px}
.info-page h1{margin-top:0}
.info-page p{color:var(--muted);line-height:1.65}
.section-note{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}
@media (max-width:1100px){
  .home-grid,.grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:860px){
  .site-header__top,
  .detail-layout{grid-template-columns:1fr;display:grid}
  .home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .container{width:min(100% - 16px, 1240px);padding:10px 0 24px}
  .site-header,.content-panel,.home-hero,.info-page{border-radius:18px}
  .site-header{padding:14px}
  .home-hero{padding:18px 14px}
  .content-panel{padding:14px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .home-grid{gap:10px}
  .home-card{min-height:116px;padding:14px}
  .card__body{padding:10px;gap:6px}
  .card__title{font-size:14px}
  .card__price{font-size:14px}
  .detail-price{font-size:22px}
  .detail-title{font-size:28px}
  .instagram-link{min-height:38px;font-size:14px}
}

.height-filter{
  position:relative;
  flex:1 1 220px;
}
.height-filter__button{
  min-height:46px;
  padding:0 44px 0 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  font-size:15px;
  line-height:46px;
  cursor:pointer;
  list-style:none;
}
.height-filter__button::-webkit-details-marker{display:none}
.height-filter__button::after{
  content:"";
  position:absolute;
  right:16px;
  top:19px;
  width:8px;
  height:8px;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(45deg);
}
.height-filter[open] .height-filter__button::after{
  top:22px;
  transform:rotate(225deg);
}
.height-filter__menu{
  position:absolute;
  z-index:20;
  left:0;
  right:0;
  top:calc(100% + 6px);
  display:grid;
  gap:2px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 34px rgba(68,49,34,.14);
}
.height-filter__option{
  display:block;
  width:100%;
  padding:9px 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--text);
  font-family:inherit;
  font-size:15px;
  text-align:left;
  cursor:pointer;
}
.height-filter__option:hover,
.height-filter__option.is-active{
  background:#fff7ef;
}
.height-filter__menu .height-filter__option:first-child{
  font-size:0;
}
.height-filter__menu .height-filter__option:first-child::before{
  content:"\0423\0441\0456 \0432\0438\0441\043E\0442\0438";
  font-size:15px;
}
.height-filter__option.is-in-stock{color:#2d7a45}
.height-filter__option.is-out-of-stock{color:#934238}
