/* ═══════════════════════════════════════════════════════════
   KruBee — Родинна пасіка Крупа
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #fbf6ec;
  --bg-2: #f4ead6;
  --surface: #fffdf8;
  --text: #2b1d0e;
  --text-2: #6b533a;
  --muted: #9b8265;
  --line: #e8dcc4;
  --honey: #e9a11b;
  --honey-2: #c97d0f;
  --honey-soft: #fde9bf;
  --dark: #3a2610;
  --white: #fff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -20px rgba(58, 38, 16, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(58, 38, 16, 0.3);
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--alt { background: var(--surface); }
.section__head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--honey-2); margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--honey); border-radius: 2px; }
.section__head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--honey); border-radius: 2px; }
.section__head--center .eyebrow::before { display: none; }
.section__head--center .eyebrow::after { display: none; }
.h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.7rem; }
.lead { font-size: 1.1rem; color: var(--text-2); }

/* ── Кнопки ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--honey); color: var(--text); box-shadow: 0 10px 24px -10px rgba(233, 161, 27, 0.8); }
.btn--primary:hover { background: #f0ab27; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #4d3316; }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--honey); background: var(--honey-soft); }
.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.92rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ── Хедер ──────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(58, 38, 16, 0.4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.logo { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.01em; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo small { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); line-height: 1; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { padding: 0.55rem 0.9rem; border-radius: 999px; font-weight: 600; color: var(--text-2); transition: background 0.15s, color 0.15s; }
.nav a:hover { color: var(--text); background: var(--honey-soft); }
.nav .btn { margin-left: 0.6rem; color: var(--text); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s, top 0.25s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v31L28 62 2 47V16z M28 35 54 50v31L28 96 2 81V50z' fill='none' stroke='%23e9a11b' stroke-opacity='0.16' stroke-width='1.2'/%3E%3C/svg%3E");
  mask-image: radial-gradient(70% 80% at 30% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 80% at 30% 40%, #000 20%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; right: -18vw; top: -10vw;
  background: radial-gradient(closest-side, rgba(233, 161, 27, 0.22), transparent 70%); pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-2); margin-bottom: 1.4rem; box-shadow: var(--shadow-sm);
}
.hero__badge i { width: 22px; height: 22px; border-radius: 50%; background: var(--honey); display: grid; place-items: center; font-style: normal; font-size: 0.8rem; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--honey-2); }
.hero__text { font-size: 1.15rem; color: var(--text-2); max-width: 520px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.4rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); max-width: 560px; }
.hero__facts div { font-size: 0.9rem; color: var(--text-2); }
.hero__facts strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--text); }

.hero__media { position: relative; }
.hero__photo { position: relative; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.hero__frame { position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--honey); border-radius: 30px; z-index: -1; opacity: 0.5; }
.hero__card {
  position: absolute; left: -1.5rem; bottom: 2rem; display: flex; align-items: center; gap: 0.8rem;
  background: var(--white); padding: 0.85rem 1.1rem; border-radius: 16px; box-shadow: var(--shadow);
  font-size: 0.88rem; line-height: 1.3; animation: float 5s ease-in-out infinite;
}
.hero__card strong { display: block; font-size: 1rem; }
.hero__card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--honey-soft); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.hero__card--2 { left: auto; right: -1.5rem; bottom: auto; top: 2.5rem; animation-delay: -2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Переваги ───────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; transition: transform 0.2s, box-shadow 0.2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--honey-soft); display: grid; place-items: center; margin-bottom: 1rem; }
.feature__ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.feature p { font-size: 0.95rem; color: var(--text-2); }

/* ── Продукція ──────────────────────────────────────────── */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.product { display: grid; grid-template-columns: 42% 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__media { position: relative; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; min-height: 100%; }
.product:hover .product__media img { transform: scale(1.05); }
.product__tag { position: absolute; top: 0.9rem; left: 0.9rem; background: var(--honey); color: var(--text); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.65rem; border-radius: 999px; }
.product__body { padding: 1.6rem 1.6rem 1.5rem; display: flex; flex-direction: column; }
.product h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.product p { font-size: 0.97rem; color: var(--text-2); }
.product__meta { list-style: none; padding: 0; margin: 0.9rem 0 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; color: var(--text-2); }
.product__meta li { display: flex; gap: 0.5rem; align-items: flex-start; }
.product__meta li::before { content: "⬢"; color: var(--honey); font-size: 0.7rem; margin-top: 0.35rem; }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.product__price { font-family: var(--font-head); font-size: 1.05rem; color: var(--text); }
.product__price small { display: block; font-family: var(--font-body); font-size: 0.78rem; color: var(--muted); font-weight: 500; }

/* ── Про нас ────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.about__gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.about__gallery img { width: 100%; height: 100%; object-fit: cover; }
.about__gallery figure:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.about__gallery figure:nth-child(2), .about__gallery figure:nth-child(3) { aspect-ratio: 1; }
.about__text .h2 { margin-bottom: 1.2rem; }
.about__text p { color: var(--text-2); }
.about__quote { margin: 1.6rem 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--honey); background: var(--honey-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--text); }
.about__points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.7rem; }
.about__points li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-2); }
.about__points svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* ── Галерея ────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.gallery__item { display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43, 29, 14, 0.35), transparent 50%); opacity: 0; transition: opacity 0.25s; }
.gallery__item:hover::after { opacity: 1; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: auto; }
.gallery__more { display: flex; justify-content: center; margin-top: 2rem; }

/* ── Контакти ───────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ccard { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.2rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
a.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--honey); }
.ccard__ico { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--honey-soft); }
.ccard__ico svg { width: 24px; height: 24px; }
.ccard__ico--tg { background: #e3f1fb; } .ccard__ico--vb { background: #efe6fa; } .ccard__ico--ig { background: #fde6ec; }
.ccard small { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.ccard strong { font-size: 1.05rem; font-weight: 700; word-break: break-word; }
.ccard span { display: block; font-size: 0.85rem; color: var(--text-2); margin-top: 0.15rem; }
.contact__note { margin-top: 1.2rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--honey-soft); color: var(--text); font-size: 0.97rem; display: flex; gap: 0.8rem; align-items: flex-start; }
.contact__note svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.order { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 2rem; position: relative; overflow: hidden; }
.order::before { content: "⬢"; position: absolute; right: -30px; top: -50px; font-size: 180px; color: rgba(233, 161, 27, 0.1); line-height: 1; transform: rotate(15deg); }
.order h3 { font-size: 1.7rem; margin-bottom: 0.7rem; }
.order p { color: rgba(255, 255, 255, 0.78); }
.order ol { margin: 1rem 0 1.6rem; padding-left: 1.3rem; color: rgba(255, 255, 255, 0.85); display: grid; gap: 0.5rem; }
.order ol li::marker { color: var(--honey); font-weight: 700; }
.order__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; position: relative; }

/* ── Футер ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: 0.9rem; color: var(--text-2); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer .logo { font-size: 1.2rem; }
.footer .logo__mark { width: 32px; height: 32px; }
.footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer nav a:hover { color: var(--honey-2); }

/* ── Лайтбокс ───────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 12, 4, 0.92); display: none; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.is-open { display: flex; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; max-width: min(92vw, 1100px); max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.lightbox__figure img { max-width: 100%; max-height: 85vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox__figure figcaption { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; display: grid; place-items: center; transition: background 0.15s; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ── Анімація появи ─────────────────────────────────────── */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.no-anim .reveal { opacity: 1; transform: none; transition: none; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Адаптив ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 1.2rem 1.25rem; gap: 0.3rem; transform: translateX(100%); transition: transform 0.25s ease; z-index: 40;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 0.9rem 1rem; font-size: 1.1rem; }
  .nav .btn { margin: 0.8rem 0 0; }
  .burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin: 0.5rem auto 0; }
  .hero__card { left: 0.5rem; }
  .hero__card--2 { right: 0.5rem; }
  .hero__frame { display: none; }
  .about { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .contact__cards { grid-template-columns: 1fr; }
  .hero__facts { gap: 1rem 1.6rem; }
  .hero__card { font-size: 0.8rem; padding: 0.7rem 0.9rem; }
  .hero__card .ico { width: 36px; height: 36px; }
  .order { padding: 1.5rem; }
  .btn { width: 100%; }
  .product__foot .btn, .gallery__more .btn { width: auto; }
}
