/* Auto-Data .Studio – новият вид (2026). Тъмен, със снимките на преден план. */

@font-face {
	font-family: 'Montserrat';
	src: url('../fonts/montserrat.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-italic.woff2') format('woff2');
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--bg: #141416;
	--bg2: #1b1b1e;
	--bg3: #232327;
	--line: #2e2e33;
	--text: #cfcfd4;
	--muted: #9b9ba4;
	--head: #ececef;
	--red: #da2725;
	--red2: #f0423f;
	--wrap: 1240px;
	--head: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.7 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--text); text-decoration-color: rgba(218, 39, 37, .7); text-underline-offset: 3px; }
a:hover { color: var(--head); text-decoration-color: var(--red2); }

h1, h2, h3, .ttl, .card-ttl, .kicker, .btn, .nav a, .sf-h {
	font-family: 'Montserrat', 'Inter', sans-serif;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -.005em; color: var(--head); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 860px; }

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	padding: 10px 16px; background: var(--red); color: #fff; border-radius: 4px;
}
.skip:focus { top: 12px; }

.kicker {
	margin: 0 0 14px;
	font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
	color: var(--red2);
}

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 28px;
	border: 1px solid var(--red); border-radius: 2px;
	background: var(--red); color: #fff;
	font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
	cursor: pointer;
	transition: background .25s, border-color .25s, color .25s;
}
.btn:hover { background: var(--red2); border-color: var(--red2); color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 12px; }


/* ---------- горното меню ---------- */

.sh {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	height: var(--head);
	transition: background .35s, backdrop-filter .35s, border-color .35s;
	border-bottom: 1px solid transparent;
}
.is-inner .sh, .sh.solid {
	background: rgba(20, 20, 22, .88);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	border-bottom-color: rgba(255, 255, 255, .06);
}
.is-home .sh:not(.solid) { background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }

.sh-in {
	height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 28px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { width: 190px; height: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav ul a {
	position: relative; display: block; padding: 8px 0;
	font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
	color: rgba(236, 236, 239, .78);
}
.nav ul a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav ul a:hover, .nav ul a[aria-current] { color: var(--head); }
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); }

.burger {
	display: none; width: 46px; height: 46px; padding: 0; margin-right: -8px;
	background: none; border: 0; cursor: pointer; position: relative; z-index: 60;
}
.burger span {
	position: absolute; left: 11px; width: 24px; height: 2px; background: #fff;
	transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
	:root { --head: 64px; }
	.sh-in { padding: 0 18px; }
	.logo img { width: 150px; }
	.burger { display: block; }
	.nav {
		position: fixed; inset: 0; z-index: 55;
		flex-direction: column; justify-content: center; gap: 40px;
		background: rgba(20, 20, 22, .98);
		opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
	}
	.menu-open .nav { opacity: 1; visibility: visible; }
	.menu-open { overflow: hidden; }
	.nav ul { flex-direction: column; align-items: center; gap: 10px; }
	.nav ul a { font-size: 20px; letter-spacing: .16em; padding: 10px 0; }
}


/* ---------- слайдерът ---------- */

