/* ТинкАрт: хартия, мастило и свещи */

@property --gx { syntax: "<length-percentage>"; inherits: false; initial-value: 78%; }
@property --gy { syntax: "<length-percentage>"; inherits: false; initial-value: 30%; }

:root {
  /* хартия */
  --paper: #F6EEDF;
  --paper-2: #EFE3CC;
  /* мастило */
  --pepper: #B3261E;
  --pepper-ink: #8C1C15;
  /* дърво */
  --walnut: #2E1D16;
  --walnut-2: #5B4136;
  /* вечер */
  --wine: #2C1220;
  --candle: #F2B544;
  --candle-soft: #F8DDA6;
  --mist: #E9DACD;
  /* природа */
  --leaf: #436B31;
  --leaf-bright: #6F9446;

  --focus: var(--pepper-ink);

  --font-display: "Alegreya", Georgia, "Times New Roman", serif;
  --font-body: "Sofia Sans", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-hand: "Marck Script", "Segoe Script", cursive;

  --fs-sm: 0.9375rem;
  --fs-base: 1.125rem;
  --fs-lg: clamp(1.6rem, 1.25rem + 1.2vw, 2.15rem);
  --fs-xl: clamp(2.3rem, 1.5rem + 3vw, 3.9rem);
  --fs-mark: clamp(3.6rem, 1.4rem + 10vw, 8.75rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 74rem;
  --header-h: 76px;
  --radius-hand: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --ease-out: cubic-bezier(.22, .9, .24, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --vine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16'%3E%3Cpath d='M0 8c20-6 40 6 60 0s40 6 60 0' fill='none' stroke='%23B3261E' stroke-opacity='.5' stroke-width='1.4'/%3E%3Cpath d='M28 5.5q5-6 11-4.5-4 6-11 4.5zM88 10.5q5 6 11 4.5-4-6-11-4.5z' fill='%23B3261E' fill-opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--walnut);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--pepper); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--pepper-ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--walnut);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--paper); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.note {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--pepper);
  transform: rotate(-4deg);
}

.note--circled { position: relative; padding: .15em .45em; }
.note--circled::after {
  content: "";
  position: absolute;
  inset: -.4em -.5em -.35em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M22 46C14 20 70 7 114 9s78 13 76 32-50 31-98 30S8 60 15 38c5-15 40-26 76-28' fill='none' stroke='%23B3261E' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* ---------- бутони ---------- */
.btn {
  --btn-bg: var(--pepper);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .7em 1.4em;
  font: 600 1.0625rem/1.2 var(--font-body);
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius-hand);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease-out);
}
.btn:hover { --btn-bg: var(--pepper-ink); color: var(--btn-fg); }
.btn:active { transform: translateY(1px) scale(.98); }

.btn--ghost {
  --btn-fg: var(--pepper);
  background: transparent;
  border-color: var(--pepper);
}
.btn--ghost:hover { --btn-fg: var(--pepper-ink); background: rgb(179 38 30 / .08); border-color: var(--pepper-ink); }

.btn--candle { --btn-bg: var(--candle); --btn-fg: var(--wine); }
.btn--candle:hover { --btn-bg: var(--candle-soft); }

.btn--small { min-height: 44px; padding: .5em 1.05em; font-size: 1rem; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

/* ---------- лого ---------- */
.logo {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: url("../assets/logo-320.jpg") center / cover no-repeat;
  mix-blend-mode: multiply;
}
.logo--large { width: 132px; height: 132px; }

/* ---------- хедър ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--gutter);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background-color: rgb(246 238 223 / .94);
  box-shadow: 0 1px 0 rgb(46 29 22 / .1), 0 10px 30px -18px rgb(46 29 22 / .35);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background-color: rgb(246 238 223 / .82); backdrop-filter: blur(8px) saturate(1.1); }
}

.brand { flex: none; border-radius: 50%; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  gap: clamp(.75rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list a {
  position: relative;
  display: inline-block;
  padding: .5rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--walnut);
  text-decoration: none;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .2rem;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4c20-3 50-3 98-1' fill='none' stroke='%23B3261E' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav__list a:hover::after,
.nav__list a[aria-current]::after { transform: scaleX(1); }
.nav__list a:hover { color: var(--pepper); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 .6rem;
  font: 600 1rem var(--font-body);
  color: var(--walnut);
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle-lines,
.nav__toggle-lines::before,
.nav__toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav__toggle-lines { position: relative; }
.nav__toggle-lines::before,
.nav__toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav__toggle-lines::before { top: -6px; }
.nav__toggle-lines::after { top: 6px; }
.is-open .nav__toggle-lines { background: transparent; }
.is-open .nav__toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav__toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 60rem) {
  .nav { order: 3; margin-left: 0; }
  .header-call { margin-left: auto; }
  .nav__toggle { display: inline-flex; order: 4; }
  .nav__list {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gutter) 1.75rem;
    background-color: var(--paper);
    background-image: var(--grain);
    box-shadow: 0 24px 30px -24px rgb(46 29 22 / .4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
  }
  .is-open .nav__list {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s, transform .25s var(--ease-out);
  }
  .nav__list a {
    display: block;
    padding: .7rem 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
  }
  .nav__list a::after { bottom: .45rem; right: auto; width: 4.5rem; }
}

@media (max-width: 26rem) {
  .header-call { padding-inline: .8em; }
  .btn { padding-inline: 1em; font-size: 1rem; }
}

/* ---------- герой ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(100svh, 680px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--header-h) + .5rem) var(--gutter) clamp(2rem, 5vh, 3.25rem);
  overflow: hidden;
  text-align: center;
}

.hero__tree {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero__crown { flex: 1 1 auto; min-height: 28vh; }

.hero__mark {
  display: flex;
  align-items: flex-end;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: var(--fs-mark);
  line-height: .86;
  letter-spacing: -.012em;
  color: var(--pepper);
  pointer-events: none;
}
.hero__word {
  display: block;
  text-shadow: 0 0 .1em var(--paper), 0 0 .22em var(--paper), 0 0 .4em var(--paper);
  animation: rise 1.1s var(--ease-out) .55s backwards;
}
.hero__word + .hero__trunk + .hero__word { animation-delay: .72s; }
.hero__trunk { flex: none; width: clamp(1.7rem, 4.6vw, 4rem); }

.ribbon {
  position: relative;
  display: inline-grid;
  place-items: center;
  margin: clamp(.6rem, 1.6vh, 1.1rem) 0 0;
  padding: .55em 2.6em .85em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, .9rem + .8vw, 1.5rem);
  line-height: 1.1;
  color: var(--pepper);
  animation: rise .9s var(--ease-out) 1s backwards;
}
.ribbon > span { position: relative; }
.ribbon__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ribbon__band, .ribbon__tail {
  fill: var(--paper);
  stroke: var(--pepper);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ribbon__fold { fill: var(--pepper-ink); }

.hero__roots { flex: 0 0 clamp(4.5rem, 12vh, 8.5rem); }

.hero__lead {
  position: relative;
  max-width: 40ch;
  margin: 0 auto;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  line-height: 1.5;
  color: var(--walnut-2);
  text-wrap: balance;
  animation: rise .9s var(--ease-out) 1.25s backwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1rem;
  margin-top: 1.4rem;
  animation: rise .9s var(--ease-out) 1.4s backwards;
}

/* восъчен печат */
.seal {
  display: block;
  width: clamp(92px, 10vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(0 4px 3px rgb(46 29 22 / .28));
}
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal__fallback, .seal__edge { fill: var(--pepper); }
.seal__ring { fill: none; stroke: rgb(246 238 223 / .5); stroke-width: 1.2; }
.seal__arc-text {
  font: 600 7.4px var(--font-body);
  fill: var(--paper);
  letter-spacing: .5px;
}
.seal__day {
  font: italic 800 27px var(--font-display);
  fill: var(--paper);
}
.seal__month {
  font: 600 7.6px var(--font-body);
  fill: var(--paper);
}
.seal__tree path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}
.seal__tree path:first-child { stroke-width: 5; }

.seal--hero {
  position: absolute;
  top: calc(var(--header-h) + 3vh);
  right: clamp(1rem, 8vw, 9rem);
  z-index: 2;
  transform: rotate(-9deg);
  transition: transform .4s var(--ease-out);
  animation: stamp .75s cubic-bezier(.3, 1.5, .5, 1) 2.3s backwards;
}
.seal--hero:hover { transform: rotate(-3deg) scale(1.05); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(5px); }
}
@keyframes stamp {
  from { opacity: 0; transform: scale(1.7) rotate(-26deg); }
}

@media (max-width: 40rem) {
  .seal--hero { width: 84px; top: calc(var(--header-h) + 10px); right: .75rem; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 22rem; }
}

/* ---------- плик с покана (начална страница) ---------- */
.announce {
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  background-color: var(--paper-2);
  background-image: var(--grain);
}

.envelope {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "sender post"
    "address address"
    "open open";
  gap: 1.5rem 2rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  /* въздушна поща: червено за ТинкАрт, зелено за Лютеница */
  border: 11px solid transparent;
  border-image: repeating-linear-gradient(-45deg,
    var(--pepper) 0 14px, transparent 14px 22px,
    var(--leaf-bright) 22px 36px, transparent 36px 44px) 11;
  background-color: #FBF6EC;
  background-image: var(--grain);
  box-shadow: 0 34px 44px -26px rgb(46 29 22 / .4), 0 2px 4px rgb(46 29 22 / .12);
  transform: rotate(-1deg);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.envelope:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 44px 56px -28px rgb(46 29 22 / .45), 0 2px 4px rgb(46 29 22 / .12);
}

.envelope__sender {
  grid-area: sender;
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--walnut-2);
}
.envelope__from { display: block; font-size: 1.6rem; color: var(--pepper); }

