:root {
  --primary-color: #3D5A4E;
  --secondary-color: #2C4239;
  --accent-color: #C09B52;
  --light-color: #F2F5F0;
  --dark-color: #182820;
  --gradient-primary: linear-gradient(135deg, #3D5A4E 0%, #5A8070 100%);
  --hover-color: #2E4438;
  --background-color: #F7FAF8;
  --text-color: #1E2E28;
  --border-color: rgba(192, 155, 82, 0.22);
  --divider-color: rgba(61, 90, 78, 0.13);
  --shadow-color: rgba(61, 90, 78, 0.12);
  --highlight-color: #C09B52;
  --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 1.2rem 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); 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); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  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: 2px;
}

#menu-toggle { display: none; }

#menu-toggle:checked ~ .mobile-nav {
  max-height: 500px;
  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: 1.2rem 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.97);
  padding: 1.2rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 16px 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: color 0.3s;
}

.navigation a:hover { color: var(--primary-color); }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  width: 100%;
}

/* Feature card — horizontal split: dark icon panel left, text right */
.feature-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 10px;
  box-shadow: 0 3px 16px var(--shadow-color);
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--shadow-color);
}

.feature-icon {
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  min-width: 72px;
  width: 72px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #C09B52 0%, #A07830 100%);
}

.feature-body {
  padding: 1.4rem 1.3rem;
  flex: 1;
}

.feature-body h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-body p {
  font-size: 0.94rem;
  margin: 0;
  color: var(--text-color);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.testimonial {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--accent-color);
  border-radius: 8px;
  padding: 2rem 2.2rem;
  box-shadow: 0 3px 16px var(--shadow-color);
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px var(--shadow-color);
}

/* FAQ */
.faq-item {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 1rem 0;
  padding: 1.8rem 2rem;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--shadow-color);
  border-color: var(--accent-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(61, 90, 78, 0.12);
  background: white;
}

.btn, button {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2.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 4px 16px rgba(61, 90, 78, 0.28);
}

.btn:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(61, 90, 78, 0.38);
}

/* Pattern background — cross-hatch */
.pattern-bg {
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(192, 155, 82, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(61, 90, 78, 0.07) 0%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(61, 90, 78, 0.03) 0px, rgba(61, 90, 78, 0.03) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, rgba(61, 90, 78, 0.03) 0px, rgba(61, 90, 78, 0.03) 1px, transparent 1px, transparent 32px);
}

/* Random block — two-column comparison table */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.compare-table thead tr th {
  padding: 1.1rem 1.4rem;
  font-family: var(--main-font);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.compare-table thead .th-bad {
  background: #5D3A2E;
  color: #fff;
  width: 50%;
}

.compare-table thead .th-good {
  background: var(--primary-color);
  color: #fff;
  width: 50%;
}

.compare-table tbody tr td {
  padding: 1rem 1.4rem;
  font-size: 0.96rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border-color);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody .td-bad {
  background: #FDF5F3;
  color: #5D3A2E;
}

.compare-table tbody .td-good {
  background: #F2F5F0;
  color: #2C4239;
}

.compare-table tbody tr:nth-child(even) .td-bad {
  background: #F8EDEA;
}

.compare-table tbody tr:nth-child(even) .td-good {
  background: #EBF0EB;
}

.compare-icon {
  display: inline-block;
  margin-right: 0.4rem;
}

/* Info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 2px 14px var(--shadow-color);
  border-bottom: 3px solid var(--accent-color);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--accent-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 1rem;
}

footer a { color: var(--light-color); text-decoration: none; transition: opacity 0.2s; }
footer a:hover { opacity: 0.75; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }

  .features-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .info-cards { grid-template-columns: 1fr; }

  .feature-card { flex-direction: row; }
  .feature-icon { min-width: 60px; width: 60px; font-size: 1.5rem; }

  .testimonial,
  .faq-item { padding: 1.6rem 1.2rem; }

  .compare-table thead tr th,
  .compare-table tbody tr td { padding: 0.8rem 0.9rem; font-size: 0.88rem; }

  #contact .grid { max-width: 100% !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .testimonial,
  .faq-item { padding: 1.3rem 1rem; }
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}