:root {
  --primary-color: #8B3A2A;
  --secondary-color: #B85C3A;
  --accent-color: #D4845A;
  --light-color: #FDF2ED;
  --dark-color: #2E1208;
  --gradient-primary: linear-gradient(135deg, #8B3A2A 0%, #B85C3A 100%);
  --hover-color: #6E2D1E;
  --background-color: #FBF5F2;
  --text-color: #3A2218;
  --border-color: rgba(139, 58, 42, 0.2);
  --divider-color: rgba(184, 92, 58, 0.15);
  --shadow-color: rgba(139, 58, 42, 0.12);
  --highlight-color: #F2C94C;
  --main-font: 'Lora', serif;
  --alt-font: 'Inter', sans-serif;
}

/* Mobile Menu */
.hamburger {
  display: none; flex-direction: column; cursor: pointer;
  padding: 8px; background: rgba(255,255,255,0.15); border-radius: 8px;
}
.hamburger .line {
  width: 28px; height: 3px; background-color: var(--light-color);
  margin: 3px 0; transition: 0.3s; border-radius: 2px;
}
#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: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2); 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: 1.2rem 1.8rem; color: var(--light-color);
  text-decoration: none; border-radius: 15px; transition: all 0.3s ease;
  font-size: 1.1rem; font-weight: 500; border: 2px solid transparent;
}
.mobile-nav a:hover {
  background-color: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3);
  transform: translateX(8px);
}

/* Feature Cards — горизонтальный layout с цветной левой полосой */
.feature-card {
  transition: all 0.4s ease; border: none; position: relative;
  background: #ffffff; border-radius: 14px; padding: 1.8rem 2rem;
  box-shadow: 0 4px 18px rgba(139, 58, 42, 0.1);
  display: flex; align-items: flex-start; gap: 1.4rem;
  border-left: 5px solid var(--accent-color);
}
.feature-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(139, 58, 42, 0.18);
  border-left-color: var(--primary-color);
}
.feature-icon {
  font-size: 2.6rem; flex-shrink: 0;
  display: flex; justify-content: center; align-items: center;
  width: 64px; height: 64px; border-radius: 14px;
  background: linear-gradient(135deg, var(--light-color), #f5e0d6);
  transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(6deg); }
.feature-card-body { flex: 1; }

/* Testimonials */
.testimonial {
  transition: all 0.4s ease;
  background: #ffffff; padding: 2.2rem; margin: 1.2rem 0;
  border-radius: 16px; box-shadow: 0 4px 16px rgba(139, 58, 42, 0.09);
  border-bottom: 4px solid var(--accent-color); position: relative;
}
.testimonial::before {
  content: '❝'; position: absolute; top: 16px; right: 20px;
  font-size: 4rem; color: var(--primary-color); opacity: 0.06;
}
.testimonial:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(139, 58, 42, 0.16); }

/* FAQ */
.faq-item {
  border: 2px solid var(--border-color); transition: all 0.4s ease;
  background: white; padding: 2rem; margin: 1.2rem 0;
  border-radius: 16px; box-shadow: 0 4px 14px rgba(139, 58, 42, 0.07);
  position: relative;
}
.faq-item::before {
  content: ''; position: absolute; left: -2px; top: 50%;
  transform: translateY(-50%); width: 4px; height: 0;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  transition: height 0.4s ease;
}
.faq-item:hover::before { height: 70%; }
.faq-item:hover { transform: translateX(8px); box-shadow: 0 10px 28px rgba(139, 58, 42, 0.14); border-color: var(--primary-color); }

/* Inputs */
input, textarea {
  transition: all 0.3s ease; font-family: var(--alt-font);
  border: 2px solid var(--border-color); border-radius: 10px; padding: 1.2rem;
  background-color: white; color: var(--text-color); font-size: 1rem;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--primary-color);
  box-shadow: 0 0 0 5px rgba(139, 58, 42, 0.1); transform: translateY(-2px);
}
input:hover, textarea:hover { border-color: var(--secondary-color); }

/* Buttons */
button, .btn {
  transition: all 0.3s ease; position: relative; overflow: hidden;
  background: var(--gradient-primary); color: white; border: none;
  padding: 1.2rem 2.5rem; border-radius: 50px; font-weight: 600;
  font-family: var(--alt-font); cursor: pointer; text-transform: uppercase;
  letter-spacing: 1px; font-size: 0.9rem; text-decoration: none;
  display: inline-block; text-align: center;
}
button::before, .btn::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; background: rgba(255,255,255,0.18); border-radius: 50%;
  transform: translate(-50%,-50%); transition: width 0.4s, height 0.4s;
}
button:hover::before, .btn:hover::before { width: 300%; height: 300%; }
button:hover, .btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 24px rgba(139, 58, 42, 0.38); }

/* Base */
html { scroll-behavior: smooth; }
h1, h2, h3 { text-shadow: 0 1px 3px rgba(0,0,0,0.07); font-family: var(--main-font); font-weight: 700; }
body { font-family: var(--alt-font); color: var(--text-color); background-color: var(--background-color); line-height: 1.75; }

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 60%, var(--secondary-color) 100%); }

/* Stats */
.stat-card {
  background: white; border-radius: 18px; padding: 2.2rem 1.5rem; text-align: center;
  box-shadow: 0 5px 18px rgba(139, 58, 42, 0.1); transition: all 0.3s ease;
  border-top: 4px solid var(--accent-color);
}
.stat-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 12px 32px rgba(139, 58, 42, 0.18); }
.stat-number {
  font-size: 3rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-family: var(--main-font);
}
.stat-text { font-size: 1rem; color: var(--text-color); margin-top: 0.4rem; }

/* Trust */
.trust-indicator {
  background: white; padding: 1.5rem; border-radius: 12px;
  box-shadow: 0 3px 12px rgba(139, 58, 42, 0.08); transition: all 0.3s ease;
}
.trust-indicator:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(139, 58, 42, 0.14); }

/* Header / Footer */
header {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
  color: var(--light-color); padding: 1.2rem 0; position: relative;
  z-index: 1000; box-shadow: 0 3px 15px rgba(46, 18, 8, 0.35);
}
footer { background: var(--dark-color); color: var(--light-color); padding: 4rem 0 1rem; }
header img[alt="logo"], footer img[alt="logo"] { filter: brightness(0) invert(1); }

/* Pattern — subtle warm diagonal lines */
.pattern-bg {
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(139, 58, 42, 0.03) 0px,
      rgba(139, 58, 42, 0.03) 1px,
      transparent 1px,
      transparent 16px
    ),
    radial-gradient(ellipse at 80% 20%, rgba(212, 132, 90, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(139, 58, 42, 0.05) 0%, transparent 50%);
}

/* Focus */
a:focus, button:focus, input:focus, textarea:focus { outline: 3px solid var(--highlight-color); outline-offset: 3px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light-color); }
::-webkit-scrollbar-thumb { background: var(--gradient-primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.8s ease-out; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .container { padding: 0 1.2rem; }
  .feature-card { flex-direction: column; align-items: flex-start; }
  .testimonial, .faq-item, .stat-card, .trust-indicator { padding: 1.8rem; }
  #contact .grid { max-width: 100% !important; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .stat-number { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
@media (prefers-contrast: high) {
  :root { --text-color: #000; --background-color: #fff; --border-color: #000; --primary-color: #000; --secondary-color: #000; }
}