/* Farmacin HU — étrend-kiegészítő
 *
 * Deliberately shares no structure with the other two sites in this project.
 * Arteolin HU is a dark thermal-bath page with a serif display; Farmacin CZ is
 * a monochrome cyanotype with a humanist sans. This one is light, typographic,
 * and inverts the type pairing: geometric sans for display, serif for reading.
 *
 * The cover is the declaration table, not a product shot. Transparency is the
 * only argument this category actually permits, so it gets the first screen.
 *
 * Accent is plum, drawn from the Kalocsa folk-embroidery palette — the region
 * where the seller is registered. Not taken from the packaging: that is blue,
 * and blue already belongs to the Czech site.
 */

:root {
  --paper:    #F6F5F2;
  --card:     #FFFFFF;
  --ink:      #1C1A1D;
  --stone:    #605C64;
  --plum:     #5E2A44;
  --plum-lt:  #8A4A68;
  --rule:     #CFCBC4;   /* decorative only */
  --edge:     #8B8680;   /* borders of controls — 3.3:1 */

  --measure:  68rem;
  --step:     clamp(2.5rem, 6vw, 5rem);

  --display: Futura, "Century Gothic", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --text:    Georgia, "Iowan Old Style", "Times New Roman", serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3, .kicker, .act, .tier-count, .wordmark {
  font-family: var(--display);
  font-weight: 500;
}
h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: -.01em;
  margin: 0 0 .8rem;
  text-wrap: balance;
}
h3 { font-size: 1.05rem; margin: 0 0 .6rem; letter-spacing: .01em; }
p { margin: 0 0 1rem; }
a { color: var(--plum); text-underline-offset: .16em; }
img, video { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }

a, button, input, summary, label, [tabindex] {
  scroll-margin-top: 2rem;
}
a, button, label, input[type="checkbox"], input[type="radio"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(94, 42, 68, .14);
}

.jump {
  position: absolute; left: -9999px; z-index: 60;
  background: var(--plum); color: #fff; padding: .8rem 1.2rem;
}
.jump:focus { left: 1rem; top: 1rem; }

/* ---------- containers ---------- */

