/* Лендинг портфолио (docs/16). Фирменный стиль — из презентации студии: Cairo, розовый #FF30C1, синий #3C65EA,
   тёмно-синий #090826. Все цвета и шрифты — переменные ниже: обновление стиля — правка этого блока. */
:root {
  --pf-bg: #090826;
  --pf-bg-2: #110f38;
  --pf-card: rgb(255 255 255 / 4.5%);
  --pf-card-hover: rgb(255 255 255 / 7%);
  --pf-border: rgb(255 255 255 / 9%);
  --pf-text: #f2f2f2;
  --pf-muted: #aeaacf;
  --pf-pink: #ff30c1;
  --pf-blue: #3c65ea;
  --pf-grad: linear-gradient(100deg, var(--pf-pink), var(--pf-blue));
  --pf-radius: 18px;
  --pf-font: "Cairo", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

/* Cairo — латиница, Manrope — кириллица (у Cairo её нет); файлы свои, без Google Fonts — без запросов к третьим сайтам */
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url(fonts/cairo-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 600; font-display: swap; src: url(fonts/cairo-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url(fonts/cairo-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, 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-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(fonts/manrope-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--pf-bg); color: var(--pf-text); font: 400 16px/1.55 var(--pf-font);
  background-image: radial-gradient(900px 520px at 8% -8%, rgb(255 48 193 / 20%), transparent 65%),
                    radial-gradient(900px 560px at 100% 0%, rgb(60 101 234 / 22%), transparent 60%);
  background-repeat: no-repeat;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
main, .pf-header, .pf-footer { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.pf-header { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 8px; }
.pf-logo img { display: block; width: 132px; height: auto; }
.pf-header-right { display: flex; align-items: center; gap: 12px; }
.pf-cta { text-decoration: none; padding: 8px 18px; border-radius: 999px; background: var(--pf-grad); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 6px 18px rgb(255 48 193 / 30%); }
.pf-cta:hover { filter: brightness(1.08); }
.pf-lang { display: flex; padding: 3px; border: 1px solid var(--pf-border); border-radius: 999px; background: rgb(255 255 255 / 4%); }
.pf-lang a { text-decoration: none; padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--pf-muted); }
.pf-lang a.active { background: var(--pf-grad); color: #fff; }

.pf-hero { padding: 48px 0 28px; max-width: 860px; }
.pf-hero h1 { margin: 0 0 14px; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -0.5px; text-transform: uppercase; }
.pf-hero h1::after { content: ""; display: block; width: 96px; height: 4px; margin-top: 18px; border-radius: 4px; background: var(--pf-grad); }
.pf-intro { margin: 0 0 10px; font-size: clamp(17px, 2vw, 20px); color: var(--pf-text); }
.pf-lead { margin: 0; color: var(--pf-muted); }

.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 30px; }
.pf-chip { border: 1px solid var(--pf-border); background: var(--pf-card); border-radius: 999px; padding: 6px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--pf-muted); transition: border-color .15s, color .15s; }
.pf-chip:hover { border-color: rgb(255 48 193 / 55%); color: var(--pf-text); }
.pf-chip.active { background: var(--pf-grad); border-color: transparent; color: #fff; }

.pf-section { margin-bottom: 44px; }
.pf-section[hidden] { display: none; }
.pf-section h2 { margin: 0 0 18px; font-size: 24px; font-weight: 700; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }

.pf-card { display: flex; flex-direction: column; background: var(--pf-card); border: 1px solid var(--pf-border); border-radius: var(--pf-radius); overflow: hidden; transition: transform .2s, border-color .2s, background .2s; }
.pf-card[hidden] { display: none; }
.pf-card:hover { transform: translateY(-3px); border-color: rgb(255 48 193 / 45%); background: var(--pf-card-hover); }
.pf-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.pf-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform .35s; }
.pf-card:hover .pf-media img { transform: scale(1.04); }
.pf-media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgb(9 8 38 / 85%)); pointer-events: none; }
.pf-play { position: absolute; left: 50%; bottom: 18px; z-index: 1; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px 9px 18px; border-radius: 999px; background: var(--pf-grad); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgb(255 48 193 / 35%); white-space: nowrap; transition: transform .2s; }
.pf-media:hover .pf-play, .pf-media:focus-visible .pf-play { transform: translateX(-50%) scale(1.06); }
.pf-play-icon { width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.pf-media:focus-visible { outline: 3px solid var(--pf-pink); outline-offset: -3px; }

.pf-body { padding: 16px 18px 20px; }
.pf-body h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; font-weight: 700; }
.pf-genre { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--pf-pink); }
.pf-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 15px; color: var(--pf-muted); }
.pf-points li { position: relative; padding-left: 16px; }
.pf-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--pf-grad); }
.pf-empty { padding: 60px 0; color: var(--pf-muted); font-size: 18px; }

