
.hero--tool .hero-v1__beams {
  top: 120px;
  opacity: 0.55;
}
.hero--tool .hero-v1__head,
.hero--tool .hero-v1__curve {
  position: relative;
  z-index: 4;
}
.hero--tool .hero-v1__head {
  padding-bottom: 140px;
}
.hero--tool .hero-v1__curve {
  margin-top: -2px;
}
.hero--tool .hero-v1__title {
  font-size: clamp(40px, 5vw, 68px);
}
.hero--tool .hero-v1__text {
  max-width: 640px;
}
.t-crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.5);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.t-crumbs a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}
.t-crumbs a:hover {
  color: #fff;
}
.t-crumbs [aria-current] {
  color: var(--green-200);
}
.t-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.t-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
}
.t-badge svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.t-tool {
  position: relative;
  z-index: 5;
  margin-top: -150px;
}
.t-tool__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.t-panel {
  padding: 32px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 0 2px 0 rgba(145, 158, 171, 0.24), 0 28px 56px -16px rgba(15, 20, 25, 0.28);
}
.t-panel__head {
  margin-bottom: 24px;
}
.t-panel__title {
  margin: 0;
  color: var(--graphite);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.t-panel__hint {
  margin: 6px 0 0;
  color: var(--gray-600);
  font-size: 15px;
}
.t-group {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--gray-300);
}
.t-sub {
  margin: 0 0 12px;
  color: var(--gray-500);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.t-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.t-field + .t-field,
.t-cols + .t-field {
  margin-top: 12px;
}
.t-cols .t-field + .t-field {
  margin-top: 0;
}
.t-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 600;
}
.t-label--key {
  font: 500 13px/1 var(--mono);
  color: var(--gray-700);
}
.t-req {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-ink);
  font: 500 10px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.t-input {
  position: relative;
  display: flex;
  align-items: center;
}
.t-input input,
.t-input select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--gray-200);
  color: var(--graphite);
  font: 500 15px/1 var(--font-family);
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s;
}
.t-input input::placeholder {
  color: var(--gray-500);
}
.t-input input:hover,
.t-input select:hover {
  border-color: var(--gray-400);
}
.t-input input:focus,
.t-input select:focus {
  border-color: var(--green);
}
.t-input--icon svg {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  color: var(--gray-500);
  pointer-events: none;
}
.t-input--icon input {
  padding-left: 42px;
}

.t-seg {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: var(--gray-200);
}
.t-seg__btn {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--gray-600);
  font: 600 14px/1 var(--font-family);
  cursor: pointer;
  transition: background-color 0.2s, color 0.25s;
}
.t-seg__btn:hover {
  color: var(--graphite);
}
.t-seg__btn.is-on {
  background: var(--graphite);
  color: #fff;
}
.t-seg__ind {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 12px;
  background: var(--graphite);
  box-shadow: 0 6px 14px -6px rgba(15, 20, 25, 0.45);
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
}
.t-seg__ind.is-instant {
  transition: none;
}
.t-seg.has-ind .t-seg__btn {
  position: relative;
  z-index: 1;
}
.t-seg.has-ind .t-seg__btn.is-on {
  background: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .t-seg__ind {
    transition: none;
  }
}

