/* ===========================================================
   Пчелиное содружество «Чебурашка» — лендинг
   Палитра мёда, тёплое солнце, тишина пасеки
   =========================================================== */

:root {
  --honey:      #f2a900;
  --honey-soft: #ffc94d;
  --honey-deep: #d98e00;
  --brown:      #5a3e2b;
  --brown-soft: #7c5a40;
  --cream:      #fff8ec;
  --cream-2:    #fdeecd;
  --meadow:     #7fb069;
  --ink:        #3a2a1c;
  --shadow:     0 18px 50px rgba(90, 62, 43, .16);
  --radius:     22px;
  --maxw:       1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand {
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  letter-spacing: .2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Соты как фон ---------- */
.honeycomb-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 100% 50%, transparent 20%, rgba(242,169,0,.05) 21%, rgba(242,169,0,.05) 34%, transparent 35%, transparent),
    radial-gradient(circle at 0% 50%, transparent 20%, rgba(242,169,0,.05) 21%, rgba(242,169,0,.05) 34%, transparent 35%, transparent);
  background-size: 56px 96px;
}

/* ---------- Шапка ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255, 248, 236, .82);
  border-bottom: 1px solid rgba(217, 142, 0, .18);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 22px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--brown); font-size: 1.05rem; }
.brand svg { width: 44px; height: 44px; flex: none; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: var(--brown-soft); text-decoration: none; font-family: "Trebuchet MS", sans-serif;
  font-size: .95rem; padding: 4px 2px; border-bottom: 2px solid transparent; transition: .2s;
}
.nav-links a:hover { color: var(--honey-deep); border-color: var(--honey); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 90px 22px 80px;
  overflow: hidden;
}
.hero-logo { width: 190px; height: 190px; margin: 0 auto 18px; filter: drop-shadow(0 12px 24px rgba(90,62,43,.22)); }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 10px; color: var(--brown);
}
.hero .accent { color: var(--honey-deep); }
.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--brown-soft); max-width: 620px; margin: 0 auto 30px; font-style: italic;
}
.btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Trebuchet MS", sans-serif; font-size: 1rem; text-decoration: none;
  padding: 13px 26px; border-radius: 999px; transition: transform .15s, box-shadow .2s; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--honey-soft), var(--honey-deep)); color: #fff; box-shadow: 0 10px 24px rgba(217,142,0,.35); }
.btn-ghost { background: transparent; color: var(--brown); border: 2px solid rgba(217,142,0,.4); }
.btn:hover { transform: translateY(-2px); }

/* плавающие пчёлки */
.bee-float { position: absolute; opacity: .5; animation: drift 9s ease-in-out infinite; }
.bee-float.b1 { top: 14%; left: 12%; animation-delay: 0s; }
.bee-float.b2 { top: 26%; right: 14%; animation-delay: 1.5s; }
.bee-float.b3 { bottom: 18%; left: 20%; animation-delay: 3s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) rotate(-4deg); }
  50%     { transform: translate(14px,-18px) rotate(6deg); }
}

/* ---------- Секции ---------- */
section { padding: 72px 0; }
.section-title {
  text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--brown); margin: 0 0 8px;
}
.section-sub { text-align: center; color: var(--brown-soft); margin: 0 auto 46px; max-width: 560px; font-style: italic; }

.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 38px; }
.divider span { height: 2px; width: 60px; background: linear-gradient(90deg, transparent, var(--honey)); }
.divider span:last-child { background: linear-gradient(90deg, var(--honey), transparent); }
.divider svg { width: 26px; height: 26px; }

/* «портянка» текста */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin: 0 0 22px; font-size: 1.08rem; }
.prose p:first-letter { color: var(--honey-deep); font-weight: 700; }
.prose .pull {
  border-left: 4px solid var(--honey); padding: 6px 0 6px 22px; margin: 30px 0;
  font-style: italic; color: var(--brown); font-size: 1.18rem;
}

