/* SFM.lt - bendras dizainas ("Naktinis San Fierro").
   Vienas failas visiems puslapiams (išskyrus forumą). Be Tailwind CDN. */

:root {
  --bg: #0a0612;
  --bg-2: #120b1c;
  --panel: #160e24;
  --panel-2: #1b112c;
  --line: #2a1d45;
  --line-2: #3a2862;

  --violet: #8a3dff;
  --violet-h: #9b57ff;
  --violet-2: #b06bff;
  --coral: #b06bff;
  --coral-2: #c58cff;
  --sun: #fbbf24;
  --ok: #5be38d;
  --bad: #ff6b6b;

  --text: #ffffff;
  --text-2: #b9b0c8;
  --muted: #8a809c;

  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --wrap: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #0a0612; color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--text); margin: 0; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--violet); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; flex: none; }

/* ---------- Mygtukai ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn.btn-primary { background: var(--violet); color: #fff; }
.btn.btn-primary:hover { background: var(--violet-h); }
.btn.btn-coral { background: var(--coral); color: #ffffff; }
.btn.btn-coral:hover { background: var(--coral-2); }
.btn.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn.btn-ghost:hover { border-color: var(--violet-2); background: rgba(138,61,255,.08); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 15px; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--coral);
  transition: gap .2s var(--ease), color .2s;
}
.link:hover { color: var(--coral-2); gap: 10px; }

/* ---------- Pranešimų juosta ---------- */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; flex-wrap: wrap; text-align: center; padding-top: 6px; padding-bottom: 6px; }
.topbar b { color: var(--text); font-weight: 700; }
.topbar a { color: var(--coral); font-weight: 700; }
.topbar a:hover { color: var(--coral-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(176,107,255,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(176,107,255,0); } 100% { box-shadow: 0 0 0 0 rgba(176,107,255,0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,7,20,.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 2px;
  background: var(--coral); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; align-items: center; justify-content: center; color: var(--text); }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); padding: 10px 20px 20px; }
.mobile-nav a { display: block; padding: 12px 10px; border-radius: 10px; font-weight: 600; color: var(--text-2); }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--text); background: var(--panel); }
.mobile-nav .btn { margin-top: 10px; width: 100%; }
.mobile-nav.open { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--bg) url('../img/header.png') center 30% / cover no-repeat; opacity: .75; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 100%, rgba(176,107,255,.28), transparent 65%),
    radial-gradient(55% 60% at 10% 10%, rgba(138,61,255,.30), transparent 60%),
    linear-gradient(180deg, rgba(11,7,20,.35) 0%, rgba(11,7,20,.55) 60%, var(--bg) 100%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 12px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--coral);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-weight: 900; font-size: clamp(42px, 6.4vw, 80px); line-height: .98; letter-spacing: -.025em; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero-lead { font-size: 18px; max-width: 540px; color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ip { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.ip-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border-radius: 8px; border: 1px dashed var(--line-2); background: rgba(22,14,38,.6);
  font: 700 13px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--text);
  transition: border-color .2s, color .2s;
}
.ip-chip:hover { border-color: var(--coral); color: var(--coral-2); }

/* Serverio kortelė */
.server-card {
  position: relative; background: rgba(22,14,38,.78); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); overflow: hidden;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.server-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.server-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.server-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(22,14,38,.95)); }
.server-card-img .badge { position: absolute; left: 14px; top: 14px; z-index: 1; }
.server-card-body { padding: 4px 22px 22px; }
.server-name { font: 800 18px/1.25 var(--f-display); color: var(--text); }
.server-mode { font-size: 13px; color: var(--muted); margin-top: 2px; }
.server-meter { margin: 18px 0 8px; height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); }
.server-meter span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--coral)); transition: width 1.2s var(--ease); }
.server-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.server-row b { font: 900 26px/1 var(--f-display); color: var(--text); }
.server-row b small { font-size: 15px; color: var(--muted); font-weight: 700; }
.server-card .btn { width: 100%; margin-top: 18px; }
.server-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--violet), var(--coral)); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 99px; font: 700 12px/1 var(--f-body);
  background: rgba(11,7,20,.75); border: 1px solid var(--line-2); color: var(--text);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.is-online .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(91,227,141,.18); }
