/* ============================================================
   Мастерская печати «Ёж» — main stylesheet
   Light cream paper, brown ink, orange accents.
   ============================================================ */

:root {
  --cream: #FDF7EE;
  --cream-2: #F7EBDC;
  --cream-3: #FFF3E3;
  --paper: #FFFFFF;
  --paper-warm: #FFFBF5;
  --ink: #3B210F;
  --ink-soft: #4A3324;
  --text: #4F4A45;
  --muted: #7D7268;
  --muted-light: #A2958A;
  --orange: #FF7900;
  --orange-2: #E96A00;
  --orange-3: #C25A00;
  --orange-soft: #FFF0DF;
  --orange-line: rgba(255, 121, 0, 0.25);
  --amber: #FFB25C;
  --terra: #B85C38;
  --olive: #8A9A5B;
  --green: #5F6E3C;
  --line: rgba(59, 33, 15, 0.10);
  --line-strong: rgba(59, 33, 15, 0.16);
  --shadow-sm: 0 1px 2px rgba(59, 33, 15, 0.04), 0 8px 20px -12px rgba(59, 33, 15, 0.18);
  --shadow-md: 0 2px 6px rgba(59, 33, 15, 0.04), 0 20px 44px -24px rgba(59, 33, 15, 0.24);
  --shadow-lg: 0 30px 70px -32px rgba(59, 33, 15, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --header-h: 82px;
  --font-display: "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --btn-bg: #fff;
  --tint-a: #FFE9D2;
  --tint-b: #FFF7EC;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: rgba(255, 121, 0, 0.28); color: var(--ink); }

:focus-visible {
  outline: 3px solid rgba(255, 121, 0, 0.4);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .13 0 0 0 0 .06 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out),
    background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.btn .ico { width: 18px; height: 18px; }

.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, #FF8C24 0%, var(--orange) 52%, #F47100 100%);
  border-color: rgba(201, 90, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 2px 4px rgba(59, 33, 15, 0.08),
    0 10px 22px -10px rgba(255, 121, 0, 0.62);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #FF8214 0%, #F47100 52%, #E46700 100%);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 3px 6px rgba(59, 33, 15, 0.1),
    0 16px 28px -12px rgba(255, 121, 0, 0.62);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--orange-line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background: #FFF8EF;
  border-color: rgba(255, 121, 0, 0.55);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline:active { transform: translateY(0); }

.btn-ghost {
  color: #FFF3E1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 240, 223, 0.3);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 240, 223, 0.55);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

.btn-sm { height: 42px; padding: 0 17px; font-size: 14px; border-radius: 13px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; border-radius: 18px; }
.btn-lg .ico { width: 20px; height: 20px; }
.btn-block { width: 100%; }

.btn-outline.is-fav {
  color: var(--orange-2);
  border-color: rgba(255, 121, 0, 0.5);
  background: #FFF4E7;
}
.btn-outline.is-fav .ico { fill: var(--orange); stroke: var(--orange); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(253, 247, 238, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(253, 247, 238, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(59, 33, 15, 0.5);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  transition: transform 0.3s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-text small {
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #9A6B45;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}
.main-nav a:hover { color: var(--orange-2); }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-extra { display: none; }

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

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.icon-btn .ico { width: 19px; height: 19px; }
.icon-btn:hover {
  background: var(--paper);
  border-color: rgba(255, 121, 0, 0.4);
  color: var(--orange-2);
  transform: translateY(-1px);
}
.icon-btn.is-active { color: var(--orange); border-color: rgba(255, 121, 0, 0.45); background: #FFF5E9; }
.icon-btn.is-active .ico { fill: var(--orange); stroke: var(--orange); }

.fav-btn .count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10.5px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(255, 121, 0, 0.5);
}

.nav-toggle { display: none; }

.header-cta { margin-left: 4px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 58px) 0 42px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.blob-1 {
  width: 620px;
  height: 620px;
  top: -280px;
  right: -120px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 178, 92, 0.34), rgba(255, 178, 92, 0) 68%);
}
.blob-2 {
  width: 520px;
  height: 520px;
  bottom: -260px;
  left: -180px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 121, 0, 0.14), rgba(255, 121, 0, 0) 70%);
}
.hero-dots {
  position: absolute;
  top: 70px;
  right: 4%;
  width: 320px;
  height: 280px;
  opacity: 0.5;
  background-image: radial-gradient(rgba(59, 33, 15, 0.16) 1px, transparent 1.6px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #FFF1E2;
  border: 1px solid rgba(255, 121, 0, 0.18);
  color: #9A5312;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 121, 0, 0.14);
}
.eyebrow.light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 240, 223, 0.16);
  color: #FFD2A6;
}

.hero-title {
  margin: 22px 0 0;
  font-size: clamp(44px, 5.5vw, 70px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  font-weight: 900;
}
.marker {
  position: relative;
  display: inline-block;
  color: var(--orange-2);
  z-index: 0;
}
.marker::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.04em;
  height: 0.16em;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 121, 0, 0.32), rgba(255, 178, 92, 0.55));
  transform: rotate(-1.2deg);
}
/* «здесь» ведёт в каталог */
a.marker {
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}
a.marker::after { transition: transform 0.25s var(--ease-out), background 0.25s ease; }
a.marker:hover { color: var(--orange); }
a.marker:hover::after {
  transform: rotate(-1.2deg) scaleY(1.3);
  background: linear-gradient(90deg, rgba(255, 121, 0, 0.45), rgba(255, 178, 92, 0.7));
}
a.marker:focus-visible {
  outline: 3px solid rgba(255, 121, 0, 0.5);
  outline-offset: 6px;
  border-radius: 12px;
}

.hero-lead {
  margin-top: 24px;
  max-width: 545px;
  font-size: 18.5px;
  line-height: 1.62;
  color: #4A3B30;
}
.hero-note {
  margin-top: 12px;
  max-width: 545px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 3px;
  font-weight: 700;
  font-size: 14.5px;
  color: #8B4A12;
  border-bottom: 1.5px dashed rgba(139, 74, 18, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link .ico { width: 17px; height: 17px; color: var(--orange); }
.text-link .link-arrow { transition: transform 0.25s var(--ease-out); }
.text-link:hover { color: var(--orange-2); border-color: var(--orange); }
.text-link:hover .link-arrow { transform: translateX(4px); }

.hero-stats {
  display: flex;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-strong);
}
.hero-stats > div {
  padding-right: 26px;
  margin-right: 26px;
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats dt {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-stats dd {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
}

/* hero visual */
.hero-visual {
  position: relative;
  padding: 14px 26px 26px 14px;
  will-change: transform;
}
.hero-ring {
  position: absolute;
  inset: -4% -2% 2% 4%;
  border: 2px dashed rgba(255, 121, 0, 0.32);
  border-radius: 50%;
  animation: ringSpin 90s linear infinite;
  pointer-events: none;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

.hero-sticker {
  position: absolute;
  top: 2px;
  right: 8px;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #FF9A3D, var(--orange) 60%, #EF6F00);
  color: #FFF6E8;
  box-shadow: 0 10px 22px -8px rgba(255, 121, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transform: rotate(9deg);
}
.hero-sticker .ico { width: 26px; height: 26px; }

.hero-photo {
  position: relative;
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  border: 9px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(59, 33, 15, 0.05), 0 42px 70px -42px rgba(59, 33, 15, 0.55);
  transform: rotate(-1.2deg);
  background: #F2E2CC;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3.05;
  object-fit: cover;
}
.hero-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px -6px rgba(59, 33, 15, 0.35);
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px 11px 11px;
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px -20px rgba(59, 33, 15, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.float-card b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
}
.float-card small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.3;
}
.fc-brand { top: 44px; left: -26px; animation: floatY 7s ease-in-out infinite; }
.fc-logo {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #FFF6E8;
}
.fc-logo img { width: 100%; height: 100%; object-fit: contain; }
.fc-note { bottom: 50px; right: -12px; animation: floatY 8s ease-in-out 1.2s infinite; }
.fc-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-2);
}
.fc-icon .ico { width: 20px; height: 20px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero-strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  margin-top: 48px;
  padding: 15px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}
.hero-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #6B5B4C;
}
.hero-strip .ico { width: 16px; height: 16px; color: var(--orange); }

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: #FFE7CC;
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}
.marquee-group span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-group i { color: var(--orange); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Section header
   ============================================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}
.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 42px;
}
.section-title {
  margin-top: 16px;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.section-head.center .section-title { margin-top: 14px; }
.section-note {
  max-width: 368px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.section-head.center .section-note { max-width: 560px; }

/* ============================================================
   Catalog
   ============================================================ */
.catalog { padding: 92px 0 84px; }

.catalog-toolbar {
  position: relative;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}
.catalog-toolbar.stuck { box-shadow: var(--shadow-md); }

.toolbar-row { display: flex; gap: 12px; margin-bottom: 12px; }

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  height: 50px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #FBF3E7;
  color: var(--muted);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-field:focus-within {
  background: #FFFFFF;
  border-color: rgba(255, 121, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 121, 0, 0.12);
}
.search-field > .ico { width: 19px; height: 19px; color: var(--muted); }
.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}
.search-field input::placeholder { color: #9C8E82; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-clear {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(59, 33, 15, 0.07);
  color: var(--ink-soft);
  cursor: pointer;
}
.search-clear .ico { width: 14px; height: 14px; }
.search-clear:hover { background: rgba(255, 121, 0, 0.16); color: var(--orange-3); }
.search-key {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.sort-wrap {
  position: relative;
  flex: none;
  height: 50px;
  background: #FBF3E7;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.sort-wrap:focus-within { background: #fff; border-color: rgba(255, 121, 0, 0.5); }
.sort-wrap .sort-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.sort-wrap select {
  height: 100%;
  padding: 0 42px 0 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.sort-wrap .chev {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #FBF3E7;
  color: #6B5B4C;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}
.chip:hover { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.chip.active {
  background: linear-gradient(180deg, #FF8C24, var(--orange) 70%);
  color: var(--ink);
  box-shadow: 0 6px 14px -7px rgba(255, 121, 0, 0.75);
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-color, var(--orange));
}
.chip.active .chip-dot { background: var(--ink); opacity: 0.55; }
.chip-count {
  font-size: 11px;
  opacity: 0.55;
  font-weight: 800;
}
.chip.active .chip-count { opacity: 0.65; }

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 2px 18px;
}
.catalog-meta p { font-size: 14px; color: var(--muted); }
.catalog-meta b { color: var(--ink); font-weight: 800; }
.catalog-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.catalog-hint .ico { width: 14px; height: 14px; color: var(--orange); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(59, 33, 15, 0.07);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(59, 33, 15, 0.03), 0 14px 30px -24px rgba(59, 33, 15, 0.3);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
  animation: cardIn 0.55s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.p-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 121, 0, 0.22);
  box-shadow: 0 2px 4px rgba(59, 33, 15, 0.04), 0 28px 50px -30px rgba(59, 33, 15, 0.4);
}

.p-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  padding: 10px;
  background: linear-gradient(145deg, var(--tint-a), var(--tint-b));
  overflow: hidden;
}
.p-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.45), transparent 60%);
  pointer-events: none;
}
.p-art { width: 100%; height: 100%; display: grid; place-items: center; }
.p-art svg { width: 100%; height: 100%; display: block; }
.p-photo { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }

