/*
Theme Name: LensLocal
Description: Photographer directory theme: search by location, profiles with portfolios, bookings and two-way reviews. Requires the LensLocal Core plugin.
Version: 1.0.0
Requires PHP: 8.1
Requires at least: 6.4
Text Domain: lenslocal
Update URI: false
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--ll-accent: #d9472b;
	--ll-accent-ink: #ffffff;
	--ll-accent-soft: color-mix(in srgb, var(--ll-accent) 11%, #ffffff);
	--ll-accent-strong: color-mix(in srgb, var(--ll-accent) 80%, #000000);

	--ll-bg: #faf8f5;
	--ll-bg-alt: #f2eee8;
	--ll-surface: #ffffff;
	--ll-ink: #17181b;
	--ll-ink-2: #3b3e45;
	--ll-muted: #686c75;
	--ll-line: #e7e2da;
	--ll-line-strong: #d3ccc1;

	--ll-star: #f0a20c;
	--ll-star-off: #ddd6ca;
	--ll-ok: #17703f;
	--ll-ok-soft: #e3f3e8;
	--ll-warn: #845400;
	--ll-warn-soft: #fff1cf;
	--ll-info: #1c4b8c;
	--ll-info-soft: #e5edfa;
	--ll-danger: #b0261c;
	--ll-danger-soft: #fceae8;

	--ll-radius: 18px;
	--ll-radius-sm: 12px;
	--ll-shadow: 0 1px 2px rgb(23 24 27 / 4%), 0 8px 24px rgb(23 24 27 / 6%);
	--ll-shadow-lg: 0 24px 60px rgb(23 24 27 / 14%);

	--ll-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ll-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--ll-container: 1200px;
	--ll-header: 72px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--ll-bg);
	color: var(--ll-ink);
	font-family: var(--ll-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	font-family: var(--ll-font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--ll-ink);
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ll-accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ll-ink); }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--ll-accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

ul, ol { padding: 0; margin: 0; list-style: none; }

button { font: inherit; color: inherit; }

.icon { flex: none; width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.icon--star { color: var(--ll-star); }

.sr-only {
	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:focus {
	position: fixed !important; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: var(--ll-ink); color: #fff; border-radius: 8px; margin: 0;
}

.muted { color: var(--ll-muted); font-weight: 400; }
.hint { color: var(--ll-muted); font-size: .875rem; margin: 0; }
.hint .icon { color: var(--ll-ok); margin-right: 4px; }
.eyebrow {
	margin: 0 0 .75rem; color: var(--ll-accent-strong); font-size: .8125rem; font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase;
}
.stack > * + * { margin-top: 16px; }

.container { width: 100%; max-width: var(--ll-container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 860px; }

.section { padding-block: 64px; }
.section--tight { padding-block: 24px 40px; }
.section--alt { background: var(--ll-bg-alt); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head--center { justify-content: center; text-align: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ==========================================================================
   Buttons, chips, badges
   ========================================================================== */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border: 1px solid transparent; border-radius: 999px;
	font-weight: 600; font-size: .9375rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ll-accent); color: var(--ll-accent-ink); }
.btn--primary:hover { background: var(--ll-accent-strong); color: var(--ll-accent-ink); }
.btn--ghost { background: var(--ll-surface); border-color: var(--ll-line-strong); color: var(--ll-ink); }
.btn--ghost:hover { border-color: var(--ll-ink); color: var(--ll-ink); }
.btn--link { background: none; color: var(--ll-ink-2); padding-inline: 10px; }
.btn--link:hover { color: var(--ll-accent-strong); }
.btn--danger { color: var(--ll-danger); }
.btn--danger:hover { color: var(--ll-danger); text-decoration: underline; }
.btn--sm { padding: 8px 14px; font-size: .875rem; }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row--center { justify-content: center; }

