* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: Arial, sans-serif;
	color: #10233c;
	background: #ffffff;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

a {
	color: inherit;
}

.container {
	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 16px;
}

.topbar {
	background: #0f172a;
	color: #d6e2ff;
	font-size: 13px;
}

.topbar-inner {
	min-height: 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.topbar-inner p {
	margin: 0;
}

.topbar-links {
	display: flex;
	align-items: center;
	gap: 14px;
}

.topbar-links a {
	text-decoration: none;
	opacity: 0.95;
}

.site-header {
	border-bottom: 1px solid #e6ecf4;
	background: #ffffff;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 76px;
}

.logo {
	text-decoration: none;
	color: #0b4db3;
	font-weight: 700;
	letter-spacing: 0.4px;
}

.search-box {
	display: flex;
	align-items: center;
	width: min(620px, 100%);
	border: 1px solid #c9d7ef;
	border-radius: 8px;
	overflow: hidden;
}

.search-box input {
	flex: 1;
	border: 0;
	padding: 12px 14px;
	font-size: 14px;
	outline: none;
}

.search-box button {
	border: 0;
	padding: 12px 18px;
	background: #0b4db3;
	color: #fff;
	cursor: pointer;
	font-weight: 600;
}

.main-nav {
	background: #123d83;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 24px;
}

.nav-toggle {
	display: none;
	width: 42px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 8px;
	background: transparent;
	padding: 6px 8px;
	cursor: pointer;
	flex-direction: column;
	justify-content: space-between;
}

.nav-toggle span {
	display: block;
	height: 2px;
	background: #ffffff;
	border-radius: 999px;
}

.nav-links a {
	text-decoration: none;
	color: #eaf1ff;
	font-size: 14px;
	font-weight: 600;
}

.hero {
	padding: 56px 0;
	background: linear-gradient(135deg, #eef4ff 0%, #ffffff 100%);
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	gap: 28px;
}

.hero-grid > div:first-child {
	max-width: 760px;
}

.badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #dce9ff;
	color: #0b4db3;
	font-size: 13px;
	font-weight: 700;
}

.hero h2 {
	margin: 14px 0 12px;
	font-size: 42px;
	line-height: 1.2;
}

.hero p {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	color: #3b4d66;
	max-width: 760px;
}

.hero-actions {
	margin-top: 22px;
	display: flex;
	gap: 12px;
}

.btn {
	display: inline-block;
	padding: 11px 18px;
	background: #0b4db3;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
}

.btn-outline {
	background: transparent;
	color: #0b4db3;
	border: 1px solid #0b4db3;
}

.hero-panel {
	background: #ffffff;
	border: 1px solid #d9e4f5;
	border-radius: 12px;
	padding: 20px;
}

.promo-panel {
	position: relative;
	min-height: 300px;
	overflow: hidden;
}

.promo-banner {
	display: none;
	text-decoration: none;
	border: 1px solid #cfe0ff;
	border-radius: 10px;
	padding: 16px;
	background: linear-gradient(145deg, #f7faff 0%, #e9f1ff 100%);
	transition: transform 0.2s ease;
}

.promo-banner:hover {
	transform: translateY(-2px);
}

.promo-banner.is-active {
	display: block;
}

.promo-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #0b4db3;
	background: #d9e7ff;
	padding: 4px 8px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.promo-banner strong {
	display: block;
	font-size: 24px;
	line-height: 1.3;
	margin-bottom: 8px;
}

.promo-banner p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #2f486d;
}

.promo-link {
	display: inline-block;
	margin-top: 12px;
	color: #0b4db3;
	font-weight: 700;
}

.promo-dots {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}

.promo-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #b9c9e8;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.promo-dot.is-active {
	background: #0b4db3;
}

.hero-panel h3 {
	margin: 0 0 12px;
	font-size: 18px;
}

.hero-panel ul {
	margin: 0;
	padding-left: 20px;
	display: grid;
	gap: 8px;
}

.section {
	padding: 44px 0;
	content-visibility: auto;
	contain-intrinsic-size: 1px 600px;
}