.t-custom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.t-custom:not(:empty) {
  margin-bottom: 10px;
}
.t-custom__row {
  display: grid;
  grid-template-columns: 1fr 1fr 48px;
  gap: 8px;
}
.t-custom__row .js-key {
  font-family: var(--mono);
  font-size: 13px;
}
.t-custom__remove {
  display: grid;
  place-items: center;
  height: 48px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--gray-200);
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.t-custom__remove svg {
  width: 16px;
  height: 16px;
}
.t-custom__remove:hover {
  border-color: #fda29b;
  color: #d92d20;
}
.t-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px dashed var(--gray-400);
  border-radius: 12px;
  background: transparent;
  color: var(--graphite);
  font: 600 14px/1 var(--font-family);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.t-add svg {
  width: 14px;
  height: 14px;
}
.t-add:hover:not(:disabled) {
  border-color: var(--green);
  background: var(--green-50);
  color: var(--green-ink);
}
.t-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.t-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--gray-300);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.t-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.t-toggle__track {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--gray-300);
  transition: background-color 0.2s;
}
.t-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 20, 25, 0.25);
  transition: transform 0.2s;
}
.t-toggle input:checked + .t-toggle__track {
  background: var(--green);
}
.t-toggle input:checked + .t-toggle__track::after {
  transform: translateX(18px);
}
.t-toggle input:focus-visible + .t-toggle__track {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.t-result {
  position: sticky;
  top: 96px;
}
.t-result__card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  background: var(--ink) radial-gradient(420px 220px at 100% 0, rgba(16, 185, 129, 0.22), transparent 70%);
  color: #fff;
  box-shadow: 0 28px 56px -16px rgba(15, 20, 25, 0.45);
}
.t-result__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.t-result__label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.t-result__url {
  min-height: 120px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  font: 500 14px/1.65 var(--mono);
  word-break: break-all;
}
.t-result__url.is-empty {
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-family);
  word-break: normal;
}
.t-result__url .p-base {
  color: #fff;
}
.t-result__url .p-sep {
  color: rgba(255, 255, 255, 0.4);
}
.t-result__url .p-key {
  color: var(--green-200);
}
.t-result__url .p-val {
  color: #fcd34d;
}
.t-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 600 16px/1 var(--font-family);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.t-copy svg {
  width: 18px;
  height: 18px;
}
.t-copy:hover:not(:disabled) {
  background: var(--green-ink);
}
.t-copy:active:not(:disabled) {
  transform: scale(0.98);
}
.t-copy.is-copied {
  background: #fff;
  color: var(--graphite);
}
.t-copy:disabled {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
}
.t-lint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.t-lint__title {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.55);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.t-lint__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.2s;
}
.t-lint__dot {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s;
}
.t-lint__item.is-ok {
  color: rgba(255, 255, 255, 0.9);
}
.t-lint__item.is-ok .t-lint__dot {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
.t-lint__item.is-warn {
  color: #fde68a;
}
.t-lint__item.is-warn .t-lint__dot {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}
.t-result__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--gray-600);
  font-size: 13px;
}
.t-result__note svg {
  width: 15px;
  height: 15px;
  color: var(--green-ink);
}

.tool-page .faq-v2 {
  padding-top: 120px;
}
.t-sec {
  padding-top: 120px;
}
.t-head {
  margin-bottom: 44px;
}
.t-head .title-2 {
  margin: 0;
}
.t-head__sub {
  max-width: 640px;
  margin: 0 auto;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.55;
}
.t-sec code,
.t-tool code {
  font-family: var(--mono);
}

.t-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: none;
}
.t-step {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
}
.t-step__n {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--graphite);
  color: #fff;
  font: 500 15px/1 var(--mono);
}
.t-step:first-child .t-step__n {
  background: var(--green);
}
.t-step__title {
  margin: 0 0 10px;
  color: var(--graphite);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.t-step__text {
  margin: 0;
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.6;
}
.t-step__text code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--gray-200);
  color: var(--graphite);
  font-size: 13px;
}

.t-params {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.t-param {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--gray-300);
  border-radius: 24px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.25s;
}
.t-param:hover {
  border-color: var(--green-200);
  box-shadow: 0 18px 40px -22px rgba(15, 20, 25, 0.3);
}
.t-param__key {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-ink);
  font: 500 12px/1 var(--mono);
}
.t-param__key--opt {
  background: var(--gray-200);
  color: var(--gray-700);
}
.t-param__title {
  margin: 18px 0 12px;
  color: var(--graphite);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.t-param__code {
  max-width: 100%;
  margin-bottom: 14px;
  padding: 10px 12px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--ink);
  color: var(--green-200);
  font-size: 13px;
  white-space: nowrap;
}
.t-param__text {
  margin: 0;
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.6;
}

.t-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.t-macro {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
}
.t-macro__head {
  padding: 24px 24px 20px;
  background: var(--ink) radial-gradient(260px 120px at 100% 0, rgba(16, 185, 129, 0.25), transparent 70%);
  color: #fff;
}
.t-macro__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.t-macro__sub {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
.t-macro__list {
  padding: 8px 24px 16px;
}
.t-macro__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}
.t-macro__list li:last-child {
  border-bottom: 0;
}
.t-macro__list code {
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
}
.t-macro__list span {
  color: var(--gray-600);
  font-size: 14px;
}

.t-article {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  padding: 56px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
}
.t-article__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.t-article__head .title-2 {
  margin: 0;
  text-align: left;
}
.t-article__body p {
  margin: 0 0 16px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.7;
}
.t-article__body p:last-child {
  margin-bottom: 0;
}
.t-article__body b {
  color: var(--graphite);
}
.t-article__body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--gray-200);
  color: var(--graphite);
  font-size: 13px;
  word-break: break-all;
}

