:root {
  color-scheme: light;
  --bg: #e6f0ee;
  --surface: #ffffff;
  --text: #1a1f2b;
  --accent: #d6249f;
  --accent2: #e5322d;
  --ink-accent: #a31779;
  --muted: #505e63;
  --line: #cbd9d6;
  --heading: 'Futura', 'Century Gothic', 'Avenir Next', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.75; overflow-wrap: break-word; }
.page { min-height: 100vh; }
main { display: block; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
a { color: var(--ink-accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a, button { -webkit-tap-highlight-color: #f7d6ee; }
:focus-visible { outline: 3px solid var(--ink-accent); outline-offset: 5px; border-radius: 3px; }
::selection { color: var(--text); background: #f5bde4; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.7em; font-family: var(--heading); font-weight: 700; line-height: 1.17; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 3.6vw, 3.65rem); }
h2 { font-size: clamp(1.6rem, 2.45vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.45rem); }
h4, h5, h6 { font-size: 1.1rem; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.5em; }
li + li { margin-top: 0.35em; }
strong, b { font-weight: 700; }
small { font-size: 0.85em; }
hr { margin-block: 2rem; border: 0; border-top: 1px solid var(--line); }
blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--accent); background: #f7faf9; }
code, pre { font-family: ui-monospace, monospace; font-size: 0.9em; }
code { padding: 0.15em 0.3em; background: #eef4f2; border-radius: 4px; }
pre { padding: 1rem; overflow: auto; background: #eef4f2; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { padding: 0.8rem; border: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
th { background: #eef4f2; }
input, textarea, select, button { max-width: 100%; font: inherit; color: inherit; }
input, textarea, select { padding: 0.7rem; background: white; border: 1px solid #728581; border-radius: 6px; }
button, summary { cursor: pointer; }
figcaption { padding-block: 0.75rem; color: var(--muted); font-size: 0.85rem; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10; padding: 10px 18px; background: var(--surface); border: 2px solid var(--ink-accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 94px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--heading); font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -0.055em; text-decoration: none; }
.brand::before { content: ''; width: 25px; height: 25px; flex: 0 0 auto; border: 7px solid var(--accent); border-radius: 8px; box-shadow: 5px 5px 0 -2px var(--accent2); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; gap: 5px; }
.site-nav li, .footer-nav li { margin: 0; }
.site-nav a { display: block; padding: 9px 11px; color: var(--text); border-radius: 6px; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.site-nav a:hover, .site-nav a[aria-current='page'] { background: #fbe9f5; color: var(--ink-accent); }

.hero { padding-block: clamp(24px, 4vw, 54px) 18px; }
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; gap: 18px; align-items: stretch; }
.hero-text { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding: clamp(24px, 3vw, 42px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.hero-text::before { content: ''; position: absolute; top: 0; left: 32px; width: 64px; height: 4px; background: var(--accent); }
.eyebrow { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 5px 10px; border: 1px solid #efc7e3; border-radius: 5px; background: #fceef7; color: #92216c; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero h1 { grid-column: 1 / -1; margin-bottom: 24px; font-size: clamp(2rem, 3.2vw, 3.05rem); }
.lead { grid-column: 1 / -1; color: var(--muted); font-size: clamp(0.95rem, 1.1vw, 1.06rem); line-height: 1.8; margin-bottom: 26px; }
.hero-actions { grid-column: 1 / -1; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 7px; font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: background-color 160ms ease, transform 160ms ease; }
.btn-primary { color: white; background: var(--ink-accent); border-color: var(--ink-accent); }
.btn-primary::after { content: '\2197'; font-size: 1.2rem; }
.btn-primary:hover { background: #831060; transform: translateY(-2px); }
.hero-media { min-width: 0; min-height: 380px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f7f3; }
.hero-media img { height: 100%; position: absolute; inset: 0; object-position: center; }
.hero-media::after { content: ''; position: absolute; right: 22px; bottom: 22px; width: 38px; height: 8px; border-radius: 4px; background: var(--accent); box-shadow: -48px 0 0 var(--accent2), -96px 0 0 white; }

.section { padding-block: clamp(30px, 4vw, 54px); }
.section-title { max-width: 820px; }
.section > .wrap > p { max-width: 82ch; color: var(--muted); }
.section-intro { font-size: 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; counter-reset: topic; }
.card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; counter-increment: topic; transition: border-color 180ms ease, transform 180ms ease; }
.card::before { content: '0' counter(topic); display: inline-block; margin-bottom: 24px; padding: 3px 10px; color: #92216c; background: #fbe9f5; border: 1px solid #efc7e3; border-radius: 4px; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.card:nth-child(even)::before { background: #fff0ed; border-color: #f2cac6; color: #a22420; }
.card-title { font-size: clamp(1.13rem, 1.5vw, 1.4rem); line-height: 1.3; }
.card-text { color: var(--muted); font-size: 0.91rem; }
.card-link { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid #e1e9e7; font-size: 0.83rem; font-weight: 700; text-decoration: none; }
.card-link::after { content: '\2192'; font-size: 1.1rem; }
.card:hover { border-color: #be83ac; transform: translateY(-3px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.split-text, .split-media { min-width: 0; }
.split-text p { color: var(--muted); font-size: 0.96rem; }
.split-text p:last-child { margin-bottom: 0; }
.split-media { border-radius: 10px; overflow: hidden; border: 1px solid #e1e9e7; }
.split-media img { aspect-ratio: 4 / 3; }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; gap: 12px; margin: 24px 0; padding: 0; }
.fact { margin: 0; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent2); border-radius: 6px; background: var(--surface); }
.section-feature + .section > .wrap { padding-left: clamp(22px, 3vw, 40px); border-left: 3px solid var(--accent); }
.section-partners { margin-top: 12px; background: #dce8e5; border-top: 1px solid var(--line); }
.section-partners .section-title { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.partner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 26px 0 0; padding: 0; list-style: none; }
.partner { min-width: 0; margin: 0; padding: clamp(22px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.partner-link { display: block; overflow-wrap: anywhere; word-break: normal; color: #445c58; font-size: 0.8rem; line-height: 1.65; }
.partner-phrase { margin: 20px 0 10px; font-family: var(--heading); font-size: 1.13rem; font-weight: 700; line-height: 1.4; }
.partner-desc { margin: 0; color: var(--muted); font-size: 0.9rem; }

.article { padding-block: clamp(24px, 4vw, 54px) clamp(40px, 6vw, 80px); }
.article > .wrap { max-width: 960px; padding: clamp(24px, 5vw, 72px); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; }
.breadcrumb { margin-bottom: 28px; color: var(--muted); font-size: 0.8rem; }
.breadcrumb a { margin-right: 8px; color: var(--muted); }
.breadcrumb span { margin-left: 8px; }
.page-header { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.2rem); }
.prose { max-width: 72ch; margin-inline: auto; font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.85; }
.prose > p:first-child { color: #415253; font-size: 1.05em; }
.prose h2 { margin-top: 1.8em; margin-bottom: 0.8em; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.3; }
.prose h3 { margin-top: 1.7em; }
.prose .figure { margin-block: 32px; }
.figure img { border: 1px solid var(--line); border-radius: 8px; }
.prose > :last-child { margin-bottom: 0; }
.note { padding: 20px 24px; margin-block: 26px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: #fbf0f7; color: #5c3650; }
.site-footer { padding-block: 36px; border-top: 1px solid var(--line); background: #f6f9f8; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; }
.footer-note { max-width: 62ch; margin: 0; font-size: 0.8rem; color: var(--muted); }
.footer-nav ul { justify-content: flex-end; column-gap: 18px; }
.footer-nav a { display: inline-block; padding-block: 6px; color: #445650; font-size: 0.8rem; }

@media (min-width: 1450px) {
  .hero-inner { grid-template-columns: 1fr 1.1fr; }
}
@media (max-width: 1050px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav a { padding-inline: 10px; }
  .site-nav li:first-child a { padding-left: 0; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 26px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero-inner, .split, .footer-inner { grid-template-columns: 1fr; }
  .hero-media { min-height: 0; aspect-ratio: 16 / 10; }
  .hero-media img { position: static; }
  .hero h1 { max-width: 20ch; }
  .hero-text { padding: 26px; }
  .split-media img { aspect-ratio: 16 / 10; }
  .partner-list { grid-template-columns: 1fr; gap: 14px; }
  .footer-inner { gap: 22px; }
  .footer-nav ul { justify-content: flex-start; }
  .article > .wrap { padding: 26px; }
  .site-nav a { font-size: 0.8rem; }
}
@media (max-width: 440px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { gap: 10px; padding-block: 18px 12px; }
  .site-nav ul { gap: 0 5px; }
  .site-nav a { padding: 8px 6px; }
  .hero-text { padding: 22px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.2rem); }
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .card::before { margin-bottom: 16px; }
  .card-title { font-size: 1.3rem; }
  .card-link { margin-top: 8px; }
  .article > .wrap { padding: 24px 20px; }
  .page-header h1 { font-size: 1.9rem; }
  .fact-list { grid-template-columns: 1fr; }
  .btn { width: 100%; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .btn-primary:hover { transform: none; }
}
@media print {
  body { background: white; }
  .site-header, .site-footer, .skip-link, .hero-actions { display: none; }
  .wrap, .article > .wrap { width: 100%; max-width: none; padding: 0; border: 0; }
  .article { padding: 0; }
  a { color: var(--text); }
  h1, h2, h3 { break-after: avoid; }
  figure, .card, .partner { break-inside: avoid; }
}

.page-home main { padding-bottom: 0; }
.page-sub main { min-height: 60vh; }