.p-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1;
  box-shadow: 0 4px 10px -4px rgba(59, 33, 15, 0.35);
}
.p-badge.badge-hit { background: #FFE2C2; color: #8A3D00; }
.p-badge.badge-new { background: #EAF0DC; color: #4F5E2E; }
.p-badge.badge-sale { background: var(--orange); color: var(--ink); }

.p-fav {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(59, 33, 15, 0.06);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #8A7A6C;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(59, 33, 15, 0.3);
  transition: transform 0.2s var(--ease-spring), color 0.2s ease, background-color 0.2s ease;
}
.p-fav .ico { width: 17px; height: 17px; }
.p-fav:hover { transform: scale(1.08); color: var(--orange-2); }
.p-fav.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.p-fav.active .ico { fill: var(--ink); stroke: var(--ink); }

.p-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}
.p-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8A6A4A;
}
.p-cat i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chip-color, var(--orange));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-color, #FF7900) 18%, transparent);
}
.p-name {
  margin: 7px 0 6px;
  font-size: 18.5px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.p-short {
  flex: 1;
  min-height: 39px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.p-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.p-price b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.p-price s {
  font-size: 12px;
  color: var(--muted-light);
  text-decoration-color: rgba(125, 114, 104, 0.55);
}
.p-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(201, 90, 0, 0.4);
  border-radius: 12px;
  background: linear-gradient(180deg, #FF8C24, var(--orange) 65%);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 6px 12px -8px rgba(255, 121, 0, 0.9);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.p-buy .ico { width: 14px; height: 14px; }
.p-buy:hover { filter: brightness(0.96); transform: translateY(-1px); }
.p-buy:active { transform: translateY(0); }

.empty-state {
  padding: 54px 24px 58px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.empty-logo {
  display: inline-block;
  width: 94px;
  height: 94px;
  opacity: 0.75;
}
.empty-logo img { width: 100%; height: 100%; object-fit: contain; }
.empty-state h3 { margin: 12px 0 8px; font-size: 24px; }
.empty-state p { max-width: 420px; margin: 0 auto; font-size: 14.5px; color: var(--muted); }
.empty-state .btn { margin-top: 22px; }

.load-more-wrap { margin-top: 34px; text-align: center; }
.shown-note { margin-top: 12px; font-size: 12.5px; color: var(--muted-light); }

/* ============================================================
   Services
   ============================================================ */
.services {
  padding: 88px 0 92px;
  background:
    radial-gradient(700px 380px at 12% 0%, rgba(255, 178, 92, 0.16), transparent 65%),
    linear-gradient(180deg, #FBF2E5, #FDF7EE);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid rgba(59, 33, 15, 0.08);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(59, 33, 15, 0.03), 0 14px 30px -26px rgba(59, 33, 15, 0.28);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s ease,
    background-color 0.28s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 26px auto;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  opacity: 0;
  transition: opacity 0.28s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  background: #fff;
  border-color: rgba(255, 121, 0, 0.22);
  box-shadow: 0 2px 4px rgba(59, 33, 15, 0.04), 0 28px 50px -32px rgba(59, 33, 15, 0.4);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #FFF1E2;
  color: var(--orange-2);
  border: 1px solid rgba(255, 121, 0, 0.15);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-spring);
}
.service-icon .ico { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--orange); color: var(--ink); transform: rotate(-5deg); }
.service-card h3 { font-size: 20px; letter-spacing: -0.02em; }
.service-card p { margin-top: 8px; flex: 1; font-size: 14px; line-height: 1.6; color: var(--muted); }
.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}
.service-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #8B4A12;
  transition: color 0.2s ease;
}
.service-link .ico { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.service-link:hover { color: var(--orange-2); }
.service-link:hover .ico { transform: translateX(3px); }

/* ============================================================
   About
   ============================================================ */
.about { padding: 96px 0 90px; }
.about-inner {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 62px;
  align-items: center;
}
.about-copy .section-title { margin-top: 16px; }
.about-lead {
  margin: 20px 0 26px;
  max-width: 550px;
  font-size: 16.5px;
  line-height: 1.7;
  color: #4A3B30;
}
.about-list { display: flex; flex-direction: column; gap: 15px; }
.about-list li { display: flex; gap: 12px; }
.about-check {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--orange-soft);
  border: 1px solid rgba(255, 121, 0, 0.2);
  color: var(--orange-2);
}
.about-check .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.about-list li > span:last-child { font-size: 14px; line-height: 1.55; color: var(--muted); }
.about-list b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 2px;
}
.about-copy .btn { margin-top: 28px; }

