/* ==========================================================================
   Front page (layout ported from maxxt-tech.tr: navy + orange, wide bands)

   Numbers below are the live page's computed values at 1440px, in px on
   purpose: the theme's fluid root font-size inflates rem sizes by ~13% at
   desktop and the reference does not scale that way. .tr's own breakpoints
   (1023 / 767) are kept.
   ========================================================================== */

.th {
	--th-navy: #1b1f2b;
	--th-navy-2: #0d1b43;
	--th-orange: #ee6e00;
	--th-light: #ebebeb;
	--th-line: #666666;
	--th-p: 16px;
	--th-h2: 40px;
	--th-h4: 24px;
	--th-h3: 32px;
}

.th section {
	box-sizing: border-box;
}

/* every band is full-bleed for its background; the content sits in the same
   1920px + 8% box as the footer, so all gutters line up */
.th-inner {
	max-width: 1920px;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 72px 8%;
}

.th h1,
.th h2,
.th h3,
.th h4 {
	font-family: var(--font-head);
	margin: 0;
	color: #fff;
}

.th h2 {
	font-size: var(--th-h2);
	line-height: 1.3;
}

.th p {
	margin: 0;
	color: var(--th-light);
	font-size: var(--th-p);
	line-height: 2;
}

/* ---------- orange button ---------- */
.th-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	padding: 8px 32px;
	font-size: var(--th-p);
	line-height: 2;
	border-radius: 3px;
	background: var(--th-orange);
	color: #fff;
	transition: background 0.3s ease;
}

.th-btn svg {
	flex: none;
}

.th-btn:hover,
.th-btn:focus-visible {
	background: var(--th-navy);
}

/* ---------- 1. hero ---------- */
.th-hero {
	position: relative;
}

.th-hero__strip {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.th-hero__strip::-webkit-scrollbar {
	display: none;
}

.th-hero__slide {
	flex: 0 0 100%;
	min-height: 100vh;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	padding: 5% 8%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	scroll-snap-align: start;
}

.th-hero__card {
	width: 60%;
	max-width: 760px;
	box-sizing: border-box;
	padding: 48px 56px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	background: rgba(27, 31, 43, 0.7);
	transition: background-color 0.3s ease;
}

/* the live card (maxxt-tech.ru) turns orange under the pointer and the orange CTA
   flips to navy so it does not disappear into the panel */
@media (hover: hover) {
	.th-hero__card:hover {
		background: var(--th-orange);
	}

	.th-hero__card:hover .th-btn {
		background: var(--th-navy);
	}
}

.th-hero__card h1 {
	font-size: var(--th-h2);
	line-height: 1.3;
	font-weight: 700;
}

.th-hero__card p {
	margin-bottom: 14.4px;
	color: #fff;
}

.th-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 40px;
	background: #fff;
	color: #000;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
}

.th-hero__nav:hover {
	color: var(--th-orange);
}

/* chevrons drawn with borders: no icon font needed */
.th-hero__nav::before {
	content: "";
	width: 9px;
	height: 9px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
}

.th-hero__nav--prev {
	left: 40px;
}

.th-hero__nav--prev::before {
	transform: rotate(-45deg) translate(1px, 1px);
}

.th-hero__nav--next {
	right: 40px;
}

.th-hero__nav--next::before {
	transform: rotate(135deg) translate(1px, 1px);
}

.th-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 30px;
	display: flex;
	justify-content: center;
	gap: 20px;
}

.th-hero__dots button {
	width: 16px;
	height: 16px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.th-hero__dots button[aria-current="true"] {
	background: var(--th-orange);
}

/* ---------- 2. why cooperate ---------- */
.th-why {
	position: relative;
}

.th-why::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../assets/img/home-tr/globe.jpg") no-repeat center left / contain;
	opacity: 0.5;
}

