:root {
  --canvas: #f5efe3;
  --canvas-2: #ede3d1;
  --paper: #fffaf0;
  --paper-2: #fbf2e2;
  --graphite: #3f3a33;
  --ink: #28231e;
  --muted: #7b7165;
  --muted-2: #a99d8d;
  --accent: #a98b57;
  --accent-dark: #725d35;
  --line: rgba(63, 58, 51, 0.16);
  --shadow: 0 24px 80px rgba(62, 48, 33, 0.14);
  --radius: 28px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, Manrope, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--graphite);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.68), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(199,177,138,.23), transparent 32%),
    linear-gradient(120deg, var(--canvas), var(--canvas-2));
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(169,139,87,.26); }

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  opacity: .36;
  background-image:
    radial-gradient(rgba(68,56,42,.18) .55px, transparent .75px),
    radial-gradient(rgba(255,255,255,.45) .6px, transparent .8px);
  background-size: 8px 8px, 11px 11px;
  mix-blend-mode: multiply;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section-pad { padding: 112px 0; }
.section-pad-small { padding: 78px 0; }

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.6);
  border-bottom-color: rgba(81,68,51,.11);
  border-radius: 999px;
  background: rgba(255, 249, 238, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(64, 50, 35, .09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--serif);
  background: var(--graphite);
  color: var(--paper);
  letter-spacing: 0;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(63,58,51,.72);
}
.desktop-nav a, .mobile-panel a { transition: color .25s ease; }
.desktop-nav a:hover, .mobile-panel a:hover { color: var(--ink); }
.nav-cta {
  padding: 13px 20px;
  border-radius: 999px;
  background: rgba(63,58,51,.94);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 9px;
  cursor: pointer;
}
.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--graphite);
  border-radius: 2px;
}
.mobile-panel {
  position: fixed;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 79;
  width: min(420px, calc(100% - 32px));
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  background: rgba(255, 249, 238, .9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 14px;
}
.mobile-panel a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-panel a:last-child { border-bottom: 0; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 118px;
}
.sketch-layer {
  position: absolute;
  inset: 0;
  opacity: .14;
  pointer-events: none;
  background-image: url('./assets/sketch-3.png');
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: multiply;
}
.hero-bg::after, .promo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245,239,227,.96), rgba(245,239,227,.58), rgba(245,239,227,.9));
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.18fr) minmax(200px, .72fr);
  gap: 22px;
  align-items: center;
}
.eyebrow, .section-kicker {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1, .split-head h2, .about h2, .promo h2 {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.055em;
}
.hero h1 { font-size: clamp(40px, 5.6vw, 88px); overflow-wrap: break-word; }
.lead {
  margin: 24px 0 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(63,58,51,.2);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  font-weight: 750;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(64,48,32,.13); }
.button.primary {
  border-color: transparent;
  background: var(--graphite);
  color: var(--paper);
}
.button.ghost { background: rgba(255,250,240,.56); }
.button.full { width: 100%; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 44px 0 0;
}
.hero-facts div {
  padding: 16px 14px;
  border-top: 1px solid rgba(63,58,51,.18);
}
.hero-facts dt {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}
.hero-facts dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.hero-portrait {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}
.portrait-orbit {
  position: absolute;
  z-index: 1;
  width: min(46vw, 560px);
  aspect-ratio: 4 / 3;
  border-radius: 48px;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.7), transparent 36%),
    linear-gradient(150deg, #e7dcc6, #d4c19b);
  box-shadow: 0 40px 110px rgba(92,72,45,.22);
  opacity: .85;
  filter: blur(6px);
  transform: translate(6%, 7%);
}
.hero-portrait img {
  position: relative;
  z-index: 2;
  width: min(52vw, 620px);
  max-width: 100%;
  height: auto;                 /* full landscape photo — never cropped */
  border-radius: 26px;
  box-shadow: 0 42px 90px rgba(64,48,32,.28);
}
.glass-card {
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(255, 250, 240, .64);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.portrait-card {
  position: absolute;
  z-index: 4;
  left: 18px;
  bottom: 18px;
  max-width: 250px;
  padding: 16px 20px;
  border-radius: 20px;
}
.portrait-card span {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}
.portrait-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
.hero-title {
  align-self: center;
  font-family: var(--serif);
  color: rgba(63,58,51,.82);
  font-size: clamp(34px, 4.4vw, 66px);
  line-height: .92;
  letter-spacing: -.06em;
  text-align: right;
  overflow-wrap: break-word;
  hyphens: none;
}
.hero-title span { display: block; }

.about { position: relative; }
.section-kicker { margin-bottom: 20px; }
.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: clamp(30px, 5vw, 62px);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  inset: -40% 48% -20% -10%;
  background: url('./assets/sketch-1.png') center/cover no-repeat;
  opacity: .12;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}
