:root {
  --primary-color: #5A9F77;
  --primary-rgb: 90, 159, 119;
  --secondary-color: #3D7A57;
  --accent-color: #C0E0B1;
  --light-color: #F0F8F4;
  --dark-color: #2C5443;
  --gradient-primary: linear-gradient(135deg, #7FB894 0%, #5A9F77 100%);
  --gradient-accent: linear-gradient(45deg, #C0E0B1, #B22B5B);
  --hover-color: #4A8A65;
  --background-color: #FCFEFD;
  --text-color: #3E4F47;
  --text-color-secondary: #5C6E64;
  --border-color: rgba(192, 224, 177, 0.3);
  --divider-color: rgba(90, 159, 119, 0.15);
  --shadow-color: rgba(90, 159, 119, 0.18);
  --highlight-color: #B22B5B;
  --main-font: 'Lora', serif;
  --alt-font: 'Lato', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background: linear-gradient(135deg, #FCFEFD 0%, var(--light-color) 100%);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 1rem 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.4;
}

p {
  margin: 0 0 1rem 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(5px);
}

.hamburger .line {
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 1px;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .mobile-nav {
  max-height: 400px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.mobile-nav ul {
  padding: 2rem;
  margin: 0;
  list-style: none;
}

.mobile-nav li {
  margin: 1rem 0;
}

.mobile-nav a {
  display: block;
  padding: 0.8rem 0;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.mobile-nav a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

header {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-color);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow-color);
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 3rem;
  width: auto;
}

.navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.navigation a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.navigation a:hover {
  color: var(--primary-color);
}

.hero-diagonal {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-diagonal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
  z-index: 0;
}

.hero-content-diagonal {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  max-width: 550px;
}

.hero-content-diagonal h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero-content-diagonal p {
  color: rgba(255, 255, 255, 0.97);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero-image-diagonal {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(2deg);
  max-width: 45%;
  z-index: 1;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.floating-badge {
  position: absolute;
  bottom: 12%;
  right: 8%;
  background: white;
  padding: 1.8rem 2rem;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.floating-badge .stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.floating-badge .stat-text {
  font-size: 0.95rem;
  color: var(--text-color);
}

.grid {
  display: grid;
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.feature-card {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 18px var(--shadow-color);
  transition: all 0.4s ease;
  text-align: center;
  backdrop-filter: blur(8px);
  width: 100%;
  position: relative;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(90, 159, 119, 0.35);
  border-color: transparent;
}

.feature-icon {
  font-size: 3.2rem;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(90, 159, 119, 0.15) 0%, rgba(192, 224, 177, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border-color);
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.15);
  border-color: var(--primary-color);
}

.testimonial {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  padding: 2.2rem;
  margin: 1rem 0;
  box-shadow: 0 4px 16px var(--shadow-color);
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
  width: 100%;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  color: var(--accent-color);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.6;
}

.testimonial:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 28px rgba(90, 159, 119, 0.3);
  border-color: var(--primary-color);
}

.faq-item {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 3px 12px var(--shadow-color);
  transition: all 0.3s ease;
  padding: 1.8rem;
  backdrop-filter: blur(5px);
  width: 100%;
  position: relative;
  border-left: 5px solid transparent;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.faq-icon-arrow {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-left-color: var(--primary-color);
  transform: translateX(5px);
  box-shadow: 0 5px 22px rgba(90, 159, 119, 0.28);
}

.faq-item:hover .faq-icon-arrow {
  transform: rotate(90deg);
}

input,
textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-color);
  font-size: 1rem;
  width: 100%;
  backdrop-filter: blur(5px);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(90, 159, 119, 0.12);
  background: white;
}

.btn,
button {
  transition: all 0.3s ease;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1.1rem 2.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--alt-font);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 
    0 4px 0 var(--secondary-color),
    0 8px 20px rgba(90, 159, 119, 0.35);
  transform: translateY(0);
}

.btn:hover,
button:hover {
  transform: translateY(3px);
  box-shadow: 
    0 1px 0 var(--secondary-color),
    0 4px 12px rgba(90, 159, 119, 0.3);
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.93) 0%, rgba(240, 248, 244, 0.88) 100%);
  border: 3px solid var(--border-color);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  box-shadow: 0 6px 24px var(--shadow-color);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 42px rgba(90, 159, 119, 0.32);
  border-color: var(--primary-color);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--main-font);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.stat-text {
  font-size: 1.05rem;
  color: var(--text-color);
  font-weight: 500;
  line-height: 1.5;
}

.trust-indicator {
  background: rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-shadow: 0 3px 16px var(--shadow-color);
  transition: all 0.3s ease;
  text-align: center;
  backdrop-filter: blur(10px);
  width: 100%;
}

.trust-indicator:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 26px rgba(90, 159, 119, 0.3);
}

footer {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 0 1rem;
}

footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

.pattern-bg {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(90, 159, 119, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(192, 224, 177, 0.08) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 70px, rgba(90, 159, 119, 0.04) 70px, rgba(90, 159, 119, 0.04) 140px);
  background-size: 100% 100%;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 3rem 0;
  background: var(--light-color);
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  min-width: 300px;
  box-shadow: 0 5px 20px var(--shadow-color);
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

#contact .container > .grid {
  max-width: 80%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .navigation {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }

  .hero-diagonal {
    min-height: auto;
    display: block;
    padding: 3rem 0;
  }

  .hero-diagonal::before {
    clip-path: none;
    position: absolute;
    inset: 0;
  }

  .hero-content-diagonal {
    max-width: 100%;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 2;
  }

  .hero-image-diagonal {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    max-width: calc(100% - 2rem);
    margin: 0 1rem 2rem;
    border-radius: 12px;
    z-index: 2;
  }

  .floating-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin: -40px 1rem 2rem;
    max-width: calc(100% - 2rem);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .feature-icon {
    width: 80px;
    height: 80px;
    font-size: 2.8rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item {
    padding: 2rem 1.5rem;
  }
  
  .stat-card {
    padding: 1.8rem;
  }
  
  .trust-indicator {
    padding: 1.2rem;
  }
  
  #contact .container > .grid {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-content-diagonal {
    padding: 2rem 1rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item {
    padding: 1.5rem 1rem;
  }
  
  .stat-card {
    padding: 1.4rem;
  }
  
  .trust-indicator {
    padding: 1rem;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 2.4rem;
  }

  .floating-badge {
    padding: 1.2rem 1.5rem;
  }
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}