/* ================================================================
   onii.ink — тёмная тема
   Раскладка повторяет дизайн-язык исходного сайта: тёмный фон,
   зелёный акцент, карточки-сервисы с тегами, стрелка-переход.
   Логотип и 3D-иллюстрации — плейсхолдеры под ассеты владельца.
   ================================================================ */

:root {
    --green: #5ACE66;
    --green-dark: #47b054;
    --green-glow: rgba(90, 206, 102, 0.14);

    --bg: #0a0b0a;
    --bg-header: rgba(14, 15, 14, 0.72);
    --card: #141613;
    --card-2: #171a16;
    --chip: #20241f;
    --chip-text: #c2c9bd;
    --border: #23271f;
    --border-soft: #1c1f19;

    --text: #f2f4f0;
    --text-muted: #8b9285;
    --text-dim: #626a5c;

    --radius: 20px;
    --radius-sm: 12px;
    --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- Кнопки ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
    border: 1px solid transparent; cursor: pointer; transition: all .18s ease; white-space: nowrap;
    font-family: inherit;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: var(--green); color: #0a0b0a; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost { background: var(--chip); color: var(--text); }
.btn-ghost:hover { background: #2a2f27; }
.btn-block { width: 100%; }

/* ---------------- Шапка ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-header); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    display: flex; align-items: center; justify-content: center;
    color: #0a0b0a; font-weight: 900; font-size: 20px;
}
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand-beta { font-size: 11px; color: var(--text-dim); font-weight: 700; align-self: flex-start; margin-top: 3px; }

.nav-services { display: flex; gap: 6px; margin: 0 auto; padding: 5px; background: rgba(255,255,255,0.02); border-radius: 14px; border: 1px solid var(--border-soft); }
.nav-link {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 14px;
    color: var(--text-muted); transition: all .15s ease;
}
.nav-link svg { width: 16px; height: 16px; opacity: .8; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.is-active { color: var(--text); background: rgba(90,206,102,0.12); }
.nav-link.is-active svg { color: var(--green); opacity: 1; }

.header-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--chip); border: 1px solid var(--border); border-radius: 11px;
    padding: 8px 13px; font-size: 13px; font-weight: 600; color: var(--text-muted);
    cursor: pointer; font-family: inherit;
}
.lang-switch svg { width: 15px; height: 15px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: var(--chip); border: 1px solid var(--border); border-radius: 12px; font-weight: 600; font-size: 14px; }
.user-chip:hover { background: #2a2f27; }
.user-avatar { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.login-avatar { width: 40px; height: 40px; border-radius: 11px; background: var(--chip); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.login-avatar svg { width: 20px; height: 20px; color: var(--text-muted); }

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; padding: 8px 24px 16px; border-top: 1px solid var(--border-soft); gap: 2px; }
.mobile-nav a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; font-weight: 500; color: var(--text-muted); }
.mobile-nav a svg { width: 18px; height: 18px; }
.mobile-nav a.is-active { color: var(--text); background: rgba(90,206,102,0.12); }
.mobile-nav a.is-active svg { color: var(--green); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 80px 0 40px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; top: -200px; left: -100px; width: 700px; height: 500px;
    background: radial-gradient(ellipse at center, var(--green-glow), transparent 65%);
    pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 5.5vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 18px; }
.hero .lead { font-size: clamp(16px, 2vw, 20px); color: var(--text-muted); max-width: 620px; }

/* ---------------- Сетка сервисов ---------------- */
.services { padding: 32px 0 64px; }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.service-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; min-height: 220px; overflow: hidden; transition: all .2s ease;
}
.service-card:hover { border-color: rgba(90,206,102,0.4); background: var(--card-2); }
.service-card:hover .card-arrow { color: var(--green); transform: translate(2px, -2px); }

/* спаны под раскладку оригинала */
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.card-tag {
    display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text-muted);
}
.card-tag svg { width: 14px; height: 14px; }
.card-tag.t-skins svg { color: #ff6ec7; }
.card-tag.t-hosting svg { color: #5ace66; }
.card-tag.t-launcher svg { color: #b388ff; }
.card-tag.t-trade svg { color: #5ace66; }
.card-tag.t-market svg { color: #ffb648; }
.card-tag.t-rating svg { color: #ffd54a; }
.card-tag.t-forum svg { color: #4aa8ff; }
.card-tag.t-discord svg { color: #5865F2; }

.card-arrow { position: absolute; top: 24px; right: 24px; width: 22px; height: 22px; color: var(--text-dim); transition: all .2s ease; z-index: 3; }
.service-card h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 800; margin: 16px 0 8px; letter-spacing: -0.01em; max-width: 60%; }
.service-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; max-width: 62%; }
.card-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; max-width: 68%; position: relative; z-index: 2; }
.card-chip { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--chip-text); border: 1px solid var(--border-soft); }

/* Плейсхолдер иллюстрации (справа, «вылезает» за край) */
.card-art {
    position: absolute; right: -10px; bottom: -10px; width: 46%; height: 78%;
    display: flex; align-items: flex-end; justify-content: center;
    font-size: clamp(64px, 9vw, 120px); line-height: 1; opacity: .92;
    pointer-events: none; user-select: none;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.5));
}
.card-art.top { align-items: center; }

.service-card.card-discord:hover { border-color: rgba(88,101,242,0.5); }

/* ---------------- Баннер лицензии ---------------- */
.license-band {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 28px; margin-bottom: 64px;
}
.license-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(90,206,102,0.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.license-icon svg { width: 26px; height: 26px; color: var(--green); }
.license-text h4 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.license-text p { color: var(--text-muted); font-size: 15px; }
.license-band .btn { margin-left: auto; }

/* ---------------- Внутренние страницы ---------------- */
.svc-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 72px 0; }
.svc-hero h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 16px; }
.svc-hero .lead { font-size: 18px; color: var(--text-muted); margin-bottom: 24px; }
.svc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.svc-hero-art { aspect-ratio: 1/1; border-radius: 24px; background: radial-gradient(ellipse at 60% 40%, rgba(90,206,102,0.1), transparent 60%), var(--card); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); font-size: 120px; }

