/* Семейство ROG — общий стиль сайтов: mail.rogapp.org, connect.rogapp.org, voice.rogapp.org, music.rogapp.org, rogssh.net.
   Тёмная гамма приложений ROG: графит + янтарный акцент. Один файл на все сайты (копия кладётся в каждый). */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #141417;
  --bg2: #18181b;
  --card: #1f1f23;
  --card2: #27272c;
  --line: #2e2e35;
  --line2: #3b3b44;
  --text: #f1efe9;
  --muted: #aaa79f;
  --faint: #8d8a83;
  --accent: #f5c84b;
  --accent-hi: #ffd977;
  --accent-soft: rgba(245, 200, 75, 0.12);
  --ink: #17150f;
  --ok: #7fdca4;
  --danger: #ff9c8e;
  --r: 14px;
  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hi);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
}

.skip:focus {
  left: 16px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- полоса семейства (одинаковая на всех сайтах) ---------- */
.rog-family {
  background: #0d0d0f;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.rog-family__in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rog-family__in::-webkit-scrollbar {
  display: none;
}

.rog-family__label {
  color: var(--faint);
  margin-right: 10px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rog-family a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

.rog-family a:hover {
  color: var(--text);
  background: var(--card);
}

.rog-family a[aria-current='page'] {
  color: var(--accent);
  background: var(--accent-soft);
}

.rog-family svg {
  flex: none;
}

/* ---------- шапка продукта ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #18181b;
  border: 1px solid var(--line2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.top nav {
  display: flex;
  gap: 4px 22px;
  flex-wrap: wrap;
  margin-right: auto;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.top nav a:hover {
  color: var(--text);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--card2);
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: var(--ink);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

.btn svg {
  flex: none;
}

/* ---------- первый экран ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(36px, 5.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  font-weight: 800;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  font-size: 19px;
  color: #cfccc4;
  margin: 0 0 28px;
  max-width: 540px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hint {
  color: var(--faint);
  font-size: 14px;
  margin: 14px 0 0;
}

/* скриншот в «окне» */
.shot {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: var(--bg2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.shot img {
  width: 100%;
}

figure.shot {
  margin: 0;
}

.glow {
  position: relative;
}

.glow::before {
  content: '';
  position: absolute;
  inset: -14% 0 auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(245, 200, 75, 0.16), transparent);
  pointer-events: none;
  z-index: -1;
}

/* ---------- секции ---------- */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-head h2,
h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.feature h3 {
  font-size: 18px;
  margin: 16px 0 8px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.ficon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* текст + картинка */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.split + .split {
  margin-top: 64px;
}

.split.rev > :first-child {
  order: 2;
}

.split.wide {
  grid-template-columns: 1fr;
  gap: 28px;
}

.split.wide > div {
  max-width: 720px;
}

.split.wide .checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.split h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.split p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 12px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #d8d5cd;
}

.checks li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c84b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  color: #d8d5cd;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- загрузка ---------- */
.download {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  background: linear-gradient(135deg, #222226, #1b1b1f);
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: 32px;
}

.download h2 {
  margin-bottom: 8px;
}

.dl-lead {
  color: var(--muted);
  margin: 0 0 22px;
}

.download dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 0;
  font-size: 15px;
}

.download dt {
  color: var(--faint);
}

.download dd {
  margin: 0;
  color: #e0ddd5;
  overflow-wrap: anywhere;
}

.mono {
  font-family: var(--mono);
  font-size: 13px;
}

.note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1a1a1d;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- другие продукты ---------- */
.family {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.fcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.fcard:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.fcard b {
  font-size: 17px;
}

.fcard span {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.fcard i {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- подвал ---------- */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 28px 0 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  color: var(--faint);
  font-size: 14px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
}

@media (max-width: 960px) {
  .hero,
  .split,
  .download {
    grid-template-columns: 1fr;
  }
  .split.rev > :first-child {
    order: 0;
  }
  .split.wide .checks {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .family {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    padding-top: 32px;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .wrap,
  .rog-family__in {
    padding: 0 16px;
  }
  .rog-family__label {
    display: none;
  }
  .features,
  .family {
    grid-template-columns: 1fr;
  }
  .top nav {
    order: 3;
    width: 100%;
  }
  .top .btn {
    margin-left: auto;
  }
  .section {
    padding: 52px 0;
  }
  .download {
    padding: 22px;
  }
  .cta .btn {
    flex: 1 1 auto;
  }
  .lead {
    font-size: 17px;
  }
}

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