/* ---------- Карточки-иконки ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 26px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid rgba(217,142,0,.12);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(90,62,43,.2); }
.card .ic { width: 58px; height: 58px; margin: 0 auto 16px; }
.card h3 { margin: 0 0 8px; color: var(--brown); font-size: 1.2rem; }
.card p { margin: 0; color: var(--brown-soft); font-size: .98rem; }

/* ---------- Галерея (SVG-иллюстрации) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 16 / 9; background: var(--cream-2);
}
.photo svg, .photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo img { transition: transform .5s ease; }
.photo:hover img { transform: scale(1.05); }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(58,42,28,.78));
  color: #fff8ec; padding: 26px 18px 14px; font-family: "Trebuchet MS", sans-serif; font-size: .95rem;
}

/* ---------- Мудрые советы ---------- */
.advice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.advice {
  background: var(--cream-2); border-radius: var(--radius); padding: 26px 26px 26px 64px;
  position: relative; color: var(--brown); font-size: 1.05rem; box-shadow: 0 8px 22px rgba(90,62,43,.08);
}
.advice::before {
  content: "“"; position: absolute; left: 18px; top: 6px;
  font-size: 3.4rem; color: var(--honey); font-family: Georgia, serif; line-height: 1;
}
.advice b { color: var(--honey-deep); }

/* ---------- Факты ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 22px; text-align: center; }
.fact .num { font-family: "Trebuchet MS", sans-serif; font-size: 2.6rem; font-weight: 800; color: var(--honey-deep); line-height: 1; }
.fact p { margin: 8px 0 0; color: var(--brown-soft); }

.band { background: linear-gradient(135deg, #fff3d6, #ffe6ad); }

/* ---------- Кикер (мелкий ярлык в карточке) ---------- */
.kicker {
  font-family: "Trebuchet MS", sans-serif; font-size: .74rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--honey-deep); margin-bottom: 4px;
}

/* ---------- Эпиграф (полоса с цитатой) ---------- */
.epigraph { text-align: center; padding: 64px 0; }
.epigraph blockquote {
  max-width: 780px; margin: 0 auto; font-style: italic; color: var(--brown);
  font-size: clamp(1.35rem, 3.2vw, 2rem); line-height: 1.5;
}
.epigraph blockquote::before { content: "«"; color: var(--honey); }
.epigraph blockquote::after  { content: "»"; color: var(--honey); }
.epigraph .src {
  display: block; margin-top: 16px; font-family: "Trebuchet MS", sans-serif;
  font-size: .92rem; letter-spacing: 1px; text-transform: uppercase; color: var(--brown-soft);
}

/* ---------- FAQ (аккордеон) ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq {
  background: #fff; border: 1px solid rgba(217,142,0,.16); border-radius: 16px;
  margin-bottom: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(90,62,43,.06);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: "Trebuchet MS", sans-serif; font-size: 1.08rem; color: var(--brown);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; color: var(--honey-deep); font-size: 1.6rem; line-height: 1;
  transition: transform .25s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 18px; color: var(--brown-soft); font-size: 1.02rem; }

/* ---------- Схема устройства улья ---------- */
.scheme {
  display: grid; grid-template-columns: minmax(220px, .9fr) 1.1fr; gap: 38px;
  align-items: center; max-width: 940px; margin: 0 auto;
}
.scheme .scheme-pic { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 30px rgba(90,62,43,.18)); }
.scheme ol { list-style: none; margin: 0; padding: 0; counter-reset: hive; }
.scheme li {
  position: relative; padding: 11px 0 11px 48px;
  border-bottom: 1px dashed rgba(217,142,0,.25); color: var(--brown-soft); font-size: 1rem;
}
.scheme li:last-child { border-bottom: none; }
.scheme li b { color: var(--brown); }
.scheme li::before {
  counter-increment: hive; content: counter(hive);
  position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--honey); color: #fff; font-family: "Trebuchet MS", sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
@media (max-width: 760px) { .scheme { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Кнопка «наверх» ---------- */
#toTop {
  position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; z-index: 30;
  border: none; border-radius: 50%; cursor: pointer; color: #fff; font-size: 1.5rem; line-height: 1;
  background: linear-gradient(135deg, var(--honey-soft), var(--honey-deep));
  box-shadow: 0 10px 24px rgba(217,142,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { transform: translateY(-3px); }

/* ---------- Подвал ---------- */
footer {
  background: var(--brown); color: #f3e6d6; text-align: center; padding: 50px 22px 36px;
}
footer .flogo { width: 70px; height: 70px; margin: 0 auto 14px; }
footer p { margin: 6px 0; font-size: .95rem; opacity: .85; }
footer .small { font-size: .82rem; opacity: .6; margin-top: 18px; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 680px) {
  .nav-links { display: none; }
  section { padding: 54px 0; }
}
