/* ===========================================================
   «Соты на крыше» — городская пасека, Москва
   Органическая светлая эстетика: медово-золотой, тёплый белый,
   чёрный контраст, дружелюбный гротеск + рукописный акцент,
   соты как мотив.
   Своя система именования (медо-сотовая метафора): cap-, deck-,
   strip-, slab-, comb-, hex-. НИ одного wrap/hero__/eyebrow.
   =========================================================== */

:root {
  /* Палитра */
  --med-deep:   #b8860b;   /* тёмный мёд */
  --med:        #e0a818;   /* золото-мёд */
  --med-glow:   #f2c94c;   /* светлый акцент */
  --med-soft:   #fbe9b8;   /* пыльца */
  --wax:        #fff8ea;   /* тёплый белый (фон) */
  --wax-deep:   #f6edd8;   /* воск */
  --ink:        #1d1a14;   /* чёрный контраст */
  --ink-soft:   #4a4438;   /* мягкий текст */
  --line:       #e8ddc2;   /* границы */
  --leaf:       #5c7a4a;   /* зелёный акцент (крыши/растения) */
  --paper:      #ffffff;

  /* Типографика — системные стеки, без сети */
  --face-display: "Segoe Script", "Bradley Hand", "Comic Sans MS", "Brush Script MT", cursive;
  --face-head: "Segoe UI", "Trebuchet MS", "Verdana", "Geneva", system-ui, sans-serif;
  --face-body: "Segoe UI", Tahoma, "Geneva", Verdana, system-ui, sans-serif;

  /* Шкала отступов */
  --s1: 6px;  --s2: 12px;  --s3: 20px;  --s4: 32px;
  --s5: 52px; --s6: 84px;  --s7: 128px;

  /* Тени и радиусы */
  --halo-sm: 0 2px 8px rgba(45, 35, 10, .08);
  --halo-md: 0 14px 38px rgba(60, 44, 8, .14);
  --halo-lg: 0 30px 70px rgba(60, 44, 8, .20);
  --round: 18px;
  --round-lg: 30px;

  --cap-h: 70px;
  --reading: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--face-body);
  color: var(--ink);
  background: var(--wax);
  line-height: 1.66;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  /* Атмосферный фон: медовый меш-градиент + сотовый паттерн */
  background-image:
    radial-gradient(ellipse 70% 50% at 8% -4%, rgba(242,201,76,.30), transparent 60%),
    radial-gradient(ellipse 60% 50% at 96% 8%, rgba(224,168,24,.16), transparent 55%),
    radial-gradient(ellipse 90% 60% at 50% 108%, rgba(251,233,184,.5), transparent 60%);
  background-attachment: fixed;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--med-deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--face-head); line-height: 1.08; margin: 0; font-weight: 800; letter-spacing: -.5px; }

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

/* ---- skip link ---- */
.jump-to-main {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--wax);
  padding: 10px 18px; border-radius: 10px; z-index: 200;
  transition: top .2s;
}
.jump-to-main:focus { top: 12px; color: var(--wax); }

/* ---- центрирующий контейнер ---- */
.deck {
  width: min(100% - 40px, var(--reading));
  margin-inline: auto;
}

