:root {
  --primary-color: #8B4513;
  --secondary-color: #6B3410;
  --accent-color: #C47A3A;
  --light-color: #FAF0E6;
  --dark-color: #3D1F0A;
  --gradient-primary: linear-gradient(135deg, #8B4513 0%, #C47A3A 100%);
  --hover-color: #703810;
  --background-color: #FDF8F2;
  --text-color: #3A2A1A;
  --border-color: rgba(139, 69, 19, 0.2);
  --divider-color: rgba(139, 69, 19, 0.12);
  --shadow-color: rgba(61, 31, 10, 0.12);
  --highlight-color: #2ECC71;
  --main-font: 'Playfair Display', serif;
  --alt-font: 'Lato', 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, #FDF8F2 0%, var(--light-color) 100%);
  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(2rem, 5vw, 3.8rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); line-height: 1.4; }

p {
  margin: 0 0 1rem 0;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.75;
}

/* 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;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Header */
header {
  background: rgba(255,255,255,0.96);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 20px 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: 500;
  transition: all 0.3s ease;
}

.navigation a:hover { color: var(--primary-color); }

/* Grids */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

/* Feature Cards — горизонтальные с левой иконкой, отличие от v1 */
.feature-card {
  background: #fff;
  border-left: 5px solid var(--accent-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 35px rgba(139, 69, 19, 0.2);
  border-left-color: var(--primary-color);
}

.feature-icon {
  font-size: 2.8rem;
  margin: 0 auto 1.2rem auto;
  color: var(--primary-color);
  width: 80px;
  height: 80px;
  background: rgba(139, 69, 19, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.12);
  box-shadow: 0 6px 18px rgba(139, 69, 19, 0.35);
}

/* Testimonials */
.testimonial {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 3px 15px var(--shadow-color);
  transition: all 0.3s ease;
  width: 100%;
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(139, 69, 19, 0.18);
}

/* FAQ */
.faq-item {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
  padding: 1.8rem 2rem;
  width: 100%;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.15);
  border-color: var(--primary-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.9);
  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(139, 69, 19, 0.12);
  background: white;
}

/* Buttons */
.btn, button[type="submit"] {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  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 15px rgba(139, 69, 19, 0.3);
}

.btn:hover, button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 69, 19, 0.4);
}

/* Contact */
.contact-section { width: 100%; }

.contact-wrapper {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Pattern bg */
.pattern-bg {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(196, 122, 58, 0.07) 3px, transparent 3px),
    radial-gradient(circle at 90% 80%, rgba(139, 69, 19, 0.05) 2px, transparent 2px),
    repeating-linear-gradient(30deg, transparent, transparent 50px, rgba(139, 69, 19, 0.025) 50px, rgba(139, 69, 19, 0.025) 100px);
  background-size: 80px 80px, 60px 60px, 120px 120px;
}

/* Footer */
footer {
  padding: 3rem 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }

  .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .feature-icon { width: 70px; height: 70px; font-size: 2.4rem; }
  .feature-card, .testimonial, .faq-item { padding: 1.8rem 1.5rem; }
  .contact-wrapper { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .feature-card, .testimonial, .faq-item { padding: 1.5rem 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;
}