.th-why__inner {
	position: relative;
	box-sizing: border-box;
	max-width: 1920px;
	margin: 0 auto;
	padding: 72px 8%;
	/* the Turkish original fills this band with longer copy; the Korean text is
	   short, so give the band a real height instead of letting it go flat (the
	   globe is background-size:contain, it grows with the box) */
	min-height: clamp(280px, 21vw, 420px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.th-why h2 {
	width: 55%;
	color: var(--ink);
}

.th-why p {
	width: 40%;
	color: var(--ink);
}

/* ---------- 3. catalog banner ---------- */
.th-catalog {
	position: relative;
	background: url("../assets/img/home-tr/catalog-bg.jpg") center center / cover no-repeat;
}

.th-catalog .th-inner {
	padding-bottom: 0;
}

.th-catalog__card {
	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
	padding: 38px 128px 192px;
	text-align: center;
	background: rgba(255, 255, 255, 0.7);
}

.th-catalog__card h2 {
	color: var(--th-navy);
}

.th-catalog__card p {
	margin-top: 20px;
	color: var(--th-navy);
	text-align: center;
}

/* the product strip is full-bleed and glued to the card's bottom edge */
.th-catalog__tools {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	width: 100%;
}

/* ---------- 4. main products ---------- */
.th-products {
	background: linear-gradient(180deg, var(--th-navy) 0%, var(--th-navy-2) 100%);
}

.th .th-products__title {
	color: var(--th-orange);
}

.th-products__lead {
	margin-top: 20px;
	max-width: 1280px;
}

.th-prod {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: stretch;
	gap: 20px;
	padding: 64px 0;
	border-top: 1.5px solid var(--ink);
}

.th-prod__body {
	width: 67%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.th-prod__head {
	position: relative;
	font-size: var(--th-h2);
	line-height: 1.3;
}

.th-prod__head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -10px;
	width: 50px;
	height: 3px;
	background: var(--th-orange);
}

.th-prod__body h4 {
	font-size: var(--th-h4);
	line-height: 1.6;
	font-weight: 400;
}

.th-prod__card {
	position: relative;
	width: 30%;
	box-sizing: border-box;
	padding: 8px;
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	background-clip: content-box;
	border: 1px solid var(--th-line);
}

.th-prod--flip .th-prod__card {
	order: 1;
}

.th-prod__label {
	width: 100%;
	box-sizing: border-box;
	padding: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	background: rgba(27, 31, 43, 0.6);
	color: #fff;
	font-size: var(--th-p);
}

/* ---------- 5. technology cards (autoplay strip, hover lifts the caption) ---------- */
.th-tech h2 {
	color: var(--ink);
}

.th-cards {
	position: relative;
	margin-top: 48px;
}

/* 4px progress line the reference draws on the strip's top edge */
.th-cards__bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	height: 4px;
	background: rgba(0, 0, 0, 0.1);
}

.th-cards__bar span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--th-navy);
}

.th-cards__bar span.is-running {
	animation: th-progress 3s linear forwards;
}

@keyframes th-progress {
	from { width: 0; }
	to { width: 100%; }
}

.th-cards__strip {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	/* drag to scroll with the mouse */
	cursor: grab;
}

.th-cards__strip.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.th-cards__strip::-webkit-scrollbar {
	display: none;
}

.th-card {
	position: relative;
	flex: 0 0 calc((100% - 45px) / 4);
	height: 350px;
	overflow: hidden;
	border-radius: 10px;
	background-size: cover;
	background-position: center center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	scroll-snap-align: start;
}

.th-card__title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	margin: 0;
	padding: 20px 20px 0;
	font-size: var(--th-p);
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
	transition: bottom 0.3s ease, background 0.3s ease;
}

/* the copy slides up from below; js keeps it exactly one panel-height down */
.th-card__text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 80%;
	margin: 0;
	padding: 10px 20px 20px;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	color: #fff;
	background: rgba(2, 12, 39, 0.75);
	transition: bottom 0.3s ease;
}

.th-card:hover .th-card__title {
	background: rgba(2, 12, 39, 0.75);
}

/* ---------- 6. dealer support band ---------- */
.th-support {
	position: relative;
}

.th-support::before,
.th-support::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
}

.th-support::before {
	left: 0;
	width: 60%;
	background: url("../assets/img/home-tr/support-photo.jpg") no-repeat center center / cover;
}

.th-support::after {
	right: 0;
	width: 40%;
	background: var(--th-orange);
}

.th-support__inner {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	max-width: 1920px;
	margin: 0 auto;
	padding: 72px 8%;
}

.th-support__logo {
	position: absolute;
	right: 40px;
	/* hangs below the band, clear of the card's CTA */
	bottom: -72px;
	z-index: 3;
	width: 227px;
}

