/* ═══════════════════════════════════════════════════════════
   КапитонЕ — фирменный стиль
   3D-печать изделий для дома
   ═══════════════════════════════════════════════════════════ */

:root {
  --brand:        #6d4aff;
  --brand-dark:   #5533e0;
  --brand-light:  #8f75ff;
  --accent:       #ff7a45;
  --accent-soft:  #ffb08a;
  --ink:          #16121f;
  --ink-soft:     #4a4458;
  --muted:        #8b8598;
  --line:         #e9e6f0;
  --bg:           #ffffff;
  --bg-soft:      #f8f6ff;
  --bg-warm:      #fdf7f3;
  --success:      #16a34a;
  --danger:       #e11d48;

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(22,18,31,.06);
  --shadow:    0 8px 30px rgba(22,18,31,.10);
  --shadow-lg: 0 20px 60px rgba(109,74,255,.18);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='90' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 45 L30 90 L0 45 Z' fill='none' stroke='%236d4aff' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 60px 90px;
  background-position: 0 0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: min(1280px, 92%); margin-inline: auto; }

/* ─────────── Типографика ─────────── */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 14px auto 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
  background: var(--bg-soft); padding: 7px 16px; border-radius: 100px;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(115deg, var(--brand) 10%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─────────── Кнопки ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border: none; border-radius: 100px;
  font-weight: 700; font-size: .96rem; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-light));
  color: #fff; box-shadow: 0 8px 26px rgba(109,74,255,.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(109,74,255,.42); }

.btn-accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
  color: #fff; box-shadow: 0 8px 26px rgba(255,122,69,.32);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255,122,69,.42); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-sm { padding: 10px 20px; font-size: .87rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ─────────── Шапка ─────────── */
.header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s, border-color .35s, background .35s;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }

.header-inner {
  display: flex; align-items: center; gap: 26px;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.4rem; letter-spacing: -.03em; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(109,74,255,.35);
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-4px) rotate(-4deg); }
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 15px; border-radius: 100px; font-weight: 600; font-size: .93rem;
  color: var(--ink-soft); transition: color .25s, background .25s; position: relative;
}
.nav a:hover, .nav a.active { color: var(--brand); background: var(--bg-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--bg-soft); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; position: relative;
  transition: background .25s, transform .25s var(--ease);
}
.icon-btn:hover { background: var(--brand); color: #fff; transform: scale(1.08); }

.cart-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 21px; height: 21px; padding: 0 6px;
  background: var(--accent); color: #fff;
  border-radius: 100px; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
  transition: transform .3s var(--ease);
}
.cart-badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.4); } }

.burger { display: none; }

/* Поиск в шапке */
.search-wrap { position: relative; flex: 1; max-width: 340px; }
.search-input {
  width: 100%; padding: 11px 18px 11px 42px;
  border: 1.5px solid var(--line); border-radius: 100px;
  background: var(--bg-soft); outline: none; font-size: .92rem;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.search-input:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(109,74,255,.10);
}
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .3s var(--ease); z-index: 100; max-height: 400px; overflow-y: auto;
}
.search-results.show { opacity: 1; visibility: visible; transform: translateY(0); }
.search-item { display: flex; gap: 12px; padding: 11px 16px; align-items: center; transition: background .2s; }
.search-item:hover { background: var(--bg-soft); }
.search-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 9px; }
.search-item-name { font-weight: 600; font-size: .9rem; }
.search-item-price { color: var(--brand); font-weight: 800; font-size: .88rem; }

/* ─────────── Hero ─────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(60px, 9vw, 120px) 0 clamp(70px, 10vw, 130px);
  background:
    radial-gradient(1100px 550px at 88% -10%, #efe9ff 0%, transparent 62%),
    radial-gradient(900px 500px at 5% 105%, #fff0e8 0%, transparent 60%),
    #fff;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 60px; align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }

.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--brand); line-height: 1; }
.stat-label { font-size: .84rem; color: var(--muted); margin-top: 5px; }

/* 3D-визуал */
.hero-visual { position: relative; height: 480px; perspective: 1200px; }

.floating-card {
  position: absolute; border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-lg);
  overflow: hidden; transform-style: preserve-3d;
}
.fc-1 {
  width: 62%; height: 66%; top: 0; right: 4%;
  animation: float1 7s ease-in-out infinite;
}
.fc-2 {
  width: 46%; height: 46%; bottom: 4%; left: 0;
  animation: float2 8s ease-in-out infinite .8s;
}
.fc-3 {
  width: 34%; height: 32%; bottom: 22%; right: 0;
  animation: float3 6.5s ease-in-out infinite .4s;
}
.floating-card img { width: 100%; height: 100%; object-fit: cover; }
.fc-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center; font-size: 3.4rem;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-warm));
}

