/* jak-jist.cz – Blanka Medunová, poradce pro výživu
   Jediný sdílený styl webu. Bez externích zdrojů (písma jsou u nás). */

/* ---------- Písma (SIL Open Font License 1.1, viz ../fonts/LICENSE.txt) ---------- */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/inter-tight-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: "Inter Tight"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/inter-tight-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: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-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; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-italic-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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-italic-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; }

/* ---------- Barvy a proměnné (kontrast textu ověřen na WCAG AA) ---------- */
:root {
  --bg: #F8F6F0;          /* teplá lomená bílá */
  --surface: #FFFFFF;
  --sand: #F1EBDF;        /* teplá neutrální */
  --sage-50: #EEF3EA;
  --sage-100: #DDE7D6;
  --sage-300: #A9C19C;
  --green: #3E6B4A;       /* hlavní zelená – odkazy, tlačítka (6,2 : 1 na bílé) */
  --green-dark: #2C4F36;
  --green-deep: #24402D;
  --ink: #1E2B22;         /* text (13,6 : 1) */
  --muted: #56645A;       /* vedlejší text (5,8 : 1) */
  --line: #E2DDD1;
  --apricot: #9A5A2B;     /* drobné akcenty (5,0 : 1) */
  --apricot-soft: #F6E8DA;
  --on-dark: #E8F0E3;
  --on-dark-muted: #B9CDB0;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(30, 43, 34, .05), 0 10px 30px rgba(30, 43, 34, .07);
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.7rem); line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--green); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
strong { font-weight: 650; }
small, .small { font-size: .92rem; }
address { font-style: normal; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--green-deep); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Hlavička a navigace ---------- */
.site-header { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-serif); font-size: 1.55rem; line-height: 1; white-space: nowrap; }
.brand-sub { font-size: .78rem; color: var(--muted); letter-spacing: .05em; margin-top: 4px; white-space: nowrap; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-desktop a:hover { background: var(--sage-50); color: var(--green-deep); }
.nav-desktop a[aria-current="page"] { background: var(--sage-100); color: var(--green-deep); }
.header-tel { display: none; }

.nav-mobile summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: .95rem; color: var(--ink);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary:hover { border-color: var(--sage-300); }
.burger { position: relative; width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.burger::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.nav-mobile[open] .burger { border-color: transparent; }
.nav-mobile[open] .burger::before,
.nav-mobile[open] .burger::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid var(--ink); }
.nav-mobile[open] .burger::before { transform: rotate(45deg); }
.nav-mobile[open] .burger::after { transform: rotate(-45deg); }
.nav-label-close { display: none; }
.nav-mobile[open] .nav-label-open { display: none; }
.nav-mobile[open] .nav-label-close { display: inline; }
.nav-mobile nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 24px;
}
.nav-mobile ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); }
.nav-mobile li a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.nav-mobile li a[aria-current="page"] { color: var(--green); font-weight: 650; }
.nav-mobile .btn { margin-top: 18px; }

@media (min-width: 1080px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
}
@media (min-width: 1280px) {
  .header-tel { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--green); color: var(--green); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: .95rem; }
  .header-tel:hover { background: var(--green); color: #fff; }
}
@media (max-width: 380px) {
  .brand .logo { width: 38px; height: 38px; }
  .brand-name { font-size: 1.35rem; }
  .brand-sub { font-size: .72rem; letter-spacing: .02em; }
  .nav-mobile summary { padding: 10px 12px; }
}

/* ---------- Tlačítka a drobné prvky ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; min-height: 48px; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; text-align: center; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--sage-50); color: var(--green-deep); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--sage-50); color: var(--green-deep); }
.btn-outline-light { border-color: var(--on-dark-muted); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--apricot); font-weight: 650; margin: 0 0 14px; }
.lead { font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 38em; }
.hint { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link::after { content: " \2192"; }

/* ---------- Úvodní hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(36px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
  background: radial-gradient(900px 480px at 88% 8%, var(--sage-50) 0%, rgba(238, 243, 234, 0) 70%), var(--bg);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { max-width: 13em; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.3fr .7fr; } }

.portrait { position: relative; isolation: isolate; margin: 0; justify-self: center; width: min(100%, 300px); }
.portrait::before {
  content: ""; position: absolute; z-index: -1; width: 150px; height: 200px; right: -56px; top: -36px;
  background: url("../img/listy.svg") no-repeat center / contain;
}
.portrait::after {
  content: ""; position: absolute; z-index: -1; width: 110px; height: 150px; left: -48px; bottom: 40px;
  background: url("../img/listy.svg") no-repeat center / contain; transform: scaleX(-1) rotate(-12deg); opacity: .8;
}
.portrait-frame { display: flex; justify-content: center; padding: 34px 24px 0; background: var(--sage-100); border-radius: 999px 999px 32px 32px; overflow: hidden; }
.portrait-frame img { width: 200px; height: 300px; mix-blend-mode: multiply; }
.portrait figcaption { text-align: center; margin-top: 14px; font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.2; }
.portrait figcaption span { display: block; font-family: var(--font-sans); font-size: .88rem; color: var(--muted); }

/* ---------- Záhlaví podstránek ---------- */
.page-head {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 5vw, 56px);
  background: radial-gradient(800px 380px at 92% 0%, var(--sage-50) 0%, rgba(238, 243, 234, 0) 70%), var(--bg);
}
.page-head::after {
  content: ""; position: absolute; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + 24px)); top: 24px;
  width: 120px; height: 160px; background: url("../img/listy.svg") no-repeat center / contain; opacity: .9; pointer-events: none;
}
.page-head h1 { max-width: 15em; position: relative; z-index: 1; }
.page-head .lead { position: relative; z-index: 1; }
@media (max-width: 700px) { .page-head::after { width: 84px; height: 112px; top: 12px; right: 4px; opacity: .55; } }

