/* Living Invites – web, varianta D: stejný jazyk jako pozvánky (slonovina, pudr, Great Vibes, ornamenty, pečeť) */
@font-face { font-family: 'EB Garamond'; src: url('../fonts/EBGaramond.ttf') format('truetype'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Great Vibes'; src: url('../fonts/GreatVibes-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --ivory: #FAF6F0;
  --paper: #FDFAF6;
  --blush: #F4E6DE;
  --ink: #4A3F33;
  --soft: #7E6F5D;
  --rose: #C4917A;
  --rose-deep: #9C6650;
  --gold: #B8955A;
  --line: rgba(184, 149, 90, .38);
  --serif: 'EB Garamond', Georgia, serif;
  --script: 'Great Vibes', cursive;
  --gutter: 20px;
  --max: 1280px;
  --r: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 50px -28px rgba(120, 78, 58, .38), 0 8px 16px -10px rgba(120, 78, 58, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.nw { white-space: nowrap; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; }
.caps { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.orn { width: 120px; height: 11px; overflow: visible; }
.orn path { fill: none; stroke: var(--gold); stroke-width: 1; }
.orn .dia { fill: none; }
.orn circle { fill: var(--gold); opacity: .7; }

/* tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px; border-radius: 999px; font: 500 18px/1 var(--serif); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s, background .3s, color .3s; }
.btn:active { transform: scale(.97); }
.btn--solid { color: #fff; background: linear-gradient(180deg, #B07860, var(--rose-deep)); box-shadow: 0 14px 26px -14px rgba(156, 102, 80, .9), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(156, 102, 80, 1), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn--line { color: var(--ink); border-color: rgba(74, 63, 51, .4); background: transparent; }
.btn--line:hover { background: rgba(196, 145, 122, .14); border-color: var(--rose-deep); }
.link { text-decoration: underline; text-decoration-color: rgba(156, 102, 80, .5); text-underline-offset: 6px; }

/* ---------- navigace ---------- */
.nav { position: fixed; z-index: 50; inset: 0 0 auto; height: 64px; transition: background .4s, backdrop-filter .4s, box-shadow .4s; }
.nav.is-solid { background: rgba(250, 246, 240, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav .short { display: inline; } .nav .long { display: none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.nav__links { display: none; gap: 36px; font-size: 18px; }
.nav__links a { text-decoration: none; color: var(--soft); transition: color .25s; }
.nav__links a:hover { color: var(--rose-deep); }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(250, 246, 240, .9) 0%, rgba(250, 246, 240, .62) 55%, rgba(250, 246, 240, .94) 100%); }
.hero__text { padding: 112px var(--gutter) 8px; }
.hero h1 { text-wrap: balance; font-size: clamp(60px, 17vw, 84px); line-height: .98; color: var(--ink); max-width: 7.5em; margin-top: 18px; }
.hero__sub { margin-top: 20px; max-width: 24em; font-size: 21px; color: var(--soft); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.hero__phone { position: relative; z-index: 4; display: grid; place-items: center; padding: 34px 0 70px; }

/* telefon (světlý titan) */
.phone { --pw: 256px; position: relative; width: var(--pw); }
.phone__body { position: relative; padding: calc(var(--pw) * .03); border-radius: calc(var(--pw) * .15); background: linear-gradient(150deg, #f3e9dc, #bfae98 48%, #e6d9c7); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 0 0 1px rgba(110, 85, 60, .28), 0 50px 80px -30px rgba(110, 66, 46, .55), 0 18px 34px -18px rgba(110, 66, 46, .4); }
.phone__screen { --s: 1; position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: calc(var(--pw) * .12); background: #e9ddd2; isolation: isolate; box-shadow: 0 0 0 calc(var(--pw) * .008) #17120f; }
.phone__screen iframe { position: absolute; left: 0; top: 0; width: 390px; height: 844px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; background: #e9ddd2; }
.phone__island { position: absolute; z-index: 3; top: calc(var(--pw) * .052); left: 50%; width: 27%; height: calc(var(--pw) * .058); transform: translateX(-50%); border-radius: 999px; background: #0c0a09; pointer-events: none; }

/* okvětní lístky */
.petals { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.petal { position: absolute; z-index: 1; width: var(--w, 28px); top: -8%; left: var(--x, 50%); opacity: 0; pointer-events: none; animation: fall var(--t, 16s) linear var(--d, 0s) infinite; }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: .85; }
  50% { transform: translate3d(calc(var(--sw, 40px) * -1), 55vh, 0) rotate(160deg); }
  92% { opacity: .75; }
  100% { transform: translate3d(var(--sw, 40px), 112vh, 0) rotate(330deg); opacity: 0; }
}

/* ---------- sekce ---------- */
section { position: relative; }
.sec { padding: 92px 0 0; }
.head { text-align: center; }
.head .orn { margin: 0 auto 14px; display: block; }
.h2 { font-size: clamp(48px, 13vw, 92px); line-height: 1; color: var(--ink); }
.lede { margin: 18px auto 0; max-width: 31em; color: var(--soft); }

/* témata */
.rail-bar { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(74, 63, 51, .35); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .3s, border-color .3s, opacity .3s; }
.arrow:hover { background: rgba(196, 145, 122, .16); border-color: var(--rose-deep); }
.arrow[disabled] { opacity: .3; pointer-events: none; }
.arrow i { width: 11px; height: 11px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 4px; }
.arrow--prev i { transform: rotate(-135deg); margin: 0 0 0 4px; }
.rail { display: flex; gap: 18px; margin-top: 34px; padding: 6px var(--gutter) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.tile { flex: 0 0 auto; width: 62vw; max-width: 270px; scroll-snap-align: start; text-decoration: none; user-select: none; -webkit-user-drag: none; text-align: center; }
.tile__img { padding: 8px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.tile__img > div { aspect-ratio: 3 / 4.5; overflow: hidden; border-radius: calc(var(--r) - 8px); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); pointer-events: none; }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile span { display: block; margin-top: 14px; font-size: 20px; }

/* průchod pozvánkou: stránka řídí rolování v telefonu */
.walk { margin-top: 110px; height: 640vh; background: linear-gradient(180deg, var(--ivory) 0%, var(--blush) 14%, var(--blush) 86%, var(--ivory) 100%); }
.walk__stick { position: sticky; top: 0; height: 100dvh; display: grid; grid-template-rows: auto 1fr; align-items: center; padding-top: 64px; }
.walk__phone { display: grid; place-items: center; align-self: center; }
.walk__phone .phone { --pw: min(66vw, calc((100dvh - 330px) / 2.25)); }
.walk__text { text-align: center; padding: 0 var(--gutter) 22px; min-height: 176px; position: relative; }
.cap { position: absolute; inset: 0 var(--gutter); opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; }
.cap.is-on { opacity: 1; transform: none; }
.cap h3 { font: 400 clamp(44px, 12vw, 60px)/1 var(--script); color: var(--ink); }
.cap p { margin-top: 8px; color: var(--soft); font-size: 19px; line-height: 1.4; }
.steps { display: none; }
.walk__label { position: absolute; top: 76px; left: 0; right: 0; text-align: center; }

/* způsoby otevření */
.wall { display: flex; gap: 16px; margin-top: 44px; padding: 6px var(--gutter) 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; }
.wall::-webkit-scrollbar { display: none; }
.open { flex: 0 0 auto; width: 46vw; max-width: 220px; scroll-snap-align: start; text-align: center; }
.open__img { aspect-ratio: 390 / 844; border-radius: 16px; overflow: hidden; background: var(--blush); box-shadow: var(--shadow), 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .6s; }
.open__img img { width: 100%; height: 100%; object-fit: cover; }
.open:hover .open__img { transform: translateY(-8px) rotate(-.8deg); }
.open span { display: block; margin-top: 12px; font-size: 18px; color: var(--soft); }

/* jak to funguje */
.how { display: grid; gap: 34px; margin-top: 0; }
.how__photo { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.how__photo img { width: 100%; height: 100%; object-fit: cover; }
.how__list { display: grid; gap: 30px; align-content: center; }
.how__row { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; }
.how__num { font: 400 62px/.8 var(--script); color: var(--rose); padding-top: 8px; }
.how__row h3 { font-weight: 500; font-size: 28px; line-height: 1.15; }
.how__row p { margin-top: 6px; color: var(--soft); }

/* ceník */
.price-wrap { background: linear-gradient(180deg, var(--ivory), var(--blush) 30%, var(--blush) 100%); padding-bottom: 96px; margin-top: 96px; }
.price-wrap .sec { padding-top: 96px; }
.price { display: grid; gap: 16px; margin-top: 48px; }
.plan { position: relative; padding: 34px 28px 30px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow), 0 0 0 1px var(--line); display: flex; flex-direction: column; text-align: center; }
.plan h3 { font: 400 46px/1 var(--script); color: var(--ink); }
.plan__price { margin-top: 12px; font-size: 54px; line-height: 1; letter-spacing: -.01em; }
.plan__price small { font-size: 22px; letter-spacing: 0; color: var(--soft); margin-left: 6px; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; font-size: 18px; color: var(--soft); text-align: left; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
.plan .btn { margin-top: 28px; }
.plan--main { padding-top: 62px; box-shadow: var(--shadow), 0 0 0 1.5px var(--rose); }
.plan__seal { position: absolute; top: -34px; left: 50%; width: 76px; transform: translateX(-50%); filter: drop-shadow(0 10px 12px rgba(120, 60, 44, .35)); }
.extras { margin-top: 56px; display: grid; gap: 14px; text-align: center; }
.extras h3 { font: 400 46px/1 var(--script); }
.extras dl { margin: 12px auto 0; display: grid; gap: 4px; width: 100%; max-width: 560px; }
.extras .row { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; }
.extras dt { flex: 0 1 auto; }
.extras .row::after { content: ''; order: 1; flex: 1 1 20px; border-bottom: 1px dotted rgba(74, 63, 51, .4); transform: translateY(-4px); }
.extras dd { margin: 0; order: 2; color: var(--rose-deep); white-space: nowrap; }

/* dotazy */
.faq { margin: 44px auto 0; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: clamp(22px, 5.6vw, 28px); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: 0 0 auto; width: 11px; height: 11px; border-right: 1.5px solid var(--rose-deep); border-bottom: 1.5px solid var(--rose-deep); transform: rotate(45deg) translateY(-3px); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 36px 26px 0; max-width: 34em; color: var(--soft); }

/* závěr */
.finish { position: relative; margin-top: 110px; min-height: 76dvh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
.finish__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.finish::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 50%, rgba(250, 246, 240, .95), rgba(250, 246, 240, .78) 70%, rgba(250, 246, 240, .5)); }
.finish .wrap { padding-top: 96px; padding-bottom: 96px; }
.finish .h2 { max-width: 8em; margin: 0 auto; }
.finish .btn { margin-top: 30px; }
.finish .orn { margin: 0 auto 14px; display: block; }

.foot { padding: 54px 0 44px; background: var(--ivory); border-top: 1px solid var(--line); }
.foot__in { display: grid; gap: 30px; }
.foot nav, .foot .legal { display: grid; gap: 10px; color: var(--soft); font-size: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--rose-deep); }
.foot small { display: block; margin-top: 38px; color: var(--soft); opacity: .8; font-size: 15px; }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- počítač ---------- */
@media (min-width: 900px) {
  :root { --gutter: 48px; --r: 22px; }
  html { scroll-padding-top: 90px; }
  body { font-size: 21px; }
  .nav { height: 76px; }
  .nav__links { display: flex; }
  .nav .btn { min-height: 46px; padding: 0 26px; }
  .nav .short { display: none; } .nav .long { display: inline; }
  .brand { font-size: 14px; letter-spacing: .3em; }

  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; }
  .hero::before { background: linear-gradient(90deg, rgba(250, 246, 240, .95) 0%, rgba(250, 246, 240, .74) 40%, rgba(250, 246, 240, .06) 100%); }
  .hero__text { padding: 90px 24px 40px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .hero h1 { font-size: clamp(84px, 8.4vw, 132px); }
  .hero__sub { font-size: 23px; }
  .hero__phone { padding: 76px 0 40px; }
  .hero .phone { --pw: min(336px, calc((100dvh - 150px) / 2.25)); }

  .sec { padding-top: 140px; }
  .rail { gap: 24px; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: var(--gutter); }
  .tile { width: 290px; max-width: none; }

  .walk__stick { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; padding-top: 76px; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); gap: 40px; }
  .walk__label { display: none; }
  .walk__phone { grid-column: 2; grid-row: 1; }
  .walk__phone .phone { --pw: min(340px, calc((100dvh - 150px) / 2.25)); }
  .walk__text { grid-column: 1; grid-row: 1; text-align: left; padding: 0; min-height: 0; align-self: center; height: 380px; }
  .cap { inset: 0 0 auto 0; }
  .cap h3 { font-size: clamp(64px, 6vw, 88px); }
  .cap p { font-size: 23px; max-width: 20em; margin-top: 14px; }
  .steps { display: flex; flex-wrap: wrap; gap: 8px 18px; position: absolute; left: 0; right: 0; bottom: 0; font-size: 16px; color: var(--soft); }
  .steps span { transition: color .4s; }
  .steps span.is-on { color: var(--rose-deep); }
  .steps span + span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 18px 3px 0; border: 1px solid var(--gold); transform: rotate(45deg); }

  .wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; max-width: var(--max); margin: 56px auto 0; padding: 0 var(--gutter) 30px; overflow: visible; }
  .open { width: auto; max-width: none; }
  .open:nth-child(even) { transform: translateY(46px); }
  .open:nth-child(n+7) { margin-top: 56px; }

  .how { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
  .how__photo { aspect-ratio: 4 / 5; max-height: 640px; }
  .how__list { gap: 44px; }
  .how__row { grid-template-columns: 84px 1fr; }
  .how__num { font-size: 84px; }
  .how__row h3 { font-size: 34px; }

  .price-wrap { padding-bottom: 130px; margin-top: 130px; }
  .price { grid-template-columns: 1fr 1.14fr 1fr; align-items: stretch; gap: 22px; margin-top: 70px; }
  .plan { padding: 42px 34px 36px; }
  .plan--main { margin-top: -28px; margin-bottom: -28px; padding-top: 70px; }
  .extras { margin-top: 110px; }

  .finish .wrap { padding-top: 140px; padding-bottom: 140px; }
  .foot__in { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .petal { display: none; }
  .tile__img img, .btn, .open__img { transition: none; }
}


/* obrazovka telefonu: pevný ořez zaoblenými rohy i pro škálovaný iframe */
.phone__screen { clip-path: inset(0 round calc(var(--pw) * .12)); -webkit-clip-path: inset(0 round calc(var(--pw) * .12)); transform: translateZ(0); }
.phone__screen iframe { border-radius: calc(var(--pw) * .12); overflow: hidden; }
