:root {
  --primary-color: #2D5C7F;
  --primary-rgb: 45, 92, 127;
  --secondary-color: #1B4A63;
  --accent-color: #5A9F77;
  --light-color: #F2D4C9;
  --dark-color: #1A2F3D;
  --gradient-primary: linear-gradient(135deg, #2D5C7F 0%, #1B4A63 100%);
  --gradient-accent: linear-gradient(45deg, #5A9F77, #2C7FB2);
  --hover-color: #234A66;
  --background-color: #FDF8F5;
  --text-color: #3A4B56;
  --text-color-secondary: #5D6C78;
  --border-color: rgba(45, 92, 127, 0.18);
  --divider-color: rgba(27, 74, 99, 0.12);
  --shadow-color: rgba(45, 92, 127, 0.15);
  --highlight-color: #F0A55A;
  --main-font: 'Lora', serif;
  --alt-font: 'Inter', 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, #FDF8F5 0%, var(--light-color) 100%);
  line-height: 1.6;
  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: 700;
  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);
}

.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 rgba(45, 92, 127, 0.12);
  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);
}

.grid {
  display: grid;
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-align: center;
  backdrop-filter: blur(5px);
  width: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.feature-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 25px 60px rgba(45, 92, 127, 0.35);
  border-color: var(--accent-color);
}

.feature-icon {
  font-size: 3rem;
  margin: 0 auto 1.5rem auto;
  color: var(--primary-color);
  width: 85px;
  height: 85px;
  background: rgba(45, 92, 127, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.2) rotate(360deg);
}

.testimonial {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 18px var(--shadow-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  width: 100%;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(45, 92, 127, 0.25);
}

.faq-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 3px 15px var(--shadow-color);
  transition: all 0.3s ease;
  padding: 2rem 2.2rem;
  backdrop-filter: blur(5px);
  width: 100%;
  border-left: 4px solid transparent;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(45, 92, 127, 0.22);
  border-left-color: var(--accent-color);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.faq-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

input,
textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.3rem;
  background: rgba(255, 255, 255, 0.92);
  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(45, 92, 127, 0.12);
  background: white;
}

.btn,
button {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  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 18px rgba(45, 92, 127, 0.4);
  position: relative;
  overflow: hidden;
}

.btn::before,
button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::before,
button:hover::before {
  transform: translateX(100%);
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 92, 127, 0.5);
}

.stat-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 18px var(--shadow-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 100%;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 35px rgba(45, 92, 127, 0.28);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--main-font);
  line-height: 1;
}

.stat-text {
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 0.5rem;
  font-weight: 500;
}

.trust-indicator {
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 18px 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 28px rgba(45, 92, 127, 0.22);
}

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 20% 30%, rgba(90, 159, 119, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(45, 92, 127, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(90, 159, 119, 0.03) 40px, rgba(90, 159, 119, 0.03) 80px);
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 75vh;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  align-items: center;
  padding: 4rem;
  position: relative;
  z-index: 2;
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 92, 127, 0.7) 0%, rgba(27, 74, 99, 0.5) 100%);
}

.overlap-card {
  position: absolute;
  bottom: 10%;
  right: 5%;
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 3;
  min-width: 200px;
}

.timeline-block {
  position: relative;
  padding: 4rem 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 0 8px rgba(90, 159, 119, 0.2);
}

.timeline-dot::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 80px;
  background: var(--border-color);
}

.timeline-item:last-child .timeline-dot::before {
  display: none;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .navigation {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .hero-left {
    padding: 3rem 1.5rem;
    order: 2;
  }
  
  .hero-right {
    min-height: 40vh;
    order: 1;
  }
  
  .overlap-card {
    position: static;
    margin: 2rem 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .timeline-dot {
    margin: 1rem auto;
  }
  
  .timeline-dot::before {
    height: 40px;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item {
    padding: 2rem 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .trust-indicator {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-left {
    padding: 2rem 1rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item {
    padding: 1.5rem 1rem;
  }
  
  .stat-card {
    padding: 1.2rem;
  }
  
  .trust-indicator {
    padding: 1rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}