﻿/* Nella koláčiky a torty – kraft, malina, pistácia, čokoláda */

:root {
  --kraft: #e4c39c;
  --kraft-deep: #cfa676;
  --kraft-line: #b98f5f;
  --rasp: #d8326a;
  --rasp-deep: #b01f52;
  --rasp-ink: #b41f57; /* malina pre text na krafte a smotane */
  --choc: #3b1e17;
  --choc-soft: #6b4334;
  --pista: #a9c96b;
  --cream-pink: #fbe3e8;
  --white: #fffdfb;

  --display: "Shrikhand", "Georgia", serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --page: min(1320px, 100% - 2 * var(--side));
  --side: clamp(16px, 4vw, 48px);
  --space: clamp(72px, 10vw, 140px);

  --shadow: 0 1px 2px rgb(59 30 23 / 0.16), 0 14px 30px -14px rgb(59 30 23 / 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* vlákna kraftového papiera */
  --fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23f)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--kraft) var(--fiber);
  color: var(--choc);
  font-family: var(--text);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
/* Shrikhand má široký pevný priestor, preto krátke predložky držíme cez nowrap */
.nb { white-space: nowrap; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--rasp); color: var(--white); }
:focus-visible { outline: 3px solid var(--rasp); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--kraft-line) var(--kraft); }

.sprite { position: absolute; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--choc); color: var(--white); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--rasp-ink);
  text-wrap: balance;
}

/* tlačidlá */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0.75em 1.35em;
  border-radius: 999px; border: 0;
  font-weight: 700; font-size: 1rem; line-height: 1.15; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--rasp { background: var(--rasp); color: var(--white); }