.hero {
	position: relative; height: 100vh; height: 100svh; min-height: 520px; max-height: 1300px;
	overflow: hidden; background: #000;
}
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity 1.2s ease, visibility 0s; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.slide.on img { animation: kb 9s ease-out forwards; }
@keyframes kb { from { transform: scale(1.06); } to { transform: scale(1); } }
.slide::after {
	content: ''; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, 0) 75%),
		linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 45%);
}
.cap {
	position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
	max-width: 1400px; margin: 0 auto; padding: 0 28px 110px;
}
.cap > * { max-width: 760px; opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide.on .cap > * { opacity: 1; transform: none; }
.slide.on .cap > :nth-child(2) { transition-delay: .15s; }
.slide.on .cap > :nth-child(3) { transition-delay: .3s; }
.cap .ttl {
	margin: 0 0 30px;
	font-size: clamp(34px, 5.6vw, 78px); font-weight: 700; line-height: 1.02; letter-spacing: -.01em;
	text-transform: uppercase; color: #fff; text-wrap: balance;
}

.hero-nav {
	position: absolute; z-index: 3; right: max(28px, calc((100vw - 1400px) / 2 + 28px)); bottom: 108px;
	display: flex; align-items: center; gap: 14px;
}
.hero-nav button {
	width: 48px; height: 48px; display: grid; place-items: center;
	background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%;
	color: #fff; cursor: pointer; transition: border-color .25s, background .25s;
}
.hero-nav button:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.hero-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-count { font: 500 13px 'Montserrat', sans-serif; letter-spacing: .14em; color: rgba(255, 255, 255, .6); min-width: 64px; text-align: center; }
.hero-count b { color: #fff; font-weight: 600; }
.hero-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.hero-bar i { display: block; height: 100%; width: 0; background: var(--red); }
.hero-bar i.run { width: 100%; transition: width linear; }
.hero-down {
	position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
	width: 44px; height: 44px; display: grid; place-items: center; color: rgba(255, 255, 255, .75);
	animation: bob 2.4s ease-in-out infinite;
}
.hero-down svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

@media (max-width: 700px) {
	.cap { padding: 0 20px 120px; }
	.cap .ttl { margin-bottom: 22px; }
	.hero-nav { right: auto; left: 20px; bottom: 54px; }
	.hero-nav button { width: 42px; height: 42px; }
	.hero-down { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.slide.on img, .hero-down { animation: none; }
	.slide img { transform: none; }
}


/* ---------- секции ---------- */

.intro { padding: 110px 0 40px; }
.intro h1 {
	margin-bottom: 34px;
	font-size: clamp(30px, 4.2vw, 52px); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance;
}
.intro h1::before { content: ''; display: block; width: 56px; height: 3px; margin-bottom: 26px; background: var(--red); }

.block { padding: 90px 0; }
.block.first { padding-top: 56px; }
.block + .block { padding-top: 10px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.block-head h2 { font-size: clamp(26px, 3.2vw, 40px); text-transform: uppercase; letter-spacing: .02em; }
.more {
	font: 600 12.5px 'Montserrat', sans-serif; letter-spacing: .18em; text-transform: uppercase;
	text-decoration: none; color: var(--muted); white-space: nowrap;
}
.more:hover { color: var(--head); }


/* ---------- заглавие на вътрешните страници ---------- */

.phead {
	position: relative; overflow: hidden;
	padding: calc(var(--head) + 90px) 0 64px;
	background: var(--bg2);
	border-bottom: 1px solid var(--line);
}
.phead.has-img { padding-top: calc(var(--head) + 150px); padding-bottom: 72px; min-height: clamp(380px, 56vh, 640px); display: flex; align-items: flex-end; }
.phead-bg { position: absolute; inset: 0; }
.phead-bg img { width: 100%; height: 100%; object-fit: cover; }
.phead-bg::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, .55) 45%, rgba(20, 20, 22, .35) 100%);
}
.phead .wrap { position: relative; z-index: 1; }
.phead h1 {
	font-size: clamp(32px, 5vw, 64px); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance;
	max-width: 1000px;
}
.phead .lead { margin: 20px 0 30px; color: var(--muted); font-size: 19px; }
.back {
	display: inline-flex; gap: 10px; margin-bottom: 22px;
	font: 600 12px 'Montserrat', sans-serif; letter-spacing: .2em; text-transform: uppercase;
	text-decoration: none; color: var(--muted);
}
.back:hover { color: var(--head); }


/* ---------- текст ---------- */

.prose { color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 {
	margin: 2.2em 0 .8em;
	font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; letter-spacing: .02em; line-height: 1.2;
}
.prose h3 { margin: 1.8em 0 .6em; font-size: 21px; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding: 0; list-style: none; }
.prose li { position: relative; margin: .55em 0; padding-left: 30px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 14px; height: 2px; background: var(--red); }
.prose ol { counter-reset: n; }
.prose ol li::before {
	counter-increment: n; content: counter(n, decimal-leading-zero);
	position: absolute; left: 0; top: .1em; font: 600 13px 'Montserrat', sans-serif; color: var(--red2);
}
.prose strong { color: var(--head); }
.prose a:not(.btn) { color: var(--head); }
.prose .btn { margin: 6px 0; }
.prose .pic { margin: 2.2em 0; }
.prose .pic img { width: 100%; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.prose .video { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: #000; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose.wide > p, .prose.wide > h2, .prose.wide > h3, .prose.wide > ul, .prose.wide > ol { max-width: 860px; }
.lead-prose { max-width: 860px; margin-bottom: 44px; font-size: 19px; color: var(--text); }
.intro .prose { font-size: 18px; }
.intro .prose ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; margin-top: 1.6em; }
.intro .prose ul li { margin: 0; padding: 24px 24px 24px 24px; background: var(--bg2); border: 1px solid var(--line); line-height: 1.55; }
.intro .prose ul li::before { position: static; display: block; width: 30px; height: 2px; margin-bottom: 16px; }

.toc { margin: 0 0 2.4em; padding: 22px 26px; border: 1px solid var(--line); background: var(--bg2); }
.toc ul { margin: 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 30px; }
.toc li { margin: 4px 0; padding: 0; }
.toc li::before { display: none; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--head); }


/* ---------- галерия в мрежа ---------- */

.jg { display: flex; flex-wrap: wrap; gap: 8px; margin: 2em 0; }
.jg::after { content: ''; flex-grow: 1000000; }
.gi {
	position: relative; display: block; overflow: hidden; background: var(--bg3);
	flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 260px);
}
.gi img { width: 100%; height: 100%; aspect-ratio: var(--r); object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.gi:hover img { transform: scale(1.035); }
.gi::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); pointer-events: none; }
@media (max-width: 560px) {
	.jg { gap: 4px; }
	.gi { flex-basis: calc(var(--r) * 150px); }
}


