/* Spain.st — сайт. Палитра «Mediterranean quiet luxury»: песок, морская тушь, терракота, шампань. */
:root {
	/* Палитра 2027 (WGSN × Coloro): Luminous Blue, Energy Orange, Clay, Meadowland на тёплом «облачном» белом */
	--lg-ink: #10142e;
	--lg-ink-2: #1c2247;
	--lg-sea: #3553e8;
	--lg-sand: #f3eee6;
	--lg-sand-2: #e8e1d5;
	--lg-paper: #fbf9f5;
	--lg-accent: #3553e8;
	--lg-accent-2: #2540cc;
	--lg-accent-soft: #e6eaff;
	--lg-orange: #ff6a2c;
	--lg-clay: #b8775a;
	--lg-meadow: #5f8c43;
	--lg-gold: #b08a4e;
	--lg-gold-2: #f0d9ab;
	--lg-text: #1b1f36;
	--lg-muted: #646985;
	--lg-line: rgba(16, 20, 46, .12);
	--lg-r: 22px;
	--lg-r-sm: 14px;
	--lg-shadow: 0 1px 2px rgba(16, 20, 46, .05), 0 12px 32px -12px rgba(16, 20, 46, .18);
	--lg-shadow-lg: 0 30px 80px -30px rgba(16, 20, 46, .45);
	--lg-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--lg-sans: Manrope, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--lg-wrap: 1320px;
	--lg-ease: cubic-bezier(.2, .7, .2, 1);
}

@view-transition { navigation: auto; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.lg-site { background: var(--lg-paper); color: var(--lg-text); font-family: var(--lg-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.lg-site #wrapper { min-width: 0; overflow-x: clip; }
body.lg-site #inner-wrap { background: transparent; }
.lg-site a { color: inherit; }
.lg-site img { max-width: 100%; height: auto; }
.lg-site h1, .lg-site h2, .lg-site h3 { font-family: var(--lg-serif); color: var(--lg-ink); font-weight: 500; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
.lg-site h2 em, .lg-site h1 em { font-style: italic; color: var(--lg-accent); font-weight: 400; }
.lg-wrap { width: min(var(--lg-wrap), 100% - 40px); margin-inline: auto; }
.lg-muted { color: var(--lg-muted); }
.lg-kicker { font: 700 12px/1 var(--lg-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--lg-accent); margin: 0 0 14px; display: inline-flex; gap: 10px; align-items: center; }
.lg-kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lg-kicker--light { color: var(--lg-gold-2); }
.lg-i { flex: none; vertical-align: middle; }

/* Кнопки */
.lg-btn { --b: var(--lg-ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font: 700 15px/1 var(--lg-sans); letter-spacing: .01em; text-decoration: none !important; cursor: pointer; transition: transform .25s var(--lg-ease), background .25s, box-shadow .25s, color .25s; white-space: nowrap; }
.lg-btn:hover { transform: translateY(-2px); }
.lg-btn--primary { background: var(--lg-accent); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(53, 83, 232, .55); }
.lg-btn--primary:hover { background: var(--lg-accent-2); }
.lg-btn--dark { background: var(--lg-ink); color: #fff !important; }
.lg-btn--light { background: #fff; color: var(--lg-ink) !important; }
.lg-btn--ghost { background: transparent; border-color: var(--lg-line); color: var(--lg-ink) !important; }
.lg-btn--ghost:hover { border-color: var(--lg-ink); }
.lg-btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.lg-btn--wa { background: #1f9d55; color: #fff !important; }
.lg-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.lg-btn--lg { min-height: 58px; padding: 0 30px; }
.lg-btn--block { width: 100%; }
.lg-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--lg-ink); text-decoration: none; border: 0; background: none; padding: 0; cursor: pointer; border-bottom: 1px solid currentColor; }

/* Шапка */
#masthead.lg-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 253, 249, .82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--lg-line); transition: box-shadow .3s; }
.lg-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(16, 20, 46, .4); }
.lg-topbar { background: var(--lg-ink); color: rgba(255, 255, 255, .72); font-size: 12.5px; }
.lg-topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 20px; }
.lg-topbar__in span { display: inline-flex; gap: 8px; align-items: center; }
.lg-topbar a { color: #fff; text-decoration: none; }
.lg-topbar__r { gap: 22px !important; }
.lg-header.is-scrolled .lg-topbar { display: none; }
.lg-header__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.lg-brand { color: var(--lg-ink); display: inline-flex; flex: none; }
.lg-logo { height: 44px; width: auto; display: block; }
.lg-nav { display: flex; gap: 4px; margin-inline: auto; }
.lg-nav a { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--lg-ink); transition: background .2s; }
.lg-nav a:hover { background: var(--lg-sand); }
.lg-nav a.is-gold { color: var(--lg-gold); }
.lg-nav a.is-gold::before { content: "★ "; font-size: 11px; }
.lg-header__act { display: flex; align-items: center; gap: 12px; }
.lg-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lg-iconbtn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--lg-line); color: var(--lg-ink); }
.lg-iconbtn [data-fav-count] { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--lg-accent); color: #fff; font: 700 11px/18px var(--lg-sans); text-align: center; padding: 0 4px; }
.lg-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--lg-line); background: transparent; padding: 0; cursor: pointer; position: relative; }
.lg-burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--lg-ink); border-radius: 2px; transition: transform .3s, top .3s; }
.lg-burger i:first-child { top: 17px; }
.lg-burger i:last-child { top: 25px; }
.lg-burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.lg-burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }
.lg-drawer { position: fixed; inset: 0; top: var(--lg-hh, 76px); background: var(--lg-paper); z-index: 89; padding: 16px 20px 120px; overflow: auto; animation: lg-fade .3s; }
.lg-drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--lg-line); font: 500 24px/1.2 var(--lg-serif); color: var(--lg-ink); text-decoration: none; }
.lg-drawer__foot { display: grid; gap: 10px; margin-top: 24px; }