/* ---- сотовый разделитель-мотив (повторно используемый) ---- */
.hex-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--face-head);
  font-size: 13px; font-weight: 700; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--med-deep);
}
.hex-tag::before {
  content: ""; width: 16px; height: 18px; background: var(--med);
  -webkit-clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
          clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ===================== ШАПКА (cap) ===================== */
.cap {
  position: sticky; top: 0; z-index: 100;
  height: var(--cap-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.cap.is-stuck {
  background: rgba(255,248,234,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), var(--halo-sm);
  height: 60px;
}
.cap__row {
  width: min(100% - 40px, var(--reading));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__hex {
  width: 38px; height: 42px;
  display: grid; place-items: center;
  background: var(--med);
  -webkit-clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
          clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: var(--halo-sm);
}
.logo__hex svg { display: block; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--face-head); font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.logo__role { font-size: 11.5px; color: var(--ink-soft); letter-spacing: 1px; text-transform: uppercase; }

.helm { display: flex; align-items: center; gap: 26px; }
.helm a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.helm a:hover { color: var(--med-deep); }

.bee-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--face-head); font-weight: 700;
  background: var(--ink); color: var(--wax);
  padding: 12px 24px; border-radius: 999px; border: 2px solid var(--ink);
  cursor: pointer; transition: transform .15s, background .2s, color .2s;
  font-size: 15px;
}
.bee-btn:hover { background: var(--med); border-color: var(--med); color: var(--ink); transform: translateY(-2px); }
.bee-btn--ghost { background: transparent; color: var(--ink); }
.bee-btn--ghost:hover { background: var(--ink); color: var(--wax); border-color: var(--ink); }
.bee-btn--sm { padding: 9px 18px; font-size: 14px; }

.gate {
  display: none;
  width: 46px; height: 46px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--paper);
  cursor: pointer; padding: 0;
}
.gate span { display: block; width: 22px; height: 2.4px; background: var(--ink); margin: 4px auto; transition: .25s; border-radius: 2px; }
.gate[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.gate[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gate[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

/* ===================== ВИТРИНА / ВВЕРХ (crown) ===================== */
.crown {
  padding: var(--s6) 0 var(--s5);
  position: relative; overflow: hidden;
}
.crown__grid {
  width: min(100% - 40px, var(--reading)); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s5); align-items: center;
}
.crown__kicker { margin: 0 0 var(--s3); }
.crown__title {
  font-size: clamp(38px, 6vw, 68px); margin-bottom: var(--s3);
}
.crown__title .scribble {
  font-family: var(--face-display);
  color: var(--med-deep); font-weight: 400; letter-spacing: 0;
  display: inline-block; transform: rotate(-2deg);
}
.crown__lead { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin: 0 0 var(--s4); }
.crown__acts { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.crown__facts { display: flex; gap: var(--s4); flex-wrap: wrap; }
.crown__facts div { display: flex; flex-direction: column; }
.crown__facts b { font-family: var(--face-head); font-size: 28px; color: var(--med-deep); line-height: 1; }
.crown__facts span { font-size: 13px; color: var(--ink-soft); }

.crown__art { position: relative; }
.crown__photo {
  border-radius: var(--round-lg);
  box-shadow: var(--halo-lg);
  object-fit: cover; width: 100%; aspect-ratio: 4/5;
  border: 6px solid var(--paper);
}
.crown__badge {
  position: absolute; bottom: -22px; left: -22px;
  width: 132px; height: 148px;
  background: var(--med-glow);
  -webkit-clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
          clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center; text-align: center;
  box-shadow: var(--halo-md); transform: rotate(-6deg);
}
.crown__badge b { font-family: var(--face-display); font-size: 26px; color: var(--ink); line-height: .95; }
.crown__badge span { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

/* лента-бегунок над секциями */
.tape {
  background: var(--ink); color: var(--med-glow);
  padding: 12px 0; overflow: hidden; white-space: nowrap;
  font-family: var(--face-head); font-weight: 700; letter-spacing: 1px;
  border-block: 2px solid var(--med-deep);
}
.tape__run { display: inline-block; padding-left: 100%; animation: glide 28s linear infinite; }
.tape__run span { padding: 0 28px; }
.tape__run span::before { content: "✦ "; color: var(--med); }
@keyframes glide { to { transform: translateX(-100%); } }

/* ===================== БЛОК С ПОДЗАГОЛОВКОМ ===================== */
.strip { padding: var(--s6) 0; }
.strip--wax { background: var(--wax-deep); }
.strip__head { text-align: center; max-width: 720px; margin: 0 auto var(--s5); }
.strip__head .hex-tag { margin-bottom: var(--s2); }
.strip__title { font-size: clamp(28px, 4vw, 42px); margin-bottom: var(--s2); }
.strip__say { color: var(--ink-soft); font-size: 18px; }

/* ===================== ПРОДУКТЫ (jars) ===================== */
.jars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.jar {
  background: var(--paper); border-radius: var(--round);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: var(--halo-sm); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.jar:hover { transform: translateY(-6px); box-shadow: var(--halo-md); }
.jar__pic { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.jar__pic--mono { filter: saturate(1.05); }
.jar__body { padding: var(--s3) var(--s3) var(--s4); display: flex; flex-direction: column; flex: 1; }
.jar__name { font-family: var(--face-head); font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.jar__note { color: var(--ink-soft); font-size: 15px; flex: 1; margin-bottom: var(--s3); }
.jar__foot { display: flex; align-items: center; justify-content: space-between; }
.jar__price { font-family: var(--face-head); font-weight: 800; font-size: 22px; color: var(--med-deep); }
.jar__price small { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.jar__tag {
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  background: var(--med-soft); color: var(--med-deep);
  padding: 4px 10px; border-radius: 999px;
}

/* ===================== ИСТОРИЯ БРЕНДА (saga) ===================== */
.saga__grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s5); align-items: center;
}
.saga__art { position: relative; }
.saga__photo { border-radius: var(--round-lg); box-shadow: var(--halo-md); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.saga__quote {
  position: absolute; right: -18px; bottom: 24px;
  background: var(--ink); color: var(--wax);
  padding: var(--s3) var(--s4); border-radius: var(--round);
  max-width: 240px; box-shadow: var(--halo-md);
  font-family: var(--face-display); font-size: 19px; line-height: 1.3;
}
.saga__copy h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: var(--s3); }
.saga__copy p { color: var(--ink-soft); margin: 0 0 var(--s3); }
.saga__sign { display: flex; align-items: center; gap: 14px; margin-top: var(--s4); }
.saga__sign b { font-family: var(--face-display); font-size: 26px; color: var(--med-deep); }
.saga__sign span { font-size: 14px; color: var(--ink-soft); }

/* ===================== ПРОЦЕСС / КАК ЭТО РАБОТАЕТ (combs) ===================== */
.combs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.comb {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--round); padding: var(--s4) var(--s3);
  position: relative;
}
.comb__num {
  width: 46px; height: 52px; margin-bottom: var(--s3);
  background: var(--med-soft); color: var(--med-deep);
  font-family: var(--face-head); font-weight: 800; font-size: 22px;
  display: grid; place-items: center;
  -webkit-clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
          clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.comb h3 { font-size: 18px; margin-bottom: 8px; }
.comb p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ===================== КРЫШИ / ЛОКАЦИИ (roofs) ===================== */
.roofs__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s4); align-items: stretch; }
.roofs__big { position: relative; border-radius: var(--round-lg); overflow: hidden; box-shadow: var(--halo-md); }
.roofs__big img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.roofs__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(29,26,20,.85));
  color: var(--wax); padding: var(--s5) var(--s4) var(--s3);
}
.roofs__cap h3 { color: var(--wax); font-size: 24px; margin-bottom: 4px; }
.roofs__cap p { margin: 0; opacity: .9; font-size: 15px; }
.roofs__list { display: flex; flex-direction: column; gap: var(--s2); }
.spot {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--round); padding: var(--s3); flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}
.spot b { font-family: var(--face-head); font-size: 18px; }
.spot span { color: var(--ink-soft); font-size: 14.5px; }
.spot .spot__hours { color: var(--med-deep); font-weight: 700; font-size: 13.5px; margin-top: 4px; }

/* ===================== ОТЗЫВЫ (hum) ===================== */
.hum { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.hum__card {
  background: var(--paper); border-radius: var(--round);
  border: 1px solid var(--line); padding: var(--s4);
  box-shadow: var(--halo-sm);
}
.hum__stars { color: var(--med); letter-spacing: 2px; margin-bottom: var(--s2); }
.hum__card p { margin: 0 0 var(--s3); font-size: 15.5px; }
.hum__who { display: flex; align-items: center; gap: 11px; }
.hum__ava {
  width: 40px; height: 44px; background: var(--med-soft); color: var(--med-deep);
  display: grid; place-items: center; font-family: var(--face-head); font-weight: 800;
  -webkit-clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
          clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hum__who b { display: block; font-size: 14.5px; }
.hum__who span { font-size: 12.5px; color: var(--ink-soft); }

/* ===================== ПОДПИСКА / ЗАЯВКА (call) ===================== */
.call {
  background:
    radial-gradient(circle at 12% 20%, rgba(242,201,76,.18), transparent 40%),
    var(--ink);
  color: var(--wax); border-radius: var(--round-lg);
  padding: var(--s6) var(--s5);
  width: min(100% - 40px, var(--reading)); margin: var(--s6) auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center;
}
.call h2 { color: var(--wax); font-size: clamp(26px, 4vw, 38px); margin-bottom: var(--s3); }
.call h2 .scribble { font-family: var(--face-display); color: var(--med-glow); font-weight: 400; }
.call p { opacity: .88; margin: 0 0 var(--s3); }
.call .hex-tag { color: var(--med-glow); }
.call__perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.call__perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.call__perks li::before { content: "✦"; color: var(--med-glow); font-size: 14px; margin-top: 3px; }

.signup { background: var(--wax); border-radius: var(--round); padding: var(--s4); color: var(--ink); }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; font-family: var(--face-head); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 2px solid var(--line);
  border-radius: 12px; font: inherit; background: var(--paper); color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--med); outline: none; }
.field textarea { resize: vertical; min-height: 78px; }
.field--bad input, .field--bad select { border-color: #c0392b; }
.field__err { color: #c0392b; font-size: 13px; margin-top: 5px; display: none; }
.field--bad .field__err { display: block; }
.signup__ok {
  display: none; background: var(--med-soft); color: var(--med-deep);
  border-radius: 12px; padding: var(--s3); font-weight: 700; text-align: center;
}
.signup__ok.is-on { display: block; }
.signup .bee-btn { width: 100%; }
.signup__fine { font-size: 12px; color: var(--ink-soft); margin-top: var(--s2); text-align: center; }

/* ===================== ПОДВАЛ (base) ===================== */
.base { background: var(--ink); color: #cfc6b2; padding: var(--s6) 0 var(--s4); margin-top: var(--s5); }
.base__grid {
  width: min(100% - 40px, var(--reading)); margin-inline: auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s5); margin-bottom: var(--s5);
}
.base__brand .logo__name { color: var(--wax); }
.base__brand p { font-size: 14.5px; max-width: 30em; margin: var(--s3) 0 0; }
.base h4 { color: var(--wax); font-family: var(--face-head); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 var(--s3); }
.base ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.base ul a, .base address a { color: #cfc6b2; font-size: 14.5px; }
.base ul a:hover, .base address a:hover { color: var(--med-glow); }
.base address { font-style: normal; font-size: 14.5px; line-height: 1.9; }
.base__bottom {
  width: min(100% - 40px, var(--reading)); margin-inline: auto;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--s3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2);
  font-size: 13px; color: #998f78;
}

/* ===================== REVEAL-АНИМАЦИЯ ===================== */
.veil { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.veil.is-shown { opacity: 1; transform: none; }
.veil-1 { transition-delay: .08s; }
.veil-2 { transition-delay: .16s; }
.veil-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .veil { opacity: 1; transform: none; transition: none; }
}

/* ===================== АДАПТИВ ===================== */
@media (max-width: 900px) {
  .helm { position: fixed; inset: 60px 0 auto 0; background: var(--wax);
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2);
    box-shadow: var(--halo-md); border-top: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s; }
  .helm.is-open { transform: none; }
  .helm a { padding: 14px 10px; border-bottom: 1px solid var(--line); }
  .helm .bee-btn { margin-top: var(--s2); }
  .gate { display: block; }

  .crown__grid, .saga__grid, .roofs__grid, .call { grid-template-columns: 1fr; }
  .crown__art { order: -1; max-width: 440px; margin-inline: auto; }
  .jars, .hum { grid-template-columns: 1fr 1fr; }
  .combs { grid-template-columns: 1fr 1fr; }
  .saga__quote { position: static; max-width: none; margin-top: var(--s3); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .strip, .crown { padding: var(--s5) 0; }
  .jars, .hum, .combs { grid-template-columns: 1fr; }
  .crown__facts { gap: var(--s3); }
  .call { padding: var(--s5) var(--s3); }
  .crown__badge { width: 104px; height: 116px; left: -8px; bottom: -16px; }
}
