/* Cafe Ciacho Ełk, wersja 1 „cukiernia premium”.
   Barwy z wizytówki marki: krem, kawowy brąz, pomarańcz gwiazdek, złoto kreski z logo.
   Fraunces (miękki szeryf) + Figtree. Kształty: przyciski = pigułka, zdjęcia = 24px, łuk-kopuła. */

:root {
  --cream: #fbf4e8;
  --paper: #f4e7d3;
  --coffee: #2e1e15;
  --muted: #6e5847;
  --line: #e4d2b8;
  --orange: #ef8a2c;
  --orange-deep: #a84f0c;
  --gold: #c48c3a;
  --shadow: 0 30px 60px -30px rgb(74 42 18 / .45);

  --r: 24px;
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --nav-h: 76px;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--coffee);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -.02em; line-height: 1.06; text-wrap: balance;
}
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--coffee); color: var(--cream); border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* SplitText: maska linii z zapasem na ogonki ą, ę i kreski ó, ż */
.ln-mask { padding-bottom: .12em; margin-bottom: -.12em; padding-top: .04em; margin-top: -.04em; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 1.5em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn--sm { min-height: 44px; padding: 0 1.15em; font-size: .9375rem; }
.btn--orange { background: var(--orange); color: var(--coffee); box-shadow: 0 14px 28px -16px rgb(200 100 20 / .9); }
.btn--line { border-color: color-mix(in srgb, var(--coffee) 22%, transparent); color: var(--coffee); }
@media (hover: hover) {
  .btn--orange:hover { background: #f59a40; }
  .btn--line:hover { border-color: var(--coffee); background: color-mix(in srgb, var(--paper) 60%, transparent); }
}
.btn:active { scale: .97; }

/* Nawigacja */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h); transition: background-color .4s, box-shadow .4s, translate .5s var(--ease); }
.nav.is-solid { background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { translate: 0 -100%; }
.nav__in { display: flex; align-items: center; gap: 28px; height: 100%; }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-weight: 500; font-size: .975rem; }
.nav__links a { position: relative; text-decoration: none; color: var(--muted); transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--orange); scale: 0 1; transform-origin: right; transition: scale .5s var(--ease); }
.nav__links a:hover { color: var(--coffee); }
.nav__links a:hover::after { scale: 1 1; transform-origin: left; }
@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__in > .btn { margin-left: auto; }
  .nav__logo img { height: 44px; }
}

/* Intro */
.intro { display: none; }
.has-intro .intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--cream); }
.has-intro .intro__logo { width: min(340px, 64vw); clip-path: inset(0 100% 0 0); }
.is-failsafe .intro { display: none; }