.is-offline .dot { background: var(--bad); }

/* ---------- Statistika ---------- */
.stats { margin-top: -44px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.stat { padding: 24px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat dt { font: 900 34px/1 var(--f-display); color: var(--text); letter-spacing: -.02em; }
.stat dd { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-live dt { color: var(--sun); }

/* ---------- Sekcijos ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head h2 { font-weight: 900; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.02em; margin-top: 14px; }
.section-head h2 em { font-style: normal; color: var(--coral); }
.section-head p { max-width: 380px; color: var(--text-2); }
.section-head.center p { max-width: 560px; margin-top: 14px; }

/* Žingsniai */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.step {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px 22px; transition: border-color .25s, transform .25s var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-4px); }
.step-num { font: 900 13px/1 var(--f-display); color: var(--coral); letter-spacing: .1em; }
.step-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(138,61,255,.14); color: var(--violet-2); margin: 18px 0 18px; }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14px; margin-bottom: 20px; }
.step .link { margin-top: auto; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 48px; right: -12px; width: 8px; height: 8px;
  border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg);
}

/* Galimybės (bento) */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .25s, transform .25s var(--ease);
}
.feature:hover { border-color: var(--line-2); transform: translateY(-4px); }
.feature-img { position: relative; aspect-ratio: 8 / 3; overflow: hidden; background: var(--bg); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature:hover .feature-img img { transform: scale(1.05); }
.feature-img .badge { position: absolute; left: 12px; top: 12px; }
.feature-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.feature h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.feature p { font-size: 14px; }
.feature ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 13px; }
.feature li b { color: var(--text); font-weight: 700; }
.feature .link { margin-top: 20px; }
.feature-wide { grid-column: span 2; flex-direction: row; }
.feature-wide .feature-img { aspect-ratio: auto; flex: 1.1; min-height: 280px; }
.feature-wide .feature-body { flex: 1; justify-content: center; padding: 32px; }
.feature-wide h3 { font-size: 26px; }
.feature-wide .feature-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--panel)); }
.cmd { font: 700 13px/1 ui-monospace, Consolas, monospace; color: var(--sun); background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.2); border-radius: 6px; padding: 2px 6px; }

/* Prisiminimai */
.memories { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 16px; }
.memory {
  position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--panel); text-align: left; cursor: zoom-in; display: block; width: 100%;
}
.memory:nth-child(1), .memory:nth-child(4) { grid-column: span 7; }
.memory:nth-child(2), .memory:nth-child(3) { grid-column: span 5; }
.memory img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.memory::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,7,20,.92)); }
.memory:hover img { transform: scale(1.05); }
.memory:hover { border-color: var(--line-2); }
.memory .badge { position: absolute; left: 16px; top: 16px; z-index: 1; }
.memory-cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.memory-cap h3 { font-size: 22px; font-weight: 800; }
.memory-cap p { font-size: 14px; color: var(--text-2); margin-top: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6,3,12,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: var(--r); border: 1px solid var(--line-2); }
.lightbox figcaption { text-align: center; margin-top: 14px; }
.lightbox figcaption b { display: block; font: 800 20px/1.3 var(--f-display); color: var(--text); }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); background: var(--panel); }

