:root {
  --bg: #e9e7e2;
  --paper: #f5f3ef;
  --ink: #141414;
  --muted: #77736c;
  --line: rgba(20, 20, 20, .14);
  --accent: #c4373b;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }

/* ---------- Шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px 28px;
  background: rgba(233, 231, 226, .82);
  backdrop-filter: blur(10px);
}
.logo { font: 900 22px/1 var(--display); letter-spacing: .14em; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.link { font-weight: 500; font-size: 14px; letter-spacing: .02em; justify-self: start; }
.link:hover { opacity: .6; }
.icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.icon:hover { background: rgba(0,0,0,.06); }
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  position: absolute; top: 0; right: -2px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--ink); color: var(--paper);
  font-size: 10px; font-weight: 600; display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.badge.bump { transform: scale(1.45); }

.menu {
  position: fixed; top: 64px; left: 20px; z-index: 31;
  background: var(--paper); border-radius: 14px; padding: 10px;
  display: flex; flex-direction: column; min-width: 200px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
  animation: pop .25s var(--ease);
}
.menu a { padding: 10px 14px; border-radius: 9px; font-weight: 500; }
.menu a:hover { background: var(--bg); }

/* ---------- Главная: витрина-вешалка ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  padding-top: 70px; position: relative; overflow: hidden;
}
.stage { position: relative; display: grid; place-items: center; }
.bigword {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 900 clamp(90px, 24vw, 380px)/.8 var(--display);
  letter-spacing: -.03em; color: rgba(20,20,20,.06);
  user-select: none; pointer-events: none; white-space: nowrap;
}
.featured {
  position: relative; height: min(56svh, 540px); aspect-ratio: 300 / 345;
  cursor: pointer;
}
.featured .g { position: absolute; inset: 0; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.featured .g.out { opacity: 0; transform: translateY(14px) scale(.96); }
.featured svg, .featured img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,.18)); }
.feat-label {
  position: absolute; left: 28px; bottom: 26px; max-width: 320px;
}
.feat-label .eyebrow { margin-bottom: 6px; }
.feat-label h1 { font: 700 clamp(20px, 2.4vw, 30px)/1.1 var(--display); margin: 0 0 6px; }
.feat-hint { position: absolute; right: 28px; bottom: 26px; color: var(--muted); font-size: 13px; text-align: right; }

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price { font-weight: 600; font-size: 16px; }

.rack { position: relative; padding: 18px 0 30px; }
.rail {
  position: absolute; left: 0; right: 0; top: 30px; height: 6px;
  background: linear-gradient(#b9b5ad, #8d8980); border-radius: 3px;
  box-shadow: 0 3px 6px rgba(0,0,0,.15);
}
.hangers {
  position: relative; display: flex; gap: 6px; padding: 0 28px;
  overflow-x: auto; scrollbar-width: none; justify-content: safe center;
}
.hangers::-webkit-scrollbar { display: none; }
.hanger {
  flex: 0 0 auto; width: 118px; transform-origin: 50% 12px;
  transition: transform .5s var(--ease), opacity .3s;
}
.hanger svg, .hanger img { width: 100%; display: block; filter: drop-shadow(0 10px 12px rgba(0,0,0,.14)); }
.hanger:hover { animation: swing .9s var(--ease); }
.hanger.active { transform: translateY(-6px); }
.hangers:hover .hanger:not(:hover):not(.active) { opacity: .55; }
@keyframes swing {
  0% { transform: rotate(0); } 30% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); } 100% { transform: rotate(0); }
}

/* ---------- Модалка ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(20,20,20,.45); backdrop-filter: blur(6px); padding: 16px;
  animation: fade .25s;
}
.modal-card {
  position: relative; width: min(920px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  background: var(--paper); border-radius: 22px; padding: 30px;
  animation: pop .45s var(--ease);
}
.modal-views { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.view { background: var(--bg); border-radius: 16px; padding: 24px 18px 14px; text-align: center; }
.view svg, .view img { width: 100%; max-height: 380px; display: block; }
.view span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.view:nth-child(1) { animation: slideL .6s var(--ease); }
.view:nth-child(2) { animation: slideR .6s var(--ease); }
.modal-info { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.modal-info h2 { font: 700 24px/1.15 var(--display); margin: 4px 0; }
.close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  font-size: 24px; line-height: 1; display: grid; place-items: center;
}
.close:hover { background: rgba(0,0,0,.07); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--paper); border-radius: 999px;
  padding: 14px 26px; font-weight: 600; font-size: 14px; letter-spacing: .02em;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); background: #2b2b2b; }
.btn:active { transform: translateY(1px); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- Магазин ---------- */
.page { padding: 100px 28px 60px; max-width: 1280px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font: 900 clamp(34px, 6vw, 72px)/.95 var(--display); margin: 0; letter-spacing: -.02em; }
.search {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 12px 18px; font: inherit; width: min(320px, 100%); outline: none;
}
.search:focus { border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { display: block; }
.card-img {
  background: var(--paper); border-radius: 18px; padding: 26px 22px; aspect-ratio: 4 / 5;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.card-img .g { width: 100%; transition: transform .6s var(--ease), opacity .4s; }
.card-img .g.back { position: absolute; inset: 26px 22px; width: auto; opacity: 0; }
.card:hover .card-img .g.front { opacity: 0; transform: scale(.97); }
.card:hover .card-img .g.back { opacity: 1; }
.card-img svg, .card-img img { width: 100%; height: 100%; display: block; object-fit: contain; }
.tag {
  position: absolute; top: 14px; left: 14px; background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em;
}
.card-meta { display: flex; justify-content: space-between; gap: 10px; padding: 12px 4px 0; font-weight: 500; }
.card-meta span:last-child { white-space: nowrap; }
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- Товар ---------- */
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.gallery { background: var(--paper); border-radius: 22px; padding: 36px; position: sticky; top: 90px; }
.gallery-main { aspect-ratio: 300 / 345; position: relative; }
.gallery-main .g { position: absolute; inset: 0; transition: opacity .4s, transform .5s var(--ease); }
.gallery-main .g.hidden { opacity: 0; transform: rotateY(70deg); }
.gallery-main svg, .gallery-main img { width: 100%; height: 100%; display: block; object-fit: contain; }
.thumbs { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.thumb { width: 72px; padding: 8px; border-radius: 12px; background: var(--bg); border: 2px solid transparent; }
.thumb.on { border-color: var(--ink); }
.thumb svg, .thumb img { width: 100%; display: block; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.info h1 { font: 700 clamp(26px, 3vw, 38px)/1.1 var(--display); margin: 6px 0 12px; }
.info .price { font-size: 22px; margin-bottom: 18px; }
.info p { color: #3b3935; max-width: 46ch; }
.field { margin: 22px 0 0; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.select {
  width: 100%; max-width: 320px; appearance: none; font: inherit; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.select.error { border-color: var(--accent); animation: shake .4s; }
.buy { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 44px; height: 46px; font-size: 18px; }
.qty span { min-width: 26px; text-align: center; font-weight: 600; }
.perks { margin-top: 30px; border-top: 1px solid var(--line); }
.perks div { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; }
.perks span { color: var(--muted); }

/* ---------- Корзина ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(20,20,20,.35); animation: fade .25s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(420px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  animation: slideIn .4s var(--ease);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font: 700 18px var(--display); }
.drawer-head .close { position: static; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .mini { background: var(--bg); border-radius: 10px; padding: 6px; }
.line .mini svg, .line .mini img { width: 100%; display: block; }
.line b { display: block; font-weight: 600; font-size: 14px; }
.line small { color: var(--muted); }
.line .qty { margin-top: 6px; }
.line .qty button { width: 30px; height: 30px; font-size: 15px; }
.remove { font-size: 12px; color: var(--muted); text-decoration: underline; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 14px; }
.note { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* ---------- О бренде ---------- */
.about { max-width: 760px; }
.about p { font-size: 18px; color: #3b3935; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 60;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--ink); color: var(--paper); border-radius: 14px;
  padding: 14px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25); transition: transform .45s var(--ease), opacity .3s;
  font-size: 14px; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast button { text-decoration: underline; font-weight: 600; white-space: nowrap; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes slideL { from { opacity: 0; transform: translateX(40px) rotateY(30deg); } }
@keyframes slideR { from { opacity: 0; transform: translateX(-40px) rotateY(-30deg); } }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Мобильные ---------- */
@media (max-width: 760px) {
  .top { padding: 14px 16px; }
  .hide-sm { display: none; }
  .logo { font-size: 18px; }
  .featured { height: 44svh; }
  .feat-label { left: 16px; bottom: 10px; }
  .feat-hint { display: none; }
  .hangers { padding: 0 16px; justify-content: flex-start; }
  .hanger { width: 92px; }
  .page { padding: 84px 16px 40px; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; padding: 22px; }
  .modal-card { padding: 22px 16px; }
  .modal-views { gap: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-img { padding: 14px; border-radius: 14px; }
  .card-img .g.back { inset: 14px; }
  .card-meta { flex-direction: column; gap: 0; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ---------- Вешалка по центру, как в ролике ---------- */
.hero-rack { display: flex; flex-direction: column; justify-content: center; }
.hero-rack .rack { padding: 40px 0 10px; }
.hero-rack .rail { top: 52px; }
.hero-rack .hanger { width: clamp(150px, 15vw, 230px); }
.hero-rack .hanger:hover { transform: translateY(-10px) scale(1.06); animation: none; }
.hero-rack .hangers:hover .hanger:not(:hover) { opacity: .45; filter: blur(1px); }
.rack-label { position: relative; text-align: center; margin-top: 28px; }
.rack-label h1 { font: 700 clamp(22px, 2.6vw, 34px)/1.1 var(--display); margin: 6px 0; }
.rack-label .feat-hint { position: static; text-align: center; margin-top: 14px; }
@media (max-width: 700px) { .hero-rack .hanger { width: 130px; } }