@keyframes float1 {
  0%,100% { transform: translateY(0) rotateY(-7deg) rotateX(3deg); }
  50%     { transform: translateY(-24px) rotateY(-3deg) rotateX(1deg); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0) rotateY(9deg) rotateX(-2deg); }
  50%     { transform: translateY(20px) rotateY(4deg) rotateX(0deg); }
}
@keyframes float3 {
  0%,100% { transform: translate(0,0) rotate(5deg); }
  50%     { transform: translate(-14px,-16px) rotate(-3deg); }
}

.blob {
  position: absolute; border-radius: 50%; filter: blur(58px); opacity: .5;
  pointer-events: none; z-index: -1;
}
.blob-1 { width: 340px; height: 340px; background: var(--brand-light); top: 8%; right: 12%; animation: blobMove 14s ease-in-out infinite; }
.blob-2 { width: 280px; height: 280px; background: var(--accent-soft); bottom: 5%; left: 8%; animation: blobMove 17s ease-in-out infinite reverse; }
@keyframes blobMove {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(38px,-28px) scale(1.12); }
  66%     { transform: translate(-26px,22px) scale(.92); }
}

/* Бегущая строка */
.marquee {
  overflow: hidden; padding: 20px 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--accent));
  color: #fff;
}
.marquee-track { display: flex; gap: 52px; width: max-content; animation: marquee 26s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────── Карточки товаров ─────────── */
.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-9px); box-shadow: var(--shadow-lg); border-color: transparent;
}

.product-media {
  position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg-soft);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.09); }
.product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.6rem; opacity: .35; }

.product-badges { position: absolute; top: 13px; left: 13px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge {
  padding: 5px 12px; border-radius: 100px; font-size: .71rem;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  backdrop-filter: blur(4px);
}
.badge-new  { background: var(--brand); }
.badge-hit  { background: var(--accent); }
.badge-sale { background: var(--danger); }
.badge-soon { background: var(--muted); }

.quick-add {
  position: absolute; left: 13px; right: 13px; bottom: 13px;
  opacity: 0; transform: translateY(14px);
  transition: all .4s var(--ease); z-index: 2;
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }

.product-body { padding: 18px 19px 21px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.product-name {
  font-weight: 700; font-size: 1.02rem; margin: 7px 0 9px; line-height: 1.35;
  transition: color .25s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card:hover .product-name { color: var(--brand); }
.product-desc { font-size: .87rem; color: var(--muted); margin-bottom: 13px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { display: flex; align-items: baseline; gap: 9px; }
.price-now { font-size: 1.3rem; font-weight: 900; }
.price-old { font-size: .95rem; color: var(--muted); text-decoration: line-through; }

.color-dots { display: flex; gap: 5px; margin-top: 10px; }
.color-dot { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }

/* ─────────── Категории ─────────── */
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-warm));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cat-card:hover { transform: translateY(-7px) scale(1.015); box-shadow: var(--shadow-lg); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover img { transform: scale(1.1); }
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,18,31,.82) 0%, rgba(22,18,31,.15) 55%, transparent 100%);
}
.cat-info { position: relative; z-index: 2; padding: 26px; color: #fff; width: 100%; }
.cat-icon { font-size: 2.2rem; margin-bottom: 8px; }
.cat-name { font-size: 1.35rem; font-weight: 800; }
.cat-count { font-size: .86rem; opacity: .85; margin-top: 3px; }

/* ─────────── Преимущества ─────────── */
.adv-card {
  padding: 34px 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.adv-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.adv-card:hover::before { transform: scaleX(1); }
.adv-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.adv-icon {
  width: 62px; height: 62px; border-radius: 18px; font-size: 1.9rem;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-warm));
  transition: transform .5s var(--ease);
}
.adv-card:hover .adv-icon { transform: rotate(-9deg) scale(1.1); }
.adv-card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.adv-card p { color: var(--muted); font-size: .93rem; }

