/* Founders Games — каталог. Палитра и форма из DESIGN.md: плоские цвета, без градиентов. */
@font-face{
  font-family:'Monocraft';
  src:url('/fonts/Monocraft-Bold.woff') format('woff');
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
:root{
  --bg:#0F0F10; --surface:#181819; --line:#2B2B2E;
  --text:#FFFFFF; --text-2:#CFCFD4; --text-3:#A1A1A8; --dot:#4A4A50;
  --accent:#FF8A3D; --accent-hover:#FFA35E; --accent-text:#FFB27A; --on-accent:#111111;
  --r-lg:28px; --r-md:18px; --r-sm:999px;
  --display:'Monocraft',system-ui,sans-serif; --body:Manrope,system-ui,sans-serif;
}
*{box-sizing:border-box}
body.games-home{
  margin:0;
  background-color:var(--bg);
  color:var(--text);
  font-family:var(--body);
  line-height:1.5;
}
.games-home a{color:var(--accent-text)}
.games-home a:hover{color:var(--text)}
.games-home :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.games-home h1,.games-home h2,.stat b,.logo{
  font-family:var(--display);
  -webkit-font-smoothing:none;
  -moz-osx-font-smoothing:grayscale;
}
.games-home h1,.games-home h2{margin:0;line-height:1.25}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 28px;border-radius:var(--r-sm);background:var(--accent);color:var(--on-accent);font-weight:700;text-decoration:none;border:0;cursor:pointer;font-family:inherit;font-size:16px}
.games-home a.btn,.games-home a.btn:hover{color:var(--on-accent)}
.btn:hover{background:var(--accent-hover)}
.btn.is-disabled{opacity:.45;pointer-events:none}
.chip{min-height:44px;padding:0 18px;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--surface);color:var(--text-2);font:500 14px var(--body);cursor:pointer}
.chip:hover{border-color:var(--accent);color:var(--text)}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}

header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:20px;padding-bottom:20px}
.header-end{display:flex;flex-wrap:wrap;align-items:center;gap:20px 28px}
.logo{display:flex;align-items:center;gap:12px;color:var(--text);text-decoration:none;font:700 18px/1 var(--display)}
.games-home a.logo,.games-home a.logo:hover{color:var(--text)}
.logo img{width:40px;height:40px;border-radius:10px;display:block;object-fit:cover}

.section-navigation{
  position:fixed;right:28px;top:50%;transform:translateY(-50%);
  z-index:999;
}
.nav-dots{display:flex;flex-direction:column;gap:16px;align-items:center}
.nav-dot{
  width:14px;height:14px;padding:0;border-radius:50%;
  border:1px solid var(--line);background:transparent;cursor:pointer;position:relative;
}
.nav-dot:hover{border-color:var(--accent-text)}
.nav-dot.active{border-color:var(--accent);background:var(--accent)}
.nav-dot-tooltip{
  position:absolute;right:24px;top:50%;transform:translateY(-50%);
  padding:8px 14px;border-radius:12px;border:1px solid var(--line);
  background:var(--surface);color:var(--text);font:500 13px var(--body);
  white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;
}
.nav-dot:hover .nav-dot-tooltip{opacity:1;visibility:visible}

