:root {
	--ink: #1c2230;
	--muted: #6d7480;
	--paper: #f3f4f8;
	--card: #fdfdfe;
	--line: rgba(28, 34, 48, 0.12);
	--brand: #2166c9;
	--brand-dark: #174a94;
	--accent: #7d3ac4;
	--navy: #1a2238;
	--shadow: 0 18px 50px rgba(28, 34, 48, 0.1);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
	background: var(--paper);
	color: var(--ink);
	line-height: 1.6;
}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 14px clamp(20px, 5vw, 72px);
	background: rgba(253, 253, 254, 0.9);
	border-bottom: 1px solid rgba(28, 34, 48, 0.08);
	backdrop-filter: blur(18px);
	position: sticky;
	top: 0;
	z-index: 10;
}

.brand {
	display: flex;
	align-items: center;
	gap: 13px;
	color: var(--ink);
	text-decoration: none;
	flex-shrink: 0;
}

.logo {
	width: 52px;
	height: 52px;
	object-fit: contain;
	border-radius: 14px;
}

.brand-copy {
	display: grid;
	gap: 1px;
	line-height: 1.15;
	letter-spacing: 0.08em;
}

.brand-copy strong {
	font-size: 14px;
}

.brand-copy small {
	color: var(--muted);
	font-size: 9px;
	letter-spacing: 0.16em;
}

nav ul {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 38px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-link {
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.03em;
	transition: color 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
	color: var(--brand-dark);
}

.lang-switch {
	display: flex;
	gap: 5px;
}

.lang-btn,
.tab-btn,
.carousel-btn {
	font: inherit;
	cursor: pointer;
}

.lang-btn {
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	padding: 6px 12px;
	font-size: 12px;
	transition: 0.2s ease;
}

.lang-btn.active,
.lang-btn:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.section {
	display: none;
	position: relative;
	max-width: 1240px;
	min-height: calc(100vh - 81px);
	margin: 0 auto;
	padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.section.active {
	display: block;
}

#home {
	max-width: none;
	overflow: hidden;
	padding-top: 0;
}

.hero-bg {
	position: absolute;
	inset: 0 0 auto;
	height: 580px;
	background: linear-gradient(110deg, rgba(245, 242, 236, 0.3), rgba(245, 242, 236, 0.85)), url("images/bg.jpg") center/cover no-repeat;
	opacity: 0.7;
	mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(90px, 13vw, 170px) clamp(20px, 8vw, 110px) 24px;
}

.eyebrow {
	margin: 0 0 16px;
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.title {
	max-width: 760px;
	margin: 0;
	color: var(--navy);
	font-size: clamp(42px, 7vw, 86px);
	font-weight: 650;
	letter-spacing: -0.055em;
	line-height: 1.05;
}

html[lang="en"] .title {
	max-width: 1060px;
	font-size: clamp(34px, 6.5vw, 72px);
	letter-spacing: -0.03em;
}

.subtitle {
	max-width: 500px;
	margin: 26px 0 30px;
	color: var(--muted);
	font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 148px;
	padding: 12px 20px;
	border: 1px solid var(--brand);
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease;
}

.hero-cta:hover {
	background: var(--brand-dark);
	color: #fff;
	transform: translateY(-2px);
}

.hero-cta.secondary {
	background: rgba(253, 253, 254, 0.55);
	color: var(--navy);
}

.hero-cta.secondary:hover {
	background: var(--navy);
	color: #fff;
}

.carousel {
	position: relative;
	z-index: 1;
	width: min(100%, 1100px);
	margin: 58px auto 0;
	padding: 0 20px;
}

.carousel-inner {
	position: relative;
	height: clamp(330px, 52vw, 620px);
	overflow: hidden;
	border: 1px solid rgba(28, 34, 48, 0.08);
	border-radius: 28px;
	background: var(--card);
	box-shadow: var(--shadow);
}

.carousel-item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.carousel-item.active {
	z-index: 1;
	opacity: 1;
}

.carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 20px;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	width: 44px;
	height: 44px;
	transform: translateY(-50%);
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	background: rgba(26, 34, 56, 0.82);
	color: #fff;
	font-size: 22px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
	background: var(--brand);
	transform: translateY(-50%) scale(1.06);
}

.carousel-btn.prev { left: 34px; }
.carousel-btn.next { right: 34px; }

.section-heading {
	max-width: 680px;
	margin: 0 auto 42px;
	text-align: center;
}

.section-title {
	margin: 0;
	color: var(--navy);
	font-size: clamp(34px, 5vw, 58px);
	font-weight: 650;
	letter-spacing: -0.045em;
	line-height: 1.1;
}

.section-intro {
	margin: 16px auto 0;
	color: var(--muted);
	font-size: 16px;
}

.product-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 34px;
}

