/* =========================================================
   Кафе „Брю Хейвън“ – стилове
   Mobile-first: базовите правила са за телефон,
   медийните заявки по-долу надграждат за таблет и десктоп.
   ========================================================= */

:root {
  /* Цветове */
  --bg: #0f0b07;
  --bg-hero: #080500;
  --card-top: #261b12;
  --card-bottom: #1b130c;
  --strip: #1d1409;
  --field: #322218;
  --caramel: #b3865f;
  --caramel-light: #cfa27a;
  --btn-top: #8e6545;
  --btn-bottom: #77523a;
  --cream: #f6eee6;
  --text: #e9e0d7;
  --muted: #aaa29b;
  --muted-2: #8d837b;
  --line: rgba(196, 150, 108, 0.15);
  --line-2: rgba(196, 150, 108, 0.32);

  /* Шрифтове: вашите шрифтове са първи; за кирилицата се ползват Caveat и Nunito */
  --f-script: 'Story Script', 'Caveat', cursive;
  --f-body: 'Concert One', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Размери */
  --container: 1200px;
  --gutter: 20px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  /* Concert One и Story Script имат само едно тегло – без изкуствен bold */
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
small { font-size: inherit; }

:focus-visible {
  outline: 2px solid var(--caramel-light);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite .fill { fill: currentColor; stroke: none; }

.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Типография ---------- */
.script-tag {
  font-family: var(--f-script);
  font-weight: 600;
  color: var(--caramel);
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.section-title {
  font-family: var(--f-script);
  font-weight: 700;
  color: var(--cream);
  font-size: clamp(2.7rem, 2rem + 2.9vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0.005em;
  margin-top: 6px;
}

.accent { color: var(--caramel); }
.nowrap { white-space: nowrap; }
/* българските кавички в ръкописния шрифт */
.q { font-family: 'Caveat', cursive; }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 9px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn .ico { font-size: 1.25em; transition: transform 0.25s var(--ease); }
.btn:hover .ico,
.btn:focus-visible .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom));
  color: #fbf3ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 26px -14px rgba(170, 115, 70, 0.75);
}
.btn--primary:hover { filter: brightness(1.12); }

.btn--ghost {
  border: 1.5px solid rgba(240, 228, 216, 0.55);
  color: var(--cream);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--cream); }
.btn--ghost:hover .ico { transform: none; }

.btn--outline {
  min-height: 52px;
  border: 1.5px solid var(--line-2);
  background: rgba(38, 27, 18, 0.45);
  color: var(--cream);
  border-radius: 10px;
}
.btn--outline:hover { border-color: var(--caramel); background: rgba(128, 89, 58, 0.18); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--bg-hero);
  overflow: hidden;
  isolation: isolate;
}
/* Плавен преход: долният край на hero се слива с фона на следващата секция */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(15, 11, 7, 0) 0%, rgba(15, 11, 7, 0.65) 55%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__visual {
  position: relative;
  height: clamp(300px, 86vw, 470px);
  overflow: hidden;
}

/* Снимката запазва пропорциите си (3:2), за да остане парата точно над чашата */
.hero__photo {
  position: absolute;
  top: -12%;
  height: 124%;
  aspect-ratio: 3 / 2;
  left: 50%;
  transform: translateX(-51%);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.94) contrast(1.08) saturate(1.06);
  /* горната (светла) част на снимката плавно изчезва в тъмния фон */
  -webkit-mask-image: linear-gradient(180deg, transparent 6%, #000 32%);
          mask-image: linear-gradient(180deg, transparent 6%, #000 32%);
}

/* Анимирана пара над чашата */
.steam {
  position: absolute;
  left: 51%;
  top: 1%;
  width: 26%;
  height: 29%;
  transform: translateX(-50%);
  pointer-events: none;
}
.steam span {
  position: absolute;
  bottom: 0;
  left: 42%;
  width: 16%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 246, 236, 0.5), rgba(255, 246, 236, 0) 70%);
  filter: blur(9px);
  opacity: 0;
  transform-origin: 50% 100%;
  animation: steam 5.4s ease-in-out infinite;
}
.steam span:nth-child(2) { left: 26%; animation-delay: 1.8s; animation-duration: 6.2s; }
.steam span:nth-child(3) { left: 58%; animation-delay: 3.4s; animation-duration: 5.8s; }

