/* finální vrstva: mobilní hero, pruh kroků, animace metrik, o nás, konfigurátor po krocích, carousely, ceník (načítá se jako poslední) */

/* ---------- hero na mobilu: jedna obrazovka, telefon vykukuje zespodu ---------- */
@media (max-width: 899px) {
  .hero { min-height: min(100svh, 780px); grid-template-rows: auto 1fr; }
  .hero__text { padding: 84px var(--gutter) 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero h1 { font-size: clamp(44px, 12.4vw, 58px); line-height: 1; margin-top: 10px; max-width: none; text-wrap: balance; }
  .hero__sub { margin-top: 12px; font-size: 18px; max-width: 22em; }
  .hero__cta { flex-direction: column; gap: 12px; margin-top: 18px; }
  .hero__phone { align-items: start; padding: 22px 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent 98%); mask-image: linear-gradient(#000 60%, transparent 98%); }
  .hero .phone { --pw: min(60vw, 236px); }
}

/* ---------- pruh se čtyřmi kroky ---------- */
.ribbon__in { grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 14px; padding-bottom: 4px; justify-content: stretch; }
.rstep { flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 13px; letter-spacing: .01em; text-transform: none; white-space: nowrap; }
.rstep i { font-size: 22px; }
.rstep .long { display: none; }
.rstep .short { display: inline; }
@media (min-width: 700px) {
  .ribbon__in { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 14px 18px; padding-top: 18px; }
  .rstep { flex-direction: row; gap: 10px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
  .rstep i { font-size: 24px; }
  .rstep .long { display: inline; }
  .rstep .short { display: none; }
}

/* ---------- metriky: karty se rozloží, když je při rolování míjíte ---------- */
.js .fan img { opacity: 0; transition: transform .95s cubic-bezier(.2, 1.25, .35, 1), opacity .5s ease; }
.js .fan img:nth-child(1), .js .fan img:nth-child(2), .js .fan img:nth-child(3) { transform: translateX(-50%) translateY(30px) scale(.9); }
.js .metric.is-in .fan img { opacity: 1; }
.js .metric.is-in .fan img:nth-child(1) { transform: translateX(-118%) rotate(-9deg) translateY(14px); transition-delay: .05s; }
.js .metric.is-in .fan img:nth-child(2) { transform: translateX(-50%); }
.js .metric.is-in .fan img:nth-child(3) { transform: translateX(18%) rotate(9deg) translateY(14px); transition-delay: .14s; }
.metric.tap .fan img { animation: pop .7s cubic-bezier(.3, 1.5, .4, 1); }
.metric.tap .fan img:nth-child(1) { animation-delay: .06s; }
.metric.tap .fan img:nth-child(3) { animation-delay: .12s; }
@keyframes pop { 40% { scale: 1.12; } 100% { scale: 1; } }
.js .mix > * { opacity: 0; translate: 0 22px; transition: opacity .5s ease, translate .8s cubic-bezier(.2, 1.25, .35, 1); }
.js .metric.is-in .mix > * { opacity: 1; translate: 0 0; }
.js .metric.is-in .mix > :nth-child(2) { transition-delay: .1s; }
.js .metric.is-in .mix > :nth-child(3) { transition-delay: .2s; }
.js .metric.is-in .mix > :nth-child(4) { transition-delay: .3s; }
.js .metric.is-in .mix > :nth-child(5) { transition-delay: .4s; }
.metric { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ---------- o nás: barva pruhu pod herem, textura, pečeť nad textem ---------- */
.about { position: relative; margin-top: 70px; padding: 110px 0 120px; color: var(--ink); background: #F3E0D8; overflow: hidden; isolation: isolate; }
.about::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../img/vzory/krajka-zavoj.webp') center / cover; opacity: .38; mix-blend-mode: soft-light; }
.about__wave { position: absolute; left: 0; width: 100%; height: clamp(30px, 5vw, 64px); display: block; z-index: 1; }
.about__wave path { fill: var(--ivory); }
.about__wave--top { top: -1px; }
.about__wave--bottom { bottom: -1px; }
.about__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.about__seal { width: 84px; height: auto; margin-bottom: 14px; filter: drop-shadow(0 12px 14px rgba(120, 60, 44, .32)); }
.about__eyebrow { color: var(--rose-deep); }
.about .h2 { margin-top: 6px; font-size: clamp(46px, 12.5vw, 88px); max-width: 9em; color: var(--ink); }
.about__copy { margin-top: 22px; max-width: 38em; }
.about__copy p { color: var(--ink); opacity: .86; }
.about__copy p + p { margin-top: 14px; }
.bens { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 46px; width: 100%; text-align: left; }
.ben { display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: start; padding: 20px 18px; border-radius: var(--r); background: rgba(255, 252, 248, .66); box-shadow: 0 0 0 1px rgba(184, 149, 90, .35); }
.ben i { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; font-size: 26px; color: var(--rose-deep); background: rgba(196, 145, 122, .2); }
.ben h3 { font-weight: 500; font-size: 22px; line-height: 1.15; color: var(--ink); }
.ben p { margin-top: 5px; font-size: 17px; line-height: 1.45; color: var(--soft); }
@media (min-width: 700px) { .bens { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .about { margin-top: 110px; padding: 150px 0 160px; }
  .about__seal { width: 96px; margin-bottom: 18px; }
  .bens { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 66px; }
  .ben { grid-template-columns: 1fr; padding: 28px 26px; }
}

/* ---------- konfigurátor po krocích ---------- */
.studio__head .lede { display: none; }
.studio { padding-top: 20px; }
.studio__head .orn { display: none; }
.studio__head .h2 { font-size: clamp(34px, 9.5vw, 46px); line-height: 1; }
.studio__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.studio__phone { position: static; display: grid; justify-items: center; gap: 4px; }
.studio__phone .phone { --pw: clamp(112px, calc((100svh - 400px) / 2.17), 176px); }
.replay { position: absolute; right: -46px; top: 4px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(74, 63, 51, .25); background: var(--paper); color: var(--ink); font-size: 20px; cursor: pointer; box-shadow: 0 6px 14px -8px rgba(80, 50, 40, .5); }
.studio__sum h3 { font: 400 clamp(26px, 7vw, 36px)/1.05 var(--script); }

.studio__panel { min-width: 0; }
.stepper { display: flex; gap: 6px; overflow-x: auto; padding: 2px var(--gutter); margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; scroll-snap-type: x proximity; }
.stepper::-webkit-scrollbar { display: none; }
.stp { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid rgba(74, 63, 51, .25); background: transparent; font: 500 16px var(--serif); color: var(--ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s; scroll-snap-align: center; }
.stp b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(196, 145, 122, .2); font: 400 19px/1 var(--script); color: var(--rose-deep); }
.stp.is-on { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.stp.is-on b { background: rgba(255, 255, 255, .22); color: #fff; }
.stephead { margin-top: 8px; }
.stephead h3 { font-weight: 500; font-size: 19px; line-height: 1.2; }
.stephead p { margin-top: 2px; font-size: 15px; line-height: 1.35; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 15px; color: var(--soft); }
.seg[hidden] { display: none; }
.seg span { margin-right: 6px; }
.seg button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(74, 63, 51, .25); background: transparent; font: 500 16px var(--serif); color: var(--ink); cursor: pointer; }
.seg button.is-on { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.opts { display: flex; gap: 10px; overflow-x: auto; padding: 8px var(--gutter) 6px; margin: 4px calc(var(--gutter) * -1) 0; scroll-snap-type: x proximity; scrollbar-width: none; min-height: 176px; }
.opts::-webkit-scrollbar { display: none; }
.opt { flex: 0 0 auto; width: 66px; padding: 0; border: 0; background: none; font: inherit; color: var(--soft); cursor: pointer; text-align: center; scroll-snap-align: center; }
.opt__img { position: relative; display: block; aspect-ratio: 390 / 844; border-radius: 11px; overflow: hidden; background: var(--blush); box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .3s; }
.opt__img img { width: 100%; height: 100%; object-fit: cover; }
.opt__chips { display: flex; }
.opt__chips i { flex: 1; background: var(--c); }
.opt__off, .opt__ico { display: grid; place-items: center; font-size: 30px; color: var(--soft); background: var(--paper); }
.opt__ico { color: var(--rose-deep); }
.opt__ok { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--rose-deep); color: #fff; font-size: 12px; box-shadow: 0 0 0 2px var(--paper); }
.opt__n { display: -webkit-box; margin-top: 6px; font-size: 12.5px; line-height: 1.15; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opt:hover .opt__img { transform: translateY(-3px); }
.opt.is-on .opt__img { box-shadow: 0 0 0 2.5px var(--rose-deep), 0 12px 18px -10px rgba(120, 78, 58, .55); transform: translateY(-3px); }
.opt.is-on .opt__n { color: var(--ink); font-weight: 600; }
.opt.is-rec .opt__n::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 4px 2px 0; border-radius: 50%; background: var(--rose-deep); }
.stepnav { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.stepnav__n { font-size: 15px; color: var(--soft); }
.sbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(74, 63, 51, .25); background: transparent; font: 500 16px var(--serif); color: var(--ink); cursor: pointer; }
.sbtn--next { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.sbtn[disabled] { opacity: .35; pointer-events: none; }
.studio__cta { width: 100%; margin-top: 12px; }

/* šipky carouselů (jen počítač s myší) */
.hs { position: relative; }
.hs-btn { display: none; position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(253, 250, 246, .96); color: var(--ink); font-size: 20px; cursor: pointer; z-index: 3; box-shadow: 0 8px 20px -6px rgba(80, 50, 40, .4); place-items: center; transition: opacity .25s; }
.hs-btn--prev { left: -12px; }
.hs-btn--next { right: -12px; }
.hs-btn[disabled] { opacity: 0; pointer-events: none; }

/* ---------- katalog jako carousely ---------- */
.wrap--rail { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.crail { display: flex; gap: 14px; overflow-x: auto; padding: 6px var(--gutter) 14px; margin: 0 calc(var(--gutter) * -1); scroll-snap-type: x proximity; scrollbar-width: none; }
.crail::-webkit-scrollbar, .vrail::-webkit-scrollbar { display: none; }
.crail .cc { flex: 0 0 auto; width: 150px; scroll-snap-align: start; }
.crail--pal .pal { flex: 0 0 auto; width: 230px; scroll-snap-align: start; }
.crail--fun .fc { flex: 0 0 auto; width: 290px; scroll-snap-align: start; grid-template-columns: 96px 1fr; }

/* ---------- ceník jako carousel (mobil): uprostřed doporučený, po stranách kousky ---------- */
@media (max-width: 899px) {
  .price { position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 4px calc(var(--gutter) * -1) 0; padding: 48px calc((100vw - min(72vw, 310px)) / 2) 26px; }
  .price::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 min(72vw, 310px); scroll-snap-align: center; scale: calc(.92 + .08 * var(--k, 1)); opacity: calc(.72 + .28 * var(--k, 1)); }
  .plan--main { margin: 0; }
}

@media (max-width: 899px) {
  .studio__sum p, .stepnav, .stephead p { display: none; }
  .stephead { margin-top: 4px; }
  .stephead h3 { font-size: 17px; }
  .opts { min-height: 160px; }
  .studio__grid { gap: 2px; }
}
@media (min-width: 900px) {
  .studio { padding-top: 70px; }
  .studio__head .lede { display: block; }
  .studio__head .orn { display: block; }
  .studio__grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 70px; margin-top: 50px; align-items: start; }
  .studio__phone { position: sticky; top: 96px; gap: 10px; }
  .studio__phone .phone { --pw: min(310px, calc((100dvh - 250px) / 2.17)); }
  .replay { right: -52px; }
  .studio__sum h3 { font-size: 46px; }
  .studio__sum p { display: block; font-size: 17px; }
  .stepnav { display: flex; }
  .stephead p { display: -webkit-box; }
  .stepper { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: 8px; }
  .stp { min-height: 44px; font-size: 17px; padding: 0 18px 0 8px; }
  .stp b { width: 30px; height: 30px; font-size: 22px; }
  .stephead { margin-top: 26px; }
  .stephead h3 { font-size: 28px; }
  .stephead p { font-size: 18px; -webkit-line-clamp: 3; }
  .seg { margin-top: 14px; }
  .seg button { width: 40px; height: 40px; }
  .opts { margin: 14px 0 0; padding: 10px 6px 12px; gap: 14px; min-height: 250px; }
  .opt { width: 104px; }
  .opt__n { font-size: 15px; }
  .stepnav { margin-top: 18px; }
  .studio__cta { width: auto; margin-top: 24px; }
  .hs-btn { display: grid; }
  .crail { margin: 0; padding: 6px 4px 18px; gap: 20px; }
  .crail .cc { width: 220px; }
  .crail--pal .pal { width: 300px; }
  .crail--fun .fc { width: 380px; grid-template-columns: 120px 1fr; }
  .crail .cc span { display: block; }
}
@media (hover: none) { .hs-btn { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .js .fan img, .js .mix > * { transition: none; }
  .metric.tap .fan img { animation: none; }
}
.crail, .vrail, .opts, .stepper { scroll-padding-inline: var(--gutter); }
@media (min-width: 900px) { .crail, .vrail, .opts { scroll-padding-inline: 4px; } }


/* ---------- konfigurátor na mobilu: hlavička kroku s ikonami a postupem ---------- */
:root { --edge: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter))); }
.sh { margin-top: 12px; }
.sdots { position: relative; display: flex; justify-content: space-between; padding: 0 2px; }
.sdots::before, .sdots::after { content: ''; position: absolute; left: 20px; top: 50%; height: 2px; border-radius: 2px; transform: translateY(-50%); }
.sdots::before { right: 20px; background: rgba(74, 63, 51, .16); }
.sdots::after { width: calc((100% - 40px) * var(--p, 0)); background: var(--rose-deep); transition: width .5s var(--ease); }
.sd { font: inherit; position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--soft); cursor: pointer; }
.sd__c { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(74, 63, 51, .22); background: var(--ivory); font-size: 18px; transition: background .35s, color .35s, border-color .35s, scale .35s var(--ease); }
.sd__l { display: none; font-size: 15px; line-height: 1.1; }
.sd.is-done .sd__c { border-color: var(--rose-deep); color: var(--rose-deep); background: #f6e6de; }
.sd.is-on .sd__c { border-color: var(--rose-deep); background: var(--rose-deep); color: #fff; scale: 1.14; box-shadow: 0 8px 16px -8px rgba(156, 102, 80, .8); }
.sd.is-on { color: var(--ink); }
.sh__row { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; margin-top: 10px; touch-action: pan-y; }
.sh__arrow { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(74, 63, 51, .25); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; }
.sh__arrow--next { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.sh__arrow[disabled] { opacity: .3; pointer-events: none; }
.sh__mid { text-align: center; display: grid; gap: 0; }
.sh__k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); line-height: 1.2; }
.sh__t { display: block; font: 400 34px/1 var(--script); color: var(--ink); }
.opts.in-r { animation: slide-r .38s var(--ease); }
.opts.in-l { animation: slide-l .38s var(--ease); }
@keyframes slide-r { from { opacity: 0; transform: translateX(34px); } }
@keyframes slide-l { from { opacity: 0; transform: translateX(-34px); } }
.zoom { position: absolute; right: -46px; top: 50px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(74, 63, 51, .25); background: var(--paper); color: var(--ink); font-size: 19px; cursor: pointer; box-shadow: 0 6px 14px -8px rgba(80, 50, 40, .5); }
@media (max-width: 899px) {
  .stepper, .stephead, .studio__sum { display: none; }
  .studio__head { margin-bottom: 6px; }
  .studio__phone { margin-top: 10px; }
}
@media (min-width: 900px) {
  .sh { margin-top: 0; }
  .sh__row { display: none; }
  .stepper { display: none; }
  .sdots { padding: 0; }
  .sdots::before, .sdots::after { top: 25px; left: 25px; }
  .sdots::before { right: 25px; }
  .sdots::after { width: calc((100% - 50px) * var(--p, 0)); }
  .sd { gap: 10px; width: 64px; }
  .sd__c { width: 50px; height: 50px; font-size: 24px; }
  .sd__l { display: block; font-size: 16px; }
  .sd.is-on .sd__l { font-weight: 600; }
  .zoom { right: -52px; top: 58px; }
}

/* ---------- zvětšený náhled ---------- */
html.modal-open { overflow: hidden; }
.pmodal[hidden] { display: none; }
.pmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; animation: mfade .25s ease; }
@keyframes mfade { from { opacity: 0; } }
.pmodal__bg { position: absolute; inset: 0; background: rgba(38, 26, 22, .76); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pmodal__box { position: relative; display: grid; justify-items: center; gap: 10px; }
.pmodal__phone { --pw: min(90vw, calc((100dvh - 120px) / 2.17)); animation: mpop .45s var(--ease); }
@keyframes mpop { from { opacity: 0; transform: scale(.92) translateY(20px); } }
.pmodal__cap { font: 400 34px/1 var(--script); color: #F6EDE6; }
.pmodal__close { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(253, 250, 246, .96); color: var(--ink); font-size: 22px; cursor: pointer; z-index: 2; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5); }

/* ---------- carousely katalogu: na počítači přes celou šířku okna ---------- */
.panels { width: 100%; }
.panels .crail, .panels .vrail { margin: 0; padding: 8px var(--edge) 18px; scroll-padding-inline: var(--edge); }
.panels .vgroup h4, .panels .vgroup > p { padding: 0 var(--edge); }
.panels .hs-btn--prev { left: 18px; }
.panels .hs-btn--next { right: 18px; }
@media (min-width: 900px) {
  .panels .crail, .panels .vrail { padding: 10px var(--edge) 24px; gap: 22px; }
}

/* ---------- ceník: štítky pro přepínání balíčků ---------- */
.pchips { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pchips button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(74, 63, 51, .28); background: transparent; font: 500 17px var(--serif); color: var(--ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.pchips button.is-on { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
@media (min-width: 900px) { .pchips { display: none; } }
.sh__mid { gap: 3px; }
.sh__t { line-height: 1.2; }


/* ---------- PC: konfigurátor jako jeviště ---------- */
.stage__bg { display: none; }
@media (min-width: 900px) {
  .studio__grid { position: relative; isolation: isolate; overflow: hidden; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 44px; padding: 48px 48px 44px; border-radius: 36px; background: color-mix(in srgb, var(--pal, #b8955a) 10%, #f7ece5); box-shadow: 0 40px 80px -50px rgba(110, 66, 46, .45), inset 0 0 0 1px rgba(184, 149, 90, .28); transition: background .8s ease; }
  .stage__bg { display: block; position: absolute; inset: 0; z-index: -1; }
  .stage__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(34px) saturate(1.2); transform: scale(1.2); opacity: .8; transition: opacity .5s ease; }
  .stage__bg img.is-swap { opacity: 0; }
  .stage__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(250, 246, 240, .2), color-mix(in srgb, var(--pal, #b8955a) 14%, rgba(250, 246, 240, .78)) 55%); }
  .studio__phone { position: static; align-self: center; }
  .studio__phone .phone { --pw: min(310px, calc((100dvh - 250px) / 2.17)); }
  .phone__body { transition: box-shadow .4s; }
  .studio__sum h3 { font-size: 48px; }
  .studio__sum p { font-size: 18px; }
  .studio__panel { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 28px; align-content: start; }
  .studio__panel > * { grid-column: 2; }
  .studio__panel > .sh { grid-column: 1; grid-row: 1 / span 6; align-self: start; }
  .sdots { flex-direction: column; justify-content: flex-start; gap: 14px; }
  .sdots::before, .sdots::after { left: 25px; right: auto; top: 25px; width: 2px; height: auto; transform: none; }
  .sdots::before { bottom: 25px; }
  .sdots::after { height: calc((100% - 50px) * var(--p, 0)); width: 2px; transition: height .5s var(--ease); }
  .sd { grid-template-columns: 50px 1fr; justify-items: start; align-items: center; gap: 14px; width: 100%; text-align: left; }
  .sd__l { font-size: 19px; }
  .sd:hover .sd__c { border-color: var(--rose-deep); color: var(--rose-deep); }
  .stephead { margin-top: 0; }
  .stephead h3 { font: 400 52px/1.05 var(--script); color: var(--ink); }
  .stephead p { margin-top: 10px; font-size: 21px; -webkit-line-clamp: 3; max-width: 30em; }
  .seg { margin-top: 18px; font-size: 18px; }
  .seg button { width: 44px; height: 44px; font-size: 18px; background: rgba(255, 252, 248, .7); }
  .opts { margin-top: 22px; padding: 14px 6px 18px; gap: 18px; min-height: 0; }
  .opt { position: relative; width: 130px; }
  .opt__img { border-radius: 16px; box-shadow: 0 18px 30px -18px rgba(90, 52, 40, .55), 0 0 0 1px rgba(255, 255, 255, .6); }
  .opt__n { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 34px 10px 10px; border-radius: 0 0 16px 16px; background: linear-gradient(rgba(40, 26, 20, 0), rgba(40, 26, 20, .72)); color: #fff; font-size: 16px; font-weight: 500; text-align: left; transition: transform .4s var(--ease); }
  .opt.is-on .opt__n { color: #fff; }
  .opt:hover .opt__img { transform: translateY(-6px); }
  .opt:hover .opt__n { transform: translateY(-6px); }
  .opt.is-on .opt__img { transform: translateY(-6px); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 24px 34px -18px rgba(90, 52, 40, .6); }
  .opt.is-on .opt__n { transform: translateY(-6px); }
  .opt.is-rec .opt__n::before { background: #F3D3BF; }
  .opt__ok { top: 8px; right: 8px; width: 24px; height: 24px; font-size: 14px; }
  .stepnav { margin-top: 20px; }
  .sbtn { min-height: 50px; padding: 0 22px; font-size: 18px; background: rgba(255, 252, 248, .6); }
  .sbtn--next { background: var(--rose-deep); }
  .stepnav__n { font-size: 17px; }
  .studio__cta { margin-top: 26px; }
  .replay, .zoom { background: rgba(255, 252, 248, .85); }
}

/* ---------- PC: větší písmo jako u moderních webů ---------- */
@media (min-width: 900px) {
  body { font-size: 22px; }
  .nav__links { font-size: 19px; }
  .lede { font-size: 24px; max-width: 34em; }
  .hero__sub { font-size: 26px; }
  .metric h3 { font-size: 30px; }
  .metric p { font-size: 20px; }
  .about__copy p { font-size: 23px; }
  .ben h3 { font-size: 26px; }
  .ben p { font-size: 19px; }
  .tab { font-size: 20px; min-height: 52px; padding: 0 26px; }
  .cc b { font-size: 21px; }
  .cc span { font-size: 17px; }
  .crail--var .vc figcaption { font-size: 19px; }
  .pal span, .fc span { font-size: 17px; }
  .fc b { font-size: 23px; }
  .how__row h3 { font-size: 36px; }
  .how__row p { font-size: 21px; }
  .plan ul { font-size: 20px; }
  .extras .row { font-size: 21px; }
  .faq summary { font-size: 30px; }
  .faq details p { font-size: 21px; }
  .fq-nav a { font-size: 18px; }
  .foot nav, .foot .legal { font-size: 19px; }
}
@media (min-width: 900px) { .replay, .zoom { right: auto; left: -54px; } }

/* ---------- jeviště přes celou šířku, živější ikony a tlačítka ---------- */
.stage-wrap { padding: 0 var(--gutter); }
.stage .petals, #stage > .petals { z-index: 0; }
@media (min-width: 900px) {
  .stage-wrap { padding: 0; width: calc(100% - 48px); max-width: 2100px; margin: 44px auto 0; }
  .studio__grid { margin-top: 0; padding: 60px max(56px, 4vw) 56px; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: max(40px, 3.5vw); }
  .studio__phone, .studio__panel { position: relative; z-index: 1; }
  .studio__phone .phone { --pw: min(340px, calc((100dvh - 230px) / 2.17)); }
  .studio__panel { grid-template-columns: 190px minmax(0, 1fr); column-gap: max(28px, 2.4vw); }
  .opt { width: clamp(130px, 9.5vw, 170px); }
  .stephead h3 { font-size: clamp(52px, 4.4vw, 76px); }
  .stephead p { font-size: clamp(21px, 1.5vw, 25px); }
  .sd__l { font-size: clamp(19px, 1.3vw, 22px); }

  /* světelná záře za telefonem v tónu palety a jemné vznášení */
  .studio__phone::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 46%; width: 135%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--pal, #b8955a) 42%, rgba(255, 255, 255, .5)), transparent 72%); filter: blur(12px); transition: background .8s; }
  .studio__phone .phone { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-8px); } }

  /* ikony kroků */
  .sd__c { position: relative; background: rgba(255, 252, 248, .9); box-shadow: 0 8px 18px -10px rgba(90, 52, 40, .5); }
  .sd:hover .sd__c { transform: translateY(-3px) scale(1.08); }
  .sd:hover .sd__c i { animation: wiggle .6s ease; }
  @keyframes wiggle { 30% { transform: rotate(-14deg) scale(1.15); } 65% { transform: rotate(10deg) scale(1.1); } }
  .sd.is-on .sd__c { background: linear-gradient(145deg, #C99A84, var(--rose-deep)); box-shadow: 0 12px 22px -8px rgba(156, 102, 80, .9); }
  .sd.is-on .sd__c::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--rose-deep); animation: ring 2.2s ease-out infinite; }
  @keyframes ring { from { transform: scale(.82); opacity: .8; } to { transform: scale(1.3); opacity: 0; } }
  .sd.is-done .sd__c::before { content: ''; position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--rose-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: 0 0 0 2px #f6ece5; animation: tickpop .45s cubic-bezier(.3, 1.6, .4, 1); }
  @keyframes tickpop { from { transform: scale(0); } }
  .sdots::after { background: linear-gradient(180deg, var(--rose-deep), #D9A58E); box-shadow: 0 0 10px rgba(196, 145, 122, .7); }

  /* karty voleb naskakují postupně */
  .opts.in-r .opt, .opts.in-l .opt { animation: optpop .55s cubic-bezier(.2, 1.3, .35, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
  @keyframes optpop { from { opacity: 0; transform: translateY(26px) scale(.9); } }
  .opt__img { transition: transform .45s cubic-bezier(.2, 1.3, .35, 1), box-shadow .3s; }
  .opt:hover .opt__img { transform: translateY(-9px) rotate(-1.2deg); }
  .opt.is-on .opt__ok { animation: tickpop .45s cubic-bezier(.3, 1.6, .4, 1); background: linear-gradient(145deg, #C99A84, var(--rose-deep)); }

  /* tlačítka */
  .sbtn, .studio__cta { transition: transform .3s cubic-bezier(.2, 1.3, .35, 1), box-shadow .3s, background .3s; }
  .sbtn i { transition: transform .3s cubic-bezier(.2, 1.3, .35, 1); }
  .sbtn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(90, 52, 40, .6); }
  .sbtn--next:hover i { transform: translateX(5px); }
  #st-prev:hover i { transform: translateX(-5px); }
  .sbtn--next { background: linear-gradient(145deg, #C99A84, var(--rose-deep)); box-shadow: 0 14px 24px -12px rgba(156, 102, 80, .9); }
  .studio__cta { position: relative; overflow: hidden; display: inline-flex; gap: 12px; padding: 0 38px; min-height: 60px; font-size: 20px; background: linear-gradient(145deg, #C99A84, var(--rose-deep)); }
  .studio__cta i { font-size: 22px; animation: spin 6s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .studio__cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -90px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: sheen 4.5s ease-in-out infinite; }
  @keyframes sheen { 0%, 55% { left: -90px; } 100% { left: 115%; } }
  .studio__cta:hover { transform: translateY(-3px); box-shadow: 0 20px 30px -14px rgba(156, 102, 80, 1); }
  .replay, .zoom { transition: transform .35s cubic-bezier(.2, 1.3, .35, 1), box-shadow .3s; }
  .replay:hover { transform: scale(1.1); }
  .replay:hover i { animation: spin .7s ease; }
  .zoom:hover { transform: scale(1.12); }
  .hs-btn { transition: transform .3s cubic-bezier(.2, 1.3, .35, 1), opacity .25s, background .25s; }
  .hs-btn:hover { transform: scale(1.1); background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .studio__phone .phone, .studio__cta i, .studio__cta::after, .sd.is-on .sd__c::after, .opts .opt { animation: none !important; }
}
@media (min-width: 900px) { .studio__cta { justify-self: start; } .studio__phone { justify-items: center; } }

/* ---------- doladění: širší jeviště, katalog vyplní šířku, popisek pod telefonem se nezkracuje ---------- */
@media (min-width: 900px) {
  .stage-wrap { width: calc(100% - 32px); max-width: 2560px; }
  .studio__grid { align-items: start; padding: 64px max(56px, 4.5vw) 72px; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: max(40px, 4vw); }
  .studio__phone { align-self: start; padding-bottom: 8px; }
  .studio__phone .phone { --pw: min(330px, calc((100dvh - 300px) / 2.17)); }
  .studio__sum { padding-top: 6px; }
  .studio__panel { grid-template-columns: 210px minmax(0, 1fr); }
  .opt { width: clamp(130px, 10.5vw, 190px); }
  .crail .cc { width: clamp(220px, 15.5vw, 330px); }
  .crail--pal .pal { width: clamp(300px, 20vw, 420px); }
  .crail--fun .fc { width: clamp(380px, 25vw, 560px); grid-template-columns: clamp(120px, 8vw, 170px) 1fr; }
  .crail--var .vc { width: clamp(190px, 13vw, 280px); }
  .crail { gap: clamp(20px, 1.6vw, 34px); }
}
@media (min-width: 900px) { .studio__phone { top: auto; } }

/* ---------- PC: kroky zarovnané s carouselem, popisek nad telefonem, CTA pod posuvníkem ---------- */
@media (min-width: 900px) {
  .stepbody { display: contents; }
  .studio__panel { grid-template-rows: auto auto auto auto auto; align-content: start; }
  .studio__panel > .sh { grid-column: 1; grid-row: 3 / span 3; align-self: start; margin-top: 22px; }
  .stephead { grid-column: 2; grid-row: 1; }
  .seg { grid-column: 2; grid-row: 2; }
  .studio__panel .hs { grid-column: 2; grid-row: 3; min-width: 0; }
  .stepnav { grid-column: 2; grid-row: 4; }
  .studio__cta { grid-column: 2; grid-row: 5; justify-self: center; margin-top: 22px; }

  .studio__phone { padding-top: 34px; }
  .studio__sum { display: contents; }
  .studio__sum h3 { order: -1; font-size: clamp(44px, 3.4vw, 64px); text-align: center; line-height: 1.05; margin-bottom: 12px; }
  .studio__sum p { order: 2; font-size: 16px; line-height: 1.35; text-align: center; max-width: 18em; margin-top: 6px; color: var(--soft); }
  .studio__phone .phone { order: 1; }
}
@media (min-width: 900px) { .studio__phone .phone { --pw: min(310px, calc((100dvh - 400px) / 2.17)); } .studio__phone { padding-top: 22px; } .studio__sum h3 { margin-bottom: 4px; } }

/* katalog na PC: carousel začíná u levého okraje okna, stejně jako panel konfigurátoru */
@media (min-width: 900px) {
  .panels { --edge: 24px; }
  .panels .crail, .panels .vrail { padding-left: 24px; padding-right: 24px; scroll-padding-inline: 24px; }
  .panels .vgroup h4, .panels .vgroup > p { padding: 0 24px; }
  .panels .hs-btn--prev { left: 34px; }
  .panels .hs-btn--next { right: 34px; }
}

