/* GrimSiege — saqred.games landing */
:root {
  --bg:        #0c0b0f;
  --bg-2:      #131119;
  --panel:     #17151f;
  --panel-2:   #1d1a26;
  --line:      #2a2533;
  --text:      #e6e0ee;
  --muted:     #9b93ab;
  --accent:    #c0392b;       /* кровь */
  --accent-2:  #e0a042;       /* золото */
  --stone:     #8aa0b4;
  --blood:     #c0392b;
  --slaves:    #b07d3a;
  --ok:        #5fcf72;
  --bad:       #d96b6b;
  --radius:    14px;
  --maxw:      1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #241726 0%, transparent 60%),
    linear-gradient(180deg, #0c0b0f 0%, #0a090d 100%);
  background-attachment: fixed;
  line-height: 1.6;
}
h1, h2, h3, .brand-name { font-family: 'Cinzel', serif; letter-spacing: .5px; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--accent); }
code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .85em;
  color: var(--accent-2);
}

/* ───── Навигация ───── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(12,11,15,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 900; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #6e1f17);
  box-shadow: 0 0 16px rgba(192,57,43,.45);
  font-size: 1.05rem;
}
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--accent);
  padding: 7px 16px; border-radius: 999px;
  background: rgba(192,57,43,.12);
}
.nav-cta:hover { background: rgba(192,57,43,.25); }
.nav-burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ───── Герой ───── */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 12vw, 140px) 16px 70px; text-align: center; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 320px at 50% 20%, rgba(192,57,43,.22), transparent 70%),
    radial-gradient(800px 400px at 80% 0%, rgba(224,160,66,.10), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 4px; font-size: .75rem; color: var(--accent-2); margin: 0 0 10px; }
.hero-title { font-size: clamp(3rem, 11vw, 6.4rem); font-weight: 900; margin: 0; line-height: .95;
  text-shadow: 0 4px 40px rgba(192,57,43,.35); }
.hero-tag { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.25rem); margin: 22px auto 34px; max-width: 620px; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 600;
  font-size: 1rem; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #861f16); color: #fff; box-shadow: 0 8px 28px rgba(192,57,43,.4); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-2); }
.btn.big { padding: 16px 34px; font-size: 1.1rem; }

/* ───── Живая статистика ───── */
.stats {
  display: flex; align-items: center; justify-content: center; gap: clamp(18px, 5vw, 56px);
  flex-wrap: wrap; margin-top: 52px;
  padding: 22px clamp(18px, 4vw, 40px);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.stat { text-align: center; min-width: 90px; }
.stat-num { font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; color: var(--accent-2);
  font-variant-numeric: tabular-nums; transition: color .2s; }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-status { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 0 rgba(95,207,114,.6); }
.dot.online { background: var(--ok); animation: pulse 2s infinite; }
.dot.offline { background: var(--bad); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(95,207,114,.5);} 70%{box-shadow:0 0 0 8px rgba(95,207,114,0);} 100%{box-shadow:0 0 0 0 rgba(95,207,114,0);} }

/* ───── Секции ───── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 100px) clamp(16px, 4vw, 24px); }
.section.alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015), transparent); }
.section-title { font-size: clamp(1.8rem, 5vw, 2.8rem); text-align: center; margin: 0 0 14px; }
.section-lead { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 44px; }

/* ───── Фичи (ресурсы) ───── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center;
  transition: transform .15s, border-color .15s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.feature h3 { margin: 14px 0 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature-icon { font-size: 2rem; width: 60px; height: 60px; margin: 0 auto; display: grid; place-items: center; border-radius: 14px; }
.feature-icon.stone  { color: var(--stone);  background: rgba(138,160,180,.12); }
.feature-icon.blood  { color: var(--blood);  background: rgba(192,57,43,.14); }
.feature-icon.slaves { color: var(--slaves); background: rgba(176,125,58,.14); }

/* ───── Классы ───── */
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.class-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .15s, border-color .15s;
}
.class-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); opacity: .8; }
.class-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.class-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.class-tag { color: var(--accent-2); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 12px; }
.class-card p:last-child { color: var(--muted); margin: 0; font-size: .94rem; }
.c-master::before { background: var(--stone); }
.c-plague::before { background: #6fae5a; }
.c-cult::before   { background: var(--blood); }
.c-warlord::before{ background: var(--accent-2); }
.c-arch::before   { background: var(--stone); }
.c-baron::before  { background: #8e6fb0; }

/* ───── Иконки из игры (img с фолбэком на глиф) ───── */
.ico { width: 100%; height: 100%; object-fit: contain; display: block; }
.feature-icon .ico { width: 40px; height: 40px; }
.glyph { display: inline-grid; place-items: center; width: 100%; height: 100%; }

.subhead { text-align: center; font-size: 1.3rem; margin: 56px 0 22px; color: var(--text); }
.effects { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.fx {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 104px; padding: 16px 10px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .15s, border-color .15s;
}
.fx:hover { transform: translateY(-3px); border-color: var(--accent-2); }
.fx .ico, .fx .glyph { width: 40px; height: 40px; font-size: 1.7rem; }
.fx span:not(.glyph) { font-size: .85rem; color: var(--muted); }

/* Портрет класса */
.class-portrait {
  width: 64px; height: 64px; margin-bottom: 14px; border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.8rem;
}
.class-portrait .ico { width: 100%; height: 100%; object-fit: cover; }

/* ───── Медиа: трейлер ───── */
.trailer {
  position: relative; max-width: 880px; margin: 0 auto 28px; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ───── Скриншоты ───── */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shot {
  aspect-ratio: 16/9; border-radius: var(--radius); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: .9rem; letter-spacing: 2px; text-transform: uppercase;
  background-size: cover; background-position: center;
}
/* Плейсхолдеры-градиенты; замени на background-image: url('assets/...') */
.shot-1 { background: linear-gradient(135deg, #241726, #3a1f1c); }
.shot-2 { background: linear-gradient(135deg, #1b2330, #14202a); }
.shot-3 { background: linear-gradient(135deg, #2a2018, #1a1410); }
.shot-4 { background: linear-gradient(135deg, #20182a, #16121f); }

/* ───── Скачать ───── */
.download { text-align: center; }
.download-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.download-note { color: var(--muted); font-size: .82rem; margin-top: 18px; }

/* ───── Новости ───── */
.news { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.note {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px;
}
.note-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.note-ver { font-family: 'Cinzel', serif; font-weight: 700; color: var(--accent-2); font-size: 1.1rem; }
.note-title { font-weight: 600; }
.note-date { color: var(--muted); font-size: .82rem; margin-left: auto; }
.note ul { margin: 0; padding-left: 20px; color: var(--muted); }
.note li { margin: 4px 0; }
.note li b { color: var(--text); }

/* ───── FAQ ───── */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-2); font-size: 1.4rem; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-2); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ───── Контакты ───── */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .15s, border-color .15s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.contact-ico { font-size: 1.7rem; }
.contact-title { font-weight: 700; font-family: 'Cinzel', serif; }
.contact-sub { color: var(--muted); font-size: .9rem; }

/* ───── Подвал ───── */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 16px; background: rgba(0,0,0,.25); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.socials { display: flex; gap: 22px; }
.socials a { color: var(--muted); }
.socials a:hover { color: var(--accent-2); }
.copyright { color: var(--muted); font-size: .82rem; width: 100%; text-align: center; margin: 8px 0 0; }

/* ───── Адаптив ───── */
@media (max-width: 860px) {
  .features, .class-grid, .contacts { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-cta { margin: 12px 24px; text-align: center; }
  .nav-burger { display: block; }
}
