:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-2: #0b1420;
  --paper: rgba(15, 27, 40, .78);
  --paper-solid: #101d2b;
  --ink: #eef8ff;
  --muted: #95a9b8;
  --brand: #45f6ff;
  --brand-2: #7c5cff;
  --brand-3: #a8ff6a;
  --dark: #061017;
  --line: rgba(127, 226, 255, .18);
  --line-strong: rgba(69, 246, 255, .38);
  --soft: rgba(14, 26, 39, .92);
  --shadow: 0 28px 90px rgba(0, 0, 0, .36);
  --glow: 0 0 34px rgba(69, 246, 255, .2);
  --radius: 28px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(69, 246, 255, .16), transparent 30rem),
    radial-gradient(circle at 85% 12%, rgba(124, 92, 255, .2), transparent 34rem),
    linear-gradient(135deg, #050a10, #0b1420 46%, #071018);
  line-height: 1.5;
  min-width: 320px;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(127, 226, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 226, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,.25));
}

body::after {
  content: "";
  position: fixed;
  inset: auto -15% -30% -15%;
  height: 44vh;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(69, 246, 255, .13), transparent 65%);
  filter: blur(12px);
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(69, 246, 255, .28); color: #fff; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 104px 0; }
.soft {
  position: relative;
  background:
    linear-gradient(180deg, rgba(11, 20, 32, .74), rgba(8, 16, 24, .94)),
    radial-gradient(circle at 20% 20%, rgba(69, 246, 255, .08), transparent 30rem);
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .18em;
  text-shadow: 0 0 18px rgba(69, 246, 255, .45);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 18px rgba(69, 246, 255, .55);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(5, 10, 16, .78);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .22);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #061017;
  background:
    linear-gradient(135deg, var(--brand), #fff 45%, var(--brand-2));
  font-weight: 1000;
  box-shadow: 0 0 28px rgba(69, 246, 255, .28), inset 0 0 0 1px rgba(255,255,255,.55);
}
.logo strong, .logo small { display: block; }
.logo strong { letter-spacing: -.02em; white-space: nowrap; }
.logo small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.nav a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(69, 246, 255, .08);
}
.phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--brand);
  font-weight: 950;
  white-space: nowrap;
  box-shadow: inset 0 0 18px rgba(69, 246, 255, .06), 0 0 22px rgba(69, 246, 255, .12);
}
.phone:hover { color: #fff; border-color: rgba(255,255,255,.55); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 24%, rgba(69, 246, 255, .18), transparent 28rem),
    radial-gradient(circle at 70% 58%, rgba(124, 92, 255, .15), transparent 30rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(69,246,255,.08) 44.2%, transparent 45.2% 100%),
    linear-gradient(160deg, transparent 0 62%, rgba(124,92,255,.09) 62.2%, transparent 63.4% 100%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 44px;
  align-items: center;
}
.hero h1, .section-head h2, .cta h2 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: .92;
  margin: 18px 0 24px;
  letter-spacing: -.065em;
}
.hero h1 {
  max-width: 850px;
  background: linear-gradient(105deg, #fff 5%, #dffbff 42%, var(--brand) 62%, #fff 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(69, 246, 255, .08);
}
.section-head h2, .cta h2 { font-size: clamp(34px, 4vw, 60px); }
.hero p, .section-head p, .cta p {
  font-size: 18px;
  color: var(--muted);
  max-width: 780px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  position: relative;
  color: #041018;
  background: linear-gradient(135deg, var(--brand), #eaffff 48%, #8affff);
  box-shadow: 0 16px 45px rgba(69, 246, 255, .22), inset 0 0 0 1px rgba(255,255,255,.65);
}
.btn-primary:hover { box-shadow: 0 18px 60px rgba(69, 246, 255, .3); }
.btn-secondary {
  color: var(--ink);
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 22px rgba(255,255,255,.02);
}
.btn-secondary:hover { border-color: var(--line-strong); background: rgba(69,246,255,.08); }
.btn.full { width: 100%; }
.lead-short { display: none; }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.trust-row div {
  position: relative;
  padding: 18px;
  overflow: hidden;
  background: rgba(12, 24, 36, .68);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.trust-row div::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69,246,255,.22), transparent 70%);
}
.trust-row b { display: block; font-size: 30px; line-height: 1; color: var(--brand); text-shadow: var(--glow); }
.trust-row span { color: var(--muted); font-size: 13px; }

