:root {
  --primary-color: #7A3040;
  --secondary-color: #5C2030;
  --accent-color: #B22B5B;
  --light-color: #FDF0F3;
  --dark-color: #2D1018;
  --gradient-primary: linear-gradient(135deg, #7A3040 0%, #B22B5B 100%);
  --hover-color: #621828;
  --background-color: #FBF5F6;
  --text-color: #3A2028;
  --border-color: rgba(122, 48, 64, 0.18);
  --divider-color: rgba(92, 32, 48, 0.15);
  --shadow-color: rgba(122, 48, 64, 0.1);
  --highlight-color: #F2D57F;
  --main-font: 'Playfair Display', 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 — горизонтальные, с цветной левой полосой и номером */
.feature-card {
  background: white;
  border-radius: 10px;
  padding: 2rem 2rem 2rem 1.5rem;
  box-shadow: 0 2px 14px var(--shadow-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  height: 100%;
  overflow: hidden;
  border-left: 5px solid var(--primary-color);
  position: relative;
}

.feature-card:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 28px var(--shadow-color);
  border-left-color: var(--accent-color);
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  width: 60px;
  height: 60px;
  background: var(--light-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  margin: 0 auto;
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.feature-text {
  flex: 1;
}

/* Testimonials */
.testimonial {
  background: white;
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  margin: 1rem 0;
  box-shadow: 0 4px 18px var(--shadow-color);
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--primary-color);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 8px;
  right: 20px;
  font-size: 5rem;
  opacity: 0.07;
  color: var(--primary-color);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--shadow-color);
  border-bottom-color: var(--accent-color);
}

/* FAQ */
.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin: 1.2rem 0;
  box-shadow: 0 3px 14px var(--shadow-color);
  transition: all 0.3s ease;
  padding: 2.2rem;
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 10px 10px 0 0;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--shadow-color);
  border-color: var(--accent-color);
}

.faq-item h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.faq-item h3::before {
  content: '?';
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  background: var(--gradient-primary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Form */
input,
textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  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, 48, 64, 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: 6px;
  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, 48, 64, 0.28);
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(122, 48, 64, 0.38);
}

/* 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;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--primary-color);
}

/* Header / Footer */
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;
}

/* Grids */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
  margin: 2.5rem 0;
}

/* Pattern bg */
.pattern-bg {
  background-image:
    radial-gradient(ellipse at 10% 20%, rgba(122, 48, 64, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(178, 43, 91, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 55% 45%, rgba(242, 213, 127, 0.05) 0%, transparent 55%);
}

/* Random block — сравнительная таблица ДО/ПОСЛЕ */
.compare-block {
  width: 100%;
  background: var(--dark-color);
  padding: 3.5rem 0;
  color: white;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 900px;
  margin: 2.5rem auto 0;
}

.compare-col {
  border-radius: 12px;
  padding: 2rem 1.8rem;
}

.compare-col.before {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.compare-col.after {
  background: rgba(122, 48, 64, 0.55);
  border: 1px solid rgba(178, 43, 91, 0.35);
}

.compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--highlight-color);
  font-weight: 700;
}

.compare-col h3 {
  font-family: var(--main-font);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--highlight-color);
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgba(255,255,255,0.85);
}

.compare-list li::before {
  content: '✗';
  color: #e07070;
  font-weight: bold;
  flex-shrink: 0;
}

.compare-col.after .compare-list li::before {
  content: '✓';
  color: #90e0a0;
}

/* Contact */
.contact-inner {
  width: 80%;
  margin: 0 auto;
}

/* Responsive */
* { box-sizing: border-box; }

@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.5rem; padding: 0 0.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 0.5rem; }

  .feature-card { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .testimonial, .faq-item { margin: 1rem 0; padding: 2rem 1.5rem; max-width: 100%; word-wrap: break-word; }

  .compare-grid { grid-template-columns: 1fr; gap: 1rem; }
  .compare-divider { display: none; }

  .contact-inner { width: 100%; }
  .space-x-8 { gap: 1rem; }
}

@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, .testimonial, .faq-item { margin: 1rem 0; padding: 1.5rem 1rem; max-width: 100%; }

  .container { padding: 0 0.5rem; }

  input, textarea { font-size: 16px; padding: 1rem; }
  .btn { padding: 1rem 2rem; font-size: 0.95rem; }
}