/* ===== Design system tokens ===== */
:root {
  --primary: #B7791F;
  --secondary: #3E2723;
  --background: #FBF6EC;
  --surface: #FFFFFF;
  --text-primary: #2E1D12;
  --text-secondary: #6B5440;
  --accent: #F0A830;
  --secondary-soft: #E8D9B5;

  --font-family: 'Manrope', 'Sora', 'Inter', system-ui, sans-serif;
  --heading-font: 'Manrope', 'Sora', sans-serif;
  --body-font: 'Inter', system-ui, sans-serif;

  --h1-size: 56px;
  --h2-size: 36px;
  --body-size: 17px;

  --u: 8px;            /* base unit */
  --section-pad: 96px 24px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 6px 18px rgba(62, 39, 35, 0.08);
  --shadow-md: 0 14px 34px rgba(62, 39, 35, 0.12);
  --maxw: 1180px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--body-size);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--heading-font); line-height: 1.18; margin: 0; color: var(--text-primary); }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--heading-font); font-weight: 600;
  font-size: 16px; padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
}
.btn--accent { background: var(--accent); color: var(--secondary); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: #ffb733; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn--outline:hover { background: rgba(62,39,35,.06); transform: translateY(-2px); }
.btn--lg { font-size: 17px; padding: 16px 34px; }
.btn--block { width: 100%; }

/* ===== Section scaffolding ===== */
section { padding: var(--section-pad); position: relative; }
.section__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section__title { font-size: var(--h2-size); font-weight: 700; }
.section__sub { margin-top: 12px; color: var(--text-secondary); font-size: 18px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 246, 236, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 217, 181, 0.6);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.nav__logo { display: flex; align-items: center; gap: 8px; font-family: var(--heading-font); font-weight: 700; font-size: 19px; color: var(--secondary); }
.nav__logo-mark { font-size: 22px; }
.nav__links { display: flex; gap: 24px; margin-left: auto; font-weight: 500; }
.nav__links a { color: var(--text-secondary); transition: color .15s; }
.nav__links a:hover { color: var(--primary); }
.nav__cta { padding: 10px 20px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 24px; height: 2px; background: var(--secondary); border-radius: 2px; transition: .2s; }
.nav__mobile { display: none; flex-direction: column; gap: 6px; padding: 8px 24px 18px; max-width: var(--maxw); margin: 0 auto; }
.nav__mobile a { padding: 12px 4px; color: var(--text-secondary); border-bottom: 1px solid var(--secondary-soft); }
.nav__mobile .btn { margin-top: 8px; border-bottom: 0; }

/* ===== s1 Hero ===== */
.hero { overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: url('assets_beekeeping/bg_meadow.png');
  background-image: linear-gradient(180deg, rgba(251,246,236,0.55) 0%, rgba(232,217,181,0.50) 100%), url('assets_beekeeping/bg_meadow_1920.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: radial-gradient(circle at 12px 12px, var(--primary) 2px, transparent 2px);
  background-size: 28px 28px;
}
.hero__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.badge {
  display: inline-block; font-family: var(--heading-font); font-weight: 700;
  background: transparent; color: var(--primary);
  border: 1px solid rgba(183, 121, 31, .45); padding: 6px 14px; border-radius: 999px; font-size: 14px;
  text-shadow: 0 1px 4px rgba(251, 246, 236, .95), 0 0 8px rgba(251, 246, 236, .8);
}
.hero__title { font-size: var(--h1-size); font-weight: 800; margin-top: 18px; }
.hero__sub { margin-top: 18px; color: var(--text-secondary); font-size: 19px; max-width: 540px; }
.hero__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); object-fit: cover; aspect-ratio: 4/3;
}
.hero__drip {
  position: absolute; right: -14px; bottom: -14px; width: 120px; height: 120px;
  background: radial-gradient(circle at 50% 30%, var(--accent), var(--primary));
  border-radius: 0 0 80px 80px; opacity: .25; filter: blur(2px);
}
.trust-strip { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 18px; }
.trust-strip__item { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--secondary); font-size: 15px; }
.trust-strip__item span { color: var(--primary); font-weight: 800; }

