/* =========================================================
   Медовий Магазин «Бджілка» — основні стилі
   ========================================================= */

:root {
  --color-honey: #e8a317;
  --color-honey-dark: #c2810b;
  --color-honey-light: #f6c453;
  --color-brown: #4a2c13;
  --color-brown-dark: #2e1b0b;
  --color-cream: #fff8ec;
  --color-cream-dark: #fbead0;
  --color-text: #3a2a18;
  --color-muted: #7a6a56;
  --color-white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(74, 44, 19, 0.12);
  --shadow-sm: 0 4px 14px rgba(74, 44, 19, 0.1);
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Verdana, Arial, sans-serif;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-brown-dark);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

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

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--alt {
  background: var(--color-cream-dark);
}

.section--brown {
  background: var(--color-brown-dark);
  color: #f3e6d2;
}

.section--brown h2,
.section--brown h3 {
  color: var(--color-white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-honey-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-honey);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.section-head p {
  color: var(--color-muted);
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: var(--font-body);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-honey);
  color: var(--color-brown-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-honey-dark);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-honey);
  color: var(--color-brown-dark);
}

.btn-outline:hover {
  background: var(--color-honey);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-brown-dark);
}

.btn-light:hover {
  background: var(--color-honey-light);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 236, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(74, 44, 19, 0.08);
}

.topbar {
  background: var(--color-brown-dark);
  color: #e9d9bf;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar a {
  color: inherit;
}

.topbar__contacts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-brown-dark);
}

.brand__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-honey-dark);
  border-color: var(--color-honey);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--color-brown-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 60%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-honey-dark);
}

.hero p.lead {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stats__item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-brown-dark);
}

.hero-stats__item span {
  font-size: 13px;
  color: var(--color-muted);
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.2;
}

.hero-media .badge-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
}

.badge-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-honey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.badge-card strong {
  display: block;
  font-size: 14px;
  color: var(--color-brown-dark);
}

.badge-card span {
  font-size: 12px;
  color: var(--color-muted);
}

/* ---------- Honeycomb divider ---------- */

.comb-divider {
  height: 46px;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 65%, var(--color-cream) 66%);
  background-size: 46px 56px;
  background-position: 0 -18px;
  background-color: var(--color-honey);
}

/* ---------- Feature / value cards ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--color-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-muted);
  font-size: 15px;
  margin-bottom: 0;
}

/* ---------- Product cards ---------- */

.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-honey);
  color: var(--color-brown-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.product-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card__body h3 {
  font-size: 19px;
  margin-bottom: 0;
}

.product-card__body p {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 0;
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-brown-dark);
  font-weight: 700;
}

.product-card__price span {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 400;
  font-family: var(--font-body);
}

/* ---------- Filters (products page) ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}

.filters button {
  font-family: var(--font-body);
  border: 2px solid var(--color-honey);
  background: transparent;
  color: var(--color-brown-dark);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.filters button.is-active,
.filters button:hover {
  background: var(--color-honey);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step {
  text-align: center;
  position: relative;
}

.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-honey);
  color: var(--color-brown-dark);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 17px;
}

.step p {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 0;
}

/* ---------- Testimonials ---------- */

.testimonial {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.testimonial__stars {
  color: var(--color-honey-dark);
  margin-bottom: 12px;
  font-size: 15px;
}

.testimonial p.quote {
  font-style: italic;
  color: var(--color-text);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-honey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-brown-dark);
  flex-shrink: 0;
}

.testimonial__author strong {
  display: block;
  font-size: 14px;
}

.testimonial__author span {
  font-size: 12px;
  color: var(--color-muted);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--color-honey-dark), var(--color-honey));
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--color-brown-dark);
}

.cta-band h2 {
  color: var(--color-brown-dark);
  margin-bottom: 8px;
  font-size: 28px;
}

.cta-band p {
  margin-bottom: 0;
  color: #5a3c17;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-brown-dark);
}

.form-group .hint {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e4d6bd;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--color-cream);
  color: var(--color-text);
  transition: border-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-honey);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.checkbox-row input {
  margin-top: 3px;
}

.form-msg {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.form-msg.is-success {
  display: block;
  background: #e4f3e1;
  color: #2a6b1f;
}

.form-msg.is-error {
  display: block;
  background: #fbe4e1;
  color: #a3301f;
}

.honey-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer newsletter ---------- */

.newsletter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter input[type="email"] {
  flex: 1;
  min-width: 180px;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.newsletter input[type="email"]::placeholder {
  color: #d8c5a4;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-brown-dark);
  color: #cbb68f;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid ul a {
  font-size: 14px;
  color: #cbb68f;
  transition: color 0.15s ease;
}

.footer-grid ul a:hover {
  color: var(--color-honey-light);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-grid p {
  font-size: 14px;
  color: #b7a07a;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  transition: background 0.15s ease;
}

.social-row a:hover {
  background: var(--color-honey);
  color: var(--color-brown-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #a08a63;
}

.footer-bottom a {
  color: #a08a63;
}

.footer-bottom a:hover {
  color: var(--color-honey-light);
}

/* ---------- Breadcrumb / page header ---------- */

.page-hero {
  background: var(--color-cream-dark);
  padding: 56px 0 48px;
  text-align: center;
}

.page-hero .eyebrow {
  justify-content: center;
}

.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-honey-dark);
  font-weight: 600;
}

/* ---------- Content pages (about/privacy/terms) ---------- */

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 40px;
  font-size: 24px;
}

.prose h3 {
  margin-top: 26px;
  font-size: 18px;
}

.prose ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 1em;
}

.prose li {
  margin-bottom: 6px;
}

.prose p {
  color: var(--color-text);
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info__item {
  display: flex;
  gap: 14px;
}

.contact-info__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-honey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info__item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-info__item p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 0;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/9;
  background: var(--color-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .topbar__contacts {
    display: none;
  }
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 56px 0;
  }
  .cta-band {
    flex-direction: column;
    text-align: center;
  }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    padding: 20px 24px 28px;
    box-shadow: var(--shadow);
    gap: 16px;
  }
}