/* ---------- Sekce a mřížky ---------- */
.section { padding: clamp(52px, 8vw, 100px) 0; }
.section-tight { padding-top: clamp(16px, 3vw, 32px); }
.section-sage { background: var(--sage-50); }
.section-sand { background: var(--sand); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; margin: 0; padding: 0; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide { grid-template-columns: 1.4fr 1fr; }
  .split-media { grid-template-columns: minmax(0, 360px) 1fr; align-items: center; }
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .35em; }
.card-feature { display: flex; flex-direction: column; align-items: flex-start; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); }
.card-feature .btn { margin-top: auto; }
.card-feature img { border-radius: 12px; border: 1px solid var(--line); margin: 6px 0 22px; width: 100%; }
.icon-dot { display: block; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%; background: var(--sage-100) url("../img/list.svg") no-repeat center / 24px; }
.price-tag { display: inline-block; margin-top: 4px; padding: 4px 14px; border-radius: 999px; background: var(--sage-50); color: var(--green-deep); font-weight: 650; white-space: nowrap; }

/* Číslované kroky */
.steps { counter-reset: krok; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: krok; position: relative; padding: 20px 22px 20px 74px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(krok); position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 650; }
.steps strong { display: block; margin-bottom: 2px; }
.section-sage .steps li { border-color: var(--sage-100); }

/* Seznam s fajfkou */
.checklist { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--sage-100) url("../img/fajfka.svg") no-repeat center / 14px; }

/* Štítky */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 1.2em; padding: 0; }
.tags li { background: var(--surface); border: 1px solid var(--sage-100); border-radius: 999px; padding: 7px 16px; font-size: .97rem; }
.section-sage .tags li { border-color: var(--sage-300); }

/* Upozornění */
.note { background: var(--apricot-soft); border-left: 4px solid var(--apricot); padding: 18px 22px; border-radius: 12px; margin: 0 0 1.4em; }
.note > :last-child { margin-bottom: 0; }
.note-sage { background: var(--sage-50); border-left-color: var(--green); }

/* Citát */
.quote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--sage-300); }
.quote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.3; margin: 0; }
.quote footer { margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* Text článků */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--green); }
.prose cite { font-style: italic; }

/* ---------- Ceník ---------- */
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 20px 26px; text-align: left; vertical-align: baseline; border-top: 1px solid var(--line); }
.price-table tbody tr:first-child th, .price-table tbody tr:first-child td { border-top: 0; }
.price-table th { font-weight: 600; }
.price-table th small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.price-table td { text-align: right; white-space: nowrap; font-family: var(--font-serif); font-size: 1.55rem; line-height: 1.2; color: var(--green-deep); }
.price-table tbody tr:hover { background: var(--bg); }
@media (max-width: 520px) {
  .price-table th, .price-table td { padding: 16px 14px; }
  .price-table td { font-size: 1.3rem; padding-left: 6px; }
}
.price-foot { margin-top: 18px; color: var(--muted); }

.voucher-img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.account { display: inline-block; font-weight: 650; letter-spacing: .02em; white-space: nowrap; }

/* ---------- Produkty ---------- */
.products { display: grid; gap: 22px; }
.product { display: grid; gap: clamp(18px, 3vw, 36px); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); }
@media (min-width: 760px) { .product { grid-template-columns: 260px 1fr; } }
.product-media { display: flex; gap: 12px; justify-content: center; align-items: center; }
.product-media img { width: auto; max-height: 230px; }
.product-media-wide img { max-height: none; width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.product-media-pair img { max-width: calc(50% - 6px); }
.product-media-icon { aspect-ratio: 1; max-width: 200px; margin-inline: auto; width: 100%; border-radius: 50%; background: var(--sage-50) url("../img/list.svg") no-repeat center / 38%; }
.product h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.product .claim { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--green); margin-bottom: .6em; }
.product > div > :last-child { margin-bottom: 0; }

/* ---------- Měření ---------- */
.specs { list-style: none; margin: 0 0 1.2em; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs span { color: var(--muted); }
.specs strong { text-align: right; }
.media-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; justify-content: center; }
.media-card img { max-height: 380px; width: auto; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; list-style: none; margin: 0 0 32px; padding: 0; }
.flow li { background: var(--surface); border: 1px solid var(--sage-100); border-radius: var(--radius); padding: 18px 20px; font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.2; }
.flow li span { display: block; font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--apricot); font-weight: 650; margin-bottom: 6px; }

