:root {
  --green: #6f35c5;
  --green-dark: #3f197e;
  --green-soft: #f0e9ff;
  --ink: #222222;
  --muted: #666666;
  --line: #e2e2e2;
  --paper: #f5f5f5;
  --surface: #ffffff;
  --danger: #b17612;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: inherit;
}

.top-promo {
  padding: 10px 16px;
  background: var(--green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.shipping-bar {
  padding: 8px 16px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 18px clamp(16px, 4vw, 58px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--green-dark);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  color: #333333;
  font-weight: 700;
}

.nav a,
.header-actions a {
  text-decoration: none;
}

.nav a:hover,
.header-actions a:hover {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.cart-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--green);
  background: #ffffff;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cart-toggle span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  background: var(--green);
  color: #ffffff;
  font-size: 12px;
}

main {
  width: min(1200px, calc(100% - 30px));
  margin: 0 auto;
}

.store-hero {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 18px;
  padding: 26px 0;
}

.hero-tile {
  min-height: 190px;
  padding: clamp(24px, 4vw, 46px);
  background: var(--green-dark);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, transparent, rgba(111, 53, 197, 0.38));
  pointer-events: none;
}

.primary-tile {
  min-height: 330px;
}

.tertiary-tile {
  min-height: 330px;
  background: #1b1b1b;
}

.hero-tile p,
.hero-tile h1,
.hero-tile h2,
.hero-tile a {
  position: relative;
  z-index: 1;
}

.hero-tile p {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
}

.hero-tile h1 {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: clamp(42px, 5.6vw, 74px);
  line-height: 0.98;
}

.hero-tile h2 {
  max-width: 360px;
  margin: 0;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.05;
}

.hero-tile a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 22px;
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

section {
  padding: 22px 0 42px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
}

.tab-label {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 10px 16px;
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 5px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 0 10px;
}

input:focus,
select:focus,
a:focus-visible {
  outline: 3px solid rgba(111, 53, 197, 0.22);
  outline-offset: 2px;
}

.compound-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.compound-card {
  display: grid;
  align-content: start;
  min-height: 420px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.product-image {
  position: relative;
  display: grid;
  min-height: 170px;
  place-items: center;
  background:
    linear-gradient(135deg, #f3edff, #ffffff),
    radial-gradient(circle at 50% 50%, rgba(111, 53, 197, 0.14), transparent 36%);
  border-bottom: 1px solid var(--line);
}

.product-image span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.compound-card > div:not(.product-image),
.compound-card > p,
.card-footer {
  padding-inline: 16px;
}

.vial-art {
  display: grid;
  justify-items: center;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.16));
}

.vial-cap {
  position: relative;
  z-index: 4;
  width: 102px;
  height: 22px;
  border: 1px solid #777777;
  border-radius: 9px 9px 5px 5px;
  background:
    linear-gradient(90deg, #777777, #242424 42%, #a8a8a8 68%, #4d4d4d),
    linear-gradient(180deg, #eeeeee, #8f8f8f);
  box-shadow: inset 0 -5px 8px rgba(0, 0, 0, 0.22);
}

.vial-body {
  position: relative;
  width: 104px;
  height: 150px;
  margin-top: -2px;
  overflow: hidden;
  border: 2px solid rgba(48, 42, 58, 0.38);
  border-radius: 24px 24px 12px 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), transparent 24%, rgba(255, 255, 255, 0.42) 70%, transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 252, 0.86));
}

.vial-body::before {
  content: "";
  position: absolute;
  inset: 14px auto 10px 12px;
  width: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  z-index: 5;
}

.vial-body::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 8px;
  right: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.16);
  filter: blur(1px);
  z-index: 2;
}

