:root {
  color-scheme: light;
  --navy: #182635;
  --navy-soft: #3c4d61;
  --coral: #f2604c;
  --coral-dark: #d74634;
  --coral-soft: #fff2ee;
  --surface: #f7f7f8;
  --line: #e2e5ea;
  --white: #fff;
  --text: #17202a;
  --muted: #667283;
  --radius: 20px;
  --shadow: 0 14px 34px rgba(24, 38, 53, .08);
  font-family: "Inter", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip { position: fixed; left: 12px; top: -100px; z-index: 10; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute!important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header {
  min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px;
  padding: 12px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; color: var(--navy); }
.brand span { width: 13px; height: 13px; border-radius: 50%; background: var(--coral); box-shadow: 8px 4px 0 var(--navy); }
.site-header nav { display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px); }
.site-header nav a { text-decoration: none; color: var(--navy-soft); font-size: 15px; font-weight: 650; }
.site-header nav a:hover, .site-header nav a:focus { color: var(--navy); }
.nav-cta { white-space: nowrap; }

main { min-height: calc(100vh - 300px); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, 46vw); gap: clamp(28px, 5vw, 78px); align-items: center; padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 72px) clamp(40px, 6vw, 76px); }
h1 { color: var(--navy); font-size: clamp(42px, 5.7vw, 79px); line-height: 1.01; letter-spacing: -.05em; margin: 0 0 20px; }
h1 br + br { display: none; }
.hero p { max-width: 560px; color: var(--muted); font-size: 20px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 12px 23px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; font-weight: 760; font-size: 15px; }
.button.primary { background: var(--coral); color: #fff; box-shadow: 0 10px 22px rgba(242,96,76,.22); }
.button.primary:hover { background: var(--coral-dark); }
.button.ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.button.dark { background: var(--navy); color: #fff; }
.text-link { color: var(--coral-dark); font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.principles { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.principles div { padding: 18px 16px 0 0; }
.principles dt { color: var(--navy); font-weight: 780; }
.principles dd { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.belly-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.belly-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); }
.belly-card > div { padding: 14px 16px 17px; display: grid; gap: 2px; }
.belly-card strong { color: var(--navy); }
.belly-card span { color: #b74434; font-size: 14px; }
.preview:nth-child(odd) { transform: translateY(0); }
.preview:nth-child(even) { transform: translateY(18px); }
.consent-band { background: var(--coral-soft); margin: 0 clamp(20px, 5vw, 72px) 70px; border-radius: 28px; padding: 34px clamp(22px, 4vw, 52px); max-width: 1240px; }
.consent-band h2, .page-head h1, .prose h1, .upload-frame h1 { color: var(--navy); letter-spacing: -.035em; margin: 0; }
.consent-band h2 { font-size: clamp(24px, 3vw, 36px); }
.consent-band p { max-width: 680px; color: var(--navy-soft); }

.page-head, .gallery, .prose, .empty-state { width: min(1240px, calc(100% - 40px)); margin: 46px auto 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.filters { display: flex; gap: 8px; }
.filters input { width: 240px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; }
.segmented { width: min(1240px, calc(100% - 40px)); margin: 20px auto; display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.segmented a { padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.segmented a.active { background: #fff; color: var(--navy); box-shadow: 0 3px 10px rgba(24,38,53,.08); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 70px; }
.card-meta p { margin: 6px 0 0; }
.stars { color: var(--coral); letter-spacing: 3px; }
.count, .already-rated { color: var(--muted); font-size: 14px; }
.rate-form, .report-form { padding: 0 16px 17px; }
.rate-form fieldset, .consents { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.rate-form legend, .consents legend { font-weight: 780; color: var(--navy); padding: 0; }
.star-input { display: flex; gap: 3px; }
.star-input label { cursor: pointer; }
.star-input input { position: absolute; opacity: 0; }
.star-input span[aria-hidden] { font-size: 25px; color: #c8ccd3; }
.star-input input:checked + span[aria-hidden], .star-input input:focus-visible + span[aria-hidden] { color: var(--coral); }
.star-input input:focus-visible + span[aria-hidden] { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 3px; }
.rate-form button, .report-form button { width: 100%; margin-top: 4px; min-height: 43px; }
.report-form { border-top: 1px solid var(--line); padding: 10px 16px 15px; }
.report-form summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 720; color: var(--muted); }
.report-form summary::after { content: "+"; float: right; font-weight: 800; }
.report-form[open] summary::after { content: "–"; }
.report-form form { display: grid; gap: 8px; margin-top: 9px; }
.report-form label { font-size: 13px; font-weight: 720; color: var(--muted); }
.report-form input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 14px; }

.upload-grid { display: grid; grid-template-columns: minmax(320px, 43%) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); width: min(1160px, calc(100% - 40px)); margin: 50px auto 72px; align-items: start; }
.upload-frame { border: 2px dashed #c8ccd3; border-radius: 28px; padding: 30px; background: #fff; text-align: center; }
.upload-frame h1 { font-size: clamp(29px, 3vw, 43px); margin-bottom: 8px; }
.upload-frame > p { color: var(--muted); }
.upload-preview { margin-top: 20px; aspect-ratio: 1; border-radius: var(--radius); background: repeating-linear-gradient(135deg, #fff, #fff 20px, var(--surface) 20px, var(--surface) 40px); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.upload-preview img { width: 100%; height: 100%; object-fit: contain; }
.form-panel { display: grid; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 3vw, 38px); box-shadow: var(--shadow); }
.form-panel label:not(.consents label) { font-size: 13px; font-weight: 750; color: var(--navy); margin-top: 8px; }
.form-panel input:not([type="checkbox"]) { border: 1px solid var(--line); border-radius: 13px; min-height: 48px; padding: 12px 14px; font: inherit; background: #fff; }
.form-panel input[type="file"] { padding: 10px; }
.consents { margin: 12px 0 3px; }
.consents label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--navy-soft); font-weight: 500; }
.consents input { width: 18px; height: 18px; accent-color: var(--coral); margin: 2px 0 0; }
.form-panel button { margin-top: 6px; }
.note { color: var(--muted); font-size: 14px; text-align: center; margin: 0; }
.prose, .empty-state { max-width: 780px; padding-bottom: 70px; }
.prose h1, .empty-state h1 { font-size: clamp(36px, 5vw, 58px); }
.prose h2 { color: var(--navy); margin-bottom: 8px; }
.prose li { margin: 7px 0; color: var(--navy-soft); }
.warning { background: var(--coral-soft); border-left: 5px solid var(--coral); padding: 15px 18px; border-radius: 12px; }
.empty { width: min(1240px, calc(100% - 40px)); margin: 0 auto 70px; color: var(--muted); }
.empty-state { text-align: center; }
.flash { width: min(1240px, calc(100% - 40px)); margin: 22px auto 0; padding: 14px 17px; border-radius: 14px; font-weight: 650; }
.flash.success { background: #eef8f0; color: #28633b; }
.flash.error { background: var(--coral-soft); color: #992f23; }
footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 30px; padding: 36px clamp(20px, 5vw, 72px) 46px; color: var(--muted); }
footer strong { color: var(--navy); }
footer p { margin: 6px 0 0; }
footer nav { display: flex; align-items: flex-start; gap: 20px; }
footer a { color: var(--navy-soft); text-decoration: none; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 45px; }
  .hero-grid { max-width: 700px; }
  .gallery, .upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; grid-template-areas: "brand cta" "nav nav"; row-gap: 10px; padding-top: 10px; padding-bottom: 14px; }
  .brand { grid-area: brand; }
  .site-header nav { grid-area: nav; justify-content: flex-start; flex-wrap: wrap; gap: 8px 14px; }
  .nav-cta { grid-area: cta; padding: 10px 15px; }
  .principles, .hero-grid, .gallery, .upload-grid, .page-head { grid-template-columns: 1fr; }
  .page-head { display: grid; align-items: start; }
  .filters { width: 100%; }
  .filters input { flex: 1; width: auto; }
  .preview:nth-child(even) { transform: none; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto!important; transition: none!important; }
}