.about h2 { font-size: clamp(38px, 5vw, 68px); }
.about p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(280px, .7fr);
  gap: 32px;
  align-items: end;
}
.split-head h2 { font-size: clamp(42px, 6vw, 84px); }
.split-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.directions { position: relative; overflow: hidden; }
.directions::before {
  content: '';
  position: absolute;
  inset: 8% -20% auto auto;
  width: 600px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169,139,87,.18), transparent 64%);
}
.accordion-wrap {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: stretch;
  height: 500px;
  margin-top: 46px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0 14px;
  scrollbar-width: thin;
}
.category-card {
  position: relative;
  flex: 0 0 78px;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
  transition: flex-basis .72s cubic-bezier(.22, 1, .36, 1), transform .3s ease;
  min-width: 78px;
  box-shadow: 0 18px 58px rgba(65,50,32,.13);
}
.category-card.is-active { flex-basis: min(480px, 62vw); }
.category-card:hover { transform: translateY(-4px); }
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(.96);
  transform: scale(1.04);
}
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,34,25,.08), rgba(42,34,25,.72));
}
.category-count {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,250,240,.76);
  color: var(--ink);
  font-family: var(--serif);
}
.category-title {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 24px;
  width: max-content;
  max-width: 360px;
  color: white;
  transform-origin: left center;
  transform: rotate(-90deg) translateY(12px);
  transition: transform .45s ease, bottom .45s ease, left .45s ease;
  text-align: left;
}
.category-card.is-active .category-title {
  transform: rotate(0) translateY(0);
  bottom: 34px;
  left: 34px;
}
.category-title strong {
  display: block;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-shadow: 0 4px 22px rgba(0,0,0,.26);
}
.category-title span {
  display: block;
  width: min(340px, 44vw);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  transition: max-height .45s ease, opacity .45s ease;
}
.category-card.is-active .category-title span { max-height: 90px; opacity: .9; }

.works-shell { padding: 60px 0 0; position: relative; }
.works-intro { margin-bottom: 30px; }
.work-section {
  position: relative;
  min-height: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 96px 0;
  scroll-margin-top: 84px;
}
.work-section:nth-child(odd) { background: rgba(255,250,240,.24); }
.work-bg {
  position: absolute;
  inset: 0;
  opacity: .11;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: multiply;
}
.work-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(245,239,227,.65), rgba(245,239,227,.96) 67%);
}
.showcase {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}
.showcase h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 86px);
  line-height: .95;
  letter-spacing: -.055em;
  color: var(--ink);
}
.showcase-subtitle {
  max-width: 680px;
  margin: 18px auto 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}
