:root {
  --primary-color: #6B3A7D;
  --secondary-color: #4A2460;
  --accent-color: #A96CC4;
  --light-color: #F5EEF9;
  --dark-color: #1E0C27;
  --gradient-primary: linear-gradient(135deg, #A96CC4 0%, #6B3A7D 100%);
  --hover-color: #4A2460;
  --background-color: #F9F4FC;
  --text-color: #1E1226;
  --border-color: rgba(107, 58, 125, 0.18);
  --divider-color: rgba(30, 12, 39, 0.12);
  --shadow-color: rgba(107, 58, 125, 0.10);
  --highlight-color: #E8C820;
  --main-font: 'Montserrat', sans-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: var(--background-color);
  line-height: 1.7;
  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(1.9rem, 5vw, 3.4rem); line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 4vw, 2.3rem); line-height: 1.3; }
h3 { font-size: clamp(1rem, 3vw, 1.3rem); line-height: 1.4; }
p { margin: 0 0 1rem 0; font-size: clamp(0.97rem, 2vw, 1.05rem); line-height: 1.78; }

/* Hamburger */
.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);
}
.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;
  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 */
header {
  background: rgba(255,255,255,0.97);
  color: var(--text-color); padding: 1.5rem 0;
  position: relative; z-index: 1000;
  box-shadow: 0 2px 18px var(--shadow-color);
}
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: 600; font-size: 0.93rem; letter-spacing: 0.02em; transition: all 0.3s ease; }
.navigation a:hover { color: var(--primary-color); }

.grid { display: grid; width: 100%; }

/* Feature cards — стиль «факт-блоки» с иконкой-цифрой и горизонтальным разделителем */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px var(--shadow-color);
}
.feature-card {
  padding: 2rem 2rem 2rem 1.6rem;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: background 0.25s ease;
  width: 100%;
}
.feature-card:nth-child(2n) { border-right: none; }
.feature-card:nth-last-child(-n+2) { border-bottom: none; }
.feature-card:hover { background: var(--light-color); }
.feature-icon-wrap {
  min-width: 48px; height: 48px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--primary-color); }
.feature-card p { margin: 0; font-size: 0.94rem; color: var(--text-color); line-height: 1.65; }

/* Testimonials — горизонтальная полоса с левым акцентом */
.testimonials-list { display: flex; flex-direction: column; gap: 1.4rem; max-width: 800px; margin: 0 auto; }
.testimonial {
  background: #fff;
  border-radius: 10px;
  padding: 1.6rem 2rem;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  box-shadow: 0 2px 12px var(--shadow-color);
  transition: all 0.3s ease;
  width: 100%;
}
.testimonial:hover { box-shadow: 0 6px 22px rgba(107,58,125,0.18); transform: translateX(4px); }
.testimonial-accent {
  min-width: 6px; border-radius: 4px;
  background: var(--gradient-primary);
  align-self: stretch;
  flex-shrink: 0;
}
.testimonial-content { flex: 1; }
.testimonial-content p { margin: 0 0 0.6rem; color: var(--text-color); font-size: 0.97rem; }
.testimonial-author { font-weight: 700; color: var(--primary-color); font-size: 0.9rem; }

/* FAQ */
.faq-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
  margin: 0.8rem 0;
  box-shadow: 0 2px 10px var(--shadow-color);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  width: 100%;
}
.faq-q-num {
  font-family: var(--main-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1.2;
  min-width: 2rem;
}
.faq-body h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--primary-color); }
.faq-body p { margin: 0; font-size: 0.95rem; color: var(--text-color); }

/* Form */
input, textarea {
  transition: all 0.3s ease; font-family: var(--alt-font);
  border: 2px solid var(--border-color); border-radius: 8px;
  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(107,58,125,0.12); background: white;
}

.btn, button {
  transition: all 0.3s ease;
  background: var(--gradient-primary); color: white;
  border: none; padding: 1rem 2rem; border-radius: 8px;
  font-weight: 700; font-family: var(--alt-font);
  cursor: pointer; font-size: 1rem;
  text-decoration: none; display: inline-block;
  text-align: center; box-shadow: 0 3px 14px rgba(107,58,125,0.28);
}
.btn:hover, button:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(107,58,125,0.38); }

/* Footer */
footer { background: var(--dark-color); color: var(--light-color); padding: 3rem 0 1rem; }
footer img[alt="logo"] { filter: brightness(0) invert(1); }

/* Pattern — crosshatch dots */
.pattern-bg {
  background-image:
    radial-gradient(circle, rgba(107,58,125,0.13) 1px, transparent 1px),
    radial-gradient(ellipse at 70% 30%, rgba(169,108,196,0.07) 0%, transparent 55%);
  background-size: 28px 28px, 100% 100%;
}

/* Contact width */
#contact .container > .grid { max-width: 80%; margin: 0 auto; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }
  .grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none; }
  .feature-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-color); }
  .feature-card:last-child { border-bottom: none; }
  .testimonial { flex-direction: row; gap: 1rem; padding: 1.3rem; }
  .faq-item { padding: 1.3rem 1.2rem; }
  #contact .container > .grid { max-width: 100%; }
}
@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .feature-card { padding: 1.3rem 1rem; gap: 0.8rem; }
  .feature-icon-wrap { min-width: 40px; height: 40px; font-size: 1.2rem; }
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent-color); outline-offset: 2px;
}