@font-face { font-family: "Poiret One"; src: url("fonts/poiret.woff2") format("woff2"); font-display: swap; }
:root {
  --bg: #121014; --sf: #1e1a20; --tx: #f2e9e4; --g: #c9a45c; --ac: #b3263a; --mu: #8f8690;
  --line: #3a3439; --gline: #74603f; --ink: #2a2226;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--tx); font: 400 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.poiret, h1, h2, h3 { font-family: "Poiret One", system-ui, sans-serif; font-weight: 400; }
.caps { font-family: "Poiret One", sans-serif; text-transform: uppercase; letter-spacing: .2em; }
.muted { color: var(--mu); }

/* Кнопка — контур, как в боте. Главная — шире и выше, вторичные — ссылка с подчёркиванием. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px;
  border: 1px solid var(--g); border-radius: 14px; color: var(--g); text-decoration: none;
  font: 600 16px/1 system-ui, sans-serif; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--sf); }
.btn:focus-visible, .linkish:focus-visible, button:focus-visible { outline: 1px solid var(--g); outline-offset: 4px; }
.linkish { color: var(--g); text-decoration: underline; text-decoration-color: var(--gline); text-underline-offset: 5px; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }

/* Линия с ромбом, как в боте */
.rule { display: flex; align-items: center; gap: 14px; color: var(--gline); }
.rule::before, .rule::after { content: ""; height: 1px; flex: 1; background: currentColor; }
.rule i { width: 7px; height: 7px; background: var(--g); transform: rotate(45deg); flex: none; }

/* Карта: две стороны, картинки бота со своим скруглением (CSS их не обрезает) */
.card3d { position: relative; aspect-ratio: 364 / 572; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.25,.7,.2,1); }
.card3d img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: block; user-select: none; -webkit-user-drag: none; }
.card3d .face { transform: rotateY(180deg); }
.card3d.open { transform: rotateY(180deg); }
.persp { perspective: 1400px; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mu); }
.foot b { font: 400 18px/1.2 "Poiret One", sans-serif; color: var(--tx); }

@media (prefers-reduced-motion: reduce) { .card3d { transition: none; } * { scroll-behavior: auto; } }