/* ---- Section head: title + “show all” toggle ---- */
.showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}
.showcase-head .eyebrow { margin-bottom: 10px; }
.show-all {
  flex: none;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(63,58,51,.24);
  background: rgba(255,250,240,.7);
  color: var(--ink);
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.show-all:hover { transform: translateY(-2px); border-color: var(--ink); background: var(--paper); }

/* ---- Carousel (animated deck). Photos shown whole — never cropped ---- */
.deck {
  position: relative;
  height: 520px;
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.art-card {
  position: absolute;
  width: min(320px, 80vw);
  height: 460px;
  border: 0;
  padding: 0;
  border-radius: 26px;
  overflow: hidden;
  background: #211d18;             /* dark mat — artwork sits fully inside the frame */
  cursor: pointer;
  box-shadow: 0 34px 90px rgba(40,30,18,.34);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1), opacity .45s ease, filter .45s ease;
}
.art-media { display: block; width: 100%; height: 100%; }
.art-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;            /* whole photo visible throughout the animation */
  background: #211d18;
}
.art-media .art-media-el, .art-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #211d18;
}
/* Sound toggle on a video-preview card (opt-in: autoplay must stay muted) */
.video-sound {
  position: absolute;
  z-index: 3;
  top: 14px; left: 14px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(33,29,24,.62);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
}
.video-sound:hover { background: rgba(33,29,24,.85); transform: scale(1.06); }
.video-sound[aria-pressed="true"] { background: var(--accent-dark); }
.art-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(15,12,8,.86));
  pointer-events: none;
}
.art-caption {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
  text-align: left;
}
.art-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(255,255,255,.92);
  color: #3c5a3a;
}
.art-status.is-order { color: #7a5a2a; }
.art-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.art-meta {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
  opacity: .92;
}
.art-add {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,250,240,.95);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(30,22,12,.28);
  transition: transform .2s ease, background .2s ease;
}
.art-add:hover { transform: translateY(-1px) scale(1.04); background: #fff; }
.deck-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.round-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(63,58,51,.2);
  background: rgba(255,250,240,.78);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.round-button:hover { transform: translateY(-2px); background: var(--paper); border-color: var(--ink); }

/* ---- “Показать все” → masonry grid of full-bleed photos ---- */
.deck.is-grid {
  position: static;
  display: block;
  height: auto;
  margin-top: 26px;
  perspective: none;
  columns: 3;
  column-gap: 22px;
}
.deck.is-grid .art-card {
  position: static;
  width: 100%;
  height: auto;
  margin: 0 0 22px;
  background: var(--paper);
  border-radius: 22px;
  break-inside: avoid;
  box-shadow: 0 18px 50px rgba(64,48,32,.16);
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.deck.is-grid .art-card img, .deck.is-grid .art-card video { height: auto; object-fit: fill; }
.deck.is-grid .art-card:hover { transform: translateY(-6px) !important; }
.deck.is-grid.few {
  columns: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}
.deck.is-grid.few .art-card { width: min(360px, 100%); margin: 0; }

.promo {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.promo-bg { background-image: url('./assets/sketch-2.png'); opacity: .16; }
.promo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(320px, .62fr);
  gap: 46px;
  align-items: center;
}
.promo h2 { font-size: clamp(44px, 6vw, 88px); }
.promo-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.promo-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 560px;
  margin-top: 34px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,250,240,.58);
  border: 1px solid rgba(255,255,255,.68);
}
.promo-note span { color: var(--accent-dark); font-size: 22px; }
.promo-note p { margin: 0; color: var(--muted); line-height: 1.6; }
.order-card {
  border-radius: 32px;
  padding: 30px;
}
.order-card h3 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
}
.order-card label {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.order-card input, .order-card select, .order-card textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(63,58,51,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.46);
  color: var(--graphite);
  outline: 0;
  padding: 15px 16px;
  transition: border .25s ease, background .25s ease;
}
.order-card input:focus, .order-card select:focus, .order-card textarea:focus {
  border-color: rgba(169,139,87,.56);
  background: rgba(255,255,255,.68);
}
.order-card .button { margin-top: 20px; }
.contact-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.footer a { color: var(--graphite); font-weight: 800; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34,28,23,.54);
  backdrop-filter: blur(10px);
}
.modal-card {
  position: relative;
  z-index: 2;
  width: min(940px, 100%);
  max-height: min(86vh, 760px);
  display: grid;
  grid-template-columns: .9fr .8fr;
  overflow: hidden;
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 40px 120px rgba(0,0,0,.28);
}
.modal-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,250,240,.78);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-image-wrap { min-height: 520px; background: #efe7d8; }
.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* full artwork in the modal — no cropping */
}
.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}
.modal-content h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  line-height: .98;
  letter-spacing: -.055em;
  color: var(--ink);
}
.modal-content p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}
.modal-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0 20px;
  color: var(--graphite);
  font-weight: 750;
}
.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 120%);
  opacity: 0;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--graphite);
  color: var(--paper);
  box-shadow: var(--shadow);
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .16s; }
.delay-2 { transition-delay: .3s; }

