:root {
  --primary-color: #4B1461;
  --secondary-color: #360E48;
  --accent-color: #9C1C66;
  --light-color: #F5EEF8;
  --dark-color: #1E0A28;
  --gradient-primary: linear-gradient(135deg, #4B1461 0%, #9C1C66 100%);
  --hover-color: #3A0F50;
  --background-color: #FAF6FC;
  --text-color: #2A1535;
  --border-color: rgba(75, 20, 97, 0.18);
  --divider-color: rgba(54, 14, 72, 0.14);
  --shadow-color: rgba(75, 20, 97, 0.1);
  --highlight-color: #D4A843;
  --main-font: 'Lora', serif;
  --alt-font: 'Open Sans', 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 — «скляні» картки з напівпрозорим фоном і рамкою */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.feature-card {
  background: rgba(245, 238, 248, 0.6);
  border: 1px solid rgba(75, 20, 97, 0.15);
  border-radius: 14px;
  padding: 2.4rem 2rem;
  box-shadow: 0 2px 18px var(--shadow-color);
  transition: all 0.35s ease;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-items: start;
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.06;
  transition: all 0.4s ease;
}

.feature-card:hover::before {
  opacity: 0.14;
  transform: scale(2.2);
}

.feature-card:hover {
  background: white;
  border-color: var(--accent-color);
  box-shadow: 0 8px 32px var(--shadow-color);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.2rem;
  width: 60px;
  height: 60px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
  transition: all 0.35s ease;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  border-color: transparent;
  border-radius: 50%;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-family: var(--main-font);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin: 2.5rem 0;
}

.testimonial {
  background: white;
  border-radius: 14px;
  padding: 2.2rem 2rem 1.8rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  font-weight: 700;
  font-family: var(--main-font);
  flex-shrink: 0;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 34px var(--shadow-color);
  border-color: var(--accent-color);
}

/* FAQ */
.faq-item {
  background: white;
  border-radius: 12px;
  margin: 1.2rem 0;
  box-shadow: 0 3px 14px var(--shadow-color);
  transition: all 0.3s ease;
  padding: 2rem 2.2rem;
  border: 1px solid var(--border-color);
  position: relative;
  padding-left: 3.5rem;
}

.faq-item::before {
  content: 'Q';
  position: absolute;
  left: 1.2rem;
  top: 2rem;
  font-size: 1rem;
  font-weight: 900;
  font-family: var(--main-font);
  color: white;
  background: var(--gradient-primary);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item:hover {
  box-shadow: 0 7px 28px var(--shadow-color);
  border-color: var(--accent-color);
  transform: translateX(3px);
}

.faq-item h3 {
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
  color: var(--primary-color);
  font-family: var(--alt-font);
  font-weight: 600;
}

/* Form */
input, textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  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(75, 20, 97, 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: 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 14px rgba(75, 20, 97, 0.28);
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(75, 20, 97, 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;
}

/* Pattern bg */
.pattern-bg {
  background-image:
    radial-gradient(ellipse at 0% 50%, rgba(75, 20, 97, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 50%, rgba(156, 28, 102, 0.06) 0%, transparent 50%),
    repeating-linear-gradient(
      135deg,
      rgba(75, 20, 97, 0.02) 0px,
      rgba(75, 20, 97, 0.02) 1px,
      transparent 1px,
      transparent 28px
    );
}

/* Random block — «Акордеон порад» горизонтальний (3 колонки, кожна — окремий «вузол») */
.tips-accordion {
  width: 100%;
  background: var(--gradient-primary);
  padding: 4rem 0;
  color: white;
}

.tips-accordion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

.tips-panel {
  padding: 2.2rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background 0.3s ease;
  position: relative;
}

.tips-panel:last-child { border-right: none; }

.tips-panel-num {
  font-size: 3.8rem;
  font-weight: 900;
  font-family: var(--main-font);
  color: rgba(255,255,255,0.12);
  line-height: 1;
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  pointer-events: none;
}

.tips-panel-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.tips-panel h3 {
  font-family: var(--main-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.tips-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-panel-list li {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.tips-panel-list li:last-child { border-bottom: none; }

.tips-panel-list li::before {
  content: '→';
  color: var(--highlight-color);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* 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 { padding: 2rem 1.5rem; max-width: 100%; word-wrap: break-word; }
  .testimonial, .faq-item { margin: 1rem 0; padding: 1.8rem 1.4rem; max-width: 100%; word-wrap: break-word; }
  .faq-item { padding-left: 3rem; }

  .tips-accordion-grid { grid-template-columns: 1fr; gap: 0; }
  .tips-panel { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .tips-panel:last-child { border-bottom: 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 { padding: 1.5rem 1rem; }
  .faq-item { padding: 1.4rem 1rem 1.4rem 3rem; }

  .container { padding: 0 0.5rem; }
  input, textarea { font-size: 16px; padding: 1rem; }
  .btn { padding: 1rem 2rem; font-size: 0.95rem; }
}