/* шрифты — лендинг: шрифты неблокирующим <link> в index.html (НЕ @import: render-blocking + тормозит при медленном Google Fonts) */

:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --panel: #19212d;
  --panel-2: #151d28;
  --panel-3: #222d3b;
  --text: #f4f7fa;
  --muted: #9da8b7;
  --dim: #6f7a89;
  --teal: #32e6c0;
  --violet: #7080ff;
  --green: #50d890;
  --amber: #ffb85c;
  --border: rgba(255, 255, 255, 0.08);
  --space: 'Space Grotesk', Inter, system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
body.dialog-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; height: 72px; background: rgba(11, 14, 20, .92); border-bottom: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(18px); }
.nav { height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 6px; font: 700 18px/1 var(--space); letter-spacing: -.45px; flex: 0 0 auto; }
.brand img { width: 40px; height: 40px; }
.brand span span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a, .ghost-link { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .ghost-link:hover, .nav-links .active { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-button { display: none; background: transparent; border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; }

.button { min-height: 48px; border: 0; border-radius: 12px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal); color: #07130f; font: 600 15px/1.5 var(--space); cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(50,230,192,.18); background: #4cebc9; }
.button:active { transform: translateY(0); }
.button-small { min-height: 40px; padding-inline: 16px; min-width: 165px; font-size: 14px; }
.button-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.16); }
.button-outline:hover { background: rgba(255,255,255,.05); box-shadow: none; }
.button-wide { width: 100%; }
.button-row { display: flex; align-items: stretch; gap: 12px; }