.envelope__post { grid-area: post; position: relative; }
.stamp {
  width: clamp(72px, 9vw, 96px);
  transform: rotate(4deg);
  filter: drop-shadow(0 2px 2px rgb(46 29 22 / .18));
}
.stamp__paper { fill: #FFFBF2; }
.stamp__perf { fill: none; stroke: #FBF6EC; stroke-width: 6; stroke-dasharray: 0 8; stroke-linecap: round; }
.stamp__frame { fill: none; stroke: var(--pepper); stroke-width: 1.4; }
.stamp__tree path { fill: none; stroke: var(--pepper); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.stamp__tree path:first-child { stroke-width: 5.5; }
.stamp__name { font: italic 800 11px var(--font-display); fill: var(--pepper); }

.postmark {
  position: absolute;
  top: 24%;
  right: 38%;
  width: clamp(150px, 19vw, 210px);
  max-width: none;
  fill: none;
  stroke: var(--walnut);
  stroke-width: 2;
  opacity: .5;
  transform: rotate(-11deg);
  filter: url(#ink-wobble);
  pointer-events: none;
}
.postmark text { fill: var(--walnut); stroke: none; }
.postmark__city { font: 700 11px var(--font-body); letter-spacing: 2px; }
.postmark__date { font: 700 17px var(--font-body); }

.envelope__address {
  grid-area: address;
  padding-left: clamp(0rem, 10vw, 9rem);
}
.envelope__to {
  margin-bottom: .35rem;
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
  line-height: 1.2;
  color: var(--walnut-2);
}
.envelope__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  line-height: 1.04;
  text-wrap: balance;
}
.envelope__date {
  margin: .6rem 0 .9rem;
  font-family: var(--font-hand);
  font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem);
  line-height: 1.2;
  color: var(--pepper);
}
.envelope__line {
  max-width: 46ch;
  padding-bottom: .9rem;
  color: var(--walnut-2);
  /* редове за адрес като на истински плик */
  background: linear-gradient(rgb(46 29 22 / .18), rgb(46 29 22 / .18)) 0 100% / 100% 1px no-repeat;
}

.envelope__open { grid-area: open; justify-self: end; }
/* целият плик е връзка към поканата */
.envelope__open::after {
  content: "";
  position: absolute;
  inset: -11px;
}

@media (max-width: 40rem) {
  .envelope { transform: rotate(-.6deg); gap: 1.25rem 1rem; }
  .envelope__open { justify-self: stretch; }
  .postmark { right: 34%; top: 52%; width: 122px; }
}

/* ---------- страницата с поканата ---------- */
.invite {
  padding: clamp(5rem, 11vw, 8.5rem) var(--gutter) clamp(4rem, 9vw, 7rem);
  background-color: var(--paper-2);
  background-image: var(--grain);
}
.invite--page { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)); }
.invite--404 { min-height: 100svh; display: grid; align-content: center; padding-top: clamp(5rem, 10vw, 7rem); }