.btn--rasp:hover { background: var(--rasp-deep); }
.btn--line { color: var(--choc); box-shadow: inset 0 0 0 2px var(--choc); }
.btn--line:hover { background: rgb(59 30 23 / 0.07); }
.btn--kraft { background: var(--kraft); color: var(--choc); }
.btn--kraft:hover { background: #ecd1b0; }

/* ---------- hlavička ---------- */
.top {
  width: var(--page); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 22px 0;
}
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo__name { font-family: var(--display); font-size: 2.25rem; color: var(--rasp-ink); line-height: 0.9; }
.logo__sub { font-weight: 600; font-size: 0.875rem; margin-top: 4px; margin-left: 0.15em; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; }
.nav a:hover { background: rgb(59 30 23 / 0.08); }
.top__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 10px 16px; border-radius: 999px; background: var(--choc); color: var(--kraft); white-space: nowrap; }
.top__phone:hover { background: #55302a; }
@media (max-width: 1020px) { .nav { display: none; } .top__phone { margin-left: auto; } }
@media (max-width: 420px) { .top__phone { padding: 10px 12px; font-size: 0.95rem; } .logo__name { font-size: 1.9rem; } }

/* ---------- úvod ---------- */
.hero {
  width: var(--page); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 4vw, 56px) 0 var(--space);
}
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.75rem, 1.4rem + 4.2vw, 5.5rem);
  line-height: 0.98; letter-spacing: -0.015em;
  color: var(--rasp-ink);
  text-wrap: balance;
}
.hero__lede { margin-top: 24px; max-width: 36ch; font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__proof { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; font-size: 1rem; }
.stars { display: inline-flex; color: var(--rasp-ink); }
.hero__cert { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 1rem; text-decoration: none; }
.hero__cert:hover span { text-decoration: underline; }
.hero__seal { width: 68px; height: 72px; flex: none; rotate: -8deg; transition: rotate 0.4s var(--ease); }
.hero__cert:hover .hero__seal { rotate: 4deg; }
.stars .ico { width: 1.1em; height: 1.1em; fill: currentColor; stroke: none; }

.hero__box { position: relative; margin-right: calc(-1 * var(--side) - max(0px, (100vw - 1320px - 2 * var(--side)) / 2)); }
.hero__box img {
  width: 100%;
  border-radius: 28px 0 0 28px;
  box-shadow: var(--shadow);
}
.stamp {
  position: absolute; left: -38px; bottom: -42px;
  display: grid; place-content: center; text-align: center;
  width: clamp(124px, 12vw, 160px); aspect-ratio: 1; border-radius: 50%;
  background: var(--pista); color: var(--choc);
  rotate: -12deg;
  box-shadow: var(--shadow);
}
.stamp span { font-weight: 700; font-size: 0.875rem; }
.stamp b { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1; }

/* jediný úvodný moment: krabica dopadne na stôl */
@media (prefers-reduced-motion: no-preference) {
  .hero__box img { animation: land 0.9s var(--ease) both; }
  .stamp { animation: stamp 0.6s 0.65s var(--ease) both; }
}
@keyframes land { from { transform: translateY(-28px) rotate(1.5deg); box-shadow: 0 40px 60px -20px rgb(59 30 23 / 0.5); } }
@keyframes stamp { from { transform: scale(0.4); opacity: 0; } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__box { margin-right: calc(-1 * var(--side)); margin-left: 0; }
  .stamp { left: auto; right: calc(var(--side) + 8px); bottom: -36px; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- čo je v krabičke ---------- */
.box {
  background: var(--cream-pink);
  padding: var(--space) var(--side);
}
.box > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.box__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.box__lede { max-width: 44ch; font-weight: 500; }

.anatomy { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.anatomy__photo { position: relative; }
.anatomy__photo img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.pin {
  position: absolute; left: var(--x); top: var(--y);
  translate: -50% -50%;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 3px solid var(--white);
  background: var(--choc); color: var(--white);
  font-weight: 700; font-size: 1rem; line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgb(59 30 23 / 0.45);
  transition: background-color 0.2s, scale 0.25s var(--ease);
}
.pin:hover, .pin.is-on { background: var(--rasp); scale: 1.18; }
.legend { display: grid; gap: 2px; counter-reset: l; }
.legend li {
  counter-increment: l;
  display: grid; grid-template-columns: 34px 1fr; column-gap: 14px;
  padding: 10px 12px; border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.legend li::before {
  content: counter(l);
  grid-row: span 2;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--choc); color: var(--white); font-weight: 700; font-size: 0.9375rem;
  transition: background-color 0.2s;
}
.legend b { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.legend span { font-size: 0.9375rem; color: var(--choc-soft); }
.legend li:hover, .legend li.is-on { background: var(--white); }
.legend li.is-on::before { background: var(--rasp); }

.sizes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 20px clamp(20px, 3vw, 40px); align-items: center;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 2px dashed rgb(216 50 106 / 0.35);
}
.size { position: relative; padding-right: 12px; }
.size__count { font-weight: 700; font-size: 1.125rem; }
.size__count b { font-family: var(--display); font-weight: 400; font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem); line-height: 0.9; color: var(--rasp-ink); margin-right: 6px; }
.size__for { color: var(--choc-soft); font-size: 0.9375rem; margin-top: 4px; }
.size__price { display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 999px; background: var(--choc); color: var(--white); font-weight: 700; font-size: 1.125rem; }
.sizes__note { font-size: 0.9375rem; color: var(--choc-soft); max-width: 46ch; }

@media (max-width: 960px) {
  .box__head, .anatomy { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr 1fr; }
  .sizes { grid-template-columns: 1fr 1fr; }
  .sizes__note { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .pin { width: 30px; height: 30px; font-size: 0.8125rem; border-width: 2px; }
  .legend { grid-template-columns: 1fr; }
  .legend li { padding: 8px 6px; }
}

/* ---------- ako objednať ---------- */
.how {
  background: var(--choc); color: var(--kraft);
  padding: var(--space) var(--side);
}
.how > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.how .h2 { color: var(--cream-pink); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(36px, 4vw, 56px); margin-bottom: clamp(36px, 4vw, 56px); }
.steps li { border-top: 2px solid rgb(228 195 156 / 0.35); padding-top: 22px; }
.steps__n { display: block; font-family: var(--display); font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem); line-height: 0.9; color: var(--pista); }
.steps h3 { margin-top: 14px; font-size: 1.375rem; font-weight: 700; line-height: 1.25; color: var(--white); }
.steps p { margin-top: 8px; max-width: 34ch; }
.how .btn { margin-left: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- príležitosti ---------- */
.year { width: var(--page); margin: 0 auto; padding: var(--space) 0; }
.year__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.year__head p { max-width: 44ch; font-weight: 500; }
.year__list { border-top: 2px solid var(--choc); }
.year__list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 2fr) minmax(0, 5fr) minmax(0, 5fr) 96px;
  gap: 8px 28px; align-items: center;
  padding: 18px 12px;
  border-bottom: 1.5px solid var(--kraft-line);
  transition: background-color 0.2s;
}
.year__when { font-weight: 600; font-size: 0.9375rem; color: var(--choc-soft); }
.year__list h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; }
.year__list p { color: var(--choc); }
.year__list img { grid-column: 4; width: 96px; height: 72px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.year__list li.is-next { background: var(--pista); border-radius: 16px; border-bottom-color: transparent; }
.year__list li.is-next .year__when { color: var(--choc); }
.year__list li.is-next::after {
  content: "najbližšie";
  position: absolute; right: 12px; top: -12px;
  padding: 3px 12px; border-radius: 999px;
  background: var(--rasp); color: var(--white);
  font-weight: 700; font-size: 0.8125rem;
}
.year__list li.has-photo.is-next::after { right: 120px; }
@media (max-width: 760px) {
  .year__head { grid-template-columns: 1fr; }
  .year__list li { grid-template-columns: minmax(0, 1fr) 72px; gap: 2px 16px; padding: 16px 8px; }
  .year__when, .year__list h3, .year__list p { grid-column: 1; }
  .year__list img { grid-column: 2; grid-row: 1 / span 3; width: 72px; height: 72px; }
  .year__list li.is-next::after, .year__list li.has-photo.is-next::after { right: 8px; }
}

/* ---------- torty ---------- */
.cakes {
  background: var(--cream-pink);
  padding: var(--space) var(--side);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.cakes > * { min-width: 0; }
@media (min-width: 1416px) { .cakes { padding-left: calc((100% - 1320px) / 2); padding-right: calc((100% - 1320px) / 2); } }
.cakes__intro { position: sticky; top: 24px; }
.cakes__intro > p { margin-top: 18px; max-width: 38ch; font-weight: 500; }
.brief { margin-top: 32px; background: var(--white); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.brief h3 { font-size: 1.1875rem; font-weight: 700; }
.brief ul { margin: 12px 0 14px; display: grid; gap: 6px; }
.brief li { position: relative; padding-left: 22px; }
.brief li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--rasp); }
.brief__note { font-size: 0.9375rem; color: var(--choc-soft); margin-bottom: 18px; }

/* fotky v prirodzenom pomere, dva stĺpce ako na nástenke */
.cakes__grid { columns: 2; column-gap: clamp(16px, 2vw, 28px); }
.cake { break-inside: avoid; margin-bottom: clamp(20px, 2.4vw, 32px); }
.cake button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 20px; }
.cake img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); transition: transform 0.4s var(--ease); }
.cake button:hover img { transform: scale(1.015); }
.cake p { margin-top: 10px; font-weight: 600; }
@media (max-width: 960px) {
  .cakes { grid-template-columns: 1fr; }
  .cakes__intro { position: static; }
}
@media (max-width: 520px) {
  .cakes__grid { gap: 14px; }
  .cake p { font-size: 0.9375rem; }
}

