/* Кама — новогодние подарки. Palette: winter night, snow, cranberry, gold foil. */

@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/prata/prata-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/prata/prata-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/golos/golos-text-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/golos/golos-text-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #14245c;
  --night-deep: #0c1740;
  --night-soft: #2a3d86;
  --snow: #f4f6fb;
  --paper: #ffffff;
  --frost: #dde4f0;
  --frost-2: #ecf0f8;
  --ink: #16203a;
  --muted: #5a6480;
  --berry: #c4122f;
  --berry-dark: #9f0d25;
  --foil: #d4a437;
  --foil-soft: #f6e9c4;
  --ok: #1e7a55;
  --warn-bg: #fff5e6;
  --serif: 'Prata', Georgia, 'Times New Roman', serif;
  --sans: 'Golos', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
  --wrap: 1240px;
  --shadow: 0 1px 2px rgba(20, 36, 92, 0.06), 0 8px 24px -12px rgba(20, 36, 92, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--night); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--berry); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }

h1, h2, .brand-name, .price-big {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--night);
}
h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem); line-height: 1.12; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem); line-height: 1.2; margin: 0 0 0.6em; }
h3 { font-size: 1.1rem; line-height: 1.35; margin: 1.6em 0 0.4em; font-weight: 650; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--foil); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 14px; border-radius: var(--r-s); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--r-s);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-berry { background: var(--berry); color: #fff; }
.btn-berry:hover:not(:disabled) { background: var(--berry-dark); color: #fff; }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover:not(:disabled) { background: var(--night-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--frost); color: var(--night); }
.btn-ghost:hover:not(:disabled) { border-color: var(--night); color: var(--night); }
.btn-danger { background: transparent; border-color: #e7b7bf; color: var(--berry); }
.btn-danger:hover { background: var(--berry); color: #fff; }
.btn-small { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn-large { min-height: 52px; padding: 13px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--frost);
}
.header-row { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; flex: none; padding: 6px 0; }
.brand-logo { height: 54px; width: auto; }
.brand-sub { font-size: 11.5px; color: var(--night); margin-top: 4px; letter-spacing: 0.14em; }
.brand:hover .brand-sub { color: var(--berry); }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--berry); }
.main-nav a[aria-current='page'] { border-bottom-color: var(--foil); }
.header-contacts { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.header-phone { font-weight: 650; color: var(--night); text-decoration: none; white-space: nowrap; }
.header-hours { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 14px;
  border-radius: var(--r-s);
  background: var(--night);
  color: #fff;
  text-decoration: none;
  flex: none;
}
.cart-link:hover { background: var(--night-deep); color: #fff; }
.cart-link svg { font-size: 22px; }
.cart-link-text { display: flex; flex-direction: column; line-height: 1.15; }
.cart-link-label { font-weight: 600; font-size: 14px; }
.cart-link-sum { font-size: 12.5px; color: var(--foil-soft); }
.cart-link-sum:empty { display: none; }
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--berry);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
}
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-s); border: 1.5px solid var(--frost); font-size: 22px; color: var(--night); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav {
  position: absolute;
  right: 0;
  top: 54px;
  width: min(300px, calc(100vw - 32px));
  background: var(--paper);
  border: 1px solid var(--frost);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.mobile-nav nav a { padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; color: var(--ink); }
.mobile-nav nav a:hover, .mobile-nav nav a[aria-current='page'] { background: var(--frost-2); }
.mobile-nav nav .mobile-nav-phone { font-weight: 650; color: var(--night); border-top: 1px solid var(--frost); border-radius: 0; margin-top: 6px; padding-top: 14px; }
.mobile-nav nav .muted { padding: 0 12px 6px; font-size: 13px; }

@media (max-width: 1120px) {
  .main-nav { gap: 16px; font-size: 14.5px; }
  .header-contacts { display: none; }
  .main-nav { margin-left: auto; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-nav { display: block; }
  .cart-link { margin-left: auto; }
  .header-row { gap: 12px; min-height: 68px; }
  .brand-logo { height: 42px; }
  .brand-sub { font-size: 10px; }
}
@media (max-width: 420px) {
  .cart-link-text { display: none; }
  .cart-link { padding: 10px 12px; }
}

/* ---- hero ---- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--night-deep);
  color: #fff;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 60%;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 23, 64, 0) 30%, rgba(12, 23, 64, 0.55) 55%, rgba(12, 23, 64, 0.82) 100%);
}
.hero-inner { display: flex; justify-content: flex-end; min-height: clamp(460px, 44vw, 640px); align-items: center; }
.hero-copy { width: min(560px, 50%); padding: 64px 0; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.2rem + 3vw, 3.6rem); margin-bottom: 0.45em; text-wrap: balance; }
.hero-lead { font-size: 1.1rem; color: rgba(255, 255, 255, 0.86); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.hero-phone { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 650; font-size: 1.1rem; }
.hero-phone svg { font-size: 22px; color: var(--foil); }
.hero-phone span { display: flex; flex-direction: column; line-height: 1.25; }
.hero-phone small { font-weight: 400; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.hero-phone:hover { color: var(--foil-soft); }

@media (max-width: 800px) {
  .hero-img { position: static; height: auto; aspect-ratio: 16 / 10; object-position: 20% 60%; }
  .hero::after { display: none; }
  .hero-inner { min-height: 0; }
  .hero-copy { width: 100%; padding: 28px 0 40px; }
}

/* ---- sections ---- */

.section { padding: 72px 0; }
.section + .section { padding-top: 16px; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head-row { max-width: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.link-more { font-weight: 600; white-space: nowrap; }
.section-foot { margin-top: 32px; text-align: center; }
@media (max-width: 560px) { .section-foot .btn { width: 100%; } }

/* weight ladder: each tier is a gift box whose height follows its weight */
.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.ladder a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 8px 14px;
  border-radius: var(--r-m);
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: background-color 0.15s;
}
.ladder a:hover { background: var(--paper); color: var(--ink); }
.ladder a:hover .ladder-box { transform: translateY(-4px); }
.ladder-box {
  --h: 60%;
  display: block;
  width: 64%;
  height: 132px;
  margin-bottom: 14px;
  position: relative;
  transition: transform 0.2s ease;
}
.ladder-box::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--h);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 44%, var(--foil) 44%, var(--foil) 56%, transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0 18%, transparent 18%),
    var(--berry);
}
.ladder-box::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: var(--h);
  width: 34px;
  height: 14px;
  transform: translate(-50%, 2px);
  border: 3px solid var(--foil);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}
