:root {
  --primary-color: #2D5C7F;
  --secondary-color: #1D3A52;
  --accent-color: #4A7FA0;
  --light-color: #E8F2F7;
  --dark-color: #0C1821;
  --gradient-primary: linear-gradient(135deg, #2D5C7F 0%, #1D3A52 100%);
  --hover-color: #3A6D8F;
  --background-color: #FAFCFD;
  --text-color: #2C3E50;
  --border-color: rgba(45, 92, 127, 0.22);
  --divider-color: rgba(29, 58, 82, 0.15);
  --shadow-color: rgba(45, 92, 127, 0.12);
  --highlight-color: #F2D57F;
  --main-font: 'Playfair Display', serif;
  --alt-font: 'Open Sans', 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, #FFFFFF 0%, #F5F9FB 100%);
  line-height: 1.68;
  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, 3.8rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.35;
}

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 18px 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);
}

.grid {
  display: grid;
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.feature-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 5px 22px var(--shadow-color);
  transition: all 0.4s ease;
  text-align: center;
  width: 100%;
  position: relative;
  border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 45px var(--shadow-color);
  border-color: var(--accent-color);
  background: linear-gradient(180deg, white 0%, rgba(45, 92, 127, 0.03) 100%);
}

.feature-icon {
  font-size: 3.2rem;
  margin: 0 auto 1.5rem auto;
  color: white;
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 18px rgba(45, 92, 127, 0.35);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 28px rgba(45, 92, 127, 0.45);
  border-radius: 50%;
}

.testimonial {
  background: linear-gradient(135deg, white 0%, rgba(232, 242, 247, 0.2) 100%);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  padding: 2.2rem 2rem;
  margin: 1rem 0;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -12px;
  left: 22px;
  font-size: 4.5rem;
  color: var(--primary-color);
  opacity: 0.12;
  font-family: Georgia, serif;
}

.testimonial:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin: 1rem 0;
  box-shadow: 0 3px 14px var(--shadow-color);
  transition: all 0.3s ease;
  padding: 2rem 1.8rem;
  width: 100%;
  border-left: 4px solid var(--primary-color);
}

.faq-item:hover {
  transform: translateX(6px);
  box-shadow: 0 5px 25px var(--shadow-color);
  border-left-width: 6px;
}

input,
textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-color);
  font-size: 1rem;
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 92, 127, 0.12);
  background: white;
}

.btn,
button {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.1rem 2.3rem;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--alt-font);
  cursor: pointer;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 5px 22px rgba(45, 92, 127, 0.38);
}

.btn:hover,
button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 34px rgba(45, 92, 127, 0.48);
}

.stat-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: 0 6px 28px var(--shadow-color);
  transition: all 0.4s ease;
  width: 100%;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 42px var(--shadow-color);
  border-color: var(--primary-color);
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--main-font);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 1.05rem;
  color: var(--text-color);
  margin-top: 0.5rem;
  font-weight: 500;
}

.trust-indicator {
  background: white;
  padding: 1.4rem;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  box-shadow: 0 3px 16px var(--shadow-color);
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.trust-indicator:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 24px var(--shadow-color);
}

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 18% 45%, rgba(45, 92, 127, 0.06) 1.8px, transparent 1.8px),
    radial-gradient(circle at 72% 28%, rgba(29, 58, 82, 0.05) 2.5px, transparent 2.5px),
    radial-gradient(circle at 52% 68%, rgba(45, 92, 127, 0.04) 1.3px, transparent 1.3px),
    radial-gradient(circle at 82% 52%, rgba(29, 58, 82, 0.07) 2.2px, transparent 2.2px);
  background-size: 65px 65px, 48px 48px, 32px 32px, 78px 78px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .navigation {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .feature-icon {
    width: 75px;
    height: 75px;
    font-size: 2.8rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item {
    padding: 2rem 1.5rem;
  }
  
  .stat-card {
    padding: 1.8rem 1.5rem;
  }
  
  .trust-indicator {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item {
    padding: 1.8rem 1.2rem;
  }
  
  .stat-card {
    padding: 1.5rem 1.2rem;
  }
  
  .trust-indicator {
    padding: 1rem;
  }
  
  .feature-icon {
    width: 65px;
    height: 65px;
    font-size: 2.4rem;
  }
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}