.tw-tools-section {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #ffffff;
	color: #111111;
	border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.tw-tools-wrap {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 110px 30px 105px;
}


/* =========================
   HEADER
========================= */

.tw-tools-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
	gap: 90px;
	align-items: end;
	margin-bottom: 65px;
}

.tw-tools-label {
	margin: 0 0 24px;
	color: #d4a72c;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: 0.16em;
}

.tw-tools-heading h2 {
	max-width: 650px;
	margin: 0;
	color: #111111;
	font-size: clamp(48px, 5.2vw, 72px);
	font-weight: 600;
	line-height: 0.94;
	letter-spacing: -0.06em;
}

.tw-tools-heading h2 span {
	display: block;
	color: #858585;
}

.tw-tools-intro {
	max-width: 440px;
	padding-bottom: 4px;
}

.tw-tools-intro p {
	margin: 0;
	color: #666666;
	font-size: 15px;
	line-height: 1.8;
}

.tw-tools-note {
	display: inline-block;
	margin-top: 24px;
	color: #999999;
	font-size: 7px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.15em;
}


/* =========================
   TOOL INTERFACE
========================= */

.tw-tools-interface {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	min-height: 470px;
	background: #f7f5f0;
	border: 1px solid rgba(17, 17, 17, 0.10);
}


/* =========================
   SIDEBAR
========================= */

.tw-tools-sidebar {
	padding: 28px 0;
	background: #111111;
}

.tw-tools-sidebar-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 25px 23px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.tw-tools-sidebar-top span {
	color: #777777;
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.16em;
}

.tw-tools-sidebar-top strong {
	color: #d4a72c;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: 400;
}

.tw-tools-nav {
	display: flex;
	flex-direction: column;
	margin-top: 12px;
}

.tw-tool-nav-item {
	position: relative;
	display: grid;
	grid-template-columns: 35px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 0 25px;
	border-left: 2px solid transparent;
	color: #777777 !important;
	text-decoration: none !important;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.tw-tool-nav-item span {
	color: #555555;
	font-size: 8px;
	font-weight: 700;
}

.tw-tool-nav-item strong {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.tw-tool-nav-item:hover {
	background: rgba(255, 255, 255, 0.04);
	color: #ffffff !important;
}

.tw-tool-nav-item.active {
	background: rgba(212, 167, 44, 0.08);
	border-left-color: #d4a72c;
	color: #ffffff !important;
}

.tw-tool-nav-item.active span {
	color: #d4a72c;
}


/* =========================
   MAIN PANEL
========================= */

.tw-tools-main {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 36px 40px 30px;
	background: #f7f5f0;
}

.tw-tools-main-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 25px;
	padding-bottom: 25px;
	border-bottom: 1px solid rgba(17, 17, 17, 0.10);
}

.tw-tools-current-label {
	display: block;
	margin-bottom: 9px;
	color: #d4a72c;
	font-size: 8px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.15em;
}

.tw-tools-main-top h3 {
	margin: 0;
	color: #111111;
	font-size: 32px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
}

.tw-tools-status {
	display: inline-flex;
	align-items: center;
	min-height: 23px;
	padding: 0 10px;
	border: 1px solid rgba(212, 167, 44, 0.40);
	color: #b88916;
	font-size: 7px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.10em;
}


/* =========================
   CHECKER
========================= */

.tw-tools-checker {
	padding: 50px 0 35px;
}

.tw-tools-input-label {
	margin-bottom: 12px;
	color: #888888;
	font-size: 8px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.14em;
}

.tw-tools-input-row {
	display: flex;
	width: 100%;
}

.tw-tools-input {
	flex: 1;
	min-height: 58px;
	display: flex;
	align-items: center;
	padding: 0 20px;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.12);
	color: #999999;
	font-size: 13px;
}

.tw-tools-input strong {
	color: #111111;
	font-weight: 500;
}