#language-switcher-placeholder{display:flex;align-items:center}
.language-switcher-dropdown{position:relative;z-index:60}
.language-switcher-dropdown .lang-trigger{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  min-height:32px;padding:0 10px;border-radius:999px;
  border:1px solid var(--line);background:var(--surface);color:var(--text-2);
  font:500 12px var(--body);line-height:1;cursor:pointer;
}
.language-switcher-dropdown .lang-trigger:focus,
.language-switcher-dropdown .lang-trigger:focus-visible{
  outline:none;
  border-color:#3a3a3e;
}
.language-switcher-dropdown .lang-trigger:hover{
  border-color:#3a3a3e;
  color:var(--text);
  background:#1c1c1e;
}
.language-switcher-dropdown.open .lang-trigger{
  border-color:#3a3a3e;
  color:var(--text);
  background:#1c1c1e;
}
.language-switcher-dropdown .lang-chevron{font-size:8px;line-height:1;opacity:.75}
.language-switcher-dropdown.open .lang-chevron{transform:rotate(180deg)}
.language-switcher-dropdown .lang-menu{
  position:absolute;top:calc(100% + 6px);right:0;min-width:max(100%,112px);
  padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:14px;z-index:70;
}
.language-switcher-dropdown .lang-menu[hidden]{display:none}
.language-switcher-dropdown .lang-option{
  display:flex;align-items:center;justify-content:flex-start;width:100%;
  min-height:32px;padding:0 10px;border:0;border-radius:10px;
  background:transparent;color:var(--text-2);font:500 12px var(--body);cursor:pointer;
}
.language-switcher-dropdown .lang-option:hover{color:var(--text);background:#222224}
.language-switcher-dropdown .lang-option.active{color:var(--on-accent);background:var(--accent);font-weight:700}

.hero{
  position:relative;
  height:480px;
  border-radius:var(--r-lg);
  background:var(--surface);
  border:1px solid var(--line);
  overflow:hidden;
}
.hero-bg{position:absolute;inset:0}
.hero-fallback,.hero-video,.hero-shade{position:absolute;inset:0;width:100%;height:100%}
.hero-fallback{background:#181819 center/cover no-repeat}
.hero-video{object-fit:cover;opacity:0;transition:opacity .55s ease}
.hero-video.is-front{opacity:1}
.hero-shade{background:rgba(0,0,0,.32)}
.hero-stage{
  position:relative;
  z-index:1;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:28px;
  transition:opacity .38s ease, transform .38s ease;
}
.hero-stage.is-out-next{opacity:0;transform:translateX(-36px)}
.hero-stage.is-out-prev{opacity:0;transform:translateX(36px)}
.hero-stage.is-prep-next{opacity:0;transform:translateX(36px);transition:none}
.hero-stage.is-prep-prev{opacity:0;transform:translateX(-36px);transition:none}
.hero-text{
  width:min(500px,56%);
  max-height:calc(100% - 8px);
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  padding:28px;
  border-radius:20px;
  border:1px solid var(--line);
  background:rgba(15,15,16,.84);
}
.hero h1{
  font-size:36px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.hero p{
  margin:0;
  color:var(--text-2);
  font-size:16px;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;min-height:48px}
.games-home .hero-actions a.link{color:var(--text);font-weight:700;text-decoration:none}
.games-home .hero-actions a.link:hover{color:var(--accent-text)}
.hero-facts{display:flex;flex-wrap:wrap;gap:8px;min-height:40px}
.fact{
  display:inline-flex;align-items:center;gap:8px;
  min-height:40px;padding:0 12px;
  border-radius:var(--r-sm);border:1px solid var(--line);
  background:#181819;color:var(--text);
  font:700 14px var(--body);
}
.fact svg{width:16px;height:16px;display:block;flex:0 0 auto}
.fact b{font-weight:700}
.fact-rate,.fact-rate b{color:var(--accent-text)}
.fact-age{color:var(--text)}
.hero-icon{
  width:260px;
  height:260px;
  flex:0 0 auto;
  margin-left:auto;
  border-radius:28px;
  border:1px solid var(--line);
  object-fit:cover;
  background:var(--surface);
  display:block;
}
.controls{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px}
.dot{width:44px;height:44px;background:none;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center}
.dot span{display:block;height:10px;width:10px;border-radius:5px;background:var(--dot)}
.dot[aria-current="true"] span{width:28px;background:var(--accent-text)}

.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-top:32px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:22px}
.stat b{display:block;font:700 34px var(--display)}
.stat span{color:var(--text-3);font-size:14px}

.catalog{margin-top:72px}
.catalog-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:28px}
.catalog h2,.kit h2{font-size:34px}
.filters{display:flex;flex-wrap:wrap;gap:10px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}
@media (min-width:1024px){
  .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
.card{
  position:relative;
  display:block;
  aspect-ratio:16 / 9;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-md);
  overflow:hidden;
  text-decoration:none;
  color:var(--text);
  transition:transform .28s ease,border-color .28s ease;
}
.games-home a.card,.games-home a.card:hover{color:var(--text)}
.card:hover,.card:focus-visible{transform:translateY(-6px);border-color:var(--accent);outline:none}
.card[hidden]{display:none}
.art{
  position:absolute;inset:0;
  background-color:var(--surface);
  background-size:cover;
  background-position:center;
  transition:transform .45s ease;
}
.card:hover .art,.card:focus-visible .art{transform:scale(1.06)}
.card-hover{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  display:flex;align-items:flex-end;
  padding:18px 16px 14px;
  background:#0F0F10;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:none;
}
.card:hover .card-hover,
.card:focus-visible .card-hover{
  opacity:.92;
  transform:translateY(0);
}
.card-title{
  font-weight:700;
  font-size:15px;
  line-height:1.3;
  color:#fff;
}

.kit .box{margin-top:80px;border-radius:var(--r-lg);border:1px solid var(--line);background:var(--surface);padding:48px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:28px}
.kit h2{margin-bottom:12px}
.kit p{margin:0;color:var(--text-2);font-size:17px;max-width:620px}
footer .wrap{margin-top:80px;padding-top:32px;padding-bottom:48px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;color:var(--text-3);font-size:14px}
.games-home footer a{color:var(--accent-text);text-decoration:none}
.games-home footer a:hover{color:var(--text)}

@media (max-width:1023px){
  .section-navigation{display:none}
}
@media (max-width:768px){
  header .wrap{padding-top:14px;padding-bottom:14px}
  .logo{font-size:16px;gap:10px}
  .logo img{width:34px;height:34px;border-radius:8px}

  .hero{
    height:auto;
    display:flex;
    flex-direction:column;
    border-radius:22px;
  }
  .hero-bg{
    position:relative;
    inset:auto;
    height:220px;
    flex:0 0 auto;
  }
  .hero-shade{background:rgba(0,0,0,.22)}
  .hero-stage{
    height:auto;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:0;
    padding:0;
  }
  .hero-icon{
    order:-1;
    width:92px;
    height:92px;
    border-radius:20px;
    margin:-46px 14px 0 auto;
    align-self:flex-end;
    position:relative;
    z-index:2;
  }
  .hero-text{
    width:100%;
    max-height:none;
    border:0;
    border-radius:0;
    background:var(--surface);
    padding:10px 16px 18px;
    gap:12px;
  }
  .hero h1{font-size:24px;line-height:1.2}
  .hero p{font-size:15px;-webkit-line-clamp:3}
  .hero-actions{
    gap:12px 16px;
    min-height:0;
  }
  .hero-actions .btn{
    min-height:44px;
    padding:0 22px;
    font-size:15px;
  }
  .hero-facts{gap:6px;min-height:0}
  .fact{min-height:34px;padding:0 10px;font-size:12px;gap:6px}
  .fact svg{width:14px;height:14px}
  .controls{margin-top:10px;gap:4px}
  .dot{width:36px;height:36px}
  .controls .chip{min-height:36px;padding:0 12px}

  .grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,158px),1fr));gap:12px}
  .card{aspect-ratio:1 / 1;border-radius:20px}
  .card-hover{padding:12px}
  .card-title{font-size:13px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
  .stat{padding:16px}
  .stat b{font-size:28px}
  .catalog{margin-top:48px}
  .catalog h2,.kit h2{font-size:28px}
  .catalog-head{margin-bottom:18px}
  .kit .box{margin-top:48px;padding:24px;border-radius:22px}
  .kit p{font-size:15px}
  footer .wrap{margin-top:48px;padding-top:24px;padding-bottom:32px}
}
@media (max-width:480px){
  .hero-bg{height:190px}
  .hero-icon{width:78px;height:78px;border-radius:18px;margin-top:-39px;margin-right:12px}
  .hero h1{font-size:22px}
  .hero-actions{flex-direction:column;align-items:stretch}
  .hero-actions .btn{width:100%}
  .hero-actions .link{text-align:center}
}
@media (prefers-reduced-motion:reduce){
  .games-home *{transition:none!important}
  .card:hover,.card:hover .art,.card:focus-visible .art{transform:none}
}
