:root {
  --primary-color: #B22B5B;
  --secondary-color: #7A1A3C;
  --accent-color: #F0A55A;
  --light-color: #FDF6F0;
  --dark-color: #2E1018;
  --gradient-primary: linear-gradient(135deg, #B22B5B 0%, #7A1A3C 100%);
  --hover-color: #C73D6B;
  --background-color: #FBF4EE;
  --text-color: #3A2020;
  --border-color: rgba(178, 43, 91, 0.18);
  --divider-color: rgba(178, 43, 91, 0.12);
  --shadow-color: rgba(122, 26, 60, 0.11);
  --highlight-color: #F2D57F;
  --main-font: 'Merriweather', serif;
  --alt-font: 'Poppins', 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.15);
  border-color: rgba(255,255,255,0.3);
  transform: translateX(8px);
}

/* Feature Cards — numbered, top accent border */
.feature-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 6px 22px var(--shadow-color);
  border-top: 5px solid var(--primary-color);
  transition: all 0.4s ease;
  text-align: center;
}

.feature-card:nth-child(2n) {
  border-top-color: var(--accent-color);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px var(--shadow-color);
  border-top-color: var(--highlight-color);
}

.feature-number {
  position: absolute;
  top: -1.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--alt-font);
}

.feature-icon {
  font-size: 3rem;
  margin: 0 auto 1.2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3.5rem;
  width: 100%;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2);
}

/* Testimonials — стиль "цитата з бордюром зверху і знизу" */
.testimonial {
  position: relative;
  background: #ffffff;
  padding: 2.5rem;
  margin: 1.5rem 0;
  border-radius: 16px;
  box-shadow: 0 6px 22px var(--shadow-color);
  border-top: 3px solid var(--highlight-color);
  border-bottom: 3px solid var(--highlight-color);
  transition: all 0.4s ease;
}

.testimonial:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 36px var(--shadow-color);
}

/* FAQ */
.faq-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 16px var(--shadow-color);
  border: 2px solid var(--border-color);
  transition: all 0.4s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 28px var(--shadow-color);
  transform: translateY(-4px);
}

/* Forms */
input, textarea {
  transition: all 0.4s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.3rem;
  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(178,43,91,0.1);
  transform: translateY(-2px);
}

input:hover, textarea:hover {
  border-color: var(--accent-color);
}

/* Buttons */
button, .btn {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.3rem 2.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--alt-font);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  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.2);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.4s ease, height 0.4s ease;
}

button:hover::before, .btn:hover::before {
  width: 300%; height: 300%;
}

button:hover, .btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 30px rgba(178,43,91,0.3);
}

html { scroll-behavior: smooth; }

h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.07);
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
}

.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 6px 20px var(--shadow-color);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-color);
  border-color: var(--highlight-color);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--main-font);
}

.stat-text {
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 0.5rem;
}

/* Contact */
.contact-container { width: 80%; }

@media (max-width: 768px) {
  .contact-container { width: 100%; }
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }
  .hero h1 { font-size: 2.5rem; }
  .container { padding: 0 1.5rem; }
  .feature-card, .testimonial, .faq-item, .stat-card { padding: 2rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .feature-card, .testimonial, .faq-item, .stat-card { margin: 1rem 0; padding: 1.5rem; }
  .stat-number { font-size: 2.5rem; }
}

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-color);
  padding: 1.2rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(122,26,60,0.2);
}

footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 4rem 0 1rem;
}

header img[alt="logo"],
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid var(--highlight-color);
  outline-offset: 3px;
}

::-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); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.8s ease-out; }

/* Pattern — хвилясті лінії */
.pattern-bg {
  background-color: var(--background-color);
  background-image:
    repeating-linear-gradient(
      -30deg,
      rgba(178,43,91,0.04) 0px,
      rgba(178,43,91,0.04) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      30deg,
      rgba(240,165,90,0.04) 0px,
      rgba(240,165,90,0.04) 1px,
      transparent 1px,
      transparent 20px
    );
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --text-color: #000000;
    --background-color: #FFFFFF;
    --border-color: #000000;
    --primary-color: #7A0030;
  }
}