.hero-card {
  padding: 30px;
  min-height: 545px;
  border-radius: 42px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(20, 35, 52, .9), rgba(5, 12, 18, .98)),
    radial-gradient(circle at 20% 10%, rgba(69, 246, 255, .22), transparent 20rem);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 80px rgba(69, 246, 255, .08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 32px;
  pointer-events: none;
}
.hero-card::after {
  content: "SALIM / HI-TECH BUILD";
  position: absolute;
  right: -70px;
  top: 130px;
  transform: rotate(90deg);
  color: rgba(69, 246, 255, .18);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .28em;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card span { color: rgba(238, 248, 255, .7); }
.hero-card strong {
  display: block;
  margin-top: 10px;
  font-size: 36px;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.timeline-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.timeline-mini span {
  min-height: 92px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(127, 226, 255, .18);
  color: rgba(238, 248, 255, .88);
  font-size: 13px;
}
.quote-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(238, 248, 255, .08);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.quote-card p { margin: 0 0 12px; color: var(--ink); font-size: 17px; }
.quote-card b { color: var(--brand); }

.section-head { margin-bottom: 40px; }
.inline-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.service-grid, .process-grid, .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card, .process-card, .project-card, .review-card, .calc-main, .calc-summary .sticky-box, .admin-card, .login-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 55px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.service-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  min-height: 322px;
  display: flex;
  flex-direction: column;
}
.service-card::after, .process-card::after, .review-card::after, .project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(69,246,255,.14), transparent 34%, transparent 70%, rgba(124,92,255,.12));
  opacity: .55;
}
.service-card > *, .process-card > *, .review-card > *, .project-card > * { position: relative; z-index: 1; }
.service-card.dark {
  background:
    linear-gradient(145deg, rgba(20, 42, 61, .92), rgba(8, 15, 24, .98)),
    radial-gradient(circle at top right, rgba(69, 246, 255, .22), transparent 18rem);
  border-color: var(--line-strong);
  color: #fff;
}
.service-card.dark p { color: rgba(238,248,255,.72); }
.card-number { color: var(--brand); font-weight: 1000; letter-spacing: .16em; text-shadow: var(--glow); }
.service-card.dark .card-number { color: var(--brand-3); }
.service-card h3, .process-card h3, .project-card h3, .review-card h3 {
  margin: 16px 0 10px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.service-card p, .process-card p, .project-card p, .review-card p { color: var(--muted); margin: 0 0 24px; }
.service-card a { margin-top: auto; font-weight: 950; color: var(--brand); }
.service-card a:hover { color: #fff; }
.service-card.dark a { color: var(--brand-3); }

.calculator-section {
  position: relative;
  background:
    radial-gradient(circle at 82% 18%, rgba(69,246,255,.14), transparent 28rem),
    linear-gradient(180deg, rgba(6,12,18,.98), rgba(9,18,29,.96));
}
.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: 22px;
  align-items: start;
}
.calc-main { padding: 24px; }
.calc-summary {
  position: sticky;
  top: 98px;
  z-index: 25;
  align-self: start;
}
.calc-summary .sticky-box {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, rgba(15, 31, 46, .94), rgba(7, 14, 22, .98)),
    radial-gradient(circle at 50% 0%, rgba(69,246,255,.18), transparent 18rem);
}
.calc-summary .sticky-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  box-shadow: 0 0 24px rgba(69,246,255,.5);
}
.type-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.type-switch button {
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  background: transparent;
  cursor: pointer;
  font-weight: 950;
  color: var(--muted);
}
.type-switch button.active {
  background: linear-gradient(135deg, rgba(69,246,255,.9), rgba(255,255,255,.9));
  color: #061017;
  box-shadow: 0 10px 35px rgba(69,246,255,.18);
}
.input-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.input-grid label, .lead-form label, .admin-form label, .inline-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.input-grid input, .lead-form input, .lead-form textarea, .admin-form input, .admin-form textarea, .admin-form select, .inline-form input, .inline-form select, .inline-form textarea {
  width: 100%;
  border: 1px solid rgba(127, 226, 255, .2);
  border-radius: 16px;
  min-height: 48px;
  padding: 11px 14px;
  background: rgba(3, 9, 14, .72);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
select option { background: #101d2b; color: var(--ink); }
.input-grid input:focus, .lead-form input:focus, .lead-form textarea:focus, .admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus, .inline-form input:focus, .inline-form select:focus, .inline-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(69,246,255,.1), inset 0 1px 0 rgba(255,255,255,.05);
}
.calc-options { display: grid; gap: 14px; }
.calc-section-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 17, 27, .72);
}
.calc-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 10px;
}
.calc-section-head h3 { margin: 0; font-size: 19px; }
.calc-section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.mode-pill {
  align-self: flex-start;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 950;
  color: #061017;
  background: linear-gradient(135deg, var(--brand), #eaffff);
  padding: 7px 10px;
  border-radius: 999px;
}
.option-list { display: grid; gap: 8px; padding: 8px 14px 14px; }
.option-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(127, 226, 255, .14);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: border .2s ease, transform .2s ease, background .2s ease;
}
.option-item:hover {
  border-color: var(--line-strong);
  background: rgba(69,246,255,.07);
  transform: translateY(-1px);
}
.option-item:has(input:checked) {
  border-color: rgba(69,246,255,.7);
  background: linear-gradient(135deg, rgba(69,246,255,.14), rgba(124,92,255,.08));
  box-shadow: inset 0 0 28px rgba(69,246,255,.06);
}
.option-item input { width: 18px; height: 18px; accent-color: var(--brand); }
.option-title { display: block; font-weight: 950; }
.option-desc { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.option-price { text-align: right; font-weight: 950; white-space: nowrap; color: var(--ink); }
.option-price small { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.total {
  margin: 10px 0 4px;
  font-size: 40px;
  font-weight: 1000;
  letter-spacing: -.05em;
  color: #fff;
  text-shadow: 0 0 30px rgba(69,246,255,.3);
}
.term { color: var(--brand-3); font-weight: 950; margin-bottom: 16px; }
.summary-lines { display: grid; gap: 9px; margin: 18px 0; }
.summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(127, 226, 255, .18);
  color: var(--muted);
  font-size: 14px;
}
.summary-lines b { color: var(--ink); white-space: nowrap; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { position: relative; overflow: hidden; }
.project-cover img, .project-cover video { width: 100%; height: 300px; object-fit: cover; background: #050a10; }
.project-cover { background: #050a10; }
.project-body { padding: 24px; }
.project-type {
  color: var(--brand);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 950;
}
.media-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0; }
.media-strip figure { margin: 0; min-width: 0; }
.media-strip img, .media-strip video { width: 100%; height: 82px; object-fit: cover; border-radius: 12px; background: #050a10; border: 1px solid rgba(127,226,255,.16); }
.media-strip figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0 0; }
.project-card dt { color: var(--muted); font-size: 12px; }
.project-card dd { margin: 0; font-weight: 950; }

.review-grid { grid-template-columns: repeat(3, 1fr); }
.review-card { position: relative; padding: 18px; overflow: hidden; }
.review-media img, .review-media video { width: 100%; height: 210px; object-fit: cover; border-radius: 20px; background: #050a10; border: 1px solid rgba(127,226,255,.16); }
.stars { color: var(--brand-3); font-size: 20px; margin: 16px 0 4px; text-shadow: 0 0 16px rgba(168,255,106,.28); }
.review-card p { font-size: 15px; }
.review-card span { color: var(--muted); font-size: 13px; }

.process-grid { grid-template-columns: repeat(4, 1fr); }
.process-card { position: relative; padding: 24px; min-height: 250px; overflow: hidden; }
.process-card b { color: var(--brand); letter-spacing: .14em; }

.cta {
  background:
    radial-gradient(circle at 82% 20%, rgba(69,246,255,.18), transparent 28rem),
    linear-gradient(135deg, #050a10, #101d2b);
  color: #fff;
}
.cta p { color: rgba(238,248,255,.72); }
.cta .eyebrow { color: var(--brand-3); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta .btn-primary { background: linear-gradient(135deg, var(--brand-3), #f6ffe8); color: #061017; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .68); backdrop-filter: blur(10px); }
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: rgba(12, 24, 36, .96);
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45), 0 0 60px rgba(69,246,255,.12);
}
.modal-card h2 { margin: 12px 0 6px; font-size: 34px; letter-spacing: -.04em; }
.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.lead-form { display: grid; gap: 14px; margin-top: 20px; }
.lead-form textarea { resize: vertical; }
.form-status { font-weight: 900; color: var(--brand-3); }
.form-status.error { color: #ff8f8f; }

.footer { padding: 28px 0; border-top: 1px solid var(--line); background: rgba(5, 10, 16, .88); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 14px; }
.footer a { font-weight: 950; color: var(--ink); }

/* Admin */
.admin-body { background: #071018; }
.admin-shell { width: min(1180px, calc(100% - 36px)); margin: 28px auto 80px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.admin-top h1 { margin: 0; font-size: 36px; letter-spacing: -.04em; }
.admin-card { padding: 22px; margin-bottom: 18px; }
.admin-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tabs a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 950;
}
.admin-tabs a.active { background: linear-gradient(135deg, var(--brand), #eaffff); color: #061017; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-form { display: grid; gap: 14px; }
.wide { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.small-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 900;
}
.small-btn:hover { border-color: var(--brand); }
.small-btn.danger { color: #ff9b9b; }
.notice { padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; background: rgba(168,255,106,.12); color: var(--brand-3); border: 1px solid rgba(168,255,106,.25); font-weight: 900; }
.notice.error { background: rgba(255,120,120,.12); color: #ff9b9b; border-color: rgba(255,120,120,.25); }
.login-box { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px, 100%); padding: 28px; }
.section-admin { border: 1px solid var(--line); border-radius: 22px; background: rgba(8,17,27,.72); margin-bottom: 14px; overflow: hidden; }
.section-admin-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px; background: rgba(255,255,255,.035); border-bottom: 1px solid var(--line); }
.section-admin-head h3 { margin: 0; }
.option-admin { padding: 16px; border-bottom: 1px solid var(--line); }
.inline-form { display: grid; grid-template-columns: 1.2fr 1fr .7fr .7fr .7fr .6fr .6fr auto; gap: 10px; align-items: end; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; background: rgba(69,246,255,.12); color: var(--brand); font-size: 12px; font-weight: 950; }
.raw-json { white-space: pre-wrap; max-width: 520px; max-height: 220px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: rgba(3,9,14,.7); padding: 10px; border-radius: 12px; }
.thumb-admin { width: 100px; height: 70px; object-fit: cover; border-radius: 10px; background: #050a10; border: 1px solid var(--line); }
.admin-media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-media-card { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.admin-media-card img, .admin-media-card video { height: 120px; width: 100%; object-fit: cover; border-radius: 12px; background: #050a10; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .hero-grid, .calculator-shell { grid-template-columns: 1fr; }
  .calc-summary { order: -1; top: 82px; }
  .hero-card { min-height: 420px; }
  .service-grid, .process-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .input-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .container, .admin-shell { width: min(calc(100% - 24px), 1180px); }
  .section-pad { padding: 64px 0; }
  .header-inner { min-height: 68px; gap: 12px; }
  .logo { gap: 10px; }
  .logo-mark { width: 40px; height: 40px; border-radius: 14px; }
  .logo strong { font-size: 15px; }
  .logo small { max-width: 145px; font-size: 11px; }
  .phone { min-height: 38px; padding: 0 12px; font-size: 0; }
  .phone::after { content: "Позвонить"; font-size: 12px; }

  .hero h1 { font-size: clamp(40px, 12.5vw, 52px); line-height: .94; }
  .hero p, .section-head p, .cta p { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; margin: 28px 0; }
  .btn { min-height: 50px; padding: 0 18px; }
  .trust-row, .service-grid, .process-grid, .project-grid, .review-grid, .admin-grid, .admin-media-grid { grid-template-columns: 1fr; }
  .trust-row { gap: 10px; }
  .hero-card { min-height: auto; padding: 22px; border-radius: 30px; }
  .hero-card strong { font-size: 28px; }
  .timeline-mini { grid-template-columns: repeat(2, 1fr); }
  .timeline-mini span { min-height: 72px; }

  .inline-head, .cta-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .inline-head .btn { width: 100%; }
  .section-head { margin-bottom: 28px; }

  .calculator-title { margin-bottom: 20px; }
  .calculator-shell { gap: 14px; }
  .calc-main { padding: 16px; border-radius: 22px; }
  .calc-summary {
    top: 70px;
    margin-inline: -2px;
  }
  .calc-summary .sticky-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 12px;
    padding: 12px;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,.34), 0 0 30px rgba(69,246,255,.12);
  }
  .calc-summary .eyebrow { grid-column: 1 / -1; font-size: 9px; letter-spacing: .13em; }
  .calc-summary .eyebrow::before { width: 22px; }
  .total { grid-column: 1; margin: 2px 0 0; font-size: clamp(25px, 8vw, 34px); line-height: 1; }
  .term { grid-column: 1; margin: 2px 0 0; font-size: 12px; line-height: 1.25; }
  .summary-lines, .calc-summary .muted { display: none; }
  .lead-cta { grid-column: 2; grid-row: 2 / span 2; min-height: 44px; padding: 0 14px; white-space: nowrap; }
  .lead-full { display: none; }
  .lead-short { display: inline; }

  .type-switch { border-radius: 22px; grid-template-columns: 1fr; }
  .input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .input-grid label { min-width: 0; }
  .calc-section-card { border-radius: 20px; }
  .calc-section-head { display: grid; gap: 8px; padding: 16px 14px 8px; }
  .mode-pill { width: fit-content; }
  .option-list { padding: 8px 10px 12px; }
  .option-item { grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .option-price { grid-column: 2; text-align: left; white-space: normal; }

  .project-cover img, .project-cover video { height: 235px; }
  .project-body { padding: 18px; }
  .project-card dl { grid-template-columns: 1fr; }
  .media-strip { grid-template-columns: repeat(2, 1fr); }
  .review-media img, .review-media video { height: 200px; }

  .modal { padding: 12px; align-items: end; }
  .modal-card { max-height: calc(100vh - 24px); padding: 22px; border-radius: 26px; }
  .modal-card h2 { font-size: 30px; }
  .footer { padding-bottom: calc(28px + var(--safe-bottom)); }
  .inline-form { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .container, .admin-shell { width: min(calc(100% - 20px), 1180px); }
  .logo small { display: none; }
  .input-grid { grid-template-columns: 1fr; }
  .calc-summary .sticky-box { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .lead-cta { padding: 0 12px; }
  .hero-card::after { display: none; }
}

@media (max-width: 360px) {
  .phone::after { content: "Звонок"; }
  .total { font-size: 24px; }
  .lead-cta { min-height: 40px; padding: 0 10px; }
}

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