:root {
  --primary-color: #7A4F1D;
  --secondary-color: #5C3710;
  --accent-color: #C48A3F;
  --light-color: #FBF3E8;
  --dark-color: #2E1A07;
  --gradient-primary: linear-gradient(135deg, #7A4F1D 0%, #C48A3F 100%);
  --hover-color: #5C3710;
  --background-color: #FDF8F1;
  --text-color: #2C1F0E;
  --border-color: rgba(122, 79, 29, 0.17);
  --divider-color: rgba(92, 55, 16, 0.14);
  --shadow-color: rgba(122, 79, 29, 0.1);
  --highlight-color: #E05C2A;
  --main-font: 'Merriweather', serif;
  --alt-font: 'Roboto', sans-serif;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.hamburger .line {
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 1px;
}

#menu-toggle { display: none; }

#menu-toggle:checked ~ .mobile-nav {
  max-height: 350px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--border-color);
  z-index: 1000;
}

.mobile-nav ul {
  padding: 2rem;
  margin: 0;
  list-style: none;
}

.mobile-nav li { margin: 0.8rem 0; }

.mobile-nav a {
  display: block;
  padding: 1rem 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);
}

/* Feature Cards v5 — двухколоночный split: левая цветная полоса с иконкой, правая — текст */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin: 2.5rem 0;
}

.feature-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 3px 16px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: stretch;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  box-shadow: 0 10px 32px var(--shadow-color);
  transform: translateY(-4px);
  border-color: var(--accent-color);
}

.feature-icon-col {
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-col {
  background: linear-gradient(180deg, #7A4F1D 0%, #C48A3F 100%);
}

.feature-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.feature-text-col {
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-text-col h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.feature-text-col p {
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.testimonial {
  background: white;
  border-radius: 14px;
  padding: 2rem 1.8rem;
  box-shadow: 0 3px 16px var(--shadow-color);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.testimonial::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 0 0 14px 14px;
}

.testimonial::after {
  content: '\201C';
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 4.5rem;
  opacity: 0.07;
  color: var(--primary-color);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* FAQ */
.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin: 1.1rem 0;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
  padding: 1.8rem 2rem;
  position: relative;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--light-color);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: all 0.3s ease;
}

.faq-item:hover .faq-icon {
  background: var(--gradient-primary);
  border-color: transparent;
}

.faq-item:hover {
  box-shadow: 0 6px 22px var(--shadow-color);
  border-color: var(--accent-color);
}

.faq-body h3 {
  margin-bottom: 0.7rem;
}

/* Form */
input, textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.1rem;
  background-color: white;
  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(122, 79, 29, 0.1);
}

input:hover, textarea:hover {
  border-color: var(--secondary-color);
}

/* Buttons */
button, .btn {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.2rem 2.6rem;
  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 3px 14px rgba(122, 79, 29, 0.3);
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(122, 79, 29, 0.4);
}

/* Typography */
html { scroll-behavior: smooth; }

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.7;
  max-width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--primary-color);
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  color: var(--text-color);
  padding: 1.2rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 18px var(--shadow-color);
}

footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 3.5rem 0 1.5rem;
}

/* Focus */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Pattern bg v5 — тёплые диагональные полосы + точки */
.pattern-bg {
  background-image:
    radial-gradient(circle, rgba(122, 79, 29, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, rgba(196, 138, 63, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(224, 92, 42, 0.04) 0%, transparent 45%);
  background-size: 28px 28px, 100% 100%, 100% 100%;
}

/* Random block v5 — инфографика «3 механизма» с иконками и соединительными линиями */
.mechanism-banner {
  width: 100%;
  background: linear-gradient(150deg, #2E1A07 0%, #5C3710 50%, #7A4F1D 100%);
  color: white;
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
}

.mechanism-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.mechanism-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  position: relative;
}

.mechanism-grid::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(16.6% + 10px);
  right: calc(16.6% + 10px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(196,138,63,0.6), rgba(196,138,63,0.6), transparent);
  z-index: 0;
}

.mechanism-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.mechanism-circle {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(196, 138, 63, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.6rem auto;
  box-shadow: 0 0 0 6px rgba(196,138,63,0.08);
  transition: all 0.3s ease;
}

.mechanism-circle:hover {
  background: rgba(196,138,63,0.15);
  border-color: var(--accent-color);
}

.mechanism-emoji {
  font-size: 2.4rem;
  display: block;
  line-height: 1;
}

.mechanism-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-top: 0.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mechanism-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.8rem;
  font-family: var(--main-font);
  line-height: 1.3;
}

.mechanism-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

.mechanism-arrow {
  position: absolute;
  top: 48px;
  right: -14px;
  font-size: 1.6rem;
  color: var(--accent-color);
  opacity: 0.7;
  z-index: 2;
}

/* Contact */
.contact-inner {
  width: 80%;
  margin: 0 auto;
}

/* Responsive */
* { box-sizing: border-box; }
body { overflow-x: hidden; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
    max-width: 100vw;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 0 0.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 0 0.5rem;
  }

  .feature-card,
  .testimonial,
  .faq-item {
    margin: 0.6rem 0;
    max-width: 100%;
    word-wrap: break-word;
  }

  .mechanism-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mechanism-grid::before { display: none; }
  .mechanism-arrow { display: none; }

  .contact-inner { width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    padding: 0 0.5rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .feature-card {
    grid-template-columns: 64px 1fr;
  }

  .feature-icon-col { padding: 1.2rem 0; }
  .feature-icon { font-size: 1.6rem; }
  .feature-text-col { padding: 1.2rem 1rem; }

  .testimonial,
  .faq-item { padding: 1.4rem 1rem; }

  .container { padding: 0 0.5rem; }

  input, textarea {
    font-size: 16px;
    padding: 1rem;
  }

  .btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }
}