:root {
  --pink: #ec5c93;
  --pink-dark: #c93f74;
  --pink-soft: #fff1f6;
  --mint: #69c9b8;
  --ink: #231923;
  --muted: #6f6270;
  --line: #ead7df;
  --paper: #fffafc;
  --white: #fff;
  --shadow: 0 12px 32px rgba(114, 45, 75, .12);
  --radius: 8px;
  --max: 1060px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", sans-serif;
  line-height: 1.85;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
main, header, footer, section, nav { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(236, 92, 147, .16);
  background: rgba(255, 250, 252, .94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.brand__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand__text { font-size: 17px; }
.site-nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 700; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--pink-dark); }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); }

.hero {
  position: relative;
  min-height: min(640px, 78svh);
  display: grid;
  align-items: start;
  overflow: hidden;
  background: #fff1f6;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,250,252,.92) 0%, rgba(255,241,246,.72) 36%, rgba(43,24,36,.08) 70%, rgba(43,24,36,.18) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 44px 20px 0;
  color: var(--ink);
}
.eyebrow { margin: 0 0 8px; color: var(--pink); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hero .eyebrow { color: var(--pink-dark); }
h1, h2, h3 { line-height: 1.35; margin: 0; letter-spacing: 0; }
h1 { max-width: 760px; font-size: clamp(32px, 9vw, 64px); }
.hero p:not(.eyebrow) { max-width: 620px; margin: 12px 0 20px; color: var(--muted); font-size: 16px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-weight: 800;
  box-shadow: var(--shadow);
}
.button:hover { background: var(--pink-dark); }
.hero .button { margin-top: 18px; }

.section { width: min(100%, var(--max)); margin: 0 auto; padding: 42px 20px; }
.section--soft { width: 100%; max-width: none; background: #fff; }
.section--soft > * { width: min(100%, var(--max)); margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: 22px; }
.section__head h2 { font-size: 26px; }
.topic-grid, .article-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic-card, .article-card a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.topic-grid--compact { gap: 10px; }
.topic-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 10px;
}
.topic-card__image {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pink-soft);
  border: 1px solid rgba(236, 92, 147, .18);
}
.topic-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.topic-card__text { display: block; min-width: 0; }
.topic-card strong { display: block; font-size: 16px; line-height: 1.25; }
.topic-card__text span, .article-card p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.article-list { grid-template-columns: repeat(3, 1fr); }
.article-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--pink-soft); }
.article-card span { display: inline-block; margin: 14px 16px 6px; color: var(--pink-dark); font-size: 12px; font-weight: 800; }
.article-card h3 { margin: 0 16px 8px; font-size: 18px; }
.article-card p { margin: 0 16px 18px; }

.page-hero { padding: 40px 20px 22px; background: linear-gradient(180deg, var(--pink-soft), var(--paper)); }
.page-hero__inner, .content-wrap { width: min(100%, var(--max)); margin: 0 auto; }
.page-hero h1 { color: var(--ink); font-size: 34px; }
.blog-grid { display: grid; gap: 16px; }

.article-page { background: #fff; }
.article-hero { padding: 32px 20px 22px; background: var(--pink-soft); }
.article-hero__inner, .article-body { width: min(100%, 820px); margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--pink-dark); font-size: 13px; font-weight: 800; }
.article-hero h1 { font-size: clamp(28px, 7vw, 44px); }
.article-body { padding: 28px 20px 56px; }
.article-body h2 { margin: 38px 0 14px; padding-top: 4px; font-size: 25px; border-top: 3px solid var(--pink); }
.article-body h3 { margin: 28px 0 10px; font-size: 20px; }
.article-body p, .article-body li { font-size: 16px; }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body a { color: var(--pink-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body a.button {
  color: #fff;
  text-decoration: none;
}
.article-img { width: 100%; margin: 22px 0; border-radius: var(--radius); border: 1px solid var(--line); }
.note-box, .faq-box {
  margin: 24px 0;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--pink-soft);
  border: 1px solid var(--line);
}
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: start;
}
.contact-panel__intro,
.contact-form-wrap {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.contact-panel__intro h2,
.form-success__title { font-size: 22px; }
.contact-panel__intro ul { padding-left: 1.2em; color: var(--muted); }
.contact-form { display: grid; gap: 16px; }
.form__group { display: grid; gap: 7px; }
.form__label { font-size: 14px; font-weight: 800; }
.required { color: var(--pink-dark); font-size: 11px; }
.form__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fffafc;
  font: inherit;
}
.form__input:focus {
  outline: 3px solid rgba(236, 92, 147, .18);
  border-color: var(--pink);
}
.form__textarea { resize: vertical; min-height: 150px; }
.form__note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.form__submit { width: 100%; border: 0; cursor: pointer; }
.form__submit:disabled { opacity: .72; cursor: wait; }
.form-success { display: none; text-align: center; }
.form-success.show { display: grid; gap: 12px; justify-items: center; }
.form-success__eyebrow { margin: 0; color: var(--pink-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.form-success__text { margin: 0 0 8px; color: var(--muted); }
.site-footer { padding: 34px 20px; background: #2a1823; color: #fff; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0; color: #ffd4e4; font-size: 14px; }

@media (max-width: 760px) {
  .site-header { min-height: 60px; }
  .menu-button { display: block; }
  .site-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .hero {
    min-height: clamp(420px, 58svh, 500px);
    max-height: 500px;
  }
  .hero__media img { object-position: center bottom; }
  .hero::after {
    background: linear-gradient(180deg, rgba(255,250,252,.96) 0%, rgba(255,241,246,.82) 34%, rgba(255,241,246,.18) 62%, rgba(43,24,36,.1) 100%);
  }
  .hero__content { padding: 30px 18px 0; }
  .hero h1 { max-width: 11em; font-size: 32px; line-height: 1.28; }
  .hero p:not(.eyebrow) { max-width: 20em; font-size: 14px; line-height: 1.7; margin: 10px 0 16px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .article-list { grid-template-columns: 1fr; }
  .section { padding: 42px 18px; }
  .topic-card {
    display: block;
    min-height: 0;
    padding: 0;
  }
  .topic-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(236, 92, 147, .14);
  }
  .topic-card__text { padding: 9px 10px 10px; }
  .topic-card strong { font-size: 14px; }
  .topic-card__text span { display: block; margin-top: 2px; font-size: 11px; }
  .contact-panel { grid-template-columns: 1fr; gap: 14px; }
  .contact-panel__intro,
  .contact-form-wrap { padding: 16px; }
}
