/* ---------- Fonty (self-hosted) ---------- */
@font-face { font-family: "Jost"; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/jost-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/jost-latin-wght-normal.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: "Mea Culpa"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/mea-culpa-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mea Culpa"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/mea-culpa-latin-400-normal.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; }

/* ---------- Tokeny ---------- */
:root {
  --bg: #fef9f6;
  --bg-alt: #f8f2eb;
  --white: #fff;
  --ink: #4d1e15;
  --ink-soft: #6e5249;
  --accent: #a14f33;
  --accent-hover: #874026;
  --line: #e9ddd3;

  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Mea Culpa", "Brush Script MT", cursive;

  --container: 75rem;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 5.25rem;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); font-size: clamp(16px, 11.1px + .34vw, 24px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; font-weight: 300; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

.script-title { font-family: var(--font-script); font-weight: 400; font-size: clamp(3.4rem, 7vw, 5.4rem); line-height: 1.05; letter-spacing: 0; }

/* ---------- Tlačítka a odkazy ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1em 2.2em; border: 0; border-radius: 999px;
  font: 500 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--white); cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6em; color: var(--accent);
  font-size: .85rem; font-weight: 500; letter-spacing: .04em; padding-bottom: 3px; border-bottom: 1px solid currentColor;
}
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; }
.brand img { width: 3.25rem; height: 3.25rem; }
.brand-text { font-size: 1.1rem; font-weight: 400; line-height: 1.1; letter-spacing: .02em; }
.brand-text small { display: block; font-family: var(--font-script); font-size: 1.6rem; line-height: .9; color: var(--accent); margin-bottom: .1rem; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.8vw, 2.6rem); font-size: .85rem; font-weight: 400; letter-spacing: .03em; }
.nav a:not(.btn) { position: relative; padding: .4rem 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--accent); }
.nav-cta { padding: .95em 1.8em; }
.nav-toggle { display: none; }

/* ---------- Boční index ---------- */
.side-index {
  position: fixed; left: clamp(14px, 2vw, 32px); top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; gap: .35rem; font-size: .68rem; letter-spacing: .08em; color: var(--ink-soft);
}
.side-index a { display: flex; flex-direction: column; align-items: center; gap: .35rem; opacity: .55; transition: opacity .2s, color .2s; }
.side-index a::after { content: ""; width: 1px; height: 0; background: currentColor; transition: height .25s; }
.side-index a.is-active { opacity: 1; color: var(--accent); font-weight: 500; }
.side-index a.is-active::after { height: 26px; }
.side-index a:hover { opacity: 1; }
@media (min-width: 1280px) { .side-index { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(#e8e8e8, #f4f4f4); }
.hero-inner { position: relative; width: min(100%, 1920px); margin-inline: auto; height: clamp(520px, min(82vh, 54vw), 1040px); container-type: inline-size; display: grid; justify-items: center; align-content: start; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
@media (min-width: 1921px) { .hero-bg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); } }
.hero-copy { position: relative; text-align: center; padding: clamp(36px, 8vh, 84px) var(--gutter) 0; }
@media (max-width: 960px) { .hero-inner { height: clamp(520px, 82vh, 780px); } }
.eyebrow { font-size: .72rem; letter-spacing: .42em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .6rem; font-weight: 400; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 300; line-height: 1.05; letter-spacing: .01em; }
.script { font-family: var(--font-script); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: var(--ink-soft); margin: .6rem 0 1.4rem; }
@media (min-width: 961px) {
  .hero-inner { justify-items: stretch; }
  .hero-copy { padding: clamp(48px, 11vh, 120px) 0 0 calc((100cqw - min(100cqw - 2 * var(--gutter), var(--container))) / 2); text-align: left; }
  .hero h1 { font-size: clamp(2.6rem, 3.8cqw, 5.4rem); max-width: 11em; }
  .script { margin-bottom: 1.8rem; }
}
.hero-social { position: absolute; right: clamp(16px, 3vw, 40px); bottom: 24px; display: flex; flex-direction: column; gap: .7rem; }
.hero-social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(255 255 255 / .7); color: var(--ink); transition: background-color .2s, color .2s; }
.hero-social a:hover { background: var(--accent); color: var(--white); }
.hero-social svg { width: 16px; height: 16px; }

/* ---------- Nabídka (karusel) ---------- */
.menu { background: var(--white); padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.section-head { position: relative; text-align: center; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: .95rem; margin-top: .4rem; }
.carousel-nav { position: absolute; right: 0; bottom: 0; display: flex; gap: .5rem; }
.carousel-nav[hidden] { display: none; }
.car-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.car-btn svg { width: 16px; height: 16px; }
.car-btn:hover:not(:disabled) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.car-btn:disabled { opacity: .35; cursor: default; }

.carousel { --gap: clamp(.75rem, 1.6vw, 1.25rem); display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); scroll-snap-align: start; }
.tile a { display: block; border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.tile a > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.tile a:hover > img { transform: scale(1.04); }
.tile-label { position: relative; display: flex; align-items: center; justify-content: center; gap: .6rem; background: var(--white); padding: .95rem .5rem; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.tile-label img { width: 1.6rem; height: 1.6rem; object-fit: contain; }

.dots { display: flex; justify-content: center; gap: .55rem; margin-top: 1.6rem; }
.dots:empty { display: none; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color .2s; }
.dots span.is-on { background: var(--ink); }

/* ---------- O nás ---------- */
.about { background: var(--bg); padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.about-text { position: relative; max-width: 28rem; justify-self: end; }
.about-text .script-title { margin-bottom: 1.4rem; }
.kicker { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; }
.about-text p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.about-text .link-arrow { margin-top: .6rem; }
.deco { position: absolute; pointer-events: none; opacity: .9; }
.deco-1 { width: 54px; height: auto; top: .2rem; left: 14.5rem; transform: rotate(10deg); }
.deco-2 { width: 62px; height: auto; top: 1.6rem; left: 19.5rem; transform: rotate(-8deg); }

.collage { display: grid; grid-template: 1fr 1fr / 1fr 1.05fr; gap: 12px; aspect-ratio: 1 / 1.02; max-width: 35rem; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.c1 { grid-area: 1 / 1; }
.c2 { grid-area: 2 / 1; }
.c3 { grid-area: 1 / 2 / 3 / 3; }

/* ---------- Dort na objednávku ---------- */
.order { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--white); }
.order-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.order-photo { position: relative; max-width: 27.5rem; }
.order-photo > img:not(.order-icon) { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.order-icon { position: absolute; right: -2rem; bottom: -2rem; width: 120px; height: 120px; padding: 22px; background: var(--white); border-radius: 50%; box-shadow: 0 10px 30px -14px rgb(77 30 21 / .4); object-fit: contain; }
.order-body > p { color: var(--ink-soft); font-size: .95rem; max-width: 34rem; margin-top: 1rem; }
.order-body .script-title { font-size: clamp(3rem, 6vw, 4.6rem); }
.checks { display: grid; gap: .6rem; margin: 1.4rem 0 2rem; font-size: .9rem; color: var(--ink-soft); }
.checks li { display: flex; align-items: center; gap: .7rem; }
.checks .ico { color: var(--accent); width: 1.2rem; height: 1.2rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; max-width: 36rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.full { grid-column: 1 / -1; }
.field label { font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 0; background: var(--white);
  color: var(--ink); font: inherit; font-size: .9rem; font-weight: 300; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #a8958d; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(161 79 51 / .15); }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: .75rem; }
.form .btn { padding: 1.15em; }
.form-status { font-size: .85rem; color: var(--ink-soft); min-height: 1.2em; }
.form-status.ok { color: #2f6b3d; }

/* ---------- Patička ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.25fr 1fr .9fr; gap: 2rem; align-items: start; }
.footer-brand p { margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); }
.footer-col h4 { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-col, .footer-col a { font-size: .88rem; color: var(--ink-soft); font-style: normal; }
.footer-col a:hover { color: var(--accent); }
.footer-col address { font-style: normal; }
.footer-col .mt { margin-top: .6rem; }
.hours div { display: grid; grid-template-columns: 3.6rem auto; white-space: nowrap; }
.social { display: inline-flex; align-items: center; gap: .6rem; }
.social span { text-decoration: underline; text-underline-offset: 3px; }
.social svg { width: 22px; height: 22px; color: var(--ink); }
.credits { margin-top: 2.5rem; font-size: .72rem; color: #9b8a82; text-align: center; }
.credits a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Responzivita ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .tile { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
}

@media (max-width: 960px) {
  :root { --header-h: 4.5rem; }
  .brand img { width: 2.75rem; height: 2.75rem; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 24px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -7px; }
  .nav-toggle span::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .9rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1.2rem; }

  .tile { flex-basis: calc((100% - var(--gap)) / 2); }
  .about-grid, .order-grid { grid-template-columns: 1fr; }
  .about-text { justify-self: start; max-width: 34rem; }
  .collage { max-width: 520px; }
  .order-photo { max-width: 360px; }
  .order-icon { right: -1rem; bottom: -1.5rem; width: 100px; height: 100px; padding: 18px; }
}

@media (max-width: 560px) {
  .tile { flex-basis: 72%; }
  .carousel-nav { position: static; justify-content: center; margin-top: 1.2rem; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .deco-1 { left: auto; right: 0; top: -1rem; }
  .deco-2 { left: auto; right: 4.5rem; top: 1rem; }
  .hero-social { flex-direction: row; right: 50%; transform: translateX(50%); bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