.back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  margin: 0 auto clamp(4rem, 7vw, 5rem);
  font-weight: 600;
  color: var(--walnut-2);
  text-decoration: none;
}
.back:hover { color: var(--pepper); }
.back .icon { stroke-width: 2; }
.invite__top { max-width: 62rem; margin: 0 auto; }

.invite--page .letter { animation: letter-in 1s var(--ease-out) .15s backwards; }
.invite--page .seal--letter { animation: seal-in .7s cubic-bezier(.3, 1.5, .5, 1) .9s backwards; }
@keyframes letter-in { from { opacity: 0; transform: translateY(48px) rotate(2deg); } }
@keyframes seal-in { from { opacity: 0; transform: scale(1.8) rotate(-24deg); } }

.letter {
  position: relative;
  isolation: isolate;
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 5.5rem) clamp(1.25rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  transform: rotate(-.6deg);
}
.letter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--paper);
  background-image: var(--grain);
  filter: url(#deckle) drop-shadow(0 22px 30px rgb(46 29 22 / .16)) drop-shadow(0 2px 3px rgb(46 29 22 / .14));
}

.seal--letter {
  position: absolute;
  top: -48px;
  left: 50%;
  width: 96px;
  margin-left: -48px;
  transform: rotate(8deg);
}

.letter__date {
  margin: 0 0 .35rem;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--pepper);
  text-align: center;
}