.about-card {
  position: relative;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--amber) 70%, #FFD9A8);
}
.about-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 20px;
  border-bottom: 1px dashed var(--line-strong);
}
.about-stamp {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #FFF6E8;
  border: 1px solid var(--line);
}
.about-stamp img { width: 100%; height: 100%; object-fit: contain; }
.about-card-head b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.25;
}
.about-card-head span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }

.about-steps { display: flex; flex-direction: column; }
.about-steps li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.about-steps li:last-child { border-bottom: 0; padding-bottom: 8px; }
.step-num {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #FFF1E2;
  color: var(--orange-2);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
}
.about-steps b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.3;
}
.about-steps p { margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.about-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 15px;
  background: #FFF7EC;
  color: #8A6A4A;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.about-note .ico { width: 17px; height: 17px; flex: none; color: var(--orange); }

/* ============================================================
   Contact
   ============================================================ */
.contact { padding: 0 0 92px; }
.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 40px;
  padding: 56px 58px;
  border-radius: 32px;
  background: linear-gradient(135deg, #4A2A12 0%, #3B210F 52%, #2C1708 100%);
  color: #FFF3E1;
  overflow: hidden;
  box-shadow: 0 40px 80px -46px rgba(59, 33, 15, 0.85);
}
.contact-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  top: -300px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 121, 0, 0.42), rgba(255, 121, 0, 0) 66%);
  pointer-events: none;
}
.contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 240, 223, 0.14) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 60%);
  mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}