.chips, .genre-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
	background: var(--ll-surface); border: 1px solid var(--ll-line); color: var(--ll-ink-2);
	font-size: .875rem; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s;
}
a.chip:hover { border-color: var(--ll-ink); color: var(--ll-ink); }
.chip--lg { padding: 10px 18px; font-size: .9375rem; }
.chip__count { color: var(--ll-muted); font-size: .8125rem; }
.chip--active { background: var(--ll-ink); border-color: var(--ll-ink); color: #fff; }
.chip--active:hover { background: var(--ll-ink-2); color: #fff; }
.chip--active .icon { width: 14px; height: 14px; }

.badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
	font-size: .75rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; }
.badge--ok { background: var(--ll-ok-soft); color: var(--ll-ok); }
.badge--warn { background: var(--ll-warn-soft); color: var(--ll-warn); }
.badge--featured { background: var(--ll-accent); color: var(--ll-accent-ink); }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.pill--new { background: var(--ll-info-soft); color: var(--ll-info); }
.pill--accepted { background: var(--ll-warn-soft); color: var(--ll-warn); }
.pill--completed { background: var(--ll-ok-soft); color: var(--ll-ok); }
.pill--declined, .pill--cancelled { background: var(--ll-bg-alt); color: var(--ll-muted); }

.count-badge {
	display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: 999px; background: var(--ll-accent); color: #fff; font-size: .75rem; font-weight: 700;
}

.verified { display: inline-flex; color: var(--ll-ok); vertical-align: middle; }
.verified .icon { width: 18px; height: 18px; }

/* Stars: --rating from 0 to 5 */
.stars {
	--size: 1rem;
	display: inline-block; font-size: var(--size); line-height: 1; letter-spacing: 2px; font-family: Arial, sans-serif;
	vertical-align: -1px;
}
.stars::before {
	content: "★★★★★";
	background: linear-gradient(90deg, var(--ll-star) calc(var(--rating) / 5 * 100%), var(--ll-star-off) calc(var(--rating) / 5 * 100%));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.stars--lg { --size: 1.375rem; }

/* Avatars */
.avatar {
	--size: 48px;
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: var(--size); height: var(--size); border-radius: 50%; overflow: hidden; background: var(--ll-bg-alt);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--initials {
	background: hsl(var(--hue, 20) 55% 90%); color: hsl(var(--hue, 20) 45% 30%);
	font-weight: 700; font-size: calc(var(--size) * .36); letter-spacing: .02em;
}
.avatar--ring { box-shadow: 0 0 0 4px var(--ll-surface), 0 2px 10px rgb(0 0 0 / 10%); }

/* ==========================================================================
   Notices
   ========================================================================== */

.notice {
	display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; padding: 14px 16px;
	border-radius: var(--ll-radius-sm); background: var(--ll-info-soft); color: var(--ll-info); font-weight: 500;
}
.notice p { margin: 0; flex: 1; }
.notice > .icon { margin-top: 2px; }
.notice a { color: inherit; font-weight: 700; }
.notice--success { background: var(--ll-ok-soft); color: var(--ll-ok); }
.notice--error { background: var(--ll-danger-soft); color: var(--ll-danger); }
.notice__close { border: 0; background: none; padding: 2px; cursor: pointer; opacity: .7; }
.notice__close:hover { opacity: 1; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgb(250 248 245 / 88%); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--ll-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--ll-header); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ll-ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ll-ink); }
.brand__mark {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
	background: var(--ll-accent); color: #fff; transform: rotate(-6deg);
}
.brand__mark .icon { width: 20px; height: 20px; }
.brand__name { font-family: var(--ll-font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.brand__logo { max-height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 20px; flex: 1; }
.site-nav .menu { display: flex; gap: 4px; }
.site-nav .menu a {
	display: block; padding: 8px 14px; border-radius: 999px; color: var(--ll-ink-2);
	font-weight: 500; font-size: .9375rem; text-decoration: none;
}
.site-nav .menu a:hover, .site-nav .menu .current-menu-item > a:not([href*="#"]) { background: var(--ll-surface); color: var(--ll-ink); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.account-link {
	display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
	background: var(--ll-surface); border: 1px solid var(--ll-line); color: var(--ll-ink); font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.account-link:hover { border-color: var(--ll-ink); color: var(--ll-ink); }

.nav-toggle { display: none; margin-left: auto; padding: 8px; border: 1px solid var(--ll-line); border-radius: 10px; background: var(--ll-surface); cursor: pointer; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 20px;
		background: var(--ll-bg); border-bottom: 1px solid var(--ll-line); box-shadow: var(--ll-shadow);
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: 12px 8px; border-radius: 8px; }
	.header-actions { margin-left: 0; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--ll-line); }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend, .field__label { font-weight: 600; font-size: .9375rem; color: var(--ll-ink); margin: 0; padding: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"],
input[type="tel"], input[type="date"], input[type="search"], select, textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--ll-line-strong); border-radius: var(--ll-radius-sm);
	background: var(--ll-surface); color: var(--ll-ink); font: inherit; font-size: 1rem; line-height: 1.4;
	transition: border-color .15s, box-shadow .15s;
}
select {
	appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%23686c75' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus {
	outline: none; border-color: var(--ll-accent); box-shadow: 0 0 0 4px var(--ll-accent-soft);
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--ll-danger); }
.field__error { margin: 0; color: var(--ll-danger); font-size: .875rem; font-weight: 500; }

.check { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ll-accent); flex: none; }

.input-affix { display: flex; align-items: stretch; }
.input-affix span {
	display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--ll-line-strong); border-right: 0;
	border-radius: var(--ll-radius-sm) 0 0 var(--ll-radius-sm); background: var(--ll-bg-alt); color: var(--ll-muted); font-weight: 600;
}
.input-affix input { border-radius: 0 var(--ll-radius-sm) var(--ll-radius-sm) 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid__full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-card {
	padding: 24px; border: 1px solid var(--ll-line); border-radius: var(--ll-radius); background: var(--ll-surface);
}
.form-card h3 { margin-bottom: 12px; }
.form-card .hint { margin-top: 8px; }

/* Segmented radio */
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ll-line-strong); border-radius: var(--ll-radius-sm); overflow: hidden; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; padding: 9px 4px; text-align: center; font-size: .875rem; font-weight: 600; color: var(--ll-ink-2); background: var(--ll-surface); }
.segmented label + label span { border-left: 1px solid var(--ll-line-strong); }
.segmented input:checked + span { background: var(--ll-ink); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--ll-accent); outline-offset: -3px; }