.ladder li:nth-child(even) .ladder-box::before {
  background:
    linear-gradient(90deg, transparent 44%, var(--foil) 44%, var(--foil) 56%, transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0 18%, transparent 18%),
    var(--night);
}
.ladder-weight { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--night); }
.ladder-weight small { font-size: 0.55em; }
.ladder-line { font-size: 14px; line-height: 1.4; }
.ladder a.is-active { background: var(--paper); box-shadow: inset 0 0 0 2px var(--night); }

.ladder-compact { margin-bottom: 28px; gap: 8px; }
.ladder-compact a { padding: 8px 6px 10px; background: var(--paper); border: 1px solid var(--frost); }
.ladder-compact .ladder-box { height: 44px; width: 38%; margin-bottom: 8px; }
.ladder-compact .ladder-box::after { width: 16px; height: 8px; border-width: 2px; }
.ladder-compact .ladder-weight { font-size: 1.25rem; }
.ladder-compact .ladder-line { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .ladder { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -24px; padding-right: 24px; }
  .ladder li { flex: 0 0 132px; scroll-snap-align: start; }
  .ladder-compact li { flex-basis: 96px; }
}

.corporate { background: var(--frost-2); }
.section.corporate { padding: 72px 0; margin: 40px 0; }
.corporate-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.corporate-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-l); }
.corporate-copy p { color: var(--muted); font-size: 1.05rem; }

.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { font-size: 22px; color: var(--berry); margin-top: 1px; }
.ticks-large li { font-size: 1.05rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; border-top: 2px solid var(--night); padding-top: 18px; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--foil); display: block; margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; }
.steps p { color: var(--muted); margin: 0; }

.logos-section .section-head { margin: 40px auto 20px; text-align: center; }
.logos-section .section-head:first-child { margin-top: 0; }
.logos-img { margin: 0 auto 12px; width: min(100%, 980px); mix-blend-mode: multiply; }

@media (max-width: 900px) {
  .corporate-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---- product cards ---- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--frost);
  border-radius: var(--r-m);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); border-color: #cdd6e8; }
