/* Лендинг Domino Az.
   Палитра взята из самой игры: зелёное сукно, тёмное дерево, золото, кремовый текст —
   сайт и приложение должны читаться как одно целое. */

:root {
  --felt-deep: #0c2418;
  --felt: #123a27;
  --felt-light: #1a4d34;
  --wood: #3d2717;
  --wood-light: #5c3d24;
  --gold: #d4a34a;
  --gold-bright: #f0c674;
  --cream: #f3e9d2;
  --muted: #9fb3a4;
  --line: rgba(212, 163, 74, 0.22);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--felt-deep);
  background-image: url("felt.png?v=7");
  background-repeat: repeat;
  background-size: 260px auto;
  color: var(--cream);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Тёмная вуаль поверх текстуры: без неё сукно перебивает текст. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 13, 0.82), rgba(6, 20, 13, 0.94));
  pointer-events: none;
  z-index: -1;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0; }

/* ------------------------------------------------------------------ шапка */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 28, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

nav { margin-left: auto; display: flex; gap: 22px; }
nav a { color: var(--muted); font-size: 0.95rem; }
nav a:hover { color: var(--gold-bright); text-decoration: none; }

.langs { display: flex; gap: 6px; }
.langs button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.langs button:hover { color: var(--cream); }
.langs button[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #23180a;
}

/* ------------------------------------------------------------------ герой */

.hero { padding: 72px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, var(--cream), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 18px 0 28px;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 33ch;
}

/* Бейджи магазинов: пока неактивные — игра ещё не опубликована. */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  cursor: default;
  opacity: 0.85;
}
.badge svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.badge b { display: block; color: var(--cream); font-size: 0.95rem; font-weight: 600; }
.badge span { font-size: 0.74rem; letter-spacing: 0.4px; text-transform: uppercase; }

.soon {
  position: absolute;
  top: -9px;
  right: 10px;
  background: var(--gold);
  color: #23180a;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ------------------------------------------------------------------ формы */

.form-card {
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.form-card h3 { font-size: 1.02rem; margin-bottom: 12px; color: var(--gold-bright); }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }

input, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--cream);
  font: inherit;
  font-size: 0.97rem;
}
input::placeholder, textarea::placeholder { color: #7f9285; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.09);
}
textarea { min-height: 118px; resize: vertical; }

/* Ловушка для ботов: человек её не видит и не заполнит. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

button.cta {
  flex: 0 0 auto;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font: inherit;
  font-weight: 700;
  color: #23180a;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 6px 18px rgba(212, 163, 74, 0.22);
  transition: transform 0.12s, box-shadow 0.12s;
}
button.cta:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(212, 163, 74, 0.32); }
button.cta:active { transform: translateY(0); }
button.cta[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.45;
}
.consent input { width: auto; flex: none; margin-top: 3px; accent-color: var(--gold); }

.note { margin-top: 10px; font-size: 0.88rem; min-height: 1.2em; }
.note.ok { color: #7fd6a5; }
.note.err { color: #ef9a9a; }

/* ------------------------------------------------------------------ кости в герое */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  justify-items: center;
}

.tile {
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1 / 2;
  background: linear-gradient(160deg, #fdf8ec, #e6dcc6);
  border-radius: 12px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  padding: 9px;
  display: grid;
  grid-template-rows: 1fr 2px 1fr;
  gap: 7px;
  animation: float 5.5s ease-in-out infinite;
}
.tile:nth-child(2) { animation-delay: -1.3s; }
.tile:nth-child(3) { animation-delay: -2.6s; }
.tile:nth-child(4) { animation-delay: -3.9s; }

.tile .divider { background: rgba(0, 0, 0, 0.22); border-radius: 2px; }

.half {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 4px;
}
.pip {
  background: #24303a;
  border-radius: 50%;
  width: 100%;
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.25);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

/* ------------------------------------------------------------------ секции */

section { padding: 62px 0; }
section + section { border-top: 1px solid rgba(212, 163, 74, 0.12); }

.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin-bottom: 10px;
  color: var(--cream);
}
.section-lead { color: var(--muted); margin: 0 0 30px; max-width: 60ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(212, 163, 74, 0.45); }
.card .ico { font-size: 1.7rem; line-height: 1; margin-bottom: 12px; }
.card h3 { font-size: 1.08rem; margin-bottom: 7px; color: var(--gold-bright); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------------ скриншоты */

.shots { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }

.phone {
  width: 232px;
  /* 9/16 — ровно пропорция игровых кадров (1080x1920). Взяли бы рамку выше,
     object-fit: cover срезал бы у скриншота верх и низ. */
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  border: 9px solid #16110a;
  background: linear-gradient(160deg, var(--felt-light), var(--felt-deep));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .ph {
  color: rgba(243, 233, 210, 0.35);
  font-size: 0.85rem;
  text-align: center;
  padding: 0 18px;
}
/* Вырез под фронталку — деталь, без неё рамка выглядит как рамка, а не телефон. */
.phone::before {
  content: "";
  position: absolute;
  top: 9px;
  width: 74px;
  height: 15px;
  border-radius: 999px;
  background: #16110a;
}

/* ------------------------------------------------------------------ поддержка */

.faq { display: grid; gap: 14px; max-width: 760px; }
.faq details {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--cream);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 11px 0 0; color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------------ подвал */

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
}
.foot .spacer { margin-left: auto; }

/* ------------------------------------------------------------------ адаптив */

@media (max-width: 860px) {
  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .tagline { max-width: none; }
  nav { display: none; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .tile { max-width: 88px; }
  section { padding: 46px 0; }
}

@media (max-width: 420px) {
  .bar { gap: 10px; padding: 10px 14px; }
  .brand { font-size: 0.95rem; }
  .badge { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { animation: none; }
  .card:hover, button.cta:hover { transform: none; }
}