/* Star rating input (DOM order 5→1, shown 1→5) */
.rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; color: var(--ll-star-off); padding: 2px; transition: color .1s, transform .1s; }
.rate label .icon { width: 32px; height: 32px; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: var(--ll-star); }
.rate label:hover { transform: scale(1.08); }
.rate input:focus-visible + label { outline: 3px solid var(--ll-accent-soft); border-radius: 6px; }
.field--error .rate label { color: color-mix(in srgb, var(--ll-danger) 30%, var(--ll-star-off)); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 56px 0 72px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.02; margin-bottom: 20px; }
.hero__text { font-size: 1.1875rem; color: var(--ll-ink-2); max-width: 34rem; margin-bottom: 28px; }

.search-card {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: stretch; gap: 0;
	padding: 8px; background: var(--ll-surface); border-radius: 22px; box-shadow: var(--ll-shadow-lg); border: 1px solid var(--ll-line);
}
.search-card__field { display: grid; gap: 0; padding: 6px 12px; min-width: 0; }
.search-card__field + .search-card__field { border-left: 1px solid var(--ll-line); }
.search-card__field label { display: flex; align-items: center; gap: 6px; padding-left: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ll-muted); }
.search-card__field label .icon { width: 14px; height: 14px; }
.search-card__field select { border: 0; padding: 4px 32px 4px 4px; font-weight: 600; background-position: right 4px center; box-shadow: none; }
.search-card__field select:focus { box-shadow: none; }
.search-card__submit { border-radius: 16px; }

.geo-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; }
.geo-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; cursor: pointer;
	color: var(--ll-accent-strong); font-weight: 600; font-size: .9375rem;
}
.geo-btn:hover { color: var(--ll-ink); }
.geo-status { color: var(--ll-muted); font-size: .875rem; }

