/* Šablona „ordinace“: teplá, světlá, s hlavní fotkou. Barvy a písma podle návrhu. */
@font-face { font-family: Fraunces; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/fraunces-300.woff2) format("woff2"); }
@font-face { font-family: Fraunces; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/fraunces-400.woff2) format("woff2"); }
@font-face { font-family: Fraunces; font-weight: 300; font-style: italic; font-display: swap; src: url(../fonts/fraunces-300-italic.woff2) format("woff2"); }
@font-face { font-family: Fraunces; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/fraunces-400-italic.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/inter-600.woff2) format("woff2"); }

:root {
    --accent: #e27f2d;            /* přepisuje se z nastavení */
    --hero-bg: #e1e2dd;
    --ink: #2b2523;
    --ink-soft: #4d4643;
    --muted: #7a726e;
    --bg: #faf7f4;
    --wash: #f1e7e1;
    --card: #fdfbf9;
    --line: #ece3dd;
    --dark: #3c322e;
    --radius: 22px;
    --serif: Fraunces, "Iowan Old Style", Georgia, serif;
    --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gutter: clamp(1.25rem, 5vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

/* ---------- hlavička */
.site-header { position: relative; z-index: 20; background: var(--hero-bg); }
body:not(.is-home) .site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; margin-right: auto; }
.brand__logo { height: 3rem; width: auto; }
.brand__name { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; letter-spacing: -.01em; white-space: nowrap; }
.brand__accent { color: var(--accent); }
.nav__list { display: flex; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-block; padding: .4rem 0; font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; }
.nav__link:hover, .nav__link.is-current { border-bottom-color: var(--accent); }
.nav__link.is-current { font-weight: 600; }
.nav__sub-toggle { display: none; }
.has-sub > .nav__sub { display: none; position: absolute; top: 100%; left: -1rem; min-width: 14rem; list-style: none; margin: 0; padding: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(43,37,35,.1); }
.has-sub:hover > .nav__sub, .has-sub.is-open > .nav__sub, .has-sub:focus-within > .nav__sub { display: block; }
.nav__sublink { display: block; padding: .5rem .75rem; text-decoration: none; font-size: .9rem; border-radius: 8px; }
.nav__sublink:hover { background: var(--wash); }
.langs { display: flex; gap: .6rem; list-style: none; margin: 0; padding: 0; font-size: .75rem; font-weight: 500; letter-spacing: .08em; }
.langs a { text-decoration: none; color: var(--muted); }
.langs a.is-current { color: var(--ink); border-bottom: 2px solid var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 62rem) {
    .site-header__inner { min-height: 4.25rem; }
    .nav-toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; background: none; border: 1px solid rgba(43,37,35,.25); border-radius: 50%; cursor: pointer; }
    .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.1rem; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
    .nav-toggle__bars { position: relative; }
    .nav-toggle__bars::before { position: absolute; top: -6px; }
    .nav-toggle__bars::after { position: absolute; top: 6px; }
    .nav-open .nav-toggle__bars { background: transparent; }
    .nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
    .nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem; box-shadow: 0 18px 30px rgba(43,37,35,.08); }
    .nav-open .nav { display: block; }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__link { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
    .nav__link.is-current { border-bottom-color: var(--accent); }
    .has-sub > .nav__sub { position: static; display: block; box-shadow: none; border: 0; background: none; padding: 0 0 0 1rem; }
    .langs { margin-left: auto; margin-right: .25rem; }
    .brand { margin-right: 0; }
    .brand__logo { height: 2.5rem; }
    .brand__name { font-size: 1.15rem; white-space: normal; }
}

