/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: 'Cormorant'; font-display: swap; font-weight: 600; src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Cormorant'; font-display: swap; font-weight: 600; src: url('fonts/cormorant-garamond-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02FF, U+1E00-1EFF; }
@font-face { font-family: 'Cormorant'; font-display: swap; font-weight: 600; src: url('fonts/cormorant-garamond-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: 'Cormorant'; font-display: swap; font-weight: 700; src: url('fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Cormorant'; font-display: swap; font-weight: 700; src: url('fonts/cormorant-garamond-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02FF, U+1E00-1EFF; }
@font-face { font-family: 'Cormorant'; font-display: swap; font-weight: 700; src: url('fonts/cormorant-garamond-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: 'Inter Variable'; font-display: swap; font-weight: 100 900; src: url('fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: 'Inter Variable'; font-display: swap; font-weight: 100 900; src: url('fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Variable'; font-display: swap; font-weight: 100 900; src: url('fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Variable'; font-display: swap; font-weight: 100 900; src: url('fonts/inter-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --cream: #faf6ee;
  --paper: #fffdf8;
  --parch: #f3ead9;
  --ink: #2b211a;
  --ink-soft: #5a4b3f;
  --muted: #8a7a6c;
  --line: #e6dccb;
  --gold: #b08d57;
  --gold-soft: #d9c39a;
  --red: #c8313e;
  --red-deep: #9b222d;
  --red-soft: #fbe9ea;
  --flax: #7f9fd6;
  --green: #3b7f4d;
  --amber: #b57a1c;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Variable', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 30px 70px -40px rgba(70, 40, 20, .45);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }
button, select, input, textarea { font: inherit; color: inherit; }
a { color: var(--red-deep); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- ornament bands ---------- */
.band { height: 51px; background: url('img/band-red.svg') repeat-x center / auto 51px; }
.band-hero { height: 34px; background-size: auto 34px;
  clip-path: inset(0 100% 0 0); animation: stitch 2.6s 1.2s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes stitch { to { clip-path: inset(0 0 0 0); } }

/* ---------- hero ----------
   The three pictures have the same composition (1672×941). The stage keeps exactly that proportion,
   so every picture is always shown whole. They cross-fade in a loop, 3 s per transition:
   photo (hold 6 s) → mix (hold 3 s) → engraving (hold 3 s) → back to photo — from reality to the engraving. */
.hero { position: relative; background: var(--cream); }
.hero-stage { position: relative; }
.hero-bg { position: relative; width: 100%; aspect-ratio: 1672 / 941; overflow: hidden; isolation: isolate; }
.layer { position: absolute; inset: 0; background: center / 100% 100% no-repeat; }
.l-photo { background-image: url('img/bg-photo.webp'); }
.l-mix { background-image: url('img/bg-mix.webp'); opacity: 0; animation: cycleMix 21s ease-in-out infinite; }
.l-engraving { background-image: url('img/bg-engraving.webp'); opacity: 0; animation: cycleTop 21s ease-in-out infinite; }
/* 0–6 s photo · 6–9 s → mix · 9–12 s mix · 12–15 s → engraving · 15–18 s engraving · 18–21 s → photo */
@keyframes cycleMix { 0%, 28.57% { opacity: 0; } 42.86%, 71.43% { opacity: 1; } 71.44%, 100% { opacity: 0; } }
@keyframes cycleTop { 0%, 57.14% { opacity: 0; } 71.43%, 85.71% { opacity: 1; } 100% { opacity: 0; } }
.mist { position: absolute; width: 60%; height: 34%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); filter: blur(8px); pointer-events: none; }
.m1 { left: -8%; bottom: 10%; animation: drift 28s ease-in-out infinite alternate; }
.m2 { left: 30%; bottom: 2%; opacity: .6; animation: drift 36s -12s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(16%); } }
#flax { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 246, 238, .55) 0%, rgba(250, 246, 238, .25) 30%, rgba(250, 246, 238, 0) 46%); }
.hero-copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center;
  padding: 0 0 0 max(24px, calc((100% - 1280px) / 2 + 24px)); }
.hero-copy > * { max-width: min(560px, 34%); }

.top { position: relative; z-index: 3; display: flex; background: var(--cream); align-items: center; justify-content: space-between; gap: 16px; max-width: 1280px; width: 100%; margin: 0 auto; padding: 18px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(#fff 0 33%, var(--red) 33% 67%, #fff 67%); box-shadow: 0 0 0 1px var(--gold-soft), 0 6px 16px -8px rgba(0, 0, 0, .4); }
.brand-name { font: 700 24px/1 var(--serif); letter-spacing: .01em; }
.brand-name i { color: var(--red); font-style: normal; }
.top-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top-links a { color: var(--ink-soft); text-decoration: none; font-weight: 550; position: relative; }
.top-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.top-links a:hover::after { transform: scaleX(1); }
.lang { margin-left: 6px; }
.lang select { border: 1px solid var(--gold-soft); background: rgba(255, 253, 248, .9); border-radius: 999px; padding: 7px 14px; cursor: pointer; }

.kicker { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px; font-weight: 650; color: var(--red-deep); margin: 0 0 18px; }
.dia { width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--red); }
h1 { font: 700 clamp(38px, 4.6vw, 92px)/.95 var(--serif); letter-spacing: -.01em; margin: 0 0 22px; color: var(--ink); text-wrap: balance; }
.tagline { font-size: clamp(16px, 1.25vw, 21px); color: var(--ink-soft); margin: 0 0 clamp(16px, 2vw, 30px); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* buttons */
.btn-red { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #d63b48, var(--red) 55%, var(--red-deep)); color: #fff; text-decoration: none;
  border: 0; border-radius: 12px; padding: 14px 26px; font-weight: 650; letter-spacing: .01em; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(155, 34, 45, .8), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .25s, box-shadow .25s; }
.btn-red::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s; }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(155, 34, 45, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-red:hover::after { left: 130%; }
.btn-red.small { padding: 9px 18px; font-size: 15px; border-radius: 10px; }
.btn-red:disabled { filter: grayscale(.8) opacity(.6); cursor: not-allowed; transform: none; }
.btn-ghost { display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 12px; border: 1.5px solid var(--gold); color: var(--ink); text-decoration: none; font-weight: 600; background: rgba(255, 253, 248, .6); backdrop-filter: blur(4px); transition: background .25s, transform .25s; }
.btn-ghost:hover { background: var(--paper); transform: translateY(-2px); }
.ghost { background: none; border: 1px solid var(--gold-soft); border-radius: 10px; padding: 8px 14px; cursor: pointer; color: var(--ink-soft); }
.ghost:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- sections ---------- */
.sec-title { font: 700 clamp(34px, 4.4vw, 56px)/1.05 var(--serif); text-align: center; margin: 0 0 46px; }
.sec-title::after { content: ''; display: block; width: 120px; height: 18px; margin: 14px auto 0; background: url('img/band-gold.svg') center / auto 18px repeat-x; }
.sec-title.light { color: var(--paper); }

.features { padding-top: 96px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.feat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 16px 24px; border: 0; background: none; cursor: pointer; border-radius: 22px; transition: background .35s; }
.feat:hover { background: rgba(255, 253, 248, .8); }
.feat-ico { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(80, 50, 20, .18)); transition: transform .5s cubic-bezier(.2, .9, .3, 1.3); }
.feat:hover .feat-ico { transform: translateY(-10px) rotate(-4deg) scale(1.06); }
.feat p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 300px; }
.badge { position: absolute; top: 14px; right: 20px; font-style: normal; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); background: #fdf1dc; border: 1px solid #f0d9ae; border-radius: 999px; padding: 2px 10px; }

/* plaque (from Sol's artwork, text in HTML) */
.plaque { display: grid; place-items: center; width: min(300px, 100%); aspect-ratio: 720 / 214; background: url('img/plaque.webp') center / contain no-repeat; filter: drop-shadow(0 8px 10px rgba(80, 50, 20, .18)); }
.plaque span { font: 700 clamp(22px, 2.2vw, 30px)/1 var(--serif); color: var(--ink); padding: 0 18% 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- tool ---------- */
.tool-wrap { padding-top: 70px; scroll-margin-top: 20px; }
.tool { position: relative; background: var(--paper) url('img/bg-engraving-900.webp') right top / 48% auto no-repeat; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 18px 26px 28px; }
.tool::before { content: ''; position: absolute; inset: 0; border-radius: 26px; background: linear-gradient(90deg, var(--paper) 45%, rgba(255, 253, 248, .93)); pointer-events: none; }
.tool > * { position: relative; }
.corner { position: absolute; width: 42px; height: 42px; border: 3px solid var(--gold); pointer-events: none; }
.c1 { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; }
.c2 { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 16px 0 0; }
.c3 { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 16px; }
.c4 { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 16px 0; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 18px; }
.plaque-btn { border: 0; cursor: pointer; width: 220px; aspect-ratio: 720 / 214; background: url('img/plaque.webp') center / contain no-repeat; display: grid; place-items: center;
  filter: drop-shadow(0 6px 8px rgba(80, 50, 20, .15)) grayscale(.35) opacity(.8); transition: transform .3s, filter .3s; }
.plaque-btn span { font: 700 23px/1 var(--serif); padding-bottom: 3px; }
.plaque-btn:hover { transform: translateY(-3px); filter: drop-shadow(0 10px 12px rgba(80, 50, 20, .22)) grayscale(0) opacity(1); }
.plaque-btn[aria-selected="true"] { filter: drop-shadow(0 10px 16px rgba(200, 49, 62, .35)) grayscale(0) opacity(1); transform: scale(1.06); }
.plaque-btn[aria-selected="true"] span { color: var(--red-deep); }
.panel { animation: panelIn .45s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.panel-head img { width: 64px; height: 64px; object-fit: contain; }
.panel-head h3 { margin: 0; font: 600 22px/1.25 var(--serif); color: var(--ink-soft); }

.direction { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 16px; }
.dir-label { font: 700 22px var(--serif); padding: 6px 18px; border-radius: 999px; background: var(--cream); border: 1px solid var(--gold-soft); min-width: 140px; text-align: center; }
.swap { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold-soft); background: var(--paper); cursor: pointer; display: grid; place-items: center; transition: transform .6s cubic-bezier(.5, -0.4, .3, 1.4), box-shadow .3s; }
.swap img { width: 50px; height: 50px; object-fit: contain; }
.swap:hover { box-shadow: 0 0 0 5px var(--red-soft); }
.swap.spin { transform: rotate(180deg); }

.options { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; margin-bottom: 16px; }
.opt { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.opt select { font-size: 15px; color: var(--ink); border: 1px solid var(--gold-soft); border-radius: 10px; padding: 9px 12px; background: var(--paper); min-width: 230px; max-width: 100%; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-soft); padding-bottom: 9px; cursor: pointer; }
.check input { accent-color: var(--red); width: 17px; height: 17px; }
.check.small { font-size: 13px; padding: 0; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { border: 1px solid var(--gold-soft); border-radius: 16px; background: var(--paper); display: flex; flex-direction: column; min-width: 0; transition: border-color .25s, box-shadow .25s; }
.field.out { background: linear-gradient(180deg, #fbf5ea, #f7efe0); }
.field:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
textarea { border: 0; resize: vertical; padding: 16px 18px; font-size: 19px; line-height: 1.6; background: transparent; min-height: 200px; width: 100%; border-radius: 16px 16px 0 0; }
textarea:focus { outline: none; }
#dst.flash { animation: ink .5s ease; }
@keyframes ink { from { color: var(--red); } }
.field-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px 9px 18px; border-top: 1px solid var(--line); }
.count { font-size: 13px; color: var(--muted); }

.keys { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.keys button { min-width: 42px; height: 42px; border: 1px solid var(--gold-soft); background: linear-gradient(180deg, var(--paper), var(--parch)); border-radius: 10px; font: 600 19px var(--serif); cursor: pointer; transition: transform .15s, border-color .2s; }
.keys button:hover { border-color: var(--red); color: var(--red-deep); transform: translateY(-2px); }
.keys button:active { transform: translateY(1px); }

.explain { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--paper); animation: panelIn .4s ease; }
.explain h3, .notes h3 { font: 700 18px var(--serif); margin: 0 0 8px; color: var(--ink-soft); }
.tokens { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; font-size: 18px; }
.tok { display: inline-flex; flex-direction: column; align-items: center; padding: 3px 7px; border-radius: 8px; background: var(--cream); border: 1px solid var(--line); cursor: help; transition: background .2s; }
.tok:hover, .tok:focus { background: var(--red-soft); border-color: var(--red); outline: none; }
.tok small { font-size: 12px; color: var(--muted); }
.rule-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.rule-list li { display: grid; grid-template-columns: 66px 1fr; gap: 8px; padding: 3px 6px; border-radius: 8px; transition: background .2s; }
.rule-list code, .issues code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--red-deep); background: var(--red-soft); padding: 1px 6px; border-radius: 6px; height: fit-content; }
.notes { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.notes ul { margin: 0; padding-left: 18px; }
.local { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }
.local img { width: 28px; height: 28px; object-fit: contain; }

.stamp { display: flex; align-items: center; gap: 16px; margin: 18px 0 0; font: 700 24px var(--serif); color: var(--red-deep); }
.stamp img { width: 130px; height: 130px; object-fit: contain; animation: stampIn .7s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stampIn { from { transform: scale(2.4) rotate(-25deg); opacity: 0; } 60% { opacity: 1; } }
.issues { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.issue { position: relative; border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 14px; padding: 13px 16px 13px 80px; display: grid; gap: 6px; background: var(--paper); animation: panelIn .35s ease both; }
.issue::before { content: ''; position: absolute; left: 12px; top: 12px; width: 56px; height: 56px; background: url('img/icons/stork-alert.webp') center / contain no-repeat; }
.issue.error { border-left-color: var(--red); }
.issue.variant { border-left-color: var(--flax); }
.issue .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.issue .sev { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--amber); }
.issue.error .sev { color: var(--red); }
.issue.variant .sev { color: #4a69a8; }
.issue .fix { font-size: 17px; }
.issue .fix del { color: var(--red-deep); }
.issue .fix ins { color: var(--green); text-decoration: none; font-weight: 650; }
.issue p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.issue .btn-red { justify-self: start; padding: 6px 14px; font-size: 14px; }

.line { width: 100%; font: 600 26px var(--serif); padding: 12px 18px; border: 1px solid var(--gold-soft); border-radius: 16px; background: var(--paper); }
.line:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 10px; }
.cmp div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; animation: panelIn .4s ease both; }
.cmp small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.cmp span { font: 600 22px/1.3 var(--serif); word-break: break-word; }
.cmp .main { border-color: var(--red); background: var(--red-soft); }
.cmp .main span { color: var(--red-deep); }
.cmp .geo span { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.quota { position: relative; flex: 1; max-width: 360px; height: 30px; border-radius: 999px; background: var(--cream); border: 1px solid var(--gold-soft); overflow: hidden; display: flex; align-items: center; }
.quota-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--red), #e36a74); transition: width .8s ease; }
.quota span { position: relative; padding: 0 14px; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.hg { width: 22px; height: 22px; animation: flip 1.6s ease-in-out infinite; }
@keyframes flip { 50% { transform: rotate(180deg); } 100% { transform: rotate(180deg); } }
.soon { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 18px; border-radius: 16px; background: #fdf3e2; border: 1px solid #f0dcb6; color: #6b4a12; font-size: 15px; }
.soon img { width: 52px; height: 52px; object-fit: contain; animation: flip 4s ease-in-out infinite; }

/* ---------- word of the day ---------- */
.word { padding-top: 110px; text-align: center; }
.word-head img { width: min(380px, 80%); height: auto; filter: drop-shadow(0 12px 14px rgba(80, 50, 20, .18)); }
.word-note { color: var(--muted); margin: 6px 0 26px; }
.word-card { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.word-medal { position: relative; display: grid; place-items: center; }
.word-medal img { width: 280px; height: 280px; object-fit: contain; animation: float 6s ease-in-out infinite; }
.word-medal span { position: absolute; top: 47%; transform: translateY(-50%); font: 700 34px/1 var(--serif); color: var(--ink); max-width: 150px; text-align: center; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -8px; } }
.word-sys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; }
.word-sys div { border-bottom: 1px dashed var(--line); padding: 6px 0; }
.word-sys dt { font-size: 12.5px; color: var(--muted); }
.word-sys dd { margin: 0; font: 600 26px/1.3 var(--serif); }
.word-sys .main dd { color: var(--red-deep); }

/* ---------- prices ---------- */
.prices { padding-top: 110px; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px 26px; text-align: center; transition: transform .4s, box-shadow .4s; }
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price img { width: 130px; height: 130px; object-fit: contain; transition: transform .6s cubic-bezier(.2, .9, .3, 1.4); }
.price:hover img { transform: scale(1.08) rotate(3deg); }
.price:hover img.coins { animation: jingle .6s ease; }
@keyframes jingle { 25% { transform: translateY(-8px) rotate(-6deg); } 50% { transform: translateY(0) rotate(5deg); } 75% { transform: translateY(-4px) rotate(-3deg); } }
.price h3 { font: 700 26px/1.15 var(--serif); margin: 10px 0 6px; }
.price p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
.tag { display: inline-block; font: 700 30px var(--serif); color: var(--red-deep); }
.price .badge { position: static; display: inline-block; }

/* ---------- history ---------- */
.history { position: relative; margin-top: 120px; padding: 120px 0 110px; overflow: hidden; isolation: isolate; color: var(--paper); }
.history-bg { position: absolute; inset: -12% 0; z-index: -1; background: url('img/bg-pahonia.webp') center / cover no-repeat; will-change: transform; }
.history::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--cream) 0%, rgba(43, 33, 26, .55) 14%, rgba(43, 33, 26, .78) 50%, rgba(43, 33, 26, .55) 86%, var(--cream) 100%); }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 148px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold-soft), var(--red), var(--gold-soft)); transform-origin: top; transform: scaleY(var(--grow, 0)); transition: transform 1.6s ease; }
.timeline li { display: grid; grid-template-columns: 130px 36px 1fr; gap: 0 10px; align-items: start; padding: 12px 0; }
.timeline .yr { font: 700 22px/1.2 var(--serif); text-align: right; color: var(--gold-soft); }
.timeline .pt { width: 14px; height: 14px; margin: 6px auto 0; background: var(--red); transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(255, 253, 248, .9); }
.timeline p { margin: 0; font-size: 17px; color: #f6efe3; }

/* ---------- about / trust ---------- */
.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 90px; }
.about article, .trust article { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.about img { width: 96px; height: 96px; object-fit: contain; display: block; margin-bottom: 6px; }
.about h3, .trust h3 { font: 700 26px/1.15 var(--serif); margin: 0 0 10px; }
.about p, .about li, .trust p { color: var(--ink-soft); font-size: 15px; }
.about p { margin: 0 0 10px; }
.systems, .sources { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.systems li::marker { color: var(--red); font-weight: 700; }
.muted { color: var(--muted) !important; font-size: 14px !important; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 30px; }
.trust article { display: flex; gap: 18px; align-items: flex-start; }
.trust img { width: 110px; height: 110px; object-fit: contain; flex: none; }
.trust p { margin: 0 0 14px; }
.beat { animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 10% { transform: scale(1.08); } 20% { transform: scale(.98); } 30% { transform: scale(1.05); } }

.foot { margin-top: 90px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-top: 20px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--ink-soft); }
.uzytak img { display: block; }
.ver { margin-left: auto; font-size: 12px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: heroIn 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.hero .kicker { animation-delay: .3s; } .hero h1 { animation-delay: .48s; } .hero .tagline { animation-delay: .66s; } .hero .cta { animation-delay: .84s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .top-links a { display: none; }
  .veil { display: none; }
  .hero-copy { position: static; padding: 28px 24px 34px; }
  .hero-copy > * { max-width: 680px; }
  h1 { font-size: clamp(40px, 9vw, 72px); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .pair { grid-template-columns: 1fr; }
  .word-card { grid-template-columns: 1fr; text-align: center; }
  .word-medal img { width: 230px; height: 230px; }
  .word-sys { grid-template-columns: 1fr; text-align: left; }
  .cmp { grid-template-columns: 1fr; }
  .tool { padding: 14px 14px 22px; background-image: none; }
  .tabs { gap: 2px 4px; }
  .plaque-btn { width: calc(50% - 4px); max-width: 190px; }
  .plaque-btn span { font-size: 19px; }
  .opt, .opt select { width: 100%; min-width: 0; }
  .direction { gap: 10px; }
  .dir-label { min-width: 0; font-size: 18px; padding: 6px 12px; }
  .timeline::before { left: 78px; }
  .timeline li { grid-template-columns: 64px 30px 1fr; }
  .timeline .yr { font-size: 17px; }
  .timeline p { font-size: 15.5px; }
  .ver { margin-left: 0; }
  .top { padding: 14px 16px; }
  .brand-name { font-size: 18px; white-space: nowrap; }
  .lang select { padding: 6px 10px; max-width: 150px; }
  .hero-copy { padding: 24px 16px 30px; }
  .issue { padding-left: 16px; padding-top: 70px; }
  .issue::before { width: 50px; height: 50px; }
}
@media (max-width: 520px) {
  .feat-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .trust article { flex-direction: column; align-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .l-mix, .l-engraving { opacity: 0; animation: none !important; }
  .band-hero { clip-path: none; }
  .reveal { opacity: 1; transform: none; }
}
