/* ALGA GAME · лендинг. Палитра взята из приложения: кремовая стена,
   тёмно-коричневые плашки, золотой кант, бирюза логотипа. */
:root {
  --cream: #f4e6cf;
  --cream-hi: #fbf2e1;
  --ink: #2e2014;
  --ink-soft: #6b5640;
  --gold: #c79a48;
  --teal: #17788f;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; min-height: 100%;
  display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 70% 20%, var(--cream-hi), var(--cream) 60%) fixed;
  color: var(--ink);
  font: 17px/1.55 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

/* ---------- шапка ---------- */
.top {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: flex-end; padding: 20px 24px 0;
}
.langs { display: flex; gap: 6px; }
.langs button {
  border: 1px solid rgba(46, 32, 20, .22);
  background: transparent; color: var(--ink-soft);
  font: inherit; font-size: 13px; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.langs button.on { background: var(--ink); color: var(--cream-hi); border-color: var(--ink); font-weight: 700; }

/* ---------- герой ---------- */
.hero {
  flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 32px 24px 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.logo { width: 120px; margin-bottom: 28px; }
h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -.01em;
}
.lead { margin: 0 0 36px; max-width: 420px; font-size: 19px; color: var(--ink-soft); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.store {
  display: flex; align-items: center; gap: 12px;
  min-width: 184px; padding: 10px 20px 10px 16px;
  background: var(--ink); color: var(--cream-hi);
  border-radius: 14px; text-decoration: none;
  box-shadow: 0 8px 22px rgba(46, 32, 20, .22);
  transition: transform .12s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: 11px; opacity: .75; }
.store b { font-size: 19px; font-weight: 600; }

.web {
  display: inline-block; color: var(--teal); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid rgba(23, 120, 143, .35);
}
.web::after { content: " →"; }
.web:hover { border-bottom-color: var(--teal); }

/* ---------- телефоны ---------- */
.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px;
  padding: 9px; border-radius: 44px;
  background: #1b130c;
  box-shadow: 0 0 0 1.5px #4a3a2a inset, 0 30px 60px rgba(46, 32, 20, .32);
}
.phone::before { /* вырез Dynamic Island */
  content: ""; position: absolute; z-index: 1;
  top: 19px; left: 50%; width: 72px; height: 21px; margin-left: -36px;
  border-radius: 999px; background: #1b130c;
}
.phone img { border-radius: 36px; }
.phone-back { left: 4%; top: 0; transform: rotate(-5deg); }
.phone-front { right: 4%; top: 46px; transform: rotate(4deg); }

/* ---------- подвал ---------- */
footer {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 22px 24px 28px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(46, 32, 20, .12);
  font-size: 14px; color: var(--ink-soft);
}
.copy { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: inherit; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding: 24px 20px 56px; text-align: center; }
  .logo { margin: 0 auto 24px; }
  .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .phones { width: 100%; max-width: 400px; height: 470px; margin: 0 auto; }
  .phone { width: 200px; padding: 7px; border-radius: 36px; }
  .phone::before { top: 15px; width: 58px; height: 17px; margin-left: -29px; }
  .phone img { border-radius: 29px; }
  .phone-back { left: 0; }
  .phone-front { right: 0; top: 36px; }
  footer { justify-content: center; text-align: center; }
  .foot-links { justify-content: center; }
}
@media (max-width: 400px) {
  .store { width: 100%; justify-content: center; }
  .phones { height: 400px; }
  .phone { width: 168px; }
}