/* ---------- tlačítka, drobné prvky */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.35rem; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font: 500 .8125rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: filter .15s, background .15s; }
.btn:hover { filter: brightness(.94); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(43,37,35,.3); }
.btn--ghost:hover { background: rgba(43,37,35,.06); filter: none; }
.eyebrow, .label { margin: 0 0 1.1rem; font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.label { font-family: var(--serif); font-size: .72rem; margin-bottom: .9rem; }
.muted { color: var(--muted); }

/* ---------- hero */
.hero { background: var(--hero-bg); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: end; gap: 1rem; min-height: 28rem; }
.hero__text { align-self: center; padding: 2.5rem 0 3rem; max-width: 30rem; }
.hero__title { font-size: clamp(2.5rem, 5.2vw, 3.75rem); }
.hero__title em { display: block; font-style: italic; color: var(--accent); }
.hero__lead { margin: 1.4rem 0 1.8rem; color: var(--ink-soft); font-size: .9375rem; max-width: 26rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.hero__photo { align-self: end; justify-self: end; width: 100%; }
.hero__photo img { width: 100%; max-height: 32rem; object-fit: contain; object-position: right bottom; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
.hero:not(:has(.hero__photo)) .hero__grid { grid-template-columns: 1fr; min-height: 0; }
@media (max-width: 52rem) {
    .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
    .hero__text { padding: 2rem 0 1rem; }
    .hero__photo img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%); mask-image: linear-gradient(180deg, transparent 0, #000 18%); max-height: 24rem; margin-left: auto; }
}

/* ---------- sekce */
.block { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.block--wash { background: var(--wash); }
.block--tight { padding-block: clamp(2rem, 5vw, 3.25rem); }
.block + .block:not(.block--wash):not(.block--tight) { padding-top: clamp(3rem, 6vw, 4.5rem); }
.block__head { margin-bottom: 2.25rem; max-width: 34rem; }
.block__head h2, .news__intro h2, .about__text h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.block__head p { margin: 1.25rem 0 0; color: var(--ink-soft); font-size: .9375rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.card__title { font-size: 1.45rem; font-weight: 400; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

/* aktuality */
.news { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.news__intro p { margin: 1.5rem 0 0; color: var(--ink-soft); font-size: .9375rem; max-width: 22rem; }
.news__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card--news { padding: 1.5rem 1.6rem; font-size: .875rem; line-height: 1.7; }
.card--news h3 { font: 600 .875rem/1.4 var(--sans); letter-spacing: 0; margin-bottom: .35rem; }
.card--news .card__body > :first-child { margin-top: 0; }
.card--news .card__body > :last-child { margin-bottom: 0; }
@media (max-width: 62rem) { .news { grid-template-columns: 1fr; } .news__list { grid-template-columns: 1fr; } }

/* služby */
.rows { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.rows li { padding: .6rem .25rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.card:hover > .rows li { border-top-color: var(--line); }

/* o ordinaci */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__text .prose { margin-top: 1.75rem; }
.about__side { padding-top: 5.5rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0 0 2rem 1.5rem; }
.stats dt { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; color: var(--accent); }
.stats dd { margin: .5rem 0 0; font-size: .75rem; color: var(--muted); max-width: 11rem; }
.card--highlight { background: #fff; padding: 1.75rem 1.9rem; }
.card--highlight .card__title { color: var(--accent); font-size: 1.6rem; }
.card--highlight p { margin: .9rem 0 0; font-size: .8125rem; color: var(--ink-soft); }
@media (max-width: 62rem) { .about { grid-template-columns: 1fr; } .about__side { padding-top: 0; } .stats { margin-left: 0; } }

/* text z editoru */
.prose { overflow-wrap: break-word; font-size: .875rem; line-height: 1.75; color: var(--ink-soft); max-width: 40rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: .2em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li::marker { color: var(--accent); }
.prose img { border-radius: 14px; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; }
.prose th, .prose td { text-align: left; padding: .55rem .8rem; border: 1px solid var(--line); vertical-align: top; }
.prose iframe, .prose video { max-width: 100%; }
.page-head + .prose, .page-head ~ .prose { font-size: 1rem; }

/* ordinační hodiny */
.card--hours { padding: 1.6rem 1.7rem 1.75rem; }
.card__time { font: 300 1.5rem/1.25 var(--serif); margin: 0 0 1rem; }
.card__line { margin: 0 0 .15rem; font-size: .75rem; line-height: 1.7; color: var(--ink-soft); }

/* pojišťovny */
.insurers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1rem; }
.card--insurer { padding: 1.1rem 1.2rem 1.3rem; }
.insurer__code { font: 300 1.5rem/1 var(--serif); color: var(--accent); margin: 0 0 .7rem; }
.insurer__name { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--ink-soft); }

/* fotky */
.photos__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.photos__grid a { display: block; border-radius: 18px; overflow: hidden; background: var(--wash); }
.photos__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.photos__grid a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .photos__grid a:hover img { transform: none; } }

/* ---------- podstránky */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-head { margin-bottom: 2rem; max-width: 40rem; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head__crumb { margin: 0 0 .75rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.page-head__crumb a { color: var(--accent); text-decoration: none; }
.page-head__date { display: block; margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
.page-head__lead { margin-top: 1rem; color: var(--ink-soft); }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; max-width: 46rem; }
.post-row { display: grid; grid-template-columns: 8rem 1fr; gap: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.post-row--thumb { grid-template-columns: 11rem 1fr; }
.post-row__thumb img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-row__date { font-size: .8125rem; color: var(--muted); }
.post-row__date--inline { display: block; margin-bottom: .3rem; }
.post-row h2 { font-size: 1.35rem; font-weight: 400; margin-bottom: .4rem; }
.post-row h2 a { text-decoration: none; }
.post-row h2 a:hover { color: var(--accent); }
.post-row p { margin: 0; font-size: .875rem; color: var(--ink-soft); }
.pager { display: flex; justify-content: space-between; margin-top: 2rem; max-width: 46rem; font-size: .875rem; }
.pager a { color: var(--accent); }
.back { margin-top: 2.5rem; font-size: .875rem; }
.back a { color: var(--accent); }
@media (max-width: 40rem) { .post-row, .post-row--thumb { grid-template-columns: 1fr; gap: .5rem; } }

/* ---------- formulář */
.contact-section { background: var(--dark); color: #f4ece6; border-radius: 40px 40px 0 0; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.contact-section__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-section__grid--single { grid-template-columns: 1fr; max-width: 34rem; }
.contact-section h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); color: #fff; max-width: 6.5em; }
.contact-section__info p { margin: 1.5rem 0 0; font-size: .875rem; color: #d9ccc4; max-width: 22rem; }
.contact { margin: 1.75rem 0 0; font-size: .8125rem; }
.contact div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; padding: .35rem 0; }
.contact dt { color: #a99d96; }
.contact dd { margin: 0; color: #f4ece6; }
.contact a { text-decoration-color: var(--accent); text-underline-offset: .2em; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form__row { margin-bottom: 1rem; }
.form label { display: block; font-size: .6875rem; color: #b9aca4; margin-bottom: .35rem; }
.form input, .form textarea { width: 100%; padding: .8rem 1rem; background: #4d4643; border: 1px solid #6a605b; border-radius: 12px; color: #fff; font: 400 .9375rem/1.4 var(--sans); }
.form textarea { resize: vertical; min-height: 7.5rem; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .875rem; }
.form__status.is-ok { background: rgba(120, 190, 130, .18); color: #cdeed2; }
.form__status.is-error { background: rgba(226, 100, 80, .2); color: #ffd7cf; }
.form__note { margin: 1rem 0 0; font-size: .75rem; color: #a99d96; }
.form .btn { margin-top: .25rem; padding: .85rem 1.8rem; }
@media (max-width: 52rem) { .contact-section__grid { grid-template-columns: 1fr; } .contact-section { border-radius: 28px 28px 0 0; } }
@media (max-width: 32rem) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- patička */
.site-footer { background: var(--dark); color: #a99d96; font-size: .75rem; padding: 1.5rem 0 2rem; border-top: 1px solid #54494a; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__copy { margin: 0; }

/* ---------- lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(30, 24, 22, .94); }
.lb.is-open { display: flex; }
.lb__img { max-width: 94vw; max-height: 84vh; border-radius: 10px; }
.lb__close { position: absolute; top: .75rem; right: 1rem; background: none; border: 0; color: #fff; font-size: 2.25rem; line-height: 1; cursor: pointer; padding: .25rem .6rem; }
.lb__bar { position: absolute; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 1.25rem; color: #fff; font-size: .875rem; }
.lb__bar button { background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 1.75rem; line-height: 1; width: 2.75rem; height: 2.75rem; border-radius: 50%; cursor: pointer; }
.lb__bar button:hover { background: rgba(255,255,255,.22); }