.card-media { position: relative; display: block; aspect-ratio: 23 / 15; background: var(--frost-2); overflow: hidden; }
.card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; }
.card-flag {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.card.is-out .card-media img { filter: grayscale(0.7); opacity: 0.7; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.card-weight, .card-extra { font-size: 12.5px; font-weight: 650; padding: 2px 9px; border-radius: 6px; line-height: 1.6; }
.card-weight { background: var(--foil-soft); color: #6b4e0c; }
.card-extra { background: var(--frost-2); color: var(--night); }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; line-height: 1.3; margin: 0 0 4px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--berry); }
.card-pack { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 700; font-size: 1.2rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sold-out-label { font-size: 13.5px; color: var(--muted); }
.ph { display: grid; place-items: center; color: var(--night-soft); font-size: 56px; background: var(--frost-2); }

.empty, .empty-block { color: var(--muted); }
.empty-block { background: var(--paper); border: 1px dashed var(--frost); border-radius: var(--r-m); padding: 32px; text-align: center; }
.empty-block .btn { margin-top: 8px; }

/* ---- page scaffolding ---- */

.page { padding-top: 22px; padding-bottom: 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--berry); }
.crumbs [aria-current] { color: var(--ink); }

.panel { background: var(--paper); border: 1px solid var(--frost); border-radius: var(--r-m); padding: 24px; }
.panel h2 { font-size: 1.4rem; }

/* ---- catalog ---- */

.catalog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.catalog-head h1 { margin: 0; }
.catalog-search { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 260px; }
.catalog-search input { flex: 1; }
.catalog-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; }

.filters { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--frost); border-radius: var(--r-m); }
.filters summary { display: none; }
.filters form { padding: 8px 18px 18px; }
.filters fieldset { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--frost-2); }
.filters fieldset:last-of-type { border-bottom: 0; }
.filters legend { font-weight: 650; font-size: 14.5px; padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.filters legend + * { clear: both; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; line-height: 1.35; padding: 5px 0; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--night); flex: none; }
.check small { margin-left: auto; color: var(--muted); font-size: 12.5px; padding-left: 6px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; min-width: 0; }
.filters-actions { display: grid; gap: 8px; margin-top: 8px; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.results-count { margin: 0; color: var(--muted); }
.sort-form select { min-width: 200px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--frost); color: var(--ink); text-decoration: none; font-size: 14px; }
.chip svg { font-size: 14px; color: var(--muted); }
.chip:hover { border-color: var(--berry); color: var(--berry); }
.chip-reset { font-size: 14px; margin-left: 4px; }

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; }
  .filters summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none; }
  .filters summary::-webkit-details-marker { display: none; }
  .filters[open] summary { border-bottom: 1px solid var(--frost-2); }
  .results-bar { flex-wrap: wrap; }
  .sort-form select { min-width: 0; }
}

/* ---- forms ---- */

input[type='text'], input[type='search'], input[type='tel'], input[type='email'], input[type='number'], input:not([type]), select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--frost);
  border-radius: var(--r-s);
  background: var(--paper);
  font-size: 15px;
}
select { width: auto; padding-right: 32px; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(20, 36, 92, 0.14); }
input[type='number']::-webkit-inner-spin-button { opacity: 0.4; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-error { color: var(--berry); font-size: 13.5px; margin-top: 4px; }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--berry); }
.req { color: var(--berry); }
.form-error { background: #fdecef; color: var(--berry-dark); border-radius: var(--r-s); padding: 12px 14px; margin-bottom: 16px; }
.fine-print { font-size: 13.5px; color: var(--muted); }

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---- product page ---- */

.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 25 / 15; border-radius: var(--r-l); overflow: hidden; background: var(--frost-2); }
.gallery-main img, .gallery-main .ph { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs a { width: 104px; aspect-ratio: 25 / 15; border-radius: var(--r-s); overflow: hidden; border: 2px solid transparent; background: var(--frost-2); }
.gallery-thumbs a.is-active { border-color: var(--night); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0 0 22px; }
.facts div { border-top: 1px solid var(--frost); padding-top: 8px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.buy { background: var(--paper); border: 1px solid var(--frost); border-radius: var(--r-l); padding: 22px; margin-bottom: 18px; }
.buy-price { font-family: var(--serif); font-size: 2.2rem; color: var(--night); line-height: 1.1; margin-bottom: 16px; }
.buy-price small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy-total { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.buy-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.sold-out-note { margin: 0; }

.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--frost); border-radius: var(--r-s); background: var(--paper); overflow: hidden; }
.qty button { width: 42px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--night); }
.qty button:hover:not(:disabled) { background: var(--frost-2); }
.qty button:disabled { opacity: 0.35; cursor: default; }
.qty input { width: 76px; min-height: 48px; border: 0; border-radius: 0; text-align: center; font-weight: 650; padding: 0 4px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }
.qty-sm input { min-height: 38px; width: 64px; }
.qty-sm button { width: 34px; font-size: 18px; }

