@charset "UTF-8";
/* pay.browsergamebots.com — адаптивный стиль в семействе сайтов СУИС (Moswar/MusicWars), без внешних зависимостей */

:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #23272e;
  --muted: #67707d;
  --accent: #e08a2e;
  --accent-dark: #b96f1a;
  --header-1: #0d141c;
  --header-2: #1c3a52;
  --nav-bg: #131c26;
  --border: #e3e7ec;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

picture { display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Шапка ---------- */

.site-header {
  position: relative;
  color: #fff;
  background-color: var(--header-1);
  background-image:
    linear-gradient(100deg, rgba(16, 26, 37, 0.88) 0%, rgba(24, 36, 47, 0.72) 45%, rgba(44, 74, 102, 0.55) 100%),
    url("../img/header-collage.jpg");
  background-position: center 32%, center 32%;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

/* WebP-версия фона: легче JPEG на ~50 % */
@supports (background-image: image-set(url("x") type("image/webp"))) {
  .site-header {
    background-image:
      linear-gradient(100deg, rgba(16, 26, 37, 0.88) 0%, rgba(24, 36, 47, 0.72) 45%, rgba(44, 74, 102, 0.55) 100%),
      image-set(url("../img/header-collage.webp") type("image/webp"));
  }
}

.header-inner {
  padding: 34px 20px 26px;
}

.brand-name {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.2px;
  font-weight: 700;
}

.brand-name a { color: #fff; }
.brand-name a:hover { text-decoration: none; }

.brand-tagline {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(14px, 2vw, 17px);
}

/* FAQ */

.faq-item { margin-bottom: 18px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.faq-item p { margin: 0; color: #3c4550; }

/* Пропуск навигации для клавиатуры */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.skip-link:focus { left: 0; }

/* ---------- Меню ---------- */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  box-shadow: 0 2px 10px rgba(10, 16, 22, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.4px;
  padding: 12px 0;
  cursor: pointer;
}

.nav-toggle:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 13px 18px;
  color: #c3ced9;
  font-size: 15px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-list a:hover { color: #fff; text-decoration: none; }

.nav-list a.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* ---------- Контент ---------- */

main.container { padding: 32px 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 24px;
}

/* Отступ от меню до первого блока равен отступу от последнего блока до футера */
.card:last-of-type { margin-bottom: 0; }

.page-title {
  margin: 0 0 14px;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.25;
}

.lead { color: var(--muted); font-size: 17px; margin: 0 0 18px; }

.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }

/* Подзаголовки внутри текстовых блоков (Контакты, Напомнить ключ) */
.card h2:not(.page-title) {
  margin: 26px 0 10px;
  font-size: 19px;
  line-height: 1.3;
}
.card h2:not(.page-title):first-of-type { margin-top: 20px; }

/* Список возможностей */

.features {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}

.features li {
  position: relative;
  padding-left: 26px;
  margin: 0;
}

.features li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.features.wide { grid-template-columns: 1fr; }

/* Кнопки */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 6px;
}

/* Отступ после ряда кнопок перед следующим текстом */
.btn-row + p { margin-top: 18px; }

/* Кнопка онлайн-магазина в обычной строке текста (страница «Приобрести ключ») */
.buy-line { margin: 18px 0 6px; }

.buy-line .btn { padding: 11px 22px; }


.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--accent-dark); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: rgba(232, 112, 26, 0.08); }

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

.site-footer {
  background: var(--nav-bg);
  color: #9aa7b4;
  padding: 20px 0;
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
}

.site-footer a { color: #c3ced9; }

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

@media (max-width: 720px) {
  .header-inner { padding: 24px 20px 20px; }

  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 4px 0 10px;
  }

  .nav-list.open { display: flex; }

  .nav-list a {
    border-bottom: 0;
    border-left: 3px solid transparent;
    padding: 11px 18px;
  }

  .nav-list a.active { border-left-color: var(--accent); }

  .card { padding: 20px 18px; }

  .features { grid-template-columns: 1fr; }

  .site-footer .container { flex-direction: column; }
}

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


/* ---------- Тарифы (таблица лицензий) ---------- */

.tariff-wrap { overflow-x: auto; }

.tariff {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 4px;
}

.tariff th,
.tariff td {
  border: 1px solid #ccd4de;
  padding: 12px 14px;
  text-align: center;
  vertical-align: top;
}

.tariff th {
  background: #eef1f4;
  border-color: #bcc7d3;
  font-size: 15px;
}

.tariff td a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.tariff td a:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }

/* Долларовые тарифы: короткие подписи («4$»), поэтому кнопки шире в ~1.5 раза */
.tariff--usd td a { padding: 9px 33px; }

.pay-note {
  border-left: 4px solid var(--accent);
  background: #fdf6ee;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

/* ---------- Восстановление ключа (своя форма) ---------- */

.restore-form { max-width: 520px; }

.form-label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  color: var(--text);
  border: 1px solid #ccd4de;
  border-radius: 8px;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 138, 46, 0.18);
}

.form-note {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

.form-error {
  border-left: 4px solid #d64545;
  background: #fdf1f1;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 8px;
}

/* ---------- Страницы результата оплаты ---------- */

.result-card { text-align: center; }

.result-card .result-icon { font-size: 300%; margin: 6px 0 0; }

/* ---------- Отступы и выделения на страницах тарифов ---------- */

.spacer-lines { height: 3.3em; }

.center-note {
  text-align: center;
  font-weight: 400;
  margin: 0;
}

.pay-note h2 {
  margin: 0;
  font-size: 115%;
  line-height: 1.45;
}

.footer-docs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

/* ---------- Оформление заказа (ckassa) ---------- */

.checkout-renew {
  margin: 18px 0 6px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
}

.checkout-renew summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-dark);
}

.checkout-renew[open] summary { margin-bottom: 6px; }

.checkout-renew .form-input { margin-bottom: 4px; }

/* Центрирование ряда кнопок на страницах результата */
.btn-row.center { justify-content: center; }
