/* Convoy Kings — сайт игры (playconvoykings.com). Шрифт заголовков — тот же Rubik Black, что в игре. */
@font-face { font-family: 'RKGame'; font-weight: 900; font-display: swap; src: url(/assets/RubikBlackCyr.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'RKGame'; font-weight: 900; font-display: swap; src: url(/assets/RubikBlackLat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root { --bg: #1b1208; --card: #2a1a0c; --line: #4a2d14; --gold: #ffc93c; --red: #c0161e; --txt: #f6ead8; --mut: #c9b597; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--gold); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
h1, h2, h3, .brand { font-family: 'RKGame', system-ui, sans-serif; font-weight: 900; letter-spacing: .01em; line-height: 1.15; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(27,18,8,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--txt); text-decoration: none; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b { color: var(--gold); font-weight: 900; }
.menu { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.menu a { color: var(--txt); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover { color: var(--gold); }

.hero { position: relative; min-height: 560px; display: flex; align-items: flex-end;
  background: #2b1208 url(/assets/hero.webp) center 30% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,18,8,0) 35%, rgba(27,18,8,.85) 75%, var(--bg)); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 40px; text-align: center; }
.hero-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.hero h1 { font-size: clamp(38px, 7vw, 68px); margin: 12px 0 6px; color: var(--gold);
  text-shadow: 0 3px 0 #7a2b06, 0 6px 18px rgba(0,0,0,.7); }
.hero p.lead { text-shadow: 0 2px 6px rgba(0,0,0,.9); font-size: clamp(18px, 2.4vw, 22px); margin: 0 auto 22px; max-width: 640px; }

.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 190px; padding: 10px 18px;
  border-radius: 12px; background: #000; border: 1px solid #555; color: #fff; text-decoration: none; }
.store small { font-size: 12px; opacity: .8; }
.store span { font-size: 19px; font-weight: 700; }
.soon { margin-top: 10px; color: var(--mut); font-size: 14px; }

section { padding: 56px 0; }
section h2 { font-size: clamp(28px, 4vw, 40px); text-align: center; margin: 0 0 28px; color: var(--gold); }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.feat h3 { margin: 0 0 6px; font-size: 20px; }
.feat p { margin: 0; color: var(--mut); }

.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.shots img { flex: 0 0 auto; width: 230px; border-radius: 22px; border: 2px solid var(--line); scroll-snap-align: center; }

.note { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; color: var(--mut); font-size: 15px; }

.doc { padding: 40px 0 60px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 6px; color: var(--gold); }
.doc h2 { font-size: 22px; margin: 34px 0 8px; color: var(--txt); text-align: left; }
.doc .updated { color: var(--mut); margin-top: 0; }
.doc li { margin: 4px 0; }
.mailbox { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(14px, 4.1vw, 22px); padding-left: 16px; padding-right: 16px; font-weight: 700; padding: 12px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }
details p { color: var(--mut); margin: 8px 0 2px; }
.ru { margin-top: 46px; padding-top: 10px; border-top: 1px solid var(--line); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--mut); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer a { color: var(--mut); }
footer .copy { margin-left: auto; }

@media (max-width: 640px) {
  .menu { gap: 12px; } .menu a { font-size: 14px; }
  .brand span { display: none; }
  .hero { min-height: 600px; background-size: auto 340px; background-position: 50% 0; background-color: var(--bg); }
  .hero::after { background: linear-gradient(180deg, rgba(27,18,8,0) 0, rgba(27,18,8,0) 200px, var(--bg) 330px); }
  .hero .wrap { padding-bottom: 24px; }
  footer .copy { margin-left: 0; }
}
