/* ============================================
   Партнер-Агро Мск — стили v2
   Современный, стильный, прямоугольные кнопки
   ============================================ */

:root {
  --green:        #2d7a2d;
  --green-dark:   #236023;
  --green-light:  #e8f5e8;
  --green-accent: #4caf50;
  --dark:         #1a1a1a;
  --dark-soft:    #2c2c2c;
  --text:         #1e1e1e;
  --text-light:   #666;
  --text-muted:   #999;
  --bg-grey:      #f7f8fa;
  --bg-white:     #ffffff;
  --border:       #e0e0e0;
  --border-dark:  #ccc;
  --gold:         #f0a500;
  --radius:       0px;
  --radius-sm:    0px;
  --container:    1200px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 28px rgba(0,0,0,.14);

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 16px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.2;
}
h1 { font-size: clamp(26px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: 18px; font-weight: 700; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

/* ========== КНОПКИ — все прямоугольные ========== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 4px 16px rgba(45,122,45,.3);
}
.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: #fff;
}
.btn-dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.btn-dark:hover { background: #333; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--green);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
}
.header-burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.header-burger span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: background .15s;
}
.header-burger:hover span { background: var(--green); }
.header-logo img { height: 46px; width: auto; }

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-icons a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color .15s;
}
.header-icons a:hover { color: var(--green); }
.header-icons svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: min(380px, 90vw);
  height: 100%;
  background: #fff;
  z-index: 201;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-right: 3px solid var(--green);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-grey);
}
.mobile-menu-header button {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  padding: 0;
  line-height: 1;
}
.mobile-menu-header button:hover { color: var(--green); }

.mobile-menu-list a,
.mobile-menu-list button.ml-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text);
  transition: background .1s, color .1s;
}
.mobile-menu-list a:hover,
.mobile-menu-list button.ml-item:hover {
  background: var(--green-light);
  color: var(--green);
}
.ml-arrow { color: var(--text-muted); font-size: 18px; }

.mobile-menu-contact {
  margin-top: auto;
  padding: 20px;
  border-top: 2px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-grey);
}
.mobile-menu-contact .phone {
  display: block;
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

/* ========== HERO SLIDER ========== */
.hero {
  background: var(--bg-grey);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-slide { display: none; padding: 48px 0 56px; }
.hero-slide.active { display: block; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero-text .eyebrow { font-size: 13px; }
.hero-text h1 { margin-bottom: 16px; }
.hero-text p { color: var(--text-light); max-width: 500px; margin-bottom: 28px; }
.hero-image {
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 440px;
  margin: 0 auto;
  border: 4px solid var(--green);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.hero-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-bottom: 24px;
}
.hero-dots button {
  width: 28px; height: 4px;
  border: none;
  background: var(--border-dark);
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.hero-dots button.active { background: var(--green); }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.2fr .8fr; }
}

/* ========== CATEGORY SCROLL (главная) ========== */
.cat-scroll-wrap { padding: 40px 0; }
.cat-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 20px 16px;
  margin: 0 -20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.cat-scroll::-webkit-scrollbar { height: 4px; }
.cat-scroll::-webkit-scrollbar-thumb { background: var(--border-dark); }

.cat-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  text-align: center;
  background: var(--bg-grey);
  border: 2px solid var(--border);
  padding: 20px 12px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.cat-card img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 12px; }
.cat-card span { font-size: 13px; font-weight: 600; line-height: 1.3; }

/* ========== SECTIONS & PRODUCT GRID ========== */
.section { padding: 48px 0; }
.section-grey { background: var(--bg-grey); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.section-head h2 { margin: 0; }
.section-head .all-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 980px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: #fff;
  border: 2px solid var(--border);
  padding: 20px 16px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-card .eyebrow { font-size: 11px; margin-bottom: 6px; }
.product-card h3 { font-size: 15px; margin-bottom: 8px; line-height: 1.35; }
.product-card p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.product-card img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  margin-top: auto; background: var(--bg-grey);
}

/* ========== ABOUT ========== */
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-text p { color: var(--text-light); }
.about-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 440px;
  margin: 0 auto;
  border: 4px solid var(--green);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #fff;
  cursor: pointer;
}
.play-btn svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.play-btn:hover { background: var(--green-dark); }

@media (min-width: 760px) {
  .about-grid { grid-template-columns: 1.1fr .9fr; }
}

/* ========== ADVANTAGES ========== */
.advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}
.advantage {
  padding: 24px;
  background: #fff;
  border: 2px solid var(--border);
  border-top: 4px solid var(--green);
}
.advantage-icon { width: 44px; height: 44px; margin-bottom: 14px; color: var(--green); }
.advantage h3 { font-size: 16px; margin-bottom: 8px; }
.advantage p { font-size: 13px; color: var(--text-light); margin: 0; }