/* ---------- карти на галериите ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 22px; }
.card {
	position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg3);
	text-decoration: none; color: #fff;
}
.card img, .card .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, 0) 100%);
	transition: background .4s;
}
.card:hover img { transform: scale(1.05); }
.card-txt { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 26px 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.card-txt, .phead.has-img h1, .phead.has-img .back, .cap { text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 0 18px rgba(0, 0, 0, .35); }
.card-ttl { font-size: clamp(20px, 2vw, 26px); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; }
.card-ttl::after { content: ''; display: block; width: 0; height: 2px; margin-top: 12px; background: var(--red); transition: width .45s var(--ease); }
.card:hover .card-ttl::after { width: 56px; }
.card-meta { font: 500 12px 'Montserrat', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .7); white-space: nowrap; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pager a, .pager span {
	min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 10px;
	border: 1px solid var(--line); text-decoration: none; font: 600 14px 'Montserrat', sans-serif;
}
.pager span { background: var(--red); border-color: var(--red); }
.pager a:hover { border-color: #fff; }


/* ---------- призив към действие ---------- */

.cta { padding: 96px 0; background: var(--bg2); border-top: 1px solid var(--line); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { max-width: 680px; font-size: clamp(26px, 3.4vw, 42px); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.cta p { margin: 18px 0 0; max-width: 620px; color: var(--muted); }
.cta-act { display: flex; flex-wrap: wrap; gap: 12px; }


/* ---------- формата за запитване ---------- */

.cform { margin: 2.4em 0; padding: 36px; background: var(--bg2); border: 1px solid var(--line); }
.cform label { display: block; margin-bottom: 18px; }
.cform label span { display: block; margin-bottom: 8px; font: 600 12px 'Montserrat', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cform input, .cform select, .cform textarea {
	width: 100%; padding: 13px 14px;
	background: var(--bg); border: 1px solid #3a3a40; border-radius: 2px;
	color: var(--text); font: inherit; font-size: 16px;
}
.cform select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--red2); box-shadow: 0 0 0 3px rgba(218, 39, 37, .25); }
.cform textarea { resize: vertical; min-height: 150px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 18px; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cnote { font-size: 14px; color: var(--muted); }
.form-err, .form-ok { margin: 0 0 22px; padding: 16px 20px; border-left: 3px solid var(--red); background: rgba(218, 39, 37, .12); }
.form-ok { margin: 2.4em 0; border-left-color: #3fb86b; background: rgba(63, 184, 107, .12); }
@media (max-width: 560px) { .cform { padding: 22px 18px; } }


/* ---------- долният колонтитул ---------- */

.sf { padding: 80px 0 34px; background: #101012; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.sf-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.sf-brand p { max-width: 420px; margin: 22px 0 0; }
.sf-brand a:not(.logo) { color: var(--text); }
.sf-h { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--head); }
.sf-list { margin: 0; padding: 0; list-style: none; }
.sf-list li { margin: 8px 0; }
.sf-list a { color: var(--muted); text-decoration: none; }
.sf-list a:hover { color: var(--head); }
.sf-bottom { margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 760px) {
	.sf-grid { grid-template-columns: 1fr; gap: 32px; }
	.block { padding: 64px 0; }
	.intro { padding: 72px 0 20px; }
	.cta { padding: 64px 0; }
	.wrap { padding: 0 20px; }
}


/* ---------- lightbox ---------- */

.lb {
	position: fixed; inset: 0; z-index: 200;
	display: flex; flex-direction: column;
	background: rgba(4, 4, 5, .97);
	opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
	touch-action: none; user-select: none;
}
.lb.open { opacity: 1; visibility: visible; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: rgba(255, 255, 255, .7); font: 500 13px 'Montserrat', sans-serif; letter-spacing: .14em; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 70px; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .25s, transform .25s; }
.lb-stage img.out { opacity: 0; }
.lb-cap { min-height: 52px; padding: 14px 20px 18px; text-align: center; color: rgba(255, 255, 255, .78); font-size: 15px; }
.lb button {
	width: 50px; height: 50px; display: grid; place-items: center;
	background: none; border: 0; color: #fff; cursor: pointer; border-radius: 50%; transition: background .2s;
}
.lb button:hover { background: rgba(255, 255, 255, .08); }
.lb button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
@media (max-width: 700px) {
	.lb-stage { padding: 0; }
	.lb-prev, .lb-next { display: none !important; }
}
