/**
 * Karmet Bulgaria — global design system.
 *
 * Own reset + design tokens + shared header/footer/button/section furniture.
 * Loaded globally; single source of truth for the look.
 *
 * Namespace: .k-* classes and --k-* custom properties.
 */

/* ---------------------------------------------------------------- tokens */

:root {
	/* Brand */
	--k-orange: #f26623;
	--k-orange-dark: #d4520f;
	--k-orange-soft: rgba( 242, 102, 35, 0.12 );

	/* Steel greys — the professional grey scale of the source site. */
	--k-ink: #1c1f26;
	--k-steel-900: #23272f;
	--k-steel-800: #2d323c;
	--k-steel-700: #3a4050;
	--k-steel-600: #4d5566;
	--k-steel-500: #6b7385;
	--k-steel-400: #828191;
	--k-steel-300: #a8adb9;
	--k-steel-200: #d5d8de;
	--k-steel-100: #eceef1;
	--k-steel-50: #f2f2f2;
	--k-white: #ffffff;

	/*
	 * Type — Manrope everywhere, matching the source site. It carries full
	 * Cyrillic coverage, which this Bulgarian site requires; the display/head/
	 * body split is kept as separate tokens so weights can diverge later.
	 */
	--k-f-disp: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
	--k-f-head: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
	--k-f-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
	--k-f-mono: 'Manrope', ui-monospace, monospace;

	/* Layout */
	--k-container: 1300px;
	--k-container-narrow: 960px;
	--k-gutter: 24px;
	--k-header-h: 88px;
	--k-topbar-h: 38px;

	/* Effects */
	--k-radius: 4px;
	--k-radius-lg: 8px;
	--k-shadow: 0 2px 14px rgba( 28, 31, 38, 0.08 );
	--k-shadow-lg: 0 18px 48px rgba( 28, 31, 38, 0.18 );
	--k-ease: cubic-bezier( 0.4, 0, 0.2, 1 );
}

/* ----------------------------------------------------------------- reset */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc( var( --k-header-h ) + 16px );
}

body {
	margin: 0;
	font-family: var( --k-f-body );
	font-size: 16px;
	line-height: 1.65;
	color: var( --k-steel-700 );
	background: var( --k-white );
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var( --k-f-head );
	font-weight: 500;
	line-height: 1.2;
	color: var( --k-ink );
	letter-spacing: -0.015em;
}

p {
	margin: 0 0 1.1em;
}

a {
	color: var( --k-orange );
	text-decoration: none;
	transition: color 0.2s var( --k-ease );
}

a:hover,
a:focus-visible {
	color: var( --k-orange-dark );
}

ul, ol {
	margin: 0 0 1.1em;
	padding-left: 1.25em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var( --k-orange );
	outline-offset: 2px;
}

/* --------------------------------------------------------------- helpers */

.k-container {
	width: 100%;
	max-width: var( --k-container );
	margin-inline: auto;
	padding-inline: var( --k-gutter );
}

.k-container--narrow {
	max-width: var( --k-container-narrow );
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -60px;
	left: 12px;
	z-index: 200;
	padding: 10px 18px;
	background: var( --k-orange );
	color: #fff;
	border-radius: var( --k-radius );
	transition: top 0.2s var( --k-ease );
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

/* -------------------------------------------------------- section chrome */

.k-section {
	padding: clamp( 56px, 7vw, 104px ) 0;
}

.k-section--tight {
	padding: clamp( 40px, 5vw, 68px ) 0;
}

.k-section--grey {
	background: var( --k-steel-50 );
}

.k-section--dark {
	background: var( --k-steel-900 );
	color: var( --k-steel-200 );
}

.k-section--dark h2,
.k-section--dark h3,
.k-section--dark h4 {
	color: #fff;
}

/* Eyebrow / kicker above a section title. */
.k-eyebrow {
	display: block;
	margin-bottom: 10px;
	font-family: var( --k-f-disp );
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var( --k-orange );
}

.k-title {
	font-family: var( --k-f-disp );
	font-size: clamp( 28px, 3.6vw, 46px );
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.16;
}

.k-lede {
	max-width: 68ch;
	font-size: 17px;
	color: var( --k-steel-600 );
}

.k-section--dark .k-lede {
	color: var( --k-steel-300 );
}

.k-section-head {
	margin-bottom: clamp( 32px, 4vw, 56px );
}

.k-section-head--center {
	text-align: center;
}

.k-section-head--center .k-lede {
	margin-inline: auto;
}

/* -------------------------------------------------------------- buttons */

.k-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 34px;
	border: 2px solid transparent;
	/* Source uses fully rounded pill buttons. */
	border-radius: 999px;
	background: var( --k-orange );
	color: #fff;
	font-family: var( --k-f-head );
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s var( --k-ease ), color 0.2s var( --k-ease ),
		border-color 0.2s var( --k-ease ), transform 0.2s var( --k-ease );
}