.stats { display: flex; gap: 40px; margin: 40px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--ll-muted); font-size: .875rem; }
.stats dd { margin: 0; font-family: var(--ll-font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; }

.hero__collage { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: min(560px, 62vw); }
.hero__photo { border-radius: 24px; overflow: hidden; background: var(--ll-bg-alt); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--1 { grid-row: 1 / 3; }
.hero__photo--2 { transform: translateY(18px); }
.hero__photo--3 { transform: translateY(-6px); }
.hero__badge {
	position: absolute; left: -24px; bottom: 36px; display: flex; align-items: center; gap: 10px;
	padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--ll-surface); box-shadow: var(--ll-shadow-lg); font-size: .875rem;
}
.hero__badge div { display: grid; line-height: 1.35; }
.hero__badge span { color: var(--ll-muted); }

/* ==========================================================================
   Home sections
   ========================================================================== */

.city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.city-card {
	position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--ll-radius); overflow: hidden;
	background: linear-gradient(135deg, var(--ll-ink-2), var(--ll-ink)); color: #fff; text-decoration: none; isolation: isolate;
}
.city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.city-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / 70%)); }
.city-card:hover img { transform: scale(1.05); }
.city-card:hover { color: #fff; }
.city-card__body { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; }
.city-card__name { font-family: var(--ll-font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.city-card__count { font-size: .875rem; opacity: .85; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.step { padding: 28px; border-radius: var(--ll-radius); background: var(--ll-surface); border: 1px solid var(--ll-line); }
.step__num {
	display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%;
	background: var(--ll-accent-soft); color: var(--ll-accent-strong); font-family: var(--ll-font-display); font-size: 1.25rem; font-weight: 600;
}
.step p { color: var(--ll-ink-2); }

.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 24px; border-radius: var(--ll-radius); background: var(--ll-surface); border: 1px solid var(--ll-line); }
.quote blockquote { margin: 0; flex: 1; font-size: 1.0625rem; color: var(--ll-ink-2); }
.quote figcaption { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--ll-muted); }
.quote figcaption strong { color: var(--ll-ink); }

.cta {
	display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 56px;
	border-radius: 28px; background: var(--ll-ink); color: #e9e6e1;
	background-image: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--ll-accent) 45%, transparent), transparent 55%);
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { max-width: 36rem; margin: 0; }