/* ─────────── Блог ─────────── */
.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.post-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.post-media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.08); }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 11px; flex-wrap: wrap; }
.post-cat { color: var(--brand); font-weight: 700; }
.post-title { font-size: 1.16rem; font-weight: 800; line-height: 1.35; margin-bottom: 10px; transition: color .25s; }
.post-card:hover .post-title { color: var(--brand); }
.post-excerpt { font-size: .9rem; color: var(--muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { margin-top: 15px; font-weight: 700; color: var(--brand); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.post-more span { transition: transform .3s var(--ease); }
.post-card:hover .post-more span { transform: translateX(5px); }

.post-content { font-size: 1.06rem; line-height: 1.8; color: var(--ink-soft); }
.post-content h2 { margin: 38px 0 16px; color: var(--ink); }
.post-content h3 { margin: 30px 0 13px; color: var(--ink); }
.post-content p { margin-bottom: 19px; }
.post-content ul, .post-content ol { margin: 0 0 19px 24px; }
.post-content li { margin-bottom: 9px; }
.post-content img { border-radius: var(--radius); margin: 26px 0; }
.post-content blockquote {
  border-left: 4px solid var(--brand); padding: 16px 24px; margin: 26px 0;
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--ink);
}
.post-content a { color: var(--brand); text-decoration: underline; }

/* ─────────── Подписка ─────────── */
.subscribe-section {
  background: linear-gradient(125deg, var(--brand) 0%, var(--brand-dark) 50%, #7b3fd4 100%);
  border-radius: var(--radius-lg); padding: clamp(42px, 6vw, 72px);
  color: #fff; position: relative; overflow: hidden; text-align: center;
}
.subscribe-section::before,
.subscribe-section::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.09);
}
.subscribe-section::before { width: 330px; height: 330px; top: -110px; right: -70px; animation: blobMove 15s ease-in-out infinite; }
.subscribe-section::after  { width: 230px; height: 230px; bottom: -90px; left: -50px; animation: blobMove 19s ease-in-out infinite reverse; }
.subscribe-inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.subscribe-section h2 { margin-bottom: 13px; }
.subscribe-section p { opacity: .9; margin-bottom: 30px; }

.subscribe-form { display: flex; gap: 11px; flex-wrap: wrap; justify-content: center; }
.subscribe-form input {
  flex: 1; min-width: 250px; padding: 16px 24px;
  border: 2px solid rgba(255,255,255,.25); border-radius: 100px;
  background: rgba(255,255,255,.14); color: #fff; outline: none;
  transition: border-color .25s, background .25s;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,.65); }
.subscribe-form input:focus { border-color: #fff; background: rgba(255,255,255,.22); }
.subscribe-note { font-size: .82rem; opacity: .72; margin-top: 15px; }

/* ─────────── Формы ─────────── */
.form-group { margin-bottom: 19px; }
.form-group label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 7px; }
.form-input, input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
  width: 100%; padding: 13px 17px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  outline: none; background: #fff; transition: border-color .25s, box-shadow .25s;
}
.form-input:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109,74,255,.10);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.errorlist { list-style: none; color: var(--danger); font-size: .84rem; margin-top: 5px; }
.help-text { font-size: .82rem; color: var(--muted); margin-top: 5px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 15px; }
.checkbox-row input[type=checkbox] { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.checkbox-row label { font-size: .89rem; font-weight: 500; margin: 0; }

/* ─────────── Корзина / оформление ─────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 34px; align-items: start; }

.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 18px;
  padding: 19px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 14px; align-items: center;
  transition: box-shadow .3s, transform .3s;
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item.removing { opacity: 0; transform: translateX(-40px); }
.cart-item-img { width: 100px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-soft); }

.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden;
}
.qty button {
  width: 36px; height: 36px; border: none; background: transparent;
  cursor: pointer; font-size: 1.15rem; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.qty button:hover { background: var(--brand); color: #fff; }
.qty input { width: 46px; text-align: center; border: none; outline: none; font-weight: 700; padding: 0; }

.summary {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 27px; position: sticky; top: calc(var(--header-h) + 18px);
}
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: .95rem; }
.summary-row.total {
  border-top: 2px solid var(--line); margin-top: 12px; padding-top: 17px;
  font-size: 1.3rem; font-weight: 900;
}
.summary-row .free { color: var(--success); font-weight: 700; }

.delivery-option {
  display: flex; gap: 13px; padding: 15px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 10px; cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}
.delivery-option:hover { border-color: var(--brand-light); transform: translateX(3px); }
.delivery-option input { accent-color: var(--brand); margin-top: 3px; }
.delivery-option.selected { border-color: var(--brand); background: var(--bg-soft); }
.delivery-name { font-weight: 700; font-size: .95rem; }
.delivery-term { font-size: .84rem; color: var(--muted); }
.delivery-price { margin-left: auto; font-weight: 800; }

/* ─────────── Страница товара ─────────── */
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; }
.gallery-main {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-soft); margin-bottom: 14px; position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 82px; height: 82px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2.5px solid transparent; cursor: pointer; transition: border-color .25s, transform .25s;
  background: var(--bg-soft);
}
.gallery-thumb:hover { transform: translateY(-3px); }
.gallery-thumb.active { border-color: var(--brand); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.spec-table td:first-child { color: var(--muted); width: 45%; }
.spec-table td:last-child { font-weight: 600; }

.color-picker { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 22px; }
.color-option {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; box-shadow: 0 0 0 1.5px var(--line);
  transition: transform .25s var(--ease), border-color .25s;
  position: relative;
}
.color-option:hover { transform: scale(1.14); }
.color-option.active { border-color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand); }

