@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(fonts/unbounded-cyrillic-700.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(fonts/unbounded-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(fonts/unbounded-cyrillic-500.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(fonts/unbounded-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(fonts/manrope-cyrillic-400.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(fonts/manrope-cyrillic-600.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

/* Палитра бренда (label/make_label.py): PINK #FB4485, PINK_PALE #FFE3EC, INK #2B0A1A.
   --pink-deep нужен для кнопок: белый текст на #FB4485 не проходит WCAG AA. */
:root {
  --pink: #FB4485;
  --pink-deep: #C8175A;
  --pale: #FFE3EC;
  --bg: #FFF7FA;
  --ink: #2B0A1A;
  --muted: #6E4357;
  --tile: #FFE3EC;
  --radius: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C0610;
    --ink: #FFE9F1;
    --muted: #D9A9BE;
    --tile: #2B0A1A;
    --pink-deep: #FB4485;
  }
  .btn { color: #2B0A1A; }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

h1, h2 { font-family: "Unbounded", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 3.9vw, 3.4rem); line-height: 1.1; }
h1 em { font-style: normal; color: var(--pink); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.12; }
.sub { color: var(--muted); max-width: 52ch; margin-top: 14px; }

/* Кнопки: одна система, всё в pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  padding: 16px 28px; border-radius: 999px;
  background: var(--pink-deep); color: #fff;
  font: 600 16px/1 "Manrope", sans-serif; text-decoration: none;
  border: 2px solid transparent;
  transition: transform .35s var(--ease), background-color .2s, box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgb(200 23 90 / .55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, .link:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { box-shadow: none; background: var(--pale); color: #2B0A1A; border-color: #2B0A1A; }
.btn--light { background: #FFF7FA; color: #8E0F3F; }
.btn--line { background: transparent; color: #fff; border-color: #fff; }
.btn--line:hover { box-shadow: none; background: rgb(255 255 255 / .12); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Шапка */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__in { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 "Unbounded", sans-serif; letter-spacing: -0.01em; }

/* Hero: текст слева, коза справа */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; min-height: calc(100dvh - 72px); padding-top: 24px; padding-bottom: 48px; }
.lead { font-size: 19px; color: var(--muted); max-width: 40ch; margin-top: 22px; }
.hero__art { position: relative; justify-self: center; width: min(100%, 520px); }
.hero__blob { position: absolute; inset: 8% 0 0 6%; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: var(--pink); opacity: .9; }
.hero__art img { position: relative; width: 100%; max-height: 72dvh; object-fit: contain; filter: drop-shadow(0 30px 40px rgb(120 10 50 / .28)); }

/* Козы: бенто из 4 ячеек */
.goats { padding-top: 96px; padding-bottom: 96px; }
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr auto; gap: 16px; margin-top: 40px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tile); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile--tall { grid-row: span 2; background: #140308; }
.tile--tall img { position: absolute; inset: 0; object-fit: contain; }
.tile figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgb(255 247 250 / .92); color: #2B0A1A; font-weight: 600; font-size: 14px; }
.tile:not(.tile--tall):not(.tile--note) { aspect-ratio: 3 / 4; }
.tile--note { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; background: var(--pink); color: #2B0A1A; }
.tile--note p { font: 500 clamp(1rem, 1.6vw, 1.25rem)/1.35 "Unbounded", sans-serif; max-width: 26ch; }
.link { font-weight: 600; white-space: nowrap; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Брелоки: сетка из 5 фото внутри контейнера (2 крупных + 3 мелких), во втором блоке наоборот */
.words { padding-bottom: 96px; }
.shots { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px; }
.shot { grid-column: span 2; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--tile); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:nth-child(-n+2) { grid-column: span 3; }
.shots--flip .shot:nth-child(-n+2) { grid-column: span 2; }
.shots--flip .shot:nth-child(n+4) { grid-column: span 3; }

/* 18+: размытие по умолчанию (работает и без JS), JS снимает его по клику */
.shots--nsfw .shot img { filter: blur(28px) saturate(1.1); transform: scale(1.15); transition: filter .6s var(--ease), transform .6s var(--ease); }
.shots--nsfw.is-revealed .shot img { filter: none; transform: none; }
.nsfw-gate {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 12px 22px 12px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(255 247 250 / .94); color: #2B0A1A; font: 600 16px/1 "Manrope", sans-serif;
  box-shadow: 0 12px 32px -12px rgb(120 10 50 / .45);
  transition: transform .35s var(--ease), opacity .3s;
}
.nsfw-gate:hover { transform: translateY(-2px); }
.nsfw-gate:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.nsfw-gate__age { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pink-deep); color: #fff; font-size: 14px; }
@media (prefers-color-scheme: dark) { .nsfw-gate__age { color: #2B0A1A; } }
.shots--nsfw.is-revealed .nsfw-gate { opacity: 0; pointer-events: none; }

/* Всякая всячина: 2x2, левая колонка шире; правые фото растягиваются по высоте ряда */
.misc { padding-bottom: 96px; }
.misc__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 40px; }
.misc__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--tile); }
.misc__grid img:nth-child(even) { aspect-ratio: auto; height: 100%; }

/* Финал */
.final { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; margin-bottom: 56px; padding: 56px; border-radius: 32px; background: var(--pink-deep); color: #fff; }
@media (prefers-color-scheme: dark) { .final { background: #8E0F3F; } }
.final__logo { width: 168px; height: 168px; border-radius: 50%; background: #fff; }
.final p { margin-top: 10px; opacity: .9; }

.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 40px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.foot__links { display: grid; justify-items: end; gap: 4px; }
.foot a { text-underline-offset: 3px; }

/* Страница политики */
.doc { max-width: 760px; padding-top: 32px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.doc h2 { font-size: 1.2rem; margin-top: 40px; }
.doc p, .doc li { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc .meta { color: var(--muted); margin-top: 12px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }

/* Анимация: появление hero и секций */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: up .9s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .08s; }
  .hero__text > :nth-child(3) { animation-delay: .16s; }
  .hero__art { animation: pop 1.1s var(--ease) .1s both; }
  .reveal.pre { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.pre.in { opacity: 1; transform: none; }
}
@keyframes up { from { opacity: 0; transform: translateY(24px); } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }

/* Мобильная раскладка */
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .brand span { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 24px; padding-top: 16px; }
  .hero__art { width: min(100%, 380px); }
  .goats { padding-top: 64px; padding-bottom: 64px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .tile--tall { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 5; }
  .tile--note { flex-direction: column; align-items: flex-start; padding: 24px; }
  .words { padding-bottom: 64px; }
  .shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shot, .shot:nth-child(-n+2), .shots--flip .shot:nth-child(-n+2), .shots--flip .shot:nth-child(n+4) { grid-column: span 1; }
  .shot:first-child { grid-column: span 2; }
  .nsfw-gate { font-size: 14px; padding-right: 16px; }
  .misc { padding-bottom: 64px; }
  .misc__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .misc__grid img, .misc__grid img:nth-child(even) { aspect-ratio: 1; height: auto; }
  .final { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; border-radius: 24px; }
  .final__logo { width: 104px; height: 104px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot__links { justify-items: start; }
  .cta .btn { flex: 1 1 100%; }
}