/* ---------- pH škála ---------- */
.ph { margin: 1.6em 0; padding: clamp(18px, 3vw, 26px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ph-groups { display: flex; flex-wrap: wrap; gap: 16px 14px; }
.ph-group { flex: var(--n, 2) 1 0; min-width: calc(var(--n, 2) * 46px); }
.ph-group-4 { --n: 4; }
.ph-group-2 { --n: 2; }
.ph-group h3 { font-family: var(--font-sans); font-size: .88rem; font-weight: 650; margin: 0 0 8px; line-height: 1.3; min-height: 2.6em; display: flex; align-items: flex-end; }
.ph-chips { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ph-chips li { flex: 1 1 0; min-width: 0; text-align: center; font-size: .9rem; font-weight: 600; color: var(--ink); }
.ph-chips li::before { content: ""; display: block; height: 46px; border-radius: 8px; margin-bottom: 6px; background: var(--chip, #ccc); }
.ph-50 { --chip: #E9A73B; } .ph-55 { --chip: #D99B36; } .ph-60 { --chip: #BE9B3C; } .ph-65 { --chip: #8F8B3B; }
.ph-68 { --chip: #5F6C33; } .ph-70 { --chip: #4C5D30; } .ph-75 { --chip: #3D5A5C; } .ph-80 { --chip: #4B4C8C; }
.ph figcaption { margin-top: 14px; color: var(--muted); font-size: .92rem; }

/* ---------- Certifikáty ---------- */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); list-style: none; margin: 0; padding: 0; }
.gallery a { display: block; height: 100%; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.gallery a:hover { border-color: var(--sage-300); box-shadow: var(--shadow); color: var(--ink); }
.gallery figure { margin: 0; }
.gallery .thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: var(--bg); border-radius: 10px; overflow: hidden; padding: 6px; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.gallery figcaption { margin-top: 10px; font-size: .93rem; font-weight: 600; line-height: 1.35; }
.gallery figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* ---------- Kontakt ---------- */
.contact-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 32px); }
.contact-card h2 { font-size: 1.6rem; margin-bottom: .4em; }
.contact-card .big { font-size: clamp(1.15rem, 2.2vw, 1.35rem); font-weight: 600; overflow-wrap: anywhere; }
.contact-card p:last-child { margin-bottom: 0; }

/* Kontaktní pruh (úvod) */
.contact-band { background: var(--green); color: var(--on-dark); }
.contact-band h2 { color: #fff; }
.contact-band p { color: var(--on-dark); }
.contact-band .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .contact-band .wrap { grid-template-columns: 1.2fr 1fr; } }
.contact-band .actions { margin-top: 0; }
@media (min-width: 880px) { .contact-band .actions { justify-content: flex-end; } }

/* ---------- Patička ---------- */
.site-footer { background: var(--green-deep); color: var(--on-dark); padding: clamp(48px, 7vw, 72px) 0 28px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--on-dark); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.footer-brand { font-family: var(--font-serif); font-size: 1.7rem; line-height: 1.1; color: #fff; margin-bottom: 10px; }
.site-footer h2 { font-family: var(--font-sans); font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer p { margin-bottom: .6em; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(232, 240, 227, .18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .9rem; color: var(--on-dark-muted); }
.footer-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { padding-bottom: clamp(56px, 8vw, 104px); }
.notfound .grid { margin-top: 28px; }

/* ---------- Tisk ---------- */
@media print {
  .site-header nav, .nav-mobile, .header-tel, .skip-link, .actions, .portrait::before, .portrait::after, .page-head::after { display: none !important; }
  body { background: #fff; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a, .site-footer h2, .footer-bottom { color: #000; }
  a { color: #000; }
}

/* ---------- Doplňky ---------- */
.h3-like { font-size: clamp(1.45rem, 2.4vw, 1.7rem); line-height: 1.15; }
.hero-sub { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-sub h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 880px) {
  .split-wide > aside { position: sticky; top: 24px; }
}

.hero + .section { padding-top: clamp(40px, 6vw, 72px); }
.ph-mini { width: 100%; margin: 6px 0 26px; }
.ph-mini li { font-size: .8rem; color: var(--muted); }
.ph-mini li::before { height: 30px; border-radius: 6px; }
@media (max-width: 879px) {
  .portrait { width: min(100%, 260px); }
}
@media (max-width: 600px) {
  .card:has(> .icon-dot + h3) { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: center; }
  .card > .icon-dot { width: 42px; height: 42px; margin: 0; background-size: 22px; }
  .card > .icon-dot + h3 { margin: 0; }
  .card:has(> .icon-dot + h3) > :not(.icon-dot):not(h3) { grid-column: 1 / -1; justify-self: start; }
  .card:has(> .icon-dot + h3) > p:first-of-type { margin-top: 12px; }
}