/* Naujienos */
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.news-main { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.news-main::before { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(176,107,255,.18), transparent 70%); }
.tag { display: inline-flex; align-self: flex-start; height: 24px; align-items: center; padding: 0 10px; border-radius: 6px; font: 800 11px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; background: rgba(176,107,255,.14); color: var(--coral-2); }
.news-main h3 { font-size: 28px; font-weight: 900; margin: 18px 0 12px; }
.news-main .link { margin-top: auto; padding-top: 24px; }
.card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-title h3 { font-size: 18px; font-weight: 800; }
.talks { list-style: none; margin: 0; padding: 0; }
.talks li + li { border-top: 1px solid var(--line); }
.talk { display: flex; align-items: center; gap: 14px; padding: 14px 4px; transition: background .2s; border-radius: 10px; }
.talk:hover { background: rgba(255,255,255,.03); }
.talk-av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font: 800 14px/1 var(--f-display); color: #fff; background: var(--violet); }
.talk-main { min-width: 0; flex: 1; }
.talk-title { display: block; color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-meta { font-size: 12px; color: var(--muted); }
.talk:hover .talk-title { color: var(--coral-2); }
.talks-empty { padding: 18px 4px; font-size: 14px; color: var(--muted); }
.skel { height: 64px; border-radius: 10px; background: linear-gradient(90deg, var(--panel-2), #22183a, var(--panel-2)); background-size: 200% 100%; animation: skel 1.4s infinite; margin-bottom: 8px; }
@keyframes skel { to { background-position: -200% 0; } }

/* Paslaugos */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px; transition: border-color .25s, transform .25s var(--ease);
}
.service:hover { border-color: var(--violet); transform: translateY(-4px); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--violet); color: #fff; margin-bottom: 22px; }
.service:nth-child(2) .service-icon { background: var(--coral); color: #ffffff; }
.service:nth-child(3) .service-icon { background: var(--sun); color: #2a1a00; }
.service h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.service p { font-size: 14px; margin-bottom: 22px; }
.service .link { margin-top: auto; }
.demo { font: 800 10px/1 var(--f-display); letter-spacing: .12em; padding: 4px 7px; border-radius: 5px; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line-2); }

/* Baigiamasis CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 120% at 100% 50%, rgba(176,107,255,.22), transparent 70%),
    radial-gradient(50% 120% at 0% 50%, rgba(138,61,255,.26), transparent 70%),
    var(--bg-2);
}
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.cta h2 { font-weight: 900; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; margin: 14px 0 16px; }
.cta p { max-width: 560px; }
.cta-actions { display: grid; gap: 12px; }
.cta-box { background: rgba(22,14,38,.7); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px; }
.cta-box h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.cta-box p { font-size: 14px; margin-bottom: 16px; }
.cta-box .btn { width: 100%; }
.btn.btn-discord { background: #5865f2; color: #fff; }
.btn.btn-discord:hover { background: #6d78f5; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 300px; color: var(--muted); }
.site-footer h4 { font: 800 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a, .site-footer ul button { color: var(--muted); transition: color .2s; }
.site-footer ul a:hover, .site-footer ul button:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* Toast (IP nukopijuotas) */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 14px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { color: var(--ok); }

/* Atsiradimo animacija: turinys matomas ir be JS. Klasė .rv-on dedama tik kai JS veikia. */
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv-on .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv-on .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-actions .hide-md { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 88px; }
  .server-card { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-wide { grid-column: span 2; }
  .services { grid-template-columns: 1fr; }
  .service { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 20px; }
  .service-icon { margin-bottom: 0; }
  .service > div { flex: 1; min-width: 220px; }
  .service p { margin-bottom: 0; }
  .service .link { margin-top: 0; margin-left: auto; }
  .cta .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 34px; }
  .header-actions .btn-play span { display: none; }
  .header-actions .btn-play { width: 42px; padding: 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 80px; }
  .hero-lead { font-size: 16px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat dt { font-size: 28px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .steps, .features, .news { grid-template-columns: minmax(0, 1fr); }
  .step::after { display: none; }
  .feature-wide { grid-column: auto; flex-direction: column; }
  .feature-wide .feature-img { min-height: 0; aspect-ratio: 8 / 3; flex: none; }
  .feature-wide .feature-img::after { display: none; }
  .feature-wide .feature-body { padding: 22px; }
  .feature-wide h3 { font-size: 20px; }
  .memories { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
  .memory:nth-child(n) { grid-column: auto; }
  .service { flex-direction: column; align-items: flex-start; gap: 0; }
  .service-icon { margin-bottom: 18px; }
  .service p { margin-bottom: 18px; }
  .service .link { margin-left: 0; }
  .box { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}