/* Hero */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(24px, 5vh, 56px)); padding-bottom: clamp(40px, 7vh, 80px); }
.hero__in {
  display: grid; grid-template-columns: 1.3fr .7fr; align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: min(calc(100dvh - var(--nav-h) - 170px), 720px);
}
.hero__where { color: var(--muted); margin-bottom: 22px; }
.hero h1 { text-wrap: pretty; font-size: clamp(2.7rem, 5.2vw, 4.75rem); font-weight: 450; letter-spacing: -.03em; line-height: 1.04; }
.hero h1 em { color: var(--orange-deep); }
.hero__lead { margin-top: 26px; max-width: 46ch; font-size: 1.1875rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero__visual { position: relative; justify-self: end; width: min(100%, 420px); }
.arch { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); background: var(--paper); box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; left: -64px; bottom: 36px; width: 150px; height: 150px;
  border-radius: 50%; background: var(--orange); box-shadow: var(--shadow);
  font: 700 14.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; fill: var(--coffee);
}
.star { position: absolute; fill: var(--orange); }
.star--1 { width: 34px; height: 34px; top: 6%; left: -40px; }
.star--2 { width: 22px; height: 22px; top: 22%; right: -26px; fill: var(--gold); }
.star--3 { width: 18px; height: 18px; bottom: -18px; right: 18%; }
@media (max-width: 899px) {
  .hero__in { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { justify-self: center; width: min(76%, 360px); margin-top: 8px; }
  .badge { left: -44px; width: 112px; height: 112px; bottom: 20px; }
  .star--2 { right: -18px; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* Dowód */
.proof { border-block: 1px solid var(--line); }
.proof__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof__item { display: flex; flex-direction: column; gap: 4px; padding: 28px 0 28px 32px; text-decoration: none; border-left: 1px solid var(--line); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__item strong { display: flex; align-items: center; gap: 12px; font: 500 clamp(1.8rem, 3vw, 2.5rem)/1.05 var(--serif); font-variation-settings: "SOFT" 100; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.proof__item > span { color: var(--muted); font-size: .95rem; }
a.proof__item:hover > span { color: var(--coffee); text-decoration: underline; text-underline-offset: 3px; }
.proof__item .stars { display: inline-flex; gap: 2px; color: var(--orange); }
.stars svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 699px) {
  .proof__in { grid-template-columns: 1fr; }
  .proof__item, .proof__item:first-child { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .proof__item:first-child { border-top: 0; }
}

/* Torty: wstęp po lewej, pas zdjęć przesuwany przewijaniem (desktop) albo palcem (mobile) */
.cakes { position: relative; padding-top: clamp(80px, 11vw, 140px); }
.cakes__pin { display: grid; gap: 32px; }
.cakes__intro { padding-inline: var(--gut); }
.cakes__intro h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.cakes__intro p { margin-top: 20px; color: var(--muted); font-size: 1.125rem; max-width: 44ch; }
.cakes__intro .cakes__hint { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--orange-deep); font-weight: 600; }
.cakes__view { overflow: hidden; min-width: 0; }
.cakes__track { display: flex; align-items: flex-end; gap: clamp(20px, 2.5vw, 40px); padding-inline: var(--gut); width: max-content; }
.cake { flex: none; width: clamp(260px, 24vw, 340px); }
.cake--wide { width: clamp(320px, 34vw, 480px); }
.cake__frame { overflow: hidden; border-radius: var(--r); background: var(--paper); aspect-ratio: 4 / 5; }
.cake--wide .cake__frame { aspect-ratio: 4 / 3.6; }
.cake:nth-child(odd) .cake__frame { border-radius: 999px 999px var(--r) var(--r); }
.cake__frame img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; }
.cake figcaption { margin-top: 18px; display: grid; gap: 4px; max-width: 34ch; }
.cake figcaption em { font: italic 400 clamp(1.5rem, 2.2vw, 2rem)/1.1 var(--serif); font-variation-settings: "SOFT" 100; }
.cake figcaption span { color: var(--muted); font-size: .975rem; }
@media (min-width: 900px) {
  .cakes { padding-top: 0; }
  .cakes__pin { height: 100dvh; grid-template-columns: minmax(300px, 30vw) 1fr; align-items: center; gap: 0; padding-top: calc(var(--nav-h) / 2); }
  .cakes__intro { padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); padding-right: 32px; position: relative; z-index: 2; }
  .cakes__view { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
  .cake__frame { max-height: 56vh; }
}
@media (max-width: 899px) {
  .cakes__view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .cakes__view::-webkit-scrollbar { display: none; }
  .cakes__track { align-items: flex-start; }
  .cake { scroll-snap-align: start; scroll-margin-left: var(--gut); width: 72vw; }
  .cake--wide { width: 84vw; }
  .cake__frame img { scale: 1; }
}

/* Jak zamówić */
.order { padding-block: clamp(80px, 11vw, 140px); }
.order h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.order__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(32px, 4vw, 52px); }
.order__list li { display: grid; gap: 8px; align-content: start; }
.order__rule { display: block; height: 2px; background: var(--orange); margin-bottom: 14px; transform-origin: left; }
.order__list strong { font: 500 1.5rem/1.15 var(--serif); font-variation-settings: "SOFT" 100; }
.order__list li > span:last-child { color: var(--muted); }
.order__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
@media (max-width: 767px) {
  .order__list { grid-template-columns: 1fr; }
  .order__cta .btn { flex: 1 1 100%; }
}

/* Smaki: przekroje tortu nakładane na siebie */
.slices { background: var(--paper); padding-block: clamp(80px, 11vw, 140px); }
.slices__head { max-width: 780px; margin-inline: auto; text-align: center; }
.slices__head h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.slices__head > p:last-child { margin: 20px auto 0; max-width: 52ch; color: var(--muted); font-size: 1.125rem; }
.kicker { font: italic 400 1.35rem/1.2 var(--serif); color: var(--orange-deep); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 12px; }
.kicker::before, .kicker::after { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .6; }
.slices__stack { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 28px; }
.slice {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: min(60vh, 500px);
  padding: clamp(28px, 4vw, 60px);
  border-radius: calc(var(--r) * 1.5);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 30px 60px -40px rgb(74 42 18 / .5);
  transform-origin: 50% 0;
}
.slice h3 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 450; }
.slice__text p { margin-top: 16px; font-size: 1.125rem; color: var(--muted); max-width: 30ch; }
.slice__cut { display: grid; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 40px -24px rgb(74 42 18 / .6); }
.slice__cut i { display: flex; align-items: center; min-height: clamp(56px, 7vw, 88px); padding: 0 22px; background: var(--b); font-style: normal; transform-origin: left; }
.slice__cut i:first-child { min-height: clamp(44px, 5vw, 64px); }
.slice__cut b { font-weight: 600; font-size: .95rem; color: var(--coffee); }
.slice__cut i.is-dark b { color: #fff; }
@media (max-width: 767px) {
  .slice { grid-template-columns: 1fr; min-height: 0; top: calc(var(--nav-h) + 12px); }
}

/* Kawiarnia */
.cafe { padding-top: clamp(80px, 11vw, 140px); }
.cafe__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "t t t t t . a a a a a a"
    "b b b b b b b . c c c c";
  gap: clamp(28px, 4vw, 56px) clamp(16px, 2vw, 28px);
  align-items: start;
}
.cafe__text { grid-area: t; align-self: center; }
.cafe__text h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.cafe__text > p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }
.cafe__menu { display: grid; gap: 22px; margin-top: 34px; }
.cafe__menu dt { font: 500 1.35rem/1.2 var(--serif); font-variation-settings: "SOFT" 100; }
.cafe__menu dd { color: var(--muted); margin-top: 4px; }
.ph { position: relative; overflow: hidden; border-radius: var(--r); }
.ph img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; }
.ph--a { grid-area: a; aspect-ratio: 1; }
.ph--b { grid-area: b; aspect-ratio: 1092 / 577; }
.ph--c { grid-area: c; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); }
.ph figcaption { position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--cream) 92%, transparent); font-size: .875rem; }
@media (max-width: 899px) {
  .cafe__grid { grid-template-columns: 1fr; grid-template-areas: "t" "a" "b" "c"; }
  .ph--b { margin-top: 0; }
  .ph--c { width: 72%; justify-self: end; }
}