/* Hero */
.lg-hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.lg-hero__bg { position: absolute; inset: 0; z-index: -1; }
.lg-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: lg-kenburns 18s var(--lg-ease) both; }
.lg-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 15, 38, .72) 0%, rgba(12, 15, 38, .38) 42%, rgba(12, 15, 38, 0) 68%), linear-gradient(180deg, rgba(12, 15, 38, .35) 0%, rgba(12, 15, 38, .15) 35%, rgba(12, 15, 38, .78) 78%, rgba(12, 15, 38, .92) 100%), radial-gradient(80% 60% at 0% 100%, rgba(12, 15, 38, .6), transparent); }
.lg-hero__in { padding: 140px 0 56px; }
.lg-hero__title { color: #fff !important; font-size: clamp(42px, 7vw, 104px); line-height: .98; max-width: 15ch; letter-spacing: -.03em; animation: lg-rise 1s var(--lg-ease) both; }
.lg-hero__title em { color: var(--lg-gold-2) !important; }
.lg-hero__text { max-width: 58ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .85); margin: 22px 0 34px; animation: lg-rise 1s .1s var(--lg-ease) both; }
.lg-hsearch { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border-radius: 28px; padding: 14px; max-width: 1060px; animation: lg-rise 1s .2s var(--lg-ease) both; }
.lg-hsearch__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; margin-top: 10px; }
.lg-hsearch__f { background: #fff; border-radius: 18px; padding: 10px 16px 8px; display: flex; flex-direction: column; color: var(--lg-ink); min-width: 0; }
.lg-hsearch__f span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lg-muted); }
.lg-hsearch__f select { border: 0 !important; background: transparent !important; padding: 2px 0 !important; font: 600 16px var(--lg-sans); color: var(--lg-ink); box-shadow: none !important; min-height: 0; width: 100%; }
.lg-hero__stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 48px; margin: 40px 0 0; padding: 0; }
.lg-hero__stats div { border-left: 1px solid rgba(255, 255, 255, .28); padding-left: 16px; }
.lg-hero__stats dt { font: 500 clamp(26px, 3vw, 40px)/1 var(--lg-serif); color: #fff; }
.lg-hero__stats dd { margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, .7); }
.lg-hero__tag { position: absolute; right: 28px; bottom: 28px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: rgba(12, 15, 38, .45); backdrop-filter: blur(12px); color: #fff !important; text-decoration: none; font-size: 13px; border: 1px solid rgba(255, 255, 255, .18); }
.lg-hero__tag small { color: rgba(255, 255, 255, .65); }

/* Сегменты и поля */
.lg-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--lg-sand); }
.lg-seg label { margin: 0; cursor: pointer; }
.lg-seg input { position: absolute; opacity: 0; pointer-events: none; }
.lg-seg span { display: block; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--lg-muted); transition: background .2s, color .2s; }
.lg-seg input:checked + span { background: var(--lg-ink); color: #fff; }
.lg-seg input:focus-visible + span { outline: 2px solid var(--lg-accent); }
.lg-seg--glass { background: rgba(255, 255, 255, .14); }
.lg-seg--glass span { color: rgba(255, 255, 255, .85); }
.lg-seg--glass input:checked + span { background: #fff; color: var(--lg-ink); }
.lg-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.lg-field > span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lg-muted); }
.lg-site .lg-field input, .lg-site .lg-field select, .lg-site .lg-field textarea { width: 100%; border: 1px solid var(--lg-line); border-radius: 14px; background: #fff; padding: 12px 14px; font: 500 15px var(--lg-sans); color: var(--lg-ink); min-height: 48px; box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.lg-site .lg-field textarea { min-height: 96px; resize: vertical; }
.lg-site .lg-field input:focus, .lg-site .lg-field select:focus, .lg-site .lg-field textarea:focus { outline: 0; border-color: var(--lg-ink); box-shadow: 0 0 0 4px rgba(16, 20, 46, .08); }

/* Секции */
.lg-main { display: block; }
.lg-section { padding: clamp(64px, 9vw, 120px) 0; }
.lg-section--sand { background: var(--lg-sand); }
.lg-head { margin-bottom: clamp(28px, 4vw, 52px); }
.lg-head h2 { font-size: clamp(34px, 4.6vw, 64px); }
.lg-head--split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: end; }
.lg-head__side p { color: var(--lg-muted); margin: 0 0 18px; max-width: 52ch; }
.lg-carousel-nav { display: flex; align-items: center; gap: 10px; }
.lg-carousel-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--lg-line); background: #fff; font-size: 18px; cursor: pointer; color: var(--lg-ink); transition: background .2s, color .2s; }
.lg-carousel-nav button:hover { background: var(--lg-ink); color: #fff; }
.lg-carousel-nav .lg-link { margin-left: 12px; }

/* Карточки */
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 24px; }
.lg-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.lg-card { position: relative; display: flex; flex-direction: column; background: var(--lg-paper); border-radius: var(--lg-r); overflow: hidden; box-shadow: var(--lg-shadow); transition: transform .4s var(--lg-ease), box-shadow .4s; min-width: 0; }
.lg-section--sand .lg-card { background: #fff; }
.lg-card:hover { transform: translateY(-6px); box-shadow: var(--lg-shadow-lg); }
.lg-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lg-sand-2); }
.lg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--lg-ease), opacity .3s; }
.lg-card:hover .lg-card__media img { transform: scale(1.06); }
.lg-card__badges { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 70px); }
.lg-card__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 5px; align-items: center; padding: 4px 9px; border-radius: 999px; background: rgba(12, 15, 38, .55); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 700; }
.lg-card__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; opacity: 0; transition: opacity .3s; }
.lg-card__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.lg-card__dots i.is-on { background: #fff; }
.lg-card:hover .lg-card__dots { opacity: 1; }
.lg-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--lg-ink); font: 700 11.5px/1 var(--lg-sans); letter-spacing: .04em; }
.lg-badge--gold { background: linear-gradient(135deg, #f1dfb7, #c9a468); color: #3d2c10; }
.lg-badge--hot { background: var(--lg-orange); color: #fff; }
.lg-badge--dark { background: var(--lg-ink); color: #fff; }
.lg-badge--line { background: transparent; border: 1px solid var(--lg-line); }
.lg-fav { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--lg-ink); cursor: pointer; transition: transform .2s, color .2s; }
.lg-fav:hover { transform: scale(1.08); }
.lg-fav.is-on { color: var(--lg-accent); }
.lg-fav.is-on svg { fill: currentColor; }
.lg-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.lg-card__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lg-muted); }
.lg-ref { font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--lg-muted); font-size: 12.5px; }
.lg-card__title { font-size: 21px !important; line-height: 1.22 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lg-card__title a { text-decoration: none; color: var(--lg-ink); }
.lg-card__loc { margin: 0; display: flex; gap: 6px; align-items: center; color: var(--lg-muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-card__specs { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--lg-line); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--lg-muted); }
.lg-card__specs li { display: inline-flex; align-items: center; gap: 6px; }
.lg-card__specs b { color: var(--lg-ink); }
.lg-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.lg-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.lg-price strong { font: 600 24px/1 var(--lg-serif); color: var(--lg-ink); }
.lg-price small { color: var(--lg-muted); }
.lg-price s { color: var(--lg-muted); font-size: 13px; width: 100%; }
.lg-card__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lg-sand); color: var(--lg-ink); transition: background .3s, color .3s, transform .3s; }
.lg-card:hover .lg-card__go { background: var(--lg-ink); color: #fff; transform: rotate(-45deg); }
.lg-card.is-premium { box-shadow: 0 0 0 1px rgba(184, 146, 90, .45), var(--lg-shadow); }

/* Карусель premium */
.lg-premium { background: radial-gradient(60% 80% at 90% 0%, rgba(53, 83, 232, .35), transparent 60%), var(--lg-ink); color: #fff; }
.lg-premium h2 { color: #fff !important; }
.lg-premium h2 em { color: var(--lg-gold-2) !important; }
.lg-premium .lg-kicker { color: var(--lg-gold-2); }
.lg-premium .lg-head__side p { color: rgba(255, 255, 255, .7); }
.lg-premium .lg-link { color: #fff; }
.lg-premium .lg-carousel-nav button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.lg-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 86vw); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(20px, (100% - var(--lg-wrap)) / 2) 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.lg-carousel::-webkit-scrollbar { display: none; }
.lg-carousel .lg-card { scroll-snap-align: start; background: var(--lg-ink-2); }
.lg-carousel .lg-card__media { aspect-ratio: 16 / 11; }
.lg-carousel .lg-card__title a, .lg-carousel .lg-price strong, .lg-carousel .lg-card__specs b { color: #fff; }
.lg-carousel .lg-card__title { font-size: 25px !important; }
.lg-carousel .lg-card__specs { border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .65); }
.lg-carousel .lg-card__loc, .lg-carousel .lg-card__meta, .lg-carousel .lg-ref { color: rgba(255, 255, 255, .6); }
.lg-carousel .lg-card__go { background: rgba(255, 255, 255, .1); color: #fff; }

/* Bento */
.lg-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 18px; }
.lg-tile { position: relative; overflow: hidden; border-radius: var(--lg-r); background: var(--lg-ink); color: #fff !important; text-decoration: none; display: flex; align-items: flex-end; padding: 22px; isolation: isolate; }
.lg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--lg-ease); }
.lg-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(12, 15, 38, .82)); }
.lg-tile:hover img { transform: scale(1.07); }
.lg-tile--xl { grid-column: span 2; grid-row: span 2; }
.lg-tile--tall { grid-row: span 2; }
.lg-tile__txt { display: grid; gap: 4px; }
.lg-tile__txt b { font: 500 clamp(22px, 2.2vw, 32px)/1.1 var(--lg-serif); }
.lg-tile--xl .lg-tile__txt b { font-size: clamp(30px, 3.4vw, 48px); }
.lg-tile__txt small { color: rgba(255, 255, 255, .75); font-size: 14px; }
.lg-tile__go { position: absolute; right: 18px; top: 18px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); transition: transform .3s, background .3s; }
.lg-tile:hover .lg-tile__go { transform: rotate(-45deg); background: var(--lg-orange); }
.lg-bento { grid-auto-flow: dense; }
.lg-tile--cta { background: linear-gradient(135deg, var(--lg-accent), #6f86ff 60%, var(--lg-orange) 140%); grid-column: span 2; }
.lg-tile--cta::before { display: none; }

/* Города */
.lg-citycloud { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.lg-citycloud a { font: 500 clamp(22px, 2.6vw, 38px)/1.25 var(--lg-serif); color: var(--lg-ink); text-decoration: none; padding: 2px 14px 6px; border-radius: 999px; border: 1px solid var(--lg-line); transition: background .25s, color .25s; }
.lg-citycloud a:hover { background: var(--lg-ink); color: #fff; }
.lg-citycloud sup { font: 700 12px var(--lg-sans); color: var(--lg-accent); margin-left: 4px; }

/* Шаги */
.lg-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.lg-steps__list li { position: relative; padding: 28px 24px; border-radius: var(--lg-r); background: var(--lg-sand); display: grid; gap: 12px; align-content: start; color: var(--lg-ink); }
.lg-steps__list li > span { position: absolute; right: 22px; top: 18px; font: italic 500 40px/1 var(--lg-serif); color: rgba(16, 20, 46, .14); }
.lg-steps__list h3 { font-size: 26px; }
.lg-steps__list p { margin: 0; color: var(--lg-muted); font-size: 15px; }
.lg-steps__list .lg-i { color: var(--lg-accent); }

/* Продать */
.lg-sell { background: radial-gradient(70% 90% at 100% 0%, rgba(53, 83, 232, .55), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(255, 106, 44, .28), transparent 60%), var(--lg-ink); color: #fff; }
.lg-sell__in { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.lg-sell h2 { color: #fff !important; font-size: clamp(36px, 4.6vw, 62px); }
.lg-sell h2 em { color: var(--lg-gold-2) !important; }
.lg-checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.lg-checks li { display: flex; gap: 12px; align-items: center; font-size: 17px; color: rgba(255, 255, 255, .88); }
.lg-checks .lg-i { color: var(--lg-gold-2); }
.lg-sell__form { background: var(--lg-paper); color: var(--lg-text); border-radius: 28px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--lg-shadow-lg); }

/* Формы */
.lg-form__title { font-size: 28px !important; margin-bottom: 18px !important; }
.lg-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lg-field--full { grid-column: 1 / -1; }
.lg-hp { position: absolute; left: -9999px; }
.lg-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--lg-muted); margin: 16px 0; line-height: 1.45; }
.lg-consent input { margin-top: 3px; accent-color: var(--lg-accent); }
.lg-form__msg { margin: 12px 0 0; font-weight: 600; min-height: 1em; }
.lg-form__msg.is-ok { color: var(--lg-meadow); }
.lg-form__msg.is-err { color: var(--lg-accent-2); }
.lg-form.is-sent .lg-form__grid, .lg-form.is-sent .lg-consent, .lg-form.is-sent button { display: none; }

/* Офис */
.lg-office__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.lg-office h2 { font-size: clamp(34px, 4.4vw, 58px); }
.lg-contacts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.lg-contacts li { display: flex; gap: 14px; align-items: center; font-size: 17px; }
.lg-contacts .lg-i { color: var(--lg-accent); }
.lg-contacts a { text-decoration: none; font-weight: 700; }
.lg-map { border-radius: var(--lg-r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--lg-sand-2); box-shadow: var(--lg-shadow); }
.lg-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.lg-map--single { aspect-ratio: 16 / 8; }

/* Шапка страниц и каталог */
.lg-pagehead { padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); background: linear-gradient(180deg, var(--lg-sand), var(--lg-paper)); }
.lg-pagehead h1 { font-size: clamp(38px, 5.4vw, 76px); }
.lg-pagehead__lead { max-width: 62ch; color: var(--lg-muted); font-size: 17px; margin: 14px 0 0; }
.lg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--lg-muted); margin-bottom: 18px; }
.lg-crumbs a { text-decoration: none; color: var(--lg-muted); }
.lg-crumbs a:hover { color: var(--lg-ink); }
.lg-catalog { padding-bottom: 96px; }
.lg-filter { position: relative; z-index: 20; background: rgba(255, 253, 249, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--lg-line); border-radius: 26px; padding: 16px; margin: 8px 0 28px; box-shadow: var(--lg-shadow); display: grid; gap: 14px; }
.lg-filter__row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) repeat(3, minmax(0, .7fr)) auto; gap: 10px; align-items: end; }
.lg-filter__row .lg-btn { min-height: 48px; }
.lg-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lg-chip { margin: 0; cursor: pointer; }
.lg-chip input { position: absolute; opacity: 0; }
.lg-chip span { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--lg-line); font-weight: 600; font-size: 14px; transition: all .2s; }
.lg-chip input:checked + span { background: var(--lg-ink); color: #fff; border-color: var(--lg-ink); }
.lg-sort { margin: 0 0 0 auto; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--lg-muted); }
.lg-site .lg-sort select { border: 1px solid var(--lg-line); border-radius: 999px; padding: 8px 14px; font: 600 14px var(--lg-sans); background: #fff; color: var(--lg-ink); min-height: 0; }
.lg-results { transition: opacity .25s; }
.lg-results.is-loading { opacity: .45; pointer-events: none; }
.lg-results__count { margin: 0 0 18px; color: var(--lg-muted); }
.lg-results__count b { color: var(--lg-ink); font-size: 18px; }
.lg-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.lg-pager a, .lg-pager b, .lg-pager span { min-width: 46px; height: 46px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.lg-pager a { border: 1px solid var(--lg-line); }
.lg-pager a:hover { border-color: var(--lg-ink); }
.lg-pager b { background: var(--lg-ink); color: #fff; }
.lg-empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--lg-line); border-radius: var(--lg-r); display: grid; gap: 14px; justify-items: center; }
.lg-empty h3 { font-size: 30px; }
.lg-empty p { color: var(--lg-muted); max-width: 52ch; margin: 0; }
.lg-favs__send { max-width: 720px; margin: 48px auto 0; padding: 28px; border-radius: var(--lg-r); background: var(--lg-sand); }

/* Карточка объекта */
.lg-single { padding: 24px 0 0; }
.lg-gallery { position: relative; display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(340px, 58vh, 620px); border-radius: 26px; overflow: hidden; }
.lg-gallery__item { padding: 0; border: 0; background: var(--lg-sand-2); cursor: zoom-in; overflow: hidden; min-height: 0; }
.lg-gallery__item:first-child { grid-row: span 2; }
.lg-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--lg-ease), filter .3s; }
.lg-gallery__item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.lg-gallery--n1 { grid-template-columns: 1fr; }
.lg-gallery--n2 { grid-template-columns: 2fr 1fr; }
.lg-gallery--n2 .lg-gallery__item:nth-child(2) { grid-row: span 2; }
.lg-gallery--n3 { grid-template-columns: 2fr 1fr; }
.lg-gallery--n4 { grid-template-columns: 2fr 1fr 1fr; }
.lg-gallery--n4 .lg-gallery__item:nth-child(4) { grid-column: span 2; }
.lg-gallery__all, .lg-gallery__tour { position: absolute; bottom: 18px; display: inline-flex; gap: 8px; align-items: center; padding: 11px 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: var(--lg-ink) !important; font: 700 14px var(--lg-sans); cursor: pointer; text-decoration: none; box-shadow: var(--lg-shadow); }
.lg-gallery__all { right: 18px; }
.lg-gallery__tour { right: 170px; }
.lg-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 72px); margin-top: 36px; padding-bottom: 80px; }
.lg-single__badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.lg-single__title { font-size: clamp(30px, 3.8vw, 52px) !important; }
.lg-single__loc { display: flex; gap: 8px; align-items: center; color: var(--lg-muted); font-size: 17px; margin: 14px 0 0; }
.lg-facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.lg-facts li { display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: var(--lg-sand); }
.lg-facts .lg-i { color: var(--lg-accent); margin-bottom: 6px; }
.lg-facts span { font-size: 12px; color: var(--lg-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.lg-facts b { font-size: 17px; color: var(--lg-ink); }
.lg-block { margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--lg-line); }
.lg-block h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 18px; }
.lg-prose { font-size: 17px; line-height: 1.75; color: var(--lg-text); }
.lg-prose p { margin: 0 0 1em; }
.lg-clamp.is-clamped { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.lg-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 20px; }
.lg-feats li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--lg-line); }
.lg-feats .lg-i { color: var(--lg-meadow); }
.lg-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.lg-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--lg-line); }
.lg-specs dt { color: var(--lg-muted); }
.lg-specs dd { margin: 0; font-weight: 700; text-align: right; color: var(--lg-ink); }
.lg-mortgage__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.1fr; gap: 20px; align-items: center; padding: 24px; border-radius: var(--lg-r); background: var(--lg-sand); }
.lg-mortgage input[type=range] { accent-color: var(--lg-accent); padding: 0 !important; min-height: 0 !important; border: 0 !important; background: none !important; }
.lg-mortgage output { font-weight: 700; color: var(--lg-ink); }
.lg-mortgage__res { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--lg-ink); color: #fff; }
.lg-mortgage__res span, .lg-mortgage__res small { color: rgba(255, 255, 255, .7); font-size: 13px; }
.lg-mortgage__res b { font: 600 28px/1.1 var(--lg-serif); }
.lg-single__side { position: relative; }
.lg-pricebox { position: sticky; top: 110px; padding: 28px; border-radius: 26px; background: #fff; box-shadow: var(--lg-shadow-lg); border: 1px solid var(--lg-line); display: grid; gap: 6px; }
.lg-pricebox__price { margin: 0; font: 600 clamp(32px, 3vw, 42px)/1.05 var(--lg-serif); color: var(--lg-ink); }
.lg-pricebox__price small { font: 500 16px var(--lg-sans); color: var(--lg-muted); margin-left: 4px; }
.lg-pricebox__old { margin: 0; color: var(--lg-muted); }
.lg-pricebox__old span { color: #fff; background: var(--lg-orange); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.lg-pricebox p.lg-muted { margin: 0; font-size: 14px; }
.lg-pricebox__btns { display: grid; gap: 10px; margin-top: 18px; }
.lg-pricebox__tools { display: flex; gap: 8px; margin-top: 6px; }
.lg-fav--inline, .lg-share { position: static; width: auto; height: auto; flex: 1; display: inline-flex; gap: 8px; justify-content: center; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--lg-line); background: transparent; font: 600 14px var(--lg-sans); color: var(--lg-ink); cursor: pointer; }
.lg-agent { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--lg-line); }
.lg-agent__ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lg-ink); color: var(--lg-gold-2); font: 600 20px var(--lg-serif); }
.lg-agent b { display: block; }
.lg-agent small { color: var(--lg-muted); }
.lg-stickybar { display: none; }