.section-muted {
	background: #f6f9ff;
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.section-head h3 {
	margin: 0;
	font-size: 24px;
}

.section-head a {
	color: #0b4db3;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.category-card {
	border: 1px solid #d9e4f5;
	border-radius: 10px;
	padding: 14px;
	text-decoration: none;
	background: #fff;
	font-weight: 600;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.product-card {
	border: 1px solid #d9e4f5;
	border-radius: 12px;
	background: #fff;
	padding: 14px;
}

.thumb {
	height: 120px;
	border-radius: 8px;
	background: linear-gradient(135deg, #edf3ff 0%, #dfe9fb 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #3d5a88;
	font-weight: 700;
	margin-bottom: 12px;
}

.product-card h4 {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.35;
}

.product-card p {
	margin: 0 0 10px;
	color: #475c7c;
	line-height: 1.55;
	font-size: 14px;
}

.product-card strong {
	color: #c91818;
}

.brand-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.brand-item {
	border: 1px dashed #adc3ea;
	border-radius: 10px;
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	font-weight: 700;
	color: #23477e;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.news-card {
	border: 1px solid #d9e4f5;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
}

.news-card h4 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.35;
}

.news-card p {
	margin: 0 0 8px;
	color: #4b5f7d;
	line-height: 1.55;
}

.news-card a {
	text-decoration: none;
	color: #0b4db3;
	font-weight: 700;
}

.site-footer {
	padding: 46px 0;
	background: #0f172a;
	color: #d1dcf7;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 22px;
}

.site-footer h4 {
	margin: 0 0 10px;
	color: #fff;
}

.site-footer p {
	margin: 0;
	line-height: 1.6;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.site-footer a {
	text-decoration: none;
}

.flash {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
}

.flash-success {
	background: #e7f8ed;
	color: #0b6a2a;
	border: 1px solid #b7e7c7;
}

.flash-error {
	background: #ffefef;
	color: #a31818;
	border: 1px solid #ffcaca;
}

.panel {
	background: #ffffff;
	border: 1px solid #d9e4f5;
	border-radius: 12px;
	padding: 16px;
}

.portal-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.stats-grid .panel p {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	color: #0b4db3;
}

.form-grid {
	display: grid;
	gap: 12px;
}

.form-grid label {
	display: grid;
	gap: 6px;
	font-size: 14px;
	color: #203656;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
	width: 100%;
	border: 1px solid #cdd9ef;
	border-radius: 8px;
	padding: 10px 12px;
	outline: none;
}

.table {
	width: 100%;
	border-collapse: collapse;
}

.table th,
.table td {
	border-bottom: 1px solid #e1e8f5;
	padding: 10px;
	font-size: 14px;
	text-align: left;
}

.table th {
	background: #f4f7fd;
	color: #1e3558;
}

@media (max-width: 1024px) {
	.hero-grid,
	.product-grid,
	.news-grid,
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.promo-banner strong {
		font-size: 20px;
	}

	.category-grid,
	.brand-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.topbar-inner,
	.header-inner,
	.section-head,
	.hero-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.nav-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 10px 0;
		position: relative;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.nav-links {
		display: none;
		position: absolute;
		top: calc(100% + 6px);
		left: 0;
		right: 0;
		background: #123d83;
		border-radius: 10px;
		padding: 10px 12px;
		box-shadow: 0 10px 24px rgba(8, 23, 53, 0.2);
		flex-direction: column;
		gap: 0;
		z-index: 30;
	}

	.main-nav.is-open .nav-links {
		display: flex;
	}

	.nav-links a {
		width: 100%;
		padding: 10px 4px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.nav-links a:last-child {
		border-bottom: 0;
	}

	.search-box {
		width: 100%;
	}

	.hero h2 {
		font-size: 30px;
	}

	.hero-grid,
	.category-grid,
	.product-grid,
	.brand-grid,
	.news-grid,
	.footer-grid,
	.portal-grid,
	.stats-grid {
		grid-template-columns: 1fr;
	}

	.table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.site-footer {
		padding: 34px 0 calc(24px + env(safe-area-inset-bottom));
	}

	.footer-grid {
		gap: 18px;
	}
}