.letter__title {
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
}

.letter__intro {
  max-width: 50ch;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--walnut-2);
  text-wrap: pretty;
}

.program {
  display: grid;
  gap: 3rem;
}
@media (min-width: 54rem) {
  .program { grid-template-columns: 1fr 1fr; gap: 0; }
  .program > .event:first-child { padding-right: clamp(1.5rem, 3vw, 3rem); }
  .program > .event + .event {
    padding-left: clamp(1.5rem, 3vw, 3rem);
    border-left: 2px dashed rgb(179 38 30 / .3);
  }
}

.event {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 1.25rem;
  align-items: start;
}
.event__art { width: 100%; color: var(--pepper); margin-top: .25rem; }
@media (max-width: 34rem) {
  .event { grid-template-columns: 1fr; gap: .75rem; }
  .event__art { width: 4rem; }
  .letter__actions .btn { flex: 1 1 100%; }
}

.event__time {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--pepper);
}
.program--single { grid-template-columns: 1fr !important; max-width: 40rem; margin-inline: auto; }
.program--single > .event { padding: 0 !important; border: 0 !important; }

.event__title {
  margin-top: .4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.12;
  text-wrap: balance;
}
.event__who { margin: .2rem 0 .9rem; font-weight: 600; color: var(--walnut-2); }
.event__incl { font-size: 1.0625rem; color: var(--walnut-2); }
.event__incl strong { color: var(--walnut); font-weight: 700; }
.event__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.25rem;
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1;
}

.letter__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 2px dashed rgb(179 38 30 / .3);
}
.letter__cta { flex: 1 1 26rem; }
.letter__cta > p { max-width: 46ch; color: var(--walnut-2); }
.letter__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.letter__sign {
  margin: 0 0 0 auto;
  font-family: var(--font-hand);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--pepper);
  transform: rotate(-5deg);
}

/* когато няма предстоящи събития */
.letter--empty { max-width: 46rem; text-align: center; }
.letter--empty .letter__intro { margin-bottom: 2rem; }
.letter__actions--center { justify-content: center; }
.letter__sign--center { margin: 2.5rem auto 0; }

/* илюстрации с мастило */
.ink {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#ink-wobble);
}
.ink--fill { fill: currentColor; fill-opacity: .9; }

