:root {
  --primary-color: #4B3A7C;
  --secondary-color: #332960;
  --accent-color: #8B72C8;
  --light-color: #F0EBF8;
  --dark-color: #1C1430;
  --gradient-primary: linear-gradient(135deg, #4B3A7C 0%, #8B72C8 100%);
  --hover-color: #332960;
  --background-color: #F7F5FC;
  --text-color: #28213E;
  --border-color: rgba(75, 58, 124, 0.16);
  --divider-color: rgba(75, 58, 124, 0.1);
  --shadow-color: rgba(28, 20, 48, 0.09);
  --highlight-color: #E8A838;
  --main-font: 'Playfair Display', serif;
  --alt-font: 'Open Sans', 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.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 1rem 0;
}

h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 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);
  line-height: 1.75;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: rgba(255,255,255,0.95);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.hamburger .line {
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 1px;
}

#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: 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: 1rem 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: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.navigation a:hover { color: var(--primary-color); }

/* Feature cards — magazine tile style, asymmetric 3+2 grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  width: 100%;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 18px var(--shadow-color);
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 34px rgba(75, 58, 124, 0.18);
}

.feature-card-header {
  background: var(--gradient-primary);
  padding: 1.4rem 1.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(255,255,255,0.28);
  transform: scale(1.1);
}

.feature-card-header h3 {
  color: white;
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--main-font);
}

.feature-card-body {
  padding: 1.2rem 1.6rem 1.6rem;
  flex: 1;
}

.feature-card-body p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-color);
  line-height: 1.65;
}

/* Testimonials */
.testimonial {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 3px 14px var(--shadow-color);
  transition: all 0.3s ease;
  width: 100%;
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 26px rgba(75, 58, 124, 0.16);
}

/* FAQ Items */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 1.8rem 2rem;
  width: 100%;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 20px rgba(75, 58, 124, 0.14);
}

/* 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(75, 58, 124, 0.12);
}

/* Buttons */
.btn, button[type="submit"] {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 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(75, 58, 124, 0.28);
}

.btn:hover, button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(75, 58, 124, 0.38);
}

/* Contact */
.contact-wrapper { width: 80%; margin: 0 auto; }

/* Pattern */
.pattern-bg { position: relative; overflow: hidden; }

.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(139, 114, 200, 0.07) 80px, transparent 80px),
    radial-gradient(circle at 90% 80%, rgba(75, 58, 124, 0.06) 100px, transparent 100px),
    radial-gradient(circle at 50% 50%, rgba(139, 114, 200, 0.04) 140px, transparent 140px);
  pointer-events: none;
}

/* 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 ease;
}

footer a:hover { opacity: 0.75; }

/* Extra block — Q&A strip / accordion-style visual on light bg */
.extra-block {
  background: linear-gradient(160deg, #EDE8F8 0%, #F7F5FC 100%);
  padding: 4rem 0;
}

.extra-block h2 { color: var(--primary-color); }

.qa-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 960px;
  margin: 0 auto;
}

.qa-item {
  background: #ffffff;
  border-radius: 14px;
  border-left: 5px solid var(--accent-color);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 3px 14px var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qa-item .qa-q {
  font-weight: 700;
  font-family: var(--main-font);
  color: var(--primary-color);
  font-size: 1rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.qa-item .qa-q::before {
  content: 'P.';
  background: var(--gradient-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.qa-item .qa-a {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
  padding-left: 1.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .qa-strip { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }

  .features-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .contact-wrapper { width: 100%; }
  .grid-2col { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .feature-card,
  .testimonial,
  .faq-item { padding: 1.5rem 1rem; }
  .feature-card-body { padding: 1rem; }
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}