@charset "UTF-8";
/* BrowserGameBots.com — портал ботов СУИС. Стиль — как у подпроектов
   moswar/musicwars.browsergamebots.com: тёмная шапка-коллаж, светлые карточки,
   один акцентный цвет. Палитра портала — сталь + янтарь. */

:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #23272e;
  --muted: #67707d;
  --accent: #cf7a2c;
  --accent-dark: #a95f1c;
  --header-1: #0e1926;
  --header-2: #1d3a52;
  --nav-bg: #16232f;
  --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; }

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

/* Как на moswar/musicwars: фиксированная высота 135 px, тёмный фон-градиент,
   текст слева, лента логотипов справа. Лента — отдельный слой внутри контейнера,
   поэтому её правый край всегда совпадает с правым краем текстового блока. */
.site-header {
  position: relative;
  color: #fff;
  background-color: var(--header-1);
  background-image: linear-gradient(100deg, #101a25 0%, #18242f 45%, #2c4a66 100%);
  height: 135px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.header-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-inner {
  position: relative;
  z-index: 2;
  padding: 0;
}

.header-art {
  position: absolute;
  /* 20 px = внутренний отступ контейнера: правый край ленты совпадает
     с правым краем текстового блока */
  right: 20px;
  top: 0;
  height: 100%;
  width: 634px;              /* пропорция 940:200 при высоте шапки 135 px */
  background-image: url("../img/header-band.png");
  background-position: right center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  /* лента — часть фона: приглушена, чтобы наезжающий текст читался */
  opacity: 0.5;
}

@supports (background-image: image-set(url("x") type("image/webp"))) {
  .header-art { background-image: image-set(url("../img/header-band.webp") type("image/webp")); }
}

.brand-name { font-size: clamp(20px, 2.4vw, 30px); }

.brand-tagline { font-size: 13.5px; line-height: 1.45; }

.brand-name {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.4vw, 30px);
  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: none;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.4;
}

/* 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; }

  .car-slide { min-height: 180px; }
  .car-slide img { max-height: 420px; }

  .car-arrow { width: 36px; height: 36px; }
  .car-arrow.prev { left: 6px; }
  .car-arrow.next { right: 6px; }

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

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

/* ---------- Карточки ботов на главной ---------- */

.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  margin: 22px 0 6px;
}

.bot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  text-align: center;
}

.bot-card-img { display: block; line-height: 0; }

.bot-card img {
  width: 158px;
  height: 145px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.bot-card .bot-name { font-weight: 700; margin: 2px 0 0; }
.bot-card .bot-note { font-size: 90%; color: var(--muted); margin: 0; }
.bot-card .bot-link { margin-top: auto; font-weight: 600; }

/* ---------- Горизонтальные ряды ботов (страница «Скачать») ---------- */

.bot-rows {
  display: grid;
  gap: 14px;
  margin: 20px 0 10px;
}

.bot-row {
  display: grid;
  grid-template-columns: 96px 1fr 210px;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--card);
}

