:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --paper-2: #faf7f1;
  --ink: #191918;
  --muted: #666666;
  --line: #e6dac8;
  --gold: #bf9460;
  --gold-dark: #a77a43;
  --red: #9b1d2a;
  --red-dark: #66131b;
  --green: #206b55;
  --shadow: 0 12px 30px rgba(31, 21, 15, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: #2a2a2a;
  color: #fff;
  display: flex;
  font-size: 14px;
  gap: 18px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 420px) minmax(280px, 1fr) auto;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px;
}

.brand {
  align-items: center;
  display: flex;
  text-decoration: none;
}

.brand img {
  display: block;
  height: auto;
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
  width: min(390px, 100%);
}

.nav__cta,
.button,
.shop-strip__links a {
  text-decoration: none;
}

.search {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1fr auto;
}

.search label {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.search input {
  border: 1px solid #d8d8d8;
  border-radius: 4px 0 0 4px;
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
}

.search button {
  background: var(--red);
  border: 0;
  border-radius: 0 4px 4px 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 16px;
}

.nav__cta,
.button {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
}

.nav__cta,
.button--primary {
  background: var(--red);
  color: #fff;
}

.button--ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red);
}

.category-bar {
  background: var(--red-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  padding: 0 12px;
}

.category-bar a {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 14px 16px;
  text-decoration: none;
}

.category-bar a:hover {
  background: rgba(191, 148, 96, .24);
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 18px 42px;
}

.hero {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  min-height: 380px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__content {
  align-content: center;
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 56px);
}

.eyebrow {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 700;
  line-height: 1;
}

h2 {
  font-size: clamp(25px, 3.5vw, 38px);
  line-height: 1.05;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  max-width: 680px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(191, 148, 96, .1), rgba(191, 148, 96, .02)),
    #fff;
  display: flex;
  min-height: 320px;
  padding: 22px;
}

.hero__visual img {
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.calculator {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  margin-top: 22px;
}

.panel,
.category,
.shop-strip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.controls {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.section-title {
  display: grid;
  gap: 8px;
}

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

label {
  color: var(--ink);
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
}

input[type="number"] {
  background: #fff;
  border: 1px solid #d8cdbb;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  min-height: 58px;
  padding: 12px 14px;
  width: 100%;
}

.switch {
  background: #f5efe6;
  border: 1px solid #dfd1bd;
  border-radius: 4px;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 6px;
}

.switch legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 0 7px;
}

.switch label {
  position: relative;
}

.switch input {
  opacity: 0;
  position: absolute;
}

.switch span {
  align-items: center;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  min-height: 46px;
  padding: 9px 10px;
}

.switch input:checked + span {
  background: #fff;
  box-shadow: 0 8px 22px rgba(55, 36, 18, .12);
  color: var(--red);
  outline: 1px solid rgba(191, 148, 96, .4);
}

.summary {
  display: grid;
  overflow: hidden;
}

.summary div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 20px;
}

.summary div:last-child {
  border-bottom: 0;
}

.summary span,
.meta,
.note {
  color: var(--muted);
}

.summary strong {
  color: var(--red);
  font-size: 42px;
  line-height: 1;
}

.results-section {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.results {
  display: grid;
  gap: 14px;
}

.category {
  overflow: hidden;
}

.category__head {
  align-items: center;
  background: linear-gradient(90deg, #fff8ed, #fff);
  border-left: 4px solid var(--gold);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 18px;
}

.category__head .meta {
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 1fr) minmax(136px, auto);
  padding: 16px 18px;
}

.qty {
  align-self: start;
  background: #fff8ed;
  border: 1px solid #ead4b8;
  border-radius: 4px;
  color: #8a5c24;
  font-size: 22px;
  font-weight: 900;
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
}

.note {
  font-size: 13px;
  margin-top: 4px;
}

.products {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: 82px 1fr;
  min-height: 112px;
  padding: 10px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product:hover {
  border-color: rgba(191, 148, 96, .72);
  box-shadow: 0 12px 34px rgba(56, 38, 20, .12);
  transform: translateY(-1px);
}

.product__image {
  align-items: center;
  background: #fbf7ef;
  border: 1px solid #eee2d0;
  border-radius: 2px;
  display: flex;
  height: 82px;
  justify-content: center;
  overflow: hidden;
  width: 82px;
}

.product__image img {
  height: 100%;
  object-fit: contain;
  padding: 6px;
  width: 100%;
}

.product__fallback {
  color: var(--gold-dark);
  font-size: 28px;
  font-weight: 900;
}

.product strong,
.product span {
  display: block;
}

.product__price {
  color: var(--red);
  font-weight: 900;
  margin-top: 5px;
}

.product__cta {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  margin-top: 8px;
  text-transform: uppercase;
}

.shop-strip {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  margin-top: 34px;
  padding: 22px;
}

.shop-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.shop-strip__links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--red);
  font-weight: 800;
  padding: 10px 12px;
}

.footer {
  align-items: center;
  background: #2a2a2a;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.footer a {
  color: #fff;
}

.age-gate {
  align-items: center;
  background: rgba(25, 25, 24, .72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 50;
}

.age-gate[hidden] {
  display: none;
}

.age-gate__card {
  background: var(--paper);
  border-radius: 2px;
  display: grid;
  gap: 14px;
  max-width: 460px;
  padding: 28px;
  width: 100%;
}

.age-gate__card::before {
  background: url("alkohole-majer-banner.webp") center / contain no-repeat;
  content: "";
  display: block;
  height: 92px;
  margin-bottom: 4px;
  width: 100%;
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.age-gate button,
.age-gate a {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
}

.age-gate button {
  background: var(--red);
  border: 0;
  color: #fff;
  cursor: pointer;
}

.age-gate a {
  border: 1px solid var(--line);
  color: var(--red);
  text-decoration: none;
}

@media (max-width: 920px) {
  .nav,
  .hero,
  .calculator,
  .shop-strip {
    grid-template-columns: 1fr;
  }

  .nav__cta {
    justify-self: start;
  }

  .hero__visual {
    min-height: 230px;
  }

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

@media (max-width: 620px) {
  .topbar,
  .category-bar {
    display: none;
  }

  .nav {
    gap: 12px;
  }

  .brand img {
    max-height: 56px;
  }

  main {
    padding-inline: 12px;
  }

  .hero__content,
  .controls,
  .shop-strip {
    padding: 18px;
  }

  h1 {
    font-size: 42px;
  }

  .switch,
  .row {
    grid-template-columns: 1fr;
  }

  .qty {
    text-align: left;
  }

  .product {
    grid-template-columns: 74px 1fr;
  }

  .product__image {
    height: 74px;
    width: 74px;
  }
}
