:root {
  --primary-color: #8B2252;
  --secondary-color: #6A1A3E;
  --accent-color: #C4936A;
  --light-color: #FAF0F4;
  --dark-color: #2E0A1A;
  --gradient-primary: linear-gradient(135deg, #8B2252 0%, #C4936A 100%);
  --hover-color: #A8296A;
  --background-color: #FDF8F9;
  --text-color: #2C1220;
  --text-color-secondary: #6D4058;
  --border-color: rgba(139, 34, 82, 0.18);
  --divider-color: rgba(106, 26, 62, 0.12);
  --shadow-color: rgba(46, 10, 26, 0.1);
  --highlight-color: #F2D57F;
  --main-font: 'Merriweather', serif;
  --alt-font: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; width: 100%; }

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.75;
  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(1.8rem, 5vw, 3rem); line-height: 1.25; }
h2 { font-size: clamp(1.4rem, 4vw, 2.3rem); line-height: 1.3; }
h3 { font-size: clamp(1rem, 3vw, 1.3rem); line-height: 1.4; }

p {
  margin: 0 0 1rem 0;
  font-size: clamp(0.97rem, 2vw, 1.08rem);
  line-height: 1.8;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 1.1rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 3px 18px rgba(46, 10, 26, 0.25);
}

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(--light-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.navigation a:hover { opacity: 0.75; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 9px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
}

.hamburger .line {
  width: 24px; height: 2px;
  background: var(--light-color);
  margin: 3px 0;
  border-radius: 1px;
  transition: 0.3s;
}

#menu-toggle { display: none; }

#menu-toggle:checked ~ .mobile-nav {
  max-height: 420px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--secondary-color);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s ease;
  z-index: 1000;
}

.mobile-nav ul { padding: 1.5rem 2rem; margin: 0; list-style: none; }
.mobile-nav li { margin: 0.8rem 0; }

.mobile-nav a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--light-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.3s;
}

.mobile-nav a:hover { background: rgba(255,255,255,0.1); }

/* Pattern */
.pattern-bg {
  position: relative;
  overflow: hidden;
}

.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      30deg,
      transparent,
      transparent 40px,
      rgba(139, 34, 82, 0.04) 40px,
      rgba(139, 34, 82, 0.04) 80px
    ),
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 40px,
      rgba(196, 147, 106, 0.04) 40px,
      rgba(196, 147, 106, 0.04) 80px
    );
  pointer-events: none;
}

/* Feature cards — пронумерованные с большим числом */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 22px var(--shadow-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 36px rgba(139, 34, 82, 0.2);
}

.feature-card-top {
  background: var(--gradient-primary);
  padding: 1.8rem 2rem 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-num {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--main-font);
  color: rgba(255,255,255,0.2);
  line-height: 1;
  flex-shrink: 0;
}

.feature-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.feature-card-body {
  padding: 1.5rem 2rem 2rem 2rem;
}

.feature-card-body h3 {
  margin-bottom: 0.6rem;
  color: var(--primary-color);
}

.feature-card-body p {
  margin: 0;
  color: var(--text-color);
  font-size: 0.97rem;
}

/* Random block — timeline горизонтальна */
.h-timeline {
  display: flex;
  gap: 0;
  position: relative;
  overflow-x: auto;
}

.h-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 0;
}

.h-step {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.h-step-dot {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 16px var(--shadow-color);
  transition: all 0.3s ease;
}

.h-step:hover .h-step-dot {
  background: var(--gradient-primary);
  transform: scale(1.1);
}

.h-step-title {
  font-weight: 700;
  font-family: var(--main-font);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.h-step-text {
  font-size: 0.88rem;
  color: var(--text-color-secondary);
  line-height: 1.5;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
  border-bottom: 4px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.testimonial:hover { transform: translateY(-5px); }

/* FAQ */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px var(--shadow-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 22px rgba(139, 34, 82, 0.15);
}

.faq-item h3 {
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-size: 1.05rem;
}

/* Form */
input, textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  background: #ffffff;
  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, 34, 82, 0.12);
}

/* Buttons */
.btn, button[type="submit"] {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2.2rem;
  border-radius: 8px;
  font-weight: 700;
  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(139, 34, 82, 0.3);
}

.btn:hover, button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139, 34, 82, 0.42);
}

/* Contact */
.contact-wrapper {
  width: 80%;
  margin: 0 auto;
}

/* 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.3s;
}

footer a:hover { opacity: 0.7; }

a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--highlight-color);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-wrapper { width: 100%; }
  .grid-2col { grid-template-columns: 1fr !important; }
  .h-timeline { flex-direction: column; gap: 2rem; }
  .h-timeline::before { display: none; }
  .h-step { flex-direction: row; text-align: left; gap: 1rem; align-items: flex-start; min-width: unset; }
  .h-step-dot { flex-shrink: 0; margin-bottom: 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
}