:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e2e8f0;
  --card: #ffffff;
  --brand-dark: #0b1630;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-alt: #111a2e;
    --text: #e8edf6;
    --muted: #9aa8bf;
    --primary: #4c8dff;
    --primary-dark: #6aa1ff;
    --border: #1f2c46;
    --card: #131d33;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Header (temen, ker je logotip bel) */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 700; }
.logo-img { height: 44px; width: auto; display: block; }
.menu { display: flex; align-items: center; gap: 24px; }
.menu a { text-decoration: none; color: #e8edf6; font-weight: 500; }
.menu a:hover { color: #fff; }
.menu a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Loader */
body.is-loading { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  background: var(--brand-dark);
  transition: opacity .5s ease, visibility .5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { height: 96px; width: auto; animation: pulse 1.6s ease-in-out infinite; }
.loader-bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.loader-bar span { display: block; width: 40%; height: 100%; background: var(--primary); border-radius: 3px; animation: slide 1.2s ease-in-out infinite; }
.loader-text { margin: 0; color: #9aa8bf; font-size: .9rem; letter-spacing: .08em; }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; border: 0; border-radius: 10px;
  background: var(--primary); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-small { padding: 8px 18px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }

/* Hero */
.hero {
  padding: clamp(64px, 12vw, 140px) 0;
  background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent),
    var(--bg);
}
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); margin-bottom: 32px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card p { color: var(--muted); margin: 0; }
.icon { font-size: 1.8rem; margin-bottom: 12px; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps strong { display: block; font-size: 1.1rem; }
.steps span { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about p { color: var(--muted); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { background: var(--bg-alt); border-left: 4px solid var(--primary); border-radius: 8px; padding: 16px 20px; }
.facts strong { display: block; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input, .form textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-note { margin: 0; color: var(--muted); font-size: .85rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); text-align: center; }
.site-footer p { margin: 0; }

/* Mobile */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--brand-dark);
    max-height: 0; overflow: hidden; transition: max-height .25s;
  }
  .menu.open { max-height: 320px; }
  .menu a { padding: 14px 16px; }
  .menu a.btn { margin: 8px 16px 16px; text-align: center; }
  .about, .contact { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .loader-logo, .loader-bar span { animation: none; }
}