/* ==========================================================================
   Photographer cards
   ========================================================================== */

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cards--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pcard {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	border-radius: var(--ll-radius); background: var(--ll-surface); border: 1px solid var(--ll-line);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--ll-shadow); border-color: var(--ll-line-strong); }
.pcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--ll-bg-alt); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__placeholder { display: grid; place-items: center; height: 100%; color: var(--ll-line-strong); }
.pcard__placeholder .icon { width: 48px; height: 48px; }
.pcard__badge { position: absolute; top: 12px; left: 12px; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 0 18px 16px; }
.pcard__head { position: relative; z-index: 2; padding-top: 36px; }
.pcard__head > .avatar { position: absolute; top: -26px; left: 0; }
.pcard__who { min-width: 0; }
.pcard__name { margin: 0; font-size: 1.125rem; line-height: 1.25; }
.pcard__name a { color: var(--ll-ink); text-decoration: none; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__loc { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; color: var(--ll-muted); font-size: .875rem; }
.pcard__loc .icon { width: 15px; height: 15px; }
.pcard__headline {
	margin: 12px 0 0; color: var(--ll-ink-2); font-size: .9375rem; line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px;
	font-size: .9375rem;
}
.pcard__body > .pcard__headline + .pcard__foot, .pcard__head + .pcard__foot { margin-top: 14px; border-top: 1px solid var(--ll-line); }
.pcard__rating { display: inline-flex; align-items: center; gap: 4px; }
.pcard__price strong { font-size: 1rem; }

/* ==========================================================================
   Catalog
   ========================================================================== */

.catalog { padding: 24px 0 72px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: .875rem; color: var(--ll-muted); }
.breadcrumbs a { color: var(--ll-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ll-ink); text-decoration: underline; }
.catalog-head { margin-bottom: 28px; max-width: 760px; }
.catalog-head h1 { margin-bottom: 8px; }
.catalog-head__desc { color: var(--ll-ink-2); }

.catalog-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--ll-header) + 20px); }
.filters__box { border-radius: var(--ll-radius); background: var(--ll-surface); border: 1px solid var(--ll-line); }
.filters__box summary {
	display: flex; align-items: center; gap: 8px; padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none;
}
.filters__box summary::-webkit-details-marker { display: none; }
.filters__form { display: grid; gap: 20px; padding: 0 20px 20px; }
.filters .geo-btn { justify-self: start; font-size: .875rem; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.toolbar__count { margin: 0; font-weight: 600; }
.toolbar__sort { display: flex; align-items: center; gap: 10px; }
.toolbar__sort label { color: var(--ll-muted); font-size: .875rem; white-space: nowrap; }
.toolbar__sort select { width: auto; padding-block: 8px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 56px 24px; text-align: center; border-radius: var(--ll-radius); border: 1px dashed var(--ll-line-strong); }
.empty > .icon { width: 40px; height: 40px; color: var(--ll-muted); margin-bottom: 4px; }
.empty h1, .empty h2 { margin: 0; }
.empty p { color: var(--ll-muted); max-width: 30rem; }
.empty--small { padding: 36px 20px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px;
	border: 1px solid var(--ll-line); background: var(--ll-surface); color: var(--ll-ink); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers:hover { border-color: var(--ll-ink); }
.pagination .current { background: var(--ll-ink); border-color: var(--ll-ink); color: #fff; }
.pagination .dots { border: 0; background: none; }

/* ==========================================================================
   Profile
   ========================================================================== */

.profile { padding: 24px 0 72px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.profile-head { display: flex; gap: 28px; align-items: flex-start; padding-bottom: 32px; border-bottom: 1px solid var(--ll-line); }
.profile-head h1 { margin-bottom: 4px; }
.profile-head__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.profile-head__badges:empty { display: none; }
.profile-head__headline { font-size: 1.125rem; color: var(--ll-ink-2); margin-bottom: 14px; }
.meta-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; color: var(--ll-ink-2); font-size: .9375rem; }
.meta-list li { display: inline-flex; align-items: center; gap: 6px; }
.meta-list .icon { color: var(--ll-muted); }
.meta-rating { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }

.profile-section { padding-top: 40px; }
.profile-section > h2 { display: flex; align-items: baseline; gap: 10px; }
.profile-section > h2 .muted { font-family: var(--ll-font); font-size: 1rem; }
.also-works { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; color: var(--ll-ink-2); }

.masonry { columns: 3 220px; column-gap: 12px; }
.masonry__item { display: block; margin-bottom: 12px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--ll-bg-alt); }
.masonry__item img { width: 100%; transition: transform .4s, opacity .2s; }
.masonry__item:hover img { transform: scale(1.03); }

.prose { max-width: 70ch; color: var(--ll-ink-2); font-size: 1.0625rem; }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }

.profile-aside { position: sticky; top: calc(var(--ll-header) + 24px); }
.price-card { display: grid; gap: 16px; padding: 24px; border-radius: var(--ll-radius); background: var(--ll-surface); border: 1px solid var(--ll-line); box-shadow: var(--ll-shadow); }
.price-card__price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price-card__price strong { font-family: var(--ll-font-display); font-size: 2.25rem; line-height: 1; }
.price-card__rating { display: flex; align-items: center; gap: 6px; margin: 0; }
.contacts { padding-top: 16px; border-top: 1px solid var(--ll-line); }
.contacts__title { font-family: var(--ll-font); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ll-muted); margin-bottom: 10px; }
.contacts ul { display: grid; gap: 10px; }
.contacts li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.contacts li a { color: var(--ll-ink); overflow-wrap: anywhere; }
.contacts .icon { color: var(--ll-muted); }
.locked { display: flex; gap: 10px; margin: 0; color: var(--ll-ink-2); font-size: .9375rem; }
.locked .icon { color: var(--ll-muted); margin-top: 2px; }

/* Reviews */
.rating-summary { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 24px; padding: 24px; border-radius: var(--ll-radius); background: var(--ll-surface); border: 1px solid var(--ll-line); }
.rating-summary__score { display: grid; justify-items: start; gap: 4px; }
.rating-summary__score strong { font-family: var(--ll-font-display); font-size: 3.25rem; line-height: 1; }
.rating-bars { display: grid; gap: 6px; }
.rating-bars li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 32px; align-items: center; gap: 10px; font-size: .875rem; }
.rating-bars li > span:first-child { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.bar { height: 8px; border-radius: 999px; background: var(--ll-bg-alt); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--ll-star); }

#review-form { margin-bottom: 8px; }
.review-list { display: grid; }
.review { padding: 24px 0; border-bottom: 1px solid var(--ll-line); }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.review__author { margin: 0; font-weight: 600; }
.review__author a { color: var(--ll-ink); text-decoration: none; }
.review__author a:hover { text-decoration: underline; }
.review__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 2px 0 0; color: var(--ll-muted); font-size: .875rem; }
.review__subject { margin: 0 0 8px; font-size: .9375rem; }
.review__text { color: var(--ll-ink-2); }
.review__reply { margin-top: 14px; padding: 14px 16px; border-radius: var(--ll-radius-sm); background: var(--ll-bg-alt); border-left: 3px solid var(--ll-accent); font-size: .9375rem; color: var(--ll-ink-2); }
.review__reply-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--ll-ink); }
.review__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 14px; }
.reply-form { flex: 1 1 100%; }
.reply-form summary { list-style: none; width: max-content; }
.reply-form summary::-webkit-details-marker { display: none; }
.reply-form form { margin-top: 12px; }

