:root {
  --bg: #f6f1e8;
  --bg-soft: #fffaf2;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --text: #171a24;
  --muted: #71717f;
  --muted-2: #9b9388;
  --blue: #092f78;
  --blue-2: #0b4fb5;
  --blue-soft: rgba(9, 47, 120, 0.09);
  --gold: #b88932;
  --gold-soft: rgba(184, 137, 50, 0.16);
  --line: rgba(33, 31, 26, 0.12);
  --line-strong: rgba(9, 47, 120, 0.18);
  --danger: #bd2b35;
  --success: #2c7c4b;
  --shadow: 0 24px 80px rgba(32, 25, 13, 0.14);
  --soft-shadow: 0 18px 45px rgba(33, 31, 26, 0.10);
  --radius: 28px;
  --radius-xl: 42px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(9,47,120,0.08), transparent 25%),
    radial-gradient(circle at 84% 4%, rgba(184,137,50,0.13), transparent 22%),
    linear-gradient(180deg, #fffaf2 0%, #f6f1e8 48%, #fffdf8 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('assets/soft-porcelain-bg.png');
  background-size: cover;
  background-position: center top;
  opacity: .18;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(9,47,120,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .18;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1220px, calc(100% - 36px)); margin: 0 auto; }
.hidden { display: none !important; }

.app-shell { overflow: hidden; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 242, 0.82);
  border-bottom: 1px solid rgba(184,137,50,.18);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 35px rgba(35, 27, 15, 0.05);
}

.topbar-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: 270px auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: .06em;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.38), transparent 28%),
    linear-gradient(145deg, #0b55b8 0%, #092f78 55%, #041841 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.24), 0 14px 26px rgba(9,47,120,.22);
  position: relative;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(226, 190, 106, .75);
  border-radius: inherit;
}

.brand-title {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .02em;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-top: 5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #4a4650;
  font-weight: 600;
  font-size: .94rem;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: .22s ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

.search-box input {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(9,47,120,.15);
  background: rgba(255,255,255,.72);
  padding: 0 18px 0 44px;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 12px 32px rgba(32,25,13,.06);
  background-image: linear-gradient(90deg, rgba(9,47,120,.05), transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23092f78' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
}

.search-box input:focus {
  border-color: rgba(9,47,120,.35);
  box-shadow: 0 0 0 4px rgba(9,47,120,.08), 0 12px 32px rgba(32,25,13,.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.icon-btn, .secondary-btn, .primary-btn, .small-btn, .mini-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255,255,255,.72);
  color: var(--blue);
  font-weight: 700;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  box-shadow: 0 10px 28px rgba(32,25,13,.07);
  white-space: nowrap;
}

.icon-btn:hover, .secondary-btn:hover, .small-btn:hover, .mini-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(184,137,50,.42);
  box-shadow: 0 16px 34px rgba(32,25,13,.12);
}

.primary-btn, .small-btn.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #0b55b8 0%, #092f78 52%, #06143d 100%);
  box-shadow: 0 20px 42px rgba(9,47,120,.24), inset 0 1px 0 rgba(255,255,255,.22);
}

.primary-btn:hover, .small-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 52px rgba(9,47,120,.30), inset 0 1px 0 rgba(255,255,255,.28);
}

.primary-btn::after, .small-btn.primary::after {
  content: '→';
  font-weight: 800;
}

.secondary-btn {
  background: rgba(255,255,255,.54);
  color: var(--blue);
}

.full-btn { width: 100%; }

.hero {
  position: relative;
  padding: 78px 0 54px;
}

.hero-bg-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,250,242,.96) 0%, rgba(255,250,242,.88) 35%, rgba(255,250,242,.18) 69%, rgba(255,250,242,.04) 100%),
    url('assets/hero-porcelain.png') right center / cover no-repeat;
  z-index: -1;
}

.hero-bg-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(360px, .72fr);
  align-items: center;
  min-height: 560px;
  gap: 44px;
}

.hero-copy {
  padding: 36px 0;
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
  font-weight: 800;
}

h1, h2, h3 { margin-top: 0; }

.hero h1, .section-head h2, .story-copy h2, .panel h2, .banner-content h2, .checkout-head h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  letter-spacing: -.035em;
}