.bot-row-logo,
.vm-tile {
  width: 96px;
  height: 88px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

/* у виртуальной машины логотип-картинка внутри цветной плитки */
.vm-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.vm-tile img { width: 84%; height: 84%; object-fit: contain; }

.vm-tile-blue { background: linear-gradient(180deg, #eaf3fb 0%, #d7e7f7 100%); border-color: #c4d8ec; }
.vm-tile-orange { background: linear-gradient(180deg, #fdf3e7 0%, #f8e5c8 100%); border-color: #ecd3ab; }

.bot-row .bot-name { margin: 0 0 4px; font-size: 105%; font-weight: 700; }
.bot-row .bot-name a { font-weight: 700; }
.bot-row .bot-note { margin: 0; color: var(--muted); font-size: 92%; line-height: 1.5; }

.bot-row-btn {
  justify-self: end;
  width: 210px;
  text-align: center;
  white-space: nowrap;
  padding: 10px 14px;
}

@media (max-width: 760px) {
  .bot-row { grid-template-columns: 72px 1fr; gap: 12px; }
  .bot-row-logo, .vm-tile { width: 72px; height: 66px; }
  .bot-row-btn { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
}

/* Заголовок раздела внутри карточки («Частые вопросы» на «Приобрести ключ») */
.section-title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 14px;
  font-weight: 700;
}

/* ---------- Таблицы тарифов ---------- */

.card table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 10px;
  background: var(--card);
}

.card th, .card td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: center;
}

.card th { background: #eef3f8; font-size: 95%; }

/* ---------- Новости ---------- */

.news-item { padding: 16px 0 14px; border-bottom: 1px solid var(--border); }
.news-item:first-of-type { padding-top: 4px; }
.news-item:last-of-type { border-bottom: 0; }

.news-item h2 {
  font-size: 112%;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--accent-dark);
}

.news-item h2 a { color: var(--accent-dark); }
.news-item h2 a:hover { color: var(--accent); text-decoration: none; }

/* дата в строке заголовка — чёрная, как просил владелец */
.news-item h2 .news-date,
.page-title .news-date { color: #000; }

.news-text { margin: 0; }
.news-text p { margin: 0 0 10px; }
.news-text p:last-child { margin-bottom: 0; }

/* Дата — в начале первой строки текста: чёрная, с тонким разделителем */
.news-date {
  color: #000;
  font-weight: 600;
  white-space: nowrap;
}

.news-sep {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 10px;
  background: #c9d1da;
  vertical-align: -0.08em;
}

/* Кнопки листания: «Прошлые» слева, «Актуальные» справа */
.news-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.news-nav-empty { display: block; }

/* ---------- Карточки ботов на главной ---------- */

.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  margin: 22px 0 6px;
}

.bot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  text-align: center;
}

.bot-card img {
  width: 158px;
  height: 145px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.bot-card .bot-name { font-weight: 700; margin: 2px 0 0; }
.bot-card .bot-note { font-size: 90%; color: var(--muted); margin: 0; }
.bot-card .bot-link { margin-top: auto; font-weight: 600; }

/* ---------- Таблицы тарифов ---------- */

.card table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 10px;
  background: var(--card);
}

.card th, .card td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: center;
}

.card th { background: #eef3f8; font-size: 95%; }

/* ---------- Новости ---------- */

.news-item { padding: 16px 0 14px; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: 0; }
.news-item h2 { font-size: 112%; margin: 0 0 6px; }
.news-item .news-date { color: var(--muted); font-size: 88%; }
.news-item p { margin: 8px 0 0; }
.news-back { margin-top: 18px; }

/* ---------- Плашка «ВНИМАНИЕ!» и отступы (как на подпроектах) ---------- */

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

.pay-note .warn { color: #ff6600; }

.spacer-lines { height: 3.3em; }

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

/* На широких экранах все пять ботов в один ряд */
@media (min-width: 1100px) {
  .bot-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Лента не должна наезжать на текст: сначала уменьшаем, потом убираем */
@media (max-width: 1120px) {
  .header-art { width: 470px; }
}

@media (max-width: 900px) {
  .header-art { display: none; }
}

@media (max-width: 760px) {
  /* на узком экране текст переносится — высоту отдаём содержимому */
  .site-header { height: auto; }
  .header-inner { padding: 16px 0; }
  .brand-name { font-size: 22px; }
  .brand-tagline { font-size: 12.5px; white-space: normal; }
}

/* Одинаковый верхний отступ до текста на всех страницах: у «сырых» h1 из
   старой разметки оставался браузерный margin, из-за чего блок текста
   начинался ниже, чем на главной и в новостях. */
.card > :first-child { margin-top: 0; }

/* Встройка тарифов с лицензионного сервера (pay.browsergamebots.com) */
.pay-embed {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

/* Заголовок страницы одинаковый везде: у «сырых» h1 из старой разметки был
   браузерный размер 32px и межстрочный 52.8px. */
.card h1 {
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 700;
}