.vial-powder {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 36px;
  border-radius: 45% 45% 8px 8px;
  background:
    radial-gradient(circle at 28% 35%, rgba(255, 255, 255, 0.72) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 48%, rgba(255, 255, 255, 0.58) 0 2px, transparent 3px),
    repeating-linear-gradient(45deg, rgba(202, 166, 68, 0.25) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #fff9df, #d5ad3f);
  box-shadow: inset 0 2px 5px rgba(74, 62, 44, 0.14);
  z-index: 1;
}

.vial-art.ghk-cu .vial-powder {
  background:
    radial-gradient(circle at 28% 35%, rgba(255, 255, 255, 0.7) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 48%, rgba(255, 255, 255, 0.58) 0 2px, transparent 3px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #77c8ff, #2383c6);
  box-shadow: inset 0 2px 5px rgba(16, 77, 124, 0.22);
}

.vial-art.ghk-cu .vial-body {
  border-color: rgba(35, 131, 198, 0.7);
}

.vial-art.ghk-cu .vial-label strong {
  color: #12619a;
}

.vial-label {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 52px;
  z-index: 4;
  display: grid;
  min-height: 62px;
  align-content: center;
  gap: 4px;
  padding: 8px 5px 12px;
  background:
    linear-gradient(180deg, #ffffff 0 64%, rgba(111, 53, 197, 0.16) 64% 100%),
    #ffffff;
  border: 1px solid rgba(63, 25, 126, 0.22);
  text-align: center;
}

.vial-label strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.05;
}

.vial-label strong {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.brand-line,
.model-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.brand-line {
  margin-top: 14px;
}

.compound-card h3 {
  margin: 8px 0 6px;
  font-size: 21px;
  line-height: 1.15;
}

.compound-card h3 + p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-copy {
  margin: 16px 0 0;
  color: #4f4f4f;
  font-size: 14px;
}

.product-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
}

.card-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-block: 16px;
}

.card-footer span {
  color: var(--muted);
  font-size: 13px;
}

.card-actions {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 8px;
}

.card-actions a,
.card-actions button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--green);
  background: #ffffff;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.card-actions button {
  background: var(--green);
  color: #ffffff;
}

.info-band,
.telegram-band {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 24px;
  align-items: end;
  padding: 34px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.info-band p,
.telegram-band p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

.info-band h2,
.telegram-band h2,
.disclaimer h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
}

.telegram-band {
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(63, 25, 126, 0.96), rgba(111, 53, 197, 0.9)),
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.2), transparent 32%);
  color: #ffffff;
  border: 0;
}

.telegram-band .eyebrow,
.telegram-band h2 {
  color: #ffffff;
}

.telegram-band p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.82);
}

.telegram-button {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-self: end;
  padding: 0 22px;
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.disclaimer {
  margin: 28px 0 52px;
  padding: 34px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.disclaimer p:last-child {
  max-width: 900px;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  padding: 22px clamp(16px, 4vw, 58px);
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  max-width: 1200px;
  margin: 0 auto;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  justify-items: end;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.cart-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  display: flex;
  width: min(420px, 100%);
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  background: #ffffff;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  color: var(--muted);
  font-size: 13px;
}

.cart-item button {
  border: 0;
  background: none;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cart-empty {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.cart-note {
  margin-top: auto;
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.cart-primary,
.cart-secondary {
  min-height: 46px;
  border: 0;
  font: inherit;
  font-weight: 800;
}

.cart-primary {
  background: #d8d8d8;
  color: #777777;
}

.cart-secondary {
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--green);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  padding-top: 18px;
}

.detail-image {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  background:
    linear-gradient(135deg, #f3edff, #ffffff),
    radial-gradient(circle at 50% 50%, rgba(111, 53, 197, 0.14), transparent 36%);
  border: 1px solid var(--line);
}

.detail-image span {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 4px 10px;
  background: var(--green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.vial-art.large {
  transform: rotate(-3deg) scale(1.55);
}

.detail-summary {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.detail-summary h1 {
  margin: 10px 0 4px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
}

.subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 20px;
}

.summary-copy {
  max-width: 760px;
  color: #4e4e4e;
  font-size: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.detail-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.detail-actions a + a {
  background: #111111;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.spec-list div {
  min-height: 78px;
  padding: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
}

.detail-tabs {
  padding-top: 26px;
}

.detail-tabs h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 44px);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-grid article {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.detail-grid h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-grid p,
.detail-grid li {
  color: var(--muted);
}

.detail-grid ul {
  margin: 0;
  padding-left: 20px;
}

.compact-disclaimer {
  margin-top: 22px;
}

@media (max-width: 1050px) {
  .compound-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .store-hero,
  .filters,
  .info-band,
  .telegram-band,
  .product-detail,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .telegram-button {
    justify-self: start;
  }

  .primary-tile {
    min-height: 310px;
  }

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

  .detail-image {
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 20px, 1200px);
  }

  .top-promo {
    font-size: 13px;
  }

  .hero-tile {
    min-height: 165px;
    padding: 24px;
  }

  .hero-tile h1 {
    font-size: 40px;
  }

  .compound-grid {
    grid-template-columns: 1fr;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    justify-content: stretch;
  }

  .tab-label {
    width: fit-content;
  }
}