.contact-copy { position: relative; z-index: 2; }
.contact-copy h2 {
  margin: 16px 0 14px;
  max-width: 560px;
  color: #FFF9F0;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.contact-copy p {
  max-width: 540px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 243, 225, 0.78);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
}
.contact-meta a,
.contact-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 243, 225, 0.72);
  transition: color 0.2s ease;
}
.contact-meta a:hover { color: #FFC48A; }
.contact-meta .ico { width: 16px; height: 16px; color: var(--amber); }

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.contact-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 240, 223, 0.18);
  background: rgba(255, 240, 223, 0.06);
  color: rgba(255, 243, 225, 0.85);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.contact-social .ico { width: 15px; height: 15px; color: var(--amber); }
.contact-social:hover {
  color: #FFF9F0;
  background: rgba(255, 121, 0, 0.18);
  border-color: rgba(255, 154, 61, 0.5);
  transform: translateY(-2px);
}


.contact-actions .contact-caption:disabled { opacity: 1; cursor: default; transform: none; filter: none; pointer-events: none; }
.contact-channel { position: relative; }
.contact-channel > summary { list-style: none; cursor: pointer; user-select: none; }
.contact-channel > summary::-webkit-details-marker { display: none; }
.contact-channel[open] > summary { color: #FFF9F0; background: rgba(255, 121, 0, 0.18); border-color: rgba(255, 154, 61, 0.5); }
.contact-channel > summary:focus-visible { outline: 3px solid #FFB875; outline-offset: 4px; }
.contact-channel[open] { z-index: 5; }
.contact-popover { position: absolute; bottom: 100%; left: 0; width: 250px; max-width: calc(100vw - 56px); padding-bottom: 10px; z-index: 6; }
.contact-popover-card { padding: 17px; border: 1px solid #F0DBC0; border-radius: 17px; background: #FFF8EE; color: #3B210F; box-shadow: 0 15px 40px #160b0855; }
.contact-popover-card strong { display: block; font-size: 14px; font-weight: 800; }
.contact-popover-card a { display: flex; flex-direction: column; gap: 8px; margin: 10px -5px 0; padding: 8px 5px; border-radius: 6px; color: #995016; font-size: 12px; line-height: 1.4; }
.contact-popover-card a:hover { background: #FFEBD3; }
.contact-popover-card a:focus-visible { outline: 2px solid #C75B00; outline-offset: 2px; }
.contact-popover-info { color: #3B210F; font-size: 13px; overflow-wrap: anywhere; }
.contact-popover-card small { display: block; margin-top: 8px; color: #80684F; font-size: 11px; }
.contact-popover-card .contact-popover-sub { margin: 11px 0 5px; max-width: 100%; color: #80684F; font-size: 11px; line-height: 1.4; }
.contact-popover-handles { display: flex; flex-direction: column; gap: 2px; }
.contact-popover-handles a {
  display: block;
  margin: 0;
  padding: 4px 5px;
  border-radius: 6px;
  color: #995016;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}
.contact-popover-handles a:hover { background: #FFEBD3; }
.contact-popover-handles a:focus-visible { outline: 2px solid #C75B00; outline-offset: 2px; }

.contact-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 236px;
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 26%, #FFFDF8 0%, #FBEFDD 58%, #F0DBC0 100%);
  box-shadow:
    0 0 0 1px rgba(255, 240, 223, 0.4),
    0 28px 46px -26px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 #fff;
  transform: rotate(2deg);
}
.contact-logo img { display: block; width: 100%; height: auto; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 58px 0 24px;
  background: #F7EBDC;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 1fr;
  gap: 42px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-mark { width: 48px; height: 48px; }
.footer-brand .brand-text b { font-size: 23px; }
.footer-brand p { max-width: 300px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #6B5B4C;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.socials a .ico { width: 17px; height: 17px; }
.socials a:hover {
  color: var(--orange-2);
  border-color: rgba(255, 121, 0, 0.45);
  background: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9A6B45;
}
.footer-col a {
  display: block;
  margin-bottom: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: #5E5045;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--orange-2); }
.footer-contact span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a:hover { color: var(--orange-2); }

/* ============================================================
   Product modal
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(59, 33, 15, 0.44);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  overflow: auto;
  background: var(--paper-warm);
  border-radius: 28px;
  box-shadow: 0 40px 90px -40px rgba(20, 9, 2, 0.65);
  animation: modalIn 0.35s var(--ease-out) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(59, 33, 15, 0.4);
  transition: color 0.2s ease, transform 0.25s ease, background-color 0.2s ease;
}
.modal-close .ico { width: 17px; height: 17px; }
.modal-close:hover { color: var(--orange-2); background: #fff; transform: rotate(90deg); }

.product-modal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.pm-gallery {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #FBF3E7;
  border-right: 1px solid var(--line);
}
.pm-stage {
  flex: none;
  width: 100%;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--tint-a), var(--tint-b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.pm-stage .p-art { width: 100%; height: 100%; padding: 8px; }
.pm-stage img { width: 100%; height: 100%; object-fit: contain; }
.pm-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.pm-thumb {
  width: 62px;
  height: auto;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.pm-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pm-thumb.active { border-color: var(--orange); }

.pm-info { padding: 38px 36px; }
.pm-topline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-cat {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A5A2C;
}
.pm-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #8A3D00;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}
.pm-badge.badge-new { background: #EAF0DC; color: #4F5E2E; }
.pm-badge.badge-sale { background: var(--orange); color: var(--ink); }
.pm-info h2 { margin: 10px 0 14px; font-size: clamp(24px, 3vw, 31px); line-height: 1.12; }
.pm-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.pm-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pm-old {
  font-size: 16px;
  color: var(--muted-light);
  text-decoration: line-through;
  text-decoration-color: rgba(125, 114, 104, 0.6);
}
.pm-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
}
.pm-stock i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 3px rgba(138, 154, 91, 0.2);
}
.pm-desc {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
}
.pm-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
}
.pm-meta > div { display: flex; justify-content: space-between; gap: 16px; }
.pm-meta dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.pm-meta dd { font-size: 13px; font-weight: 700; color: var(--ink); text-align: right; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.pm-note .ico { width: 15px; height: 15px; color: var(--orange); }

/* ============================================================
   Favorites drawer
   ============================================================ */
.drawer { position: fixed; inset: 0; z-index: 110; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(59, 33, 15, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper-warm);
  box-shadow: -30px 0 70px -30px rgba(20, 9, 2, 0.5);
  animation: drawerIn 0.35s var(--ease-out) both;
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.drawer-head h2 span { color: var(--orange-2); }
.drawer-head .modal-close { position: static; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 18px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); }

.drawer-empty { padding: 54px 22px; text-align: center; }
.drawer-empty-mark {
  display: inline-block;
  width: 108px;
  height: 108px;
  margin-bottom: 16px;
  opacity: 0.8;
}
.drawer-empty-mark img { width: 100%; height: 100%; object-fit: contain; }
.drawer-empty p { font-size: 14px; line-height: 1.6; color: var(--muted); }

.fav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.fav-item:hover { background: #fff; border-color: var(--line); }
.fav-thumb {
  width: 64px;
  height: auto;
  aspect-ratio: 3 / 4;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--tint-a), var(--tint-b));
}
.fav-thumb svg { width: 100%; height: 100%; }
.fav-thumb img { width: 100%; height: 100%; object-fit: contain; }
.fav-info { flex: 1; min-width: 0; }
.fav-info b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fav-info span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.fav-remove {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.fav-remove .ico { width: 14px; height: 14px; }
.fav-remove:hover { color: #B23A1E; border-color: rgba(178, 58, 30, 0.35); background: #FFF3EF; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #FFF6E8;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 18px 40px -16px rgba(20, 9, 2, 0.6);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { width: 16px; height: 16px; color: var(--amber); }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.4s; }
.reveal[data-d="6"] { transition-delay: 0.48s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Печать и сохранение страницы: показываем всё, что ещё не «проявилось» */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner { gap: 40px; }
  .hero-title { font-size: clamp(40px, 5.4vw, 62px); }
  .hero-stats > div { padding-right: 20px; margin-right: 20px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-inner { gap: 44px; }
  .product-grid { gap: 18px; }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 59;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: #FDF7EE;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(59, 33, 15, 0.55);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0.25s;
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { padding: 13px 12px; font-size: 16px; border-radius: 12px; }
  .main-nav a::after { display: none; }
  .main-nav a:hover { background: #FFF3E4; }
  .nav-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .main-nav .nav-extra .btn {
    height: 52px;
    padding: 0 20px;
    font-size: 16px;
    border-radius: 15px;
    color: var(--ink);
    background: linear-gradient(180deg, #FF8C24 0%, var(--orange) 52%, #F47100 100%);
    border-color: rgba(201, 90, 0, 0.45);
  }
  .main-nav .nav-extra .btn:hover { background: linear-gradient(180deg, #FF8214, #F47100 55%, #E46700); }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }

  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .hero-note, .hero-lead { max-width: 620px; }
  .hero-strip { margin-top: 36px; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-inner { grid-template-columns: 1fr; gap: 34px; }
  .about-copy { max-width: 640px; }
  .about-card { max-width: 620px; }

  .contact-panel { grid-template-columns: 1fr; padding: 42px 36px 46px; }
  .contact-logo { position: absolute; top: 24px; right: 28px; width: 136px; padding: 8px; }
  .contact-copy h2, .contact-copy p { max-width: 100%; padding-right: 124px; }
  .contact-copy .eyebrow { position: relative; z-index: 3; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .container { padding: 0 18px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-text b { font-size: 22px; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }

  .hero { padding-top: calc(var(--header-h) + 38px); }
  .hero-title { font-size: clamp(36px, 9.4vw, 50px); }
  .hero-lead { font-size: 16.5px; }
  .hero-note { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 16px 0; }
  .hero-stats > div { flex: 1 1 40%; padding-right: 16px; margin-right: 16px; }
  .hero-stats > div:nth-child(2) { border-right: 0; }
  .hero-stats > div:nth-child(3) {
    flex-basis: 100%;
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
  }
  .hero-visual { padding: 10px 12px 22px 6px; }
  .hero-photo { border-width: 7px; border-radius: 24px; }
  .hero-photo img { aspect-ratio: 4 / 3.3; }
  .fc-brand { top: 18px; left: -8px; padding: 8px 12px 8px 8px; }
  .fc-logo { width: 34px; height: 34px; }
  .float-card b { font-size: 12px; }
  .float-card small { font-size: 9.5px; }
  .fc-note { bottom: 8px; right: -4px; padding: 8px 12px 8px 8px; }
  .fc-icon { width: 34px; height: 34px; }
  .hero-sticker { width: 48px; height: 48px; top: -6px; right: -2px; }
  .hero-sticker .ico { width: 22px; height: 22px; }
  .hero-strip { padding: 14px 16px; gap: 10px 18px; }
  .hero-strip span { font-size: 12px; }

  .catalog { padding: 64px 0 60px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
  .section-head.center { align-items: center; }
  .section-title { font-size: clamp(28px, 7.6vw, 38px); }
  .section-note { max-width: 100%; font-size: 14px; }

  .catalog-toolbar { padding: 11px; border-radius: 18px; }
  .toolbar-row { flex-direction: column; gap: 9px; }
  .search-field { height: 48px; }
  .sort-wrap { height: 48px; width: 100%; }
  .sort-wrap select { width: 100%; }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 0 -4px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .catalog-meta { margin-top: 18px; }
  .catalog-hint { display: none; }

  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .p-card { border-radius: 22px; }
  .p-media { aspect-ratio: 3 / 4; }
  .p-short { min-height: 0; }
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
  .services { padding: 62px 0 66px; }
  .service-card { padding: 22px; }
  .about { padding: 64px 0 62px; }
  .about-card { padding: 22px; border-radius: 24px; }
  .about-card-head { gap: 12px; }
  .about-stamp { width: 50px; height: 50px; }
  .about-lead { font-size: 15.5px; }

  .contact { padding-bottom: 64px; }
  .contact-panel { padding: 34px 22px 38px; border-radius: 26px; }
  .contact-logo { top: 20px; right: 18px; width: 104px; padding: 6px; }
  .contact-copy h2, .contact-copy p { padding-right: 0; }
  .contact-copy h2 { font-size: clamp(27px, 7.4vw, 34px); }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { width: 100%; }
  .contact-meta { flex-direction: column; gap: 10px; }

  .site-footer { padding-top: 44px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .modal { padding: 12px; }
  .modal-card { max-height: 94vh; border-radius: 24px; }
  .product-modal-card { grid-template-columns: 1fr; }
  .pm-gallery { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pm-stage { min-height: 0; }
  .pm-info { padding: 24px 22px 28px; }
  .pm-actions { flex-direction: column; }
  .pm-actions .btn { width: 100%; }
  .pm-stock { margin-left: 0; }

  .drawer-panel { width: 100%; }
}

@media (max-width: 420px) {
  .hero-stats dd { font-size: 25px; }
  .hero-stats dt { font-size: 9.5px; }
  .brand-text small { font-size: 8.5px; }
  .brand-text b { font-size: 20px; }
  .brand-mark { width: 40px; height: 40px; }
  .icon-btn { width: 38px; height: 38px; }
  .p-price b { font-size: 18px; }
}

/* ============================================================
   Customer account, auth and checkout
   ============================================================ */
.account-btn { padding: 0; overflow: hidden; }
.account-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-btn .avatar-initials {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12.5px;
  line-height: 1;
  color: var(--ink);
}
.account-btn.is-in {
  border-color: rgba(255, 121, 0, 0.45);
  background: #FFF3E4;
}

.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field > span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #6B5B4C;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FFFDF9;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 88px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #A6978A; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(255, 121, 0, 0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 121, 0, 0.14);
}
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form-status {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 700;
  color: #B23A25;
}
.form-status:empty { display: none; }

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.check-row input { width: 16px; height: 16px; accent-color: var(--orange); flex: none; }

/* --- auth --- */
.auth-card { max-width: 520px; padding: 36px 36px 28px; }
.auth-head h2 { margin: 10px 0 8px; font-size: clamp(26px, 3.4vw, 32px); }
.auth-note { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.auth-note:empty { display: none; }
.auth-tabs {
  display: flex;
  gap: 5px;
  margin: 22px 0 20px;
  padding: 5px;
  border-radius: 14px;
  background: #F5EADB;
}
.auth-tab {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7A6757;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.auth-tab.active {
  background: #FFFDF9;
  color: var(--ink);
  box-shadow: 0 4px 12px -6px rgba(59, 33, 15, 0.4);
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* --- checkout --- */
.checkout-card { max-width: 940px; padding: 0; }
.checkout-head { padding: 32px 34px 0; }
.checkout-head h2 { margin: 10px 0 8px; font-size: clamp(26px, 3.2vw, 32px); }
.checkout-head p { margin: 0; max-width: 560px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  margin-top: 24px;
}
.checkout-summary {
  padding: 26px 26px 30px;
  background: #FBF3E7;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.checkout-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A5A2C;
}
.checkout-product {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(59, 33, 15, 0.16);
}
.checkout-product-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #FFFDF9;
  color: var(--orange-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.checkout-product-mark .ico { width: 20px; height: 20px; }
.checkout-product b { display: block; font-size: 13.5px; line-height: 1.3; }
.checkout-product small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.checkout-product > span:last-child { font-family: var(--font-display); font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.checkout-lines { margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.checkout-lines div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.checkout-lines dd { margin: 0; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
#coDeliveryPrice { white-space: normal; text-align: right; }
.checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
}
.checkout-total span { font-size: 13px; color: #6B5B4C; }
.checkout-total b { font-size: 25px; letter-spacing: -0.03em; }
.checkout-safe {
  display: flex;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.checkout-safe .ico { width: 16px; height: 16px; flex: none; color: var(--olive, #8A9A5B); margin-top: 1px; }
.checkout-main { padding: 26px 34px 32px; }
.checkout-main form { display: flex; flex-direction: column; gap: 15px; }
.select-wrap { position: relative; display: block; }
.select-wrap select { appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap .ico {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.delivery-hint { margin: -4px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.delivery-hint:empty { display: none; }
.pickup-note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 121, 0, 0.28);
  border-radius: 14px;
  background: #FFF6EA;
}
.pickup-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: #fff;
  color: var(--orange-2);
  box-shadow: inset 0 0 0 1px rgba(255, 121, 0, 0.2);
}
.pickup-icon .ico { width: 17px; height: 17px; }
.pickup-note b { display: block; font-size: 12.5px; }
.pickup-note span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.55; color: #6B5B4C; }
.checkout-note {
  display: flex;
  gap: 7px;
  margin: -2px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.checkout-note .ico { width: 14px; height: 14px; flex: none; color: var(--orange-2); margin-top: 1px; }

.checkout-success { padding: 10px 0 4px; text-align: center; }
.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(160deg, #9CB06A, #7E9450);
  color: #fff;
  box-shadow: 0 14px 26px -14px rgba(110, 130, 70, 0.9);
}
.success-mark .ico { width: 30px; height: 30px; }
.checkout-success h3 { font-size: 26px; }
.checkout-success > p { margin: 10px auto 0; max-width: 420px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.success-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 420px;
  margin: 22px auto;
}
.success-meta div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FFFDF9;
}
.success-meta dt { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.success-meta dd { margin: 5px 0 0; font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.checkout-success .btn { margin-top: 10px; }

/* --- account drawer --- */
.account-panel { width: min(470px, 100%); }
.account-guest { padding: 34px 14px; text-align: center; }
.account-guest .drawer-empty-mark { width: 84px; height: 84px; }
.account-guest h3 { margin-top: 18px; font-size: 23px; }
.account-guest p { margin: 8px auto 0; max-width: 290px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.account-guest-actions { display: flex; flex-direction: column; gap: 9px; max-width: 290px; margin: 22px auto 0; }
.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 2px 18px;
  border-bottom: 1px solid var(--line);
}
.account-avatar-btn {
  position: relative;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
}
.account-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(160deg, #FFE2C4, #F7D3AE);
  color: #8A3D00;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 121, 0, 0.25);
}
.account-avatar.big { width: 78px; height: 78px; font-size: 22px; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--paper-warm);
  background: var(--orange);
  color: var(--ink);
}
.avatar-edit .ico { width: 13px; height: 13px; }
.account-profile-main { min-width: 0; }
.account-profile-main h3 { font-size: 21px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-profile-main p { margin: 2px 0 0; font-size: 12.5px; color: var(--orange-2); font-weight: 700; }
.account-note { display: block; margin-top: 5px; font-size: 10.5px; color: var(--muted-light, #9C8E82); }
.account-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
}
.account-form .btn { grid-column: 1 / -1; width: 100%; height: 42px; padding: 0 14px; white-space: nowrap; }
.account-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 2px 12px;
}
.account-orders-head h4 { font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: #8A5A2C; }
.text-mini {
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange-2);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.text-mini:hover { text-decoration: underline; }
.account-orders { display: flex; flex-direction: column; gap: 9px; }
.account-empty {
  padding: 30px 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
}
.account-empty p { margin: 0 auto 14px; max-width: 270px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.acc-order {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #FFFDF9;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.acc-order.open { border-color: rgba(255, 121, 0, 0.4); box-shadow: 0 12px 24px -20px rgba(59, 33, 15, 0.6); }
.acc-order-head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 16px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.acc-order-main { min-width: 0; }
.acc-order-main b { display: block; font-size: 12.5px; letter-spacing: 0.01em; }
.acc-order-main small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-order-sum { font-family: var(--font-display); font-size: 13px; font-weight: 800; white-space: nowrap; }
.acc-order-chevron { width: 15px; height: 15px; color: var(--muted); transition: transform 0.2s ease; }
.acc-order.open .acc-order-chevron { transform: rotate(180deg); }
.acc-order-body { padding: 0 14px 14px; border-top: 1px dashed var(--line); }
.acc-order-items { margin: 12px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-soft); }
.acc-order-meta { margin: 10px 0 0; display: flex; flex-direction: column; gap: 7px; }
.acc-order-meta div { display: flex; gap: 8px; font-size: 11.5px; line-height: 1.5; }
.acc-order-meta dt { flex: none; min-width: 76px; color: var(--muted); }
.acc-order-meta dd { margin: 0; color: var(--ink-soft); }
.acc-order-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.acc-order-actions .btn { height: 34px; padding: 0 12px; font-size: 11px; border-radius: 9px; }

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(59, 33, 15, 0.06);
  color: #6B5B4C;
}
.status-chip.st-new { background: rgba(255, 121, 0, 0.16); color: #A34900; }
.status-chip.st-processing { background: rgba(42, 110, 180, 0.14); color: #2A5F92; }
.status-chip.st-ready { background: rgba(138, 154, 91, 0.2); color: #4F5E2E; }
.status-chip.st-done { background: rgba(60, 130, 80, 0.14); color: #2F6B42; }
.status-chip.st-canceled { background: rgba(59, 33, 15, 0.07); color: #8B7A66; }

.pm-mail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s ease;
}
.pm-mail:hover { color: var(--orange-2); }
.pm-mail .ico { width: 15px; height: 15px; }

@media (max-width: 960px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { border-right: 0; border-bottom: 1px solid var(--line); }
  .checkout-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 24px; }
  .checkout-summary .checkout-label,
  .checkout-summary .checkout-product,
  .checkout-summary .checkout-lines { grid-column: 1; }
  .checkout-summary .checkout-total { grid-column: 2; grid-row: 1 / span 3; align-self: end; flex-direction: column; align-items: flex-end; border-top: 0; margin: 0; padding: 0; }
  .checkout-summary .checkout-safe { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .auth-card, .checkout-card { border-radius: 22px; }
  .auth-card { padding: 28px 22px 22px; }
  .checkout-head { padding: 26px 22px 0; }
  .checkout-grid { margin-top: 18px; }
  .checkout-summary { display: block; padding: 20px 22px; }
  .checkout-summary .checkout-total { flex-direction: row; align-items: baseline; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
  .checkout-main { padding: 20px 22px 26px; }
  .form-row { grid-template-columns: 1fr; }
  .account-form { grid-template-columns: 1fr; }
  .account-form .btn { width: 100%; }
  .acc-order-head { grid-template-columns: minmax(0, 1fr) auto 15px; }
  .acc-order-sum { display: none; }
  .checkout-main .btn-lg { height: 52px; font-size: 15.5px; }
}

@media (max-width: 420px) {
  .account-btn { display: none; }
  .checkout-head h2 { font-size: 25px; }
  .success-meta { grid-template-columns: 1fr; }
}

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero-ring, .fc-brand, .fc-note { animation: none; }
}

.p-media-link{display:grid;place-items:center;min-width:0;min-height:0;overflow:hidden;width:100%;height:100%;color:inherit;text-decoration:none}
.p-name a{color:inherit;text-decoration:none}
.p-name a:hover{text-decoration:underline;text-decoration-color:var(--orange);text-underline-offset:4px}
.p-name a:focus-visible,.p-media-link:focus-visible{outline:3px solid var(--orange);outline-offset:3px;border-radius:4px}

.password-field{position:relative;display:block;width:100%;min-width:0}
.password-field input{width:100%;padding-right:48px!important}
.password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--ink);cursor:pointer}
.password-toggle:hover{background:#F3E7D6}.password-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.password-eye-slash{display:none}.password-toggle[aria-pressed="true"] .password-eye-slash{display:block}
