@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --wine: #4f263a;
  --wine-dark: #3a1a2a;
  --wine-deep: #2c1420;
  --gold: #c19a3f;
  --gold-soft: #e6d3a3;
  --bg: #faf6f1;
  --surface: #ffffff;
  --ink: #2a2026;
  --muted: #8d7f88;
  --line: #ece3de;
  --radius: 18px;
  --shadow-s: 0 2px 10px rgba(44, 20, 32, .06);
  --shadow-m: 0 14px 40px rgba(44, 20, 32, .12);
  --shadow-l: 0 30px 80px rgba(44, 20, 32, .25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
button { font: inherit; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; font-weight: 600; color: var(--wine-deep); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; border: none;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s, border-color .25s, color .25s;
}
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 10px 24px rgba(79, 38, 58, .28); }
.btn-primary:hover { background: var(--wine-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 38, 58, .34); }
.btn-ghost { background: transparent; color: var(--wine); border: 1.5px solid rgba(79, 38, 58, .25); }
.btn-ghost:hover { border-color: var(--wine); background: rgba(79, 38, 58, .05); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--wine); color: var(--wine); background: rgba(79, 38, 58, .04); }
.btn-block { width: 100%; }

/* ===== Шапка ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 241, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; position: relative; }
.logo { font-size: 1.3rem; text-decoration: none; letter-spacing: .3px; white-space: nowrap; }
.logo span { color: var(--gold); font-style: italic; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold); border-radius: 2px; transition: width .25s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active, .nav a:hover { color: var(--wine); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--wine); color: #fff; border: none;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; transition: .25s; white-space: nowrap;
}
.cart-btn:hover { background: var(--wine-dark); }
.cart-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--gold); color: #fff; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center;
}
.burger { display: none; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 90px 0 76px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 420px at 85% 8%, rgba(193, 154, 63, .16), transparent 60%),
    radial-gradient(520px 400px at 4% 92%, rgba(79, 38, 58, .09), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--wine); font-size: .78rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  box-shadow: var(--shadow-s);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-text > p { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; list-style: none; }
.hero-stats b { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--wine); display: block; line-height: 1.25; }
.hero-stats span { font-size: .82rem; color: var(--muted); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-orb {
  width: min(400px, 88%); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(160deg, #5a2f47, var(--wine-deep));
  box-shadow: var(--shadow-l); display: grid; place-items: center;
}
.hero-orb .urn-art { fill: rgba(255, 255, 255, .3); width: 52%; animation: floaty 5.5s ease-in-out infinite; }
.hero-ring {
  position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(193, 154, 63, .45); animation: pulse 6s ease-in-out infinite;
}
.hero-ring:nth-child(2) { width: 92%; border-color: rgba(193, 154, 63, .22); animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.05); opacity: .4; } }

/* ===== Преимущества ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; gap: 18px; align-items: flex-start;
  box-shadow: var(--shadow-s); transition: transform .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.feature-ic {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; color: var(--wine);
  background: linear-gradient(150deg, rgba(193, 154, 63, .18), rgba(79, 38, 58, .08));
  display: grid; place-items: center;
}
.feature-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ===== Секции ===== */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.link-more { background: none; border: none; color: var(--wine); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color .2s; }
.link-more:hover { color: var(--gold); }

