.tools-page .static-page__body .tools-wrap { padding-top: 32px; }
.tools-form { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; background: #F7F9FD; border: 1px solid #DDE5F2; border-radius: 24px; padding: 22px; }
.tools-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #4A566E; }
.tools-field input { height: 54px; border: 1px solid #DDE5F2; border-radius: 999px; padding: 0 20px; font: inherit; font-size: 16px; color: #111C36; background: #fff; min-width: 0; }
.tools-field input:focus { outline: none; border-color: #3D7EF7; box-shadow: 0 0 0 3px rgba(61, 126, 247, .15); }
.tools-form .rd-btn { height: 54px; }
.tools-form .rd-btn[disabled] { opacity: .6; pointer-events: none; }
.tools-status { margin: 14px 4px 0; font-size: 15px; color: #4A566E; min-height: 1px; }
.tools-status.is-error { color: #C5221F; }
.tools-status.is-busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid #DDE5F2; border-top-color: #3D7EF7; border-radius: 50%; animation: tools-spin .8s linear infinite; }
@keyframes tools-spin { to { transform: rotate(360deg); } }

.tools-result { margin-top: 26px; }
.tools-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.tools-score { width: 120px; height: 120px; border-radius: 24px; background: #F7F9FD; border: 1px solid #DDE5F2; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.tools-score b { font-size: 42px; line-height: 1; font-weight: 700; color: #111C36; }
.tools-score span { font-size: 12px; color: #4A566E; margin-top: 6px; }
.tools-score.is-good b { color: #1E9E54; } .tools-score.is-mid b { color: #E07B12; } .tools-score.is-bad b { color: #D93025; }
.tools-host { font-size: 22px; font-weight: 600; color: #111C36; overflow-wrap: anywhere; }

.tools-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tools-check { display: flex; gap: 14px; border: 1px solid #DDE5F2; border-radius: 20px; padding: 16px 18px; }
.tools-check__icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.tools-check--ok .tools-check__icon { background: #E3F5EA; color: #1E9E54; }
.tools-check--warn .tools-check__icon { background: #FFF3DC; color: #A35A00; }
.tools-check--bad .tools-check__icon { background: #FDE8E7; color: #C5221F; }
.tools-check--info .tools-check__icon { background: #F1F6FF; color: #3D7EF7; }
.tools-check__body { min-width: 0; }
.tools-check__body strong { display: block; font-size: 16px; color: #111C36; }
.tools-check__detail { margin: 4px 0 0; color: #2B3550; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.tools-check__fix { margin: 8px 0 0; background: #F1F6FF; border-radius: 12px; padding: 9px 13px; font-size: 14px; color: #2B3550; }
.tools-check__fix b { color: #3D7EF7; }

.tools-cta { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; background: #111C36; color: #fff; border-radius: 24px; padding: 26px 28px; margin: 22px 0 0; }
.tools-cta > div:first-child { flex: 1 1 360px; }
.tools-cta h2 { color: #fff; font-size: 22px; margin: 0 0 6px; }
.tools-cta p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.tools-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.tools-cta__btns .rd-btn { white-space: nowrap; }

.tools-other { font-size: 24px; margin: 48px 0 16px; }
.tools-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tools-card { display: flex; }
.tools-card a { flex: 1; }
.tools-card a { display: flex; flex-direction: column; height: 100%; border: 1px solid #DDE5F2; border-radius: 24px; padding: 20px; background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.tools-card a:hover { border-color: #3D7EF7; transform: translateY(-2px); }
.tools-card img { width: 112px; height: 112px; object-fit: contain; margin-bottom: 10px; }
.tools-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tools-card__body strong { font-size: 19px; color: #111C36; }
.tools-card__body span { font-size: 15px; color: #4A566E; line-height: 1.5; }
.tools-card__go { margin-top: 14px; color: #3D7EF7; font-weight: 600; }

@media (max-width: 1024px) { .tools-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .tools-form { grid-template-columns: 1fr; }
  .tools-cta { flex-direction: column; align-items: stretch; }
  .tools-cta > div:first-child { flex: none; }
  .tools-cta__btns { flex-direction: column; }
  .tools-cta__btns .rd-btn { white-space: normal; text-align: center; }
}
@media (max-width: 600px) { .tools-cards { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .tools-form { padding: 16px; border-radius: 20px; }
  .tools-score { width: 92px; height: 92px; }
  .tools-score b { font-size: 32px; }
  .tools-host { font-size: 18px; }
}

/* Інструменти в браузері: фото, транслітерація, ПДВ, QR */
.tools-client { display: grid; gap: 16px; background: #F7F9FD; border: 1px solid #DDE5F2; border-radius: 24px; padding: 22px; }
.tools-client textarea { border: 1px solid #DDE5F2; border-radius: 18px; padding: 14px 18px; font: inherit; font-size: 16px; color: #111C36; background: #fff; resize: vertical; min-width: 0; }
.tools-client textarea:focus { outline: none; border-color: #3D7EF7; box-shadow: 0 0 0 3px rgba(61, 126, 247, .15); }
.tools-client textarea[readonly] { background: #fff; }
.tc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tools-client--photo .tc-row { grid-template-columns: 1fr; }
.tc-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-seg label { position: relative; cursor: pointer; }
.tc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tc-seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #DDE5F2; border-radius: 999px; background: #fff; font-size: 15px; color: #2B3550; transition: border-color .2s, background .2s; }
.tc-seg label:hover { border-color: #3D7EF7; }
.tc-seg label:has(input:checked) { background: #3D7EF7; border-color: #3D7EF7; color: #fff; }
.tc-seg label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(61, 126, 247, .3); }
.tools-client input[type="range"] { width: 100%; max-width: 420px; accent-color: #3D7EF7; height: 28px; }
.tc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-actions .rd-btn[disabled] { opacity: .5; pointer-events: none; }
.tc-drop { display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 20px; border: 2px dashed #B9CAEA; border-radius: 20px; background: #fff; color: #4A566E; font-size: 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.tc-drop:hover, .tc-drop.is-over { border-color: #3D7EF7; background: #F1F6FF; }
.tc-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tc-files:empty { display: none; }
.tc-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; background: #fff; border: 1px solid #DDE5F2; border-radius: 16px; padding: 12px 16px; font-size: 14px; }
.tc-name { font-weight: 600; color: #111C36; overflow-wrap: anywhere; }
.tc-size { color: #4A566E; }
.tc-res { grid-column: 1 / -1; color: #2B3550; }
.tc-res em { color: #A35A00; font-style: normal; }
.tc-res a { margin-left: 8px; color: #3D7EF7; font-weight: 600; }
.tc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tc-tiles div { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #DDE5F2; border-radius: 18px; padding: 14px 16px; }
.tc-tiles span { font-size: 13px; color: #4A566E; }
.tc-tiles b { font-size: 22px; color: #111C36; overflow-wrap: anywhere; }
.tc-vat { display: grid; gap: 14px; }
.tc-vat[hidden], .tc-qr[hidden], .tc-qform[hidden] { display: none; }
.tc-qform { display: grid; gap: 14px; }
.tc-qr { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: center; background: #fff; border: 1px solid #DDE5F2; border-radius: 20px; padding: 18px; }
.tc-qr canvas { width: 100%; height: auto; display: block; }
.tc-note { margin: 0 0 12px; color: #2B3550; font-size: 15px; }
.tc-note:empty { display: none; }
@media (max-width: 860px) {
  .tc-row { grid-template-columns: 1fr; }
  .tc-qr { grid-template-columns: 1fr; justify-items: center; }
  .tc-qr canvas { max-width: 300px; }
}
@media (max-width: 480px) {
  .tools-client { padding: 16px; border-radius: 20px; }
  .tc-tiles { grid-template-columns: 1fr; }
  .tc-actions .rd-btn { width: 100%; justify-content: center; }
  .tc-seg label { padding: 0 14px; font-size: 14px; }
}
.tc-qr .rd-btn--white { border: 1px solid #DDE5F2; }
.tc-qr .rd-btn--white:hover { border-color: #3D7EF7; }
