:root {
  --primary-green: #0B8D36;
  --secondary-green: #088825;
  --primary-blue: #23A6E1;
  --soft-blue-green: #90BAAD;
  --accent-gold: #F8BF56;
  --text-dark: #1D1D1E;
  --text-light: #5f6670;
  --light-bg: #f7fbf8;
  --section-bg: #f3f8f6;
  --border-color: #d5e3e4;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(13, 34, 20, 0.10);
  --shadow-soft: 0 10px 28px rgba(13, 34, 20, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --transition: 0.35s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213, 227, 228, 0.7);
  box-shadow: 0 10px 30px rgba(13, 34, 20, 0.04);
}

.header-container {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
}

.logo-box {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
}

.logo-box::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(11, 141, 54, 0.08), transparent 70%);
  z-index: -1;
}

.logo {
  width: 145px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-list li {
  min-width: 0;
}

.nav-list a {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
  transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary-green);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: var(--white) !important;
  padding: 11px 18px !important;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  max-width: 100%;
}

.cart-link::after {
  display: none;
}

.cart-link:hover,
.cart-link.active {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

#cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-green);
  font-size: 12px;
  font-weight: 800;
  margin-left: 8px;
  padding: 0 6px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: rgba(11, 141, 54, 0.06);
  border: 1px solid rgba(213, 227, 228, 0.92);
  box-shadow: var(--shadow-soft);
  z-index: 1002;
  flex-shrink: 0;
}

.nav-toggle span {
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--primary-green);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 24, 16, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 998;
}

.mobile-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* GENERAL */
main {
  min-height: 70vh;
  max-width: 100%;
  overflow-x: hidden;
}

section {
  padding: 90px 0;
  max-width: 100%;
}

.page-hero {
  padding: 95px 0 75px;
  background:
    linear-gradient(135deg, rgba(11, 141, 54, 0.08), rgba(35, 166, 225, 0.08)),
    var(--light-bg);
}

.hero-badge {
  display: inline-block;
  background: rgba(248, 191, 86, 0.16);
  color: #8a5a00;
  border: 1px solid rgba(248, 191, 86, 0.38);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(248, 191, 86, 0.08);
  max-width: 100%;
}

.page-hero h1,
.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-hero p,
.hero-text p,
.section-text {
  font-size: 17px;
  color: var(--text-light);
  max-width: 760px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-title {
  margin-bottom: 38px;
  min-width: 0;
}

.section-title.center {
  text-align: center;
}

.section-title span {
  display: inline-block;
  color: var(--primary-green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-title h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.center-text {
  margin-left: auto;
  margin-right: auto;
}

.section-text {
  line-height: 1.85;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  min-width: 0;
}

.info-card,
.stat-card,
.contact-card,
.product-card,
.news-card,
.cart-summary,
.order-summary {
  background: var(--white);
  border: 1px solid rgba(213, 227, 228, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  min-width: 0;
  max-width: 100%;
}

.info-card {
  padding: 30px 26px;
  position: relative;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(35, 166, 225, 0.18);
}

.info-card h2,
.info-card h3,
.contact-card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.info-card p,
.contact-card p,
.timeline-item p {
  color: var(--text-light);
  overflow-wrap: break-word;
  word-break: break-word;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-green);
}

.card-link::after {
  content: "→";
  transition: var(--transition);
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  min-height: 54px;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  max-width: 100%;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: 0.7s;
}

.btn:hover::before {
  left: 130%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.btn-secondary {
  background: linear-gradient(135deg, var(--primary-blue), #1d94cb);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

.btn-small {
  padding: 10px 16px;
  font-size: 14px;
  min-height: auto;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

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

.full-width {
  width: 100%;
}

.section-action {
  margin-top: 30px;
}

.center-action {
  text-align: center;
}

/* PRODUCTS */
.product-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  min-width: 0;
}

.product-card {
  overflow: hidden;
  border-radius: 26px;
}

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

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 24px;
  min-width: 0;
}

.product-category {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-green);
  background: rgba(11, 141, 54, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  max-width: 100%;
}

.product-info h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-info p {
  color: var(--text-light);
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.price,
.product-price {
  color: var(--primary-green);
  font-size: 1.2rem;
  font-weight: 800;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* FORMS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.form-group label {
  font-weight: 700;
  font-size: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(11, 141, 54, 0.08);
}

textarea {
  resize: vertical;
}

.map-placeholder {
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-color);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(35, 166, 225, 0.05), rgba(11, 141, 54, 0.06));
  text-align: center;
  color: var(--text-light);
  padding: 24px;
}

/* FOOTER */
.site-footer {
  background:
    radial-gradient(circle at top right, rgba(35, 166, 225, 0.10), transparent 22%),
    linear-gradient(180deg, #0c2415 0%, #091810 100%);
  color: rgba(255, 255, 255, 0.88);
  padding-top: 80px;
  margin-top: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 46px;
  min-width: 0;
}

.footer-grid > div {
  min-width: 0;
}

.footer-logo {
  width: 150px;
  margin-bottom: 18px;
  background: white;
  border-radius: 12px;
  padding: 8px;
}

.site-footer h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.08rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.site-footer ul li + li,
.site-footer p + p {
  margin-top: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--accent-gold);
}

.site-footer p,
.site-footer li,
.site-footer a {
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .cards-grid,
  .product-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-list {
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .header-container {
    min-height: 84px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(88vw, 360px);
    max-width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    box-shadow: -10px 0 40px rgba(13, 34, 20, 0.12);
    padding: 110px 24px 28px;
    align-items: flex-start;
    transition: right 0.35s ease;
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .navbar.open {
    right: 0;
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: flex;
    width: 100%;
    padding: 14px 12px;
    border-radius: 14px;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list a:hover,
  .nav-list a.active {
    background: rgba(11, 141, 54, 0.08);
  }

  .cart-link {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  .page-hero {
    padding: 75px 0 55px;
  }

  .cards-grid,
  .product-grid,
  .news-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .logo {
    width: 122px;
  }

  .btn,
  .btn-small {
    width: 100%;
  }

  .product-meta {
    align-items: stretch;
  }

  .header-container {
    gap: 18px;
  }

  .site-header {
    backdrop-filter: blur(10px);
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .section-title {
    margin-bottom: 28px;
  }

  .info-card,
  .product-info,
  .cart-summary,
  .order-summary {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 20px);
  }

  .logo {
    width: 108px;
  }

  .header-container {
    min-height: 76px;
    gap: 12px;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
  }

  .page-hero h1,
  .hero-text h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .page-hero p,
  .hero-text p,
  .section-text {
    font-size: 15px;
  }

  .site-footer {
    padding-top: 60px;
  }
}