/* ===== Сетка и карточки ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-s); transition: transform .3s, box-shadow .3s;
  animation: rise .5s both;
}
.product-card:nth-child(2) { animation-delay: .06s; }
.product-card:nth-child(3) { animation-delay: .12s; }
.product-card:nth-child(4) { animation-delay: .18s; }
.product-card:nth-child(5) { animation-delay: .24s; }
.product-card:nth-child(6) { animation-delay: .3s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.product-media {
  position: relative; aspect-ratio: 4 / 4.6; cursor: pointer; overflow: hidden;
  background: linear-gradient(165deg, var(--g1), var(--g2));
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px;
}
.product-media .urn-art { fill: rgba(255, 255, 255, .55); width: 44%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); transition: transform .35s; }
.product-card:hover .product-media .urn-art { transform: translateY(-6px) scale(1.05); }
.product-tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px);
  font-size: .72rem; font-weight: 600; color: var(--wine); letter-spacing: .4px; text-transform: uppercase;
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.product-name { font-size: 1.15rem; cursor: pointer; transition: color .2s; }
.product-name:hover { color: var(--gold); }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-weight: 700; font-size: 1.15rem; color: var(--wine); }
.product-buy { margin-top: 4px; }

/* ===== Пилюля счётчика ===== */
.qty-pill {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--wine); border-radius: 999px; background: #fff;
  height: 48px; padding: 0 6px;
}
.qty-btn {
  width: 40px; height: 38px; border: none; background: transparent; color: var(--wine);
  font-size: 1.25rem; font-weight: 700; line-height: 1; border-radius: 999px; transition: .2s;
}
.qty-btn:hover { background: var(--wine); color: #fff; }
.qty-num { font-weight: 700; min-width: 28px; text-align: center; }

/* ===== Панель управления каталогом ===== */
.toolbar {
  position: sticky; top: 72px; z-index: 60; padding: 14px 0;
  background: rgba(250, 246, 241, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.search {
  flex: 1 1 220px; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 18px; height: 46px; transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(79, 38, 58, .08); }
.search svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search input { border: none; outline: none; background: none; width: 100%; font: inherit; font-size: .95rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--muted); font-weight: 600; font-size: .85rem; transition: .2s;
}
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip.active { background: var(--wine); border-color: var(--wine); color: #fff; box-shadow: 0 6px 16px rgba(79, 38, 58, .25); }
.toolbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.found-count { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.sort select {
  appearance: none; -webkit-appearance: none; height: 46px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; padding: 0 36px 0 16px;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--wine); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234f263a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}

/* ===== Заголовок страницы каталога ===== */
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page-head p { color: var(--muted); }

/* ===== Пустой результат ===== */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .big { font-size: 2.6rem; display: block; margin-bottom: 12px; }

/* ===== Окно товара ===== */
.product-overlay {
  position: fixed; inset: 0; z-index: 900; padding: 20px;
  background: rgba(28, 12, 20, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: fade .25s;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.product-modal {
  position: relative; background: var(--surface); border-radius: 24px;
  max-width: 920px; width: 100%; max-height: 92vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1.05fr;
  box-shadow: var(--shadow-l);
  animation: pop .3s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(14px); } to { opacity: 1; transform: none; } }
.modal-media {
  background: linear-gradient(165deg, var(--g1), var(--g2));
  min-height: 420px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 36px;
}
.modal-media .urn-art { fill: rgba(255, 255, 255, .55); width: 56%; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .25)); }
.modal-info { padding: 36px 34px; display: flex; flex-direction: column; gap: 14px; }
.modal-info h3 { font-size: 1.7rem; line-height: 1.2; }
.modal-price { font-size: 1.35rem; font-weight: 700; color: var(--wine); }
.modal-desc { color: var(--muted); font-size: .97rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec { background: var(--bg); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; }
.spec span { color: var(--muted); }
.color-dots { display: flex; gap: 10px; }
.color-dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--c);
  border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); transition: .2s;
}
.color-dot.active { box-shadow: 0 0 0 2.5px var(--wine); transform: scale(1.1); }
.field-label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.modal-buy { display: flex; gap: 12px; align-items: stretch; margin-top: 4px; }
.modal-buy .qty-pill { flex-shrink: 0; }
.modal-add { flex: 1; }
.modal-sum { color: var(--muted); font-size: .9rem; }
.modal-sum b { color: var(--wine); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .9); color: var(--wine); font-size: 1.5rem; line-height: 1;
  transition: transform .25s, background .25s;
}
.modal-close:hover { transform: rotate(90deg); background: #fff; }

/* ===== Корзина ===== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(28, 12, 20, .5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; justify-content: flex-end; animation: fade .25s;
}
.cart-panel {
  width: 430px; max-width: 100%; height: 100%;
  background: var(--surface); display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .2);
  animation: slide .3s cubic-bezier(.2, .9, .3, 1);
}
@keyframes slide { from { transform: translateX(60px); opacity: 0; } to { opacity: 1; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.3rem; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--bg); color: var(--wine); font-size: 1.3rem; line-height: 1; transition: .2s;
}
.icon-btn:hover { background: var(--wine); color: #fff; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: 14px; background: var(--c); display: grid; place-items: center; }
.cart-thumb .urn-art { fill: rgba(255, 255, 255, .7); width: 55%; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cart-item-name { font-weight: 600; }
.cart-item-color { font-size: .8rem; color: var(--muted); }
.cart-item-info .qty-pill { height: 38px; width: 136px; }
.cart-item-info .qty-btn { width: 34px; height: 30px; font-size: 1.05rem; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-x {
  border: none; background: var(--bg); width: 28px; height: 28px; border-radius: 50%;
  color: var(--muted); font-size: 1.1rem; line-height: 1; transition: .2s;
}
.cart-x:hover { background: #ffd9d9; color: #c0392b; }
.cart-item-sum { font-weight: 700; white-space: nowrap; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.cart-empty-art { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.cart-foot { padding: 18px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 1.05rem; }
.cart-total-row b { font-size: 1.35rem; color: var(--wine); }
.cart-actions { display: flex; gap: 10px; }
.cart-actions .btn { flex: 1; padding: 13px 10px; font-size: .92rem; }

/* ===== Форма заказа ===== */
.order-view { padding: 20px 22px; overflow-y: auto; flex: 1; }
.order-view h3 { font-size: 1.3rem; margin-bottom: 4px; }
.order-sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: var(--bg); transition: .2s;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--wine); background: #fff; box-shadow: 0 0 0 4px rgba(79, 38, 58, .08);
}
.form-error { display: none; margin-top: 6px; font-size: .8rem; color: #d64545; }
.form-group.has-error .form-error { display: block; }
.form-group.has-error .form-input { border-color: #d64545; background: #fff5f5; }
.order-view .btn { width: 100%; }
.order-view .btn + .btn { margin-top: 10px; }

/* ===== Чек ===== */
.receipt-view { padding: 20px 22px; overflow-y: auto; flex: 1; }
.receipt-success {
  background: #eef7ef; color: #2f6b3f; border-radius: 14px;
  padding: 14px 18px; font-weight: 600; font-size: .95rem; margin-bottom: 16px;
}
.receipt-number { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--wine); }
.receipt-date { color: var(--muted); font-size: .9rem; margin: 4px 0 16px; }
.receipt-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 14px; }
.receipt-table th, .receipt-table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.receipt-table th { color: var(--muted); font-weight: 500; }
.receipt-table .num { text-align: right; }
.receipt-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 1.05rem; }
.receipt-total b { font-size: 1.3rem; color: var(--wine); }
.receipt-customer { white-space: pre-line; font-size: .88rem; color: var(--muted); margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }

