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

:root {
  --pink:       #d63074;
  --pink-h:     #b8255f;
  --dark:       #32373c;
  --text:       #3a3a3a;
  --muted:      #6b7280;
  --bg:         #ffffff;
  --bg-soft:    #f9f7f8;
  --border:     #e5e7eb;
  --max-w:      980px;
  --radius:     3px;
  --shadow:     0 1px 8px rgba(0,0,0,.08);
  --tr:         .16s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--pink-h); text-decoration: underline; }

h1,h2,h3,h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700; line-height: 1.3; color: var(--dark);
  margin-top: 2rem; margin-bottom: .6rem;
}
h1 { font-size: clamp(1.7rem, 4.5vw, 2.35rem); margin-top: 0; }
h2 { font-size: clamp(1.2rem, 2.8vw, 1.48rem); border-bottom: 1px solid var(--border); padding-bottom: .35rem; }
h3 { font-size: 1.1rem; color: var(--pink); font-weight: 600; }
p  { margin-bottom: 1rem; }
ul, ol { margin: .5rem 0 1rem 1.4rem; }
li { margin-bottom: .3rem; }

/* ===== LAYOUT ===== */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark); color: rgba(255,255,255,.75);
  font-size: .82rem; font-family: system-ui, sans-serif;
  padding: .4rem 1.5rem;
}
.top-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.top-bar a { color: rgba(255,255,255,.75); }
.top-bar a:hover { color: #fff; text-decoration: none; }
.top-bar-sep::before { content: '·'; margin: 0 .25rem; opacity: .4; }

/* ===== HEADER ===== */
#masthead {
  background: var(--bg);
  border-bottom: 2px solid var(--pink);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}
.site-branding a {
  display: flex; align-items: baseline; gap: .15rem;
  font-family: system-ui, sans-serif; text-decoration: none;
}
.brand-main { font-size: 1.05rem; font-weight: 800; color: var(--pink); letter-spacing: .02em; }
.brand-sep { color: var(--border); font-size: .9rem; margin: 0 .1rem; }
.brand-sub { font-size: .78rem; color: var(--muted); font-weight: 400; letter-spacing: .03em; text-transform: uppercase; }

/* NAV */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.main-nav a {
  display: block; padding: .5rem .85rem;
  font-family: system-ui, sans-serif; font-size: .82rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--dark); transition: color var(--tr), border-bottom-color var(--tr);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.main-nav a:hover, .main-nav a.active { color: var(--pink); border-bottom-color: var(--pink); text-decoration: none; }

#nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--dark); padding: .4rem; }

/* ===== HERO ===== */
.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 3rem;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.hero-kicker {
  font-family: system-ui, sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pink);
  margin-bottom: .75rem;
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--dark); max-width: 720px; }
.hero-lead { font-size: 1.05rem; color: var(--muted); max-width: 660px; margin-top: .75rem; }
.hero-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.25rem; font-size: .82rem; color: var(--muted); font-family: system-ui, sans-serif; }

/* ===== STATS BAR ===== */
.kpi-bar { border-bottom: 1px solid var(--border); background: var(--bg); padding: 1rem 0; }
.kpi-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; gap: 0; }
.kpi-item { flex: 1; min-width: 140px; padding: .6rem 1.25rem; border-right: 1px solid var(--border); text-align: center; }
.kpi-item:last-child { border-right: none; }
.kpi-num { font-size: 1.4rem; font-weight: 700; color: var(--pink); display: block; font-family: system-ui, sans-serif; }
.kpi-label { font-size: .77rem; color: var(--muted); font-family: system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; }

/* ===== CONTENT ===== */
.content-wrap { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem 4rem; }

.art-body h2 { scroll-margin-top: 82px; }
.art-body h3 { scroll-margin-top: 82px; }