@keyframes steam {
  0%   { opacity: 0;    transform: translate(0, 30%) scale(0.6, 0.5); }
  25%  { opacity: 0.75; }
  55%  { opacity: 0.45; transform: translate(12%, -5%) scale(1.1, 0.9) skewX(-8deg); }
  100% { opacity: 0;    transform: translate(-18%, -45%) scale(1.8, 1.1) skewX(10deg); }
}

.hero__leaves {
  position: absolute;
  top: -6%;
  right: -22%;
  width: 70%;
  mix-blend-mode: lighten;
  opacity: 0.5;
  filter: brightness(0.55) saturate(0.9);
  pointer-events: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 5, 0, 0.92) 0%, rgba(8, 5, 0, 0.35) 22%, rgba(8, 5, 0, 0) 40%),
    linear-gradient(0deg, var(--bg-hero) 0%, rgba(8, 5, 0, 0.85) 16%, rgba(8, 5, 0, 0) 45%),
    radial-gradient(ellipse 90% 80% at 50% 55%, rgba(8, 5, 0, 0) 55%, rgba(8, 5, 0, 0.55) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  margin-top: -64px;
  padding-bottom: 56px;
}

.hero__title {
  font-family: var(--f-script);
  font-weight: 700;
  color: var(--cream);
  font-size: clamp(3.3rem, 2.3rem + 4.4vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin-top: 10px;
}

.hero__lead {
  margin-top: 20px;
  max-width: 25em;
  color: var(--muted);
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.16rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 30px;
}
.hero__actions .btn { flex: 1 1 210px; }

.hero__badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.hero__badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.25;
}
.hero__badges small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}
.badge-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--caramel-light);
  font-size: 21px;
  border: 1px solid var(--line-2);
  background: rgba(128, 89, 58, 0.14);
}

/* =========================================================
   ЗА НАС
   ========================================================= */
/* Секциите нямат собствен фон – целият сайт стои върху един общ фон (body),
   така между тях няма видими граници. Декорациите (листа, зърна) могат да
   преминават от една секция в друга и плавно избледняват. */
.about,
.picks,
.footer {
  position: relative;
  overflow: hidden;
}
@supports (overflow: clip) {
  .about,
  .picks,
  .footer {
    overflow: visible;
    overflow-x: clip; /* реже само хоризонтално – вертикално листата преминават свободно */
  }
}

.about {
  padding: 28px 0 76px;
}

.about__media {
  margin-inline: var(--gutter);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
  /* по-топъл, „кафяв“ тон като в дизайна */
  filter: sepia(0.32) saturate(1.12) brightness(0.96) contrast(1.04);
}

.about__content {
  position: relative;
  z-index: 1;
  padding: 38px var(--gutter) 0;
}

.about__text {
  margin-top: 20px;
  max-width: 44ch;
  color: var(--muted);
  line-height: 1.85;
}

.about__list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}
.mini-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--caramel-light);
  font-size: 16px;
  border: 1px solid var(--line-2);
  background: rgba(128, 89, 58, 0.16);
}

.about__more {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.8;
  animation: fade-up 0.5s var(--ease);
}
.about__more[hidden] { display: none; }

.about__content > .btn { margin-top: 34px; }
.about__content > .btn[aria-expanded="true"] .ico { transform: rotate(90deg); }

.about__branch {
  position: absolute;
  right: -46px;
  top: 30%;
  width: 150px;
  fill: none;
  stroke: rgba(179, 134, 95, 0.22);
  stroke-width: 1.4;
  pointer-events: none;
  z-index: -1;
}