/* ===== Уведомление ===== */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--wine-deep); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; box-shadow: var(--shadow-m); opacity: 0; pointer-events: none;
  transition: .3s; z-index: 1200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Призыв к действию ===== */
.cta { padding: 20px 0 70px; }
.cta-banner {
  background: linear-gradient(135deg, var(--wine), var(--wine-deep));
  border-radius: 28px; padding: 60px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 154, 63, .35), transparent 70%);
  top: -160px; right: -120px;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; position: relative; }
.cta-banner p { color: rgba(255, 255, 255, .75); margin-bottom: 26px; position: relative; }
.cta-banner .btn { position: relative; }
.cta-banner .btn-primary { background: var(--gold); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.cta-banner .btn-primary:hover { background: #ab8632; }

/* ===== Подвал ===== */
.site-footer { background: var(--wine-deep); color: rgba(255, 255, 255, .7); padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.footer-about p { font-size: .92rem; max-width: 340px; }
.footer-logo { color: #fff; font-size: 1.3rem; display: inline-block; margin-bottom: 12px; text-decoration: none; }
.footer-logo span { color: var(--gold); font-style: italic; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255, 255, 255, .7); text-decoration: none; transition: .2s; font-size: .95rem; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; font-size: .85rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ===== Адаптив ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .features { grid-template-columns: 1fr; }
  .product-modal { grid-template-columns: 1fr; max-width: 560px; }
  .modal-media { min-height: 280px; }
  .modal-media .urn-art { width: 38%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 48px 0; }
  .modal-info { padding: 24px 20px; }
  .spec-grid { grid-template-columns: 1fr; }
  .modal-buy { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
@media (max-width: 860px) {
  .header-inner { gap: 14px; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; margin: 0;
    background: #fff; flex-direction: column; padding: 20px; gap: 14px;
    display: none; box-shadow: var(--shadow-m); border-bottom: 1px solid var(--line);
  }
  body.nav-open .nav { display: flex; }
  .burger {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
    color: var(--wine); font-size: 1.2rem; margin-left: auto;
  }
  .toolbar { top: 68px; }
}
/* ===== Реальные фото в карточках ===== */
.product-media, .modal-media {
    position: relative;
}

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

.product-card:hover .product-photo {
    transform: scale(1.04);
    transition: transform .5s;
}

.modal-media {
    overflow: hidden;
}
.cart-thumb {
    position: relative;
    overflow: hidden;
}

    .cart-thumb .product-photo {
        border-radius: inherit;
    }

/* Панель поиска: плотный фон вместо полупрозрачного */
.toolbar {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* На телефонах панель не прилипает — уезжает вместе со страницей */
@media (max-width: 860px) {
    .toolbar {
        position: static;
        padding: 10px 0;
    }
}
/* Контакты: если карточек четыре — раскладываем в один ряд */
@media (min-width: 961px) {
    .features:has(.feature:nth-child(4)) {
        grid-template-columns: repeat(4, 1fr);
    }
}
