/* Vinice Máchalka – styly */
:root {
  --paper: #F4EFE6;
  --ink: #23201A;
  --muted: #5E564B;
  --line: #D9CFBF;
  --line2: #E2D9C9;
  --card: #FBF8F2;
  --sand: #ECE4D6;
  --wine: #7A2333;
  --dark: #1F1C17;
  --dark2: #2A2620;
  --darkest: #171511;
  --dmuted: #CFC5B3;
  --dmuted2: #B9AE9C;
  --pink: #D9A9B1;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a:hover { opacity: .85; }
.i { font-style: italic; }
.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; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }
.eyebrow { margin: 0 0 16px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--wine); font-weight: 600; }
.h1 { margin: 0 0 24px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -.01em; }
.h2 { margin: 0 0 40px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 52px); line-height: 1.05; letter-spacing: -.01em; }
.h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; }

/* Tlačítka */
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btns--start { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--ghost { border: 1px solid rgba(244,239,230,.7); color: var(--paper); }
.btn--dark { padding: 0 24px; background: var(--dark2); border: 1px solid rgba(244,239,230,.35); color: var(--paper); }

/* Navigace */
.nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px clamp(20px, 5vw, 72px); }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 48px; width: auto; display: block; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.nav__links > a { color: var(--paper); text-decoration: none; padding: 10px 0; }
.nav__links > a.nav__cta { color: var(--ink); background: var(--paper); padding: 10px 20px; border-radius: 999px; }
.langs { display: flex; align-items: center; gap: 4px; }
.langs a { display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; opacity: .6; }
.langs a[aria-current] { opacity: 1; }
.langs a:hover { opacity: 1; }
.langs svg { display: block; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(244,239,230,.45); }
.langs a[aria-current] svg { box-shadow: 0 0 0 2px var(--paper); }