/* ---------- за нас ---------- */
.story {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) var(--gutter);
}
@media (min-width: 60rem) {
  .story { grid-template-columns: 1fr 1.05fr; }
}
.story__text .section-title { margin-bottom: 1.5rem; }
.story__text p { max-width: 48ch; color: var(--walnut-2); }

.legend {
  display: grid;
  gap: .6rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.legend li { display: flex; align-items: center; gap: .75rem; }
.legend__mark {
  flex: none;
  width: 28px;
  height: 12px;
  border-radius: 6px 2px 6px 2px;
}
.legend__mark--leaf { background: var(--leaf-bright); }
.legend__mark--pepper { background: var(--pepper); }

.year {
  position: relative;
  width: 100%;
  max-width: 31rem;
  margin: 0;
  justify-self: center;
}
.year__ring { width: 100%; height: auto; overflow: visible; }
.year__arc { fill: none; }
.year__arc--city { stroke: var(--pepper); }
.year__arc--summer { stroke: var(--leaf-bright); }
.year__label {
  font: 600 15px var(--font-body);
  fill: var(--walnut-2);
}
.year__label.is-now { fill: var(--pepper); font-weight: 800; }
.year__label.is-now.is-summer { fill: var(--leaf); }
.year__marker { fill: var(--candle); stroke: var(--pepper-ink); stroke-width: 1.4; }
.year__marker--leaf { fill: var(--leaf-bright); stroke: var(--leaf); }

.year__now {
  position: absolute;
  inset: 31%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  text-align: center;
  font-size: clamp(.85rem, .78rem + .3vw, 1rem);
  line-height: 1.3;
  color: var(--walnut-2);
}
.year__now strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.05;
  color: var(--pepper);
}
.year__now.is-summer strong { color: var(--leaf); }

/* ---------- занимания ---------- */
.offers {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(5rem, 11vw, 9rem);
}
.section-head { max-width: 42rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head .section-title { margin-bottom: 1rem; }
.section-head p { color: var(--walnut-2); max-width: 48ch; }

.offer {
  display: grid;
  gap: 1.25rem 2.5rem;
  padding: clamp(2.25rem, 4.5vw, 3.25rem) 0;
  background: var(--vine) 0 0 / 120px 16px repeat-x;
}
.offer__art { width: clamp(7.5rem, 16vw, 10.5rem); color: var(--pepper); }
.wreath { filter: url(#ink-wobble); }

.offer h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  line-height: 1.08;
}
.offer__for { margin: .4rem 0 .9rem; font-weight: 700; color: var(--pepper); }
.offer__text > p:last-child { max-width: 50ch; color: var(--walnut-2); }

.facts { display: grid; gap: 1rem; margin: 0; }
.facts dt { font-size: var(--fs-sm); color: var(--walnut-2); }
.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
}
.facts-wrap .note { margin-top: 1rem; }

/* ценоразпис */
.prices { display: grid; gap: 1.5rem; margin: 0; }
.price dt { font-weight: 700; line-height: 1.3; }
.price dt span { display: block; font-weight: 400; font-size: var(--fs-sm); color: var(--walnut-2); }
.price dd { margin: 0; }
.price__amount {
  margin-top: .3rem !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.05;
  color: var(--pepper);
}
.price__amount small { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--walnut-2); }
.price__incl { margin-top: .3rem !important; font-size: var(--fs-sm); line-height: 1.45; color: var(--walnut-2); }

@media (min-width: 46rem) {
  .offer { grid-template-columns: auto 1fr; align-items: start; }
  .offer > :last-child { grid-column: 2; }
  .facts { grid-template-columns: repeat(2, minmax(0, max-content)); gap: 1rem 2.5rem; }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
}
@media (min-width: 70rem) {
  .offer { grid-template-columns: auto minmax(0, 1fr) 17rem; }
  .offer > :last-child { grid-column: auto; padding-top: .35rem; }
  .facts, .prices { grid-template-columns: 1fr; }
}

