/*
Theme Name: Beepro
Theme URI: https://beepro.ru
Author: Beepro
Description: Шаблон для сайта beepro.ru — пчёлы, породы, матководство, литература и продукция пчеловодства. Тёплая палитра мёда, линейная золотистая графика.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beepro
Tags: blog, custom-logo, custom-menu, featured-images, one-column, two-columns
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
  --honey: #D9A94E;          /* основной золотистый (из логотипа) */
  --honey-dark: #B98A33;
  --honey-light: #F0CE8B;
  --cream: #FBF7EF;          /* фон страницы */
  --cream-soft: #F6EFE0;     /* фон секций/карточек */
  --wax: #FFF1CC;            /* акцентные плашки */
  --ink: #4A3B22;            /* основной текст */
  --ink-soft: #7C6A4A;       /* вторичный текст */
  --ink-faint: #A08C64;
  --line: #E9DEC6;           /* линии и границы */
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(74, 59, 34, .08);
  --shadow-lg: 0 18px 45px rgba(74, 59, 34, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
}

/* ============ БАЗА ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--honey-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--honey); }
img { max-width: 100%; height: auto; display: block; }

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

/* ============ УТИЛИТЫ ============ */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--honey-dark);
  margin-bottom: .5rem;
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-primary { background: var(--honey); color: #fff; }
.btn-primary:hover { background: var(--honey-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--honey); color: var(--honey-dark); background: transparent; }
.btn-outline:hover { background: var(--honey); color: #fff; }

.section { padding: 72px 0; }
.section-head { margin-bottom: 40px; }
.section-head .lead { max-width: 640px; color: var(--ink-soft); font-size: 1.05rem; }
.section-alt { background: var(--cream-soft); }

/* ============ ШАПКА ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 46px; height: 46px;
  /* подложка под логотип (цвет фона шапки), скругление — намёк на соту */
  background: var(--cream);
  border: 1.5px solid var(--honey-light);
  border-radius: 14px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(74, 59, 34, .06);
}
.brand-name { font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.brand-name span { color: var(--honey-dark); }
.brand-tag { display: block; font-family: 'Manrope', sans-serif; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

.main-nav ul {
  display: flex; gap: 26px; list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  font-weight: 600; font-size: .95rem; color: var(--ink);
  padding: 6px 0; position: relative; display: inline-block;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--honey); transition: width .2s ease;
}
.main-nav a:hover::after, .main-nav .current-menu-item a::after { width: 100%; }

/* Выпадающее подменю */
.main-nav li { position: relative; }
.main-nav li ul {
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  flex-direction: column; gap: 0;
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.main-nav li ul li {
  width: 100%;
  border-bottom: 1px dashed var(--line);
}
.main-nav li ul li:last-child { border-bottom: none; }
.main-nav li ul a {
  display: block; padding: 10px 20px;
  font-size: .9rem; font-weight: 500;
  white-space: nowrap;
}
.main-nav li ul a:hover {
  background: var(--wax); color: var(--honey-dark);
}
.main-nav li ul a::after { display: none; }

/* Стрелочка у пункта с подменю */
.main-nav li:has(> ul) > a::before {
  content: '▾';
  margin-left: 6px;
  font-size: .7em;
  color: var(--honey-dark);
  vertical-align: middle;
}

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--honey-dark); cursor: pointer; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 88px 0 96px;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(240, 206, 139, .35), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(217, 169, 78, .18), transparent 50%),
    var(--cream);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="100" viewBox="0 0 56 100"><path d="M28 0L56 16.5v33L28 66 0 49.5v-33z M28 66l28 16.5v33L28 122 0 105.5v-33z" fill="none" stroke="%23E3D2AC" stroke-width="1.4"/></svg>');
  opacity: .35;
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 1.8em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { width: 100%; max-width: 460px; margin-left: auto; filter: drop-shadow(0 24px 40px rgba(74,59,34,.12)); }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.hero-stat b { display: block; font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--honey-dark); }
.hero-stat small { color: var(--ink-soft); font-size: .85rem; }

/* ============ КАРТОЧКИ СТАТЕЙ ============ */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--wax); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.18rem; margin-bottom: .45em; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--honey-dark); }
.card .meta { font-size: .8rem; color: var(--ink-faint); margin-bottom: .8em; display: flex; gap: 14px; }
.card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card .more { font-weight: 700; font-size: .9rem; margin-top: 12px; }