/* ===== s2 Features ===== */
.features { background: var(--surface); }
.features__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  position: relative; background: var(--surface); border: 1px solid var(--secondary-soft);
  border-radius: var(--radius); padding: 30px 26px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card__accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  background: var(--background); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-card__icon--svg { color: var(--primary); }
.feature-card__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feature-card__desc { color: var(--text-secondary); font-size: 15.5px; }
.feature-card__stat {
  display: inline-block; margin-top: 14px; font-family: var(--heading-font); font-weight: 600;
  color: var(--primary); background: var(--background); padding: 5px 12px; border-radius: 999px; font-size: 13px;
}

/* ===== s3 Process ===== */
.process { background: var(--background); }
.process__body { max-width: 820px; margin: 0 auto 48px; text-align: center; color: var(--text-secondary); font-size: 18px; }
.stepper { max-width: var(--maxw); margin: 0 auto; position: relative; }
.stepper__line { position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 3px; background: var(--secondary-soft); border-radius: 3px; }
.stepper__progress { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 3px; transition: width .6s ease; }
.stepper__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.step__node {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--primary); font-family: var(--heading-font); font-weight: 800; font-size: 24px;
  border: 3px solid var(--accent); box-shadow: var(--shadow-sm); position: relative; z-index: 2;
}
.step__media { width: 100%; height: 150px; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--surface); }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step__caption { color: var(--text-secondary); font-size: 14.5px; }

/* ===== s4 Catalog ===== */
.catalog { background: var(--background); }
.catalog__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  position: relative; background: var(--surface); border: 1px solid var(--secondary-soft);
  border-radius: var(--radius); padding: 22px; transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card__media { height: 180px; border-radius: var(--radius); overflow: hidden; background: var(--background); margin-bottom: 16px; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.product-card__title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.product-card__desc { color: var(--text-secondary); font-size: 14.5px; flex: 1; }
.product-card__price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; flex-wrap: wrap; }
.product-card__price-now { font-family: var(--heading-font); font-weight: 800; font-size: 24px; color: var(--primary); }
.product-card__price-old { color: var(--text-secondary); text-decoration: line-through; font-size: 15px; }
.product-card__price-unit { color: var(--text-secondary); font-size: 13px; }
.product-card__format { color: var(--text-secondary); font-size: 13px; margin-bottom: 14px; }
.product-card--best { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.product-card__ribbon {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: var(--accent); color: var(--secondary); font-family: var(--heading-font); font-weight: 700;
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
}
.catalog__cta { text-align: center; margin-top: 40px; }

/* ===== s5 Testimonials ===== */
.testimonials { background: var(--surface); }
.rating-summary { text-align: center; margin-bottom: 36px; }
.rating-summary__stars { color: var(--accent); font-size: 22px; letter-spacing: 2px; }
.rating-summary__text { display: block; margin-top: 6px; color: var(--text-secondary); font-size: 15px; }
.testimonials__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card {
  position: relative; background: var(--surface); border: 1px solid var(--secondary-soft);
  border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-card--featured { border: 2px solid var(--accent); grid-column: 1 / -1; display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; }
.review-card__photo { width: 200px; height: 200px; border-radius: var(--radius); object-fit: cover; }
.review-card__check {
  position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--secondary); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.review-card__avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--secondary-soft); color: var(--secondary);
  display: flex; align-items: center; justify-content: center; font-family: var(--heading-font); font-weight: 700; font-size: 20px; margin-bottom: 10px;
}
.review-card__author { font-size: 18px; font-weight: 700; }
.review-card__role { color: var(--text-secondary); font-size: 14px; margin-bottom: 6px; }
.review-card__stars { color: var(--accent); letter-spacing: 1px; margin-bottom: 8px; }
.review-card__text { color: var(--text-primary); font-size: 16px; }
.review-card__tag {
  display: inline-block; margin-top: 12px; background: var(--background); color: var(--primary);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}