/* ---------- арт работилници (тъмната секция) ---------- */
.night {
  --focus: var(--candle);
  position: relative;
  color: var(--paper);
  background-color: var(--wine);
  background-image:
    radial-gradient(38rem circle at var(--gx) var(--gy), rgb(242 181 68 / .17), transparent 62%),
    radial-gradient(30rem 22rem at 82% 92%, rgb(242 140 60 / .14), transparent 70%),
    var(--grain);
  padding: clamp(6rem, 12vw, 9.5rem) var(--gutter) clamp(5rem, 11vw, 8rem);
  transition: --gx .9s var(--ease-out), --gy .9s var(--ease-out);
}
.night::before,
.night::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='28'%3E%3Cpath d='M0 0H600V14L575 22L550 12L528 20L500 9L478 18L452 11L430 24L405 13L380 19L352 8L330 17L305 12L280 23L255 10L232 18L205 9L180 21L158 13L130 19L105 8L80 17L55 11L30 22L0 14Z' fill='%23F6EEDF'/%3E%3C/svg%3E") 0 0 / 600px 28px repeat-x;
  pointer-events: none;
}
.night::before { top: -1px; }
.night::after { bottom: -1px; transform: scaleY(-1); background-position: 230px 0; }

.night a:not(.btn) { color: var(--candle); }
.night a:not(.btn):hover { color: var(--candle-soft); }

.night__inner {
  display: grid;
  gap: 3rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (min-width: 62rem) {
  .night__inner { grid-template-columns: minmax(0, 1fr) 22rem; align-items: center; }
}

.night .section-title { color: var(--candle); }
.night__sub {
  margin: .2rem 0 1.75rem;
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  line-height: 1.2;
  color: var(--candle-soft);
}
.night__lead {
  max-width: 50ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
  line-height: 1.4;
  color: var(--paper);
}
.night__body { margin-top: 1.5rem; max-width: 60ch; color: var(--mist); }
.night__closing {
  margin: 1.75rem 0 0;
  font-family: var(--font-hand);
  font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem);
  line-height: 1.25;
  color: var(--candle);
}

.night__price {
  max-width: 60ch;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgb(242 181 68 / .3);
  color: var(--mist);
}
.night__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.25rem; }

.btn--ghost-light {
  --btn-fg: var(--candle-soft);
  background: transparent;
  border-color: rgb(248 221 166 / .6);
}
.btn--ghost-light:hover { --btn-fg: var(--wine); --btn-bg: var(--candle-soft); background: var(--candle-soft); border-color: var(--candle-soft); }

/* уъркшоп за двама */
.duo {
  display: grid;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1.5px solid rgb(242 181 68 / .45);
  border-radius: 28px 10px 30px 12px / 12px 28px 10px 30px;
  background: rgb(255 240 210 / .04);
  box-shadow: inset 0 0 60px rgb(242 181 68 / .06);
}
.duo__art { width: clamp(5.5rem, 10vw, 7.5rem); color: var(--candle); }
.duo__kind {
  margin: 0 0 .2rem;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--candle-soft);
}
.duo__title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: var(--fs-lg);
  line-height: 1.1;
  color: var(--candle);
}
.duo__text > p:last-child { max-width: 52ch; color: var(--mist); }
.duo__facts { display: grid; grid-template-columns: repeat(2, max-content); gap: 1rem 2.25rem; margin: 0; }
.duo__facts dt { font-size: var(--fs-sm); color: var(--mist); }
.duo__facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--paper);
}
.duo__incl { margin: .9rem 0 1.25rem; max-width: 34ch; font-size: var(--fs-sm); color: var(--mist); }

@media (min-width: 46rem) {
  .duo { grid-template-columns: auto minmax(0, 1fr); }
  .duo__side { grid-column: 2; }
}
@media (min-width: 62rem) {
  .duo { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) 18rem; align-items: start; }
  .duo__side { grid-column: auto; padding-top: .5rem; }
}