.hero h1 {
  font-size: clamp(3.5rem, 7vw, 7.25rem);
  line-height: .86;
  margin: 16px 0 24px;
  max-width: 790px;
  color: #151721;
}

.hero-text, .section-lead, .banner-content p, .story-copy p {
  color: #5d5960;
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero-text { max-width: 690px; }

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

.hero-trustline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  color: #6b6258;
  font-weight: 700;
  font-size: .9rem;
}

.hero-trustline span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(184,137,50,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
}

.hero-trustline span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,137,50,.14);
}

.hero-showcase {
  position: relative;
  align-self: stretch;
  min-height: 460px;
}

.hero-plate {
  position: absolute;
  inset: 36px -30px 80px 50px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.02)),
    url('assets/ornament-bg.png') center / cover no-repeat;
  opacity: .62;
  filter: saturate(1.05);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.62), transparent 52%, rgba(9,47,120,.08));
}

.hero-cards {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card, .feature-card, .panel, .product-card, .modal-card, .story-card, .admin-box, .table-box, .info-box {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.64);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.stat-card {
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(9,47,120,.12), transparent 42%, rgba(184,137,50,.12));
  pointer-events: none;
}

.stat-title, .product-category, .hint, .kv, .table-box th, .admin-table th { color: var(--muted); }
.stat-title { position: relative; font-size: .88rem; font-weight: 700; }
.stat-value { position: relative; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.45rem; line-height: 1; font-weight: 700; margin-top: 6px; color: var(--blue); }

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 0 42px;
}

.feature-card {
  position: relative;
  border-radius: var(--radius);
  padding: 28px;
  min-height: 210px;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: auto -30px -40px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9,47,120,.12), transparent 65%);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--blue);
  background: linear-gradient(145deg, #fff, rgba(9,47,120,.08));
  border: 1px solid rgba(184,137,50,.20);
  box-shadow: 0 12px 26px rgba(32,25,13,.08);
  margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.08rem; margin: 0 0 10px; }
.feature-card p { color: var(--muted); line-height: 1.75; margin: 0; font-size: .95rem; }

.story-section {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  padding: 34px 0 56px;
}

.story-card {
  border-radius: var(--radius-xl);
  min-height: 420px;
  overflow: hidden;
}

.story-image {
  background: url('assets/craft-story.png') center / cover no-repeat;
}

.story-copy {
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,250,242,.78)),
    url('assets/soft-porcelain-bg.png') center / cover no-repeat;
}

.story-copy h2, .panel h2, .banner-content h2, .section-head h2 {
  font-size: clamp(2.25rem, 4.6vw, 4.7rem);
  line-height: .95;
  margin: 12px 0 18px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(9,47,120,.14);
  background: rgba(255,255,255,.68);
  padding: 10px 14px;
  color: #4d4b53;
  font-weight: 700;
  font-size: .9rem;
}

.catalog-cover {
  position: relative;
  padding: 74px 0 74px;
}

.catalog-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(246,241,232,.95), rgba(255,250,242,.84)),
    url('assets/catalog-flatlay.png') center top / cover no-repeat;
  opacity: .96;
  z-index: -1;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-lead { max-width: 650px; margin: 0; }

.filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 600px;
}

.filter-btn {
  border: 1px solid rgba(9,47,120,.13);
  border-radius: 999px;
  padding: 11px 15px;
  color: #4f4b4a;
  background: rgba(255,255,255,.72);
  font-weight: 800;
  transition: .22s ease;
  box-shadow: 0 10px 24px rgba(32,25,13,.06);
}

.filter-btn:hover, .filter-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #0b55b8, #092f78);
  border-color: transparent;
  transform: translateY(-2px);
}

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

.product-card {
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255,255,255,.84);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 84px rgba(32,25,13,.16);
  border-color: rgba(184,137,50,.30);
}

.product-image {
  min-height: 315px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), transparent 45%, rgba(7, 20, 50, .30)),
    radial-gradient(circle at top left, rgba(255,255,255,.35), transparent 30%);
}

.product-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(184,137,50,.28);
  color: var(--blue);
  font-weight: 900;
  font-size: .82rem;
  box-shadow: 0 10px 26px rgba(32,25,13,.10);
  backdrop-filter: blur(12px);
}

