/* ==========================================================================
   Základ: fonty, tokeny, reset, typografia, tlačidlá, hlavička, pätička.
   Načítava sa na všetkých stránkach.
   ========================================================================== */

/* Fonty – lokálne, latinka + rozšírená latinka (slovenčina) */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/bricolage-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/bricolage-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/young-serif-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/young-serif-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--paper: #F6F1E8;
	--paper-2: #EFE7DA;
	--card: #FFFDF9;
	--ink: #2A2018;
	--muted: #6E6255;
	--brick: #8E4A33;
	--head: #462C19;
	--honey: #E2A93B;
	--honey-dark: #C98E22;
	--avatar-bg: #F6F1E8; /* pozadie za fotkou v logu (fotka je bez pozadia) */
	--line: rgba(42, 32, 24, .14);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--gut: clamp(16px, 4vw, 48px);
	--max: 1280px;
	--narrow: 760px;
	--serif: "Young Serif", Georgia, serif;
	--sans: "Bricolage Grotesque", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
	font-family: var(--sans);
	background: var(--paper);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--card); }
.skip-link:focus { top: 16px; }

/* Kontajnery */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gut)); }
section[id] { scroll-margin-top: 24px; }

/* Typografia sekcií */
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; color: var(--head); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--head); opacity: .75; }
.h2 { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; color: var(--head); }
/* Young Serif má číslice v starom štýle – čísla v nadpisoch sú v Bricolage. */
.num { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; }
.lead { margin-top: 16px; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--paper-2); }
[hidden] { display: none !important; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Bežná stránka (podmienky, ochrana údajov…) */
.prose { padding-block: 48px 96px; font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; color: var(--head); font-family: var(--serif); font-weight: 400; line-height: 1.2; }
.prose ul, .prose ol { padding-left: 1.4em; list-style: revert; }
.prose a { color: var(--brick); text-underline-offset: 3px; }

/* Tlačidlá */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; white-space: nowrap;
	padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--honey); color: var(--ink);
	box-shadow: 0 3px 0 var(--honey-dark), 0 8px 20px rgba(201, 142, 34, .25);
	transition: background-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.btn:hover { background: #E9B34A; transform: translateY(-1px); box-shadow: 0 4px 0 var(--honey-dark), 0 12px 26px rgba(201, 142, 34, .32); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--honey-dark), 0 4px 10px rgba(201, 142, 34, .2); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--sm { padding: 11px 22px; font-size: 16px; }
.btn--block { margin-top: 20px; display: flex; width: 100%; padding: 18px 28px; font-size: 18px; }
.btn svg { width: 18px; height: 18px; transition: transform 300ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Logo: okrúhla fotka v medovom rámiku */
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.avatar {
	flex: none; width: 56px; height: 56px; border-radius: 50%; padding: 2.25px;
	background: linear-gradient(145deg, #F0C463, var(--honey) 45%, #B9801C);
	box-shadow: 0 3px 10px rgba(201, 142, 34, .22);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); background: var(--avatar-bg); }
.logo__name { display: block; white-space: nowrap; font-family: var(--serif); font-size: 21px; line-height: 1.05; letter-spacing: -0.01em; }
.logo__tag { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: #462C1996; }

/* Hlavička */
.nav { display: flex; align-items: center; gap: 28px; padding-block: 32px 24px; }
.nav__gift { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav__gift svg { width: 20px; height: 20px; color: var(--brick); transition: transform 300ms var(--ease); }
.nav__gift span { text-decoration: underline; text-decoration-color: rgba(142, 74, 51, .3); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color 300ms var(--ease); }
.nav__gift:hover span, .nav__gift[aria-current="page"] span { text-decoration-color: var(--brick); }
.nav__gift:hover svg { transform: translateY(-2px); }
/* Menu: na väčších obrazovkách len darček v riadku, prihlásenie a hamburger až na mobile */
.nav__menu { display: contents; }
.nav__login, .nav__menu-cta, .nav__burger { display: none; }

/* Podpis lektorky (maska z podpis.webp, farbu určuje pozadie – všade tmavohnedá) */
.sign { margin-top: 28px; }
.sign__hand { display: block; width: clamp(220px, 32vw, 300px); aspect-ratio: 2172 / 724; margin-left: -8px; background: var(--head); -webkit-mask: url(../img/podpis.webp?v=2) center / contain no-repeat; mask: url(../img/podpis.webp?v=2) center / contain no-repeat; }

/* Pätička: logo + siete, pod čiarou odkazy a copyright */
.site-footer { margin-top: 32px; padding-block: 64px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.site-footer .logo { color: var(--ink); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer__social a {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px 12px 16px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none;
	transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}
.site-footer__social a:hover { border-color: var(--brick); transform: translateY(-2px); }
.site-footer__social a:active { transform: translateY(1px); }
.site-footer__social svg { width: 20px; height: 20px; color: var(--brick); }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a { display: block; line-height: 20px; text-decoration: none; }
.site-footer__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__links .site-footer__login { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__login svg { flex: none; width: 18px; height: 18px; color: var(--brick); }

/* Mobil */
@media (max-width: 640px) {
	.site-header { position: relative; z-index: 20; }
	.nav { gap: 12px; padding-block: 20px 16px; }
	.logo { gap: 10px; }
	.avatar { width: 46px; height: 46px; }
	.logo__name { font-size: 18px; }
	.nav .logo__tag { display: none; }
	.btn--sm { padding: 10px 16px; font-size: 15px; }

	/* Hamburger a rozbaľovacie menu pod hlavičkou */
	.nav__cta { margin-left: auto; }
	.nav__burger { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--head); cursor: pointer; }
	.nav__burger svg { width: 26px; height: 26px; }
	.nav__burger[aria-expanded="false"] .nav__burger-close, .nav__burger[aria-expanded="true"] .nav__burger-open { display: none; }
	.nav__menu {
		display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px;
		padding: 8px var(--gut) 24px; background: var(--paper); border-block: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(70, 44, 25, .35);
	}
	.nav__menu.is-open { display: flex; }
	.nav__menu .nav__gift, .nav__login { margin: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
	.nav__menu .nav__gift + .nav__login { border-top: 1px solid var(--line); }
	.nav__menu .nav__gift span { text-decoration: none; }
	.nav__menu .nav__gift svg, .nav__login svg { width: 22px; height: 22px; color: var(--brick); }
	.nav__menu-cta { display: flex; justify-content: center; margin-top: 12px; }
}
@media (max-width: 420px) {
	.nav, .logo { gap: 8px; }
	.nav .avatar { width: 40px; height: 40px; }
	.nav .logo__name { font-size: 16px; }
	.nav .btn--sm { padding: 9px 12px; font-size: 14px; }
	.nav { gap: 6px; }
}
@media (max-width: 389px) {
	/* Meno v logu na dva riadky, aby sa vedľa zmestilo tlačidlo aj hamburger */
	.nav .logo { flex: none; }
	.nav .logo__name { width: min-content; white-space: normal; line-height: 1.1; }
}
@media (max-width: 339px) {
	.nav .avatar { width: 36px; height: 36px; }
	.nav .logo__name { font-size: 15px; }
	.nav .btn--sm { padding: 8px 10px; font-size: 13px; }
}

/* Odhalenie pri scrollovaní (main.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Vstupná animácia (stránka poukážky) */
.up { opacity: 0; transform: translateY(20px); animation: up 900ms var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal, .up { opacity: 1; transform: none; transition: none; animation: none; }
}

/* Cena: zavádzacia cena, prečiarknutá bežná cena, štítok s úsporou, poznámka o plnej cene (úvod aj poukážka) */
.price__now { display: flex; align-items: baseline; gap: 14px; }
.price__now b { font-size: 60px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--head); }
/* Prečiarknutá bežná cena – tehlová šikmá čiara cez sumu */
.price__old { position: relative; font-size: 26px; font-weight: 600; color: var(--muted); text-decoration: none; }
.price__old::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 2.5px; border-radius: 2px; background: var(--brick); transform: rotate(-12deg); }
.price__save { padding: 7px 14px; border-radius: 999px; background: var(--brick); color: #fff; font-size: 15px; font-weight: 700; transform: rotate(-3deg); box-shadow: 0 8px 16px -8px rgba(142, 74, 51, .7); }
.price__note { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #FBF0D9; color: var(--ink); font-size: 15px; line-height: 1.45; }
.price__note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--brick); }
