/* =========================
   BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img,
iframe {
  max-width: 100%;
  display: block;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1c1f1d;
  font-size: 16px;
  background: #F2E8C9;
  overflow-x: hidden;
}

/* =========================
   SECTIONS
========================= */
section {
  padding: 70px 0;
}

section:nth-of-type(odd) {
  background: #F2E8C9;
}

section:nth-of-type(even) {
  background: #EAF1D8;
}

/* =========================
   CONTAINER
========================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
  font-size: clamp(30px, 2.2vw, 46px);
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(26px, 2vw, 44px);
  letter-spacing: -0.3px;
}

/* =========================
   HEADER
========================= */
header {
  padding: 20px 0;
  background: #F2E8C9;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #1c1f1d;
}

.logo-block img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.logo-text span {
  font-size: 13px;
  color: #5a635c;
}

.logo-text h1 {
  font-weight: 700;
  line-height: 1.1;
}

/* =========================
   NAV
========================= */
nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #1c1f1d;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 10px;
  transition: 0.25s;
}

nav a:hover,
nav .active {
  background: #58724f;
  color: #fff;
}

/* =========================
   CONTACT BUTTON
========================= */
.contact-button {
  background: #58724f;
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(88,114,79,0.25);
}

.contact-button span {
  font-size: 12px;
  opacity: 0.9;
}

/* =========================
   ABOUT
========================= */
.about p {
  font-size: 18px;
  max-width: 900px;
  color: #2a2f2c;
}

/* =========================
   HERO
========================= */
.hero-banner {
  background: linear-gradient(
    135deg,
    #F2E8C9 0%,
    #EAF1D8 100%
  );
  border-radius: 24px;
  overflow: hidden;
}

.hero-image {
  height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  font-size: 20px;
  opacity: 0.6;
  text-align: center;
  padding: 20px;
}

/* =========================
   MAIN GRID
========================= */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

/* =========================
   GALLERY / VIDEO CARDS
========================= */
.gallery-card,
.video-card {
  background: #58724f;
  padding: 26px;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.gallery-card h2,
.video-card h2 {
  margin-bottom: 20px;
}

/* =========================
   GALLERY / VIDEO ITEMS
========================= */
.gallery-items,
.video-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: start;
}

.gallery-item,
.video-item {
  text-align: center;
  overflow: hidden;
}

.gallery-item img,
.video-item iframe {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
}

.video-item iframe,
.video-frame {
  width: 100%;
  height: 230px;
  border: none !important;
  border-radius: 14px;
  display: block;
  background: #d7dfcf;
}

.gallery-item p,
.video-item p {
  font-size: 15px;
  margin-top: 8px;
  color: inherit;
}

/* =========================
   PLACEHOLDER
========================= */
.placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #d7dfcf;
  border-radius: 14px;
}

/* =========================
   ADVANTAGES
========================= */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.advantages-grid div {
  background: #FFFDF8;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
}

/* =========================
   PRODUCT CATALOG
========================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 25px;
}

.product-card {
  background: #FFFDF8;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  text-align: left;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #d7dfcf;
  border-radius: 12px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: #1c1f1d;
}

.product-card p {
  font-size: 13px;
  color: #5a635c;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-btn {
  display: inline-block;
  padding: 8px 12px;
  background: #58724f;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
}

/* =========================
   CONTACTS
========================= */
.page-title {
  padding: 60px 0 20px;
  text-align: center;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-item h3 {
  margin-bottom: 5px;
}

.contacts__form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts__form input,
.contacts__form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.contacts__form button {
  padding: 12px;
  background: #58724f;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.contacts__form button:hover {
  background: #475d40;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #58724f;
  padding: 28px;
  text-align: center;
  color: #fff;
  font-size: 15px;
}

/* =========================
   TABLET
========================= */
@media (max-width: 1024px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-image {
    height: 340px;
  }

  .video-item iframe,
  .video-frame {
    height: 260px;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  nav ul {
    justify-content: center;
  }

  .header,
  .logo-block {
    width: 100%;
  }

  .logo-block {
    justify-content: center;
  }

  .gallery-items,
  .video-items {
    grid-template-columns: 1fr;
  }

  .advantages-grid,
  .product-grid,
  .contacts__grid {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .hero-image {
    height: 240px;
  }

  .about p {
    font-size: 16px;
  }

  .contact-button {
    width: 100%;
    align-items: center;
  }

  .product-card {
    text-align: left;
  }

  .video-item iframe,
  .video-frame {
    height: 260px;
  }
}

/* =========================
   MOBILE WEBVIEW FIX
========================= */
@media (max-width: 900px) {
  .container {
    width: 100%;
    max-width: 100%;
  }

  .grid,
  .advantages-grid,
  .product-grid,
  .contacts__grid {
    width: 100%;
  }
}