.th-support__card {
	box-sizing: border-box;
	width: 55%;
	margin-left: auto;
	padding: 48px 40px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.th-support__card h3 {
	font-size: var(--th-h3);
	line-height: 1.6;
	color: var(--th-navy);
}

.th-support__card p {
	color: var(--ink);
}

/* ---------- 7. cooperation tabs ---------- */
.th-tabs {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.th-tabs__panels {
	flex: 1;
	min-width: 0;
}

.th-tabs__panel h3 {
	font-size: var(--th-p);
	line-height: 1.3;
	font-weight: 700;
	color: var(--ink);
}

.th-tabs__panel h3 + p {
	margin-top: 0;
}

.th-tabs__panel p {
	color: var(--ink);
}

.th-tabs__panel p + h3 {
	margin-top: 24px;
}

.th-tabs__nav {
	width: 32%;
	flex: none;
	display: flex;
	flex-direction: column;
	padding: 20px 0;
	border-left: 1px solid #bebebe;
}

.th-tabs__nav button {
	padding: 15px;
	border: 0;
	border-bottom: 1px solid var(--th-light);
	border-radius: 0 0 0 3px;
	background: #fff;
	color: #666;
	font-family: var(--font);
	font-size: var(--th-p);
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s ease;
}

.th-tabs__nav button:hover {
	color: var(--th-orange);
}

.th-tabs__nav button[aria-selected="true"] {
	margin-left: -1.5px;
	border-left: 3px solid var(--th-orange);
	color: var(--th-orange);
}

/* ---------- 8. distributor cta ---------- */
.th-cta {
	position: relative;
	background: url("../assets/img/home-tr/cta-bg.jpg") center center / cover no-repeat;
}

.th-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	/* .tr ships 0.2, which leaves white copy unreadable over the photo */
	background: rgba(0, 0, 0, 0.45);
}

.th-cta__inner {
	position: relative;
	box-sizing: border-box;
	max-width: 1920px;
	margin: 0 auto;
	padding: 72px 8%;
	display: flex;
	align-items: center;
	gap: 60px;
}

.th-cta__text {
	width: 79%;
}

.th-cta__text h2 {
	font-size: var(--th-h3);
	line-height: 1.6;
}

.th-cta__text p {
	margin-top: 16px;
	color: #fff;
}

.th-cta .th-btn {
	flex: none;
	margin-left: auto;
	/* .th-btn is flex-start for the column cards; on this row the live button sits
	   on the band's middle line while the copy wraps around it */
	align-self: center;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.th-inner,
	.th-why__inner,
	.th-support__inner,
	.th-cta__inner {
		padding: 48px 30px;
	}

	.th-catalog .th-inner {
	padding-bottom: 0;
}

.th-catalog__card {
		padding: 30px 40px 120px;
	}

	.th-hero__card {
		width: 80%;
		padding: 32px 36px;
	}

	.th-prod__body {
		width: 100%;
	}

	.th-prod__card {
		width: 100%;
		order: 0;
		min-height: 320px;
	}

	/* the flip rows only swap sides on wide screens: below it the image always
	   sits above its copy (this selector outranks the plain .th-prod__card above) */
	.th-prod--flip .th-prod__card {
		order: 0;
	}

	.th-card {
		flex: 0 0 calc((100% - 30px) / 3);
	}

	.th-tabs {
		flex-direction: column;
	}

	.th-tabs__nav {
		order: -1;
		width: 100%;
		padding: 0;
		margin-bottom: 24px;
		border-left: 0;
	}

	.th-support__card {
		width: 70%;
		padding: 32px 24px;
	}

	.th-cta__text {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.th {
		--th-h2: 26px;
		--th-h3: 22px;
		--th-h4: 18px;
		--th-p: 15px;
	}

	.th-inner,
	.th-why__inner,
	.th-support__inner,
	.th-cta__inner {
		padding: 32px 16px;
	}

	.th-hero__slide {
		/* the card is 5-6 lines tall here: no viewport-height floor, or the
		   band just adds empty background above it. The 72px top only clears
		   the 60px bar the front page floats over the slide. */
		min-height: 0;
		padding: 72px 10px 48px;
		align-items: flex-end;
	}
	.th-hero__card {
		width: 100%;
		max-width: 100%;
		padding: 15px;
		gap: 12px;
	}

	.th-hero__nav {
		display: none;
	}

	.th-hero__dots {
		bottom: 15px;
	}

	.th-catalog .th-inner {
	padding-bottom: 0;
}

.th-catalog__card {
		padding: 24px 16px;
	}

	.th-catalog__tools {
		position: static;
		margin-top: 16px;
	}

	.th-card {
		flex: 0 0 calc((100% - 10px) / 2);
		height: 300px;
	}

	.th-cards__strip {
		gap: 10px;
	}

	.th-why h2,
	.th-why p {
		width: 100%;
	}

	.th-support {
		padding-bottom: 40px;
	}

	.th-support::before {
		position: static;
		display: block;
		width: 100%;
		height: 240px;
	}

	.th-support::after {
		top: auto;
		height: 40px;
		width: 100%;
	}

	.th-support__inner {
		padding: 0 16px;
	}

	.th-support__card {
		width: 100%;
		margin-top: -40px;
		padding: 20px;
	}

	.th-cta__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.th-cta .th-btn {
		margin-left: 0;
		align-self: flex-start;
	}
}

@media (max-width: 767px) {
	.th-why__inner {
		min-height: 0;
		padding: 48px 6%;
	}

	/* tapping a tab is a poor fit for a phone: the four panels are laid out flat,
	   each under its own title (the label the tab row used to carry) */
	.th-tabs__nav {
		display: none;
	}

	.th-tabs__panel[hidden] {
		display: block;
	}

	.th-tabs__panel::before {
		content: attr(data-title);
		display: block;
		margin-bottom: 16px;
		/* a section title, well clear of the 16px panel headings below it */
		font-size: var(--th-h2);
		line-height: 1.3;
		font-weight: 700;
		color: var(--th-orange);
	}

	.th-tabs__panel + .th-tabs__panel {
		margin-top: 28px;
		padding-top: 28px;
		border-top: 1px solid var(--th-line);
	}
}