/* ---------- candy bar ---------- */
.candy {
  width: var(--page); margin: 0 auto; padding: var(--space) 0;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.candy__photos { position: relative; padding: 0 12% 14% 0; }
.candy__big { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.candy__small { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--kraft); box-shadow: var(--shadow); }
.candy__text p { margin-top: 18px; max-width: 42ch; }
.candy__text .btn { margin-top: 28px; }
@media (max-width: 900px) { .candy { grid-template-columns: 1fr; } }

/* ---------- recenzie ---------- */
.reviews { width: var(--page); margin: 0 auto; padding: 0 0 var(--space); }
.reviews__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(32px, 4vw, 56px);
}
.quote { border-top: 2px solid var(--choc); padding-top: 18px; }
.quote p { font-size: 1.125rem; line-height: 1.5; max-width: 40ch; }
.quote footer { margin-top: 12px; font-weight: 700; color: var(--rasp-ink); }
.quote--big { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
.quote--big p { font-family: var(--display); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.15; max-width: 28ch; color: var(--choc); }
.reviews__more { margin-top: 36px; font-weight: 700; }

/* certifikát */
.cert {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(20px, 3vw, 48px); align-items: center;
  margin-top: clamp(48px, 6vw, 88px);
  padding: clamp(24px, 3.5vw, 44px);
  background: var(--cream-pink); border-radius: 32px;
}
.cert__seal { width: clamp(120px, 12vw, 168px); aspect-ratio: 200 / 212; height: auto; rotate: -8deg; filter: drop-shadow(0 10px 14px rgb(59 30 23 / 0.28)); }
.cert__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.08; color: var(--rasp-ink); text-wrap: balance; }
.cert__text p { margin-top: 12px; max-width: 46ch; }
.cert__doc { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; rotate: 2deg; transition: rotate 0.4s var(--ease); }
.cert__doc:hover { rotate: 0deg; }
.cert__doc img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.cert__doc span { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--choc); color: var(--white); font-weight: 700; font-size: 0.875rem; }
@media (max-width: 960px) {
  .cert { grid-template-columns: auto minmax(0, 1fr); }
  .cert__doc { grid-column: 1 / -1; max-width: 460px; }
}
@media (max-width: 560px) {
  .cert { grid-template-columns: 1fr; text-align: left; }
  .cert__seal { width: 120px; }
}
@media (max-width: 860px) { .reviews__list { grid-template-columns: 1fr; } }