.candles {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  height: 420px;
  padding-top: 60px;
}
/* светлото петно на масата под свещите */
.candles::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 135%;
  height: 46px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(242 181 68 / .2), rgb(242 181 68 / .06) 60%, transparent);
  pointer-events: none;
}
.candle {
  position: relative;
  width: 32px;
  height: calc(var(--h) * 1.5);
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(90deg, #D9C29C, #FBF1DE 42%, #E8D7B8 70%, #CDB48B);
  box-shadow: inset 0 -16px 20px rgb(44 18 32 / .25), 0 14px 26px -8px rgb(0 0 0 / .45);
}
.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 2px;
  height: 10px;
  margin-left: -1px;
  background: #2A1A12;
  border-radius: 1px;
}
.candle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  width: 16px;
  height: 36px;
  margin-left: -8px;
  border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse at 50% 78%, #FFF9E3 0 18%, #FFD772 38%, #F2A23A 68%, rgb(242 120 40 / 0) 100%);
  box-shadow: 0 0 18px 6px rgb(242 181 68 / .38), 0 0 70px 26px rgb(242 181 68 / .14);
  transform-origin: 50% 100%;
  animation: flicker var(--t, 2.6s) ease-in-out infinite alternate;
}
@keyframes flicker {
  0% { transform: scale(1, 1) rotate(-1deg); }
  25% { transform: scale(.94, 1.07) rotate(1.5deg); }
  50% { transform: scale(1.03, .95) rotate(-2deg); }
  75% { transform: scale(.97, 1.04) rotate(1deg); }
  100% { transform: scale(1.02, .98) rotate(0deg); }
}
@media (max-width: 61.99rem) {
  .candles { order: -1; justify-content: flex-start; height: 150px; padding-top: 40px; gap: 12px; }
  .candles::after { left: 0; width: 18rem; transform: none; }
  .candle { width: 18px; height: calc(var(--h) * .55); }
}

/* ---------- контакти ---------- */
.contact {
  display: grid;
  gap: 3rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 8.5rem) var(--gutter);
}
@media (min-width: 60rem) {
  .contact { grid-template-columns: 1fr 1fr; align-items: center; }
}
.contact__info .section-title { margin-bottom: 1.25rem; }
.contact__info > p { max-width: 44ch; color: var(--walnut-2); }

.phone {
  display: inline-block;
  margin: .5rem 0 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.6rem, 1.5rem + 5vw, 4.9rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--pepper);
  text-decoration: none;
}
.phone:hover { text-decoration: underline wavy; text-decoration-thickness: 2px; text-underline-offset: .14em; }

.contact__list { display: grid; gap: .9rem; margin: 0; }
.contact__list > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline; }
.contact__list dt { font-size: var(--fs-sm); color: var(--walnut-2); }
.contact__list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.map {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border: 2px solid var(--pepper);
  border-radius: 28px 10px 30px 12px / 12px 28px 10px 30px;
  background: var(--paper-2);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(.3) saturate(.8) contrast(.95);
}

/* нарисувана карта, докато посетителят не поиска истинската */
.map__cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .9rem;
  padding: 1.5rem;
  text-align: center;
  background-color: var(--paper-2);
  background-image: var(--grain);
}
.map__streets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  fill: none;
  stroke: var(--pepper);
  stroke-opacity: .16;
  stroke-width: 7;
  stroke-linecap: round;
  filter: url(#ink-wobble);
}
.map__main { stroke-opacity: .3; stroke-width: 11; }
.map__cover > :not(.map__streets) { position: relative; }
.map__pin { width: 76px; transform: rotate(-8deg); }
.map__addr {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--walnut);
  text-shadow: 0 0 .4em var(--paper-2), 0 0 .8em var(--paper-2);
}
.map__link { font-weight: 600; font-size: var(--fs-sm); text-shadow: 0 0 .5em var(--paper-2); }

/* ---------- футър ---------- */
.site-footer {
  padding: clamp(4.5rem, 10vw, 7.5rem) var(--gutter) 2.5rem;
  text-align: center;
  background-color: var(--paper-2);
  background-image: var(--grain);
}
.quote { margin: 0 auto; max-width: 52rem; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.2rem);
  line-height: 1.18;
  color: var(--walnut);
  text-wrap: balance;
}
.quote figcaption { margin-top: 1rem; font-weight: 600; color: var(--walnut-2); }

.footer__base {
  display: grid;
  justify-items: center;
  gap: .4rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  font-size: var(--fs-sm);
  color: var(--walnut-2);
}
.footer__base .logo { margin-bottom: .75rem; }
.footer__base p { margin: 0; }

/* ---------- по-малко движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