.about__leaves {
  position: absolute;
  right: -80px;
  bottom: -170px;
  width: 170px;
  mix-blend-mode: lighten;
  opacity: 0.4;
  filter: brightness(0.65);
  pointer-events: none;
  z-index: -1;
  /* избледнява и отгоре, и отдолу – преминава в следващата секция без ръб */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 32%, #000 62%, transparent 100%);
}

/* =========================================================
   ПОПУЛЯРЕН ИЗБОР
   ========================================================= */
.picks {
  padding: 64px 0 60px;
}

/* топло, едва доловимо сияние точно на прехода „За нас“ → „Популярен избор“ */
.picks::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  width: 70%;
  height: 520px;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(160, 110, 62, 0.07), rgba(160, 110, 62, 0));
  pointer-events: none;
  z-index: -1;
}

.picks__leaf {
  position: absolute;
  top: -90px;
  right: -120px;
  width: 320px;
  mix-blend-mode: lighten;
  opacity: 0.55;
  filter: brightness(0.6);
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 62% 45%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 60% at 62% 45%, #000 45%, transparent 100%);
}

.section-head { text-align: center; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(300px, 72%);
  margin: 16px auto 0;
  color: var(--caramel);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(179, 134, 95, 0), rgba(179, 134, 95, 0.55));
}
.divider::after { transform: scaleX(-1); }
.divider span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: rgba(128, 89, 58, 0.25);
}

/* Карусел: на телефон – плъзгане с пръст, на десктоп – 4 карти и стрелки */
.carousel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 14px;
  margin-top: 34px;
}

.carousel__track {
  order: 0;
  /* +2×gutter компенсира отрицателните полета, за да остане лентата сама на реда */
  flex: 0 0 calc(100% + var(--gutter) * 2);
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 6px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__btn {
  order: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--cream);
  border: 1px solid var(--line-2);
  background: rgba(24, 16, 10, 0.9);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.carousel__btn:hover { border-color: var(--caramel); color: var(--caramel-light); }

.card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%);
  border: 1px solid rgba(214, 170, 128, 0.09);
  box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card__img {
  aspect-ratio: 800 / 708;
  margin: -2px -4px 14px;
  overflow: hidden;
  border-radius: 10px;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* тъмният фон на снимката се слива с картата, както в дизайна */
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 74% 72% at 50% 48%, #000 56%, transparent 100%);
          mask-image: radial-gradient(ellipse 74% 72% at 50% 48%, #000 56%, transparent 100%);
  transition: transform 0.6s var(--ease);
}
.card__title {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--cream);
}
.card__desc {
  margin-top: 6px;
  min-height: 2.9em;
  color: var(--muted-2);
  font-size: 0.93rem;
  line-height: 1.5;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
}
.card__price {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--cream);
}
.cart-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--caramel-light);
  border: 1px solid var(--line-2);
  background: rgba(128, 89, 58, 0.1);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.cart-btn:hover { background: var(--btn-bottom); color: #fff; border-color: transparent; }
.cart-btn:active { transform: scale(0.92); }
.cart-btn.is-added { background: var(--btn-top); color: #fff; animation: pop 0.45s var(--ease); }

.picks__cta {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* ---------- Предимства ---------- */
.perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 56px;
  padding: 6px;
  border-radius: 16px;
  background: var(--strip);
  border: 1px solid rgba(214, 170, 128, 0.07);
}
.perks li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 9px;
  padding: 16px 6px;
}
/* разделители в мрежата 2×2 */
.perks li:nth-child(odd)::after {
  content: "";
  position: absolute;
  right: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: var(--line);
}
.perks li:nth-child(-n+2)::before {
  content: "";
  position: absolute;
  left: 14%; right: 14%; bottom: 0;
  height: 1px;
  background: var(--line);
}
.perk-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 20px;
  color: var(--cream);
  border: 1px solid var(--line-2);
}
.perks strong {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--cream);
}
.perks small {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

/* =========================================================
   ФУТЪР
   ========================================================= */
.footer {
  padding-top: 16px;
}

.footer__beans {
  position: absolute;
  right: -110px;
  bottom: 40px;
  width: 300px;
  mix-blend-mode: lighten;
  opacity: 0.55;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: -1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 20px;
}
.footer__col--news,
.footer__col:last-child { grid-column: 1 / -1; }

.footer__title {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--caramel);
  margin-bottom: 18px;
}