.t-input__affix {
  position: absolute;
  color: var(--gray-500);
  font: 500 15px/1 var(--font-family);
  pointer-events: none;
}
.t-input--prefix .t-input__affix {
  left: 15px;
}
.t-input--prefix input {
  padding-left: 32px;
}
.t-input--suffix .t-input__affix {
  right: 15px;
}
.t-input--suffix input {
  padding-right: 40px;
}
.t-input input[type="number"] {
  -moz-appearance: textfield;
}
.t-input input[type="number"]::-webkit-outer-spin-button,
.t-input input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.t-opt {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 500;
}
.t-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}
.t-fields[hidden] {
  display: none;
}
.t-fields .t-field + .t-field {
  margin-top: 0;
}
.t-field--wide {
  grid-column: 1 / -1;
}
.t-seg--even .t-seg__btn {
  flex: 1 1 0;
}

.t-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 20px;
  border: 1.5px dashed var(--gray-400);
  border-radius: 20px;
  background: var(--gray-100);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.t-drop:hover,
.t-drop.is-over,
.t-drop:focus-within {
  border-color: var(--green);
}
.t-drop.is-over {
  background: var(--green-50);
}
.t-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.t-drop__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--graphite);
  color: #fff;
  transition: background-color 0.2s, transform 0.25s;
}
.t-drop:hover .t-drop__icon,
.t-drop.is-over .t-drop__icon {
  background: var(--green);
  transform: translateY(-3px);
}
.t-drop__icon svg {
  width: 24px;
  height: 24px;
}
.t-drop__title {
  color: var(--graphite);
  font-size: 16px;
  font-weight: 600;
}
.t-drop__title u {
  color: var(--green-ink);
  text-underline-offset: 3px;
}
.t-drop__sub {
  color: var(--gray-500);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
}
.t-preview {
  display: none;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 18px;
  background: var(--gray-200);
}
.t-preview.is-visible {
  display: flex;
}
.t-preview__thumb {
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-300);
}
.t-preview__thumb img,
.t-preview__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t-preview__meta {
  flex: 1;
  min-width: 0;
}
.t-preview__name {
  margin: 0;
  overflow: hidden;
  color: var(--graphite);
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-preview__info {
  margin: 4px 0 0;
  color: var(--gray-600);
  font: 500 12px/1.3 var(--mono);
}
.t-preview__clear {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.t-preview__clear svg {
  width: 16px;
  height: 16px;
}
.t-preview__clear:hover {
  border-color: #fda29b;
  color: #d92d20;
}

.t-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.t-chip {
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gray-200);
  color: var(--gray-700);
  font: 500 12px/1 var(--mono);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.t-chip:hover {
  border-color: var(--gray-400);
}
.t-chip.is-on {
  background: var(--graphite);
  color: #fff;
}

.t-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--gray-300);
}
.t-stats[hidden] {
  display: none;
}
.t-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--gray-200);
}
.t-stat__name {
  color: var(--gray-500);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.t-stat__value {
  color: var(--graphite);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.t-result__summary {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.5;
}
.t-result__summary b {
  color: #fff;
}
.t-places:not(:empty) {
  margin-top: 18px;
}
.t-platform + .t-platform {
  margin-top: 16px;
}
.t-platform__name {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.5);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.t-place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.t-platform .t-place:last-child {
  border-bottom: 0;
}
.t-place__name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.t-place__spec {
  color: rgba(255, 255, 255, 0.45);
  font: 500 11px/1.2 var(--mono);
}
.t-status {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  font: 500 11px/1 var(--mono);
  white-space: nowrap;
}
.t-status--ok {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
.t-status--warn {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
.t-status--bad {
  background: rgba(240, 68, 56, 0.18);
  color: #fda29b;
}
.t-status--idle {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
}
.t-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}
.t-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.t-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.t-legend .is-ok {
  background: #34d399;
}
.t-legend .is-warn {
  background: #fbbf24;
}
.t-legend .is-bad {
  background: #f97066;
}

.t-roi {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.t-roi__value {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  transition: color 0.25s;
}
.t-roi__value.is-positive {
  color: #34d399;
}
.t-roi__value.is-negative {
  color: #f97066;
}
.t-verdict {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.t-verdict--good {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
.t-verdict--bad {
  background: rgba(240, 68, 56, 0.18);
  color: #fda29b;
}
.t-verdict--even {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}
.t-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}
.t-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.t-metric__name {
  color: rgba(255, 255, 255, 0.5);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.t-metric__value {
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-metric__value.is-negative {
  color: #f97066;
}
.t-metric__desc {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1.3;
}

.t-tables {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.t-table {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
}
.t-table__title {
  margin: 0;
  padding: 22px 24px;
  background: var(--ink) radial-gradient(360px 120px at 100% 0, rgba(16, 185, 129, 0.25), transparent 70%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.t-table__wrap {
  overflow-x: auto;
}
.t-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.t-table th {
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-300);
  color: var(--gray-500);
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.t-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.5;
  vertical-align: top;
}
.t-table tr:last-child td {
  border-bottom: 0;
}
.t-table td:first-child {
  color: var(--graphite);
  font-weight: 600;
}
.t-table td b {
  color: var(--green-ink);
}
.t-table code {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--gray-200);
  color: var(--graphite);
  font-size: 13px;
  white-space: nowrap;
}
.t-table__note {
  margin: 16px 0 0;
  color: var(--gray-500);
  font-size: 14px;
  text-align: center;
}

.t-switches {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.t-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--gray-200);
  cursor: pointer;
  transition: border-color 0.2s;
}
.t-switch:hover {
  border-color: var(--gray-400);
}
.t-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.t-switch__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 600;
}
.t-switch__text small {
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 500;
}
.t-switch input:checked + .t-switch__text + .t-toggle__track {
  background: var(--green);
}
.t-switch input:checked + .t-switch__text + .t-toggle__track::after {
  transform: translateX(18px);
}
.t-switch input:focus-visible + .t-switch__text + .t-toggle__track {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.t-chips--flush {
  margin-top: 0;
}
.t-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  margin-top: 26px;
  border: 0;
  border-radius: 999px;
  background: var(--graphite);
  color: #fff;
  font: 600 16px/1 var(--font-family);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.t-btn svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}
.t-btn:hover:not(:disabled) {
  background: var(--graphite-hover);
}
.t-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.t-btn:disabled {
  background: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
}
.t-btn:disabled svg {
  color: inherit;
}

.t-variants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.t-variants:not(:empty) {
  margin-top: 18px;
}
.t-variants:not(:empty) + .t-copy {
  margin-top: 16px;
}
.t-variant {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  animation: t-variant-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes t-variant-in {
  from { opacity: 0; transform: translateY(8px); }
}
.t-variant__thumb {
  display: grid;
  place-items: center;
  height: 120px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.t-variant__thumb img {
  max-width: 100%;
  max-height: 104px;
  border-radius: 6px;
  object-fit: contain;
}
.t-variant__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
}
.t-variant__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.t-variant__name .t-status {
  padding: 4px 8px;
  font-size: 10px;
}
.t-variant__info {
  color: rgba(255, 255, 255, 0.45);
  font: 500 10px/1.3 var(--mono);
}
.t-variant__dl {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(15, 20, 25, 0.75);
  color: #fff;
  transition: background-color 0.2s;
}
.t-variant__dl:hover {
  background: var(--green);
}
.t-variant__dl svg {
  width: 16px;
  height: 16px;
}

.t-params--4 {
  grid-template-columns: repeat(4, 1fr);
}
.t-params--4 .t-param__code {
  white-space: normal;
}

@media (max-width: 1200px) {
  .t-params--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .t-tool__grid {
    grid-template-columns: 1fr;
  }
  .t-result {
    position: static;
  }
  .t-steps,
  .t-macros {
    grid-template-columns: 1fr;
  }
  .t-params {
    grid-template-columns: repeat(2, 1fr);
  }
  .t-article {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px;
  }
}
@media (max-width: 768px) {
  .hero--tool .hero-v1__head {
    padding-bottom: 100px;
  }
  .t-tool {
    margin-top: -110px;
  }
  .t-panel,
  .t-result__card {
    padding: 22px 18px;
    border-radius: 24px;
  }
  .t-cols {
    grid-template-columns: 1fr;
  }
  .t-cols .t-field + .t-field {
    margin-top: 12px;
  }
  .t-seg__btn {
    flex: 1 1 40%;
  }
  .t-custom__row {
    grid-template-columns: 1fr 1fr 44px;
  }
  .t-sec,
  .tool-page .faq-v2 {
    padding-top: 80px;
  }
  .t-params,
  .t-params--4,
  .t-fields {
    grid-template-columns: 1fr;
  }
  .t-stats,
  .t-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .t-table__title {
    padding: 18px 20px;
  }
  .t-article {
    padding: 28px 20px;
    border-radius: 24px;
  }
}