/* Лайтбокс и модалки */
.lg-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 16, 20, .96); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; animation: lg-fade .25s; }
.lg-lightbox[hidden], .lg-modal[hidden] { display: none; }
.lg-lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; height: 100vh; align-content: center; }
.lg-lightbox img { max-height: 86vh; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lg-lightbox figcaption { color: rgba(255, 255, 255, .7); font-size: 14px; }
.lg-lightbox__nav, .lg-lightbox__x { border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 22px; cursor: pointer; justify-self: center; }
.lg-lightbox__x { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; }
.lg-modal { position: fixed; inset: 0; z-index: 999; background: rgba(8, 16, 20, .6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: lg-fade .25s; }
.lg-modal__card { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--lg-paper); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--lg-shadow-lg); animation: lg-pop .35s var(--lg-ease); }
.lg-modal__card h2 { font-size: clamp(28px, 3vw, 38px); }
.lg-modal__card > .lg-muted { margin: 10px 0 22px; }
.lg-modal__x { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--lg-line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--lg-ink); }
body.lg-lock { overflow: hidden; }

/* Подвал */
.lg-footer { background: var(--lg-ink); color: rgba(255, 255, 255, .72); padding: clamp(56px, 8vw, 100px) 0 28px; }
.lg-footer__cta { display: grid; gap: 18px; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.lg-footer__cta h2 { color: #fff !important; font-size: clamp(36px, 5.4vw, 80px); max-width: 18ch; }
.lg-footer__cta h2 em { color: var(--lg-gold-2) !important; }
.lg-footer__cta p { max-width: 60ch; margin: 0; }
.lg-footer__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.lg-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0; }
.lg-footer__grid h4 { color: #fff; font: 700 12px var(--lg-sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
.lg-footer__grid a, .lg-footer__grid span { display: block; color: rgba(255, 255, 255, .72); text-decoration: none; margin-bottom: 10px; font-size: 15px; }
.lg-footer__grid a:hover { color: #fff; }
.lg-footer__grid small { opacity: .5; }
.lg-footer__brand .lg-logo { color: #fff; height: 48px; margin-bottom: 18px; }
.lg-footer__brand p { max-width: 40ch; font-size: 15px; }
.lg-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.lg-footer__bottom a { color: rgba(255, 255, 255, .72); margin-left: 18px; text-decoration: none; }
.lg-mobibar { display: none; }

/* Страницы из редактора (О компании, Услуги …) */
.lg-site .content-area .entry-content { font-size: 17px; line-height: 1.75; }
.lg-site .content-area .entry-title { font-family: var(--lg-serif); }

/* Появление при прокрутке */
@supports (animation-timeline: view()) {
	.lg-grid > .lg-card, .lg-bento > .lg-tile, .lg-steps__list li, .lg-head { animation: lg-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@keyframes lg-reveal { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes lg-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes lg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lg-pop { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lg-kenburns { from { transform: scale(1.14); } to { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Адаптив */
@media (max-width: 1240px) {
	.lg-nav a { padding: 10px 10px; font-size: 14px; }
	.lg-phone span { display: none; }
	.lg-filter__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lg-filter__row .lg-field--q { grid-column: span 3; }
}
@media (max-width: 1080px) {
	.lg-nav, .lg-phone, .lg-topbar { display: none; }
	.lg-burger { display: block; }
	.lg-header__act { margin-left: auto; }
	.lg-head--split, .lg-sell__in, .lg-office__in { grid-template-columns: 1fr; }
	.lg-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
	.lg-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lg-single__grid { grid-template-columns: 1fr; }
	.lg-pricebox { position: static; }
	.lg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lg-mortgage__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	body.lg-site { padding-bottom: 68px; }
	.lg-wrap { width: calc(100% - 32px); }
	.lg-header__in { min-height: 64px; gap: 12px; }
	.lg-logo { height: 36px; }
	.lg-header__act .lg-btn { display: none; }
	.lg-hero { min-height: 0; }
	.lg-hero__in { padding: 96px 0 32px; }
	.lg-hero__tag { display: none; }
	.lg-hsearch { border-radius: 22px; padding: 10px; }
	.lg-hsearch__row { grid-template-columns: 1fr; }
	.lg-seg { display: flex; overflow-x: auto; }
	.lg-seg span { padding: 9px 14px; white-space: nowrap; }
	.lg-hero__stats { grid-template-columns: repeat(2, auto); gap: 16px 28px; }
	.lg-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 12px; }
	.lg-tile { padding: 16px; }
	.lg-tile--xl { grid-column: span 2; grid-row: span 1; }
	.lg-tile--tall { grid-row: span 1; }
	.lg-tile__go { width: 34px; height: 34px; right: 12px; top: 12px; }
	.lg-steps__list { grid-template-columns: 1fr; }
	.lg-form__grid { grid-template-columns: 1fr; }
	.lg-filter { position: static; border-radius: 20px; padding: 12px; }
	.lg-filter__row { grid-template-columns: 1fr 1fr; }
	.lg-filter__row .lg-field--q, .lg-filter__row .lg-btn { grid-column: span 2; }
	.lg-sort { margin: 0; width: 100%; justify-content: space-between; }
	.lg-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 90px; height: 380px; border-radius: 18px; gap: 6px; }
	.lg-gallery__item:first-child { grid-column: span 2; grid-row: auto; }
	.lg-gallery__item:nth-child(n+4) { display: none; }
	.lg-gallery--n1 .lg-gallery__item:first-child { grid-row: span 2; }
	.lg-gallery__all { bottom: 104px; right: 12px; }
	.lg-gallery__tour { bottom: 104px; right: auto; left: 12px; }
	.lg-specs { grid-template-columns: 1fr; }
	.lg-mortgage__grid { grid-template-columns: 1fr; }
	.lg-footer__grid { grid-template-columns: 1fr; gap: 24px; }
	.lg-footer__bottom a { margin: 0 14px 0 0; }
	.lg-lightbox { grid-template-columns: 1fr; }
	.lg-lightbox__nav { position: absolute; bottom: 24px; }
	.lg-lightbox__nav.is-prev { left: 24px; }
	.lg-lightbox__nav.is-next { right: 24px; }
	.lg-mobibar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255, 253, 249, .95); backdrop-filter: blur(14px); border-top: 1px solid var(--lg-line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
	.lg-mobibar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 700; text-decoration: none; color: var(--lg-ink); }
	.lg-mobibar a.is-wa { color: #1f9d55; }
	.lg-single .lg-stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--lg-line); box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .4); }
	.lg-stickybar div { display: grid; }
	.lg-stickybar b { font: 600 22px var(--lg-serif); color: var(--lg-ink); }
	.lg-stickybar small { color: var(--lg-muted); font-size: 12px; }
	body.single-property .lg-mobibar { display: none; }
}

/* Палитра Kadence на обычных страницах (Компания, Услуги, FAQ …) — в цветах Spain.st */
:root { --global-palette-btn-bg: #3553e8; --global-palette-btn-bg-hover: #2540cc; --global-palette-highlight: #3553e8; --global-palette-highlight-alt: #2540cc; --global-palette1: #3553e8; --global-palette2: #2540cc; --global-palette3: #10142e; --global-palette4: #1b1f36; --global-palette5: #646985; --global-palette6: #8a8ea6; --global-palette7: #e8e1d5; --global-palette8: #f3eee6; --global-palette9: #fbf9f5; --global-heading-font-family: "Playfair Display", Georgia, serif; --global-body-font-family: Manrope, system-ui, sans-serif; }
.lg-site .entry-hero-container-inner { background: linear-gradient(180deg, var(--lg-sand), var(--lg-paper)) !important; }
.lg-site .entry-hero .entry-title { font-size: clamp(38px, 5.4vw, 72px); }
.lg-site .entry-content .wp-block-button__link, .lg-site .entry-content .kb-button { border-radius: 999px !important; font-family: var(--lg-sans); font-weight: 700; }
.lg-site .entry-content h1, .lg-site .entry-content h2, .lg-site .entry-content h3 { font-family: var(--lg-serif); color: var(--lg-ink); }
.lg-site .content-bg, .lg-site .entry.single-entry { box-shadow: none; }

/* Фильтр: при прокрутке вниз — маленькая кнопка, по нажатию фильтр раскрывается поверх */
.lg-filter-fab { position: fixed; left: 50%; top: calc(var(--lg-hh, 76px) + 12px); z-index: 85; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--lg-ink); color: #fff; font: 700 14px var(--lg-sans); box-shadow: 0 14px 30px -12px rgba(16, 20, 46, .55); cursor: pointer; transition: opacity .25s, transform .25s var(--lg-ease); }
.lg-filter-fab.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lg-filter-fab b { background: var(--lg-accent); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.lg-filter.is-pop { position: fixed; z-index: 92; top: calc(var(--lg-hh, 76px) + 10px); left: 0; right: 0; width: min(var(--lg-wrap), calc(100% - 24px)); max-height: calc(100vh - var(--lg-hh, 76px) - 30px); overflow: auto; margin: 0 auto; padding-right: 60px; background: var(--lg-paper); box-shadow: var(--lg-shadow-lg); animation: lg-pop .3s var(--lg-ease); }
.lg-filter-close { display: none; position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--lg-line); background: #fff; cursor: pointer; color: var(--lg-ink); }
.lg-filter.is-pop .lg-filter-close { display: grid; place-items: center; }
.lg-filter-shade { position: fixed; inset: 0; z-index: 91; background: rgba(12, 15, 38, .35); backdrop-filter: blur(2px); }
@media (max-width: 760px) { .lg-filter-fab { top: auto; bottom: 84px; } .lg-filter.is-pop { top: 12px; max-height: calc(100vh - 110px); } }

/* Блоки прежней темы на обычных страницах */
.lg-site .entry-content .lg-grid, .lg-site .entry-content .lg-steps__list, .lg-site .entry-content .lg-bento { margin: 24px 0; }
.lg-compat-more { text-align: center; margin: 28px 0 0; }
.lg-site .entry-content .lg-card__title, .lg-site .entry-content .lg-steps__list h3 { margin: 0; }
.lg-site .entry-content .lg-steps__list p, .lg-site .entry-content .lg-card p { margin: 0; }
.lg-areas { grid-auto-rows: 200px; }
.lg-areas .lg-tile:first-child { grid-column: span 2; grid-row: span 2; }
.lg-faq { display: grid; gap: 10px; margin: 20px 0; }
.lg-faq details { border: 1px solid var(--lg-line); border-radius: 16px; background: #fff; padding: 0 20px; }
.lg-faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative; font: 600 18px/1.35 var(--lg-serif); color: var(--lg-ink); }
.lg-faq summary::-webkit-details-marker { display: none; }
.lg-faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 400 26px var(--lg-sans); color: var(--lg-accent); transition: transform .25s; }
.lg-faq details[open] summary::after { transform: rotate(45deg); }
.lg-faq details p { margin: 0 0 18px; color: var(--lg-muted); }
.lg-cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin: 40px 0; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: radial-gradient(60% 120% at 100% 0%, var(--lg-accent-soft), transparent 70%), var(--lg-sand); }
.lg-cta-band h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 0 0 8px !important; }
.lg-cta-band p { margin: 0; color: var(--lg-muted); }
.lg-compat-form { max-width: 640px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: #fff; box-shadow: var(--lg-shadow); margin: 20px 0; }
.lg-compat-search { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: var(--lg-shadow); margin: 20px 0; }
.lg-compat-search select, .lg-compat-search input { flex: 1 1 160px; min-height: 48px; border: 1px solid var(--lg-line); border-radius: 14px; padding: 0 14px; font: 500 15px var(--lg-sans); background: #fff; }
.lg-compat-contacts { margin: 16px 0; }
.lg-site .entry-content .lg-contacts li { margin: 0; }
/* ---------- v1.0.3: шапки страниц с фоном ---------- */
.lg-pagehead, .lg-site .entry-hero .entry-hero-container-inner { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--lg-ink) !important; }
.lg-pagehead::before, .lg-site .entry-hero .entry-hero-container-inner::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/hero-sea.jpg") center 62% / cover no-repeat; transform: scale(1.04); }
.lg-pagehead::after, .lg-site .entry-hero .entry-hero-container-inner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 15, 38, .9) 0%, rgba(12, 15, 38, .62) 50%, rgba(53, 83, 232, .25) 100%), radial-gradient(60% 120% at 100% 100%, rgba(255, 106, 44, .22), transparent 60%); }
.lg-pagehead { padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 8vw, 104px); }
.lg-pagehead h1, .lg-site .entry-hero .entry-title { color: #fff !important; }
.lg-pagehead__lead { color: rgba(255, 255, 255, .8); }
.lg-pagehead .lg-crumbs, .lg-pagehead .lg-crumbs a { color: rgba(255, 255, 255, .7); }
.lg-pagehead .lg-crumbs a:hover { color: #fff; }
.lg-site .entry-hero .entry-hero-container-inner .hero-container { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(40px, 5vw, 64px); }
.lg-site .entry-hero .entry-hero-container-inner .hero-section-overlay { display: none; }
.lg-site .entry-hero .kadence-breadcrumbs, .lg-site .entry-hero .kadence-breadcrumbs a { color: rgba(255, 255, 255, .7); }
.lg-catalog > .lg-filter { margin-top: -34px; }

/* ---------- Категории: компактно, на фоне ---------- */
.lg-cats { position: relative; isolation: isolate; background: radial-gradient(55% 80% at 100% 0%, var(--lg-accent-soft), transparent 70%), radial-gradient(45% 70% at 0% 100%, #ffe8dc, transparent 70%), var(--lg-paper); }
.lg-cats::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12c10 0 10-8 20-8s10 8 20 8 10-8 20-8 10 8 20 8 10-8 20-8 10 8 20 8' fill='none' stroke='%233553e8' stroke-opacity='.08' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 120px 24px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.lg-bento--cats { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 14px; }
.lg-bento--cats .lg-tile { padding: 18px 20px; border-radius: 20px; }
.lg-bento--cats .lg-tile__txt b { font-size: clamp(20px, 1.9vw, 26px); }
@media (max-width: 760px) { .lg-bento--cats { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 10px; } }

/* ---------- Блоки прежней темы → карточки ---------- */
.lg-site .entry-content .eyebrow, .lg-site .entry-content .lisanov-eyebrow { font: 700 12px/1 var(--lg-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--lg-accent); margin: 0 0 14px; }
.lg-site .entry-content .section-title { font-size: clamp(30px, 3.8vw, 52px); margin: 0 0 12px; }
.lg-site .entry-content .section-desc, .lg-site .entry-content .lisanov-lead { color: var(--lg-muted); font-size: 17px; max-width: 64ch; margin: 0 0 28px; }
.lg-site .entry-content .service-grid, .lg-site .entry-content .lisanov-steps, .lg-site .entry-content .lisanov-team-grid, .lg-site .entry-content .lisanov-testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 8px 0 24px; }
.lg-site .entry-content .service-card, .lg-site .entry-content .lisanov-steps > div, .lg-site .entry-content .lisanov-team-grid > div, .lg-site .entry-content .lisanov-testimonial-grid blockquote { position: relative; margin: 0; padding: 26px 24px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--lg-line); box-shadow: var(--lg-shadow); overflow: hidden; transition: transform .35s var(--lg-ease), box-shadow .35s; }
.lg-site .entry-content .service-card:hover, .lg-site .entry-content .lisanov-steps > div:hover, .lg-site .entry-content .lisanov-team-grid > div:hover { transform: translateY(-4px); box-shadow: var(--lg-shadow-lg); }
.lg-site .entry-content .service-card::before, .lg-site .entry-content .lisanov-steps > div::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--lg-accent), #8fa0ff 60%, var(--lg-orange)); opacity: 0; transition: opacity .35s; }
.lg-site .entry-content .service-card:hover::before, .lg-site .entry-content .lisanov-steps > div:hover::before { opacity: 1; }
.lg-site .entry-content .service-card > span, .lg-site .entry-content .lisanov-steps strong { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--lg-accent-soft); color: var(--lg-accent); font: 700 15px var(--lg-sans); margin-bottom: 18px; }
.lg-site .entry-content .service-card h3, .lg-site .entry-content .lisanov-steps h3, .lg-site .entry-content .lisanov-team-grid h3 { font-size: 23px; margin: 0 0 8px; }
.lg-site .entry-content .service-card p, .lg-site .entry-content .lisanov-steps p, .lg-site .entry-content .lisanov-team-grid p { margin: 0; color: var(--lg-muted); font-size: 15px; line-height: 1.6; }
.lg-site .entry-content .lisanov-steps p:empty, .lg-site .entry-content .lisanov-team-grid p:empty { display: none; }
.lg-site .entry-content .lisanov-team-grid > div > span { display: block; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 16px; background: radial-gradient(circle at 30% 30%, #8fa0ff, var(--lg-accent)); }
.lg-site .entry-content .lisanov-testimonial-grid blockquote p { margin: 0; font: italic 400 20px/1.5 var(--lg-serif); color: var(--lg-ink); }
.lg-site .entry-content .lisanov-testimonial-grid cite { display: block; margin-top: 14px; font: 600 14px var(--lg-sans); font-style: normal; color: var(--lg-muted); }
.lg-site .entry-content .trust-pill { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--lg-line); margin: 0 8px 8px 0; }
.lg-site .entry-content .trust-pill strong { color: var(--lg-accent); }
.lg-site .entry-content .section-dark { background: radial-gradient(60% 90% at 100% 0%, rgba(53, 83, 232, .4), transparent 60%), var(--lg-ink) !important; color: rgba(255, 255, 255, .85); }
.lg-site .entry-content .section-dark h1, .lg-site .entry-content .section-dark h2, .lg-site .entry-content .section-dark h3 { color: #fff; }
.lg-site .entry-content .section-dark .eyebrow { color: var(--lg-gold-2); }
.lg-site .entry-content .lisanov-kb-page-hero.section-dark { border-radius: 28px; overflow: hidden; }
.lg-site .entry-content .cta-band { border-radius: 28px; background: radial-gradient(70% 120% at 100% 0%, rgba(53, 83, 232, .55), transparent 60%), radial-gradient(50% 90% at 0% 100%, rgba(255, 106, 44, .3), transparent 60%), var(--lg-ink) !important; color: rgba(255, 255, 255, .85); margin: 40px auto; overflow: hidden; }
.lg-site .entry-content .cta-band h2, .lg-site .entry-content .cta-band h3 { color: #fff; }
.lg-site .entry-content .btn .wp-block-button__link { min-height: 48px; padding: 0 24px; display: inline-flex; align-items: center; }
.lg-site .entry-content .btn-glass .wp-block-button__link { background: rgba(255, 255, 255, .12) !important; border: 1px solid rgba(255, 255, 255, .3); color: #fff !important; }
.lg-site .entry-content .btn-light .wp-block-button__link { background: #fff !important; color: var(--lg-ink) !important; }
.lg-site .entry-content .lisanov-page-image img, .lg-site .entry-content .lisanov-page-media img { border-radius: 24px; box-shadow: var(--lg-shadow-lg); }
.lg-site .entry-content .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Страница «Продать» ---------- */
.lg-btn--glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff !important; backdrop-filter: blur(10px); }
.lg-shero { position: relative; isolation: isolate; overflow: hidden; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; }
.lg-shero__bg { position: absolute; inset: 0; z-index: -1; }
.lg-shero__bg img { width: 100%; height: 100%; object-fit: cover; animation: lg-kenburns 18s var(--lg-ease) both; }
.lg-shero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 15, 38, .92) 0%, rgba(12, 15, 38, .6) 50%, rgba(12, 15, 38, .2) 100%), linear-gradient(0deg, rgba(12, 15, 38, .9), transparent 50%); }
.lg-shero__in { padding: 140px 0 56px; display: grid; gap: 48px; }
.lg-shero h1 { color: #fff !important; font-size: clamp(40px, 6vw, 92px); line-height: 1; max-width: 14ch; letter-spacing: -.03em; animation: lg-rise 1s var(--lg-ease) both; }
.lg-shero h1 em { color: var(--lg-gold-2) !important; }
.lg-shero__lead { max-width: 56ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .82); margin: 22px 0 30px; }
.lg-shero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.lg-shero__stats div { padding: 22px 20px 0 0; }
.lg-shero__stats dt { font: 500 clamp(28px, 3vw, 44px)/1 var(--lg-serif); color: #fff; }
.lg-shero__stats dd { margin: 8px 0 0; color: rgba(255, 255, 255, .65); font-size: 14px; }
.lg-sbenefits__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lg-sbenefits__grid article { padding: 30px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--lg-line); box-shadow: var(--lg-shadow); transition: transform .35s var(--lg-ease), box-shadow .35s; }
.lg-sbenefits__grid article:hover { transform: translateY(-5px); box-shadow: var(--lg-shadow-lg); }
.lg-sbenefits__ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--lg-accent), #8fa0ff); color: #fff; margin-bottom: 20px; box-shadow: 0 12px 24px -12px rgba(53, 83, 232, .8); }
.lg-sbenefits__grid h3 { font-size: 24px; margin-bottom: 10px !important; }
.lg-sbenefits__grid p { margin: 0; color: var(--lg-muted); }
.lg-sprocess { background: radial-gradient(60% 90% at 0% 0%, rgba(53, 83, 232, .45), transparent 60%), radial-gradient(40% 70% at 100% 100%, rgba(255, 106, 44, .22), transparent 60%), var(--lg-ink); color: #fff; }
.lg-sprocess h2 { color: #fff !important; }
.lg-sprocess h2 em { color: var(--lg-gold-2) !important; }
.lg-sprocess__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.lg-sprocess__list li { position: relative; padding: 28px 24px; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); }
.lg-sprocess__n { font: italic 500 54px/1 var(--lg-serif); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); display: block; margin-bottom: 14px; }
.lg-sprocess__list small { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(53, 83, 232, .35); color: #dfe4ff; font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.lg-sprocess__list h3 { color: #fff !important; font-size: 26px; margin-bottom: 8px !important; }
.lg-sprocess__list p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 15px; }
.lg-sshow__in { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.lg-sshow h2 { font-size: clamp(32px, 4vw, 54px); }
.lg-checks--dark li { color: var(--lg-text); }
.lg-checks--dark .lg-i { color: var(--lg-accent); }
.lg-sshow .lg-link { margin-top: 26px; }
.lg-sshow__card { transform: rotate(-1.5deg); }
.lg-sshow__card .lg-card { box-shadow: 0 40px 90px -40px rgba(16, 20, 46, .6); }
.lg-svaluation { background: radial-gradient(70% 90% at 100% 0%, rgba(53, 83, 232, .5), transparent 60%), var(--lg-ink); color: #fff; }
.lg-svaluation__in { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.lg-svaluation h2 { color: #fff !important; font-size: clamp(34px, 4.4vw, 60px); }
.lg-svaluation h2 em { color: var(--lg-gold-2) !important; }
.lg-svaluation__txt > p { color: rgba(255, 255, 255, .75); max-width: 50ch; }
.lg-contacts--light li, .lg-contacts--light a { color: #fff; }
.lg-contacts--light .lg-i { color: #8fa0ff; }
.lg-svaluation__form { background: var(--lg-paper); color: var(--lg-text); border-radius: 28px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.lg-sfaq { max-width: 900px; }
@media (max-width: 1080px) { .lg-sbenefits__grid { grid-template-columns: 1fr 1fr; } .lg-sprocess__list { grid-template-columns: 1fr 1fr; } .lg-sshow__in, .lg-svaluation__in { grid-template-columns: 1fr; } .lg-shero__stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .lg-sbenefits__grid, .lg-sprocess__list { grid-template-columns: 1fr; } .lg-shero__in { padding: 100px 0 36px; } .lg-sshow__card { transform: none; } }.lg-hero__bg img { object-position: 38% 70%; }
.lg-sshow__card { max-width: 520px; width: 100%; justify-self: center; }

/* ---------- «О компании» ---------- */
.lg-shero--about { min-height: min(80vh, 760px); }
.lg-shero--about .lg-shero__bg img { object-position: 38% 70%; }
.lg-astory__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.lg-astory h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 20px !important; }
.lg-astory__txt > p { color: var(--lg-muted); font-size: 17px; margin: 0 0 16px; max-width: 56ch; }
.lg-astory__media { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.lg-astory__ph { position: relative; display: block; border-radius: 24px; overflow: hidden; box-shadow: var(--lg-shadow-lg); text-decoration: none; }
.lg-astory__ph--0 { grid-row: span 2; }
.lg-astory__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--lg-ease); }
.lg-astory__ph:hover img { transform: scale(1.06); }
.lg-astory__ph span { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(12, 15, 38, .55); backdrop-filter: blur(8px); color: #fff; font: 600 13px var(--lg-sans); }
.lg-astory__media::before { content: ""; position: absolute; inset: -18px -18px auto auto; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--lg-orange), transparent 70%); opacity: .35; z-index: -1; }
.lg-about .lg-sprocess__list li { min-height: 220px; }
@media (max-width: 1080px) { .lg-astory__in { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .lg-astory__media { grid-template-rows: 160px 160px; } }