/* Marquee (jedyne na stronie), skos zależny od prędkości przewijania */
.marquee { margin-top: clamp(72px, 10vw, 128px); padding-block: 26px; border-block: 1px solid var(--line); overflow: hidden; }
.marquee__track { display: flex; width: max-content; }
.marquee__track li { display: flex; align-items: center; white-space: nowrap; font: italic 400 clamp(1.8rem, 3.6vw, 3rem)/1.15 var(--serif); font-variation-settings: "SOFT" 100; }
.marquee__track li::after { content: ""; width: .55em; height: .55em; margin-inline: .8em; background: var(--orange); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }

/* Opinie */
.reviews { padding-block: clamp(88px, 12vw, 160px); }
.reviews__big { max-width: 1060px; }
.reviews__big p { font: 400 clamp(2.4rem, 6vw, 5.2rem)/1.06 var(--serif); font-variation-settings: "SOFT" 100; letter-spacing: -.03em; text-wrap: balance; }
.reviews figcaption { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.reviews__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.reviews__row figure { padding: 28px; border-radius: var(--r); background: var(--paper); }
.reviews__row figure:nth-child(2) { margin-top: 40px; }
.reviews__row blockquote p { font-size: 1.125rem; line-height: 1.55; }
@media (max-width: 899px) {
  .reviews__row { grid-template-columns: 1fr; }
  .reviews__row figure:nth-child(2) { margin-top: 0; }
}

/* Kontakt */
.visit { background: var(--paper); padding-block: clamp(80px, 11vw, 140px); }
.visit__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); }
.visit h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.visit__list { display: grid; gap: 22px; margin-top: 38px; }
.visit__list li { display: flex; gap: 16px; align-items: flex-start; }
.visit__list .ico { width: 24px; height: 24px; color: var(--orange-deep); margin-top: 2px; }
.visit__list div { display: grid; gap: 2px; }
.visit__list strong { font-weight: 650; font-size: 1.125rem; }
.visit__list span { color: var(--muted); }
.visit__list a { text-decoration: none; }
.visit__list a:hover strong, .visit__list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.map { position: relative; min-height: 440px; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__facade { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; color: var(--muted); }
.map__pin { width: 44px; height: 44px; fill: var(--orange); }
@media (max-width: 899px) {
  .visit__in { grid-template-columns: 1fr; }
  .map { min-height: 360px; }
  .visit__cta .btn { flex: 1 1 auto; }
}

/* Stopka */
.foot { padding-block: clamp(56px, 8vw, 96px) calc(40px + env(safe-area-inset-bottom)); }
.foot__logo { width: min(520px, 78vw); margin-inline: auto; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.foot__social { display: flex; gap: 8px; margin-left: auto; }
.foot__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); color: var(--coffee); transition: border-color .2s; }
.foot__social a:hover { border-color: var(--coffee); }
.foot__social .ico { width: 20px; height: 20px; }
.foot__copy { width: 100%; font-size: .875rem; }
@media (max-width: 699px) {
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .foot__social { margin-left: 0; }
}

/* Pasek akcji (telefon) */
.dock { display: none; }
@media (max-width: 699px) {
  .dock {
    position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--cream) 90%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    translate: 0 140%; transition: translate .6s var(--ease);
  }
  .dock.is-on { translate: 0 0; }
  .dock .btn { min-height: 46px; padding: 0 .8em; }
}

/* Stany startowe ukrywane tylko przy włączonym ruchu (JS je odsłania) */
.js:not(.is-reduced) [data-reveal], .js:not(.is-reduced) [data-stagger] > *, .js:not(.is-reduced) [data-hero-item] { opacity: 0; }
.js:not(.is-reduced) [data-split], .js:not(.is-reduced) [data-hero-title] { visibility: hidden; }
.is-failsafe [data-reveal], .is-failsafe [data-stagger] > *, .is-failsafe [data-hero-item] { opacity: 1 !important; }
.is-failsafe [data-split], .is-failsafe [data-hero-title] { visibility: visible !important; }

@media (prefers-reduced-motion: reduce) {
  .ph img, .cake__frame img { scale: 1; }
  .btn, .dock, .nav { transition: none; }
}
@media (max-width: 899px) { .cakes__intro .cakes__hint { display: none; } }
