/* AMOR: светлая (белый и кобальт) и тёмная (чёрный и сиреневый, как пост ICICLE). */
:root {
  --bg: #ffffff; --fg: #111111; --muted: #6b6b6b; --soft: #f3f3f1; --line: #e4e4e0;
  --accent: #1a2fe0; --title: #1a2fe0; --btn: #1a2fe0; --btn-fg: #ffffff; --foot: #1a2fe0; --foot-fg: #ffffff;
  --big: 'League Gothic', 'Oswald', 'Arial Narrow', sans-serif;
  --hand: 'Caveat', cursive;
  --text: 'Inter', system-ui, -apple-system, sans-serif;
}
[data-theme="dark"] {
  --bg: #0b0b0b; --fg: #ececec; --muted: #9a9a9a; --soft: #151515; --line: #262626;
  --title: #b79bb0; --btn: #ececec; --btn-fg: #111111; --foot: #151515; --foot-fg: #bdbdbd;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--text); transition: background .2s, color .2s; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.big { font-family: var(--big); font-weight: 400; text-transform: uppercase; letter-spacing: .5px; line-height: .92; color: var(--title); }
.hand { font-family: var(--hand); font-weight: 500; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand .hand { font-size: 23px; }
.top nav { display: flex; justify-content: center; gap: 18px; font-size: 14px; }
.top nav a { text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--accent); }
[data-theme="dark"] .top nav a:hover { color: var(--title); }
.tools { display: flex; align-items: center; gap: 10px; font-size: 13px; }
/* языки как в её шапке Instagram: ru / срп / eng, тем же почерком, что меню */
.langs { font: 700 22px/1 var(--hand); display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.langs i { font-style: normal; opacity: .35; }
.langs a { opacity: .45; text-decoration: none; cursor: pointer; position: relative; z-index: 0; padding: 2px 1px; }
.langs a:hover { opacity: .8; }
.langs a.on { opacity: 1; color: var(--title); }
.langs a.on::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: 2px; height: 8px; border-radius: 5px; z-index: -1;
  background: color-mix(in srgb, var(--title) 22%, transparent); transform: rotate(-2deg); }
@media (max-width: 760px) { .langs { font-size: 20px; } }
button.theme { border: 1px solid currentColor; background: none; color: inherit; border-radius: 999px; padding: 0; display: inline-flex; overflow: hidden; cursor: pointer; font-size: 12px; }
button.theme span { padding: 3px 9px; }
[data-theme="light"] button.theme .sun, [data-theme="dark"] button.theme .moon { background: var(--fg); color: var(--bg); }

/* кнопки */
.btn { display: inline-block; border: 1px solid var(--btn); background: var(--btn); color: var(--btn-fg); padding: 11px 20px; border-radius: 999px;
  font: 500 14px var(--text); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn.ghost { background: transparent; color: var(--btn); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: default; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: var(--fg); color: var(--bg); }
.badge.sold { background: var(--muted); }

/* главная */
.hero { position: relative; background: var(--soft); }
.hero img { width: 100%; max-height: min(78vh, 760px); object-fit: contain; margin: 0 auto; }
.hero .go { position: absolute; right: 18px; bottom: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.hero.empty { padding: 60px 20px; text-align: center; }
.hero .biglogo { width: 120px; margin: 0 auto 16px; }
.sec { padding: 28px max(16px, 3vw) 40px; max-width: 1240px; margin: 0 auto; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sechead h2, .sec > h2 { font-size: clamp(44px, 9vw, 72px); margin: 0 0 14px; }
.sechead .hand { font-size: 24px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 16px; }

/* карточка */
.card .ph { position: relative; display: block; aspect-ratio: 1; background: var(--soft); border-radius: 6px; overflow: hidden; }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.card .ph img.alt { opacity: 0; }
@media (hover: hover) { .card .ph:hover img.alt { opacity: 1; } }
.card .ph .badge { position: absolute; left: 10px; top: 10px; }
.card.sold .ph img { filter: grayscale(.7); opacity: .75; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; }
.card .nm { font-size: 32px; text-decoration: none; }
.card .mat { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.price { font-weight: 600; white-space: nowrap; }
.price small { font-weight: 400; color: var(--muted); }
.addwrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note { font-size: 13px; color: var(--muted); }

/* страница вещи */
.item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; max-width: 1240px; margin: 0 auto; padding: 24px max(16px, 3vw); }
.carousel { position: relative; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 6px; background: var(--soft); }
.track::-webkit-scrollbar { display: none; }
.track img { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: contain; scroll-snap-align: start; }
.arr { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); color: var(--fg);
  font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.arr.l { left: 10px; } .arr.r { right: 10px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--title); }
.info h1 { font-size: clamp(64px, 11vw, 110px); margin: 6px 0 4px; word-break: break-word; }
.info .phrase { font-size: 28px; margin: 0 0 10px; }
.info .back { font-size: 13px; color: var(--muted); text-decoration: none; }
.pricebig { font-size: 20px; }
.descr { white-space: pre-line; }
details { border-top: 1px solid var(--line); padding: 12px 0; margin-top: 8px; }
details summary { cursor: pointer; font-weight: 500; }
details p { color: var(--muted); }
.info .addwrap { margin: 18px 0 10px; }
.missing { display: block; text-align: center; padding: 80px 20px; }

/* текстовые страницы и подвал */
.page { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; }
.page h1 { font-size: clamp(56px, 12vw, 96px); margin: 0 0 18px; }
.page .sign { font-size: 30px; color: var(--title); }
.foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px max(16px, 3vw) calc(18px + env(safe-area-inset-bottom));
  background: var(--foot); color: var(--foot-fg); font: 700 22px/1.1 var(--hand); align-items: baseline; }
.foot .links { display: inline-flex; gap: 16px; }
.foot .links a { text-decoration: none; position: relative; z-index: 0; padding: 2px 1px; }
.foot .links a::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: 2px; height: 8px; border-radius: 5px; z-index: -1;
  background: currentColor; opacity: .25; transform: rotate(-2deg); }
@media (max-width: 760px) { .foot { font-size: 20px; } }

/* телефон */
@media (max-width: 760px) {
  .top { grid-template-columns: auto auto; row-gap: 6px; }
  .top nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 10px; font-size: 13.5px; overflow-x: auto; }
  .brand .hand { display: none; }
  .item { grid-template-columns: 1fr; gap: 18px; padding-top: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .card .nm { font-size: 26px; }
  .card .row { flex-direction: column; gap: 2px; }
  .card .btn { padding: 9px 14px; font-size: 13px; }
  .hero .go { right: 12px; bottom: 12px; }
  .arr { display: none; }
}

/* корзина и заказ */
.cart .lines { list-style: none; padding: 0; margin: 0 0 12px; }
.cart .lines li { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart .lines img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cart .lines .nm { font-size: 28px; text-decoration: none; }
.cart .rm { background: none; border: 0; color: var(--muted); font: 13px var(--text); cursor: pointer; text-decoration: underline; }
.cart .total { font-size: 18px; } .cart .total small { color: var(--muted); }
.cart .gone { background: var(--soft); border-left: 3px solid var(--title); padding: 10px 12px; }
form.order { margin-top: 26px; display: grid; gap: 14px; }
form.order h2 { font-size: 48px; margin: 0; }
form.order label { display: grid; gap: 6px; font-size: 14px; }
form.order input, form.order textarea, form.order select { font: 16px var(--text); color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; width: 100%; }
form.order .pair { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
form.order .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form.order .err { color: #c8102e; min-height: 1em; margin: 0; }
.thanks .num { font-size: 22px; font-weight: 600; }
.thanks .sign { font-size: 30px; color: var(--title); }

/* скрытое скрыто, даже если у блока свой display */
[hidden] { display: none !important; }
/* выпадающие списки в цветах сайта, без системного вида */
select { -webkit-appearance: none; appearance: none; background-color: var(--bg); color: var(--fg); padding-right: 34px !important;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

/* шапка-листалка: посты сменяются плавно, показанный медленно приближается */
.hero .stage { position: relative; aspect-ratio: 4 / 3; max-height: min(78vh, 760px); margin: 0 auto; overflow: hidden; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.hero .slide.on { opacity: 1; pointer-events: auto; }
.hero .slide img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.hero .slide.on img { animation: amor-zoom 7s ease-out both; }
@keyframes amor-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero .go { transition: opacity .3s; }
.hdots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.hdots button { pointer-events: auto; width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(0,0,0,.25); cursor: pointer; }
.hdots button.on { background: var(--accent); width: 22px; border-radius: 4px; transition: width .3s; }
[data-theme="dark"] .hdots button { background: rgba(255,255,255,.3); }
[data-theme="dark"] .hdots button.on { background: var(--title); }
@media (min-width: 761px) { .hero .stage { width: min(100%, calc(min(78vh, 760px) * 4 / 3)); } .hdots { bottom: 24px; } }
/* «уменьшить движение»: без приближения, плавная смена кадров остаётся */
@media (prefers-reduced-motion: reduce) { .hero .slide.on img { animation: none; } .hero .slide { transition-duration: .6s; } }

/* точки шапки: видимая точка маленькая, зона касания 44px под палец */
.hdots { gap: 0; bottom: 4px; }
.hdots button { width: 44px; height: 44px; background: none !important; border-radius: 0; display: grid; place-items: center; }
.hdots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.25); transition: width .3s, background .3s; }
.hdots button.on { width: 44px; }
.hdots button.on::before { width: 22px; border-radius: 4px; background: var(--accent); }
[data-theme="dark"] .hdots button::before { background: rgba(255,255,255,.3); }
[data-theme="dark"] .hdots button.on::before { background: var(--title); }
@media (min-width: 761px) { .hdots { bottom: 14px; } }

/* меню от руки, как «by Amor» и её подписи камней; открытый раздел подчёркнут маркером */
.top nav { align-items: center; gap: 30px; }
.top nav a { font: 700 25px/1 var(--hand); color: var(--fg); position: relative; padding: 4px 2px; white-space: nowrap; z-index: 0; }
.top nav a::after { content: ''; position: absolute; left: -3px; right: -3px; bottom: 3px; height: 9px; border-radius: 6px; z-index: -1;
  background: color-mix(in srgb, var(--title) 22%, transparent); transform: rotate(-2deg) scaleX(0); transform-origin: left; transition: transform .25s ease; }
.top nav a:hover::after, .top nav a.here::after { transform: rotate(-2deg) scaleX(1); }
.top nav a.here { color: var(--title); }
.top nav .cart-link { color: var(--title); }
.top nav .cart-link.bump { animation: amor-bump .45s ease; display: inline-block; }
@keyframes amor-bump { 30% { transform: scale(1.15) rotate(-3deg); } 60% { transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .top nav .cart-link.bump { animation: none; } .top nav a::after { transition: none; } }
@media (max-width: 760px) {
  .top nav { gap: 4px; justify-content: space-between; padding: 0; }
  .top nav a { font-size: clamp(18px, 5.3vw, 23px); }
}
