/* v2.2 CSS – layout fixes + spacing + mobile polish */

:root{
  --bg:#f5f7fa;
  --ink:#0b1f2a;
  --muted:#5b6b75;
  --card:#ffffff;
  --line:#e6ebf0;
  --brand:#0b5cff;
  --brand-ink:#ffffff;
  --ok:#137333;
  --warn:#b45309;
  --danger:#b00020;
  --shadow: 0 8px 24px rgba(11,31,42,.08);
  --radius:14px;
}

*{box-sizing:border-box}

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

.wrap{max-width:1100px;margin:0 auto;padding:0 18px}

.section{padding:32px 0}

.hero{padding:40px 0 24px}

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
}

.mot-form{
  background:#fff;
  padding:16px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.field-row{
  display:flex;
  gap:12px;
  align-items:stretch;
}

.mot-form input{
  flex:1;
  padding:14px;
  border-radius:12px;
  border:1px solid var(--line);
  font-size:16px;
}

.mot-form input:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(11,92,255,.15);
}

.mot-form button{
  padding:14px 18px;
  border-radius:12px;
  border:none;
  background:var(--brand);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.mot-form button:hover{filter:brightness(.95)}

.error{
  color:var(--danger);
  font-size:13px;
  margin-top:8px;
  min-height:18px;
}

.results-shell{
  margin-top:20px;
  background:#fff;
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:18px;
}

.result-grid{
  display:grid;
  grid-template-columns:1.4fr .6fr;
  gap:20px;
}

.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.panel-header{
  padding:14px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:12px;
}

.panel-body{padding:14px}

.kv{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px dashed var(--line);
}

.kv:last-child{border-bottom:none}

.badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.badge-ok{background:rgba(19,115,51,.12);color:var(--ok)}
.badge-warn{background:rgba(180,83,9,.12);color:var(--warn)}

.btn{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:none;
  background:var(--brand);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.btn-ghost{
  background:#fff;
  border:1px solid var(--brand);
  color:var(--brand);
}

.btn + .btn{margin-top:10px}

.pricing-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.price-card{
  background:#fff;
  border-radius:var(--radius);
  border:1px solid var(--line);
  padding:18px;
  box-shadow:var(--shadow);
}

.price-card-featured{
  border:2px solid var(--brand);
}

.modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1000;
}

.modal-card{
  background:#fff;
  width:100%;
  max-width:480px;
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 20px 40px rgba(0,0,0,.15);
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.5);
  z-index:-1;
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  padding:10px;
  border-bottom:1px solid var(--line);
  text-align:left;
}

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .result-grid{grid-template-columns:1fr}
}

@media(max-width:600px){
  .field-row{flex-direction:column}
  .mot-form button{width:100%}
}


/* v2.2.1 – Mobile menu (hamburger) */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width: 0;
}
.brand-text{min-width:0}
.brand-name{font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.brand-sub{font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.brand-mark{
  width:38px;
  height:38px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--brand), #00b3ff);
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.header-nav{
  display:flex;
  gap:12px;
  align-items:center;
}
.header-nav a{
  text-decoration:none;
  font-weight:800;
  font-size:14px;
  padding:8px 10px;
  border-radius:12px;
}
.header-nav a:hover{background:#eef3ff}

.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  box-shadow: var(--shadow);
}
.nav-toggle:hover{background:#f7f9fb}

.nav-toggle-bars{
  display:block;
  width:20px;
  height:2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:20px;
  height:2px;
  background: var(--ink);
}
.nav-toggle-bars::before{top:-6px}
.nav-toggle-bars::after{top:6px}

/* Mobile drawer */
.mobile-nav{
  border-top:1px solid var(--line);
  background:#fff;
}
.mobile-nav-inner{
  display:grid;
  gap:6px;
  padding:10px 18px 14px;
}
.mobile-nav-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-radius:12px;
  text-decoration:none;
  font-weight:850;
  border:1px solid var(--line);
  background:#fbfcfe;
}
.mobile-nav-link:hover{background:#f2f6ff;border-color:rgba(11,92,255,.25)}

/* Prevent background scroll when menu is open */
body.nav-open{overflow:hidden}

/* Responsive nav behavior */
@media (max-width: 900px){
  .header-nav{display:none}
  .nav-toggle{display:inline-flex; align-items:center; justify-content:center}
}
