/* sofialens – site template for "София през обектива" */

:root {
	--bg: #0d0e11;
	--surface: #15171c;
	--surface-2: #1c1f26;
	--line: rgba(255, 255, 255, 0.09);
	--text: #ece8e1;
	--muted: #a29d94;
	--accent: #e3b25b;
	--accent-ink: #1b1406;
	--danger: #ef7d6c;
	--radius: 14px;
	--gap: clamp(12px, 1.6vw, 20px);
	--container: 1240px;
	--font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1rem/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: #f3cd85; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--accent); color: var(--accent-ink); }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: fixed; left: 16px; top: -60px; z-index: 100;
	background: var(--accent); color: var(--accent-ink);
	padding: 10px 16px; border-radius: 8px; font-weight: 600;
	transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 0.5em; }

.eyebrow {
	margin: 0 0 0.9rem;
	font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--accent);
}
.eyebrow a { text-decoration: none; margin-right: 0.9em; }

/* Buttons */
.btn, button.btn, input.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 46px; padding: 0 22px;
	border: 1px solid transparent; border-radius: 999px;
	font: 600 0.95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
	transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f0c672; color: var(--accent-ink); }
.btn-ghost, .btn-secondary { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); }
.btn-ghost:hover, .btn-secondary:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-back::after { content: none; }
.link-back::before { content: "←"; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(13, 14, 17, 0.72);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: background 0.3s, border-color 0.3s;
}
.is-home .site-header { position: fixed; inset: 0 0 auto; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-scrolled, .is-home .site-header.is-scrolled {
	background: rgba(13, 14, 17, 0.85);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark {
	width: 30px; height: 30px; border-radius: 50%; flex: none;
	border: 2px solid var(--accent);
	background: radial-gradient(circle at 50% 50%, var(--accent) 0 26%, transparent 28%);
}
.brand-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-text em { font-weight: 400; color: var(--muted); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
	display: block; padding: 8px 14px; border-radius: 999px;
	color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500;
	transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.site-nav .current > a, .site-nav .active > a, .site-nav a[aria-current="page"] { background: rgba(227, 178, 91, 0.14); color: var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px;
		background: rgba(255, 255, 255, 0.05); color: var(--text); cursor: pointer;
	}
	.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
		display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
		transition: transform 0.25s var(--ease), opacity 0.2s;
	}
	.nav-toggle-bar { position: relative; }
	.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-bar::before { top: -6px; }
	.nav-toggle-bar::after { top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		position: absolute; inset: 100% 0 auto; padding: 8px 16px 20px;
		background: rgba(13, 14, 17, 0.97); border-bottom: 1px solid var(--line);
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { padding: 12px 14px; font-size: 1.05rem; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 18s var(--ease) forwards; }
.hero-media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(13, 14, 17, 0.55) 0%, rgba(13, 14, 17, 0) 28%),
		linear-gradient(0deg, var(--bg) 0%, rgba(13, 14, 17, 0.55) 38%, rgba(13, 14, 17, 0) 70%);
}
@keyframes kenburns { to { transform: scale(1); } }
.hero-content { padding-block: 140px clamp(64px, 12vh, 120px); }
.hero-title { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 700; line-height: 0.95; margin-bottom: 0.3em; text-wrap: balance; }
.hero-title em { font-weight: 400; color: var(--accent); }
.hero-lead { max-width: 34rem; margin: 0 0 2rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d6d1c8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scroll {
	position: absolute; left: 50%; bottom: 24px; translate: -50% 0;
	width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 14px;
}
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) { .hero-scroll { display: none; } }

/* Sections */
.site-main { min-height: 50vh; }
.section { padding-block: clamp(56px, 9vw, 110px); }
.section-alt { background: linear-gradient(180deg, var(--bg), var(--surface) 30%, var(--surface) 70%, var(--bg)); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head .eyebrow { flex-basis: 100%; margin-bottom: 0; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 0; }

.page-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 40px); }
.page-title { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 0.25em; }
.page-lead, .page-lead p { font-size: 1.15rem; color: var(--muted); margin: 0; }

/* Masonry gallery */
.masonry { columns: 3 300px; column-gap: var(--gap); }
.photo-card { break-inside: avoid; margin: 0 0 var(--gap); }
.photo-card[hidden] { display: none; }
.photo-link {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius);
	background: var(--surface-2); aspect-ratio: var(--ratio, 3 / 2);
	color: var(--text); text-decoration: none;
}
.photo-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.4s; }
.photo-link:hover img, .photo-link:focus-visible img { transform: scale(1.05); }
.photo-overlay {
	position: absolute; inset: auto 0 0; padding: 48px 18px 16px;
	display: flex; flex-direction: column; gap: 2px;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
	transform: translateY(10px); opacity: 0.92;
	transition: transform 0.4s var(--ease), opacity 0.4s;
}
.photo-link:hover .photo-overlay, .photo-link:focus-visible .photo-overlay { transform: none; opacity: 1; }
.photo-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.photo-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.photo-meta { font-size: 0.85rem; color: #cfc9bf; }

/* Gallery toolbar */
.gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	min-height: 40px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface); color: var(--text);
	font: 500 0.92rem/1 var(--font-body); cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: rgba(227, 178, 91, 0.5); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.view-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.view-switch button {
	min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
	color: var(--muted); font: 600 0.88rem/1 var(--font-body); cursor: pointer;
}
.view-switch button.is-active { background: var(--surface-2); color: var(--text); }
.empty-note { color: var(--muted); }