.pf-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--pf-border); color: var(--pf-muted); font-size: 14px; }
.pf-footer a { text-decoration: none; }
.pf-footer a:hover { color: var(--pf-text); }
.pf-footer-logo { font-weight: 700; color: var(--pf-text); }
.pf-other { margin-left: auto; border: 1px solid var(--pf-border); border-radius: 999px; padding: 2px 12px; }

/* окно игры */
.pf-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgb(5 4 20 / 88%); backdrop-filter: blur(6px); }
.pf-modal[hidden] { display: none; }
body.pf-locked { overflow: hidden; }
.pf-modal-box { display: flex; align-items: center; gap: 32px; max-width: 100%; }
.pf-stage { display: grid; place-items: center; }
/* пропорции как в окне игры сервиса: 9:16 — под него делают плееблы (замечание продавца 22.10: 9:19,5 искажал) */
.pf-device { box-sizing: content-box; height: min(calc(86vh - 20px), 780px); aspect-ratio: 9 / 16; border: 10px solid #1d1a4a; border-radius: 28px; overflow: hidden; background: #0b0a12; box-shadow: 0 30px 80px rgb(0 0 0 / 55%), 0 0 0 1px rgb(255 255 255 / 8%); }
.pf-device.landscape { height: auto; width: min(64vw, 900px); aspect-ratio: 16 / 9; }
.pf-device iframe { width: 100%; height: 100%; border: 0; display: block; background: #0b0a12; }
.pf-side { width: 320px; display: grid; gap: 10px; align-content: start; }
.pf-side-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pf-grow { flex: 1; }
.pf-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--pf-border); background: var(--pf-card); cursor: pointer; font-size: 20px; line-height: 1; display: grid; place-items: center; }
.pf-icon:hover, .pf-btn:hover { border-color: var(--pf-pink); }
.pf-side h3 { margin: 0; font-size: 24px; line-height: 1.25; }
.pf-side .pf-genre { margin: 0; }
.pf-side .pf-points { font-size: 16px; }
.pf-side-actions { display: flex; gap: 8px; margin-top: 10px; }
.pf-btn { border: 1px solid var(--pf-border); background: var(--pf-card); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; }

@media (max-width: 760px) {
  main, .pf-header, .pf-footer { padding-left: 16px; padding-right: 16px; }
  .pf-logo img { width: 104px; }
  .pf-hero { padding: 28px 0 18px; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pf-body { padding: 12px 12px 14px; }
  .pf-body h3 { font-size: 16px; }
  .pf-points { font-size: 13.5px; }
  .pf-play { padding: 7px 16px 7px 13px; font-size: 14px; bottom: 12px; }
  /* на телефоне игра — на весь экран, сверху полоса с названием и кнопками */
  .pf-modal { padding: 0; place-items: stretch; background: #05040f; }
  .pf-modal-box { flex-direction: column-reverse; align-items: stretch; gap: 0; width: 100%; height: 100dvh; }
  .pf-stage { flex: 1; min-height: 0; }
  .pf-device, .pf-device.landscape { box-sizing: border-box; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
  .pf-side { width: 100%; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; padding: 8px 10px 8px 14px; background: var(--pf-bg-2); }
  .pf-side h3 { grid-column: 1; grid-row: 1; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pf-side-top { grid-column: 2; grid-row: 1; margin: 0; }
  .pf-side .pf-genre, .pf-side .pf-points, .pf-side-actions [data-act="rotate"] { display: none; }
  .pf-side-actions { grid-column: 1 / -1; margin-top: 4px; display: none; }
  .pf-icon { width: 36px; height: 36px; font-size: 18px; }
}
@media (max-width: 380px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-card, .pf-media img, .pf-play { transition: none; }
}
