/* Proud LP – tokeny a komponenty podle pivoproud.cz
   Hodnoty změřené na živém webu, viz docs/anatomie-webu.md */

@font-face { font-family: "Degular"; src: url("../assets/fonts/DegularDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Degular"; src: url("../assets/fonts/DegularDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Degular"; src: url("../assets/fonts/DegularDisplay-Black.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Degular Fallback"; src: local(Arial); ascent-override: 111.4%; descent-override: 41.99%; line-gap-override: 0%; size-adjust: 86.44%; }

:root {
  /* barvy (--color-* z originálu) */
  --proud-yellow: #FFD504;
  --proud-black: #000;
  --proud-white: #fff;
  --proud-grey: #686868;
  --proud-grey-tag: #AAAAAA;
  --proud-light-grey: #C9C9C9;
  --proud-dark-green: #044336;
  --proud-orange: #FF9840;
  --proud-red: #DC3545;
  --proud-veil: rgba(255, 255, 255, .89);

  /* písmo */
  --font: "Degular", "Degular Fallback", Arial, sans-serif;
  --tracking-wide: .1rem;   /* 1,6 px na nadpisech */

  /* šířky a odsazení */
  --max-large: 1920px;
  --max-medium: 1440px;
  --gutter: 16px;           /* px-4 */
  --section-y: 32px;        /* py-8 */
  --nav-h: 70px;

  /* radiusy */
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-btn: 22px;
  --radius-pill: 32px;
}
@media (min-width: 768px) { :root { --gutter: 48px; --section-y: 64px; } }
@media (min-width: 1024px) { :root { --nav-h: 92px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--proud-white); color: var(--proud-black); font-family: var(--font); font-size: 16px; line-height: 1.5; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max-large); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--medium { max-width: var(--max-medium); }
.section { padding: var(--section-y) 0; }

/* Typografie */
.h1, .h2, .h3 { font-weight: 800; letter-spacing: var(--tracking-wide); margin: 0; }
.h1 { font-size: 80px; line-height: 60px; text-transform: uppercase; text-indent: 52px; }
.h2 { font-size: 52px; line-height: 56px; }
.h3 { font-size: 20px; line-height: 1; }
.upper { text-transform: uppercase; }
.lead { font-size: 26px; line-height: 1; font-weight: 700; }
@media (min-width: 1024px) {
  .h1 { font-size: 150px; line-height: 120px; }
  .h3 { font-size: 36px; }
  .lead { font-size: 50px; }
}
@media (min-width: 1280px) { .h2 { font-size: 65px; line-height: 64px; } }
@media (min-width: 1440px) { .h2 { font-size: 80px; line-height: 64px; } .h2--tall { line-height: 80px; } }

/* Odstavec se žlutou linkou („narovnaná vlnka“) */
.note { border-left: 10px solid var(--proud-yellow); padding-left: 32px; font-size: 26px; line-height: 28px; font-weight: 500; }
.note--sm { border-left-width: 8px; }
@media (min-width: 1024px) {
  .note { font-size: 40px; line-height: 48px; padding-left: 52px; max-width: 66.666%; }
  .note--sm { font-size: 32px; line-height: 40px; max-width: 796px; }
}

/* Navigace: 92 px, bílá, neplovoucí */
.nav { position: relative; z-index: 100; background: var(--proud-white); height: var(--nav-h); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 4px; }
.nav__logo { display: block; animation: header-spin 22s ease-in-out infinite; }
.nav__logo img { height: calc(var(--nav-h) - 12px); width: auto; }
.nav__links { display: none; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; text-decoration: none; font-weight: 700; font-size: 20px; text-transform: uppercase; transition: color .3s; }
.nav__links a:hover { color: var(--proud-grey); }
/* animated-underline: šedá linka 3 px, při hoveru se roztáhne zprava doleva */
.nav__links a::after { content: ""; position: absolute; right: 0; bottom: -2px; width: 0; height: 3px; background: var(--proud-grey); transition: width .3s; }
.nav__links a:hover::after { left: 0; width: 100%; }
.nav__burger { background: none; border: 0; font: 800 16px var(--font); text-transform: uppercase; cursor: pointer; }
@media (min-width: 1024px) { .nav__links { display: flex; } .nav__burger { display: none; } }
@keyframes header-spin { 0% { transform: rotate(0); } 4% { transform: rotate(360deg); } 4.00001%, 100% { transform: rotate(0); } }

/* Obal hero + video + ležák: láhve jedou přes všechny tři */
.about { position: relative; }
.bottles { display: none; }
@media (min-width: 1024px) {
  .bottles { display: block; position: absolute; top: calc(-1 * var(--nav-h)); left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--max-large); height: calc(100% + 28dvw); /* obal = hero + video, jako originál */ z-index: 50; pointer-events: none; }
  .bottles__sticky { position: sticky; top: 0; display: flex; justify-content: flex-end; overflow-x: clip; }
  .bottles__img { width: 45dvw; max-width: 600px; will-change: transform; transform: rotate(-11deg) translate(0, -5%); }
}
@media (min-width: 1600px) { .bottles__img { max-width: 758px; } }

/* Hero: 607 px na desktopu, obloha, bílý text */
.hero { position: relative; color: var(--proud-white); overflow-x: clip; }
.hero__bg { position: absolute; inset: 0; background: url("../assets/img/header-pozadi.webp") center / cover no-repeat; }
.hero__in { position: relative; }
.hero__row { display: flex; flex-direction: column; justify-content: space-between; min-height: calc(100dvh - var(--nav-h)); padding: 32px 0; }
.hero__lead { margin-top: 8px; }
.hero__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-self: flex-end; }
.hero__features li { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-weight: 700; font-size: 30px; line-height: 30px; }
.hero__features li:nth-child(1) { padding-left: 4px; }
.hero__features li:nth-child(2) { padding-left: 24px; }
.hero__features li:nth-child(3) { padding-left: 44px; }
.hero__features img { width: 48px; }
.hero__tilde-big { display: none; }
.hero__wave { position: relative; z-index: 56; display: inline-block; width: 271px; transform: translateY(50%); }
@media (min-width: 768px) { .hero__row { min-height: 0; flex-direction: row; justify-content: flex-start; } }
@media (min-width: 1024px) {
  .hero__row { gap: 40px; padding: 100px 0 32px; }
  .hero__lead { margin-top: 24px; }
  .hero__features { align-self: auto; transform: translateY(30%); }
  .hero__features li { margin-top: 24px; }
  .hero__wave { left: 15%; }
}
@media (min-width: 1280px) { .hero__row { align-items: flex-end; gap: 108px; } }
@media (min-width: 1440px) { .hero__row { padding-left: 140px; padding-right: 140px; } }
@media (min-width: 1600px) { .hero__tilde-big { display: block; position: absolute; left: 40px; top: 30%; width: 120px; } }

/* Video pás pod hero */
.band video { position: relative; z-index: 55; width: 100%; aspect-ratio: 16 / 9; max-height: 650px; object-fit: cover; }

/* Moderní český ležák */
.lager { position: relative; overflow-x: clip; padding-bottom: 120px; }
.lager__bg { position: absolute; inset: 0; background: url("../assets/img/glamping.webp") center / cover; }
.lager__in { position: relative; padding: 32px 0; }
.lager__in .h2 { margin: 76px 0; }
.lager__media { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding: 48px 0 0; }
.lager__tag { font-weight: 700; font-size: 32px; line-height: 32px; color: var(--proud-grey-tag); text-align: right; }
.lager__glass { width: 377px; max-width: 50%; }
@media (min-width: 1024px) { .lager { padding-bottom: 0; } .lager__media { padding: 96px 0 140px 15%; } }
@media (min-width: 1280px) { .lager__tag { font-size: 40px; line-height: 36px; } }
@media (min-width: 1440px) { .lager__in { padding: 32px 140px; } }

/* Občas je fajn prostě obrátit proud */
.flip { position: relative; margin-top: -140px; padding: var(--section-y) 0 64px; overflow-x: clip; }
.flip__inner { position: relative; }
.flip__viewport { overflow: hidden; }
.flip__grid { display: flex; transition: transform 1s ease-out; will-change: transform; }
.flip__grid img { flex: 0 0 70%; width: 70%; object-fit: contain; }
.flip__title { position: absolute; right: 0; top: 16px; z-index: 10; color: var(--proud-white); font-weight: 700; font-size: 32px; line-height: 32px; letter-spacing: 0; }
.flip__title span { display: block; padding-left: 56px; }
.flip__tilde { display: none; }
.flip__row { display: flex; align-items: center; gap: 24px; padding: 64px 0 0; }
.flip__bottle { display: none; }
@media (min-width: 768px) {
  .flip { margin-top: -200px; }
  .flip__tilde { display: block; position: absolute; z-index: 2; pointer-events: none; }
  .flip__tilde--r { right: -48px; top: -40px; width: 285px; }
  .flip__tilde--l { left: -120px; top: 100%; transform: translateY(-50%); width: 400px; }
}
@media (min-width: 1024px) {
  .flip__title { font-size: 56px; line-height: 56px; }
  .flip__row { gap: 48px; }
  .flip__bottle { display: block; flex: 0 0 auto; height: 535px; width: auto; margin-left: 120px; transform: rotate(32deg); transition: transform 1s ease-out; }
}

/* Tlačítko */
.btn { display: inline-flex; align-items: center; gap: 16px; background: var(--proud-yellow); color: var(--proud-white); font: 700 30px/45px var(--font); padding: 4px 24px; border-radius: var(--radius-btn); border: 0; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .3s, color .3s; }
.btn:hover { background: #d9b503; }
.btn--narrow { padding: 4px 12px; }

/* FAQ pilulky: žlutá → hover/otevřená bílá se žlutým obrysem */
.faq { background: url("../assets/img/pozadi_faq.webp") top center repeat-x; padding-top: 80px; }
.faq__list { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.faq__item { width: 100%; border: 4px solid var(--proud-yellow); border-radius: var(--radius-pill); background: var(--proud-yellow); transition: background-color .3s; }
.faq__item:hover, .faq__item[open] { background: var(--proud-white); }
.faq__item summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 16px; line-height: 24px; text-transform: uppercase; padding: 16px 28px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { padding: 0 28px 20px; font-size: 18px; }
@media (min-width: 1024px) { .faq__list { gap: 32px 16px; margin-top: 40px; } .faq__item { width: auto; } .faq__item[open] { flex-basis: 100%; } }

/* Formulář */
.field { display: grid; gap: 16px; justify-items: center; font-size: 14px; line-height: 24px; }
.field input, .field textarea { width: 100%; font: 400 18px var(--font); border: 3px solid var(--proud-yellow); border-radius: var(--radius-md); padding: 4px 12px; min-height: 44px; outline: none; background: var(--proud-white); }
.field textarea { min-height: 180px; }
.field input:focus, .field textarea:focus { border-color: var(--proud-black); }
@media (min-width: 1024px) { .field { font-size: 16px; } }

/* Ikony sítí a šipka „koukni“ */
.social { display: inline-flex; width: 72px; height: 72px; padding: 8px; border: 3px solid var(--proud-black); border-radius: 999px; }
.social img { width: 100%; height: 100%; }

/* Stylová reference */
.sheet { border-top: 1px solid #eee; }
.sheet__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; margin-top: 48px; }
.sheet h4 { font-size: 14px; text-transform: uppercase; margin: 0 0 16px; color: var(--proud-grey); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 92px; font-size: 13px; line-height: 1.3; }
.swatch i { display: block; height: 72px; border-radius: var(--radius-md); margin-bottom: 6px; border: 1px solid #eee; }

/* Patička: boční sloupce se žlutou linkou 5 px, razítko uprostřed */
.foot { padding: 60px 0 32px; }
.foot__in { display: flex; flex-direction: column; gap: 16px; }
.foot__col { border-top: 5px solid var(--proud-yellow); padding-top: 40px; }
.foot__news { display: flex; gap: 24px; align-items: flex-start; }
.foot__news p { max-width: 140px; font-size: 16px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.foot__stamp { width: 219px; align-self: center; background: var(--proud-white); }
.foot__legal { display: flex; justify-content: flex-end; align-items: flex-start; gap: 44px; }
.foot__legal small { font-size: 10px; font-weight: 700; }
.foot__age { display: flex; align-items: center; gap: 4px; font-size: 20px; line-height: 30px; text-decoration: none; }
.foot__age img { width: 35px; }
@media (min-width: 768px) {
  .foot__in { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .foot__col { width: 41.666%; margin-top: 64px; }
  .foot__stamp { width: 16.666%; max-width: 219px; }
}

/* Bez JS / s omezeným pohybem je vše vidět a stojí */
@media (prefers-reduced-motion: reduce) { .nav__logo { animation: none; } }