/* Lightbox */
.lightbox {
	position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 56px 72px;
	background: rgb(12 12 14 / 94%);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgb(0 0 0 / 50%); }
.lightbox__btn {
	position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
	background: rgb(255 255 255 / 12%); color: #fff; cursor: pointer; transition: background .15s;
}
.lightbox__btn:hover { background: rgb(255 255 255 / 24%); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); color: rgb(255 255 255 / 75%); font-size: .875rem; }

/* ==========================================================================
   Account
   ========================================================================== */

.account { padding: 32px 0 80px; }
.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--ll-header) + 24px); display: grid; gap: 16px; padding: 16px; border-radius: var(--ll-radius); background: var(--ll-surface); border: 1px solid var(--ll-line); }
.account-nav__user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; border-bottom: 1px solid var(--ll-line); }
.account-nav__user div { display: grid; line-height: 1.35; min-width: 0; }
.account-nav__user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav__user .muted { font-size: .875rem; }
.account-nav nav ul { display: grid; gap: 2px; }
.account-nav nav a {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
	color: var(--ll-ink-2); font-weight: 500; text-decoration: none;
}
.account-nav nav a span:not(.count-badge) { flex: 1; }
.account-nav nav a:hover { background: var(--ll-bg); color: var(--ll-ink); }
.account-nav nav a[aria-current="page"] { background: var(--ll-accent-soft); color: var(--ll-accent-strong); font-weight: 600; }
.account-nav__links { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--ll-line); font-size: .875rem; }
.account-nav__links a { display: flex; align-items: center; gap: 8px; padding: 6px 12px; color: var(--ll-muted); text-decoration: none; }
.account-nav__links a:hover { color: var(--ll-ink); }

.account-head { margin-bottom: 24px; }
.account-head h1 { margin-bottom: 6px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.account-section { margin-top: 40px; }
.account-section > h2 { font-size: 1.375rem; display: flex; gap: 10px; align-items: baseline; }
.account-section > h2 .muted { font-family: var(--ll-font); font-size: 1rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tabs a {
	padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ll-line); background: var(--ll-surface);
	color: var(--ll-ink-2); font-size: .875rem; font-weight: 600; text-decoration: none;
}
.tabs a[aria-current="page"] { background: var(--ll-ink); border-color: var(--ll-ink); color: #fff; }
.tabs a[aria-current="page"] .muted { color: rgb(255 255 255 / 70%); }

.booking-list { display: grid; gap: 16px; }
.booking { padding: 20px 22px; border-radius: var(--ll-radius); background: var(--ll-surface); border: 1px solid var(--ll-line); }
.booking:target { border-color: var(--ll-accent); box-shadow: 0 0 0 4px var(--ll-accent-soft); }
.booking__head { display: flex; align-items: center; gap: 12px; }
.booking__head > div { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.booking__head .muted { font-size: .875rem; display: inline-flex; gap: 4px; align-items: center; }
.booking__name { font-weight: 700; color: var(--ll-ink); text-decoration: none; }
.booking__name:hover { text-decoration: underline; }
.booking__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 14px 0; border-block: 1px solid var(--ll-line); }
.booking__meta dt { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ll-muted); }
.booking__meta dd { margin: 2px 0 0; font-weight: 600; }
.booking__msg { margin: 14px 0 0; color: var(--ll-ink-2); }
.booking__contacts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: var(--ll-radius-sm); background: var(--ll-ok-soft); font-size: .9375rem; }
.booking__contacts a { display: inline-flex; align-items: center; gap: 6px; color: var(--ll-ink); }
.booking__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.status-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--ll-radius-sm); font-weight: 500; }
.status-line p { margin: 0; }
.status-line--ok { background: var(--ll-ok-soft); color: var(--ll-ok); }
.status-line--warn { background: var(--ll-warn-soft); color: var(--ll-warn); }
.status-line--info { background: var(--ll-info-soft); color: var(--ll-info); }

