:root {
  --bg: #faf7f2;
  --bg-alt: #f2ece3;
  --paper: #ffffff;
  --ink: #2e2824;
  --ink-soft: #6b6058;
  --accent: #a67c52;
  --accent-dark: #8a6440;
  --line: #e4dbcf;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 600; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #d9cfc4; font-size: 13px; letter-spacing: .04em; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { text-decoration: none; transition: color .2s; }
.topbar a:hover { color: #fff; }
.socials { display: flex; gap: 14px; align-items: center; }
.contacts { display: flex; gap: 22px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 24px rgba(46, 40, 36, .05); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand-text { font-family: var(--serif); font-style: italic; font-size: 26px; font-weight: 500; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; align-items: center; }
.menu a {
  text-decoration: none; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 400; position: relative; padding: 4px 0;
}
.menu a:not(.menu-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transition: transform .3s;
}
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }
.menu-cta { border: 1px solid var(--ink); padding: 9px 18px 7px !important; transition: background .2s, color .2s; }
.menu-cta:hover { background: var(--ink); color: var(--bg); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: clamp(420px, 62vh, 600px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 30% 20%, #c9a988 0%, #8a6a52 45%, #3d302a 100%);
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(30,24,20,.55) 0%, rgba(30,24,20,.35) 70%), linear-gradient(180deg, rgba(30,24,20,.15), rgba(30,24,20,.35)); }
.hero-c { text-shadow: 0 2px 18px rgba(20,15,12,.45); }
.hero-c { position: relative; padding: 80px 24px; animation: fadeUp 1.2s ease both; }
.hero-title {
  font-family: var(--sans); font-weight: 300; text-transform: uppercase;
  font-size: clamp(34px, 6.5vw, 76px); letter-spacing: .14em; line-height: 1.15; margin: 0;
}
.hero-name {
  font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 34px);
  margin: 10px 0 36px; letter-spacing: .02em;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  padding: 15px 34px 13px; border: 1px solid; cursor: pointer; background: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-light { color: #fff; border-color: rgba(255,255,255,.8); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { color: var(--ink); border-color: var(--ink); margin-top: auto; align-self: flex-start; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- headings ---------- */
.h-section {
  font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.15; text-align: center; margin: 0;
}
.h-second { margin-top: 110px; }
.ornament { width: 60px; height: 1px; background: var(--accent); margin: 22px auto 40px; position: relative; }
.ornament::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  border: 1px solid var(--accent); background: var(--bg); transform: translate(-50%, -50%) rotate(45deg);
}
.ornament-left { margin-left: 0; }

section { padding: 110px 0; }

/* ---------- intro ---------- */
.intro { text-align: center; }
.intro .lead { font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.45; margin: 0 0 20px; }
.intro .lead strong { font-weight: 500; }
.intro p { margin: 0; color: var(--ink-soft); }

/* ---------- gallery ---------- */
.gallery { padding-top: 0; }
.grid-gallery { columns: 3 280px; column-gap: 14px; }
.grid-gallery a { display: block; margin-bottom: 14px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.grid-gallery img { width: 100%; transition: transform .8s ease, opacity .5s; }
.grid-gallery a:hover img { transform: scale(1.04); }

/* ---------- pricing ---------- */
.pricing { background: var(--bg-alt); }
.pricing .ornament::after { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--paper); padding: 36px 28px; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(46,40,36,.08); }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0 0 12px; }
.card-desc { margin: 0 0 24px; color: var(--ink-soft); font-size: 15px; }
.price {
  margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--accent-dark);
}
.card-feature { background: var(--ink); color: #f3ece4; border-color: var(--ink); }
.card-feature .card-desc { color: #c9bcaf; }
.card-feature .price { color: #e2c29f; border-color: rgba(255,255,255,.15); }
.card-soft { background: transparent; border-style: dashed; border-color: #cdbfae; }
.card-soft:hover { box-shadow: none; }

.notes { margin-top: 36px; text-align: center; font-style: italic; letter-spacing: .08em; font-size: 14px; color: var(--ink-soft); }
.notes p { margin: 4px 0; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.pricelist { list-style: none; margin: 0 0 30px; padding: 0; }
.pricelist li { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pl-name { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.pl-dots { flex: 1; border-bottom: 1px dotted #c3b5a5; transform: translateY(-6px); min-width: 20px; }
.pl-price { font-family: var(--serif); font-size: 23px; color: var(--accent-dark); white-space: nowrap; }
.quote {
  margin: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.55; color: var(--ink-soft);
}

/* ---------- about ---------- */
.about-in { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
.about-img { margin: 0; position: relative; }
.about-img::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--accent); z-index: -1;
}
.about-img img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.about-img.no-img { aspect-ratio: 2 / 3; background: linear-gradient(160deg, #d9c6b1, #a88a70); }
.about-text .h-section { text-align: left; }
.about-q { font-family: var(--serif); font-size: 22px; line-height: 1.55; margin: 0 0 22px; }
.about-q strong { font-weight: 600; }
.about-p { color: var(--ink-soft); margin: 0; }
.about-p strong { color: var(--ink); }
.signature { font-family: var(--serif); font-style: italic; font-size: 32px; color: var(--accent-dark); margin: 30px 0 0; }

/* ---------- contact ---------- */
.contact { background: var(--bg-alt); }
.contact .ornament::after { background: var(--bg-alt); }
.form { display: grid; gap: 26px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid #bfb2a3; padding: 22px 0 8px; outline: none; border-radius: 0;
  resize: vertical; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field label {
  position: absolute; left: 0; top: 22px; color: var(--ink-soft); pointer-events: none;
  transition: top .2s, font-size .2s, color .2s, letter-spacing .2s;
}
.field input:required + label::after { content: " *"; color: var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark);
}
.field.invalid input { border-color: #b4543a; }
.form-err { color: #b4543a; margin: -8px 0 0; min-height: 1em; font-size: 15px; }
.form .btn { justify-self: center; }
.contact-alt { margin-top: 40px; text-align: center; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; color: var(--ink-soft); }
.contact-alt a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-alt a:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #b9ada1; font-size: 13px; letter-spacing: .04em; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- lightbox (bez transform na body – rozbíjí position:fixed) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 16, 13, .94);
  display: flex; align-items: center; justify-content: center; padding: 40px 70px;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .75; font-family: var(--serif); }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 12px; right: 20px; font-size: 44px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 60px; padding: 10px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-io .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .about-in { gap: 50px; }
}
@media (max-width: 800px) {
  .hero-bg img { object-position: 82% center; }
  section { padding: 80px 0; }
  .h-second { margin-top: 80px; }
  .burger { display: block; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .menu.open { max-height: 400px; }
  .menu li { width: 100%; text-align: center; }
  .menu a { display: block; padding: 16px 0; }
  .menu a::after { display: none; }
  .menu-cta { border: 0; padding: 16px 0 !important; }
  .cols { grid-template-columns: 1fr; gap: 50px; }
  .about-in { grid-template-columns: 1fr; }
  .about-img { max-width: 420px; margin: 0 auto; width: calc(100% - 22px); }
  .about-text .h-section { text-align: center; }
  .ornament-left { margin-left: auto; }
  .about-text { text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .contacts a[href^="mailto"] { display: none; }
  .brand-text { font-size: 22px; }
  .cards { grid-template-columns: 1fr; }
  .pl-name { font-size: 21px; }
  .pl-price { font-size: 20px; }
  .lightbox { padding: 20px; }
  .lb-nav { font-size: 44px; }
  .footer-in { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-c { opacity: 1; transform: none; transition: none; animation: none; }
}
