/* MilkPoint – veřejný web. Barvy převzaty z původního webu. Písma jsou systémová (žádné externí zdroje). */
:root {
  --bg: #fbfcf8; --surface: #fff; --fg: #161b33; --muted: #586078; --line: #dfe6d6;
  --navy: #1b2142; --green: #3f8a2e; --green-dark: #2f6b22; --leaf: #7ab648; --mist: #eef4e6;
  --on-navy: #f4f7ee;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.6 var(--body); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; font-weight: 700; }
h1, .h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.narrow { max-width: 780px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--green); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }

/* tlačítka */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn.ghost:hover { border-color: var(--green); }
.btn.light { background: #fff; color: var(--navy); }
.btn.light:hover { background: var(--mist); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* horní lišta a hlavička */
.utility { background: var(--navy); color: var(--on-navy); font-size: .85rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-block: 7px; }
.utility a { color: inherit; text-decoration: none; opacity: .9; }
.utility a:hover { opacity: 1; color: inherit; }
.utility-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(251, 252, 248, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--fg); font-weight: 500; }
.nav a:hover { background: var(--mist); color: var(--fg); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--fg); border-radius: 2px; }
.nav-toggle .bar { top: 21px; }
.nav-toggle .bar::before { left: 0; right: 0; top: -7px; }
.nav-toggle .bar::after { left: 0; right: 0; top: 7px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 20px 20px; }
}

/* hero – vlevo slider, vpravo velké logo v bílém kruhu (jako na původním webu) */
.hero { position: relative; background: linear-gradient(135deg, var(--navy), #2a3f3a 55%, var(--green-dark)); color: #fff; overflow: hidden; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 72px; min-height: clamp(460px, 62vh, 640px); }
.slide[hidden] { display: none; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; pointer-events: none; }
.hero-in > * { position: relative; }
.slides { position: static; }
.slide-inner { position: relative; max-width: 640px; }
.hero .eyebrow { color: var(--leaf); }
.hero .lead { color: rgba(255, 255, 255, .88); max-width: 52ch; }
.hero-art { aspect-ratio: 1; width: 100%; max-width: 420px; justify-self: center; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 14%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; }
/* značka ® u nápisu MilkPoint – pozice v procentech obrázku, takže sedí v každé velikosti */
.logo-mark { position: relative; display: block; height: 100%; aspect-ratio: 579 / 640; container-type: inline-size; }
.logo-mark img { width: 100%; height: 100%; }
.logo-mark .tm { position: absolute; left: 97.5%; top: 73.5%; font: 700 7cqw/1 var(--body); color: var(--navy); }
.hero-art.photo { padding: 0; }
.hero-art.photo img { object-fit: cover; }
.slider-nav { display: flex; align-items: center; gap: 10px; margin-top: 36px; position: relative; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer; }
.dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; }
.dot[aria-current] { background: #fff; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; min-height: 0; }
  .hero-art { max-width: 240px; order: -1; }
}

/* sekce */
.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec.mist { background: var(--mist); }
.sec.navy { background: var(--navy); color: var(--on-navy); }
.sec.navy .eyebrow { color: var(--leaf); }
.sec.navy .lead, .sec.navy p { color: rgba(244, 247, 238, .85); }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-cta { margin-top: 32px; }
.sec-img { border-radius: var(--radius); margin-block: 24px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.facts dt { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--green); line-height: 1; }
.facts dd { margin: 8px 0 0; color: var(--muted); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card img { border-radius: 10px; margin-bottom: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card time { display: block; font-size: .85rem; color: var(--green); font-weight: 600; margin-bottom: 6px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark); background: var(--mist); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; counter-reset: step; }
.steps li { border-top: 2px solid var(--leaf); padding-top: 18px; counter-increment: step; }
.steps li::before { content: "0" counter(step); font-family: var(--display); font-size: 1.6rem; color: var(--leaf); display: block; margin-bottom: 6px; }

.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.partners li { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.partners img { max-height: 56px; width: auto; margin-bottom: 10px; }
.partners span { color: var(--muted); font-size: .95rem; }

.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 500; }
.cookie-table dt { font-weight: 600; margin-top: 1em; }
.cookie-table dd { margin: .2em 0 0; color: var(--muted); }

/* údaje o společnosti */
.facts-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.facts-list { margin: 0; }
.facts-list div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts-list div:last-child { border-bottom: 0; }
.facts-list dt { color: var(--muted); font-size: .92rem; }
.facts-list dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .facts-list div { grid-template-columns: 1fr; gap: 2px; } }
.business p { margin: 1.2em 0 .4em; }
.business ul { color: var(--muted); }

/* okno s výpisem z obchodního rejstříku */
.register { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--fg); box-shadow: 0 30px 80px rgba(22, 27, 51, .35); overflow: hidden; }
.register[open] { display: flex; flex-direction: column; animation: reg-in .25s ease-out; }
.register::backdrop { background: rgba(22, 27, 51, .6); backdrop-filter: blur(3px); }
@keyframes reg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.register-head { display: flex; gap: 18px; align-items: flex-start; padding: 24px 28px 20px; background: var(--mist); border-bottom: 3px solid var(--leaf); }
.register-head img { width: 58px; height: auto; flex: none; }
.register-head h2 { font-size: 1.6rem; margin: 0 0 4px; }
.register-head .eyebrow { margin-bottom: 4px; }
.register-meta { font-size: .88rem; color: var(--muted); margin: 0; }
.register-close { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--fg); }
.register-close:hover { border-color: var(--green); }
.register-body { padding: 8px 28px 8px; overflow-y: auto; }
.register-body .facts-list div { grid-template-columns: 190px 1fr; }
@media (max-width: 520px) {
  .register-body .facts-list div { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .register-head { padding: 16px 18px 14px; gap: 12px; }
  .register-head img { display: none; }
  .register-head h2 { font-size: 1.35rem; }
  .register-body { padding: 4px 18px; }
  .register-foot { padding: 12px 18px 16px; }
  .register-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .register-actions .btn { justify-content: center; padding: 10px 12px; }
  .register-actions .btn.primary { grid-column: 1 / -1; }
}
.register-foot { padding: 16px 28px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.register-foot p { margin: 0; }
.register-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.small { font-size: .85rem; }

/* patička */
.site-foot { background: var(--navy); color: var(--on-navy); padding-top: 56px; font-size: .95rem; }
.site-foot a, .site-foot .link-btn { color: var(--on-navy); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo { height: 56px; width: auto; margin-bottom: 14px; }
.foot-h { font-family: var(--body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--leaf); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
address { font-style: normal; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-block: 20px; opacity: .8; font-size: .85rem; }

/* cookie lišta */
.cookie-bar { position: fixed; inset: auto 16px 16px 16px; z-index: 90; display: flex; justify-content: center; }
.cookie-bar[hidden] { display: none; }
.cookie-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(22, 27, 51, .18); padding: 24px; max-width: 760px; width: 100%; max-height: 80vh; overflow: auto; }
.cookie-box h2 { font-size: 1.3rem; }
.cookie-detail { display: grid; gap: 12px; margin: 12px 0 16px; }
.cookie-detail[hidden] { display: none; }
.cookie-cat { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; }
.cookie-cat input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-actions [hidden] { display: none; }

.error-page main { padding-block: 120px; }