.tw-tools-run {
	min-width: 145px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #111111;
	color: #ffffff !important;
	font-size: 10px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.tw-tools-run span {
	color: #d4a72c;
	font-size: 16px;
}

.tw-tools-run:hover {
	background: #222222;
}

.tw-tools-helper {
	margin-top: 13px;
	color: #999999;
	font-size: 9px;
	line-height: 1.6;
}


/* =========================
   METRICS
========================= */

.tw-tools-metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid rgba(17, 17, 17, 0.10);
	border-bottom: 1px solid rgba(17, 17, 17, 0.10);
}

.tw-tools-metric {
	position: relative;
	min-height: 115px;
	padding: 21px 20px;
	border-right: 1px solid rgba(17, 17, 17, 0.10);
}

.tw-tools-metric:last-child {
	border-right: 0;
}

.tw-tools-metric > span {
	display: block;
	color: #d4a72c;
	font-size: 8px;
	font-weight: 700;
}

.tw-tools-metric strong {
	display: block;
	margin-top: 14px;
	color: #111111;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.10em;
}

.tw-tools-metric small {
	display: block;
	margin-top: 6px;
	color: #888888;
	font-size: 8px;
	line-height: 1.4;
}


/* =========================
   BOTTOM
========================= */

.tw-tools-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: auto;
	padding-top: 25px;
}

.tw-tools-bottom > span {
	color: #999999;
	font-size: 7px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.14em;
}

.tw-tools-bottom a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #111111 !important;
	font-size: 10px;
	font-weight: 700;
	text-decoration: none !important;
}

.tw-tools-bottom a span {
	color: #d4a72c;
	font-size: 15px;
}

.tw-tools-bottom a:hover {
	color: #d4a72c !important;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {

	.tw-tools-wrap {
		padding-top: 90px;
		padding-bottom: 85px;
	}

	.tw-tools-header {
		grid-template-columns: 1fr;
		gap: 35px;
		margin-bottom: 50px;
	}

	.tw-tools-intro {
		max-width: 650px;
	}

	.tw-tools-interface {
		grid-template-columns: 230px minmax(0, 1fr);
	}

	.tw-tools-main {
		padding-left: 30px;
		padding-right: 30px;
	}
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

	.tw-tools-wrap {
		padding: 70px 20px 70px;
	}

	.tw-tools-header {
		gap: 28px;
		margin-bottom: 42px;
	}

	.tw-tools-label {
		margin-bottom: 20px;
		font-size: 8px;
	}

	.tw-tools-heading h2 {
		font-size: clamp(43px, 11vw, 58px);
	}

	.tw-tools-intro p {
		font-size: 14px;
		line-height: 1.75;
	}

	.tw-tools-interface {
		grid-template-columns: 1fr;
	}

	.tw-tools-sidebar {
		padding: 20px 0;
	}

	.tw-tools-sidebar-top {
		padding: 0 20px 18px;
	}

	.tw-tools-nav {
		display: grid;
		grid-template-columns: 1fr 1fr;
		margin-top: 10px;
	}

	.tw-tool-nav-item {
		min-height: 52px;
		padding: 0 20px;
	}

	.tw-tools-main {
		padding: 28px 22px 25px;
	}

	.tw-tools-checker {
		padding-top: 38px;
	}

	.tw-tools-input-row {
		flex-direction: column;
	}

	.tw-tools-input {
		min-height: 54px;
	}

	.tw-tools-run {
		min-height: 52px;
	}

	.tw-tools-metrics {
		grid-template-columns: 1fr;
	}

	.tw-tools-metric {
		min-height: auto;
		padding: 18px 20px;
		border-right: 0;
		border-bottom: 1px solid rgba(17, 17, 17, 0.10);
	}

	.tw-tools-metric:last-child {
		border-bottom: 0;
	}

	.tw-tools-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 15px;
	}
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

	.tw-tools-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.tw-tools-nav {
		grid-template-columns: 1fr;
	}

	.tw-tool-nav-item {
		min-height: 48px;
	}

	.tw-tools-main {
		padding-left: 18px;
		padding-right: 18px;
	}

	.tw-tools-main-top h3 {
		font-size: 28px;
	}

	.tw-tools-status {
		font-size: 6px;
		padding: 0 8px;
	}

	.tw-tools-input {
		font-size: 12px;
	}
}