/* теги-категории: сотовая плашка */
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: .78rem; font-weight: 700;
  color: var(--honey-dark);
  background: var(--wax);
  border: 1px solid var(--honey-light);
  /* скошенные уголки — намёк на соту */
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

/* ============ РАЗДЕЛ РАЗДЕЛОВ (категории) ============ */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.topic {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.topic::before {
  content: ''; position: absolute; top: -34px; right: -34px;
  width: 90px; height: 96px;
  background: var(--wax);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: .55;
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic .num { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--honey); font-weight: 700; }
.topic h3 { font-size: 1.15rem; margin: .3em 0 .4em; }
.topic p { font-size: .9rem; color: var(--ink-soft); margin-bottom: .6em; }
.topic a { font-weight: 700; font-size: .88rem; }

/* ============ ПРОДУКЦИЯ ============ */
.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-img { aspect-ratio: 4/3; background: linear-gradient(140deg, var(--wax), var(--cream-soft)); display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 20px 22px 24px; }
.product-body h3 { font-size: 1.1rem; }
.product-body .desc { font-size: .9rem; color: var(--ink-soft); margin-bottom: .9em; }
.product-price { font-weight: 800; color: var(--honey-dark); font-size: 1.05rem; }
.product-price small { color: var(--ink-faint); font-weight: 500; }
.product .btn { width: 100%; margin-top: 14px; text-align: center; }

/* ============ ПОДПИСКА ============ */
.subscribe {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(240,206,139,.5), transparent 55%),
    linear-gradient(120deg, #F7EFD9, #F3E6C6);
  border-radius: calc(var(--radius) + 8px);
  padding: 56px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.subscribe h2 { margin-bottom: .3em; }
.subscribe p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 1.6em; }
.subscribe-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.subscribe-form input {
  flex: 1; padding: 14px 20px; border-radius: 999px;
  border: 1.5px solid var(--honey-light); background: #fff;
  font-size: .95rem; font-family: inherit; color: var(--ink);
}
.subscribe-form input:focus { outline: none; border-color: var(--honey); }

/* ============ САЙДБАР ============ */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 26px; }
.widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.widget h4 { font-family: 'Manrope', sans-serif; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--honey-dark); margin-bottom: 1rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--ink); }
.widget li a:hover { color: var(--honey-dark); }
.widget .count { float: right; background: var(--wax); color: var(--honey-dark); font-weight: 700; font-size: .72rem; padding: 2px 9px; border-radius: 999px; }

/* ============ СТАТЬЯ ============ */
.article-hero { padding: 64px 0 40px; }
.article-hero .meta { color: var(--ink-faint); font-size: .9rem; margin: 10px 0 18px; }
.article-featured { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-featured img { width: 100%; display: block; }
.article-content { max-width: 760px; }
.article-content p { font-size: 1.02rem; }
.article-content blockquote {
  margin: 1.6em 0; padding: 20px 26px;
  border-left: 4px solid var(--honey);
  background: var(--wax);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem;
}
.breadcrumbs { font-size: .85rem; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs a:hover { color: var(--honey-dark); }

/* ============ ПОИСК ============ */
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] {
  flex: 1; padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid var(--honey-light); background: #fff; font-family: inherit;
}
.search-form input:focus { outline: none; border-color: var(--honey); }

/* ============ ПОДВАЛ ============ */
.site-footer { background: #3E3220; color: #D8CBA8; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 40px; }
.site-footer h4 { color: #F2E7C8; font-family: 'Manrope', sans-serif; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #D8CBA8; }
.site-footer a:hover { color: var(--honey-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: .92rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img {
  width: 44px;
  background: rgba(255, 251, 240, .08);
  border: 1px solid rgba(240, 206, 139, .35);
  border-radius: 12px;
  padding: 3px;
}
.footer-brand .brand-name { color: #F6EFDC; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============ ПАГИНАЦИЯ ============ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 700; font-size: .9rem; color: var(--ink); background: var(--white);
}
.pagination .current { background: var(--honey); border-color: var(--honey); color: #fff; }
.pagination a:hover { border-color: var(--honey); color: var(--honey-dark); }

/* ============ МОБИЛЬНАЯ АДАПТАЦИЯ ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .grid-3, .topics { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 18px; }
  .main-nav li { border-bottom: 1px dashed var(--line); }
  .main-nav li:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .topics { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero-stats { gap: 24px; }
  .subscribe { padding: 40px 24px; }
  .subscribe-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}
