/* SHIKARDOS AUDIO — сайт с нуля, 14.09.2026. Тёмный, как плеер. Без
   внешних шрифтов и библиотек: страница должна открываться мгновенно. */
:root {
  --bg: #07090c;
  --panel: #10151b;
  --line: rgba(255, 255, 255, .1);
  --text: #f3f5f7;
  --muted: #9aa5ad;
  --gold: #e4aa1b;
  --teal: #00b7b2;
  --header-height: 60px;
  --wrap: min(1120px, calc(100% - 32px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: var(--wrap); margin: 0 auto; }

/* ---- шапка ---- */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  background: rgba(7, 9, 12, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; }
.site-nav {
  margin-left: auto;
  min-width: 0; /* иначе меню не сжимается и выталкивает страницу вправо */
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); background: rgba(255,255,255,.06); }
.site-nav .nav-download { color: #111; background: var(--gold); font-weight: 700; }
.site-nav .nav-download:hover { color: #111; background: #f0bb35; }

/* ---- кнопки ---- */
.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}
.btn small { font-weight: 500; font-size: 12px; opacity: .75; margin-top: 3px; }
.btn-main { background: var(--gold); color: #111; border-color: var(--gold); }
.btn-main:hover { background: #f0bb35; }
.btn-soft { background: rgba(255,255,255,.04); }
.btn-soft:hover { background: rgba(255,255,255,.09); }
.btn-beta { border-color: rgba(0, 183, 178, .55); color: var(--teal); background: rgba(0, 183, 178, .08); }
.btn-beta:hover { background: rgba(0, 183, 178, .16); }
/* RuStore и 4PDA — фирменные кнопки со значком, как на прежнем сайте
   (Юрий 19.08: людей на форуме много, ссылка должна быть на виду). */
.btn-store {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 17px;
}
.btn-store svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn-rustore { background: linear-gradient(135deg, #2f93ff 0%, #0057e0 100%); border-color: #0057e0; }
.btn-rustore:hover { background: linear-gradient(135deg, #2f93ff 0%, #0048c2 100%); }
.btn-4pda { background: linear-gradient(135deg, #3aa0e0 0%, #1c6da8 100%); border-color: #1c6da8; }
.btn-4pda:hover { background: linear-gradient(135deg, #3aa0e0 0%, #155a8c 100%); }
/* GitHub — седьмая кнопка, во всю ширину ряда (слово Юрия 15.09.2026). */
.btn-github { grid-column: 1 / -1; background: linear-gradient(135deg, #3b434d 0%, #1f2429 100%); border-color: #3b434d; color: #fff; }
.btn-github:hover { background: linear-gradient(135deg, #4a535e 0%, #24292f 100%); }

/* ---- технологии SHIKARDOS: VULAN и CRYSTAL (слово Юрия 15.09.2026) ---- */
.tech { padding-block: 56px 8px; }
.tech > h2 { margin: 0 0 6px; font-size: clamp(26px, 3.6vw, 38px); }
.tech > p { margin: 0 0 22px; color: var(--muted); font-size: 17px; max-width: 40em; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tech-card { display: block; overflow: hidden; text-decoration: none; color: inherit; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
a.tech-card:hover { border-color: var(--gold); }
/* Эмблемы квадратные и с надписью — показываем целиком, не обрезая.
   Карточка не flex: иначе картинка тянулась на свои 1500 px высоты. */
.tech-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #000; }
.tech-card .tech-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.tech-card .tech-kicker { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tech-card h3 { margin: 0; font-size: 26px; line-height: 1.2; }
.tech-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.tech-card .tech-more { margin-top: 4px; color: var(--gold); font-weight: 700; }
@media (max-width: 760px) { .tech-grid { grid-template-columns: 1fr; } }

/* ---- первый экран ---- */
main { padding-top: var(--header-height); }

/* Птица на фоне первого экрана — как на прежнем сайте (слово Юрия 15.09):
   тот же hero-phoenix.jpg на всю ширину и та же вуаль 70 %, чтобы текст
   и кнопки читались поверх огня. */
.hero-band {
  position: relative;
  background: var(--bg) url("img/hero-phoenix.jpg") center / cover no-repeat;
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 5, .7);
}
.hero-band > .hero { position: relative; z-index: 1; }

.hero {
  padding-block: clamp(32px, 6vw, 72px) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead {
  margin: 18px 0 26px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}
/* Кнопки скачивания парами (слово Юрия 15.09): Android + бета, Windows +
   магнитола, дальше остальное. Сетка держит пары, а не ширина строки. */
.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.facts li::before { content: "✓ "; color: var(--teal); }
.hero-shot {
  justify-self: center;
  width: min(330px, 100%);
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 8px rgba(255,255,255,.02);
}

/* ---- колода козырей ---- */
.deck {
  padding-block: 24px 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card {
  padding: 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.card b {
  display: block;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -.02em;
}
.card h2 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card a { color: var(--teal); text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* ---- паспорт плеера (15.09: карточки с крупными словами — «детский сад»,
   Юрий). Строгая таблица, как техническая страница ЦАПа. ---- */
.spec-wrap { padding-block: 32px 56px; }
.spec-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 4px 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.spec dd { margin: 0; font-size: 16px; }
.spec strong { font-weight: 600; }
.spec .n { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- возможности со снимками (15.09: таблица — «не профессионально»,
   Юрий). Как у сайтов серьёзных плееров: настоящий экран крупно,
   рядом заголовок и одна строка; стороны чередуются. ---- */
.features { padding-block: 48px 72px; display: grid; gap: 88px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.feature--flip .feature-text { order: 2; }
.feature-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
.feature h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.feature-text p:not(.feature-kicker) { margin: 0; color: var(--muted); font-size: 17px; max-width: 30em; }
.feature-shot { margin: 0; justify-self: center; }
.feature-shot img {
  display: block;
  width: min(300px, 100%);
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.feature--wide { grid-template-columns: 1fr; gap: 28px; }
.feature--wide .feature-text { text-align: center; justify-self: center; }
.feature--wide .feature-text p:not(.feature-kicker) { margin-inline: auto; }
.feature--wide .feature-shot { justify-self: stretch; }
.feature--wide .feature-shot img { width: 100%; max-width: 980px; margin-inline: auto; border-radius: 18px; }
@media (max-width: 860px) {
  .features { gap: 56px; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature--flip .feature-text { order: 0; }
  .feature--wide .feature-text { text-align: left; justify-self: start; }
  .feature-shot img { width: min(260px, 100%); }
}

/* ---- полоса «Радио мира» ---- */
.band {
  margin-bottom: 56px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 20px;
  border: 1px solid rgba(0, 183, 178, .35);
  background: radial-gradient(120% 140% at 100% 0%, rgba(0,183,178,.18), transparent 60%), var(--panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); }
.band p { margin: 0; color: var(--muted); }

/* ---- подвал ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
/* Счётчики прежнего сайта — числа из api/site-numbers.php (site.js). */
.site-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; flex-basis: 100%; }
.site-stat { display: inline-flex; align-items: baseline; gap: 10px; }
.site-stat strong { color: var(--gold); font-size: 22px; font-variant-numeric: tabular-nums; }

@media (max-width: 1000px) {
  .brand span { display: none; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-shot { width: min(260px, 70%); }
  .deck { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .deck { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .btn { width: 100%; }
  .actions { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; }
}
