.toolbox-hero {
  padding: 92px 6vw 82px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 46px;
  align-items: center;
  background:
    radial-gradient(circle at 80% 15%, rgba(91,148,238,.18), transparent 32%),
    linear-gradient(180deg,#ffffff,#f5f8fd);
}
.toolbox-hero h1 {
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 1.03;
  letter-spacing: -.045em;
  margin: 16px 0;
}
.toolbox-search-wrap { margin-top: 28px; max-width: 680px; }
.toolbox-search {
  width: 100%;
  padding: 20px 24px;
  border-radius: 999px;
  border: 1px solid #dce8ff;
  box-shadow: 0 20px 55px rgba(35,105,216,.11);
  font: inherit;
  font-weight: 800;
  outline: none;
}
.toolbox-search:focus { border-color: #5b94ee; box-shadow: 0 24px 70px rgba(35,105,216,.20); }
.toolbox-panel {
  border-radius: 38px;
  padding: 28px;
  background: linear-gradient(145deg,#071b40,#0f3c8a);
  color: #fff;
  box-shadow: 0 32px 90px rgba(7,27,64,.28);
  display: grid;
  gap: 16px;
}
.panel-row {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.panel-row span { display: block; color: #bcd3ff; font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.panel-row strong { display: block; margin-top: 5px; font-size: 24px; }
.toolbox-section { padding: 86px 6vw; }
.toolbox-section.soft { background: #f5f8fd; }
.toolbox-section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.toolbox-section h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.08; margin: 10px 0 12px; letter-spacing: -.035em; }
.toolbox-section p { color: #68748a; line-height: 1.6; font-size: 18px; }
.converter-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 34px;
  border-radius: 34px;
  background: #fff;
  border: 1px solid #e8edf7;
  box-shadow: 0 24px 70px rgba(22,42,86,.10);
}
.converter-icon {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,#2369d8,#5b94ee);
  font-size: 34px;
}
.upload-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.file-drop {
  min-width: 280px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px dashed #9dbdf8;
  background: #f3f7ff;
  color: #1f4fa2;
  font-weight: 900;
  cursor: pointer;
}
.file-drop input { display: none; }
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.download-card {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid #e8edf7;
  box-shadow: 0 18px 55px rgba(22,42,86,.08);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.download-card.featured { border-color: #bcd3ff; box-shadow: 0 24px 70px rgba(35,105,216,.13); }
.download-icon { font-size: 34px; margin-bottom: 14px; }
.download-card h3 { margin: 0 0 10px; font-size: 22px; }
.download-card p { margin: 0 0 16px; font-size: 16px; }
.compat {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f7ff;
  color: #1f4fa2;
  font-size: 13px;
  font-weight: 900;
  margin-top: auto;
  margin-bottom: 16px;
}
.btn.tiny { padding: 10px 16px; font-size: 14px; }
.coming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.coming-grid span {
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e8edf7;
  font-weight: 900;
  color: #1f4fa2;
}
@media (max-width: 1100px) {
  .toolbox-hero { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .toolbox-hero { padding-top: 58px; }
  .converter-card { grid-template-columns: 1fr; }
  .download-grid, .coming-grid { grid-template-columns: 1fr; }
  .toolbox-section-head { display: block; }
  .file-drop { min-width: 100%; }
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tool-box {
  background: #fff;
  border: 1px solid #dce8ff;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(35,105,216,.10);
}

.tool-box h3 {
  margin-top: 0;
}

.tool-box input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #dce8ff;
  margin: 12px 0;
  font: inherit;
}

.tool-result {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f3f7ff;
  color: #2369d8;
  font-weight: 900;
}

.tool-box.muted {
  opacity: .65;
}

#qrResult img {
  margin-top: 16px;
  max-width: 160px;
  border-radius: 16px;
}

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