/* =========================================
   PLASTAN — Production Website
   Colors: #95B82F (green), #58575B (dark gray),
           #A4A4A8 (light gray), #FFFFFF (white)
   Font:   Source Sans 3 (Google Fonts)
   Logo protection zone: A/5 on each side
   ========================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'PT Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #58575B;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #95B82F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #7a9a1f;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  transition: box-shadow 0.3s;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

/* Logo with SIW protection zone: A/5 padding */
.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 13px;
}
.logo {
  height: 64px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #58575B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-list a:hover {
  background: #f2f7e6;
  color: #95B82F;
}
.nav-list a.active {
  color: #95B82F;
  background: #f2f7e6;
}

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid #e0e0e0;
}
.lang-link {
  font-size: 13px;
  font-weight: 700;
  color: #A4A4A8;
  padding: 4px 8px;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.lang-link:hover {
  color: #95B82F;
}
.lang-link.active {
  color: #95B82F;
  border-color: #95B82F;
}
.lang-sep {
  color: #e0e0e0;
  font-size: 13px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #58575B;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero (home page) — dark overlay + parallax ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 90px;
  overflow: hidden;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  background: url('img/photos/hero-bg.webp') center/cover fixed;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(88,87,91,0.5) 0%, rgba(40,40,43,0.72) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 80px 24px;
  max-width: 850px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero .accent-line {
  width: 80px;
  height: 4px;
  background: #95B82F;
  margin: 0 auto 24px;
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.3rem;
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto 12px;
  opacity: 0.92;
}

.hero-since {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 40px;
}

.hero .btn {
  background: #95B82F;
  color: #fff;
  border-color: #95B82F;
}
.hero .btn:hover {
  background: #7a9a1f;
  border-color: #7a9a1f;
  color: #fff;
}

/* ---------- Page Header (sub-pages) ---------- */
.page-header {
  background: linear-gradient(135deg, #95B82F 0%, #7aaa10 100%);
  margin-top: 90px;
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: #95B82F;
  color: #fff;
}
.btn-primary:hover {
  background: #7a9a1f;
  color: #fff;
}
.btn-white {
  background: #fff;
  color: #58575B;
}
.btn-white:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 2px solid #95B82F;
  color: #95B82F;
}
.btn-outline:hover {
  background: #95B82F;
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: #58575B;
  margin-bottom: 20px;
}

.section-intro {
  font-size: 1.1rem;
  color: #A4A4A8;
  max-width: 680px;
  margin-bottom: 48px;
}

/* ---------- About / Grid Layout ---------- */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.section-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #58575B;
  margin: 40px 0 16px;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}
.stat strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #95B82F;
  line-height: 1.1;
}
.stat span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #A4A4A8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-image {
  border-radius: 12px;
  overflow: hidden;
}
.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Image gallery (about page) */
.image-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.image-duo img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Values list */
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.value-item {
  padding: 24px;
  background: #fafbf7;
  border-radius: 10px;
  border-left: 4px solid #95B82F;
}
.value-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #58575B;
  margin-bottom: 8px;
}
.value-item p {
  font-size: 0.95rem;
  color: #777;
  margin: 0;
}

/* ---------- Offer / Product Cards ---------- */
.offer {
  background: #fafbf7;
}

.offer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.offer-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.offer-card-img {
  width: 180px;
  height: 220px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
}
.offer-card-img img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
}

.offer-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #58575B;
  margin-bottom: 12px;
}

.offer-card p {
  font-size: 0.95rem;
  color: #777;
  line-height: 1.6;
}

.offer-card .btn {
  margin-top: 20px;
  padding: 10px 24px;
  font-size: 13px;
}

/* ---------- Catalog ---------- */
.catalog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: #f2f2f2;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #58575B;
  padding: 10px 22px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  background: #e8f0d4;
  color: #7a9a1f;
}
.filter-btn.active {
  background: #95B82F;
  color: #fff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.catalog-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.catalog-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.catalog-item-img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f5f5f5;
}
.catalog-item-img img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
}

.catalog-item-info {
  padding: 16px 20px 20px;
}
.catalog-item-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #58575B;
  margin-bottom: 4px;
}
.catalog-item-info span {
  font-size: 0.85rem;
  color: #A4A4A8;
}

/* Customization banner */
.custom-banner {
  background: #fafbf7;
  border: 2px dashed #c5d88e;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}
.custom-banner h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #58575B;
  margin-bottom: 12px;
}
.custom-banner p {
  color: #777;
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, #95B82F 0%, #7aaa10 100%);
  text-align: center;
  padding: 80px 0;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-block {
  margin-bottom: 28px;
}
.contact-block h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #95B82F;
  margin-bottom: 6px;
}
.contact-block p {
  font-size: 1rem;
  line-height: 1.7;
}
.contact-block a {
  color: #58575B;
}
.contact-block a:hover {
  color: #95B82F;
}
.contact-note {
  font-size: 0.85rem;
  color: #A4A4A8;
  margin-top: 4px;
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
}
.contact-map iframe {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #58575B;
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo .logo {
  height: 52px;
  padding: 10px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 960px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-image {
    order: -1;
  }
  .offer-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .values {
    grid-template-columns: 1fr;
  }
  .image-duo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }
  .logo-link {
    padding: 9px;
  }
  .logo {
    height: 44px;
  }
  .hero {
    margin-top: 64px;
    min-height: 70vh;
  }
  .hero-bg-photo {
    background-attachment: scroll;
  }
  .hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-header {
    margin-top: 64px;
    padding: 48px 0 40px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }
  .nav-list {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }
  .nav-list.open {
    transform: translateX(0);
  }
  .nav-list a {
    font-size: 18px;
    padding: 12px 24px;
  }
  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
  }

  .section {
    padding: 64px 0;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .custom-banner {
    padding: 24px;
  }
}