.fav-btn {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.75);
  color: var(--blue);
  font-size: 1.1rem;
  box-shadow: 0 12px 26px rgba(32,25,13,.12);
  transition: .22s ease;
}

.fav-btn.active, .fav-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #b88932, #dfb765);
  transform: scale(1.05);
}

.product-content { padding: 24px; }
.product-category { font-weight: 900; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.product-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 1.75rem; line-height: 1.05; margin-top: 8px; color: #141620; }
.product-desc { color: var(--muted); line-height: 1.65; margin-top: 12px; min-height: 78px; }

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-line span {
  font-size: .78rem;
  font-weight: 800;
  color: #5a5660;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(9,47,120,.07);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.price-main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 2.05rem;
  color: var(--blue);
  line-height: 1;
}

.price-old {
  margin-top: 5px;
  color: var(--muted-2);
  text-decoration: line-through;
  font-weight: 700;
}

.card-actions, .row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.small-btn {
  padding: 11px 15px;
  font-size: .9rem;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 74px 0 40px;
}

.panel {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  min-height: 405px;
  overflow: hidden;
  position: relative;
}

.premium-panel {
  background:
    linear-gradient(130deg, rgba(255,255,255,.88), rgba(255,250,242,.62)),
    url('assets/showcase-service.png') right bottom / cover no-repeat;
}

.dark-panel {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(4,18,56,.96), rgba(9,47,120,.78)),
    url('assets/ornament-bg.png') center / cover no-repeat;
  border-color: rgba(255,255,255,.16);
}

.dark-panel .eyebrow, .dark-panel h2 { color: #fff; }
.dark-panel .clean-list li { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.86); }
.dark-panel .clean-list li::before { background: #e2be6a; box-shadow: 0 0 0 5px rgba(226,190,106,.14); }

.clean-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.clean-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: #5a5660;
  line-height: 1.55;
  font-weight: 650;
}

.clean-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(9,47,120,.11);
}

.banner-section {
  min-height: 430px;
  border-radius: var(--radius-xl);
  margin: 38px auto 78px;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,250,242,.94), rgba(255,250,242,.70), rgba(255,250,242,.08)),
    url('assets/showcase-service.png') right center / cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
}

.banner-content { max-width: 560px; }
.banner-content p { margin-bottom: 24px; }

.site-footer {
  background:
    linear-gradient(135deg, #07183e, #092f78),
    url('assets/ornament-bg.png') center / cover no-repeat;
  color: #fff;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p { color: rgba(255,255,255,.72); margin: 10px 0 0; max-width: 620px; line-height: 1.6; }
.site-footer .secondary-btn { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.10); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 13, .54);
  backdrop-filter: blur(14px);
  overflow-y: auto;
}

.modal-card {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 34px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,250,242,.86)),
    url('assets/soft-porcelain-bg.png') center / cover no-repeat;
  border: 1px solid rgba(255,255,255,.78);
}

.close-btn {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(9,47,120,.14);
  color: var(--blue);
  background: rgba(255,255,255,.74);
  font-size: 1.3rem;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(32,25,13,.08);
}

.product-modal-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 26px;
  align-items: stretch;
}

.modal-image {
  min-height: 500px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -120px 120px rgba(9,47,120,.12), 0 18px 44px rgba(32,25,13,.12);
}

.modal-side { padding: 18px 8px; }
.modal-side h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2rem, 4vw, 4rem); line-height: .95; margin: 12px 0 16px; }
.modal-side p { color: var(--muted); line-height: 1.85; }

.modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.meta-box {
  border-radius: 20px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(9,47,120,.12);
  padding: 16px;
  line-height: 1.55;
}

.auth-card { width: min(500px, 100%); }
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  border: 1px solid rgba(9,47,120,.13);
  background: rgba(255,255,255,.70);
  color: var(--muted);
  padding: 13px;
  border-radius: 999px;
  font-weight: 900;
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #0b55b8, #092f78);
  border-color: transparent;
}

.auth-form { display: grid; gap: 12px; }
.auth-form h3, .admin-box h3, .table-box h3, .info-box h3 { font-size: 1.15rem; margin: 0 0 8px; }
.auth-form input, .admin-form input, .admin-form select, .admin-form textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(9,47,120,.14);
  background: rgba(255,255,255,.76);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}