.section { padding: 64px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow { font-size: 13px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 8px 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-muted); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .fi { width: 46px; height: 46px; border-radius: 12px; background: rgba(90,206,102,0.12); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.feature h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step .num { font-size: 40px; font-weight: 800; color: var(--green); opacity: .4; }
.step h4 { font-size: 19px; font-weight: 700; margin: 12px 0 6px; }
.step p { color: var(--text-muted); font-size: 15px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat .big { font-size: 34px; font-weight: 800; }
.stat .cap { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.list-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all .18s ease; display: flex; flex-direction: column; gap: 10px; }
.list-card:hover { border-color: rgba(90,206,102,0.4); }
.list-card .lc-top { display: flex; align-items: center; justify-content: space-between; }
.list-card .lc-cat { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; }
.list-card h3 { font-size: 18px; font-weight: 700; }
.list-card .lc-meta { display: flex; gap: 14px; color: var(--text-muted); font-size: 14px; flex-wrap: wrap; }
.list-card .lc-ip { font-family: ui-monospace, monospace; background: var(--chip); padding: 6px 10px; border-radius: 8px; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.copy-btn { background: none; border: none; cursor: pointer; color: var(--green); font-weight: 700; font-size: 13px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-size: 17px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; color: var(--text); }
.faq-q::after { content: "+"; color: var(--green); font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--text-muted); font-size: 15px; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

.cta-band { text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 20px; }

.placeholder-box { border: 1px dashed var(--border); border-radius: 12px; padding: 24px; text-align: center; color: var(--text-muted); font-size: 14px; background: rgba(255,255,255,0.02); }

/* Профиль / логин */
.profile-wrap { max-width: 920px; margin: 40px auto; padding: 0 24px; }
.profile-head { display: flex; align-items: center; gap: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.profile-head img { width: 84px; height: 84px; border-radius: 16px; }
.profile-head h1 { font-size: 26px; font-weight: 800; }
.profile-head .sub { color: var(--text-muted); font-size: 15px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-row input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit; background: var(--bg); color: var(--text); }
.form-row input:focus { outline: none; border-color: var(--green); }
.skin-view { width: 100%; height: 320px; background: var(--bg); border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; margin-top: 20px; }
.alert-ok { background: rgba(90,206,102,0.12); color: var(--green); }
.alert-err { background: rgba(224,73,73,0.12); color: #ff6b6b; }

.login-card { max-width: 420px; margin: 80px auto; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.login-card .brand-logo { margin: 0 auto 16px; width: 52px; height: 52px; font-size: 26px; }
.login-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.login-card p { color: var(--text-muted); margin-bottom: 28px; }
.btn-discord { background: #5865F2; color: #fff; width: 100%; }
.btn-discord:hover { background: #4752c4; }

.legal-content { max-width: 760px; margin: 40px auto; padding: 0 24px; }
.legal-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 20px; }
.legal-content p { color: var(--text-muted); margin-bottom: 14px; }
.legal-content a { color: var(--green); }

/* ---------------- Футер ---------------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 32px; margin-top: 40px; background: #0c0d0b; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-tagline { color: var(--text-muted); font-size: 14px; max-width: 320px; margin-bottom: 20px; }
.footer-toggles { display: flex; gap: 10px; margin-bottom: 18px; }
.toggle-pill { display: inline-flex; align-items: center; gap: 2px; background: var(--chip); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.toggle-pill button { background: none; border: none; width: 32px; height: 30px; border-radius: 7px; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.toggle-pill button svg { width: 16px; height: 16px; }
.toggle-pill button.active { background: rgba(255,255,255,0.08); color: var(--text); }
.footer-copy { color: var(--text-dim); font-size: 13px; }

.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: var(--text); }

.footer-community { background: linear-gradient(135deg, #2aabee, #229ed9); border-radius: var(--radius); padding: 24px; color: #fff; position: relative; overflow: hidden; }
.footer-community .fc-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; margin-bottom: 10px; }
.footer-community .fc-head svg { width: 24px; height: 24px; }
.footer-community p { font-size: 13.5px; opacity: .92; margin-bottom: 14px; }
.footer-community .fc-count { font-size: 13px; opacity: .9; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.footer-community .fc-count::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.footer-community .btn { background: #fff; color: #229ed9; }
.footer-disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft); color: var(--text-dim); font-size: 12.5px; line-height: 1.6; }

/* ---------------- Адаптив ---------------- */
@media (max-width: 1080px) {
    .nav-services { display: none; }
    .burger { display: flex; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .span-2, .span-3 { grid-column: span 1; }
    .service-card h3, .service-card p, .card-chips { max-width: 100%; }
    .card-art { opacity: .5; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mobile-nav.open { display: flex; }
    .svc-hero { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .user-chip span { display: none; }
    .license-band .btn { margin-left: 0; width: 100%; }
}

/* ================= Страница Skins ================= */
/* Hero-кнопки */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: 13px; font-weight: 600; font-size: 15px; background: var(--chip); border: 1px solid var(--border); color: var(--text); transition: all .16s ease; }
.hero-btn svg { width: 18px; height: 18px; }
.hero-btn:hover { background: #2a2f27; }
.hero-btn.grad { background: linear-gradient(135deg, #6ee07a, var(--green-dark)); color: #0a0b0a; border: none; }
.hero-btn.grad:hover { filter: brightness(1.05); }

/* Карточки типов скинов */
.types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type-card {
    position: relative; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; min-height: 340px; overflow: hidden;
    transition: all .2s ease; display: flex; flex-direction: column;
}
.type-card:hover { border-color: rgba(90,206,102,0.4); background: var(--card-2); }
.type-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.type-head h3 { font-size: 22px; font-weight: 800; }
.type-badge { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--chip); color: var(--chip-text); border: 1px solid var(--border-soft); white-space: nowrap; }
.type-card p { color: var(--text-muted); font-size: 14.5px; margin-top: 10px; max-width: 90%; position: relative; z-index: 2; }
.type-art { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-size: clamp(90px, 12vw, 150px); line-height: 1; pointer-events: none; user-select: none; filter: drop-shadow(0 14px 34px rgba(0,0,0,.55)); }

/* Секция «Свежие работы» */
.works-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.works-head h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; letter-spacing: -0.01em; }
.works-head a { color: var(--green); font-weight: 600; font-size: 15px; }
.works-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.works-scroll::-webkit-scrollbar { height: 8px; }
.works-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.work-card {
    flex: 0 0 220px; scroll-snap-align: start; height: 260px; border-radius: 16px;
    background: linear-gradient(160deg, #e9ebe7, #d5d9d1); position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,0.05);
}
.work-card .wc-brand { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: #2a2d28; letter-spacing: .04em; opacity: .8; }
.work-card .wc-brand .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--green); }
.work-card .wc-skin { font-size: 92px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }

@media (max-width: 1080px) {
    .types-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .types-grid { grid-template-columns: 1fr; }
    .hero-btn { flex: 1; justify-content: center; }
}