.stars { display: inline-flex; gap: 2px; color: #fbbf24; }
.review-item { padding: 21px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; flex-wrap: wrap; gap: 8px; }
.review-author { font-weight: 700; }
.review-date { font-size: .82rem; color: var(--muted); }

/* ─────────── Фильтры каталога ─────────── */
.catalog-layout { display: grid; grid-template-columns: 262px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 18px); }
.filter-block { padding-bottom: 21px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.filter-block:last-child { border-bottom: none; }
.filter-title { font-weight: 800; font-size: .95rem; margin-bottom: 13px; }
.filter-list { display: flex; flex-direction: column; gap: 9px; }
.filter-item { display: flex; align-items: center; gap: 9px; font-size: .91rem; cursor: pointer; transition: color .2s; }
.filter-item:hover { color: var(--brand); }
.filter-item input { accent-color: var(--brand); }
.price-inputs { display: flex; gap: 9px; align-items: center; }
.price-inputs input { padding: 9px 12px; font-size: .88rem; }

.catalog-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 15px; margin-bottom: 26px; flex-wrap: wrap;
}
.sort-select { padding: 10px 16px; border-radius: 100px; border: 1.5px solid var(--line); cursor: pointer; }

.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  padding: 8px 17px; border-radius: 100px; background: var(--bg-soft);
  font-size: .88rem; font-weight: 600; transition: all .25s;
  border: 1.5px solid transparent;
}
.chip:hover { background: #fff; border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; }

/* ─────────── Пагинация ─────────── */
.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding: 0 13px;
  display: grid; place-items: center; border-radius: 12px;
  border: 1.5px solid var(--line); font-weight: 700; font-size: .92rem;
  transition: all .25s;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ─────────── Футер ─────────── */
.footer { background: var(--ink); color: #fff; padding: 66px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 42px; margin-bottom: 46px; }
.footer h4 { font-size: 1rem; margin-bottom: 17px; font-weight: 800; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.66); font-size: .92rem; transition: color .25s, transform .25s; display: inline-block; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-about { color: rgba(255,255,255,.6); font-size: .92rem; margin: 15px 0 20px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 18px;
  color: rgba(255,255,255,.5); font-size: .86rem; flex-wrap: wrap;
}
.socials { display: flex; gap: 11px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: grid; place-items: center;
  transition: background .25s, transform .25s var(--ease);
}
.social-btn:hover { background: var(--brand); transform: translateY(-4px) scale(1.08); }
.pay-icons { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 15px; }
.pay-icon {
  padding: 6px 13px; background: rgba(255,255,255,.1);
  border-radius: 8px; font-size: .76rem; font-weight: 700;
}

/* ─────────── Тосты ─────────── */
.toasts { position: fixed; bottom: 26px; right: 26px; z-index: 2000; display: flex; flex-direction: column; gap: 11px; }
.toast {
  background: var(--ink); color: #fff; padding: 15px 24px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: .93rem;
  animation: toastIn .45s var(--ease); max-width: 350px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.hiding  { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(90px) scale(.9); } }
@keyframes toastOut { to   { opacity: 0; transform: translateX(90px) scale(.9); } }

/* ─────────── Анимации появления ─────────── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.93); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-scale.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-left.visible { opacity: 1; transform: none; }

/* ─────────── Прочее ─────────── */
.breadcrumbs { display: flex; gap: 9px; font-size: .86rem; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--brand); }

.empty-state { text-align: center; padding: 76px 20px; }
.empty-icon { font-size: 4.4rem; margin-bottom: 18px; opacity: .45; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

.page-hero {
  background: radial-gradient(900px 400px at 50% -30%, #efe9ff 0%, transparent 65%), #fff;
  padding: 52px 0 42px; text-align: center;
}

.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1000;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  width: 0; transition: width .1s linear;
}

.tag-pill {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: var(--bg-soft); font-size: .82rem; font-weight: 600;
  transition: all .25s;
}
.tag-pill:hover { background: var(--brand); color: #fff; }

/* Скроллбар */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--brand-light); border-radius: 10px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

::selection { background: var(--brand); color: #fff; }

/* ─────────── Адаптив ─────────── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; order: -1; }
  .cart-layout, .catalog-layout, .product-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; flex-direction: column; padding: 18px;
    box-shadow: var(--shadow); gap: 4px;
    transform: translateY(-130%); transition: transform .4s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 16px; }
  .burger { display: grid; }
  .search-wrap { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 76px 1fr; gap: 13px; }
  .cart-item-img { width: 76px; height: 76px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { gap: 24px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input { min-width: 100%; }
  .grid-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
  .product-body { padding: 14px; }
  .price-now { font-size: 1.1rem; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-scale, .reveal-left { opacity: 1; transform: none; }
}