.tab-btn {
	padding: 10px 20px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	transition: 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}

.product-category {
	display: none;
}

.product-category.active {
	display: block;
}

.product-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.product-item {
	overflow: hidden;
	padding: 14px 14px 20px;
	border: 1px solid rgba(28, 34, 48, 0.08);
	border-radius: 20px;
	background: var(--card);
	box-shadow: 0 6px 24px rgba(28, 34, 48, 0.05);
	text-align: left;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-item:hover {
	box-shadow: 0 18px 38px rgba(28, 34, 48, 0.12);
	transform: translateY(-5px);
}

.fabric-thumb {
	display: block;
	width: 100%;
	height: 190px;
	margin: 0 0 17px;
	border-radius: 13px;
	box-shadow: none;
	object-fit: cover;
	cursor: zoom-in;
	transition: transform 0.35s ease;
}

.product-item:hover .fabric-thumb {
	transform: scale(1.025);
}

.product-info {
	padding: 0 5px;
}

.product-info h3 {
	margin: 0 0 5px;
	color: var(--navy);
	font-size: 17px;
	line-height: 1.3;
}

.product-info p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100;
	align-items: center;
	justify-content: center;
	background: rgba(13, 25, 29, 0.86);
	backdrop-filter: blur(8px);
}

.modal.show {
	display: flex;
}

.modal-content {
	max-width: min(88vw, 1000px);
	max-height: 84vh;
	border: 5px solid rgba(253, 253, 254, 0.92);
	border-radius: 18px;
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.close {
	position: fixed;
	top: 28px;
	right: 34px;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-family: inherit;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.close:hover {
	background: var(--brand);
}

.about-content,
.contact-info {
	max-width: 820px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 52px);
	border: 1px solid rgba(28, 34, 48, 0.08);
	border-radius: 24px;
	background: var(--card);
	box-shadow: var(--shadow);
	color: var(--muted);
	font-size: 17px;
}

.about-content p {
	margin: 0;
}

.contact-info p {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 12px;
	margin: 0;
	padding: 15px 0;
	border-bottom: 1px solid var(--line);
}

.contact-info p:last-child {
	border-bottom: 0;
}

.contact-info p span:first-child {
	color: var(--brand-dark);
	font-weight: 700;
}

.contact-info a {
	color: var(--brand-dark);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.contact-info a:hover {
	color: var(--brand);
	text-decoration: underline;
}

.footer {
	padding: 28px 20px;
	background: var(--navy);
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.04em;
}

.footer-content p {
	margin: 0;
}

@media (max-width: 780px) {
	header {
		flex-wrap: wrap;
		gap: 12px 20px;
		padding: 10px 16px;
	}

	.brand {
		margin-right: auto;
	}

	nav {
		order: 3;
		width: 100%;
		overflow-x: auto;
	}

	nav ul {
		justify-content: space-between;
		min-width: 320px;
		padding-bottom: 3px;
	}

	.lang-switch {
		margin-left: 0;
	}

	.title {
		font-size: clamp(38px, 12vw, 64px);
	}

	.hero-content {
		padding-top: 86px;
	}

	.carousel {
		margin-top: 42px;
		padding: 0 12px;
	}

	.carousel-inner {
		height: 330px;
		border-radius: 20px;
	}

	.carousel-btn.prev { left: 25px; }
	.carousel-btn.next { right: 25px; }

	.product-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.product-item {
		padding: 9px 9px 14px;
		border-radius: 15px;
	}

	.fabric-thumb {
		height: 145px;
		margin-bottom: 12px;
		border-radius: 10px;
	}

	.product-info h3 {
		font-size: 14px;
	}

	.product-info p {
		font-size: 12px;
	}

	.contact-info p {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}

@media (max-width: 420px) {
	.brand-copy {
		display: none;
	}

	.product-list {
		grid-template-columns: 1fr;
	}

	.fabric-thumb {
		height: 210px;
	}
}