.k-btn:hover,
.k-btn:focus-visible {
	background: var( --k-orange-dark );
	color: #fff;
	transform: translateY( -2px );
}

.k-btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: var( --k-ink );
}

.k-btn--ghost:hover,
.k-btn--ghost:focus-visible {
	background: var( --k-orange );
	border-color: var( --k-orange );
	color: #fff;
}

.k-btn--light {
	background: transparent;
	border-color: rgba( 255, 255, 255, 0.55 );
	color: #fff;
}

.k-btn--light:hover,
.k-btn--light:focus-visible {
	background: #fff;
	border-color: #fff;
	color: var( --k-ink );
}

.k-btn--sm {
	padding: 10px 20px;
	font-size: 13px;
}

/* ========================================================================
   HEADER
   ==================================================================== */

.k-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	background: #fff;
	box-shadow: var( --k-shadow );
	transition: background 0.3s var( --k-ease ), box-shadow 0.3s var( --k-ease );
}

/* Transparent over the homepage hero until the user scrolls. */
.k-header.is-transparent {
	background: transparent;
	box-shadow: none;
}

.k-header.is-transparent .k-topbar {
	background: rgba( 0, 0, 0, 0.28 );
	border-bottom-color: rgba( 255, 255, 255, 0.16 );
}

.k-header.is-transparent .k-topbar a,
.k-header.is-transparent .k-nav > ul > li > a,
.k-header.is-transparent .k-header__icon {
	color: #fff;
}

.k-header.is-transparent .k-logo__solid {
	opacity: 0;
}

.k-header.is-transparent .k-logo__light {
	opacity: 1;
}

/* --- top utility bar --- */

.k-topbar {
	background: var( --k-steel-900 );
	border-bottom: 1px solid transparent;
	transition: background 0.3s var( --k-ease );
}

.k-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 22px;
	min-height: var( --k-topbar-h );
}

.k-topbar a {
	font-family: var( --k-f-head );
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --k-steel-300 );
}

.k-topbar a:hover,
.k-topbar a:focus-visible {
	color: var( --k-orange );
}

.k-topbar__contact {
	margin-right: auto;
	display: flex;
	gap: 20px;
}

/* --- main bar --- */

.k-header__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var( --k-header-h );
}