/* Maps */
.photo-map { height: min(70vh, 620px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.mini-map { height: 240px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); margin-top: 20px; }
.leaflet-container { font-family: var(--font-body); background: var(--surface); }
/* OpenStreetMap tiles are light; invert them into a dark map that matches the site */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.85) saturate(0.6); }
.map-pin {
	display: block; width: 18px; height: 18px; border-radius: 50%;
	background: var(--accent); border: 3px solid var(--bg);
	box-shadow: 0 0 0 2px var(--accent), 0 6px 16px rgba(0, 0, 0, 0.5);
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface-2); color: var(--text); border-radius: 12px; }
.leaflet-popup-content { margin: 10px; width: 200px !important; }
.map-popup { display: block; color: var(--text); text-decoration: none; }
.map-popup img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.map-popup strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.map-popup span { color: var(--muted); font-size: 0.82rem; }
.leaflet-control-attribution { background: rgba(13, 14, 17, 0.75) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--surface-2) !important; color: var(--text) !important; border-color: var(--line) !important; }

/* Themes + stats */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.theme-card {
	position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius);
	background: var(--surface-2); color: var(--text); text-decoration: none; isolation: isolate;
}
.theme-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 0.9s var(--ease); }
.theme-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 60%); }
.theme-card:hover img { transform: scale(1.06); }
.theme-body { position: absolute; inset: auto 0 0; padding: 22px; display: flex; flex-direction: column; }
.theme-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.theme-count { color: var(--accent); font-size: 0.9rem; font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: clamp(32px, 6vw, 64px) 0 0; }
.stats div { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); }
.stats dt { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }
.stats dd { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; color: var(--accent); line-height: 1; }

