/* mdhm-group.com - тёмная тема, вёрстка заново (без Tailwind). */

:root
{
  --bg:        #020617;
  --surface:   #0f172a;
  --surface-2: #1e293b;
  --border:    #1e293b;
  --border-2:  #334155;
  --text:      #e2e8f0;
  --heading:   #f8fafc;
  --muted:     #94a3b8;
  --faint:     #64748b;
  --accent:    #60a5fa;
  --accent-2:  #3b82f6;
  --buy:       #059669;
  --buy-hover: #10b981;
  --wrap:      1152px;
  --radius:    14px;
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* --- header --- */
.site-header
{
  position: sticky; top: 0; z-index: 50;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 8px; }
.logo-text { font-weight: 600; font-size: 18px; color: #fff; line-height: 1; letter-spacing: .02em; }
.logo-text span { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: .25em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.nav > a { color: var(--muted); transition: color .15s; }
.nav > a:hover { color: var(--heading); }

.nav-drop { position: relative; }
.nav-drop-btn { display: flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 8px 0; }
.nav-drop:hover .nav-drop-btn { color: var(--heading); }
.nav-menu
{
  position: absolute; top: 100%; left: 0; margin-top: 4px; width: 280px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; box-shadow: 0 20px 40px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.nav-drop:hover .nav-menu { opacity: 1; visibility: visible; }
.nav-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; color: var(--text); font-size: 14px; }
.nav-menu a:hover { background: var(--surface-2); }
.nav-menu img { width: 28px; height: 28px; border-radius: 6px; }
.nav-menu .badge { margin-left: auto; }

.nav-toggle { display: none; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }

.nav-mobile { display: none; flex-direction: column; gap: 2px; padding: 12px 24px 20px; border-top: 1px solid var(--border); background: var(--bg); }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 15px; }
.nav-mobile a:hover { background: var(--surface-2); }
.nav-mobile hr { border: 0; border-top: 1px solid var(--border); margin: 8px 0; width: 100%; }
.nav-mobile-label { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; padding: 0 12px; margin: 4px 0; }

/* --- badges / buttons --- */
.badge { font-size: 12px; font-weight: 600; color: #34d399; background: rgba(16,185,129,.12); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge-version { color: var(--faint); font-size: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 10px; border: 0; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-download { background: var(--accent-2); color: #fff; }
.btn-download:hover { background: #2563eb; }
.btn-buy { background: var(--buy); color: #fff; }
.btn-buy:hover { background: var(--buy-hover); }
.btn-buy.is-disabled { background: var(--surface-2); color: var(--faint); cursor: default; pointer-events: none; }
.btn-white { background: #fff; color: #0f172a; }
.btn-white:hover { background: #e2e8f0; }
.btn-ghost { background: transparent; border: 1px solid var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); color: #fff; }

/* --- sections --- */
.section { padding: 80px 0; }
.section.bordered { border-top: 1px solid var(--border); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 4px; }
.section-title { font-size: 28px; font-weight: 700; color: var(--heading); letter-spacing: -.02em; margin: 0 0 40px; }

/* --- home hero --- */
.hero { position: relative; padding: 96px 0 80px; text-align: center; overflow: hidden; }
.hero-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: rgba(37,99,235,.10); filter: blur(120px); border-radius: 50%; pointer-events: none; }
.hero h1 { position: relative; font-size: clamp(40px, 6vw, 60px); font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 24px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { position: relative; font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.stats { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-size: 14px; }
.stat b { color: var(--heading); font-size: 16px; margin-right: 6px; }
.stat span { color: var(--faint); }

/* --- product cards (home) --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: border-color .2s, background .2s; }
.card:hover { border-color: rgba(59,130,246,.4); background: rgba(30,41,59,.8); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.card-top img { width: 48px; height: 48px; border-radius: 12px; }
.card h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.card p { font-size: 14px; color: var(--faint); margin: 0; flex: 1; }

/* --- guides --- */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: border-color .2s, background .2s; }
.guide:hover { border-color: var(--border-2); background: rgba(30,41,59,.6); }
.guide-tag { font-size: 12px; font-weight: 500; color: var(--accent); }
.guide-title { font-size: 14px; font-weight: 500; color: var(--text); }

/* --- changelog --- */
.changelog { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.changelog a { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); transition: background .15s; }
.changelog a:last-child { border-bottom: 0; }
.changelog a:hover { background: var(--surface); }
.changelog-l { display: flex; align-items: center; gap: 16px; }
.changelog-l img { width: 32px; height: 32px; border-radius: 8px; }
.changelog-l b { font-size: 14px; font-weight: 500; color: var(--text); }
.changelog-l span { font-size: 14px; color: var(--faint); margin-left: 8px; }
.changelog-date { font-size: 12px; color: var(--faint); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-head .section-title { margin: 0; }
.section-link { font-size: 14px; color: var(--accent); font-weight: 500; }
.section-alt { background: rgba(15,23,42,.5); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* --- product page --- */
.phero { padding: 64px 0 48px; position: relative; }
.phero-inner { display: flex; gap: 48px; align-items: flex-start; }
.phero-main { flex: 1; min-width: 0; }
.phero-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.phero-title h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; color: #fff; letter-spacing: -.02em; margin: 0; }
.phero-version { font-size: 20px; font-weight: 500; color: var(--faint); }
.phero-tagline { font-size: 18px; color: var(--muted); max-width: 560px; margin: 16px 0 32px; }
.phero-actions { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.phero-shot { flex-shrink: 0; }
.phero-shot-frame { padding: 12px; background: rgba(30,41,59,.6); border: 1px solid rgba(51,65,85,.6); border-radius: 18px; box-shadow: 0 24px 48px rgba(0,0,0,.5); }
.phero-shot-frame img { width: 460px; max-width: 46vw; border-radius: 12px; }

.dl { position: relative; }
.dl-split { display: flex; border-radius: 10px; overflow: hidden; }
.dl-split .btn-download { border-radius: 0; }
.dl-split .btn-download:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; justify-content: space-between; gap: 16px; }
.dl-more { border-top-right-radius: 10px; border-bottom-right-radius: 10px; border-left: 1px solid rgba(96,165,250,.3) !important; padding: 12px 12px; }
.dl-size { font-size: 12px; opacity: .6; font-weight: 400; }
.dl-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.5); z-index: 20; }
.dl-menu.open { display: block; }
.dl-menu a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); }
.dl-menu a:last-child { border-bottom: 0; }
.dl-menu a:hover { background: var(--surface-2); }
.dl-menu .dl-size { color: var(--faint); opacity: 1; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s; }
.feature:hover { border-color: var(--border-2); }
.feature-check { flex-shrink: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: rgba(59,130,246,.1); border-radius: 8px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot { display: block; text-align: left; background: none; border: 0; padding: 0; cursor: zoom-in; color: inherit; }
.shot-frame { display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); }
.shot-frame img { width: 100%; transition: transform .3s; }
.shot:hover .shot-frame { border-color: var(--border-2); }
.shot:hover .shot-frame img { transform: scale(1.05); }
.shot-cap { display: block; font-size: 12px; color: var(--faint); margin-top: 8px; text-align: center; }

.cta { position: relative; text-align: center; padding: 40px; border: 1px solid rgba(59,130,246,.2); border-radius: 24px; background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(30,58,138,.2)); overflow: hidden; }
.cta h2 { font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 12px; }
.cta p { font-size: 18px; color: var(--muted); margin: 0 0 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- lightbox --- */
.lightbox { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.85); backdrop-filter: blur(4px); padding: 16px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1000px; width: 100%; }
.lightbox img { width: 100%; border-radius: 12px; box-shadow: 0 24px 48px rgba(0,0,0,.6); }
.lightbox figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.lightbox-close:hover { color: #fff; }

/* --- legal / prose --- */
.legal-head { padding: 64px 0 16px; }
.legal-head .eyebrow { }
.legal-head h1 { font-size: 36px; font-weight: 700; color: #fff; letter-spacing: -.02em; margin: 8px 0 12px; }
.legal-head .updated { font-size: 14px; color: var(--faint); }
.prose { max-width: 720px; padding-bottom: 112px; }
.prose h2 { font-size: 20px; font-weight: 600; color: var(--heading); letter-spacing: -.01em; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }

/* --- footer --- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--faint); margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 24px 48px; }
.footer-brand p { font-size: 14px; margin: 12px 0 0; max-width: 260px; }
.footer-col h4 { color: #cbd5e1; font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.footer-col a { display: block; font-size: 14px; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; font-size: 14px; }
.footer-bottom p { margin: 0; }

/* --- responsive --- */
@media (max-width: 900px)
{
  .cards, .guides, .features { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .phero-inner { flex-direction: column; }
  .phero-shot { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px)
{
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .cards, .guides, .features, .shots { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