/* Steps */
.step-list { list-style: none; margin: 1rem 0 1.5rem; padding: 0; counter-reset: sc; }
.step-list li {
  counter-increment: sc; display: flex; gap: 1rem; align-items: flex-start;
  padding: .85rem 1rem; margin-bottom: .4rem;
  background: var(--bg-soft); border-radius: var(--radius);
  border-left: 3px solid var(--pink);
}
.step-list li::before {
  content: counter(sc); min-width: 28px; height: 28px; border-radius: 50%;
  background: var(--pink); color: #fff; font-size: .82rem;
  font-family: system-ui, sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Check list */
.check-list { list-style: none; margin: 1rem 0 1.5rem; padding: 0; }
.check-list li {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .6rem 0; border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: '✓'; color: var(--pink); font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }

/* Info box */
.callout {
  background: #fdf0f6; border-left: 3px solid var(--pink);
  padding: .9rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0; font-size: .95rem;
}
.callout.warn { background: #fff8f0; border-left-color: #e07d3a; }
.callout p:last-child { margin-bottom: 0; }

/* Wett types */
.wett-types { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.wett-types li { padding: .75rem 1rem; background: var(--bg-soft); border-radius: var(--radius); font-size: .93rem; }
.wett-types li strong { display: block; color: var(--dark); font-size: .92rem; margin-bottom: .15rem; font-family: system-ui, sans-serif; }

/* Table */
.tbl-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); }
.data-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; font-family: system-ui, sans-serif; }
.data-tbl th { background: var(--dark); color: #fff; padding: .7rem 1rem; text-align: left; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.data-tbl td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.data-tbl tr:last-child td { border-bottom: none; }
.data-tbl tr:hover td { background: var(--bg-soft); }
.td-name { color: var(--pink); font-weight: 600; }
.td-ok { color: #059669; font-size: .85rem; font-weight: 600; }

/* FAQ */
.faq-block { margin: 1rem 0; }
.faq-q { list-style: none; border-bottom: 1px solid var(--border); }
.faq-q:first-child { border-top: 1px solid var(--border); }
.faq-toggle {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1rem 0; font-size: .97rem; font-weight: 600;
  font-family: Georgia, serif; color: var(--dark);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: color var(--tr);
}
.faq-toggle:hover { color: var(--pink); }
.faq-ico { color: var(--pink); font-size: 1.2rem; flex-shrink: 0; transition: transform var(--tr); }
.faq-q.is-open .faq-ico { transform: rotate(45deg); }
.faq-ans { display: none; padding: 0 0 1rem; font-size: .95rem; color: var(--muted); }
.faq-ans p { margin-bottom: .5rem; }
.faq-q.is-open .faq-ans { display: block; }

/* Back-to-top */
#btt {
  position: fixed; bottom: 1.75rem; right: 1.5rem; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pink); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(214,48,116,.35);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity var(--tr), transform var(--tr);
}
#btt.show { opacity: 1; transform: none; pointer-events: auto; }
#btt:hover { background: var(--pink-h); }

/* ===== FOOTER ===== */
#colophon {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 1.75rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem; }
.footer-nav a { color: rgba(255,255,255,.6); font-size: .85rem; font-family: system-ui, sans-serif; padding: .3rem .6rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-copy { font-size: .82rem; font-family: system-ui, sans-serif; }

/* Page layout for sub-pages */
.page-body { max-width: var(--max-w); margin: 3rem auto; padding: 0 1.5rem 4rem; }
.page-body h1 { margin-bottom: 1.5rem; }

/* 404 */
.err-page { text-align: center; padding: 5rem 1.5rem; }
.err-code { font-size: 4rem; font-weight: 900; color: var(--pink); display: block; }

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  .kpi-inner { flex-wrap: wrap; }
  .kpi-item { min-width: 50%; }
  .kpi-item:nth-child(even) { border-right: none; }
  .kpi-item:nth-child(3), .kpi-item:nth-child(4) { border-top: 1px solid var(--border); }
  .wett-types { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .top-bar { display: none; }
  .hero { padding: 2.5rem 0 2rem; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: .75rem 1.5rem; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { border-bottom: 1px solid var(--border); border-right: none; margin-bottom: 0; padding: .65rem 0; }
  #nav-toggle { display: flex; align-items: center; }
  .data-tbl { font-size: .82rem; }
  .data-tbl th, .data-tbl td { padding: .5rem .65rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  .kpi-item { min-width: 100%; border-right: none !important; }
  .step-list li { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