.hero { min-height: 621px; position: relative; overflow: hidden; padding: 80px 0; display: flex; align-items: center; }
.hero-glow { position: absolute; width: 850px; height: 650px; left: 49%; top: -20px; filter: blur(40px); background: radial-gradient(ellipse, rgba(112,128,255,.14), rgba(112,128,255,0) 68%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.eyebrow, .kicker { margin: 0; display: inline-flex; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(112,128,255,.25); background: rgba(112,128,255,.12); color: var(--violet); font: 600 12px/16px var(--mono); letter-spacing: 1.2px; }
.kicker { padding: 0; background: transparent; border: 0; border-radius: 0; margin-bottom: 8px; }
.hero h1 { margin: 0; font: 700 clamp(42px, 4vw, 52px)/1.15 var(--space); letter-spacing: -1.6px; }
.hero h1 em { color: var(--teal); font-style: normal; }
.lead { margin: 0; max-width: 520px; color: var(--muted); font-size: 18px; line-height: 28px; }
.browser-mockup { width: 100%; border: 1px solid var(--panel); border-radius: 16px; overflow: hidden; background: #1d1d1d; box-shadow: 0 4px 40px rgba(0,102,255,.12); }
.browser-bar { height: 40px; padding: 0 16px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #0f2a44; }
.dot { width: 12px; height: 12px; border-radius: 50%; opacity: .75; }
.red { background: #ff5f57; }.amber { background: #febc2e; }.green { background: #28c840; }
.address { height: 26px; margin-left: 6px; min-width: 0; flex: 1; border: 1px solid #0f2a44; border-radius: 8px; background: #282828; color: #7b9bb8; font-size: 12px; display: flex; align-items: center; gap: 8px; padding-inline: 12px; overflow: hidden; white-space: nowrap; }
.browser-mockup > img { width: 100%; aspect-ratio: 580 / 329; object-fit: cover; object-position: center; }

.section { padding: 80px 0; }
.section-alt { background: #121923; }
.section-heading { margin-bottom: 40px; }
.section-heading h2, .contact-section h2, .faq-shell > h2, .cta-card h2 { margin: 0 0 4px; font: 700 30px/36px var(--space); letter-spacing: -.4px; }
.section-heading p { color: var(--muted); margin: 0; }
.wide-heading { max-width: 670px; }

.server-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.search-field { position: relative; width: 320px; height: 42px; flex: 0 1 320px; }
.search-field img { position: absolute; z-index: 1; width: 16px; height: 16px; left: 12px; top: 13px; }
.search-field input { width: 100%; height: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); outline: none; padding: 10px 16px 10px 36px; font-size: 14px; }
.search-field input:focus { border-color: rgba(112,128,255,.7); }
.search-field input::placeholder { color: rgba(244,247,250,.5); }
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--panel); border-radius: 8px; }
.segmented button, .format-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 6px; padding: 6px 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.segmented button.selected { background: var(--panel-3); color: var(--text); }
.refresh-button { height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--panel); color: var(--muted); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; cursor: pointer; }
.refresh-button img { width: 14px; height: 14px; }
.refresh-button.spinning img { animation: spin .7s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.refresh-status { color: var(--muted); font-size: 12px; }
.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.server-card { position: relative; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; transition: border .2s, transform .2s; }
.server-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.16); }
.server-card.featured { border-color: rgba(112,128,255,.4); box-shadow: 0 0 20px rgba(112,128,255,.12); }
.popular { position: absolute; left: 24px; top: -11px; color: white; background: var(--violet); border-radius: 6px; padding: 3px 8px; font: 500 10px/16px var(--mono); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mono-label { color: var(--violet); font: 500 12px/16px var(--mono); }
.card-top h3 { margin: 4px 0 0; font: 700 20px/28px var(--space); }
.availability { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.availability b { color: var(--amber); font: 500 11px/16px var(--mono); white-space: nowrap; }
.status-dots { display: flex; gap: 4px; }
.status-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.1); }
.status-dots.one i:first-child { background: var(--green); box-shadow: 0 0 5px var(--green); }
.status-dots.two i:nth-child(-n+2) { background: #ffc15a; box-shadow: 0 0 5px rgba(255,193,90,.5); }
.status-dots.three i { background: #ef7f7f; box-shadow: 0 0 5px rgba(239,127,127,.45); }
.spec-list { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-list span { padding: 4px 10px; background: var(--panel-3); color: var(--muted); border-radius: 6px; font: 400 12px/16px var(--mono); }
.card-description { min-height: 40px; margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.price { margin: 0; min-height: 32px; display: flex; gap: 10px; align-items: baseline; font-family: var(--mono); }
.price strong { color: var(--teal); font-size: 24px; line-height: 32px; }
.price span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.details { width: fit-content; padding: 0; display: flex; gap: 8px; align-items: center; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.details img { width: 12px; height: 12px; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); background: var(--panel); border-radius: 16px; }

.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit-grid article { position: relative; min-height: 230px; padding: 24px; background: var(--panel); border: 1px solid rgba(255,255,255,.04); border-radius: 14px; }
.feature-icon { width: 36px; height: 36px; margin-bottom: 24px; border-radius: 8px; background: rgba(112,128,255,.12); display: flex; align-items: center; justify-content: center; }
.feature-icon.green { background: rgba(80,216,144,.1); }.feature-icon.amber { background: rgba(255,184,92,.1); }
.feature-icon img { width: 20px; height: 20px; }
.benefit-grid h3 { margin: 0 0 10px; font: 600 16px/22px var(--space); }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 20px; }
.soon { position: absolute; right: 18px; top: 20px; padding: 2px 7px; color: var(--amber); background: rgba(255,184,92,.09); border-radius: 5px; font: 500 10px/16px var(--mono); }

.format-tabs { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; }
.format-tabs button { background: var(--panel); white-space: nowrap; }
.format-tabs button.selected { color: var(--text); background: var(--panel-3); }
.format-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.format-visual { border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.format-visual img { width: 100%; aspect-ratio: 526/360; object-fit: cover; transition: opacity .2s; }
.format-copy h3 { margin-bottom: 16px; font: 700 24px/30px var(--space); }
.format-copy > p { color: var(--muted); }
.format-copy dl { margin: 24px 0; font: 500 12px/18px var(--mono); }
.format-copy dl div { display: flex; gap: 16px; }
.format-copy dt { color: var(--muted); }.format-copy dd { color: var(--teal); margin: 0; }

.guide-section .section-heading { margin-bottom: 32px; }
.guide-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.video-card { min-height: 420px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.play { width: 58px; height: 58px; margin-bottom: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(112,128,255,.17); }
.play img { width: 30px; height: 30px; }
.video-card strong { color: var(--text); font-size: 14px; }.video-card small { max-width: 420px; margin-top: 8px; color: var(--muted); }
.steps { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.steps li { padding: 24px; display: flex; gap: 18px; background: var(--panel); border: 1px solid rgba(255,255,255,.04); border-radius: 14px; }
.steps b { color: rgba(112,128,255,.45); font: 600 28px/1 var(--mono); }
.steps li div { display: flex; flex-direction: column; gap: 6px; }
.steps strong { font: 600 16px/20px var(--space); }.steps span { color: var(--muted); font-size: 12px; line-height: 18px; }
.center { display: flex; justify-content: center; margin-top: 32px; }

.files-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.green-text { color: var(--green); }
.files-section .section-heading { margin-bottom: 24px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--muted); font-size: 13px; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--green); background: rgba(80,216,144,.12); font-size: 10px; }
.file-placeholder { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-radius: 16px; text-align: center; }
.file-placeholder span { width: 48px; height: 48px; border-radius: 10px; background: rgba(80,216,144,.09); display: flex; align-items: center; justify-content: center; }
.file-placeholder img { width: 28px; height: 28px; }

.cta-card { padding: 56px 24px; text-align: center; border: 1px solid rgba(112,128,255,.22); border-radius: 16px; background: radial-gradient(circle at 50% 0, rgba(112,128,255,.14), transparent 60%), var(--panel); }
.cta-card p { color: var(--muted); }.cta-card small { display: block; margin-top: 14px; color: var(--muted); font: 400 11px/16px var(--mono); }
.faq-shell { max-width: 900px; }
.faq-shell > h2 { margin-bottom: 28px; }
.accordion { display: grid; gap: 8px; }
.accordion details { border: 1px solid var(--border); border-radius: 8px; background: #101721; overflow: hidden; }
.accordion summary { position: relative; list-style: none; padding: 17px 48px 17px 18px; font-size: 14px; font-weight: 500; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ''; position: absolute; right: 18px; top: 20px; width: 16px; height: 16px; background: url('/site/assets/landing/icon-15.svg') center/contain no-repeat; transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(180deg); }
.accordion details p { margin: 0; padding: 0 48px 17px 18px; color: var(--muted); font-size: 13px; line-height: 20px; }

.contact-section { border-top: 1px solid rgba(255,255,255,.04); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.lead-small { max-width: 520px; color: var(--muted); font-size: 16px; }
.contact-links { margin: 28px 0; display: grid; gap: 14px; }
.contact-links a { width: fit-content; display: flex; align-items: center; gap: 12px; color: var(--teal); font: 500 13px/18px var(--mono); }
.contact-links img { width: 24px; height: 24px; }
.contact-links span { display: flex; flex-direction: column; }.contact-links small { color: var(--muted); font: 400 11px/15px var(--sans); }
.contact-grid > div > small { color: var(--dim); font-size: 12px; }
.contact-form { padding: 24px; display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; }
.contact-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.contact-form input, .contact-form textarea { width: 100%; color: var(--text); background: #111822; border: 1px solid var(--border); border-radius: 7px; padding: 11px 12px; outline: none; font-size: 13px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(112,128,255,.6); }
.consent { display: flex !important; grid-template-columns: 14px 1fr; align-items: start; gap: 8px !important; }
.consent input { width: 14px; height: 14px; accent-color: var(--teal); }
.form-success { margin: 0; color: var(--green); font-size: 13px; text-align: center; }

.footer { padding-top: 60px; border-top: 1px solid rgba(255,255,255,.04); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-grid p, .footer-grid a { display: block; color: var(--muted); font-size: 13px; line-height: 24px; }
.footer-grid h3 { margin: 7px 0 16px; color: var(--muted); font: 600 12px/16px var(--sans); letter-spacing: .6px; }
.footer-grid a:hover { color: var(--teal); }
.footer-bottom { padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 400 12px/18px var(--mono); }
.footer-bottom small { display: block; max-width: 560px; color: var(--dim); font: 400 12px/16px var(--sans); }
.footer-bottom button { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; }

dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(112,128,255,.35); border-radius: 16px; background: var(--panel); color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
dialog::backdrop { background: rgba(3,5,9,.78); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.dialog-content { padding: 56px 36px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dialog-content h2 { font-family: var(--space); }.dialog-content p { color: var(--muted); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; color: var(--text); background: var(--panel-3); border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 14px 40px rgba(0,0,0,.35); transition: .25s; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .nav-links { gap: 14px; }.ghost-link { display: none; }
  .hero { min-height: auto; }.hero-grid { grid-template-columns: 1fr; }.hero-copy { text-align: center; align-items: center; }.lead { max-width: 660px; }
  .browser-mockup { max-width: 720px; margin-inline: auto; }
  .server-toolbar { flex-wrap: wrap; }.refresh-status { width: 100%; }
  .server-grid { grid-template-columns: 1fr 1fr; }.server-card:last-child { grid-column: span 2; max-width: calc(50% - 12px); width: 100%; justify-self: center; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }.benefit-grid article { min-height: 210px; }
  .contact-grid { gap: 48px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 1280px); }
  .site-header, .nav { height: 64px; }
  .menu-button { display: block; margin-left: auto; }
  .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: 58px; padding: 12px; flex-direction: column; align-items: stretch; background: rgba(25,33,45,.98); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
  .nav-links.open { display: flex; }.nav-links a { padding: 8px; }.nav-actions { display: none; }
  .hero { padding: 64px 0; }.hero h1 { font-size: 38px; letter-spacing: -1px; }.lead { font-size: 16px; line-height: 25px; }
  .button-row { flex-direction: column; width: 100%; }.button-row .button { width: 100%; }
  .section { padding: 64px 0; }.section-heading h2, .contact-section h2, .faq-shell > h2, .cta-card h2 { font-size: 26px; line-height: 32px; }
  .server-toolbar > * { width: 100%; flex-basis: auto; }.segmented button { flex: 1; }.refresh-button { justify-content: center; }
  .server-grid { grid-template-columns: 1fr; }.server-card:last-child { grid-column: auto; max-width: none; }
  .price { flex-wrap: wrap; }.price strong { font-size: 22px; }
  .benefit-grid { grid-template-columns: 1fr; }.benefit-grid article { min-height: auto; }
  .format-content, .guide-grid, .files-grid, .contact-grid { grid-template-columns: 1fr; }
  .format-content { gap: 28px; }.guide-grid { gap: 16px; }.video-card { min-height: 300px; }.files-grid { gap: 36px; }.contact-grid { gap: 40px; }
  .files-section br { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }.footer-bottom { align-items: flex-start; gap: 20px; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: 10px; letter-spacing: .8px; }.hero h1 { font-size: 33px; }
  .browser-bar { padding-inline: 10px; }.dot { width: 9px; height: 9px; }.address { font-size: 9px; }
  .segmented { overflow-x: auto; }.segmented button { padding-inline: 8px; }
  .spec-list { gap: 6px; }.spec-list span { font-size: 11px; padding-inline: 8px; }
  .format-tabs { width: calc(100% + 16px); }.steps li { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }.footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Состояние каталога серверов (живые данные) */
.server-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 32px 0; font-size: 15px; }
.server-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 48px 24px; border: 1px dashed var(--border); border-radius: 16px; background: var(--panel-2); }
.server-empty-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(50,230,192,.10); }
.server-empty-icon img { width: 24px; height: 24px; }
.server-empty strong { color: var(--text); font: 600 18px/1.3 var(--space); }
.server-empty p { margin: 0; color: var(--muted); font-size: 14px; max-width: 360px; }