.footer__col--news p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

.subscribe {
  display: flex;
  align-items: center;
  max-width: 360px;
  margin-top: 22px;
  padding: 5px 5px 5px 22px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.subscribe:focus-within { border-color: var(--line-2); }
.subscribe.is-error { border-color: #c0664f; }
.subscribe input {
  flex: 1;
  min-width: 0;
  height: 46px;
  background: none;
  border: 0;
  outline: none;
  color: var(--cream);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px; /* 16px предотвратява автоматичното увеличение в iOS */
}
.subscribe input::placeholder { color: #a8927e; opacity: 1; }
.subscribe button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(180deg, #9d7253, var(--btn-bottom));
  transition: filter 0.25s var(--ease), transform 0.2s var(--ease);
}
.subscribe button:hover { filter: brightness(1.15); }
.subscribe button:active { transform: scale(0.94); }

.subscribe__msg {
  min-height: 1.5em;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--caramel-light);
}
.subscribe__msg.is-error { color: #e0876f; }

.social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.social span {
  margin-right: 12px;
  font-weight: 700;
  color: var(--text);
}
.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--cream);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, 0.06); color: var(--caramel-light); }

.footer__links {
  display: grid;
  gap: 4px;
}
.footer__links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.4;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__links a:hover { color: var(--caramel-light); transform: translateX(3px); }

.contact {
  display: grid;
  gap: 16px;
}
.contact li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact__ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 16px;
  color: var(--caramel-light);
  background: #211710;
}
.contact a {
  padding-top: 7px;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.2s var(--ease);
}
.contact a:hover { color: var(--caramel-light); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__bottom p {
  color: var(--muted-2);
  font-size: 0.86rem;
}

/* =========================================================
   МЕНЮ (диалог)
   ========================================================= */
.menu-dialog {
  width: 100%;
  max-width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.menu-dialog::backdrop {
  background: rgba(5, 3, 1, 0.72);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.menu-dialog[open] { animation: fade-up 0.35s var(--ease); }
.menu-dialog__inner {
  position: relative;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 34px 24px 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, #20170f, #150e09);
  border: 1px solid var(--line);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(179, 134, 95, 0.4) transparent;
}
.menu-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  border: 1px solid var(--line-2);
  color: var(--cream);
}
.menu-dialog__close:hover { border-color: var(--caramel); color: var(--caramel-light); }

.menu-list {
  display: grid;
  gap: 26px;
  margin-top: 24px;
}
.menu-list h3 {
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--caramel);
}
.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
}
.menu-list span { color: var(--cream); }
.menu-list i {
  flex: 1;
  border-bottom: 1px dotted rgba(214, 170, 128, 0.35);
  transform: translateY(-4px);
}
.menu-list b { font-weight: 800; color: var(--cream); white-space: nowrap; }

/* ---------- Известие ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 13px 20px;
  border-radius: 999px;
  background: #2a1d13;
  border: 1px solid var(--line-2);
  color: var(--cream);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  font-size: 0.95rem;
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.toast .ico { color: var(--caramel-light); font-size: 20px; stroke-width: 2.2; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Анимации ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Първият екран се появява веднага с CSS анимация (без да чака JavaScript) */
.js .hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
  animation: fade-up 0.9s var(--ease) both;
}
.js .hero .reveal:nth-child(2) { animation-delay: 0.08s; }
.js .hero .reveal:nth-child(3) { animation-delay: 0.16s; }
.js .hero .reveal:nth-child(4) { animation-delay: 0.24s; }
.js .hero .reveal:nth-child(5) { animation-delay: 0.32s; }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 170, 128, 0.2);
    box-shadow: 0 34px 50px -30px rgba(0, 0, 0, 1);
  }
  .card:hover .card__img img { transform: scale(1.05); }
}