.notice { background: var(--warn-bg); border-left: 4px solid var(--berry); border-radius: 0 var(--r-s) var(--r-s) 0; padding: 12px 16px; font-size: 14.5px; color: #6d2330; }
.notice p:last-child { margin: 0; }
.notice-strong { font-size: 15px; margin-top: 28px; }

.composition { margin-top: 56px; }
.table-scroll { overflow-x: auto; }
.comp-table, .order-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--frost); border-radius: var(--r-m); overflow: hidden; font-size: 15px; }
.comp-table th, .comp-table td, .order-table th, .order-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--frost-2); vertical-align: top; }
.comp-table th, .order-table th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--frost-2); }
.comp-table .num, .order-table .num { text-align: right; width: 1%; white-space: nowrap; }
.comp-table tbody tr:nth-child(even) { background: #fafbfe; }
.comp-table tfoot td { font-weight: 600; background: var(--foil-soft); color: #5c430b; }
.order-table tfoot td { font-weight: 700; font-size: 1.05rem; }
.related { padding-top: 64px; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- cart & checkout ---- */

.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cart-items { display: grid; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto 36px;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--frost);
  border-radius: var(--r-m);
  padding: 12px;
}
.cart-item.unavailable { opacity: 0.6; }
.cart-thumb { display: block; aspect-ratio: 23 / 15; border-radius: var(--r-s); overflow: hidden; background: var(--frost-2); }
.cart-thumb img, .cart-thumb .ph { width: 100%; height: 100%; object-fit: cover; font-size: 32px; }
.cart-item-name { font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.cart-item-name:hover { color: var(--berry); }
.cart-item-meta { font-size: 13.5px; color: var(--muted); }
.cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-line-total { font-weight: 700; white-space: nowrap; }
.cart-remove { width: 36px; height: 36px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.cart-remove:hover { background: #fdecef; color: var(--berry); }
.cart-warning { color: var(--berry); font-size: 13.5px; margin: 4px 0 0; }
.cart-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 14.5px; }
.cart-actions button { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.summary { position: sticky; top: 96px; }
.summary h2 { margin-bottom: 14px; }
.summary-row, .summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; margin-bottom: 8px; }
.summary-line span:first-child { color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--frost); padding-top: 14px; margin: 14px 0 16px; font-weight: 700; font-size: 1.25rem; }
.free-bar { margin: 14px 0 4px; font-size: 13.5px; color: var(--muted); }
.free-bar-track { height: 6px; border-radius: 3px; background: var(--frost-2); overflow: hidden; margin-top: 6px; }
.free-bar-fill { height: 100%; background: var(--foil); border-radius: 3px; }
.free-bar.is-done { color: var(--ok); font-weight: 600; }
.info-block { margin-top: 64px; }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.checkout-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.checkout-form legend { font-family: var(--serif); font-size: 1.4rem; color: var(--night); margin-bottom: 14px; padding: 0; }
.radio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--frost); border-radius: var(--r-m); cursor: pointer; background: var(--paper); }
.radio-card input { margin-top: 4px; accent-color: var(--night); }
.radio-card span { display: flex; flex-direction: column; line-height: 1.35; }
.radio-card strong { font-weight: 650; font-size: 14.5px; }
.radio-card small { color: var(--muted); font-size: 13px; margin-top: 2px; }
.radio-card:has(input:checked) { border-color: var(--night); background: var(--frost-2); }

@media (max-width: 960px) {
  .cart, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .radio-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cart-item { grid-template-columns: 84px minmax(0, 1fr) 32px; }
  .cart-item-controls { grid-column: 2 / 4; flex-direction: row; justify-content: space-between; align-items: center; }
  .cart-remove { grid-row: 1; grid-column: 3; }
}

.order-done { text-align: center; }
.order-done .order-table { text-align: left; margin: 22px 0; }
.order-icon { width: 64px; height: 64px; border-radius: 50%; background: #e3f3ea; color: var(--ok); display: grid; place-items: center; font-size: 34px; margin: 0 auto 16px; }

/* ---- content pages ---- */

.prose { max-width: 70ch; }
.prose.wide { max-width: 86ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { font-size: 1.15rem; }
.highlight { background: var(--foil-soft); padding: 10px 14px; border-radius: var(--r-s); font-weight: 600; color: #5c430b; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.content-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-l); position: sticky; top: 100px; }
.letter { margin: 24px 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--foil); font-size: 1.05rem; }
.letter footer { font-style: italic; color: var(--muted); }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-big { font-family: var(--serif); font-size: 1.5rem; color: var(--night); }
.contact-big a { text-decoration: none; }

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 28px; }
  .content-img { position: static; order: -1; }
  .contact-cards { grid-template-columns: 1fr; }
}

/* ---- footer ---- */

.site-footer { background: var(--night-deep); color: rgba(255, 255, 255, 0.78); padding: 56px 0 28px; font-size: 14.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--foil-soft); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 190px; height: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 32ch; }
.footer-col h2 { font-family: var(--sans); font-size: 14px; font-weight: 650; color: var(--foil); margin: 0 0 10px; }
.footer-col h2:not(:first-child) { margin-top: 20px; }
.footer-col nav, .footer-col { display: flex; flex-direction: column; }
.footer-col > a { padding: 3px 0; }
.footer-col p { margin: 0; }
.footer-note { color: rgba(255, 255, 255, 0.55); font-size: 13px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.5); font-size: 13px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- toast ---- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  border-radius: var(--r-m);
  background: var(--night-deep);
  color: #fff;
  box-shadow: 0 12px 32px -8px rgba(12, 23, 64, 0.5);
  animation: toast-in 0.2s ease;
}
.toast[hidden] { display: none; }
.toast a { color: var(--foil); font-weight: 650; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- owner admin ---- */

body.admin { background: var(--snow); }
.admin-header { background: var(--night-deep); color: #fff; }
.admin-header-row { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.admin-brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 22px; }
.admin-brand span { font-family: var(--sans); font-size: 13px; color: var(--foil); margin-left: 6px; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.admin-nav a { color: rgba(255, 255, 255, 0.8); text-decoration: none; padding: 7px 12px; border-radius: var(--r-s); font-size: 14.5px; }
.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.admin-nav a.active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.admin-main { padding-top: 28px; padding-bottom: 64px; }
.admin-main h1 { font-size: 2rem; margin: 0; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 20px; }
.admin-main .panel + .panel { margin-top: 20px; }
.flash { padding: 12px 16px; border-radius: var(--r-s); margin-bottom: 18px; }
.flash-ok { background: #e3f3ea; color: #145238; }
.flash-error { background: #fdecef; color: var(--berry-dark); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs a { padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--frost); color: var(--ink); text-decoration: none; font-size: 14px; }
.tabs a span { color: var(--muted); margin-left: 4px; }
.tabs a.active { background: var(--night); border-color: var(--night); color: #fff; }
.tabs a.active span { color: var(--foil-soft); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--frost); border-radius: var(--r-m); font-size: 14.5px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--frost-2); text-align: left; vertical-align: middle; }
.admin-table th { font-size: 12.5px; color: var(--muted); font-weight: 600; background: var(--frost-2); }
.admin-table .num { text-align: right; }
.admin-table tfoot td { font-weight: 700; }
.admin-table .thumb { width: 64px; }
.admin-table .thumb img { width: 64px; height: 42px; object-fit: cover; border-radius: 6px; }
.row-muted td { color: var(--muted); }
.row-muted .thumb img { opacity: 0.5; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 650; }
.badge-new { background: var(--foil-soft); color: #6b4e0c; }
.badge-confirmed { background: #e6ecfb; color: var(--night); }
.badge-shipped { background: #e7f0ff; color: #1d4ea8; }
.badge-done { background: #e3f3ea; color: #145238; }
.badge-cancelled { background: #f0f0f3; color: var(--muted); }
.badge-out { background: #fdecef; color: var(--berry-dark); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.input-stock { width: 90px !important; }
.details { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.pre { white-space: pre-wrap; }
.pager { display: flex; justify-content: space-between; margin-top: 16px; }
.small { font-size: 13.5px; }
.admin-form .field-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.admin-form textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; min-height: 280px; }
.admin-form .check { font-size: 15px; }
.admin-form .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.admin-photo { border: 1px solid var(--frost); border-radius: var(--r-s); padding: 8px; background: var(--paper); display: grid; gap: 6px; font-size: 13px; }
.admin-photo img { width: 100%; aspect-ratio: 23 / 15; object-fit: cover; border-radius: 6px; }
.admin-photo.is-main { border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.status-list { display: grid; gap: 12px; }
.status-ok { color: var(--ok); font-weight: 600; }
.status-off { color: var(--muted); }
.status-bad { color: var(--berry); font-weight: 600; }
code { background: var(--frost-2); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
pre { background: var(--frost-2); padding: 12px; border-radius: var(--r-s); overflow-x: auto; font-size: 13.5px; }
@media (max-width: 800px) {
  .admin-grid { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 8px; }
}

/* two compact columns of cards on phones */
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: 0.98rem; }
  .card-pack { font-size: 12.5px; margin-bottom: 10px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-foot .btn { width: 100%; }
  .price { font-size: 1.05rem; }
  .card-meta { gap: 4px; }
  .card-weight, .card-extra { font-size: 11.5px; padding: 1px 6px; }
}
