:root {
  --bg: #080909;
  --panel: #151716;
  --panel-soft: #202322;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f0e8;
  --muted: #a7aaa7;
  --gold: #d8ad63;
  --gold-strong: #f2c779;
  --steel: #8f9697;
  --danger: #b46a52;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 173, 99, 0.12), transparent 24rem),
    radial-gradient(circle at 82% 16%, rgba(143, 150, 151, 0.16), transparent 26rem),
    linear-gradient(135deg, #090a0a 0%, #121413 45%, #060606 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  color: inherit;
  font: inherit;
}

.product-link-reset {
  color: inherit;
  text-decoration: none;
}

[contenteditable="true"] {
  outline: 1px dashed rgba(242, 199, 121, 0.75);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-link,
.lang-btn,
.primary-btn,
.ghost-btn,
.qty-btn,
.remove-btn {
  cursor: pointer;
  border: 0;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: transparent;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-logo {
  width: 48px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(216, 173, 99, 0.24));
}

.main-nav,
.language-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.main-nav {
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link,
.lang-btn {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.lang-btn:hover,
.lang-btn.is-active {
  border-color: rgba(216, 173, 99, 0.45);
  color: var(--text);
  background: rgba(216, 173, 99, 0.14);
}

.cart-nav {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.cart-nav strong {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #17120a;
  font-size: 0.78rem;
}

.cart-nav.cart-bump strong,
.mini-cart-button.cart-bump strong {
  animation: cartBump 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel {
  display: none;
  padding: 44px 0 70px;
}

.tab-panel.is-active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: center;
  min-height: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-strong);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 4.8vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.hero-text,
.section-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #17120a;
  box-shadow: 0 16px 34px rgba(216, 173, 99, 0.25);
}

.primary-btn.is-added {
  background: linear-gradient(135deg, #f5dda8, #ffffff);
  transform: translateY(-1px) scale(1.02);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.cart-flyer {
  position: fixed;
  z-index: 100;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  pointer-events: none;
  transition:
    transform 720ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 720ms ease;
  will-change: transform, opacity;
}

.cart-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 101;
  max-width: min(340px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(216, 173, 99, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(216, 173, 99, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(13, 14, 14, 0.94);
  color: var(--text);
  font-weight: 900;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(14px);
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mini-cart {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.mini-cart-button {
  position: relative;
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(216, 173, 99, 0.48);
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.18), transparent 3rem),
    linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #17120a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  pointer-events: auto;
}

.mini-cart-icon svg {
  width: 28px;
  height: 28px;
}

.mini-cart-button strong {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  border: 2px solid #111;
  border-radius: 999px;
  background: #f7efe0;
  color: #17120a;
  font-size: 0.75rem;
  font-weight: 900;
}

.mini-cart-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 110px));
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(216, 173, 99, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(13, 14, 14, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
  backdrop-filter: blur(16px);
}

.mini-cart.is-open .mini-cart-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mini-cart-head,
.mini-cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mini-cart-head {
  margin-bottom: 12px;
}

.mini-cart-head h3 {
  margin: 0;
}

.mini-cart-head button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.mini-cart-items {
  display: grid;
  gap: 10px;
}

.mini-cart-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.mini-cart-line img,
.cart-line-photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: #111;
}

.mini-cart-line h4 {
  margin: 0 0 5px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.mini-cart-line span,
.mini-cart-empty {
  color: var(--muted);
  font-size: 0.86rem;
}

.mini-cart-total {
  margin: 14px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@keyframes cartBump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.42);
  }
  65% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

.token-showcase {
  display: grid;
  gap: 18px;
}

.hero-product-photo {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #111;
  box-shadow: var(--shadow);
}

.hero-product-photo img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-product-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 50% 22%, transparent 0 11rem, rgba(0, 0, 0, 0.12) 18rem);
  pointer-events: none;
}

.hero-product-photo figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--text);
}

.hero-product-photo figcaption span {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero-product-photo figcaption strong {
  color: var(--gold-strong);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.token-card {
  min-height: 430px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 18px),
    #171a19;
  box-shadow: var(--shadow);
}

.token-topline,
.token-data {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.token-device {
  display: grid;
  min-height: 230px;
  margin: 48px 0 28px;
  place-items: center;
  border: 1px solid rgba(216, 173, 99, 0.25);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 30%, rgba(216, 173, 99, 0.18), transparent 9rem),
    linear-gradient(180deg, #0d0e0e, #252927);
}

.token-device strong {
  font-size: 2rem;
  letter-spacing: 0.16em;
}

.token-logo {
  width: 104px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(216, 173, 99, 0.32));
}

.hero-stats,
.feature-grid,
.catalog-grid,
.audience-grid,
.cart-layout,
.dna-layout {
  display: grid;
  gap: 18px;
}

.hero-stats {
  grid-template-columns: repeat(2, 1fr);
}

.hero-stats div,
.feature-card,
.product-card,
.audience-card,
.steps-card,
.faq-item,
.checkout-card,
.cart-line {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats div {
  padding: 18px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-strong);
  font-size: 1.45rem;
}

.hero-stats span,
.feature-card p,
.product-card p,
.audience-card p,
.steps-card li,
.faq-item p,
.checkout-note {
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid {
  grid-template-columns: repeat(5, 1fr);
}

.feature-card,
.product-card,
.audience-card,
.steps-card,
.faq-item,
.checkout-card,
.cart-line {
  padding: 20px;
}

.feature-card strong,
.audience-card strong {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: rgba(216, 173, 99, 0.16);
  color: var(--gold-strong);
}

.section-heading {
  margin-bottom: 28px;
}

.catalog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(216, 173, 99, 0.55);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
  outline: none;
}

.product-card h3 {
  min-height: 2.7em;
}

.product-card p {
  min-height: 4.6em;
}

.product-visual {
  display: grid;
  min-height: 180px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 40%, rgba(216, 173, 99, 0.18), transparent 8rem),
    linear-gradient(135deg, #262a29, #0e0f0f);
}

.product-visual .brand-mark {
  transform: scale(1.35);
}

.product-visual img {
  width: 84px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(216, 173, 99, 0.22));
}

.product-photo {
  overflow: hidden;
  background: linear-gradient(135deg, #191b1a, #090a0a);
}

.product-photo img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  filter: none;
}

.product-detail {
  margin-top: 30px;
}

.product-detail[hidden] {
  display: none;
}

.product-detail-back {
  margin-bottom: 14px;
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 24px;
  padding: 20px;
  border: 1px solid rgba(216, 173, 99, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 10%, rgba(216, 173, 99, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.06);
}

.product-detail-gallery {
  display: grid;
  gap: 12px;
}

.product-detail-main {
  width: 100%;
  height: min(54vw, 560px);
  min-height: 360px;
  object-fit: cover;
  border-radius: 16px;
  background: #111;
}

.product-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.product-detail-thumbs button {
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.product-detail-thumbs img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.product-detail-copy {
  align-self: center;
}

.product-detail-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

.product-detail-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 5rem);
}

.product-detail-copy p,
.product-detail-copy li {
  color: var(--muted);
  line-height: 1.65;
}

.product-detail-copy ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.product-detail-copy li {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.product-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.product-detail-actions .price {
  font-size: 1.6rem;
}

.product-page-main {
  padding: 44px 0 70px;
}

.standalone-product-card {
  margin-top: 14px;
}

.product-added-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 173, 99, 0.36);
  border-radius: 14px;
  background: rgba(216, 173, 99, 0.14);
  color: var(--gold-strong);
  font-weight: 800;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.price {
  color: var(--gold-strong);
  font-size: 1.2rem;
  font-weight: 900;
}

.audience-grid {
  grid-template-columns: repeat(2, 1fr);
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  justify-content: center;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
}

.team-photo {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08)),
    var(--photo, linear-gradient(145deg, #303636, #111));
  background-position: center top;
  background-size: cover;
}

.team-media {
  display: grid;
  gap: 12px;
}

.team-card-body {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 4px 8px 10px;
}

.team-photo-caption {
  align-self: start;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid rgba(216, 173, 99, 0.34);
  border-radius: 999px;
  background: rgba(8, 9, 9, 0.72);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.member-token {
  width: min(100%, 460px);
  aspect-ratio: 1.586 / 1;
  padding: 16px;
  border: 1px solid rgba(216, 173, 99, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(8, 9, 9, 0.94), rgba(31, 34, 32, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 20px);
}

.member-token-top,
.member-token-data {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #c9d0d0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.member-token-center {
  display: grid;
  min-height: 128px;
  margin: 14px 0;
  place-items: center;
  border: 1px solid rgba(216, 173, 99, 0.34);
  border-radius: 16px;
  background: linear-gradient(145deg, #090a0a, #1d211f);
}

.member-token-center img {
  width: 72px;
  height: 42px;
  object-fit: contain;
}

.member-token-center strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
  letter-spacing: 0.24em;
}

.nfc-description,
.founder-message {
  max-width: 560px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

.nfc-description {
  color: var(--gold-strong);
  font-weight: 800;
}

.founder-message {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.audience-card ul,
.steps-card ol,
.steps-card ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.dna-layout,
.cart-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.accent-card {
  background: linear-gradient(145deg, rgba(216, 173, 99, 0.14), rgba(255, 255, 255, 0.06));
}

.faq-list,
.cart-items {
  display: grid;
  gap: 12px;
}

.faq-item button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.faq-item p {
  display: none;
  margin: 12px 0 0;
}

.faq-item.is-open p {
  display: block;
}

.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.cart-controls,
.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.qty-btn,
.remove-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.remove-btn {
  color: #ffb3a3;
}

.payment-grid span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 24px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.full-width {
  width: 100%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  margin-right: 12px;
  color: var(--text);
}

.admin-panel {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  display: grid;
  gap: 8px;
  justify-items: end;
}

body.guest-mode .admin-panel {
  display: none;
}

.admin-toggle,
.admin-tools button {
  cursor: pointer;
  border: 1px solid rgba(216, 173, 99, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #17120a;
  font-weight: 900;
}

.admin-toggle {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}

.admin-tools {
  display: none;
  width: min(270px, calc(100vw - 24px));
  max-height: 78vh;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 13, 13, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.admin-tools strong {
  display: block;
  margin-bottom: 8px;
}

.admin-tools p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.admin-selected {
  display: block;
  margin-bottom: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(216, 173, 99, 0.28);
  border-radius: 10px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-field,
.admin-size-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.admin-field input,
.admin-field select,
.admin-field textarea,
.admin-size-grid input {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.admin-field select {
  padding: 7px 9px;
}

.admin-field textarea {
  min-height: 62px;
  padding: 7px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
}

.admin-size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.admin-nudge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.admin-nudge-grid button {
  min-height: 30px;
  margin-top: 0;
  padding: 5px;
  font-size: 0.7rem;
}

.admin-nudge-grid button:first-child,
.admin-nudge-grid button:last-child {
  grid-column: 2;
}

.admin-tools button {
  width: 100%;
  min-height: 32px;
  margin-top: 6px;
  font-size: 0.76rem;
}

body.admin-mode .admin-tools {
  display: block;
}

body.admin-mode .admin-toggle {
  background: linear-gradient(135deg, #f2c779, #ffffff);
}

body.admin-mode .admin-movable {
  position: relative;
  outline: 1px dashed rgba(242, 199, 121, 0.55);
  outline-offset: 7px;
  touch-action: none;
}

body.admin-mode .admin-editable {
  outline: 1px dashed rgba(143, 150, 151, 0.35);
  outline-offset: 5px;
  cursor: pointer;
}

body.admin-move-mode .admin-editable,
body.admin-move-mode .admin-movable {
  cursor: grab;
  outline: 1px dashed rgba(242, 199, 121, 0.85);
  outline-offset: 6px;
  user-select: none;
}

body.admin-mode .admin-selected-element {
  outline: 2px solid var(--gold-strong);
  outline-offset: 8px;
}

.admin-drag-handle {
  display: none;
}

body.admin-mode .admin-drag-handle {
  position: absolute;
  top: -14px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  padding: 2px 7px;
  border: 0;
  border-radius: 999px;
  background: var(--gold-strong);
  color: #17120a;
  cursor: grab;
  font-size: 0.68rem;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.admin-mode .admin-dragging {
  cursor: grabbing;
  z-index: 20;
}

body.admin-move-mode .admin-tools {
  border-color: rgba(242, 199, 121, 0.55);
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .team-card,
  .product-detail-card,
  .dna-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
    order: 3;
  }

  .feature-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 18px, 1180px);
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0 8px;
  }

  .brand {
    justify-content: center;
    font-size: 1.08rem;
  }

  .brand-logo {
    width: 42px;
    height: 26px;
  }

  .main-nav {
    order: 2;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
  }

  .nav-link,
  .lang-btn {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 8px 11px;
    font-size: 0.86rem;
  }

  .language-switcher {
    order: 3;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero {
    min-height: auto;
    padding-top: 10px;
    gap: 22px;
  }

  h1 {
    font-size: clamp(2.05rem, 10.5vw, 3.1rem);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.55rem);
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .hero-text,
  .section-heading p {
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .primary-btn,
  .ghost-btn {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .feature-grid,
  .catalog-grid,
  .audience-grid,
  .team-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .token-card {
    min-height: 340px;
  }

  .hero-product-photo,
  .hero-product-photo img {
    min-height: 330px;
  }

  .hero-product-photo {
    border-radius: 18px;
  }

  .hero-product-photo figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hero-product-photo figcaption span {
    font-size: 1.05rem;
  }

  .hero-product-photo figcaption strong {
    font-size: 0.76rem;
    text-align: left;
  }

  .product-photo img {
    height: 235px;
  }

  .product-card h3,
  .product-card p {
    min-height: 0;
  }

  .product-detail-card {
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
  }

  .product-detail-main {
    height: 340px;
    min-height: 340px;
  }

  .product-detail-copy h3 {
    font-size: clamp(1.7rem, 9vw, 2.45rem);
  }

  .product-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stats div,
  .feature-card,
  .product-card,
  .audience-card,
  .steps-card,
  .faq-item,
  .checkout-card,
  .cart-line {
    padding: 15px;
    border-radius: 14px;
  }

  .feature-grid {
    gap: 12px;
  }

  .cart-line {
    grid-template-columns: 1fr;
  }

  .team-photo {
    min-height: 360px;
  }

  .team-card {
    padding: 10px;
    border-radius: 16px;
  }

  .team-photo-caption,
  .team-media,
  .team-card-body {
    justify-self: stretch;
  }

  .member-token {
    padding: 13px;
  }

  .member-token-center {
    min-height: 104px;
    margin: 10px 0;
  }

  .member-token-data {
    font-size: 0.7rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-panel {
    right: 9px;
    bottom: 9px;
    left: 9px;
    justify-items: stretch;
  }

  .admin-toggle {
    justify-self: end;
    min-height: 42px;
    padding: 10px 14px;
  }

  .admin-tools {
    width: 100%;
    max-height: 72vh;
    overflow-y: auto;
    padding: 12px;
  }
}