.k-logo {
	position: relative;
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.k-logo img {
	width: auto;
	height: 52px;
	transition: opacity 0.3s var( --k-ease );
}

.k-logo__light {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.k-logo__text {
	font-family: var( --k-f-disp );
	font-size: 30px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var( --k-ink );
	line-height: 1;
}

/* --- primary nav --- */

.k-nav {
	margin-left: auto;
}

.k-nav > ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.k-nav > ul > li {
	position: relative;
}

.k-nav > ul > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 14px;
	font-family: var( --k-f-head );
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	color: var( --k-steel-700 );
	white-space: nowrap;
}

.k-nav > ul > li > a::after {
	content: '';
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 6px;
	height: 2px;
	background: var( --k-orange );
	transform: scaleX( 0 );
	transform-origin: left;
	transition: transform 0.28s var( --k-ease );
}

.k-nav > ul > li > a:hover::after,
.k-nav > ul > li > a:focus-visible::after,
.k-nav > ul > li.is-current > a::after {
	transform: scaleX( 1 );
}

.k-nav > ul > li > a:hover,
.k-nav > ul > li.is-current > a {
	color: var( --k-orange );
}

.k-nav__caret {
	width: 9px;
	height: 9px;
	flex: none;
	transition: transform 0.25s var( --k-ease );
}

.k-nav li:hover > a .k-nav__caret {
	transform: rotate( 180deg );
}

/* --- dropdown --- */

.k-nav__sub {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 268px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border-top: 3px solid var( --k-orange );
	border-radius: 0 0 var( --k-radius ) var( --k-radius );
	box-shadow: var( --k-shadow-lg );
	opacity: 0;
	visibility: hidden;
	transform: translateY( 8px );
	transition: opacity 0.22s var( --k-ease ), transform 0.22s var( --k-ease ),
		visibility 0.22s var( --k-ease );
}

.k-nav__sub--right {
	left: auto;
	right: 0;
}

.k-nav li:hover > .k-nav__sub,
.k-nav li:focus-within > .k-nav__sub {
	opacity: 1;
	visibility: visible;
	transform: translateY( 0 );
}

.k-nav__sub a {
	display: block;
	padding: 10px 14px;
	border-radius: var( --k-radius );
	font-family: var( --k-f-body );
	font-size: 14px;
	font-weight: 500;
	color: var( --k-steel-700 );
	line-height: 1.35;
}

.k-nav__sub a:hover,
.k-nav__sub a:focus-visible {
	background: var( --k-orange );
	color: #fff;
}

/* --- header icon actions --- */

.k-header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
}

.k-header__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: var( --k-radius );
	background: transparent;
	color: var( --k-steel-700 );
	cursor: pointer;
	transition: color 0.2s var( --k-ease ), background 0.2s var( --k-ease );
}

.k-header__icon:hover,
.k-header__icon:focus-visible {
	color: var( --k-orange );
	background: var( --k-orange-soft );
}

.k-header__icon svg {
	width: 20px;
	height: 20px;
}