@media (max-width: 980px) {
  .desktop-nav, .nav-cta { display: none; }
  .menu-button { display: block; }
  .topbar { height: 60px; }
  .hero-grid, .about-card, .split-head, .promo-grid, .modal-card {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 104px; }
  .hero-grid { gap: 8px; }
  .hero-copy { order: 1; text-align: center; }
  .lead, .hero-facts { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-portrait { order: 2; min-height: 500px; }
  .portrait-orbit { width: min(86vw, 500px); }
  .hero-portrait img { width: min(108vw, 660px); }
  .hero-title { order: 3; text-align: center; }
  .portrait-card { right: 6%; bottom: 38px; }
  .category-card.is-active { flex-basis: min(440px, 74vw); }
  .work-section { min-height: auto; }
  .deck.is-grid { columns: 2 !important; }
  .modal-card { max-height: 90vh; overflow-y: auto; }
  .modal-image-wrap { min-height: 320px; }
  .cart-panel { width: min(440px, 92vw); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section-pad { padding: 82px 0; }
  .section-pad-small { padding: 58px 0; }
  .brand span:last-child { display: none; }
  .hero h1 { font-size: clamp(42px, 15vw, 68px); }
  .lead { font-size: 16px; }
  .button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; margin-top: 28px; }
  .hero-facts div { text-align: center; padding: 12px; }
  .hero-portrait { min-height: 360px; }
  .hero-title { font-size: 54px; }
  .portrait-card { left: 18px; right: 18px; bottom: 10px; max-width: none; }
  .accordion-wrap { height: 420px; }
  .category-card { flex-basis: 64px; min-width: 64px; }
  .category-title strong { font-size: 25px; }
  .category-card.is-active { flex-basis: 76vw; }
  .deck.is-grid { columns: 1 !important; }
  .deck { height: 440px; }
  .art-card { width: min(280px, 84vw); height: 400px; }
  .showcase-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .show-all { align-self: flex-start; }
  .work-section { min-height: auto; padding: 72px 0; }
  .promo { min-height: auto; }
  .order-card, .modal-content { padding: 26px; }
  .cart-panel { width: 100vw; }
  .footer { flex-direction: column; align-items: center; text-align: center; }
  .toast { width: calc(100% - 32px); text-align: center; border-radius: 22px; }
}

/* --- Horizontal video promo / закрытая видеотека --- */
.horizontal-stage {
  width: 100vw;
  overflow-x: hidden;
}
.horizontal-track {
  display: flex;
  width: 200vw;
  align-items: stretch;
  transform: translateX(0);
  transition: transform .95s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.horizontal-track.is-video-page {
  transform: translateX(-100vw);
}
.horizontal-page {
  flex: 0 0 100vw;
  width: 100vw;
  min-height: 100vh;
}
.video-promo {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.video-promo-bg {
  background-image: url('./assets/sketch-3.png');
  opacity: .13;
  transform: scale(1.08) rotate(-1deg);
}
.video-promo-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, .82fr);
  gap: 42px;
  align-items: center;
  padding: clamp(24px, 4vw, 54px);
  border-radius: 38px;
}
.video-promo-copy h2 {
  max-width: 760px;
  font-size: clamp(42px, 5.6vw, 78px);
}
.video-promo-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}
.checklist span {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(169,139,87,.16);
  color: var(--accent-dark);
  font-size: 13px;
}
.video-promo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.video-thumbnail {
  position: relative;
  min-height: 360px;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: rgba(63,58,51,.12);
  cursor: pointer;
  box-shadow: 0 26px 70px rgba(48,38,28,.18);
}
.video-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255,250,240,.12), rgba(33,28,23,.54)),
    radial-gradient(circle at 50% 42%, rgba(255,250,240,.24), transparent 32%);
}
.video-thumbnail img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: grayscale(.2) contrast(.96);
  transition: transform .5s ease;
}
.video-thumbnail:hover img { transform: scale(1.045); }
.video-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255,250,240,.82);
  color: var(--graphite);
  font-size: 31px;
  line-height: 1;
  padding-left: 5px;
  box-shadow: 0 18px 46px rgba(0,0,0,.22);
}
.video-badge,
.video-thumb-caption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  color: var(--paper);
  text-align: left;
}
.video-badge {
  top: 24px;
  width: max-content;
  max-width: calc(100% - 48px);
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(40,35,30,.48);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.video-thumb-caption {
  bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -.035em;
}
.video-page {
  position: relative;
  overflow: hidden;
  padding: 106px 0 80px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.72), transparent 28%),
    linear-gradient(120deg, var(--canvas), #eadfcc);
}
.video-library-bg {
  background-image: url('./assets/sketch-1.png');
  opacity: .13;
}
.video-library-inner {
  position: relative;
  z-index: 2;
}
.video-library-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.access-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,250,240,.66);
  border: 1px solid rgba(63,58,51,.14);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.video-library-hero {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}
