/* Pockatoo — общий стиль сайта. Цвета — из логотипа (design/pockatoo/README.md). */
:root {
  --paper: #fbf7f2;
  --surface: #ffffff;
  --ink: #251a24;
  --muted: #6b6270;
  --line: #ebe2d8;
  --orange: #ee4d28;
  --orange-ink: #ffffff;
  --orange-soft: #fde4da;
  --seam: #e8c9b9;
  --shadow: 0 1px 2px rgb(36 29 38 / .05), 0 14px 34px -12px rgb(36 29 38 / .16);
  --radius: 26px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1221;
    --surface: #251f28;
    --ink: #f4eef0;
    --muted: #ada3b0;
    --line: #342c37;
    --orange: #ff542f;
    --orange-ink: #1a1221;
    --orange-soft: #3a2420;
    --seam: #4a3a3e;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 var(--font); background: var(--paper); color: var(--ink); }
a { color: inherit; }
img { display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

/* шапка */
.top { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.top nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px; font-weight: 600; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0;
  background: var(--orange); color: var(--orange-ink); text-decoration: none; font: 700 16px/1 var(--font);
  transition: transform .15s ease, box-shadow .15s ease; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px var(--orange); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); pointer-events: none; }

/* первый экран */
.hero { padding-top: 40px; padding-bottom: 88px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 66px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 800; }
.hero h1 .accent { color: var(--orange); }
.hero .lead { color: var(--muted); font-size: 19px; margin: 0 0 30px; max-width: 32em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* pocket + cockatoo */
.equation { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 26px; padding: 8px 16px;
  border: 1.5px dashed var(--seam); border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); }
.equation b { color: var(--ink); font-weight: 800; }
.equation b span { color: var(--orange); }
.equation i { font-style: normal; opacity: .6; }

/* сцена с логотипом: какаду выглядывает из кармана */
.stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.stage::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: var(--orange-soft); }
.stage::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 2px dashed var(--seam); }
.stage .logo { position: relative; z-index: 1; width: 66%; height: 66%; object-fit: contain; animation: peek 1.1s cubic-bezier(.2, .9, .3, 1.25) both; }
.stage .logo:hover { animation: wiggle .6s ease; }
@keyframes peek { from { transform: translateY(18%) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wiggle { 30% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); } }

/* разделы */
section { padding-bottom: 88px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -.03em; font-weight: 800; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head a { color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-head a:hover { color: var(--orange); }

/* карточки-карманы */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden; }
/* обложка-карман: иконка проекта сидит в кармане и выглядывает при наведении — как какаду в логотипе */
.pocket { position: relative; height: 200px; margin: 12px 12px 0; border-radius: 18px; overflow: hidden;
  display: flex; justify-content: center; background: var(--cover, var(--orange)); }
.pocket img { position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 26px; margin-top: 40px;
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.35); box-shadow: 0 10px 24px -8px rgb(0 0 0 / .45); }
.pocket .flap { /* передняя стенка кармана со швом */
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 46%;
  background: color-mix(in srgb, var(--cover, var(--orange)) 82%, #000);
  box-shadow: 0 -6px 14px -6px rgb(0 0 0 / .35); }
.pocket .flap::before { content: ""; position: absolute; inset: 10px 12px 12px; border: 2px dashed rgb(255 255 255 / .32); border-radius: 4px 4px 12px 12px; }
.card:hover .pocket img, .card:focus-within .pocket img { transform: translateY(-28px) rotate(-4deg); }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .kicker { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.card h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.card .actions { margin-top: auto; padding-top: 12px; }

/* сайт игр */
.badge { margin-left: 2px; padding: 3px 8px 4px; border-radius: 8px; background: var(--orange); color: var(--orange-ink);
  font-size: 13px; line-height: 1; letter-spacing: .02em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { padding: 7px 14px; border-radius: 999px; border: 1.5px dashed var(--seam); font-weight: 700; font-size: 15px; color: var(--muted); }
.games-hero { grid-template-columns: 1fr 1fr; }
.card.featured .pocket { height: 240px; }
.card.featured h2 { margin: 0; font-size: 30px; letter-spacing: -.02em; font-weight: 800; }
.card.teaser { background: transparent; box-shadow: none; border: 2px dashed var(--seam); justify-content: center; min-height: 260px; }
.card.teaser .body { justify-content: center; text-align: center; align-items: center; }

/* о студии */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.facts div { padding-top: 16px; border-top: 2px dashed var(--seam); }
.facts h3 { margin: 0 0 6px; font-size: 19px; }
.facts p { margin: 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: 15px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; gap: 24px; }
  .stage { max-width: 300px; width: 100%; margin: 0 auto; order: -1; }
  .top nav a { margin-left: 14px; }
  .top nav a.hide-sm { display: none; }
  .section-head { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .logo, .stage .logo:hover { animation: none; }
  .pocket img, .btn { transition: none; }
  .card:hover .pocket img, .card:focus-within .pocket img { transform: none; }
}
