:root {
	--bg: #F8FAFC;
	--surface: #FFFFFF;
	--surface-2: #F1F4F8;
	--ink: #1B2130;
	--ink-2: #434B5C;
	--muted: #717A8C;
	--line: #E6EAF0;
	--line-2: #D3D9E2;
	--accent: #12866D;
	--accent-hover: #0E6F5A;
	--accent-soft: #E3F4EE;
	--accent-ink: #FFFFFF;
	--ok: #1E8E5A;
	--ok-soft: #E3F5EC;
	--warn: #B07A0A;
	--warn-soft: #FBF2D9;
	--bad: #C62828;
	--bad-soft: #FBE4E4;
	--shadow: 0 1px 2px rgba(27, 33, 48, .04), 0 8px 24px -12px rgba(27, 33, 48, .14);
	--shadow-lg: 0 24px 60px -20px rgba(27, 33, 48, .28);
	--radius: 18px;
	--radius-sm: 12px;
	--header-h: 64px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #131519;
	--surface: #1B1E24;
	--surface-2: #242830;
	--ink: #F1F3F6;
	--ink-2: #C7CCD6;
	--muted: #8E95A3;
	--line: #2A2F38;
	--line-2: #3A404C;
	--accent: #36B894;
	--accent-hover: #4CC7A4;
	--accent-soft: #17342C;
	--accent-ink: #07201A;
	--ok: #3DBE82;
	--ok-soft: #16302A;
	--warn: #E0A530;
	--warn-soft: #332A14;
	--bad: #FF6B6B;
	--bad-soft: #3A1C1C;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
	--shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

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

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

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	font-variant-numeric: lining-nums tabular-nums;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
dialog { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.link-muted { color: var(--muted); font-size: .875rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.link-muted:hover { color: var(--ink); }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 1.125rem; }
.brand-mark {
	width: 34px; height: 34px; border-radius: 10px;
	background: var(--accent); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 900; font-size: 1.1rem;
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.brand-name span { color: var(--accent); }

.lang-switch {
	margin-left: auto;
	display: inline-flex;
	padding: 3px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}
.lang-switch a {
	padding: 5px 10px;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--muted);
	transition: background .15s, color .15s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.theme-toggle {
	width: 38px; height: 38px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--muted);
	background: var(--surface-2);
	border: 1px solid var(--line);
	transition: color .15s, background .15s, transform .15s;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .7rem 1.1rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: .9375rem;
	line-height: 1;
	border: 1px solid transparent;
	transition: transform .12s ease, background .15s, color .15s, border-color .15s, box-shadow .15s;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-danger-ghost { background: transparent; color: var(--bad); border-color: var(--line-2); }
.btn-danger-ghost:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn-sm { padding: .45rem .8rem; font-size: .8125rem; }
.btn-lg { padding: .95rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }

.badge {
	display: inline-flex; align-items: center; gap: .3rem;
	padding: .2rem .6rem; border-radius: 999px;
	font-size: .75rem; font-weight: 700; letter-spacing: .02em;
	background: var(--surface-2); color: var(--ink-2);
}
.badge-sold { background: var(--ink); color: var(--bg); }
.badge-reserved { background: var(--warn-soft); color: var(--warn); }
.badge-draft { background: var(--bad-soft); color: var(--bad); }

.hero { padding: 40px 0 20px; }
@media (min-width: 768px) { .hero { padding: 64px 0 28px; } }
.hero-inner { display: grid; gap: 24px; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 40px; } }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; }
.hero p { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; max-width: 56ch; }

.search {
	position: relative;
	display: flex; align-items: center;
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: 999px;
	padding: 0 14px 0 18px;
	height: 54px;
	box-shadow: var(--shadow);
	transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search > i { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; height: 100%; outline: none; font-size: 1rem; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { color: var(--muted); padding: 8px; border-radius: 50%; }
.search-clear:hover { color: var(--ink); background: var(--surface-2); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 8px 0 20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; padding: 4px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .5rem .95rem;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	background: var(--surface);
	font-size: .875rem; font-weight: 600;
	color: var(--ink-2);
	transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink-2); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-count { font-size: .75rem; color: var(--muted); font-weight: 700; }
.chip.active .chip-count { color: color-mix(in srgb, var(--bg) 70%, transparent); }

.toolbar-controls { display: flex; align-items: center; gap: 14px; margin-left: auto; }
@media (max-width: 760px) {
	.chips { flex-basis: 100%; margin: 0 -16px; padding: 4px 16px; width: calc(100% + 32px); }
	.toolbar-controls { margin-left: 0; width: 100%; justify-content: space-between; }
}

.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; flex: 0 0 auto; }
.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-track { box-shadow: 0 0 0 3px var(--accent-soft); }

.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap i { position: absolute; right: 12px; pointer-events: none; font-size: .7rem; color: var(--muted); }
.select {
	appearance: none; -webkit-appearance: none;
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: 999px;
	padding: .5rem 2.2rem .5rem .95rem;
	font-size: .875rem; font-weight: 600;
	color: var(--ink-2);
	cursor: pointer;
}
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.catalog { padding-bottom: 56px; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.catalog-count { font-size: .875rem; font-weight: 600; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .grid { gap: 20px; } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

.card {
	display: flex; flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
@media (hover: hover) {
	.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
	.card:hover .card-media img { transform: scale(1.04); }
}
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-nophoto { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--line-2); font-size: 2rem; }
.card-status { position: absolute; top: 10px; left: 10px; padding: .25rem .6rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.card.is-reserved .card-status { background: var(--warn); color: #fff; }
.card-photos { position: absolute; right: 10px; bottom: 10px; padding: .2rem .5rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .7rem; font-weight: 700; backdrop-filter: blur(6px); display: inline-flex; gap: .3rem; align-items: center; }
.card.is-sold .card-media img { filter: grayscale(1); opacity: .7; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: .9375rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-price { font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; }
.card.is-sold .card-price { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.card-price-alt { font-size: .75rem; font-weight: 600; color: var(--muted); margin-left: .15rem; }
.card-cond { font-size: .75rem; color: var(--muted); font-weight: 600; }

.empty-state { text-align: center; padding: 64px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--muted); }
.empty-code { font-size: 5rem; font-weight: 900; letter-spacing: -0.06em; color: var(--accent); line-height: 1; }
.empty-state h1, .empty-state h2 { font-size: 1.375rem; font-weight: 700; }
.empty-state p { color: var(--muted); max-width: 40ch; }

.item-page { padding-top: 20px; padding-bottom: 56px; }
@media (min-width: 768px) { .item-page { padding-top: 28px; } }
.breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumbs a { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs-sep { color: var(--line-2); }

.item-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .item-layout { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); gap: 48px; align-items: start; } }

.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.gallery-open { width: 100%; height: 100%; display: block; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery.is-sold .gallery-main img { filter: grayscale(1); opacity: .75; }
.gallery-status { position: absolute; top: 14px; left: 14px; padding: .35rem .8rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.gallery-arrow, .lightbox-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 42px; height: 42px; border-radius: 50%;
	background: color-mix(in srgb, var(--surface) 85%, transparent);
	color: var(--ink);
	border: 1px solid var(--line);
	display: flex; align-items: center; justify-content: center;
	backdrop-filter: blur(8px);
	box-shadow: var(--shadow);
	opacity: 0; transition: opacity .15s, background .15s;
}
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-main:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .gallery-arrow { opacity: 1; } }
.gallery-counter, .lightbox-counter { position: absolute; bottom: 12px; right: 12px; padding: .2rem .6rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 700; backdrop-filter: blur(6px); }
.gallery-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 2rem; }
.gallery-empty span { font-size: .875rem; font-weight: 600; }

.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: opacity .15s, border-color .15s; background: var(--surface-2); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { opacity: 1; border-color: var(--accent); }

.item-panel { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .item-panel { position: sticky; top: calc(var(--header-h) + 20px); } }
.item-title { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 800; letter-spacing: -0.025em; }
.item-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.item-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.item-price-alt { font-size: 1.125rem; font-weight: 700; color: var(--muted); }
.item-negotiable { color: var(--muted); font-weight: 600; font-size: .9375rem; }

.item-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.item-specs > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.item-specs dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.item-specs dd { margin: 2px 0 0; font-weight: 600; font-size: .9375rem; }

.item-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .item-actions { flex-direction: row; flex-wrap: wrap; } .item-actions .btn { flex: 1 1 auto; } .item-actions .notice { flex-basis: 100%; } }

.notice { display: flex; align-items: flex-start; gap: .6rem; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; line-height: 1.4; }
.notice i { margin-top: .15em; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-sold { background: var(--surface-2); color: var(--ink-2); }
.notice-error { background: var(--bad-soft); color: var(--bad); }
.notice a { text-decoration: underline; }

.prose { color: var(--ink-2); font-size: 1rem; line-height: 1.65; }
.prose p { margin: 0 0 .9em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 .9em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .2em 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose h1, .prose h2, .prose h3 { color: var(--ink); margin: 1.2em 0 .5em; font-size: 1.125rem; font-weight: 700; }
.prose blockquote { margin: 0 0 .9em; padding: .2em 0 .2em 1em; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { font-family: 'IBM Plex Mono', monospace; font-size: .875em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.prose img { border-radius: var(--radius-sm); }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .4em .6em; text-align: left; }

.similar { margin-top: 56px; display: flex; flex-direction: column; gap: 18px; }
.similar h2 { font-size: 1.25rem; font-weight: 700; }

.action-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	display: flex; align-items: center; gap: 10px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: blur(14px);
	border-top: 1px solid var(--line);
}
.action-bar-price { font-weight: 800; font-size: 1.125rem; flex: 1; letter-spacing: -0.02em; display: flex; flex-direction: column; line-height: 1.15; }
.action-bar-price small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.action-bar .btn { padding: .8rem 1.1rem; }
body.has-action-bar { padding-bottom: 76px; }
@media (min-width: 900px) { .action-bar { display: none; } body.has-action-bar { padding-bottom: 0; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: .8125rem; font-weight: 700; color: var(--ink-2); display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.field-label small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.field-help { font-size: .75rem; color: var(--muted); }
.field-error { font-size: .8125rem; color: var(--bad); font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.input {
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: var(--radius-sm);
	padding: .75rem .9rem;
	font-size: 1rem;
	color: var(--ink);
	transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); }
textarea.input { resize: vertical; min-height: 6rem; line-height: 1.5; }
.check { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .9375rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

dialog.modal { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; margin: 0; display: none; align-items: flex-end; justify-content: center; }
dialog.modal[open] { display: flex; }
dialog.modal::backdrop { background: rgba(10, 10, 14, .55); backdrop-filter: blur(4px); }
.modal-card {
	position: relative;
	width: 100%; max-width: 520px;
	max-height: 92vh; overflow-y: auto;
	background: var(--surface);
	border-radius: 24px 24px 0 0;
	padding: 28px 22px calc(24px + env(safe-area-inset-bottom));
	display: flex; flex-direction: column; gap: 16px;
	box-shadow: var(--shadow-lg);
	animation: sheet-up .28s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 640px) {
	dialog.modal { align-items: center; padding: 24px; }
	.modal-card { border-radius: 24px; padding: 32px 30px 28px; animation: pop-in .22s cubic-bezier(.2,.8,.2,1); }
}
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { color: var(--ink); }
.modal-head { display: flex; flex-direction: column; gap: 6px; padding-right: 36px; }
.modal-kicker { font-size: .75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; gap: .4rem; }
.modal-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.modal-head p { color: var(--muted); font-size: .9375rem; }
.modal-foot { margin-top: 4px; }
.request-form.is-sent .field, .request-form.is-sent .modal-foot, .request-form.is-sent .modal-head p { display: none; }
.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 16px 0 4px; }
.form-success[hidden] { display: none; }
.form-success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; animation: pop-in .3s cubic-bezier(.2,.8,.2,1); }
.form-success p { font-weight: 600; font-size: 1.0625rem; }

dialog.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: #000; color: #fff; display: none; align-items: center; justify-content: center; }
dialog.lightbox[open] { display: flex; }
dialog.lightbox::backdrop { background: #000; }
dialog.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-arrow { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; opacity: 1; width: 48px; height: 48px; }
.lightbox-arrow.prev { left: 16px; }
.lightbox-arrow.next { right: 16px; }
.lightbox-arrow:hover { background: rgba(255,255,255,.22); }
.lightbox-counter { bottom: 20px; right: auto; left: 50%; transform: translateX(-50%); }

.toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
	z-index: 1200;
	padding: .75rem 1.1rem;
	border-radius: 999px;
	background: var(--ink); color: var(--bg);
	font-weight: 600; font-size: .9rem;
	box-shadow: var(--shadow-lg);
	opacity: 0; pointer-events: none;
	transition: opacity .2s, transform .2s;
	max-width: calc(100vw - 32px);
	text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }
body.has-action-bar .toast { bottom: 96px; }
@media (min-width: 900px) { body.has-action-bar .toast { bottom: 24px; } }

.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer-inner { display: grid; gap: 28px; padding: 40px 16px 24px; }
@media (min-width: 768px) { .site-footer-inner { grid-template-columns: 2fr 1fr 1fr; padding: 48px 28px 28px; } }
.footer-about { display: flex; flex-direction: column; gap: 12px; }
.footer-about p { color: var(--muted); font-size: .9375rem; max-width: 46ch; }
.footer-location { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink-2) !important; }
.site-footer h3 { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.footer-contacts, .footer-langs { display: flex; flex-direction: column; gap: 6px; }
.footer-contacts a, .footer-langs a { font-size: .9375rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: .5rem; width: fit-content; }
.footer-contacts a:hover, .footer-langs a:hover { color: var(--accent); }
.footer-langs a[aria-current] { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
@media (min-width: 768px) { .footer-bottom { padding: 16px 28px; } }
.footer-bottom a:hover { color: var(--ink); }
.footer-signin { opacity: .6; }

.page-narrow { max-width: 560px; padding-top: 40px; padding-bottom: 56px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.auth-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; }

@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop-in { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