/* ---------- kontakt ---------- */
.contact {
  background: var(--choc) var(--fiber); color: var(--kraft);
  padding: var(--space) var(--side);
  text-align: center;
}
.contact__title { font-family: var(--display); font-weight: 400; font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem); line-height: 0.95; color: var(--rasp); }
.contact__lede { margin: 20px auto 0; max-width: 40ch; font-size: 1.1875rem; }
.contact__phone {
  display: inline-block; margin-top: 32px;
  font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: 0.01em;
  color: var(--white); text-decoration: none; font-variant-numeric: tabular-nums;
}
.contact__phone:hover { color: var(--cream-pink); text-decoration: underline; text-decoration-thickness: 3px; }
.contact__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact__where { display: flex; justify-content: center; align-items: center; gap: 8px; max-width: 40ch; margin: 32px auto 0; font-size: 1rem; }

/* ---------- pätička ---------- */
.foot { width: var(--page); margin: 0 auto; padding: 28px 0 110px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; font-weight: 500; }
.foot__name { font-family: var(--display); color: var(--rasp-ink); font-size: 1.25em; }
.foot__small { font-size: 0.875rem; color: var(--choc-soft); }
@media (min-width: 761px) { .foot { padding-bottom: 32px; } }

/* plávajúce tlačidlo na mobile */
.dock {
  position: fixed; left: 50%; bottom: 14px; z-index: 50; translate: -50% 0;
  display: none; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--rasp); color: var(--white);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 28px -8px rgb(59 30 23 / 0.6);
  transition: translate 0.4s var(--ease), opacity 0.3s;
}
@media (max-width: 760px) { .dock { display: inline-flex; } }
.dock.is-hidden { translate: -50% 150%; opacity: 0; pointer-events: none; }

/* zväčšená fotka */
.zoom { border: 0; padding: 0; max-width: min(92vw, 1000px); max-height: 92vh; background: none; overflow: visible; }
.zoom::backdrop { background: rgb(59 30 23 / 0.82); }
.zoom img { max-height: 92vh; width: auto; border-radius: 18px; }
.zoom__close { position: absolute; right: -12px; top: -12px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--rasp); color: var(--white); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