.video-library-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 104px);
  line-height: .88;
  letter-spacing: -.07em;
  color: var(--ink);
}
.video-library-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.video-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(255,255,255,.68);
  border-bottom-color: rgba(63,58,51,.12);
  border-radius: 30px;
  background: rgba(255,250,240,.58);
  box-shadow: 0 20px 58px rgba(64,50,35,.12);
  cursor: pointer;
  text-align: left;
  transition: transform .3s ease, box-shadow .3s ease;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(64,50,35,.18);
}
.video-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  filter: grayscale(.25) sepia(.08);
}
.video-card-body {
  padding: 20px;
}
.video-card small {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(169,139,87,.12);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.video-card h3 {
  margin: 14px 0 10px;
  font-family: var(--serif);
  color: var(--ink);
  font-size: 29px;
  line-height: .98;
  letter-spacing: -.04em;
}
.video-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}
.video-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
}
.video-card-play {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--paper);
  padding-left: 3px;
}
.auth-card {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  padding: 34px;
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 40px 120px rgba(0,0,0,.28);
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.auth-card h3 {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  font-size: 44px;
  line-height: .95;
  letter-spacing: -.05em;
}
.auth-hint {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.auth-card label {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.auth-card input,
.auth-card textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(63,58,51,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  color: var(--graphite);
  outline: 0;
  padding: 15px 16px;
  font: inherit;
  resize: vertical;
}
.auth-card input:focus,
.auth-card textarea:focus {
  border-color: rgba(169,139,87,.56);
  background: rgba(255,255,255,.82);
}
.auth-card .button { margin-top: 22px; }
.pass-field { display: flex; align-items: stretch; gap: 8px; margin-top: 8px; }
.pass-field input { margin-top: 0; flex: 1; min-width: 0; }
.pass-toggle {
  flex: 0 0 auto;
  border: 1px solid rgba(63,58,51,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.58);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 14px;
  white-space: nowrap;
}
.pass-toggle:hover { background: rgba(255,255,255,.82); }
/* Inline form errors — stay visible under the field (mobile toasts hide behind the keyboard) */
.field-error {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(178, 58, 44, .1);
  border: 1px solid rgba(178, 58, 44, .35);
  color: #8f2c20;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
}
.field-error[hidden] { display: none; }
.pass-field input.is-invalid { border-color: #b23a2c; outline-color: #b23a2c; }

@media (max-width: 980px) {
  .horizontal-track { width: 200vw; }
  .video-promo-card { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .video-promo { min-height: auto; }
  .video-promo-card { padding: 22px; }
  .video-promo-actions .button { width: 100%; }
  .video-thumbnail, .video-thumbnail img { min-height: 300px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-page { padding-top: 92px; }
  .video-library-top .button { width: 100%; }
  .access-pill { width: 100%; justify-content: center; }
  .auth-card { padding: 28px; }
}

/* ============================================================
   CART BUTTON · DRAWER · CHECKOUT (e-commerce)
   ============================================================ */
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  cursor: pointer;
}
.cart-button .cart-ico { font-size: 16px; line-height: 1; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.cart-button.bump { animation: cartBump .42s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 30% { transform: scale(1.13); } 100% { transform: scale(1); } }

.cart-drawer { position: fixed; inset: 0; z-index: 130; visibility: hidden; pointer-events: none; }
.cart-drawer.is-open { visibility: visible; pointer-events: auto; }
.cart-backdrop {
  position: absolute; inset: 0;
  background: rgba(28,22,14,.46);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s ease;
}
.cart-drawer.is-open .cart-backdrop { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; right: 0;
  height: 100%;
  width: min(460px, 94vw);
  display: flex; flex-direction: column;
  background: var(--paper);
  box-shadow: -30px 0 90px rgba(30,22,12,.3);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}
.cart-drawer.is-open .cart-panel { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 { margin: 0; font-family: var(--serif); font-size: 28px; color: var(--ink); }
.cart-head .modal-close { position: static; }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 26px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty { color: var(--muted); line-height: 1.6; margin: 22px 0; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.cart-item-info { min-width: 0; }
.cart-item-info strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--ink); line-height: 1.15; overflow-wrap: anywhere; }
.cart-item-meta { display: block; margin: 3px 0 8px; font-size: 13px; color: var(--muted); }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button {
  width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,250,240,.7);
  cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink);
}
.cart-qty .cart-remove { width: auto; padding: 0 8px; font-size: 12px; color: var(--muted); margin-left: 4px; }
.cart-qty .cart-remove:hover { color: var(--ink); }
.cart-item-sum { font-weight: 800; color: var(--ink); white-space: nowrap; }
.cart-foot { padding: 20px 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.cart-total-row { display: flex; align-items: baseline; justify-content: space-between; }
.cart-total-row span { color: var(--muted); }
.cart-total-row strong { font-family: var(--serif); font-size: 28px; color: var(--ink); }
.cart-foot .button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.checkout-card {
  position: relative; z-index: 2;
  width: min(520px, 100%);
  max-height: 90vh; overflow-y: auto;
  padding: 40px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 40px 120px rgba(0,0,0,.28);
  display: flex; flex-direction: column; gap: 14px;
}
.checkout-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); color: var(--ink); letter-spacing: -.04em; }
.checkout-summary { margin: 0 0 4px; color: var(--muted); }
.checkout-summary span { color: var(--ink); font-weight: 800; }
.checkout-card label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; color: var(--graphite); }
.checkout-card input[type=text],
.checkout-card input[type=email],
.checkout-card input[type=tel] {
  padding: 13px 15px; border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.checkout-card input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.checkout-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.checkout-consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--accent-dark); }

/* Purchase section helpers */
.order-card-sub { margin: 4px 0 18px; color: var(--muted); line-height: 1.6; }
.order-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.order-steps li { display: flex; align-items: center; gap: 12px; color: var(--graphite); font-weight: 600; }
.order-steps li > span:first-child {
  flex: none; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 800;
}
.order-steps li > span[data-label] { flex: 1; min-width: 0; color: var(--graphite); font-weight: 600; }

/* Cart stays reachable on mobile (nav-cta is hidden there) */
@media (max-width: 980px) {
  .cart-button { display: inline-flex !important; align-items: center; padding: 0 14px; min-height: 44px; }
  .cart-button .cart-label { display: none; }
  .account-button { display: inline-flex !important; align-items: center; justify-content: center; padding: 0 12px; min-height: 44px; font-size: 13px; }
}

/* ============================================================
   VIDEO CARDS · FOOTER NAV · ADMIN PANEL
   ============================================================ */
.video-flag {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,250,240,.92);
  color: var(--ink);
  font-size: 20px;
  box-shadow: 0 12px 30px rgba(30,22,12,.4);
  pointer-events: none;
  transition: top .45s ease, left .45s ease, width .45s ease, height .45s ease, font-size .45s ease;
}
/* While a preview video plays on the active card, the ▶ badge slides down into the bottom-right corner */
/* The ▶ on a preview card is a real play button (click to start) — keep it above the caption/buy button so taps land on it, not the card */
.video-flag.is-play { pointer-events: auto; cursor: pointer; z-index: 6; }
.video-flag.is-play:hover { background: #fff; }
/* While the preview plays, the ▶ badge slides down into the bottom-right corner */
.video-card-deck.preview-playing .video-flag {
  top: calc(100% - 30px);
  left: calc(100% - 30px);
  width: 42px; height: 42px;
  font-size: 14px;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.footer-nav a { color: var(--muted); font-size: 13px; font-weight: 600; }
.footer-nav a:hover { color: var(--ink); }
.footer-social { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.footer-social a { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.footer-social a:hover { color: var(--ink); }
.footer-social a[hidden] { display: none; }

/* Mobile admin scroll fix: make admin-page its own scroll container when open */
body.video-open .horizontal-stage { height: 100vh; height: 100dvh; overflow: hidden; }
body.video-open .horizontal-track { height: 100%; }
body.video-open .admin-page { height: 100vh; height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.video-open .landing-page { overflow: hidden; }

.admin-page { background: var(--canvas); overflow-y: auto; }
.admin-inner { padding: 92px 0 80px; }
.admin-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.admin-top h1 { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 60px); letter-spacing: -.04em; color: var(--ink); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.admin-card h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.admin-card label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.admin-card input[type=text],
.admin-card input[type=number],
.admin-card textarea,
.admin-card select {
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.7); font-size: 15px; font-weight: 500; color: var(--ink);
  text-transform: none; letter-spacing: normal;
}
.admin-card input[type=file] { font-size: 13px; }
.admin-card textarea { resize: vertical; }
.admin-card input:focus-visible,
.admin-card textarea:focus-visible,
.admin-card select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.admin-card .button { margin-top: 6px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.admin-empty { color: var(--muted); margin: 10px 0; }
.admin-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; }
.admin-row img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.admin-row-info { min-width: 0; }
.admin-row-info strong { display: block; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.admin-row-info span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.admin-del { border: 0; background: none; color: var(--accent-dark); font-weight: 700; cursor: pointer; font-size: 13px; }
.admin-del:hover { text-decoration: underline; }
.admin-actions { display: flex; gap: 12px; align-items: center; }
.admin-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.admin-preview img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.admin-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-bottom: 4px; align-items: end; }
.admin-labels label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; }
.admin-labels label input[type=text] { width: 100%; font-size: 14px; }
.admin-labels-group { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.admin-labels-group:first-child { margin-top: 0; }
@media (max-width: 640px) { .admin-labels { grid-template-columns: minmax(0, 1fr); } }
.ce-photo { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.ce-photo img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.05); }
.ce-photo img:not([src]), .ce-photo img[src=""] { display: none; }
.ce-photo input { flex: 1; min-width: 0; }
.admin-code { display: inline-block; font-size: 12px; word-break: break-all; background: rgba(0,0,0,.05); padding: 4px 8px; border-radius: 8px; }
.admin-orders { display: flex; flex-direction: column; gap: 10px; max-height: 440px; overflow-y: auto; }
.admin-order { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.admin-order-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.admin-order-status { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.admin-order-status.paid { background: #1f7a4d; color: #fff; }
.admin-order-status.pending { background: rgba(0,0,0,.08); color: var(--muted); }
.admin-order-items { font-size: 14px; color: var(--ink); margin-top: 4px; }
.admin-order-meta { font-size: 12px; color: var(--muted); margin-top: 4px; word-break: break-all; }
.admin-order-actions { margin-top: 8px; }
.admin-mark-paid { font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent-dark); background: transparent; color: var(--accent-dark); cursor: pointer; }
.admin-mark-paid:hover { background: var(--accent-dark); color: #fff; }
.admin-edit { border: 0; background: none; color: var(--ink); font-weight: 700; cursor: pointer; font-size: 13px; }
.admin-edit:hover { text-decoration: underline; color: var(--accent-dark); }
.admin-card-sub { margin: -6px 0 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.admin-card-wide { grid-column: 1 / -1; }
.admin-card-wide .admin-list { max-height: 440px; }
.admin-group-title { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.admin-group-title:first-child { margin-top: 0; }
.admin-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent-dark); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .03em; vertical-align: middle; text-transform: none; }
.admin-restore { margin-top: 12px; width: 100%; padding: 11px; border: 1px dashed var(--line); border-radius: 12px; background: transparent; color: var(--accent-dark); font-weight: 700; cursor: pointer; }
.admin-restore:hover { border-color: var(--accent-dark); }
.admin-hero-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.admin-hero-preview img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (max-width: 820px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .admin-inner { padding: 84px 0 64px; }
}

/* Account button next to cart */
.account-button { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.account-button:hover { background: rgba(255,255,255,.55); }

/* Auth + account + player modals */
.auth-switch { margin-top: 10px; text-align: center; font-size: 13px; }
.auth-switch a { color: var(--accent-dark); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.account-card { max-width: 540px; }
.account-videos { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; margin: 12px 0; }
.account-video { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.account-video img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.account-video-info { min-width: 0; }
.account-video-info strong { display: block; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.account-video-info span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.account-video-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.account-video-actions .button { padding: 8px 14px; font-size: 13px; text-decoration: none; }
@media (max-width: 520px) { .account-video { grid-template-columns: 56px minmax(0, 1fr); } .account-video-actions { grid-column: 1 / -1; justify-content: stretch; } .account-video-actions .button { flex: 1; text-align: center; } }
.player-card { position: relative; width: min(960px, 94vw); max-height: 90vh; background: #0b0b0b; border-radius: 20px; padding: 14px 14px 16px; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.player-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 22px; padding-right: 40px; }
.player-card video { width: 100%; max-height: 78vh; border-radius: 12px; background: #000; display: block; }
.player-card .modal-close { color: #fff; }
.art-add.is-owned { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }

/* ===== Visitor modal: thumbnail strip ===== */
.modal-image-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}
/* main image takes the space left after the thumb strip; thumbs keep their own height */
.modal-image-wrap > img { flex: 1; min-height: 0; }
.modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(239,231,216,.85);
  border-top: 1px solid var(--line);
}
.modal-thumb {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #ede3d1;
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s, border-color .2s;
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-thumb.is-active { border-color: var(--accent); opacity: 1; }
.modal-thumb:hover { opacity: .9; }
/* Fade effect on main image swap */
#modalImage { transition: opacity .12s ease; }
#modalImage.modal-img-fade { opacity: 0; }

/* ===== Admin card editor: gallery manager ===== */
.ce-gallery-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--graphite);
  margin-top: 4px;
}
.ce-gallery-label[hidden] { display: none; }
.ce-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}
.ce-gallery-empty { color: var(--muted); font-size: 13px; font-weight: 400; margin: 0; }
.ce-thumb-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--canvas-2);
  flex-shrink: 0;
}
.ce-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ce-remove-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(40,35,30,.72);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ce-remove-thumb:hover { background: #b33; }
.ce-cover-badge {
  position: absolute;
  bottom: 3px;
  left: 3px;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  pointer-events: none;
}
.ce-make-cover {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(40,35,30,.55);
  color: #ffe;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ce-make-cover:hover { background: var(--accent); }
.ce-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ce-upload-row input[type=file] {
  display: none;
}
.ce-upload-row .button { font-size: 13px; padding: 8px 16px; }

/* ===== Responsive adjustments ===== */
@media (max-width: 980px) {
  .modal-thumb { width: 52px; height: 52px; }
  .ce-thumb-wrap { width: 64px; height: 64px; }
}
@media (max-width: 680px) {
  .modal-thumb { width: 44px; height: 44px; border-radius: 7px; }
  .modal-thumbs { gap: 5px; padding: 8px 10px; }
}

/* Cosmetic: clip any 100vw decorative backgrounds so the desktop scrollbar gutter doesn't cause horizontal scroll */
html, body { overflow-x: hidden; }
