:root{
  --container:1240px; --radius:14px;
  --space-1:8px; --space-2:12px; --space-3:16px; --space-4:24px;
  --space-5:32px; --space-6:48px; --space-7:64px; --space-8:96px;
  --bg:#0f1115; --surface:#151922; --text:#e9eef7; --muted:#9aa3b2;
  --primary:#5ac8fa; --accent:#64d2ff; --ring: rgba(90,200,250,.35);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;line-height:1.7;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial;
  background:linear-gradient(180deg,#0f1115,#0b0d12 60%);color:var(--text);font-size:clamp(16px,0.9vw+12px,18px)}
.container{max-width:var(--container);margin:0 auto;padding:0 28px}
.section{padding:var(--space-8) 0}
.section.alt{background:linear-gradient(180deg,rgba(255,255,255,.03),transparent)}
h1{font-size:clamp(32px,2.6vw + 18px,56px);line-height:1.15;margin:0 0 var(--space-3)}
h2{font-size:clamp(24px,1.4vw + 14px,36px);margin:0 0 var(--space-3)}
h3{font-size:clamp(18px,1.0vw + 10px,22px);margin:0 0 var(--space-2)}
p{margin:0 0 var(--space-3)}
.logo{width:520px;height:auto;max-width:50vw}
.site-header{position:static;top:auto;z-index:10;background:transparent;border-bottom:none}
.header-grid{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;height:auto;padding:16px 0}
.brand{display:flex;align-items:center;justify-content:flex-start;text-decoration:none;color:var(--text)}
.brand span{font-size:clamp(18px,1vw+12px,22px)}
.nav{display:flex;gap:16px;align-items:center;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
.nav a{text-decoration:none;color:var(--text);opacity:.9}
.nav a:hover{opacity:1}
.header-actions{display:flex;align-items:center;gap:12px}
.theme-toggle{background:none;border:0;font-size:22px;cursor:pointer;color:var(--text)}
.hero{padding:var(--space-8) 0 var(--space-6)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:var(--space-7);align-items:center}
.hero-motto{color:var(--muted);margin-top:-4px}
.hero-sub{color:var(--muted);margin-top:6px}
.cta{display:flex;gap:var(--space-3);margin-top:var(--space-3)}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:12px;border:1px solid rgba(255,255,255,.14);color:var(--text);text-decoration:none;font-weight:700}
.btn:hover{background:rgba(255,255,255,.06)}
.btn-primary{background:linear-gradient(180deg,var(--primary),var(--accent));border:0;color:#001018}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-4)}
.card{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);padding:var(--space-5);min-height:160px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.card-ico{font-size:20px;opacity:.95;margin-bottom:8px}
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.gallery .gallery-item{display:block;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.gallery img{width:100%;height:220px;object-fit:cover;display:block;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.45)}
.steps{list-style:none;padding:0;margin:var(--space-4) 0;display:grid;gap:var(--space-3);counter-reset:step}
.steps li{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:var(--radius);padding:16px 18px 16px 52px;position:relative}
.steps li strong{color:var(--accent)}
.steps li::before{counter-increment:step;content:counter(step);position:absolute;left:16px;top:50%;transform:translateY(-50%);
  width:28px;height:28px;border-radius:50%;background:var(--primary);color:#001018;font-weight:800;display:flex;align-items:center;justify-content:center}
.form{display:grid;gap:var(--space-3)}
.form .grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3)}
label{display:grid;gap:8px;font-weight:700}
input,select,textarea{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:var(--text);
  border-radius:12px;padding:12px 14px;font:inherit;outline:none}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 3px var(--ring);border-color:transparent}
.form-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.form-note{color:var(--muted)}
.form-status{margin:.5rem 0 0}
.site-footer{border-top:1px solid rgba(255,255,255,.06);padding:28px 0;color:#9aa3b2}
.light{--bg:#f6f8fb;--surface:#fff;--text:#1a1d24;--muted:#56606d;--primary:#007aff;--accent:#0a84ff}
body.light{background:var(--bg);color:var(--text)}
body.light .card, body.light .steps li{background:#fff;border:1px solid #e6e6e9;box-shadow:0 8px 24px rgba(0,0,0,.06)}
body.light .btn-primary{color:#fff}
.lightbox{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.9);
  display:flex;align-items:center;justify-content:center;z-index:1000}
.lightbox[hidden]{display:none !important}
.lightbox img{max-width:90%;max-height:90%}
.lightbox-close{position:absolute;top:20px;right:30px;font-size:40px;color:#fff;background:none;border:none;cursor:pointer}
.lightbox-prev,.lightbox-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.15);color:#fff;border:none;width:48px;height:48px;border-radius:50%;font-size:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1001;user-select:none}
.lightbox-prev{left:24px}.lightbox-next{right:24px}
.lightbox-prev:hover,.lightbox-next:hover{background:rgba(255,255,255,.28)}
@media (max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-grid{grid-template-columns:1fr}}
@media (max-width:720px){.section{padding:var(--space-7) 0}.nav{display:flex;gap:16px;align-items:center;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}.form .grid{grid-template-columns:1fr}.cards{grid-template-columns:1fr}.gallery{grid-template-columns:1fr 1fr}}


@media (max-width: 720px){
  .logo{width:520px;height:auto;max-width:50vw}
  .header-grid{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;height:auto;padding:16px 0}
}


@media (max-width: 720px){
  .logo{width:520px;height:auto;max-width:50vw}
  .header-grid{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;height:auto;padding:16px 0}
}


@media (max-width: 720px){
  .logo{width:520px;height:auto;max-width:50vw}
  .header-grid{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;height:auto;padding:16px 0}
}


@media (max-width: 900px){
  .header-grid{flex-direction:column;gap:14px}
  .logo{width:280px;max-width:80vw}
  .nav{justify-content:center;margin-left:0}
}


/* === Light theme contrast fixes === */
body.light { background: var(--bg); color: var(--text); }

body.light .site-header { background:#ffffffcc; border-bottom:1px solid #e6e9f0; backdrop-filter:saturate(160%) blur(8px); }
body.light .hero { background: linear-gradient(180deg,#f9fbff,#f4f7fc 60%); }
body.light .section.alt { background: linear-gradient(180deg,#f8faff, #ffffff); }

/* Text & links */
body.light a { color:#0a84ff; }
body.light .nav a { color:#1a1d24; opacity:0.9; }
body.light .nav a:hover { background:#eef3fb; opacity:1; }

/* Cards & steps */
body.light .card,
body.light .steps li { background:#fff; border:1px solid #e6e9f0; box-shadow:0 8px 24px rgba(0,0,0,.06); }
body.light .steps li strong { color:#0a84ff; }

/* Forms */
body.light input,
body.light select,
body.light textarea {
  background:#ffffff;
  color:#1a1d24;
  border:1px solid #ccd5e3;
}
body.light input::placeholder,
body.light textarea::placeholder { color:#7b8797; }
body.light input:focus,
body.light select:focus,
body.light textarea:focus {
  box-shadow:0 0 0 3px rgba(10,132,255,.25);
  border-color:#0a84ff;
}

/* Buttons */
body.light .btn { border-color:#d4dbe7; color:#1a1d24; }
body.light .btn:hover { background:#f1f5fb; }
body.light .btn-primary { background: linear-gradient(180deg,#0a84ff,#0077ff); color:#fff; }

/* Gallery thumbnails */
body.light .gallery .gallery-item { background:#fff; border:1px solid #e6e9f0; }
body.light .gallery img { box-shadow:0 2px 8px rgba(0,0,0,.08); }

/* Footer */
body.light .site-footer { color:#56606d; border-top:1px solid #e6e6ea; }

