/* Проба «как Instagram»: сумки крупно на цветных полях палитры бренда, фото из жизни во весь кадр,
   предметная съёмка — отпечатком со скрепкой. Поверх style.css; остальные страницы не меняются. */

/* блоки видны сразу, без проявления при прокрутке */
.js .reveal { opacity: 1; transform: none; }

/* ---------- первый экран ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: min(calc(100svh - var(--top-h)), 980px); }
.hero-photo { margin: 0; position: relative; overflow: hidden; background: var(--beige); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-field { position: relative; background: var(--lime); color: var(--ink); padding: clamp(32px, 5vw, 72px) var(--pad) clamp(40px, 6vw, 88px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; overflow: hidden; }
.hero-word { font-size: clamp(5rem, 10.5vw, 10.5rem); line-height: .84; margin: 0; overflow-wrap: break-word; max-width: 100%; }
.hero-lead { margin: 0; font-size: 19px; line-height: 1.45; max-width: 30ch; }
.hero-hand { margin: 0; color: var(--wine); font-size: clamp(1.6rem, 2.4vw, 2.2rem); transform: rotate(-3deg); }
.hero-btn { margin-top: 6px; }
.hero-btn:hover { background: var(--wine); border-color: var(--wine); }
.hero-field .hero-print { position: absolute; right: clamp(16px, 4vw, 56px); bottom: clamp(28px, 4.5vh, 64px); width: clamp(120px, 13vw, 200px); --r: 4deg; }
.hero-print img { aspect-ratio: 1; object-fit: cover; }

/* отпечаток со скрепкой — как посты бренда в ленте */
.print { position: relative; display: block; background: #fff; padding: 10px 10px 30px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.55);
  transform: rotate(var(--r, -1.4deg)); transition: transform .35s var(--ease); }
.print .clip { position: absolute; top: -20px; right: 22%; width: 16px; height: 42px; border: 2.5px solid #8a8a8a; border-radius: 9px;
  border-bottom-color: transparent; z-index: 2; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-field { padding-top: 36px; }
  .hero-field .hero-print { width: 104px; top: auto; bottom: 28px; right: 18px; }
  .hero-field { padding-bottom: 150px; }
  .hero .flower[data-n] { display: none; }
  .hero-word { font-size: clamp(4.2rem, 21vw, 7rem); }
}

/* ---------- каталог ---------- */
.shop { padding: clamp(56px, 8vw, 112px) var(--pad); }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px);
  max-width: 1480px; margin-inline: auto; }
.shop-head h2 { font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: .9; }
.shop-head p { margin: 0; max-width: 36ch; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); max-width: 1480px; margin: 0 auto; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); text-decoration: none; overflow: hidden; min-height: 0; }
.tile.sk { aspect-ratio: 4 / 5; background: var(--beige); }
.tile-img { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; padding: clamp(28px, 5vw, 64px) clamp(28px, 6vw, 88px) 8px; }
.tile-img .print { width: min(78%, 420px); }
.tile-img .print img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.tile.life .tile-img { padding: 0; }
.tile-img .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .soon { font-size: 2.4rem; opacity: .7; }
.tile .flower { --s: 96px; right: 7%; bottom: 4%; z-index: 3; }
.tile-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no no" "name name" "kind kind" "foot foot";
  gap: 2px 16px; padding: 18px clamp(20px, 3vw, 36px) clamp(22px, 3vw, 34px); }
.tile-no { grid-area: no; font-size: 14px; }
.tile-out { font-weight: 700; font-family: inherit; margin-left: 6px; padding: 1px 8px; background: var(--paper); color: var(--wine); }
.tile-name { grid-area: name; font-size: clamp(2.6rem, 4.4vw, 4.2rem); line-height: .92; }
.tile-kind { grid-area: kind; font-size: 16px; }
.tile-foot { grid-area: foot; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.tile .price { font-family: var(--head); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tile .dots i { width: 18px; height: 18px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ink) 35%, transparent); }
.tile .dots em { font-style: normal; font-size: 14px; }
.tile:hover .print, .tile:focus-visible .print { transform: rotate(0deg) translateY(-6px); }
.tile.life:hover .cover, .tile.life:focus-visible .cover { transform: scale(1.1); }
/* у фото из каталога по краям светлая полоса фона — чуть увеличиваем, чтобы её срезать */
.tile-img .cover { transform: scale(1.06); transition: transform .6s var(--ease); }
/* рамка фокуса — цветом страницы, не цветом текста плитки (на тёмных плитках он светлый) */
.tile:focus-visible { outline: 3px solid #312D2D; outline-offset: 4px; box-shadow: 0 0 0 4px #FDF8F3; }

/* первая сумка — широкая: фото слева, текст справа */
.tile.wide { grid-column: 1 / -1; flex-direction: row; }
.tile.wide .tile-img { flex: 1 1 62%; aspect-ratio: auto; min-height: clamp(360px, 42vw, 620px); }
.tile.wide .tile-text { flex: 1 1 38%; align-content: end; }
.tile.wide .tile-name { font-size: clamp(3.4rem, 6vw, 6rem); }

@media (max-width: 52rem) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile.wide { flex-direction: column; }
  .tile.wide .tile-img { min-height: 0; aspect-ratio: 5 / 4; }
  .tile .flower { --s: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .print, .tile-img .cover { transition: none; }
  .tile:hover .print, .tile.life:hover .cover { transform: rotate(var(--r, -1.4deg)); }
  .tile.life:hover .cover { transform: scale(1.06); }
}
