/* =========================================================================
   Tensolink EN — main stylesheet
   Modern industrial look: dark navy base + brand-red accent.
   Brand colours can be changed in Appearance > Customize > Tensolink Options.
   ========================================================================= */

:root {
	--tenso-primary: #e11d2e;   /* accent (overridden by Customizer) */
	--tenso-dark: #0b1a2b;      /* base dark (overridden by Customizer) */
	--tenso-dark-2: #12233a;
	--tenso-light: #f4f6f9;
	--tenso-muted: #5e6d7d;
	--tenso-line: #e3e9f0;
	--tenso-white: #ffffff;

	--font-head: 'Archivo', 'Segoe UI', Arial, sans-serif;
	--font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: #22303c;
	background: var(--tenso-white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tenso-primary); text-decoration: none; }
a:hover { color: var(--tenso-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 800;
	line-height: 1.2;
	color: var(--tenso-dark);
	margin: 0 0 .5em;
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important;
}
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; background: var(--tenso-primary); color: #fff; padding: 8px 16px; z-index: 999; }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-head); font-weight: 700; font-size: 15px;
	letter-spacing: .02em; text-transform: uppercase;
	padding: 14px 26px; border-radius: 4px;
	transition: all .2s ease; cursor: pointer;
	border: 2px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--tenso-primary); color: #fff; }