.auth-form input:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
  border-color: rgba(9,47,120,.34);
  box-shadow: 0 0 0 4px rgba(9,47,120,.08);
}

.auth-form textarea, .admin-form textarea { min-height: 120px; resize: vertical; }
.hint { font-size: .88rem; line-height: 1.7; margin: 0; }

.profile-card, .admin-card { padding-top: 58px; }
.wide { width: min(1240px, 100%); }
.profile-grid, .admin-grid { display: grid; gap: 18px; }
.profile-grid { grid-template-columns: .9fr 1.1fr; }
.info-box, .table-box, .admin-box {
  border-radius: 26px;
  padding: 24px;
  background: rgba(255,255,255,.66);
  border-color: rgba(9,47,120,.12);
}

.kv { display: grid; gap: 10px; line-height: 1.7; }
.table-box table, .admin-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table-box th, .table-box td, .admin-table th, .admin-table td {
  border-bottom: 1px solid rgba(9,47,120,.10);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}
.table-box td, .admin-table td { color: #3f3b42; }
.table-box tr:hover td, .admin-table tr:hover td { background: rgba(9,47,120,.035); }

.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-grid { grid-template-columns: .8fr 1.2fr; margin-top: 18px; }
.admin-form { display: grid; gap: 12px; }
.admin-table { font-size: .92rem; }
.mini-btn { padding: 8px 12px; font-size: .86rem; }
.mini-btn.danger { color: var(--danger); border-color: rgba(189,43,53,.24); }
.notice { margin-top: 10px; color: var(--success); font-weight: 800; }
.select-shell { position: relative; }
.select-caret { display: none; }
label { color: #56535b; font-weight: 700; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  max-width: min(380px, calc(100% - 48px));
  padding: 15px 18px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #092f78, #06143d);
  box-shadow: 0 22px 52px rgba(9,47,120,.30);
  font-weight: 800;
}

.checkout-body { min-height: 100vh; }
.checkout-page { padding: 58px 0 76px; }
.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}
.checkout-head h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .88; margin: 12px 0 0; }
.checkout-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.checkout-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.checkout-total-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.checkout-empty { max-width: 760px; }
.sberpay-btn {
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  background: linear-gradient(135deg, #2fd66d, #168f43);
  color: #f6fff8;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 18px 34px rgba(23,163,74,0.28);
}
.sberpay-btn:hover { transform: translateY(-2px); }

@media (max-width: 1180px) {
  .topbar-inner { grid-template-columns: 250px 1fr auto; }
  .nav-links { display: none; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .topbar-inner, .hero-grid, .story-section, .split-section, .product-modal-grid, .profile-grid, .admin-grid, .checkout-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-showcase { display: none; }
  .hero-bg-section::before { background: linear-gradient(180deg, rgba(255,250,242,.94), rgba(255,250,242,.80)), url('assets/hero-porcelain.png') center / cover no-repeat; }
  .features, .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .story-card { min-height: 340px; }
  .checkout-info { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1220px); }
  .topbar-inner { padding: 12px 0; gap: 12px; }
  .brand-title { font-size: 1.22rem; }
  .brand-subtitle { font-size: .68rem; }
  .brand-mark { width: 46px; height: 46px; }
  .topbar-actions { width: 100%; flex-wrap: wrap; justify-content: stretch; }
  .topbar-actions > * { flex: 1; }
  .cabinet-btn { flex-basis: 100%; }
  .hero { padding: 56px 0 36px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-actions { align-items: stretch; }
  .hero-actions > * { width: 100%; }
  .features, .products-grid, .admin-stats { grid-template-columns: 1fr; }
  .product-image { min-height: 285px; }
  .modal { padding: 12px; }
  .modal-card { max-height: calc(100vh - 24px); padding: 22px; border-radius: 26px; }
  .modal-image { min-height: 330px; }
  .modal-meta { grid-template-columns: 1fr; }
  .checkout-head, .checkout-total-row, .footer-inner { flex-direction: column; align-items: stretch; }
  .table-box, .admin-box, .info-box { overflow-x: auto; }
}