/* Custom module: about teaser on the home page */
.teaser { padding-block: clamp(56px, 9vw, 110px); }
.teaser-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.teaser h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.teaser p { color: #cfc9bf; font-size: 1.08rem; }
.teaser-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.teaser-list li { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.teaser-list strong { color: var(--accent); margin-right: 6px; }
@media (max-width: 860px) { .teaser-inner { grid-template-columns: 1fr; } }

/* Photo article */
.photo-stage { margin: 0; background: #000; }
.photo-stage a { display: block; }
.photo-stage img { width: 100%; max-height: 82vh; object-fit: contain; margin-inline: auto; cursor: zoom-in; }
.photo-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(24px, 5vw, 64px); padding-block: clamp(36px, 6vw, 72px); }
.photo-text .page-title { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.prose { font-size: 1.1rem; color: #d9d4cb; max-width: 68ch; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; margin: 1em 0 1.6em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; width: 38%; }
.photo-credit { margin: 28px 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 0.9rem; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.facts dt { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 860px) { .photo-body { grid-template-columns: 1fr; } }

.page-article { max-width: 920px; }
.page-article .prose { max-width: none; }

/* Documentation page */
.doc-cover {
	margin: 0 0 48px; padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
	border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
	background: radial-gradient(120% 80% at 50% 0%, rgba(227, 178, 91, 0.1), transparent 60%), var(--surface);
	text-align: center;
}
.doc-cover p { margin: 0 0 10px; }
.doc-uni { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text); }
.doc-program { color: var(--muted); }
.doc-course { margin-top: 28px !important; }
.doc-title { margin: 32px 0 8px !important; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; color: var(--text); }
.doc-title em { color: var(--accent); font-weight: 400; }
.doc-subtitle { color: var(--muted); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 24px; text-align: left; }
.doc-meta div { flex: 1 1 auto; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.doc-meta dd { white-space: nowrap; }
.doc-meta dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.doc-meta dd { margin: 2px 0 0; font-weight: 600; color: var(--text); }
.doc-city { color: var(--muted); font-size: 0.95rem; }
.doc-toc { margin: 0 0 48px; padding: 24px 28px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.doc-toc ol { margin: 0; padding-left: 1.3em; }
.doc-toc ol ol { margin: 4px 0 6px; list-style: lower-alpha; }
.doc-toc a { text-decoration: none; }
.doc-tree, .doc-tree ul { list-style: none; padding-left: 0; }
.doc-tree ul { margin: 8px 0 0 10px; padding-left: 18px; border-left: 1px solid var(--line); }
.doc-tree li { margin: 8px 0; }
.prose code { font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: #f0d9a8; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 96px; }
.prose table.doc-table th { width: auto; }
.prose table.doc-table thead th { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; border-bottom-color: rgba(227, 178, 91, 0.35); }
.prose table.doc-table tbody th { width: 30%; }
.prose table.doc-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
@media (max-width: 640px) {
	.prose table.doc-table { display: block; overflow-x: auto; }
}

@media print {
	:root { --bg: #fff; --surface: #fff; --surface-2: #f3f3f3; --text: #111; --muted: #555; --line: #ccc; --accent: #8a5a00; }
	.site-header, .site-footer, .skip-link, .doc-toc { display: none; }
	body { background: #fff; color: #111; }
	.doc-cover { page-break-after: always; min-height: 90vh; display: flex; flex-direction: column; justify-content: center; border: 0; background: none; }
	.prose { color: #111; }
	.prose code { background: none; color: #111; }
}

/* Joomla core: prev/next, pagination, messages, forms */
.pagenavigation { padding-bottom: 64px; }
.pagenavigation .pagination { display: flex; justify-content: space-between; gap: 12px; }
.pagenavigation a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
	color: var(--text); text-decoration: none; font-weight: 500;
}
.pagenavigation a:hover { border-color: var(--accent); color: var(--accent); }
.pagenavigation .icon-chevron-left::before { content: "←"; }
.pagenavigation .icon-chevron-right::before { content: "→"; }
.pagenavigation .next { margin-left: auto; }

joomla-alert, .alert { display: block; margin: 20px 0; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
joomla-alert[type="success"], .alert-success { border-color: rgba(120, 200, 140, 0.5); }
joomla-alert[type="danger"], joomla-alert[type="error"], .alert-danger { border-color: rgba(239, 125, 108, 0.6); }
joomla-alert .alert-heading { font-weight: 600; margin-right: 6px; }
joomla-alert .joomla-alert--close, joomla-alert button { float: right; background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }

.com-contact, .contact { max-width: 760px; }
.contact h2, .com-contact__form legend { font-size: 1.6rem; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 16px; }
.control-group { margin-bottom: 18px; }
.control-label label, .form-label, label { display: block; margin-bottom: 6px; font-weight: 500; color: #d6d1c8; }
.star, .form-control-feedback { color: var(--accent); }
.form-control, input[type="text"], input[type="email"], textarea, select {
	width: 100%; min-height: 48px; padding: 12px 14px;
	border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
	color: var(--text); font: 400 1rem/1.4 var(--font-body);
	transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.form-control, textarea { min-height: 160px; resize: vertical; }
.form-control:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227, 178, 91, 0.2); }
.form-control.invalid, .invalid { border-color: var(--danger) !important; }
label.invalid { color: var(--danger); }
.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check-input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.form-check label { display: inline; }
.controls .btn, .com-contact__form .btn { margin-top: 6px; }
.contact-intro { margin-bottom: 28px; color: #cfc9bf; font-size: 1.15rem; }
.contact-intro p { margin: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact-person { display: flex; gap: 14px; align-items: center; color: var(--muted); }
.contact-person strong { color: var(--text); }
.contact-card { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.contact-card legend { font-size: 1.4rem; }
.contact-card .control-group:has(.form-check) { margin-top: 4px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #0a0b0d; padding-block: 48px; margin-top: 40px; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: var(--text); font-family: var(--font-display); font-size: 1.15rem; }
.footer-meta { margin: 0; line-height: 1.8; }
.footer-meta a { color: var(--muted); }

/* Lightbox */
.lightbox {
	position: fixed; inset: 0; z-index: 200;
	display: grid; grid-template-rows: 1fr auto; place-items: center;
	padding: 56px 16px 16px; background: rgba(5, 5, 7, 0.94);
	opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: min(100%, 1600px); max-height: calc(100svh - 170px); object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox-caption { width: min(100%, 1100px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 14px 4px 0; }
.lightbox-title { font-family: var(--font-display); font-size: 1.4rem; }
.lightbox-meta, .lightbox-credit { color: var(--muted); font-size: 0.88rem; }
.lightbox-btn {
	position: absolute; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06);
	color: var(--text); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
	transition: background 0.2s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox-open { margin-left: auto; font-size: 0.88rem; font-weight: 600; }
.lightbox-count { position: absolute; top: 22px; left: 20px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.1em; }
@media (max-width: 760px) { .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; translate: none; } .lightbox { padding-bottom: 80px; } }
body.has-lightbox { overflow: hidden; }

/* Error page */
.error-main { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; gap: 8px; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: var(--accent); margin: 0; }
.error-debug { max-width: 90vw; white-space: pre-wrap; color: var(--muted); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
	.hero-media img { transform: none; }
}