.btn--primary:hover { background: var(--tenso-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: var(--tenso-dark); border-color: #fff; }
.btn--outline { background: transparent; color: var(--tenso-dark); border-color: var(--tenso-dark); }
.btn--outline:hover { background: var(--tenso-dark); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 13px; }

/* ---------- Header ---------- */
.topbar { background: var(--tenso-dark); color: #c9d4df; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__contact a { color: #c9d4df; display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact a:hover { color: #fff; }
.topbar__contact svg { width: 14px; height: 14px; color: var(--tenso-primary); }

.navbar { background: #fff; border-bottom: 1px solid var(--tenso-line); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(11,26,43,.06); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: baseline; font-family: var(--font-head); font-weight: 900; font-size: 26px; line-height: 1; }
.brand__tenso { color: var(--tenso-dark); letter-spacing: .04em; }
.brand__link { color: var(--tenso-primary); margin-left: 3px; }
.site-header .custom-logo { max-height: 56px; width: auto; }

.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 6px; align-items: center; }
.nav__list li { position: relative; }
.nav__list a {
	display: block; padding: 10px 14px; color: var(--tenso-dark);
	font-family: var(--font-head); font-weight: 600; font-size: 15px;
}
.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: var(--tenso-primary); }
.nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--tenso-line);
	box-shadow: 0 8px 24px rgba(11,26,43,.12); min-width: 220px; list-style: none;
	margin: 0; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.nav__list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__list .sub-menu a { padding: 8px 18px; font-weight: 500; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--tenso-dark); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(11,26,43,.96) 0%, rgba(11,26,43,.82) 45%, rgba(11,26,43,.55) 100%);
}
.hero__inner { position: relative; padding: 120px 24px 140px; max-width: 1240px; }
.hero__eyebrow {
	font-family: var(--font-head); font-weight: 700; letter-spacing: .22em; font-size: 13px;
	color: var(--tenso-primary); text-transform: uppercase; margin: 0 0 18px;
}
.hero__title { font-size: clamp(34px, 5.4vw, 62px); color: #fff; max-width: 760px; margin-bottom: 22px; }
.hero__subtitle { font-size: 18px; color: #d4dde6; max-width: 640px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { background: var(--tenso-dark); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stats__item { padding: 40px 24px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.stats__item:first-child { border-left: 0; }
.stats__num { display: block; font-family: var(--font-head); font-weight: 900; font-size: 40px; color: var(--tenso-primary); line-height: 1; margin-bottom: 8px; }
.stats__label { font-size: 14px; color: #b9c6d4; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--tint { background: var(--tenso-light); }
.section__head { max-width: 680px; margin-bottom: 46px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__eyebrow {
	font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
	letter-spacing: .18em; font-size: 13px; color: var(--tenso-primary); margin: 0 0 10px;
}
.section__title { font-size: clamp(26px, 3.4vw, 38px); }

/* ---------- Category cards ---------- */
.cats { background: var(--tenso-light); }
.cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cat-card {
	display: block; background: #fff; border: 1px solid var(--tenso-line); border-radius: 6px;
	overflow: hidden; transition: all .25s ease; color: inherit;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(11,26,43,.12); border-color: transparent; }
.cat-card__media { display: block; height: 220px; background: var(--tenso-dark); position: relative; overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__icon {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--tenso-primary);
}
.cat-card__icon svg { width: 64px; height: 64px; }
.cat-card__body { display: block; padding: 26px; }
.cat-card__title { font-size: 20px; margin-bottom: 10px; }
.cat-card__text { color: var(--tenso-muted); font-size: 15px; margin-bottom: 16px; }
.cat-card__more { font-family: var(--font-head); font-weight: 700; font-size: 14px; text-transform: uppercase; color: var(--tenso-primary); display: inline-flex; align-items: center; gap: 6px; }
.cat-card__more svg { width: 16px; height: 16px; }

/* ---------- Compatibility ---------- */
.compat { background: var(--tenso-dark-2); color: #fff; padding: 56px 0; }
.compat__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.compat__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.compat__brands { display: flex; list-style: none; margin: 0; padding: 0; gap: 12px; flex-wrap: wrap; }
.compat__brands li {
	font-family: var(--font-head); font-weight: 800; font-size: 16px; letter-spacing: .04em;
	padding: 10px 22px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; color: #e6edf4;
}

/* ---------- Products ---------- */
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.products__more { text-align: center; margin-top: 44px; }
.product-card { border: 1px solid var(--tenso-line); border-radius: 6px; overflow: hidden; background: #fff; transition: all .25s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(11,26,43,.12); }
.product-card__link { display: block; color: inherit; }
.product-card__media { display: block; height: 210px; background: var(--tenso-light); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #b6c3d0; }
.product-card__placeholder svg { width: 54px; height: 54px; }
.product-card__body { display: block; padding: 22px; }
.product-card__model { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--tenso-primary); text-transform: uppercase; margin-bottom: 6px; }
.product-card__title { font-size: 17px; margin-bottom: 6px; }
.product-card__compat { display: block; color: var(--tenso-muted); font-size: 13px; margin-bottom: 12px; }
.product-card__more { font-family: var(--font-head); font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--tenso-dark); display: inline-flex; align-items: center; gap: 6px; }
.product-card__more svg { width: 15px; height: 15px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__media img { border-radius: 6px; }
.about__media-placeholder { height: 360px; background: var(--tenso-dark); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--tenso-primary); }
.about__media-placeholder svg { width: 70px; height: 70px; }
.about__text { color: var(--tenso-muted); margin-bottom: 26px; }

/* ---------- Features ---------- */
.features { background: var(--tenso-light); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature { background: #fff; border: 1px solid var(--tenso-line); border-radius: 6px; padding: 30px 26px; }
.feature__icon { display: inline-flex; width: 54px; height: 54px; border-radius: 6px; background: var(--tenso-dark); color: var(--tenso-primary); align-items: center; justify-content: center; margin-bottom: 18px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature__title { font-size: 17px; margin-bottom: 8px; }
.feature__text { color: var(--tenso-muted); font-size: 14px; margin: 0; }

/* ---------- News ---------- */
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { border: 1px solid var(--tenso-line); border-radius: 6px; overflow: hidden; background: #fff; transition: all .25s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(11,26,43,.12); }
.news-card__link { display: block; color: inherit; }
.news-card__media { display: block; height: 200px; background: var(--tenso-light); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #b6c3d0; }
.news-card__placeholder svg { width: 50px; height: 50px; }
.news-card__body { display: block; padding: 22px; }
.news-card__date { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tenso-muted); }
.news-card__title { font-size: 18px; margin: 8px 0 8px; }
.news-card__excerpt { color: var(--tenso-muted); font-size: 14px; margin-bottom: 14px; }
.news-card__more { font-family: var(--font-head); font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--tenso-primary); display: inline-flex; align-items: center; gap: 6px; }
.news-card__more svg { width: 15px; height: 15px; }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(110deg, var(--tenso-primary) 0%, #b01220 100%); color: #fff; padding: 70px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta__title { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.cta__text { color: rgba(255,255,255,.9); margin: 0; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta__actions .btn--ghost { border-color: rgba(255,255,255,.6); }

/* ---------- Interior page header ---------- */
.pagehead { background: var(--tenso-dark); color: #fff; padding: 64px 0; }
.pagehead__inner { max-width: 1240px; }
.pagehead__title { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 8px; }
.pagehead__subtitle { color: #c3d0dc; max-width: 720px; margin: 0; }

/* ---------- Page body / entry ---------- */
.page-body { padding: 70px 24px; }
.page-body--narrow { max-width: 860px; }
.entry__thumb { margin-bottom: 30px; border-radius: 6px; overflow: hidden; }
.entry__thumb img { width: 100%; }
.entry__meta { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; color: var(--tenso-muted); font-size: 14px; }
.entry__content { max-width: 860px; }
.entry__content p { margin-bottom: 1.2em; }
.entry__content img { border-radius: 6px; }
.entry__content h2, .entry__content h3 { margin-top: 1.4em; }
.entry__nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--tenso-line); font-family: var(--font-head); font-weight: 600; }

/* ---------- Products page ---------- */
.products-page { padding: 56px 24px 80px; }
.products-page__filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
	font-family: var(--font-head); font-weight: 600; font-size: 14px;
	padding: 9px 18px; border: 1px solid var(--tenso-line); border-radius: 999px; color: var(--tenso-muted);
	background: #fff; transition: all .2s ease;
}
.chip:hover { border-color: var(--tenso-primary); color: var(--tenso-primary); }
.chip.is-active { background: var(--tenso-primary); border-color: var(--tenso-primary); color: #fff; }

/* ---------- Single product ---------- */
.product-single { padding: 56px 24px; }
.product-single__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.product-single__media { background: var(--tenso-light); border: 1px solid var(--tenso-line); border-radius: 6px; overflow: hidden; align-self: start; }
.product-single__media img { width: 100%; }
.product-single__placeholder { min-height: 360px; display: flex; align-items: center; justify-content: center; color: #b6c3d0; }
.product-single__placeholder svg { width: 80px; height: 80px; }
.product-single__info p { margin: 0 0 12px; color: var(--tenso-muted); }
.product-single__info strong { color: var(--tenso-dark); }
.product-single__excerpt { border-left: 3px solid var(--tenso-primary); padding-left: 16px; margin: 18px 0 !important; }
.product-single__h { font-size: 20px; margin: 26px 0 14px; }
.product-single__actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.product-single__desc { max-width: 100%; }

.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--tenso-line); border-radius: 6px; overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--tenso-line); font-size: 14px; }
.spec-table th { width: 42%; background: var(--tenso-light); color: var(--tenso-dark); font-family: var(--font-head); font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.related { background: var(--tenso-light); }

/* ---------- Contact page ---------- */
.contact-page { padding: 70px 24px; }
.contact-page__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-page__cards { display: grid; gap: 20px; align-content: start; }
.contact-card { background: #fff; border: 1px solid var(--tenso-line); border-radius: 6px; padding: 26px; }
.contact-card__icon { display: inline-flex; width: 46px; height: 46px; border-radius: 6px; background: var(--tenso-dark); color: var(--tenso-primary); align-items: center; justify-content: center; margin-bottom: 14px; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__title { font-size: 16px; margin-bottom: 6px; }
.contact-card__text { color: var(--tenso-muted); margin: 0; }

/* ---------- Search ---------- */
.search__list { display: grid; gap: 24px; max-width: 860px; }
.search__item { border-bottom: 1px solid var(--tenso-line); padding-bottom: 20px; }
.search__title { font-size: 20px; }
.search__excerpt { color: var(--tenso-muted); }

/* ---------- Not found ---------- */
.notfound__code { font-family: var(--font-head); font-weight: 900; font-size: 96px; color: var(--tenso-primary); line-height: 1; margin: 0; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
	padding: 0 12px; border: 1px solid var(--tenso-line); border-radius: 4px; color: var(--tenso-dark);
	font-family: var(--font-head); font-weight: 600; font-size: 14px;
}
.pagination .current { background: var(--tenso-primary); border-color: var(--tenso-primary); color: #fff; }
.pagination a:hover { border-color: var(--tenso-primary); color: var(--tenso-primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--tenso-dark); color: #b9c6d4; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 70px 24px 50px; }
.footer__col--brand .brand__tenso { color: #fff; }
.footer__about { color: #9fb0c0; font-size: 14px; max-width: 340px; margin-top: 18px; }
.footer__title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__menu a { color: #b9c6d4; font-size: 14px; }
.footer__menu a:hover { color: #fff; }
.footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.footer__contact svg { width: 18px; height: 18px; color: var(--tenso-primary); flex-shrink: 0; margin-top: 3px; }
.footer__contact a { color: #b9c6d4; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner { padding: 22px 24px; }
.footer__bottom p { margin: 0; font-size: 13px; color: #7f92a5; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.stats__grid { grid-template-columns: repeat(2, 1fr); }
	.stats__item:nth-child(3) { border-left: 0; }
	.stats__item:nth-child(odd) { border-left: 0; }
	.cats__grid, .products__grid, .news__grid, .features__grid { grid-template-columns: repeat(2, 1fr); }
	.about__grid, .product-single__grid, .contact-page__grid { grid-template-columns: 1fr; gap: 32px; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.nav__toggle { display: block; }
	.nav__list {
		display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
		flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
		border-bottom: 1px solid var(--tenso-line); box-shadow: 0 12px 24px rgba(11,26,43,.1);
	}
	.nav.is-open .nav__list { display: flex; }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; }
	.navbar__cta { display: none; }
	.cats__grid, .products__grid, .news__grid, .features__grid { grid-template-columns: 1fr; }
	.compat__inner { flex-direction: column; align-items: flex-start; }
	.stats__grid { grid-template-columns: 1fr 1fr; }
	.hero__inner { padding: 80px 24px 96px; }
	.section { padding: 64px 0; }
	.footer__grid { grid-template-columns: 1fr; gap: 32px; padding: 50px 24px 40px; }
	.topbar__tagline { display: none; }
}

/* ---------- Elementor full-width canvas ---------- */
body.elementor-page .site-main { padding: 0; }
.elementor-canvas { width: 100%; }