/* ===== s6 FAQ ===== */
.faq { background: var(--background); }
.faq__list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--secondary-soft); border-radius: var(--radius); overflow: hidden; }
.faq__item.is-open { border-left: 4px solid var(--primary); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: 0; cursor: pointer; padding: 20px 22px;
  font-family: var(--heading-font); font-weight: 600; font-size: 18px; color: var(--text-primary); text-align: left;
}
.faq__q:hover { color: var(--primary); }
.faq__chevron { color: var(--primary); font-size: 22px; transition: transform .25s ease; flex-shrink: 0; }
.faq__item.is-open .faq__chevron { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 22px 20px; color: var(--text-secondary); font-size: 15.5px; }

/* ===== s7 Contact ===== */
.contact { background: var(--background); }
.contact__band {
  max-width: var(--maxw); margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(120deg, var(--secondary) 0%, var(--secondary) 55%, var(--primary) 100%);
  color: #fff; padding: 56px 48px; text-align: center; box-shadow: var(--shadow-md);
}
.contact__title { color: #fff; font-size: var(--h2-size); font-weight: 700; }
.contact__sub { color: var(--secondary-soft); margin-top: 10px; font-size: 18px; }
.contact__body { color: rgba(255,255,255,.9); max-width: 680px; margin: 18px auto 0; font-size: 16px; }
.contact__form {
  max-width: 640px; margin: 30px auto 0; background: var(--surface); border-radius: var(--radius);
  padding: 28px; text-align: left; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { display: flex; flex-direction: column; }
.field:nth-child(3) { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--text-primary); font-size: 14px; margin-bottom: 6px; }
.field input {
  font-family: var(--body-font); font-size: 15px; padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid var(--secondary-soft); background: var(--background); color: var(--text-primary); transition: border .15s;
}
.field input:focus { outline: none; border-color: var(--primary); }
.field input.is-invalid { border-color: #c0392b; }
.field__error { color: #c0392b; font-size: 12.5px; margin-top: 4px; min-height: 14px; }
.contact__form .btn { grid-column: 1 / -1; }
.contact__privacy { grid-column: 1 / -1; text-align: center; color: var(--text-secondary); font-size: 12.5px; margin: 4px 0 0; }
.contact__thanks { grid-column: 1 / -1; text-align: center; color: var(--primary); font-weight: 700; font-size: 16px; margin: 8px 0 0; }
.contact__details { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; color: var(--secondary-soft); }
.contact__detail { display: flex; align-items: center; gap: 8px; font-size: 15px; }

/* ===== s8 Courses ===== */
.courses { background: var(--background); }
.courses__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.courses__body { color: var(--text-secondary); font-size: 17px; margin: 14px 0 24px; }
.courses__col--media { position: relative; }
.courses__col--media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; aspect-ratio: 4/3; }
.courses__modules {
  margin-top: 20px; background: var(--secondary-soft); border-radius: var(--radius); padding: 20px 22px;
  display: grid; gap: 12px;
}
.courses__modules li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--secondary); }