/* =========================================================
   ТАБЛЕТ (≥ 600px)
   ========================================================= */
@media (min-width: 600px) {
  :root { --gutter: 32px; }

  .hero__visual { height: clamp(420px, 64vw, 540px); }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 30px;
  }
  .hero__badges li { flex-direction: row; text-align: left; gap: 12px; }

  .about__media { aspect-ratio: 4 / 3; }

  .carousel__track { grid-auto-columns: calc((100% - var(--gutter) * 2 - 14px) / 2.15); }

  .perks { grid-template-columns: repeat(2, 1fr); padding: 10px 14px; }
  .perks li { flex-direction: row; text-align: left; gap: 14px; padding: 18px 16px; }
  .perk-ico { width: 50px; height: 50px; font-size: 22px; }
  .perks strong { font-size: 1rem; }
  .perks small { font-size: 0.85rem; }

  .about__leaves { bottom: -60px; width: 200px; opacity: 0.55; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__col:last-child { grid-column: auto; }
}

/* =========================================================
   ДЕСКТОП (≥ 960px)
   ========================================================= */
@media (min-width: 960px) {
  :root { --gutter: 40px; }

  /* Hero: снимката е фон вдясно, текстът – вляво */
  .hero {
    display: flex;
    align-items: center;
    min-height: clamp(660px, 57vw, 840px);
  }
  .hero__visual {
    position: absolute;
    inset: 0;
    height: auto;
  }
  .hero__photo {
    top: 9%;
    height: 92%;
    left: 72%;
  }
  .hero__photo img {
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0%, #000 30%, #000 86%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 30%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(180deg, transparent 0%, #000 30%, #000 86%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 30%);
            mask-composite: intersect;
  }
  .hero__leaves {
    top: -8%;
    right: -9%;
    width: 38%;
    opacity: 0.6;
  }
  .hero__shade {
    background:
      linear-gradient(90deg, var(--bg-hero) 0%, var(--bg-hero) 30%, rgba(8, 5, 0, 0.78) 42%, rgba(8, 5, 0, 0.25) 56%, rgba(8, 5, 0, 0) 68%),
      linear-gradient(180deg, rgba(8, 5, 0, 0.95) 0%, rgba(8, 5, 0, 0.5) 18%, rgba(8, 5, 0, 0) 38%),
      linear-gradient(0deg, var(--bg-hero) 0%, rgba(8, 5, 0, 0.6) 10%, rgba(8, 5, 0, 0) 26%),
      linear-gradient(270deg, rgba(8, 5, 0, 0.55) 0%, rgba(8, 5, 0, 0) 16%);
  }
  .hero__inner {
    margin-top: 0;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .hero__content { max-width: 560px; }
  .hero__lead { margin-top: 24px; font-size: 1.2rem; }
  .hero__actions { margin-top: 36px; }
  .hero__badges { margin-top: 48px; gap: 18px 34px; }

  /* За нас: снимка вляво до ръба, текст вдясно */
  .about {
    display: grid;
    grid-template-columns: 47% 1fr;
    align-items: center;
    min-height: 610px;
    padding: 0;
  }
  /* Снимката плавно „изплува“ от тъмнината: меки ръбове отгоре, отдолу и към текста */
  .about__media {
    align-self: stretch;
    margin: 0;
    aspect-ratio: auto;
    min-height: 600px;
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0%, #000 17%, #000 83%, transparent 100%),
      linear-gradient(90deg, #000 0%, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(180deg, transparent 0%, #000 17%, #000 83%, transparent 100%),
      linear-gradient(90deg, #000 0%, #000 70%, transparent 100%);
            mask-composite: intersect;
  }
  .about__content {
    padding: 40px 40px 40px 7.5%;
    max-width: 640px;
  }
  .about .section-title { font-size: clamp(2.9rem, 1.6rem + 2.4vw, 3.75rem); }
  .about__text { margin-top: 18px; line-height: 1.75; }
  .about__list { gap: 10px; margin-top: 22px; }
  .about__content > .btn { margin-top: 28px; }
  .about__branch { right: 2%; top: 22%; width: 190px; }
  .about__leaves { right: -30px; bottom: -150px; width: 250px; opacity: 0.75; }

  /* Карусел: 4 карти в ред */
  .picks { padding: 44px 0 26px; }
  .picks__leaf { top: -170px; right: -90px; width: 460px; opacity: 0.7; }
  .carousel { display: block; margin-top: 30px; }
  .carousel__track {
    grid-auto-columns: calc((100% - 3 * 18px) / 4);
    gap: 18px;
    margin-inline: 0;
    padding: 6px 0 10px;
    scroll-padding-inline: 0;
  }
  .carousel__btn {
    position: absolute;
    top: 42%;
    z-index: 2;
    width: 50px;
    height: 50px;
  }
  .carousel__btn--prev { left: -22px; }
  .carousel__btn--next { right: -22px; }

  .picks__cta { margin-top: 28px; }
  .perks { margin-top: 26px; }

  /* Футър: 4 колони с вертикални разделители */
  .footer { padding-top: 22px; }
  .footer__grid {
    grid-template-columns: 1.45fr 0.85fr 1.05fr 1.25fr;
    gap: 0;
  }
  .footer__col--news { grid-column: auto; padding-right: 44px; }
  .footer__col + .footer__col {
    padding-left: 40px;
    border-left: 1px solid var(--line);
  }
  .footer__beans { right: -70px; bottom: 30px; width: 330px; opacity: 0.85; }

  .menu-dialog__inner { padding: 44px 44px 38px; }
}

/* Лаптопи 960–1199px: по-сбит футър, за да не се пренасят заглавията */
@media (min-width: 960px) and (max-width: 1199.98px) {
  .footer__grid { grid-template-columns: 1.35fr 0.9fr 1.1fr 1.2fr; }
  .footer__col--news { padding-right: 24px; }
  .footer__col + .footer__col { padding-left: 24px; }
  .footer__title { font-size: 1.12rem; }
  .social span { flex-basis: 100%; margin: 0 0 4px; }
  .social a { width: 36px; height: 36px; margin-left: -8px; margin-right: 12px; }
}

/* Предимствата в един ред с вертикални разделители */
@media (min-width: 1180px) {
  .perks {
    grid-template-columns: repeat(4, 1fr);
    padding: 24px 10px;
  }
  .perks li { padding: 6px 12px 6px 20px; gap: 14px; }
  .perks li::before,
  .perks li::after { display: none; }
  .perks li + li::before {
    display: block;
    content: "";
    position: absolute;
    left: 0; right: auto; top: 12%; bottom: 12%;
    width: 1px; height: auto;
    background: var(--line);
  }
  .perk-ico { width: 56px; height: 56px; font-size: 24px; }
  .perks strong { font-size: 1.06rem; white-space: nowrap; }
  .perks small { font-size: 0.88rem; }
}

/* Стрелките на карусела излизат извън картите на широки екрани */
@media (min-width: 1360px) {
  .carousel__btn--prev { left: -76px; }
  .carousel__btn--next { right: -76px; }
}

/* Едва забележим parallax: листата и зърната се плъзгат малко по-бавно от
   страницата при скрол и така „свързват“ секциите (само в браузъри с поддръжка) */
@keyframes drift {
  from { translate: 0 44px; }
  to   { translate: 0 -44px; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .about__leaves,
    .about__branch,
    .picks__leaf,
    .footer__beans {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

/* Уважаваме настройката „по-малко движение“ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .steam { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero .reveal { animation: none; }
}