.panel-form { display: grid; gap: 20px; }
.panel { display: grid; gap: 16px; padding: 24px; border-radius: var(--ll-radius); background: var(--ll-surface); border: 1px solid var(--ll-line); }
.panel > legend { float: left; width: 100%; margin-bottom: 4px; font-family: var(--ll-font-display); font-size: 1.25rem; font-weight: 600; }
.panel > legend + * { clear: both; }
.panel--error { border-color: var(--ll-danger); }
.panel--actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: sticky; bottom: 12px; box-shadow: var(--ll-shadow); }
.panel--highlight { margin-bottom: 8px; background: var(--ll-accent-soft); border-color: transparent; }
.panel__title { font-size: 1.125rem; margin: 0; }

.check-groups { display: grid; gap: 8px; }
.check-group { border: 1px solid var(--ll-line); border-radius: var(--ll-radius-sm); }
.check-group summary { padding: 10px 14px; font-weight: 600; cursor: pointer; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; padding: 4px 14px 14px; }

.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ll-line-strong); background: var(--ll-surface); font-size: .9375rem; font-weight: 500; transition: all .15s; }
.chip-check input:checked + span { background: var(--ll-ink); border-color: var(--ll-ink); color: #fff; }
.chip-check input:focus-visible + span { outline: 3px solid var(--ll-accent-soft); outline-offset: 2px; }

.switch { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 999px; background: var(--ll-line-strong); cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); transition: transform .2s; }
.switch input:checked { background: var(--ll-ok); }
.switch input:checked::after { transform: translateX(18px); }

.upload-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 24px; padding: 16px; border-radius: var(--ll-radius); background: var(--ll-surface); border: 1px solid var(--ll-line); }
.upload-box__drop {
	flex: 1 1 320px; display: grid; justify-items: center; gap: 4px; padding: 24px; text-align: center; cursor: pointer;
	border: 2px dashed var(--ll-line-strong); border-radius: var(--ll-radius-sm); transition: border-color .15s, background .15s;
}
.upload-box__drop:hover, .upload-box.is-dragover .upload-box__drop { border-color: var(--ll-accent); background: var(--ll-accent-soft); }
.upload-box__drop > .icon { width: 32px; height: 32px; color: var(--ll-accent); }
.upload-box__files { font-size: .875rem; font-weight: 600; color: var(--ll-ink); }
.upload-box__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-box__input:focus-visible + .btn, .upload-box:focus-within .upload-box__drop { border-color: var(--ll-accent); }

.photo-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.photo-manager li { position: relative; border-radius: var(--ll-radius-sm); overflow: hidden; background: var(--ll-bg-alt); aspect-ratio: 4 / 3; }
.photo-manager li.is-cover { box-shadow: 0 0 0 3px var(--ll-accent); }
.photo-manager img { width: 100%; height: 100%; object-fit: cover; }
.photo-manager__cover { position: absolute; top: 10px; left: 10px; }
.photo-manager__tools {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: 6px; padding: 10px;
	background: linear-gradient(180deg, transparent, rgb(0 0 0 / 55%));
}
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--ll-ink); cursor: pointer; }
.icon-btn:hover { background: #fff; color: var(--ll-accent-strong); }
.icon-btn--danger:hover { color: var(--ll-danger); }
.icon-btn .icon { width: 18px; height: 18px; }

.avatar-edit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar-edit .field { flex: 1; min-width: 220px; }
.avatar-edit input[type="file"] { font-size: .9375rem; }

.todo-list { display: grid; gap: 8px; }
.todo-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--ll-radius-sm); background: var(--ll-surface); }

/* ==========================================================================
   Auth & client pages, generic pages
   ========================================================================== */

.auth { display: grid; place-items: start center; padding: 56px 20px 80px; }
.auth__card { width: 100%; max-width: 460px; padding: 36px; border-radius: 24px; background: var(--ll-surface); border: 1px solid var(--ll-line); box-shadow: var(--ll-shadow); }
.auth__card--wide { max-width: 560px; }
.auth__card > h1 { font-size: 2rem; margin-bottom: 6px; }
.auth__card > .muted { margin-bottom: 24px; }
.auth__card > .icon { width: 36px; height: 36px; color: var(--ll-muted); margin-bottom: 12px; }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9375rem; }
.auth__switch { margin: 24px 0 0; text-align: center; color: var(--ll-muted); }