/* Hero */
.hero { position: relative; min-height: 780px; display: flex; flex-direction: column; color: var(--paper); overflow: hidden; background: #2E2C1F; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 60%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,18,12,.88) 0%, rgba(22,18,12,.3) 55%, rgba(22,18,12,.55) 100%); }
.hero__content { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 28px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 64px clamp(20px, 5vw, 72px); }
.hero__eyebrow { margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #E4DCCB; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 9vw, 136px); line-height: .95; letter-spacing: -.02em; }
.hero__lead { margin: 0; max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); color: #EFE9DD; }
.strip { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px clamp(32px, 6vw, 96px); padding: 22px clamp(20px, 5vw, 72px); border-top: 1px solid rgba(244,239,230,.25); background: rgba(22,18,12,.35); }
.strip__item { display: flex; gap: 14px; align-items: center; line-height: 1.35; }
.strip__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #D9D0BE; }
.strip__value { font-weight: 500; }
.strip a { color: inherit; text-decoration: none; }

/* Hlavička podstránek */
.site-header { background: var(--dark); color: var(--paper); }

/* Akce */
.events { padding: 104px 0 40px; }
.events__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.events__col { display: flex; flex-direction: column; gap: 20px; }
.events__col .eyebrow, .events__col .h2 { margin: 0; }
.empty { display: flex; gap: 18px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.empty__icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: var(--sand); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.empty p { margin: 0; color: var(--muted); }
.event-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.event { display: flex; gap: 18px; align-items: flex-start; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.event:hover, .event:focus-visible { border-color: var(--wine); box-shadow: 0 6px 20px rgba(35,32,26,.08); }
.event__img { flex: 0 0 auto; width: 120px; height: 90px; object-fit: cover; border-radius: 12px; background: var(--sand, #E9E0CF); }
.event__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event__date { margin: 0; font-size: 13px; font-weight: 600; color: var(--wine); }
.event__title { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; }
.event__text { color: var(--muted); font-size: 15px; line-height: 1.5; }
.event__more { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--wine); }
@media (max-width: 480px) { .event { flex-direction: column; } .event__img { width: 100%; height: 160px; } }
.event-modal { width: min(720px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(22,18,12,.35); }
.event-modal::backdrop { background: rgba(22,18,12,.6); }
.event-modal__inner { position: relative; padding: 28px; }
.event-modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.event-modal__img { display: block; width: 100%; max-height: 420px; object-fit: cover; margin: 0 0 20px; border-radius: 14px; }
.event-modal__title { margin: 6px 48px 12px 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.event-modal__perex { margin: 0 0 16px; font-size: 18px; color: var(--muted); }
.event-modal__text p, .event-modal__text ul, .event-modal__text ol { margin: 0 0 14px; }
.event-modal__text ul, .event-modal__text ol { padding-left: 22px; }
.event-modal__text h2, .event-modal__text h3 { margin: 24px 0 10px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.event-modal__text a { color: var(--wine); }
.event-modal__text img { max-width: 100%; height: auto; border-radius: 12px; }
.thanks { align-self: end; display: flex; flex-direction: column; gap: 14px; padding: 32px 36px; border-radius: 20px; background: var(--wine); color: var(--paper); }
.thanks p { margin: 0; }
.thanks .thanks__eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #EBD9DC; }
.thanks h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }

/* Otevírací doba */
.hours { padding: 80px 0; }
.hours__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.hcard { padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.hcard--now { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 20px 40px rgba(35,32,26,.18); }
.hcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hcard__title { display: flex; align-items: center; gap: 12px; }
.hcard h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.hcard__range { font-size: 14px; color: var(--muted); }
.hcard--now .hcard__range { color: var(--dmuted); }
.hrow { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line2); }
.hrow:last-child { border-bottom: 1px solid var(--line2); }
.hrow strong { font-weight: 600; white-space: nowrap; }
.hcard--now .hrow { border-color: #3E3930; }
.hcard__note { margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.hcard--now .hcard__note { color: var(--dmuted); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--wine); color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hours__extra { margin: 24px 0 0; color: var(--muted); }

/* Prodej */
.buy-title { margin: 64px 0 24px; }
.buy { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.bottle { flex: 1 1 240px; max-width: 100%; margin: 0; padding: 32px 24px; border-radius: 20px; background: var(--sand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.bottle img { height: 420px; width: auto; display: block; filter: drop-shadow(0 18px 24px rgba(35,32,26,.25)); }
.bottle figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.prices { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.price { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 24px 32px; border-radius: 20px; border: 1px solid var(--line); }
.price--accent { background: var(--sand); border-color: var(--sand); }
.price__text { display: flex; flex-direction: column; gap: 2px; }
.price--accent .price__text { flex: 1 1 280px; gap: 4px; }
.price__name { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.price__sub { font-size: 14px; color: var(--muted); }
.price__tag { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); font-weight: 600; }
.price__value { font-family: var(--serif); font-size: 40px; line-height: 1; white-space: nowrap; }

/* Vinný lístek */
.wines { background: var(--sand); }
.wines > .wrap { padding-block: 96px; }
.wines .h2 { margin-bottom: 48px; }
.wines__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 64px; }
.wines h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.dot { width: 14px; height: 14px; border-radius: 50%; }
.dot--white { background: #D8C77A; border: 1px solid #A8963F; }
.dot--red { background: var(--wine); }
.wine { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid #CFC3AE; }
.wine__name { font-family: var(--serif); font-size: 24px; }
.wine__meta { font-size: 14px; color: var(--muted); }
.wine__price { font-weight: 600; white-space: nowrap; }

/* O vinici */
.about { padding: 104px 0; }
.about__top { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.about__text { flex: 999 1 480px; min-width: 0; }
.about__text .h2 { margin-bottom: 32px; }
.about__text p { margin: 0 0 20px; color: #3E382F; }
.about__text p:last-child { margin-bottom: 0; }
.about__text .lead { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--ink); }
.about__text .eyebrow { color: var(--wine); margin-bottom: 16px; }
.stats { flex: 1 1 440px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.stat { padding: 24px; border-radius: 20px; border: 1px solid var(--line); }
.stat__num { font-family: var(--serif); font-size: 44px; line-height: 1; white-space: nowrap; }
.stat__label { margin-top: 8px; font-size: 14px; color: var(--muted); }
.stat--wine { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.stat--wine .stat__label { color: #EBD9DC; }
.gallery { margin-top: 80px; display: flex; flex-wrap: wrap; gap: 16px; }
.gallery figure { min-width: 0; margin: 0; border-radius: 20px; overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-wide { flex: 2 1 520px; }
.g-narrow { flex: 1 1 260px; }
.g-tall { height: 400px; }
.g-short { height: 320px; }
.varieties-title { margin: 80px 0 8px; }
.varieties-text { margin: 0 0 28px; color: var(--muted); }
.varieties { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.variety { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); }
.code { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #EFE6C4; font-weight: 600; font-size: 14px; }
.code--red { background: #E9D3D6; }

/* Kontakt */
.contact { background: var(--dark); color: var(--paper); }
.contact > .wrap { padding-block: 104px; }
.contact .eyebrow { color: var(--pink); }
.contact .h2 { margin-bottom: 48px; }
.contact__grid { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.contact__info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 28px; }
.label { margin-bottom: 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--dmuted2); }
.big { font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.big a, a.big { color: var(--paper); }
.big a { text-decoration: none; }
.addr { font-size: 18px; }
.gps { margin-top: 6px; font-size: 14px; color: var(--dmuted2); }
.routes { flex: 999 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-content: start; }
.route { padding: 28px; border-radius: 20px; background: var(--dark2); display: flex; flex-direction: column; gap: 12px; }
.route h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.route p { margin: 0; color: var(--dmuted); font-size: 15px; }

/* Patička */
.footer { background: var(--darkest); color: var(--dmuted); font-size: 15px; }
.footer p { margin: 0; }
.footer a { color: var(--dmuted); }
.footer__top { display: flex; flex-wrap: wrap; gap: 40px 72px; padding-block: 64px 40px; }
.footer__col { flex: 1 1 320px; min-width: 0; }
.footer__title { margin-bottom: 16px; font-family: var(--serif); font-size: 28px; color: var(--paper); }
.footer__about { max-width: 560px; }
.footer__reg { line-height: 1.7; }
/* nad ikonami mezera ~ jako mezi řádky odstavce (odkaz má výšku 44 px, ikona 22 px uprostřed), mezi ikonami o něco větší */
.footer__social { display: flex; align-items: center; gap: 16px; margin-top: -1px; }
.footer__social a { display: inline-flex; align-items: center; min-height: 44px; opacity: .85; }
.footer__social a:hover { opacity: 1; }
.footer__social img { display: block; width: 22px; height: 22px; }
.footer__sep { width: 1px; height: 20px; background: #5A5248; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 32px; border-top: 1px solid #2E2A23; font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Podstránky */
.subpage { padding: 72px 0 104px; }
.subpage__intro { margin: 0; max-width: 720px; color: var(--muted); }
.table-box { margin: 40px 0 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.nutri { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 15px; }
.nutri caption { padding: 20px 24px 12px; text-align: left; font-family: var(--serif); font-size: 22px; }
.nutri th, .nutri td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line2); }
.nutri thead th { background: var(--sand); border-top: none; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; line-height: 1.4; }
.nutri tbody th { font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.3; white-space: nowrap; }
.nutri__sweet { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.nutri .num { white-space: nowrap; }
.nutri tbody tr:hover { background: #F6F1E8; }
.back { color: var(--wine); font-weight: 600; }

/* Poděkování nad kalendářem, akce ve dvou sloupcích */
.events__grid--stack { grid-template-columns: minmax(0, 1fr); }
.events__grid--stack .thanks { align-self: stretch; }
.event-list--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-list--two > li { display: flex; }
.event-list--two .event { height: 100%; }
@media (max-width: 760px) { .event-list--two { grid-template-columns: minmax(0, 1fr); } }

/* Mezery: Poděkování / Kalendář / Prodej vína */
.events__grid--stack { row-gap: 72px; }
.events + .hours { padding-top: 48px; }
@media (max-width: 760px) { .events__grid--stack { row-gap: 48px; } }

/* Odkaz Družstvo v horním menu */
.nav__links > a.nav__coop { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; color: var(--paper); text-decoration: none; opacity: .9; }
.nav__links > a.nav__coop:hover { opacity: 1; }
.nav__coop svg { flex: 0 0 auto; }

/* Obrázek v bloku „Víno je možné koupit“: běžná fotka místo lahve s průhledným pozadím */
.bottle--photo { padding: 0; overflow: hidden; background: none; }
.bottle--photo img { width: 100%; height: 420px; object-fit: cover; border-radius: 20px; filter: none; }
.bottle--photo figcaption { padding: 0 12px 12px; }
@media (max-width: 640px) { .bottle--photo img { height: 300px; } }
/* Volitelné poznámky */
.buy__note, .wines__note { margin: 24px 0 0; max-width: 760px; font-size: 17px; }
.wines__note { font-weight: 500; }

/* Dlaždice v bloku Příběh na úzkém displeji – čísla zůstanou na jednom řádku */
@media (max-width: 480px) { .stat { padding: 18px; } .stat__num { font-size: 34px; } }