.sheet { width: min(var(--measure), 100% - 2.75rem); margin-inline: auto; }
.band  { padding: var(--step) 0; }
.band-tint { background: #EFEDE8; }
.band-plum { background: var(--plum); color: #F2E7EC; }
.band-plum h2, .band-plum b { color: #fff; }

.kicker {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--stone); margin: 0 0 1.2rem;
}
.kicker-light { color: #D6B8C6; }

.lede { font-size: 1.15rem; }

/* ---------- masthead ---------- */

.masthead {
  padding: calc(var(--step) * .9) 0 var(--step);
  border-bottom: 1px solid var(--rule);
}
.masthead-grid {
  display: grid;
  grid-template-areas: "copy" "shot";
  gap: 2rem;
  align-items: center;
}
.masthead-copy { grid-area: copy; }
.masthead-shot { grid-area: shot; }
.masthead-shot img { margin-inline: auto; max-width: 260px; }

.wordmark {
  font-size: clamp(2.1rem, 6.4vw, 3.4rem);
  font-weight: 500; letter-spacing: -.025em;
  margin: 0 0 1rem; line-height: 1.08;
}
.masthead-note {
  margin: 0; max-width: 30rem;
  font-size: 1.1rem; color: var(--stone);
}
.masthead-act {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem;
  margin: 1.8rem 0 0;
}
.act-aside { font-size: .93rem; color: var(--stone); }

.assurances-inline {
  display: flex; flex-wrap: wrap; gap: .35rem 1.6rem;
  margin-top: 1.6rem;
}
.assurances-inline li { margin-bottom: 0; }

/* Numbers right-aligned against the unit column so the eye reads a ledger,
   not a price list. Serif figures, not monospace — that belongs to the CZ site. */
.dosage {
  width: 100%; max-width: 34rem;
  border-collapse: collapse; margin-top: 1.6rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.dosage caption {
  text-align: left; caption-side: top;
  font-family: var(--display); font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--stone); padding-bottom: .6rem;
}
.dosage th, .dosage td {
  padding: .5rem 0; border-bottom: 1px solid var(--rule);
  font-weight: 400; text-align: left;
}
.dosage th { font-size: 1.05rem; }
.dosage td:nth-of-type(1) { text-align: right; width: 4.5rem; font-size: 1.05rem; }
.dosage td:nth-of-type(2) { text-align: left; width: 3rem; padding-left: .5rem; color: var(--stone); font-size: .9rem; }
.dosage .lead-row th,
.dosage .lead-row td:nth-of-type(1) { color: var(--plum); font-weight: 700; }

/* ---------- action ---------- */

.act {
  display: inline-block; text-decoration: none;
  background: var(--plum); color: #fff;
  font-size: .98rem; letter-spacing: .02em;
  padding: .9rem 1.7rem; min-height: 50px; line-height: 1.7;
  border: 1px solid var(--plum); cursor: pointer;
}
.act:hover { background: #4A2036; border-color: #4A2036; }
.act-quiet { background: transparent; color: var(--plum); border-color: var(--edge); }
.act-quiet:hover { background: var(--card); border-color: var(--plum); }
.act-wide { width: 100%; font-size: 1.05rem; }

/* ---------- split rail: grid areas, not flex columns ---------- */

.split-rail {
  display: grid;
  grid-template-areas: "text" "figure";
  gap: 2rem;
}
.rail-text   { grid-area: text; }
.rail-figure { grid-area: figure; margin: 0; }
.rail-figure img { border: 1px solid var(--rule); }

/* ---------- the authorised statement ---------- */

.statement {
  margin: 0; padding: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.5; max-width: 44rem;
}
.statement p { margin: 0 0 .9rem; }
.statement p:last-child { margin-bottom: 0; }
.statement-source {
  margin: 1.6rem 0 0; font-size: .93rem; color: #D6B8C6;
  font-family: var(--display);
}

/* ---------- caution ---------- */

.caution {
  margin: 2rem 0 0; padding: 1.4rem 1.6rem;
  background: var(--card); border-left: 3px solid var(--plum);
}
.caution ul { margin: 0; padding-left: 1.1rem; }
.caution li { font-size: .96rem; color: var(--stone); margin-bottom: .5rem; }
.caution li:last-child { margin-bottom: 0; }

.full-list {
  margin-top: 1.6rem; padding: 1rem 1.2rem;
  background: var(--card); border: 1px solid var(--rule);
}
.full-list summary { cursor: pointer; font-family: var(--display); font-size: .95rem; }
.full-list p { margin: .8rem 0 0; font-size: .9rem; color: var(--stone); }

/* ---------- tiers: a numbered list, not cards in a grid ---------- */

.tiers {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1rem;
}
.tier {
  background: var(--card); border: 1px solid var(--rule);
  padding: 1.5rem 1.6rem;
  display: grid; gap: .35rem;
  align-content: start;
}
.tier-count { font-size: 1.1rem; margin: 0; letter-spacing: .01em; }
.tier-sum {
  margin: 0; font-family: var(--display); font-size: 2rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.tier-sum span { font-weight: 500; }
.tier-meta { margin: 0 0 1rem; font-size: .9rem; color: var(--stone); }
.tier .act { justify-self: start; }
.tier-picked { border-color: var(--plum); border-width: 2px; }
.tier-flag {
  margin: 0 0 .3rem; font-family: var(--display);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum);
}
.tiers-note {
  margin: 1.6rem 0 0; max-width: 44rem;
  font-size: .94rem; color: var(--stone);
}

/* ---------- form: two columns, intro beside the fields ---------- */

.form-wrap {
  display: grid; grid-template-areas: "intro" "entry"; gap: 2rem;
}
.form-intro { grid-area: intro; }
.entry      { grid-area: entry; }

.assurances { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.assurances li {
  padding-left: 1.3rem; position: relative;
  font-size: .96rem; color: var(--stone); margin-bottom: .45rem;
}
.assurances li::before {
  content: "—"; position: absolute; left: 0; color: var(--plum);
}

.entry { background: var(--card); border: 1px solid var(--rule); padding: 1.6rem; }
.entry-line { margin: 0 0 1.1rem; }
.entry-line label {
  display: block; font-family: var(--display); font-size: .9rem;
  letter-spacing: .04em; margin-bottom: .35rem;
}
.entry-line input {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; min-height: 50px;
  border: 1px solid var(--edge); background: var(--card);
}
.entry-line input:focus { border-color: var(--plum); }
.entry-line input[aria-invalid="true"] { border-color: #A32036; border-width: 2px; }

.entry-choice { border: 0; margin: 0 0 1.2rem; padding: 0; }
.entry-choice legend {
  font-family: var(--display); font-size: .9rem; letter-spacing: .04em;
  padding: 0; margin-bottom: .45rem;
}
.entry-choice label {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 0; min-height: 44px; cursor: pointer;
  border-bottom: 1px solid var(--rule);
}
.entry-choice label:last-child { border-bottom: 0; }
.entry-choice input { width: 22px; height: 22px; accent-color: var(--plum); }

.entry-consent {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .92rem; color: var(--stone); margin-bottom: 1.4rem;
}
.entry-consent input { width: 22px; height: 22px; flex: none; margin-top: .2rem; accent-color: var(--plum); }

.decoy { position: absolute; left: -9999px; }

.entry-error {
  background: #F7E9EC; border-left: 3px solid #A32036; color: #78121F;
  padding: .85rem 1.05rem; margin: 0 0 1.2rem; font-size: .95rem;
}
.entry-foot { margin: .8rem 0 0; font-size: .9rem; color: var(--stone); text-align: center; }

/* ---------- media ---------- */

.plate { display: grid; gap: 1rem; margin-top: 1.8rem; }
.plate img { border: 1px solid var(--rule); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.reel { margin-top: 2rem; max-width: 300px; }
.reel video { border: 1px solid var(--rule); background: var(--ink); width: 100%; }
.reel-caption { margin: .7rem 0 0; font-size: .9rem; color: var(--stone); }

/* ---------- course: prose-numbered, no circles ---------- */

.course { margin: 1.6rem 0 0; padding-left: 1.4rem; max-width: 44rem; }
.course li { margin-bottom: .7rem; }
.course b { font-family: var(--display); font-weight: 500; }
.course::marker { color: var(--plum); }

/* ---------- FAQ as a definition list ---------- */

.asked { margin: 1.6rem 0 0; max-width: 46rem; }
.asked dt {
  font-family: var(--display); font-size: 1rem;
  margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule);
}
.asked dt:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.asked dd { margin: .4rem 0 0; color: var(--stone); }

/* ---------- documents (legal pages) ---------- */

.doc { padding: var(--step) 0 calc(var(--step) * 1.2); }
.doc .sheet > * { max-width: 46rem; }
.doc h1 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); margin: 0 0 .4rem; letter-spacing: -.02em; }
.doc-meta {
  font-family: var(--display); font-size: .86rem; color: var(--stone);
  margin: 0 0 2.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
}
.doc h2 {
  font-size: 1.2rem; margin: 2.4rem 0 .7rem;
  padding-top: 1rem; border-top: 1px solid var(--rule);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 { font-size: 1rem; margin-top: 1.4rem; }
.doc p, .doc li { font-size: .98rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .45rem; }

.doc dl { margin: 0 0 1.4rem; }
.doc dt { font-family: var(--display); font-weight: 500; margin-top: .9rem; }
.doc dd { margin: .15rem 0 0; color: var(--stone); }

.facts { width: 100%; border-collapse: collapse; margin: 1.1rem 0 1.7rem; }
.facts th, .facts td {
  text-align: left; padding: .6rem .5rem; vertical-align: top;
  border-bottom: 1px solid var(--rule); font-size: .95rem;
}
.facts th { font-family: var(--display); font-weight: 500; width: 34%; }
.facts td { color: var(--stone); }

.aside-note {
  background: var(--card); border-left: 3px solid var(--plum);
  padding: 1.1rem 1.3rem; margin: 1.4rem 0;
}
.aside-note p:last-child { margin-bottom: 0; }

.doc-back { margin-top: 2.6rem; }

/* ---------- colophon ---------- */

.colophon {
  background: var(--ink); color: #B9B4BB;
  padding: var(--step) 0; margin-top: var(--step);
}
.colophon-nav {
  display: flex; flex-wrap: wrap; gap: .55rem 1.4rem;
  padding-bottom: 1.4rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid #3A363C;
}
.colophon-nav a { color: #fff; font-size: .92rem; }
.colophon-legal p { font-size: .9rem; line-height: 1.75; }
.colophon-legal b { color: #fff; font-family: var(--display); font-weight: 500; }
.colophon-mark {
  margin-top: 1.3rem; padding-top: 1.3rem;
  border-top: 1px solid #3A363C; color: #fff;
}

/* ---------- cookie bar ---------- */

.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--ink); color: #DDD9DF;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
}
.cookiebar-inner {
  width: min(var(--measure), 100% - 2rem); margin-inline: auto;
  display: grid; gap: .9rem;
}
.cookiebar p { margin: 0; font-size: .9rem; line-height: 1.6; }
.cookiebar a { color: #fff; }
.cookiebar-actions { display: grid; gap: .55rem; }
.cookiebar-actions .btn {
  display: inline-block; text-align: center; cursor: pointer;
  font: inherit; font-family: var(--display); font-size: .95rem;
  padding: .7rem 1.3rem; min-height: 46px;
  border: 1px solid #6A6570; background: transparent; color: #fff;
}
.cookiebar-actions .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- breakpoints ---------- */

@media (min-width: 640px) {
  .cookiebar-inner { grid-template-columns: 1fr auto; align-items: center; gap: 1.8rem; }
  .cookiebar-actions { grid-auto-flow: column; }
  .cookiebar-actions .btn { min-width: 130px; }
  .plate { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 800px) {
  .masthead-grid {
    grid-template-areas: "copy shot";
    grid-template-columns: 1fr 320px;
    gap: 3.5rem;
  }
  .masthead-shot img { max-width: 300px; }
  .split-rail {
    grid-template-areas: "text figure";
    grid-template-columns: 1fr 380px;
    gap: 3rem; align-items: center;
  }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .form-wrap {
    grid-template-areas: "intro entry";
    grid-template-columns: 1fr 26rem;
    gap: 3rem; align-items: start;
  }
  .act-wide { width: auto; min-width: 16rem; }
}