.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-picker legend { margin-bottom: 8px; font-weight: 600; font-size: .9375rem; }
.role-option { position: relative; cursor: pointer; }
.role-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.role-option > span {
	display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: var(--ll-radius-sm);
	border: 2px solid var(--ll-line); background: var(--ll-surface); transition: border-color .15s, background .15s;
}
.role-option .icon { width: 24px; height: 24px; color: var(--ll-accent); margin-bottom: 4px; }
.role-option strong { font-size: .9375rem; line-height: 1.3; }
.role-option small { color: var(--ll-muted); font-size: .8125rem; }
.role-option input:checked + span { border-color: var(--ll-accent); background: var(--ll-accent-soft); }
.role-option input:focus-visible + span { outline: 3px solid var(--ll-accent-soft); outline-offset: 2px; }

.client-page { padding: 40px 0 80px; }
.client-head { display: flex; gap: 24px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--ll-line); }
.client-head h1 { margin-bottom: 8px; }
.client-head .meta-list { margin: 0; }

.page-content { padding: 48px 0 80px; }
.page-title { margin-bottom: 24px; }
.page-cover { margin-bottom: 28px; border-radius: var(--ll-radius); overflow: hidden; }
.post-list { display: grid; gap: 28px; }
.post-item h2 { font-size: 1.5rem; margin-bottom: 6px; }
.post-item h2 a { color: var(--ll-ink); text-decoration: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { margin-top: 40px; padding: 64px 0 32px; background: var(--ll-ink); color: #c8c4bd; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 22rem; }
.brand--light, .brand--light:hover { color: #fff; }
.footer-title { margin-bottom: 14px; font-family: var(--ll-font); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.site-footer .menu { display: grid; gap: 8px; }
.site-footer a { color: #e7e3dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contacts { margin-top: 12px; }
.footer-contacts a { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 12%); }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cards--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.profile-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
}

@media (max-width: 960px) {
	.hero__grid { grid-template-columns: 1fr; gap: 40px; }
	.hero__collage { height: 380px; }
	.hero__badge { left: 16px; bottom: 16px; }
	.catalog-layout { grid-template-columns: 1fr; gap: 20px; }
	.filters { position: static; }
	/* Profile on small screens: header → price card → portfolio, about, booking, reviews */
	.profile-layout { display: flex; flex-direction: column; gap: 0; }
	.profile-main { display: contents; }
	.profile-head { order: 1; }
	.profile-aside { order: 2; position: static; width: 100%; margin-top: 24px; }
	.profile-section { order: 3; }
	.account-layout { grid-template-columns: 1fr; gap: 24px; }
	.account-nav { position: static; }
	.account-nav nav ul { display: flex; overflow-x: auto; gap: 4px; }
	.account-nav nav a { white-space: nowrap; }
	.steps, .quote-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
	.booking__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	.section { padding-block: 48px; }
	.search-card { grid-template-columns: 1fr; padding: 6px; }
	.search-card__field + .search-card__field { border-left: 0; border-top: 1px solid var(--ll-line); }
	.search-card__field { padding: 10px 12px; }
	.search-card__submit { margin: 6px; }
	.stats { gap: 24px; }
	.stats dd { font-size: 1.5rem; }
	.cards, .cards--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.profile-head { flex-direction: column; gap: 16px; }
	.profile-head .avatar { --size: 88px !important; }
	.rating-summary { grid-template-columns: 1fr; gap: 16px; }
	.masonry { columns: 2; column-gap: 8px; }
	.masonry__item { margin-bottom: 8px; border-radius: 10px; }
	.toolbar { flex-wrap: wrap; }
	.lightbox { padding: 56px 8px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
	.client-head { flex-direction: column; align-items: flex-start; }
	.auth__card { padding: 24px 20px; }
	.role-picker { grid-template-columns: 1fr; }
	.panel { padding: 18px; }
	.status-line { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
	.cards, .cards--catalog { grid-template-columns: 1fr; }
	.hero { padding-top: 32px; }
	.hero__collage { height: 300px; gap: 8px; }
	.hero__photo { border-radius: 16px; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.booking__meta { grid-template-columns: 1fr 1fr; }
	.section-head { flex-direction: column; align-items: flex-start; }
}
