/* КАЗКІ — сказочные пряники ручной работы */

:root {
  --cream: #fff6d8;
  --paper: #fff8e8;
  --icing: #fffdf6;
  --ink: #3a2418;
  --muted: #6a5344;
  --berry: #e84a8e;
  --berry-deep: #d63384;
  --blush: #f7b6ce;
  --honey: #f3b20f;
  --honey-soft: #f7c63a;
  --mustard: #f3b20f;
  --chocolate: #3a2418;
  --line: rgba(58, 36, 24, 0.12);
  --shadow: 0 16px 40px rgba(58, 36, 24, 0.12);
  --radius: 22px;
  --header: 76px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --ease: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(800px 420px at 12% 110%, rgba(232, 74, 142, 0.12), transparent 55%),
    radial-gradient(700px 480px at 100% 80%, rgba(232, 176, 26, 0.22), transparent 50%);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; }
ul { list-style: none; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.header, .hero, .section, .footer, .order-bar, .modal {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled {
  opacity: 0.55;
  transform: none;
  cursor: wait;
  pointer-events: none;
}
.btn--primary {
  background: var(--berry);
  color: #fff;
}
.btn--primary:hover { background: var(--berry-deep); }
.btn--ghost {
  background: transparent;
  border: 2px solid var(--chocolate);
  color: var(--chocolate);
}
.btn--light {
  background: #fff;
  color: var(--berry-deep);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: var(--mustard);
  border-bottom: 1px solid rgba(58, 36, 24, 0.12);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--mustard);
}

.nav {
  display: flex;
  gap: 22px;
  font-weight: 800;
  font-size: 14px;
}
.nav a { color: var(--chocolate); opacity: 0.78; }
.nav a:hover { opacity: 1; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone { font-weight: 800; font-size: 14px; color: var(--chocolate); }
.burger { display: none; width: 42px; height: 42px; color: var(--chocolate); font-size: 22px; }

/* Hero — full-page logo */
.hero {
  min-height: 100svh;
  margin-top: calc(var(--header) * -1);
  padding: calc(var(--header) + 12px) 20px 36px;
  background: var(--mustard);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__scatter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__polaroid {
  position: absolute;
  width: min(230px, 18vw);
  margin: 0;
  padding: 10px 10px 22px;
  background: var(--icing);
  border-radius: 4px 4px 14px 14px;
  box-shadow:
    0 1px 1px rgba(58, 36, 24, 0.18),
    0 6px 10px rgba(58, 36, 24, 0.12),
    0 18px 28px rgba(58, 36, 24, 0.16),
    0 36px 56px rgba(58, 36, 24, 0.2);
}
.hero__polaroid::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -6px;
  height: 18px;
  background: rgba(58, 36, 24, 0.22);
  filter: blur(10px);
  border-radius: 50%;
  z-index: -1;
}
.hero__polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(58, 36, 24, 0.06);
}
.hero__polaroid--left {
  top: 28%;
  left: 2.5%;
  transform: rotate(-8deg);
}
.hero__polaroid--right {
  top: 34%;
  right: 2.5%;
  transform: rotate(7deg);
}

.hero__cookie {
  position: absolute;
  z-index: 2;
  display: block;
  width: min(176px, 14vw);
}
.hero__cookie img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(0);
}
.hero__cookie::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 7%;
  height: 14%;
  background: rgba(58, 36, 24, 0.28);
  filter: blur(8px);
  border-radius: 50%;
  z-index: -1;
}
.hero__cookie--owl {
  top: 11%;
  left: 7%;
  width: min(188px, 15vw);
  transform: rotate(-12deg);
}
.hero__cookie--flower {
  top: 9%;
  right: 6%;
  width: min(196px, 16vw);
  transform: rotate(14deg);
}
.hero__cookie--apple {
  bottom: 9%;
  left: 6%;
  width: min(150px, 12vw);
  transform: rotate(10deg);
}
.hero__cookie--chick {
  bottom: 11%;
  right: 5%;
  width: min(160px, 13vw);
  transform: rotate(-12deg);
}

.hero__stage {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__mark {
  width: min(920px, 94%);
  height: auto;
  max-height: clamp(180px, 32vh, 340px);
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.hero__tag {
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--chocolate);
  font-size: 13px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(26px, 4.2vw, 48px);
  margin: 0 auto 12px;
  max-width: 16ch;
  color: var(--chocolate);
}

.hero__lead {
  font-size: 17px;
  color: var(--chocolate);
  opacity: 0.82;
  max-width: 540px;
  margin: 0 auto;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(58, 36, 24, 0.16);
  width: min(640px, 100%);
}
.hero__meta b { display: block; font-family: var(--font-display); font-size: 28px; color: var(--chocolate); }
.hero__meta span { color: var(--chocolate); opacity: 0.7; font-size: 13px; font-weight: 700; }

.hero__scroll {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chocolate);
  opacity: 0.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--berry-deep);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* Sections */
.section { padding: 72px 0; }
.section__head { margin-bottom: 32px; }
.section__head h2 { font-size: clamp(32px, 4vw, 52px); margin-top: 8px; }
.section__head p { color: var(--muted); max-width: 560px; margin-top: 10px; }

.themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.theme-card:nth-child(1) { grid-column: span 2; min-height: 280px; }
.theme-card {
  position: relative;
  min-height: 220px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow);
}
.theme-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}
.theme-card:hover img { transform: scale(1.1); }
.theme-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(40, 16, 22, 0.78));
}
.theme-card span, .theme-card b {
  position: relative;
  z-index: 1;
}
.theme-card__body {
  position: absolute;
  inset: auto 18px 16px;
  z-index: 1;
}
.theme-card b { display: block; font-family: var(--font-display); font-size: 30px; }
.theme-card span { opacity: 0.86; font-size: 13px; font-weight: 700; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--muted);
}
.filter.is-active {
  background: var(--chocolate);
  color: var(--mustard);
  border-color: var(--chocolate);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--icing);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(90, 40, 50, 0.06);
  transition: transform var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card__media {
  aspect-ratio: 1;
  background: #f0ddd0;
  position: relative;
}
.card__media img, .card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 800;
}
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { font-family: var(--font-display); font-size: 26px; }
.card__body p { color: var(--muted); font-size: 14px; flex: 1; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--berry-deep);
}
.price small { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 700; }

.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.reel {
  position: relative;
  aspect-ratio: 9/14;
  border-radius: 24px;
  overflow: hidden;
  background: #2a1816;
  box-shadow: var(--shadow);
}
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel__cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.about__photo {
  border-radius: 36px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.about h2 { font-size: clamp(32px, 4vw, 52px); margin: 8px 0 16px; }
.about p { color: var(--muted); margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.fact {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line);
}
.fact b { display: block; font-family: var(--font-display); font-size: 22px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--line);
}
.step i {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--berry);
}
.step h3 { margin: 8px 0 8px; font-family: var(--font-display); font-size: 24px; }
.step p { color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
}
.panel h2 { margin-bottom: 14px; }
.panel__lead { color: var(--muted); margin-bottom: 16px; }
.panel li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.panel li strong { color: var(--ink); }
.panel .btn--primary { width: 100%; }
.form-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 800;
}
.form-alt a { color: var(--berry-deep); }
.form-status {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
}
.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: #3b6d11; }
.form-success {
  padding: 8px 0 4px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 8px;
}
.form-success p { color: var(--muted); }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--line);
}
.review p { font-family: var(--font-display); font-size: 22px; font-style: italic; margin-bottom: 16px; }
.review span { color: var(--muted); font-size: 13px; font-weight: 700; }

.contacts {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}
.contact-card {
  background: var(--chocolate);
  color: #fff8e8;
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-card h2 { color: #fff; margin: 8px 0 16px; }
.contact-card a { color: #fff; font-weight: 800; }
.contact-card .btn--light { color: var(--berry-deep); }
.contact-card p { opacity: 0.9; margin-bottom: 10px; }
.legal-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.25);
  font-size: 13px;
  opacity: 0.85;
}

.footer {
  padding: 28px 0 110px;
  color: var(--muted);
  font-size: 13px;
}
.footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.order-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 30;
  display: none;
  width: min(520px, calc(100% - 24px));
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.contact-card address {
  font-style: normal;
  opacity: 0.9;
  margin-bottom: 10px;
}

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.faq__item {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--line);
}
.faq__item h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}
.faq__item p { color: var(--muted); font-size: 15px; }
.faq__item a {
  color: var(--berry-deep);
  font-weight: 800;
}

.seo-offers {
  margin-top: 18px;
  color: var(--muted);
}
.seo-offers li { padding: 6px 0; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: rgba(40, 18, 22, 0.46);
  padding: 20px;
}
.modal.is-open { display: grid; }
.modal__box {
  width: min(520px, 100%);
  background: var(--paper);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.modal__box h2 { margin-bottom: 8px; }
.modal__box p { color: var(--muted); margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 700; font-size: 13px; }
.field input, .field select, .field textarea {
  font: inherit;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.modal__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.modal__close { float: right; font-size: 24px; color: var(--muted); }

@media (max-width: 960px) {
  .nav, .header__phone { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--mustard);
    padding: 16px 20px 20px;
    border-bottom: 1px solid rgba(58, 36, 24, 0.12);
  }
  .burger { display: grid; place-items: center; }
  .about, .contacts, .split, .themes, .catalog, .reels, .steps, .reviews, .faq {
    grid-template-columns: 1fr 1fr;
  }
  .themes { grid-template-columns: 1fr 1fr; }
  .hero__mark { max-height: clamp(160px, 28vh, 240px); width: 92%; }
  .hero__polaroid { width: min(170px, 22vw); }
  .hero__cookie--owl, .hero__cookie--flower { width: min(120px, 16vw); }
  .hero__cookie--apple, .hero__cookie--chick { width: min(110px, 14vw); }
}

@media (max-width: 720px) {
  .about, .contacts, .split, .catalog, .reels, .steps, .reviews, .facts, .themes, .faq {
    grid-template-columns: 1fr;
  }
  .theme-card:nth-child(1) { grid-column: auto; min-height: 220px; }
  .order-bar { display: flex; }
  .header .btn--primary { display: none; }
  .hero { padding-bottom: 88px; }
  .hero h1 { font-size: 26px; }
  .hero__mark { max-height: 26vh; width: 92%; }
  .hero__polaroid { display: none; }
  .hero__cookie--owl {
    top: 12%;
    left: -18px;
    width: 96px;
  }
  .hero__cookie--flower {
    top: 14%;
    right: -22px;
    width: 100px;
  }
  .hero__cookie--apple,
  .hero__cookie--chick { display: none; }
}
