:root {
  color-scheme: dark;
  --page: #393631;
  --panel: #504a42;
  --panel-light: #615b53;
  --header: #505154;
  --text: #f5f3ef;
  --muted: #c9c5be;
  --green: #28c77b;
  --green-dark: #124c39;
  --orange: #ffa619;
  --line: rgba(40, 199, 123, .82);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 15px/1.58 Arial, Helvetica, sans-serif;
}

a { color: var(--green); }
a:hover { color: #7ce2b0; }

.site-header {
  position: relative;
  z-index: 5;
  min-height: 84px;
  padding: 14px clamp(22px, 2.2vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  background: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand-image {
  display: block;
  width: 184px;
  height: auto;
  object-fit: contain;
}

.icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.nav-links > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
}

.nav-links > a > .icon { color: #f6f5f2; }
.nav-links > a > .icon svg { width: 14px; height: 14px; stroke-width: 1.8; }
.nav-links .steam-link > .icon { color: var(--green); }
.nav-links .steam-link > .icon svg { width: 17px; height: 17px; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: clamp(14px, 1.8vw, 28px);
}

.nav-links a {
  color: #f7f6f3;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, opacity .18s ease;
}

.nav-links a:hover { color: var(--green); }
.nav-links a[aria-current="page"] { color: var(--orange); }

.nav-links .steam-link {
  flex: 0 0 auto;
  gap: 5px;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--green);
  border-radius: 2px;
  color: var(--green);
  background: #17402f;
  font-size: 14px;
  font-weight: 400;
  transition: background .18s ease, box-shadow .18s ease;
}

.nav-links .steam-link:hover { background: #1c4d38; box-shadow: 0 0 18px rgba(40, 199, 123, .12); }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 478px;
  margin: 24px 2% 0;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 98% 0%, rgba(0, 174, 116, .42), transparent 34%),
    radial-gradient(ellipse at 0% 100%, rgba(157, 111, 0, .22), transparent 28%),
    linear-gradient(115deg, #121719 5%, #14191f 66%, #11191c);
}

.hero-copy { position: relative; z-index: 1; max-width: 550px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  background: rgba(255,255,255,.07);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero h1 {
  max-width: 500px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 900;
  line-height: .99;
  letter-spacing: -.8px;
}

.hero p { max-width: 470px; color: #d3d1cd; }

.tags, .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.tag, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.button { min-height: 47px; padding: 0 22px; }
.button-primary { border-color: transparent; background: linear-gradient(110deg, #ffae00, #e98010); }
.button-secondary:hover, .tag:hover { background: rgba(255,255,255,.16); color: #fff; }
.button-primary:hover { color: #fff; filter: brightness(1.08); }

.hero-cards {
  position: absolute;
  right: clamp(32px, 10vw, 150px);
  top: 50%;
  width: 290px;
  height: 280px;
  transform: translateY(-50%);
}

.floating-card {
  position: absolute;
  width: 176px;
  padding: 19px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 21px;
  background: linear-gradient(140deg, rgba(48,65,66,.94), rgba(26,38,41,.93));
  box-shadow: 0 18px 34px rgba(0,0,0,.2);
  animation: card-float 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-card { animation: none; }
}

.floating-card strong { display: block; color: #f28a13; font-size: 23px; }
.floating-card span { font-size: 13px; font-weight: 700; }
.floating-card:nth-child(1) { top: 10px; right: 46px; }
.floating-card:nth-child(2) { top: 100px; right: -34px; animation-duration: 6s; animation-delay: -2s; }
.floating-card:nth-child(3) { top: 183px; right: 80px; animation-duration: 5.5s; animation-delay: -3.5s; }

.page-title {
  margin: 42px 0 0;
  padding: 0 18px 12px;
  border-bottom: 2px solid var(--line);
  color: var(--orange);
  font-size: clamp(23px, 2.3vw, 27px);
  line-height: 1.3;
  text-align: center;
}

.page-title a { color: inherit; text-decoration: none; }
.page-title a:hover { color: var(--green); }

.article {
  width: min(820px, calc(100% - 36px));
  margin: 22px auto 55px;
}

.article p { margin: 0 0 19px; }
.article h2 {
  margin: 34px 0 10px;
  color: #ffc044;
  font-size: 21px;
  line-height: 1.35;
  text-align: center;
}
.article h3 { margin: 25px 0 7px; color: #ffc044; font-size: 18px; }
.article ul, .article ol { padding-left: 27px; margin: 14px 0 22px; }
.article li { padding: 3px 0 3px 5px; }
.article li::marker { color: var(--green); }

.toc {
  margin: 20px -20px 30px;
  padding: 12px 24px 16px;
  border-radius: 17px;
  background: var(--panel-light);
}

.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin-bottom: 0; }
.toc a { text-decoration: none; }

.section-action { display: flex; justify-content: center; margin: 0 0 16px; }
.section-action .button { min-width: 140px; min-height: 38px; color: var(--green); background: var(--green-dark); }

.feature-list { list-style: none; }
.feature-list li { position: relative; padding-left: 24px; }
.feature-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "■";
  font-size: 10px;
}

.number-list { list-style: none; counter-reset: steps; }
.number-list li { position: relative; min-height: 32px; padding-left: 36px; counter-increment: steps; }
.number-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  content: counter(steps);
  font-size: 12px;
}

.info-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; }
.info-table th, .info-table td { border: 1px solid #938d83; padding: 9px 10px; text-align: left; }
.info-table th { background: var(--panel-light); }

.faq { margin-top: 35px; }
.faq h2 { margin-bottom: 20px; }
.faq-item { margin-bottom: 16px; }
.faq-item h3 { margin-top: 18px; }

.preview {
  margin: 26px 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(105,134,137,.38), transparent 45%),
    linear-gradient(135deg, #28363b, #5c5a50 52%, #333536);
}

.preview-top { display: flex; justify-content: space-between; gap: 12px; color: #e4e0d9; font-size: 12px; }
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.preview-item { min-height: 80px; padding: 12px; background: rgba(28,31,32,.48); }
.preview-item strong { display: block; color: #fff; font-size: 13px; }
.preview-item span { color: #c8c2b9; font-size: 11px; }

.contact-card {
  margin: 25px 0;
  padding: 22px;
  border-left: 3px solid var(--green);
  background: var(--panel);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 1fr) 1fr;
  align-items: start;
  gap: 30px;
  padding: 42px 3% 18px;
  background: var(--panel);
}

.footer-pages { max-width: 410px; }
.footer-pages h2 { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid #aaa49a; font-size: 16px; }
.footer-pages ul { padding-left: 18px; margin: 10px 0 0; }
.footer-pages a { text-decoration: none; }
.footer-social { justify-self: end; }
.footer-social a {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-left: 8px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: linear-gradient(145deg, #4394bd, #2879a5);
  box-shadow: 0 2px 7px rgba(0,0,0,.2), inset 0 1px 1px rgba(255,255,255,.25);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}

.footer-social a:hover { color: #fff; filter: brightness(1.13); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.footer-social a[aria-label="ВКонтакте"] svg { width: 21px; height: 21px; }
.copyright { grid-column: 1 / -1; margin-top: 22px; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.13); text-align: center; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: #c8c6c2;
  color: #159f67;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 980px) {
  .site-header { flex-direction: column; padding: 13px 18px; gap: 10px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
  .hero { min-height: 450px; }
  .hero-cards { right: 18px; opacity: .35; }
  .hero-copy { max-width: 600px; }
  .toc { margin-right: 0; margin-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .brand-image { width: 172px; }
  .nav-links a { font-size: 12px; }
  .nav-links .steam-link { padding: 7px 11px; }
  .hero { min-height: 475px; margin: 14px 12px 0; padding: 25px 20px; border-radius: 18px; }
  .hero h1 { font-size: 36px; }
  .hero-cards { right: -38px; top: 70%; transform: scale(.75); opacity: .23; }
  .hero-copy { align-self: flex-start; }
  .article { width: calc(100% - 32px); }
  .toc { margin-right: 0; margin-left: 0; padding: 12px 16px; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .footer-social { justify-self: start; }
  .copyright { grid-column: 1; }
  .info-table { font-size: 12px; }
  .info-table th, .info-table td { padding: 6px; }
}

/* FAQ-аккордеон: виден только вопрос, ответ раскрывается по клику */
.faq-item {
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: var(--panel);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  transition: color .18s ease;
}

.faq-item summary::after {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  content: "";
  transform: rotate(45deg);
  transition: transform .2s ease, margin .2s ease;
}

.faq-item[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.faq-item summary:hover h3 { color: var(--green); }
.faq-item summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; border-radius: 12px; }

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  animation: faq-open .22s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item p { animation: none; }
}

/* Скриншот раздела на странице */
.page-shot { margin: 26px 0 30px; }
.page-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,.3);
}
.page-shot figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
