/* chlipala.dev — dla właściciela lokalnej firmy: ciepło, zdjęcia rzemiosła, ten sam krój i kształty co nasze dema. */
:root {
  --paper: #faf6ef; --paper-2: #f2e9dc; --ink: #2a211c; --muted: #6f6258; --line: #e6dccd;
  --accent: #b8461c; --accent-d: #973813; --cream: #fdf9f3;
  --serif: "Fraunces", Georgia, serif; --sans: "Figtree", system-ui, sans-serif;
  --pad: 20px; --gap: 72px; --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 760px) { :root { --pad: 40px; --gap: 120px; } }
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; margin: 0; font-optical-sizing: auto; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--cream); font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn-s { min-height: 42px; padding: 0 18px; font-size: 15px; }
.lnk { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--accent); }

/* nagłówek */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; }
.links { display: none; gap: 28px; font-weight: 500; color: var(--muted); }
.links a { text-decoration: none; } .links a:hover { color: var(--ink); }
@media (min-width: 900px) { .links { display: flex; } }

/* 1. hero */
.hero { padding: 32px 0 var(--gap); }
.h-in { display: grid; gap: 36px; align-items: center; }
.h-txt { text-align: center; }
h1 { font-size: clamp(40px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -.025em; }
h1 em { font-style: italic; color: var(--accent); }
.lead { margin: 24px auto 0; max-width: 36ch; font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 32px; }
.cta .btn { width: 100%; max-width: 380px; }
.h-art { position: relative; order: -1; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin: 0 auto; }
.ph { position: absolute; overflow: hidden; background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.p-arch { left: 14%; top: 0; width: 60%; height: 88%; border-radius: 999px 999px 10px 10px; }
.p-scal { left: 0; bottom: 0; width: 46%; height: 38%; -webkit-mask: url("img/scallop.svg") center / 100% 100% no-repeat; mask: url("img/scallop.svg") center / 100% 100% no-repeat; }
.p-blob { right: 0; top: 30%; width: 40%; height: 42%; border-radius: 46% 54% 41% 59% / 52% 44% 56% 48%; }
@media (min-width: 900px) {
  .hero { padding-top: 56px; }
  .h-in { grid-template-columns: 1.05fr 1fr; gap: 56px; min-height: calc(100svh - 66px - 112px); }
  .h-txt { text-align: left; }
  .lead { margin-left: 0; }
  .cta { flex-direction: row; gap: 28px; }
  .cta .btn { width: auto; }
  .h-art { order: 0; max-width: 600px; }
}
.h-art .ph { animation: rise 1s var(--ease) both; }
.h-art .p-scal { animation-delay: .15s; } .h-art .p-blob { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

/* 2. Instagram → strona */
.morph { background: var(--paper-2); padding: var(--gap) 0; }
.m-in { display: grid; gap: 44px; align-items: center; }
.m-txt { text-align: center; }
.m-txt p { margin: 20px auto 0; max-width: 40ch; color: var(--muted); font-size: 19px; }
@media (min-width: 900px) { .m-in { grid-template-columns: 1fr auto; gap: 80px; } .m-txt { text-align: left; } .m-txt p { margin-left: 0; } }
.p-wrap { justify-self: center; display: grid; justify-items: center; gap: 18px; }
.phone { width: min(300px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 42px; background: #1d1714; padding: 11px; box-shadow: 0 40px 70px -40px rgba(42, 33, 28, .55); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; }
.ig, .site { position: absolute; inset: 0; }
.ig { padding: 34px 0 0; }
.ig-h { display: flex; align-items: center; gap: 10px; padding: 0 12px 12px; font-size: 12px; line-height: 1.3; }
.ig-h b { display: block; font-size: 13px; } .ig-h i { font-style: normal; color: #777; font-size: 11px; }
.ig-av { width: 44px; height: 44px; border-radius: 50%; flex: none; background: url("img/fl-peony-1.webp") center / cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e1306c; }
.ig-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-g img { aspect-ratio: 1; width: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .5s ease; }
.site { padding: 30px 12px 0; background: var(--cream); display: flex; flex-direction: column; gap: 10px; }
.s-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.s-top b { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.s-hero { height: 44%; border-radius: 999px 999px 8px 8px; overflow: hidden; }
.s-hero img { width: 100%; height: 100%; object-fit: cover; }
.s-h { margin: 2px 0 0; font: 500 20px/1.1 var(--serif); text-align: center; }
.s-btns { display: grid; gap: 6px; }
.s-btns span { display: block; text-align: center; padding: 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.s-b1 { background: var(--accent); color: var(--cream); } .s-b2 { box-shadow: inset 0 0 0 1.5px var(--line); }
.s-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.s-row img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.site > * { transition: transform .7s var(--ease), opacity .6s ease; }
/* stan: profil IG widoczny; .as-site → strona */
.phone .site > * { opacity: 0; transform: translateY(18px); }
.phone.as-site .ig-g img { opacity: 0; transform: translateY(-14px) scale(.92); }
.phone.as-site .ig-h { opacity: 0; transition: opacity .4s; }
.phone.as-site .site > * { opacity: 1; transform: none; }
.phone.as-site .site > :nth-child(2) { transition-delay: .12s; } .phone.as-site .site > :nth-child(3) { transition-delay: .22s; }
.phone.as-site .site > :nth-child(4) { transition-delay: .3s; } .phone.as-site .site > :nth-child(5) { transition-delay: .38s; }
.ig-g img:nth-child(3n+2) { transition-delay: .05s; } .ig-g img:nth-child(3n) { transition-delay: .1s; }

/* 3. co to daje */
.gives { padding: var(--gap) 0; }
.gives h2 { text-align: center; }
.g-list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 48px; }
@media (min-width: 900px) { .g-list { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.g-list li { text-align: center; }
@media (min-width: 900px) { .g-list li { text-align: left; } }
.g-ph { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--paper-2); }
.g-ph > img { width: 100%; height: 100%; object-fit: cover; }
.g-list h3 { margin-top: 22px; font-size: 28px; line-height: 1.15; }
.g-list p { margin: 10px auto 0; max-width: 36ch; color: var(--muted); }
@media (min-width: 900px) { .g-list p { margin-left: 0; } }
.ui { position: absolute; left: 14px; right: 14px; bottom: 14px; background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 16px; box-shadow: 0 16px 34px -16px rgba(0,0,0,.5); text-align: left; font-size: 14px; line-height: 1.35; }
.ui b { display: block; font-size: 16px; } .ui i { font-style: normal; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ui-search .q { display: block; margin-bottom: 10px; padding: 8px 12px; border-radius: 999px; background: #f1f1f1; color: #555; font-size: 13px; }
.open { width: 8px; height: 8px; border-radius: 50%; background: #3fae5a; }
.ui-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.ui-bar span { text-align: center; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 14px; background: var(--ink); color: #fff; }
.ui-bar span + span { background: var(--accent); }
.ui-map { padding-left: 54px; }
.ui-map .pin { position: absolute; left: 16px; top: 50%; width: 26px; height: 26px; margin-top: -15px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); }
.ui-map .pin::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.ui-map i { color: var(--accent); font-weight: 600; }

/* 4. kto to robi */
.who { background: var(--paper-2); padding: var(--gap) 0; }
.w-in { display: grid; gap: 36px; align-items: center; }
.w-ph { width: min(320px, 72vw); justify-self: center; aspect-ratio: 5 / 6; border-radius: 999px 999px 18px 18px; overflow: hidden; background: #dfe7ec; }
.w-ph img { width: 100%; height: 100%; object-fit: cover; }
.w-txt { text-align: center; }
.w-txt p { margin: 18px auto 0; max-width: 46ch; color: var(--muted); font-size: 19px; }
.w-txt .lnk { display: inline-block; margin-top: 22px; }
@media (min-width: 900px) { .w-in { grid-template-columns: auto 1fr; gap: 80px; } .w-ph { width: 360px; } .w-txt { text-align: left; } .w-txt p { margin-left: 0; } }

/* 5. kroki: ścieżka z linią, która rysuje się przy wjeździe */
.steps { padding: var(--gap) 0; }
.steps h2 { text-align: center; }
.path { list-style: none; padding: 0; margin: 48px 0 0; position: relative; display: grid; gap: 40px; }
.path::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--accent); transform-origin: top; transform: scaleY(var(--draw, 1)); transition: transform 1.4s var(--ease); }
.path li { position: relative; padding-left: 68px; }
.path .n { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--cream);
  font: 500 22px/1 var(--serif); box-shadow: 0 0 0 6px var(--paper); transition: transform .5s var(--ease), opacity .4s; }
.path b { display: block; margin-top: 16px; font: 500 26px/1.2 var(--serif); }
.path p { margin: 6px 0 0; max-width: 34ch; color: var(--muted); }
.vis { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -20px rgba(42,33,28,.45), 0 0 0 1px var(--line);
  font-size: 15px; transition: transform .6s var(--ease), opacity .5s; }
.v-in { flex: 1; display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-weight: 600; }
.v-at { color: var(--muted); margin-right: 1px; }
.caret { width: 2px; height: 18px; margin-left: 2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.v-send { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--cream); font-weight: 700; flex: none; }
.v-msg { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; }
.v-msg b { grid-column: 1; margin: 0; font: 600 16px/1.2 var(--sans); }
.v-link { grid-column: 1; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.v-tag { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: 8px 12px; border-radius: 999px; background: var(--paper-2); font: 500 18px/1 var(--serif); }
.v-url { font-weight: 600; }
.v-lock { width: 12px; height: 10px; border-radius: 2px; background: var(--muted); position: relative; margin-top: 4px; flex: none; }
.v-lock::before { content: ""; position: absolute; left: 2px; top: -7px; width: 8px; height: 8px; border: 2px solid var(--muted); border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }
.v-live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #2f7d46; }
.v-live i { width: 8px; height: 8px; border-radius: 50%; background: #3fae5a; box-shadow: 0 0 0 4px rgba(63,174,90,.2); }
@media (min-width: 900px) {
  .path { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
  .path::before { left: 22px; right: calc(33.33% - 22px); top: 21px; bottom: auto; width: auto; height: 2px; transform-origin: left; transform: scaleX(var(--draw, 1)); }
  .path li { padding-left: 0; }
  .path .n { position: relative; }
  .path .vis { margin-top: 24px; }
}
/* przed wjazdem w ekran: linia schowana, kroki czekają */
.path.pre { --draw: 0; }
.path.pre .n { transform: scale(.4); opacity: 0; }
.path.pre .vis { transform: translateY(14px); opacity: 0; }
.path li:nth-child(2) .n, .path li:nth-child(2) .vis { transition-delay: .45s; }
.path li:nth-child(3) .n, .path li:nth-child(3) .vis { transition-delay: .9s; }

/* 6. pytania — osobna sekcja na ciemniejszym tle, tytuł nad listą jak w pozostałych */
.faq { background: var(--paper-2); padding: var(--gap) 0; }
.f-in { max-width: 820px; }
.faq h2 { text-align: center; }
.qa { margin-top: 40px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.qa details { border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; min-height: 64px; font: 500 21px/1.3 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); font: 400 22px/1 var(--sans); transition: transform .25s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin: -4px 52px 22px 0; color: var(--muted); }

/* 7. formularz */
.ask { background: var(--accent); color: var(--cream); padding: var(--gap) 0; }
.a-in { display: grid; gap: 36px; align-items: start; }
.a-txt { text-align: center; }
.a-txt p { margin: 16px auto 0; max-width: 36ch; opacity: .9; font-size: 19px; }
@media (min-width: 900px) { .a-in { grid-template-columns: 1fr 1fr; gap: 72px; } .a-txt { text-align: left; } .a-txt p { margin-left: 0; } }
.form { background: var(--cream); color: var(--ink); border-radius: 26px; padding: 24px; display: grid; gap: 16px; box-shadow: 0 30px 60px -36px rgba(0,0,0,.45); }
@media (min-width: 760px) { .form { padding: 32px; } }
.row { display: grid; gap: 16px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.form input:not([type=checkbox]) { width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 400 17px var(--sans); }
.form input:focus { outline: none; border-color: var(--accent); }
.igw { position: relative; display: block; }
.igw .at { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.igw input { padding-left: 34px !important; }
.form .bad { border-color: #c0392b !important; }
.consent { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; color: var(--muted); }
.consent input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.consent input.bad { outline: 2px solid #c0392b; outline-offset: 2px; }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sent { display: none; margin: 0; font: 500 26px/1.25 var(--serif); }
.form.done > *:not(.sent) { display: none; }
.form.done .sent { display: block; }
.err { margin: 0; color: #c0392b; font-weight: 600; }

.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 36px; font-size: 15px; color: var(--muted); }
.foot a { text-underline-offset: 3px; }
@media (max-width: 759px) { .foot .wrap { flex-direction: column; text-align: center; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .h-art .ph { animation: none; } * { transition: none !important; } }

/* przełącznik nad telefonem + płynne przenikanie (bez białego ekranu) */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.seg span { padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: background .45s var(--ease), color .45s; }
.p-wrap:not(.on-site) .s-ig, .p-wrap.on-site .s-site { background: var(--ink); color: var(--cream); }
.screen { background: var(--cream); }
.ig { background: #fff; transition: opacity .6s ease .25s; }
.phone.as-site .ig { opacity: 0; transition-delay: .35s; }
.phone:not(.as-site) .ig { transition-delay: 0s; }
.phone .site > * { transition-delay: 0s; }
.s-hero { height: 38%; flex: none; }
.s-map { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 11px; line-height: 1.3; }
.s-map b { display: block; font-size: 12px; } .s-map i { font-style: normal; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.s-map .pin { position: relative; width: 18px; height: 18px; flex: none; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); }
.s-map .pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.phone.as-site .site > :nth-child(6) { transition-delay: .46s; }
.site { background: transparent; } .ig { z-index: 0; } .site { z-index: 1; pointer-events: none; }
.ig-g img, .s-row img { height: auto; aspect-ratio: 1 / 1; }
.ig-bio { margin: 0; padding: 0 12px 8px; font-size: 11px; line-height: 1.4; }
.ig-act { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 0 12px 10px; }
.ig-act span { text-align: center; padding: 6px; border-radius: 8px; background: #efefef; font-size: 11px; font-weight: 600; }
.ig-act span:first-child { background: #0095f6; color: #fff; }
.ig-hl { display: flex; gap: 10px; padding: 0 12px 10px; }
.ig-hl i { width: 38px; height: 38px; border-radius: 50%; background: center / cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ddd; }
.ig { transition: opacity .6s ease .25s; }
.ig-h, .ig-bio, .ig-act, .ig-hl { transition: opacity .4s; }
.phone.as-site .ig-bio, .phone.as-site .ig-act, .phone.as-site .ig-hl { opacity: 0; }
.brand { font: 500 23px/1 var(--serif); letter-spacing: -.01em; gap: 0; }
@media (max-width: 759px) { .brand { font-size: 21px; } }

/* makieta strony = wierne hero naszego szablonu (demo kwiaciarni na telefonie) */
.phone .site { background: #3e4323; color: #f6f2e9; padding: 30px 12px 0; gap: 0; align-items: stretch; text-align: center; opacity: 0; transition: opacity .55s ease; }
.phone.as-site .site { opacity: 1; }
.phone .site > * { opacity: 1 !important; transform: none !important; }
.site .s-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #f6f2e9; }
.site .s-top b { font: 500 16px/1 var(--serif); }
.site .s-top span { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.bur { width: 14px; height: 9px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.bur::after { content: ""; position: absolute; left: 0; right: 0; top: 2.5px; border-top: 1.5px solid currentColor; }
.site .s-hero { margin-top: 12px; height: 47%; border-radius: 58% 6px 58% 6px; overflow: hidden; }
.site .s-h { margin: 16px 0 0; font: 500 24px/1.08 var(--serif); letter-spacing: -.01em; text-align: center; color: #f6f2e9; }
.site .s-b1 { display: block; margin-top: 14px; padding: 11px; border-radius: 3px; background: #f6f2e9; color: #2a2a1d; font-size: 12px; font-weight: 600; }
.site .s-lnk { display: inline-block; margin: 12px auto 0; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.site .s-bar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 8px 12px; background: #f6f2e9; }
.site .s-bar span { padding: 10px 0; border-radius: 3px; font-size: 12px; font-weight: 600; color: #fff; background: #1f2216; }
.site .s-bar span + span { background: #3e4323; }
.site .s-btns, .site .s-map, .site .s-row { display: none; }