/* ===== Footer ===== */
.footer { background: var(--secondary); color: var(--secondary-soft); padding: 30px 24px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer__logo { font-family: var(--heading-font); font-weight: 700; font-size: 18px; color: #fff; }
.footer__copy { font-size: 14px; max-width: 620px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Meadow + forest background for all content sections (s2-s8) ===== */
/* Photo of a flowering meadow with forest behind, kept visible by a
   semi-transparent cream-to-honey overlay (max opacity 0.6). The dark
   text_primary #2E1D12 stays AA-readable over the translucent cream. */
.s2, .s3, .s4, .s5, .s6, .s7, .s8 {
  background-color: var(--background);
  background-image: linear-gradient(180deg, rgba(251,246,236,0.55) 0%, rgba(232,217,181,0.50) 100%), url('assets_beekeeping/bg_meadow.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Keep section content above the background layer */
.s2 > *, .s3 > *, .s4 > *, .s5 > *, .s6 > *, .s7 > *, .s8 > * {
  position: relative;
  z-index: 1;
}

/* ===== Readability over the meadow background =====
   Soft light halo behind dark text so it separates from the busy photo.
   Overlay opacity and palette are intentionally untouched. */
section:not(.hero) .section__title,
section:not(.hero) .section__sub,
section:not(.hero) p,
section:not(.hero) li,
.hero__title,
.hero__sub,
.hero__actions,
.feature-card__title,
.feature-card__desc,
.product-card__title,
.product-card__desc,
.review-card__text,
.step__title,
.step__caption,
.courses__body,
.contact__sub,
.contact__body {
  text-shadow: 0 1px 4px rgba(251, 246, 236, 0.75);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .features__grid, .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .stepper__steps { grid-template-columns: repeat(2, 1fr); gap: 30px 22px; }
  .stepper__line { display: none; }
}

@media (max-width: 768px) {
  :root { --h1-size: 34px; --h2-size: 28px; --section-pad: 64px 18px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.is-open { display: flex; }

  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__col--media { order: 2; }
  .hero__actions .btn { flex: 1; }
  .trust-strip { gap: 12px; }
  .trust-strip__item { flex: 1 1 45%; }

  .features__grid, .catalog__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .review-card--featured { grid-template-columns: 1fr; }
  .review-card__photo { width: 100%; height: 200px; }

  .stepper__steps { grid-template-columns: 1fr; gap: 26px; text-align: left; }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; align-items: center; }
  .step__node { margin: 0; }
  .step__media { grid-column: 1 / -1; height: 120px; }
  .step__title, .step__caption { grid-column: 2; }

  .courses__grid { grid-template-columns: 1fr; gap: 30px; }
  .contact__band { padding: 40px 20px; }
  .contact__form { grid-template-columns: 1fr; padding: 22px; }
  .field:nth-child(3) { grid-column: auto; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ===== MOTION BLOCK (Моушн-дизайнер): breeze v3 — волна ветерка по полосам ===== */
/* s1 Hero: «ветерок v3» по распоряжению Директора.
   Исправление к v2: трава больше НЕ качается одним куском. Нижний слой
   нарезан JS-ом (js_add в script.js) на N=16 вертикальных полос
   .hero__stripe — каждая со СВОЕЙ фазой: animation-delay = -(i/N)*8s,
   так волна лёгкого покачивания идёт поперёк кадра.
   Базовый .hero__bg остаётся СТАТИЧНЫМ: небо/верх не двигаются — на полосах
   mask-image отсекает верхние ~42%, видны только нижние ~60–100% (трава).
   Каждая полоса несёт ТОТ ЖЕ фото-слой, что и база: background-size =
   (N*100%) 100% и своё background-position-x = i/(N-1)*100% — в покое
   картинка бесшовна, полосы покрывают базовый фон целиком.
   Амплитуда (--amp) и наклон (--rot) чуть меняются по --i, чтобы волна
   не выглядела механической. Анимируется ТОЛЬКО transform (GPU);
   scale(1.06) страхует от оголения; .hero { overflow:hidden } режет свесы. */
@keyframes heroBreeze {
  0%   { transform: scale(1.06) translateX(calc(var(--amp, 8px) * -1)) rotate(calc(var(--rot, 0.5deg) * -1)); }
  48%  { transform: scale(1.06) translateX(calc(var(--amp, 8px) * 0.5)) rotate(calc(var(--rot, 0.5deg) * 0.4)); }
  100% { transform: scale(1.06) translateX(var(--amp, 8px)) rotate(var(--rot, 0.5deg)); }
}
.hero__stripe {
  --amp: calc(8px + var(--i, 0) * 0.35px);
  --rot: calc(0.5deg - var(--i, 0) * 0.02deg);
  position: absolute;
  top: 0;
  left: calc(var(--i, 0) * 100% / var(--n, 16));
  width: calc(100% / var(--n, 16));
  height: 100%;
  background-image: url('assets_beekeeping/bg_meadow.png');
  background-image: linear-gradient(180deg, rgba(251,246,236,0.55) 0%, rgba(232,217,181,0.50) 100%), url('assets_beekeeping/bg_meadow_1920.webp');
  background-size: calc(var(--n, 16) * 100%) 100%;
  background-position-x: calc(var(--i, 0) / (var(--n, 16) - 1) * 100%);
  background-position-y: 0%;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 42%, #000 60%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 42%, #000 60%, #000 100%);
  transform-origin: 50% 100%;
  will-change: transform;
  animation: heroBreeze 8s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .hero__stripe {
    animation: none;
    transform: none;
    will-change: auto;
  }
}
/* ===== END MOTION BLOCK (Моушн-дизайнер): breeze v3 ===== */