@media (min-width: 760px) {
  .advantages { grid-template-columns: repeat(4, 1fr); }
}

/* ========== BRANDS ========== */
.brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}
.brands-row img {
  height: 40px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .55;
  transition: opacity .2s, filter .2s;
}
.brands-row img:hover { opacity: 1; filter: grayscale(0); }

/* ========== REVIEWS ========== */
.reviews-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 20px 12px;
  margin: 0 -20px;
  scroll-snap-type: x mandatory;
}
.review-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border: 2px solid var(--border);
  border-top: 4px solid var(--gold);
  padding: 22px;
}
.review-date { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.review-card h4 { margin: 6px 0 8px; font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; font-size: 15px; }
.review-card p { font-size: 13.5px; color: var(--text-light); margin: 0; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark);
  color: #bbb;
  margin-top: 20px;
  border-top: 4px solid var(--green);
}
.footer-accordion { border-top: 1px solid #333; }
.footer-accordion details { border-bottom: 1px solid #333; }
.footer-accordion summary {
  padding: 18px 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
.footer-accordion summary::-webkit-details-marker { display: none; }
.footer-accordion summary::after { content: '⌄'; font-size: 18px; transition: transform .2s; }
.footer-accordion details[open] summary::after { transform: rotate(180deg); }
.footer-accordion .footer-sub { padding: 0 20px 16px; }
.footer-accordion .footer-sub li { padding: 7px 0; font-size: 13px; }
.footer-accordion .footer-sub a:hover { color: var(--green-accent); }

.footer-contact {
  padding: 28px 20px;
  text-align: center;
  border-top: 1px solid #333;
}
.footer-contact .phone {
  font-size: 22px; font-weight: 700; color: #fff;
  display: block; margin-bottom: 8px;
}
.footer-contact .site { display: inline-block; margin: 8px 0; font-size: 12px; color: #777; }
.footer-contact .email { display: block; font-size: 14px; color: #bbb; }

.footer-bottom {
  text-align: center;
  font-size: 11px;
  color: #666;
  padding: 14px 20px 28px;
  line-height: 1.7;
}

@media (min-width: 760px) {
  .footer-accordion { display: flex; border-top: none; }
  .footer-accordion details { flex: 1; border-bottom: none; border-right: 1px solid #333; }
  .footer-accordion summary { cursor: default; }
  .footer-accordion summary::after { display: none; }
  .footer-accordion .footer-sub { display: block !important; }
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: var(--bg-grey);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--text-light); margin: 0; }
.breadcrumbs { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--green); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ========== FORMS ========== */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .04em; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ========== CATEGORY GRID (catalog page) ========== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 32px;
}
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 980px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 2px solid var(--border);
  border-top: 4px solid var(--green);
  padding: 28px 16px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .18s, box-shadow .18s, transform .18s;
  min-height: 165px;
  gap: 14px;
}
.cat-tile:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.cat-tile svg { width: 48px; height: 48px; color: var(--green); flex-shrink: 0; }
.cat-tile-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.cat-tile-count { font-size: 11px; color: var(--text-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }

/* ========== MISC ========== */
.prose p { color: var(--text); }
.prose h2 { margin-top: 32px; }
.simple-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.two-col { display: grid; gap: 28px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ========== CHAT BUBBLE ========== */
.chat-bubble {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 52px; height: 52px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(45,122,45,.4);
  border: none;
  cursor: pointer;
  z-index: 150;
  transition: background .15s, transform .15s;
}
.chat-bubble:hover { background: var(--green-dark); transform: scale(1.08); }
.chat-bubble svg { width: 24px; height: 24px; fill: #fff; }

/* ========== UTILITY ========== */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
