*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-muted: #f5f5f5;
  --border: #ececec;
  --text: #1a1a1a;
  --text-muted: #666666;
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #fce4ec;
  --accent: #f06292;
  --success: #059669;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(233, 30, 99, 0.08);
  --shadow-lg: 0 12px 40px rgba(233, 30, 99, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Sans', var(--font);
  --header-h: 72px;
  --sidebar-w: 300px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.container-wide { width: min(1280px, 94vw); margin: 0 auto; }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo:hover { opacity: 0.88; }

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-brand .logo-img {
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.menu-toggle {
  display: none;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  margin-left: auto;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg-card);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-close {
  display: block;
  margin-left: auto;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

.mobile-nav a.active { color: var(--primary); }

/* ── Breadcrumbs ── */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li { display: flex; align-items: center; gap: 0.35rem; }

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  color: var(--border);
  margin-left: 0.35rem;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }

/* ── Hero ── */
.hero {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(135deg, #fce4ec 0%, #fff0f5 50%, #fafafa 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-visual {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-chart {
  height: 180px;
  background: linear-gradient(to top, var(--primary-light), transparent);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.hero-chart::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  clip-path: polygon(0 100%, 15% 70%, 30% 80%, 50% 40%, 70% 55%, 85% 20%, 100% 0, 100% 100%);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.25rem;
  color: var(--primary);
}

.hero-stats span { font-size: 0.8rem; color: var(--text-muted); }

/* ── Sections ── */
.section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.section-header p { color: var(--text-muted); }

.section-alt { background: var(--bg-muted); }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-image {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light), #f8bbd0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-body { padding: 1.25rem; }

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--primary); }

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── Layout with sidebar ── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 2.5rem;
  padding: 2rem 0 3.5rem;
  align-items: start;
}

.content-area h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.content-area h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.content-area h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.content-area p { margin-bottom: 1rem; color: var(--text-muted); }

.content-area ul, .content-area ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--text-muted);
}

.content-area li { margin-bottom: 0.4rem; }
.content-area ul { list-style: disc; }
.content-area ol { list-style: decimal; }

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.info-box p { margin: 0; color: var(--text); }

.sidebar { position: sticky; top: calc(var(--header-h) + 1rem); }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.sidebar-widget h3 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.sidebar-links a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--primary); }

/* ── Ad slots ── */
.ad-slot {
  border-radius: var(--radius-sm);
  text-align: center;
  overflow: hidden;
  min-height: 90px;
}

.ad-sidebar { min-height: 250px; margin-bottom: 1.25rem; }
.ad-in-content { min-height: 120px; margin: 2rem 0; }
.ad-banner { min-height: 90px; margin: 1.5rem 0; }

/* ── FAQ ── */
.faq-list { max-width: 800px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { max-height: 500px; }

/* ── Newsletter ── */
.newsletter {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  padding: 2.5rem;
  color: #fff;
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.newsletter-form button:hover { background: #1e293b; }

.newsletter-msg {
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.newsletter-msg.show { display: block; }

/* ── Blog ── */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.blog-search {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.blog-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.blog-search::before {
  content: '🔍';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-btn {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ── Contact form ── */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-success {
  display: none;
  padding: 1rem;
  background: #d1fae5;
  color: var(--success);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.form-success.show { display: block; }

/* ── Footer ── */
.footer {
  background: var(--text);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { color: #fff; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 0.3rem 0;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none !important; }

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: block; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero { padding: 2.5rem 0 2rem; }

  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}