.k-header__badge {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var( --k-orange );
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

/* --- burger --- */

.k-burger {
	display: none;
}

.k-burger span {
	display: block;
	width: 22px;
	height: 2px;
	margin: 4px auto;
	background: currentColor;
	transition: transform 0.28s var( --k-ease ), opacity 0.2s var( --k-ease );
}

.k-burger[aria-expanded='true'] span:nth-child( 1 ) {
	transform: translateY( 6px ) rotate( 45deg );
}

.k-burger[aria-expanded='true'] span:nth-child( 2 ) {
	opacity: 0;
}

.k-burger[aria-expanded='true'] span:nth-child( 3 ) {
	transform: translateY( -6px ) rotate( -45deg );
}

/* --- search drawer --- */

.k-search {
	display: none;
	padding: 22px 0;
	background: var( --k-steel-900 );
}

.k-search.is-open {
	display: block;
}

.k-search form {
	display: flex;
	gap: 10px;
}

.k-search input[type='search'] {
	flex: 1;
	padding: 14px 18px;
	border: 1px solid var( --k-steel-600 );
	border-radius: var( --k-radius );
	background: var( --k-steel-800 );
	color: #fff;
	font-size: 16px;
}

.k-search input::placeholder {
	color: var( --k-steel-400 );
}

/* --- mobile panel --- */

.k-mobile {
	position: fixed;
	inset: 0 0 0 auto;
	z-index: 130;
	width: min( 400px, 88vw );
	padding: 84px 26px 40px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var( --k-steel-900 );
	transform: translateX( 100% );
	visibility: hidden;
	transition: transform 0.35s var( --k-ease ), visibility 0.35s var( --k-ease );
}

.k-mobile.is-open {
	transform: translateX( 0 );
	visibility: visible;
}

.k-mobile__close {
	position: absolute;
	top: 22px;
	right: 22px;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: var( --k-radius );
	background: rgba( 255, 255, 255, 0.08 );
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.k-mobile ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.k-mobile > ul > li {
	border-bottom: 1px solid rgba( 255, 255, 255, 0.1 );
}

.k-mobile > ul > li > a,
.k-mobile__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 15px 0;
	border: 0;
	background: none;
	font-family: var( --k-f-head );
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	color: #fff;
	text-align: left;
	cursor: pointer;
}

.k-mobile__toggle svg {
	width: 12px;
	height: 12px;
	flex: none;
	transition: transform 0.25s var( --k-ease );
}

.k-mobile__toggle[aria-expanded='true'] svg {
	transform: rotate( 180deg );
}

.k-mobile__sub {
	display: none;
	padding: 0 0 14px 14px !important;
	border-left: 2px solid var( --k-orange );
	margin-left: 2px;
}

.k-mobile__sub.is-open {
	display: block;
}

.k-mobile__sub a {
	display: block;
	padding: 9px 0;
	font-size: 14px;
	color: var( --k-steel-300 );
}

.k-mobile__sub a:hover,
.k-mobile__sub a:focus-visible {
	color: var( --k-orange );
}

.k-mobile__cta {
	margin-top: 28px;
}

.k-mobile__cta .k-btn {
	width: 100%;
}

.k-mobile__meta {
	margin-top: 26px;
	font-size: 14px;
	color: var( --k-steel-300 );
}

.k-mobile__meta a {
	display: block;
	padding: 4px 0;
	color: var( --k-steel-200 );
}

.k-overlay {
	position: fixed;
	inset: 0;
	z-index: 120;
	background: rgba( 15, 17, 21, 0.62 );
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s var( --k-ease ), visibility 0.3s var( --k-ease );
}

.k-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

body.k-locked {
	overflow: hidden;
}

/* Push content below the fixed header on every non-transparent view. */
.k-header-spacer {
	height: calc( var( --k-header-h ) + var( --k-topbar-h ) );
}

.home .k-header-spacer,
.k-header-spacer--none {
	display: none;
}

/* ========================================================================
   FOOTER
   ==================================================================== */

.k-footer {
	background: var( --k-steel-900 );
	color: var( --k-steel-300 );
	font-size: 15px;
}

.k-footer__main {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
	gap: 44px;
	padding: clamp( 48px, 6vw, 80px ) 0 44px;
}

.k-footer h3 {
	margin-bottom: 18px;
	font-family: var( --k-f-disp );
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var( --k-orange );
}

.k-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.k-footer li + li {
	margin-top: 9px;
}

.k-footer a {
	color: var( --k-steel-300 );
}

.k-footer a:hover,
.k-footer a:focus-visible {
	color: #fff;
}

.k-footer__brand img {
	height: 54px;
	width: auto;
	margin-bottom: 18px;
}

.k-footer__brand p {
	max-width: 42ch;
	font-size: 14px;
	line-height: 1.7;
	color: var( --k-steel-400 );
}

.k-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.k-footer__contact svg {
	width: 16px;
	height: 16px;
	flex: none;
	margin-top: 4px;
	color: var( --k-orange );
}

.k-social {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.k-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba( 255, 255, 255, 0.16 );
	border-radius: var( --k-radius );
	color: var( --k-steel-200 );
	transition: background 0.2s var( --k-ease ), border-color 0.2s var( --k-ease ),
		color 0.2s var( --k-ease );
}

.k-social a:hover,
.k-social a:focus-visible {
	background: var( --k-orange );
	border-color: var( --k-orange );
	color: #fff;
}

.k-social svg {
	width: 17px;
	height: 17px;
}

.k-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 20px 0 26px;
	border-top: 1px solid rgba( 255, 255, 255, 0.1 );
	font-size: 13px;
	color: var( --k-steel-400 );
}

.k-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

/* ========================================================================
   RESPONSIVE
   ==================================================================== */

@media ( max-width: 1160px ) {
	.k-nav > ul > li > a {
		padding: 12px 10px;
		font-size: 13px;
	}
}

@media ( max-width: 1024px ) {
	:root {
		--k-header-h: 72px;
	}

	.k-nav,
	.k-topbar__contact {
		display: none;
	}

	.k-burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
	}

	.k-header__actions {
		margin-left: auto;
	}

	.k-logo img {
		height: 42px;
	}

	.k-footer__main {
		grid-template-columns: 1fr 1fr;
		gap: 34px;
	}
}

@media ( max-width: 600px ) {
	:root {
		--k-gutter: 18px;
	}

	.k-footer__main {
		grid-template-columns: 1fr;
	}

	.k-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.k-topbar__inner {
		justify-content: center;
	}
}

/* --------------------------------------------------------- reduced motion */

@media ( prefers-reduced-motion: reduce ) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
