/* Inside Group — глобальні стилі. Mobile-first.
   Палітра: кремове тло, теракотовий акцент, винний для головних CTA.
   Один шрифт на весь сайт — Raleway. */

/* Основний шрифт — локальний варіативний Raleway (вісь ваги 100–900) */
@font-face {
    font-family: "Raleway";
    src: url("Raleway-VariableFont_wght.ttf") format("truetype-variations"),
         url("Raleway-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Три кольори: білий, графіт, акцент */
    --bg: #ffffff;
    --bg-2: #f4f3f1;
    --surface: #ffffff;
    --tile: #f4f3f1;
    --ink: #2b2b2b;
    --ink-2: #44423f;
    --muted: #78756f;
    --line: rgba(43,43,43,.14);

    --accent: #de6b3c;
    --accent-dark: #c65a2d;
    --accent-soft: #fbeee7;

    --radius: 12px;
    --radius-lg: 18px;
    --container: 1180px;
    --header-h: 78px;
    --font: "Raleway", "Segoe UI", system-ui, sans-serif;

    --hero-img: url("../images/hero.jpg");
    --about-img: url("../images/about.jpg");
}

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    /* Raleway за замовчуванням дає мінускульні цифри (різної висоти, з виносними
       елементами) — вмикаємо рівні. font-feature-settings — запас для старих рушіїв. */
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
svg { width: 24px; height: 24px; flex: none; }
.svg-defs { display: none; }
/* Правила display у класах перебивають UA-стиль [hidden] */
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 84px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Типографіка секцій ---------- */
.section-title {
    margin: 0 0 12px;
    font-size: clamp(26px, 6vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.section-title .accent { color: var(--accent); }
.section-sub {
    margin: 0 0 28px;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.section-head h2, .section-head h3 { margin: 0; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(222,107,60,.4);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--accent);
    transition: .2s ease;
}
.link-more svg { width: 17px; height: 17px; }
button.link-more { background: none; border: 0; border-bottom: 1px solid rgba(222,107,60,.4); color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.link-more:hover { color: var(--accent-dark); border-color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 26px;
    border: 0;
    border-radius: var(--radius);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .22s ease;
}
.btn svg { width: 19px; height: 19px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--light { background: var(--surface); color: var(--accent); border: 1px solid rgba(222,107,60,.35); }
.btn--light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--block { width: 100%; }
.btn--spread { justify-content: space-between; text-align: left; }

.icon-btn {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: .22s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Логотип ---------- */
.logo-img { width: auto; height: 34px; }
.logo-sub {
    display: block;
    margin-top: 6px;
    font-size: 8px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Хедер ---------- */
.header {
    position: sticky;
    top: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin: 10px;
    padding: 10px 16px;
    /* на телефоні плашка суцільна, світло-сіра */
    background: #eaeae7;
    border-radius: 22px;
    box-shadow: 0 6px 24px rgba(43,43,43,.06);
    color: var(--ink);
}
.header__logo { justify-self: center; text-align: center; }
.header__logo .logo-img { display: block; }
.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }
.header__num { display: none; }

/* Стрілки каруселей */
.icon-btn {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid rgba(222,107,60,.35);
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    cursor: pointer;
    transition: .22s ease;
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }

.burger {
    display: grid;
    place-content: center;
    gap: 5px;
    justify-self: end;
    width: 44px; height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    cursor: pointer;
}
.burger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--ink);
}
.burger:hover span { background: var(--accent); }

.nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 32px));
    display: grid;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(43,43,43,.16);
}
.nav a {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}
.nav a:hover { background: var(--tile); color: var(--accent); }
.nav__fav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nav__fav span {
    display: grid;
    place-items: center;
    min-width: 22px; height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* ---------- 01. Головний екран ---------- */
.hero {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 100vh;
    min-height: 100svh;
    /* заводимо під плаваючу шапку */
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + 18px) 0 160px;
    background: var(--hero-img) center bottom/cover no-repeat, var(--bg-2);
    color: var(--ink);
    overflow: hidden;
}
/* світла вуаль угорі — щоб темний текст читався на небі */
.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 74%;
    background: linear-gradient(180deg, rgba(252,251,249,.92) 0%, rgba(252,251,249,.74) 38%, rgba(252,251,249,0) 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: linear-gradient(180deg, rgba(43,43,43,0) 0%, rgba(43,43,43,.28) 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; justify-items: start; gap: 18px; }
.hero__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero__title {
    margin: 0;
    /* ch у Raleway вужчий за попередній шрифт — інакше заголовок ламається на 4 рядки */
    max-width: 17ch;
    font-size: clamp(30px, 8.4vw, 52px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -.02em;
}
.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 560px;
    margin: 4px 0;
}
.hero__stats li {
    padding-left: 14px;
    border-left: 1px solid rgba(43,43,43,.22);
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-2);
}
.hero__stats li:first-child { padding-left: 0; border-left: 0; }
.hero__cta { padding: 18px 26px; }

.hero__mark {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
    transform: translateX(-50%);
    color: #fff;
    text-shadow: 0 2px 18px rgba(43,43,43,.3);
}
.hero__mark .logo-sub { color: rgba(255,255,255,.85); }

/* ---------- 02. Пошук ---------- */
.search { padding: 54px 0 60px; background: var(--bg); }
.search__deal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}
.search__types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.search__type {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--tile);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: .22s ease;
}
.search__type > svg:first-child { width: 26px; height: 26px; }
.search__arrow { margin-left: auto; width: 18px; height: 18px; opacity: .45; }
.search__type:hover { border-color: var(--accent); }
/* Продаж і Оренда — основні плитки блоку, тому тло темніше за типи */
.search__deal .search__type { background: #e4e2de; border-color: rgba(43,43,43,.2); }
.search__type.is-active, .search__deal .search__type.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search__type.is-active .search__arrow { opacity: 1; }

.search__panel {
    display: grid;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.search__row { border-bottom: 1px solid var(--line); }
.search__summary {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border: 0;
    background: none;
    font: inherit;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.search__summary > svg:first-child { width: 22px; height: 22px; }
.search__summary div { display: grid; gap: 2px; min-width: 0; }
.search__summary strong { font-size: 15px; font-weight: 600; }
.search__summary span { font-size: 13px; color: var(--muted); }
.search__chev {
    margin-left: auto;
    width: 18px; height: 18px;
    color: var(--muted);
    transform: rotate(90deg);
    transition: transform .22s ease;
}
.search__row.is-open .search__chev { transform: rotate(-90deg); }
.search__body { display: none; padding: 0 18px 18px 54px; }
.search__row.is-open .search__body { display: grid; gap: 10px; }
.search__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.search__extra {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 18px;
    font-size: 14px;
    font-weight: 500;
}
.search__extra b { font-size: 20px; font-weight: 400; color: var(--accent); }
.search__extra span { padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.search__extra:hover span { border-color: var(--accent); }


/* ---------- 03. Каталог ---------- */
.catalog { padding: 54px 0 60px; background: var(--bg); }
.catalog__top { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }
.catalog__top .btn { flex: 1; max-width: 430px; }
.catalog__count {
    flex: none;
    margin: 0;
    padding-left: 18px;
    border-left: 1px solid var(--line);
    line-height: 1.2;
}
.catalog__count strong {
    display: block;
    font-size: clamp(26px, 6vw, 34px);
    font-weight: 800;
}
.catalog__count span { font-size: 11px; color: var(--muted); }
.catalog__subtitle { margin: 0; font-size: clamp(20px, 4.4vw, 26px); font-weight: 600; }
.catalog__grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.catalog__more { margin: 26px auto 0; display: flex; }

/* Картка об'єкта */
.prop {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .22s ease;
}
.prop:hover { box-shadow: 0 16px 36px rgba(29,29,27,.12); transform: translateY(-2px); }
.prop__media {
    position: relative;
    display: block;
    flex: none;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-2);
}
.prop__media img { width: 100%; height: 100%; object-fit: cover; }
.prop__badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--surface);
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(29,29,27,.14);
}
.prop__badge--accent { background: var(--accent); color: #fff; }
.prop__fav {
    position: absolute;
    top: 10px; right: 10px;
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(29,29,27,.14);
    cursor: pointer;
    transition: .22s ease;
}
.prop__fav svg { width: 18px; height: 18px; }
.prop__fav:hover { background: #fff; color: var(--accent); }
/* --fav-fill успадковується всередину shadow DOM, який створює <use>;
   звичайний селектор на path туди не дістає */
.prop__fav[aria-pressed="true"] { color: var(--accent); --fav-fill: 1; }
.prop__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; flex: 1; }
.prop__title {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}
.prop__meta { margin: 0; font-size: 13px; color: var(--muted); }
.prop__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}
.prop__price { display: block; font-size: 18px; font-weight: 700; color: #000; }
.prop__price small { font-size: 12px; font-weight: 600; }
.prop__place {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--muted);
}
.prop__place svg { width: 14px; height: 14px; color: var(--accent); }
.prop__go {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    flex: none;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.35);
    color: #000;
    transition: .22s ease;
}
.prop__go svg { width: 18px; height: 18px; }
.prop__go:hover { background: #000; color: #fff; border-color: #000; }

.loading { grid-column: 1 / -1; padding: 36px 0; text-align: center; color: var(--muted); }

/* ---------- 04. Наша команда ---------- */
.team { padding: 54px 0 60px; background: var(--bg-2); }
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.team__grid > .loading { grid-column: 1 / -1; }
.team__more {
    width: 100%;
    gap: 16px;
    padding: 22px 26px;
    border-radius: 16px;
    background: #efeeec;
    color: var(--ink);
    font-size: 17px;
    font-weight: 500;
}
.team__more:hover { background: #e4e2de; }
.team__more svg { width: 20px; height: 20px; transform: rotate(90deg); transition: transform .22s ease; }
.team__more.is-open svg { transform: rotate(-90deg); }
/* Плитка агента: фото на всю ширину, нижче ім'я, телефон і соцмережі в одній білій картці */
.agent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .22s ease;
}
.agent:hover { box-shadow: 0 16px 36px rgba(29,29,27,.12); transform: translateY(-2px); }
.agent > :not(.agent__media) { padding: 0 10px; }
.agent__media { position: relative; display: block; width: 100%; margin-bottom: 6px; }
.agent__photo { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; background: var(--tile); }
.agent__count {
    position: absolute;
    left: 10px; bottom: 10px;
    text-align: center;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    font-size: 11px;
    font-weight: 600;
}
.agent--reveal { animation: agent-reveal .45s ease both; }
@keyframes agent-reveal {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: none; }
}
.agent__name { margin: 0; font-size: 16px; font-weight: 600; }
.agent__name a:hover { color: var(--accent); }
.agent__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--ink);
    transition: .2s ease;
}
.agent__phone svg { flex: none; width: 16px; height: 16px; }
.agent__phone:hover { color: var(--accent); }
/* margin-top: auto — соцмережі притиснуті до низу, тож у ряду плиток вони на одному рівні */
.agent__contacts { display: flex; flex: none; justify-content: center; gap: 8px; margin-top: 6px; }
.agent .agent__contacts {
    align-self: stretch;
    margin: auto 12px 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
}
.agent__contacts a {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: var(--tile);
    color: var(--ink);
    transition: .22s ease;
}
.agent__contacts a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.agent__contacts svg { width: 16px; height: 16px; }

/* ---------- 05. Відгуки ---------- */
.reviews { padding: 54px 0 60px; background: var(--bg); }
.reviews__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 22px;
    font-size: 14px;
}
.reviews__g {
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 15px;
    font-weight: 700;
    color: #4285f4;
}
.reviews__rating strong { font-size: 16px; font-weight: 700; }
.reviews__rating small { font-size: 13px; color: var(--muted); }
.reviews__rating .divider { width: 1px; height: 16px; background: var(--line); }
.reviews__rating .link-more { margin-left: auto; }

.review {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.review__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review__top strong { display: block; font-size: 15px; font-weight: 600; }
.review__top time { font-size: 12px; color: var(--muted); }
.review p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.review__source { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 15px; height: 15px; }

/* Каруселі */
.scroller { overflow: hidden; }
.scroller__track {
    display: flex;
    gap: 14px;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.scroller__track::-webkit-scrollbar { display: none; }
.scroller__track > * { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.scroller-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}
.dots { display: flex; justify-content: center; gap: 8px; flex: 1; }
.dots button {
    width: 8px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: .2s ease;
}
.dots button[aria-current="true"] { background: var(--accent); }

/* ---------- 06. Про компанію ---------- */
.about { padding: 54px 0 60px; background: var(--bg-2); }
.about__grid { display: grid; gap: 22px; }
.about p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.about__media {
    min-height: 210px;
    border-radius: var(--radius);
    background: var(--about-img) center/cover no-repeat, var(--tile);
}
.about__stats { display: flex; gap: 26px; margin: 18px 0 22px; }
.about__stats div { display: grid; gap: 2px; }
.about__stats strong { font-size: 30px; font-weight: 800; line-height: 1; }
.about__stats span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.about__stats div + div { padding-left: 26px; border-left: 1px solid var(--line); }

/* ---------- 07. Чому обирають ---------- */
.why { padding: 54px 0 60px; background: var(--bg); }
.why__list { display: grid; max-width: 760px; }
.why__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.why__item:last-child { border-bottom: 0; }
.why__item-ico {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    flex: none;
    border-radius: 50%;
    background: var(--tile);
    color: var(--ink);
}
.why__item-ico svg { width: 20px; height: 20px; }
.why__item h3 { margin: 0 0 2px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.why__item p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- 08. Партнери ---------- */
.partners { padding: 54px 0 60px; background: var(--bg-2); }
.partners__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.partners__grid:empty { display: none; }
.partner {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    min-height: 128px;
    padding: 16px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    transition: .22s ease;
}
a.partner:hover { border-color: var(--accent); transform: translateY(-2px); }
.partner__logo {
    display: grid;
    place-items: center;
    width: 68px; height: 68px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tile);
}
.partner__logo img { width: 100%; height: 100%; object-fit: cover; }
.partner__name { font-size: 13px; font-weight: 700; line-height: 1.2; padding: 0 4px; }
.partner small {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 09. Офіси ---------- */
.offices { padding: 54px 0 60px; background: var(--bg); }
.offices__grid { display: grid; gap: 12px; margin-bottom: 14px; }
.office { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--tile); border-radius: var(--radius); }
.office__pin {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    flex: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
}
.office__pin svg { width: 20px; height: 20px; }
.office > div { display: grid; gap: 3px; min-width: 0; }
.office strong { font-size: 16px; font-weight: 600; }
.office span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.office__hours {
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    margin-top: 8px;
    font-size: 13px;
}
.offices__map { display: grid; gap: 12px; justify-items: start; }
.offices__map iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); }

/* ---------- 10. Контакти ---------- */
.contacts { padding: 54px 0 64px; background: var(--bg-2); }
.contacts__grid { display: grid; gap: 26px; }
.contacts__note { font-size: 14px; line-height: 1.6; color: var(--muted); }
.contacts__list { display: grid; gap: 14px; margin: 22px 0; }
.contacts__list li { display: flex; align-items: center; gap: 14px; }
.contacts__list a, .contacts__list span { font-size: 15px; }
.contacts__list a:hover { color: var(--accent); }
.contacts__ico {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    flex: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
}
.contacts__ico svg { width: 19px; height: 19px; }

.socials { display: flex; gap: 10px; }
.socials a {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    transition: .22s ease;
}
.socials a:hover { background: var(--accent); color: #fff; }
.socials svg { width: 19px; height: 19px; }

/* Форма заявки */
.lead__form { display: grid; gap: 12px; }
.field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: .2s ease;
}
.field svg { width: 19px; height: 19px; color: var(--muted); }
.field:focus-within { border-color: var(--accent); }
.field.is-invalid { border-color: #c0392b; }
.field input, .field textarea {
    width: 100%;
    padding: 15px 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    resize: none;
}
.field input:focus, .field textarea:focus { outline: none; }
.field--area { align-items: flex-start; padding-top: 14px; }
.field--area svg { margin-top: 2px; }
.field--area textarea { padding-top: 0; }
.lead__status { margin: 0; min-height: 18px; font-size: 13px; }
.lead__status.is-ok { color: #2e7d32; }
.lead__status.is-error { color: #c0392b; }
.lead__note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* ---------- Футер ---------- */
.footer { background: var(--ink); color: #fff; padding: 30px 0 22px; }
.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    text-align: center;
}
.footer__logo { display: grid; justify-items: center; color: #fff; }
.footer__slogan { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.footer .socials a { background: rgba(255,255,255,.1); color: #fff; }
.footer .socials a:hover { background: var(--accent); }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    padding-top: 18px;
    font-size: 12px;
    color: rgba(255,255,255,.55);
}
.footer__bottom a:hover { color: var(--accent); }

/* ---------- Фільтри каталогу ---------- */
.filters { margin-bottom: 18px; }
.filters__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}
.filters__toggle:hover { border-color: var(--accent); }
.filters__toggle svg { width: 18px; height: 18px; color: var(--accent); }
.filters__badge {
    display: grid;
    place-items: center;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.filters__body {
    display: none;
    gap: 14px;
    margin-top: 14px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.filters__body.is-open { display: grid; }
.filters__field { display: grid; gap: 6px; min-width: 0; }
.filters__field.is-disabled, .search__row.is-disabled { opacity: .45; }
.search__row.is-disabled .search__summary { cursor: not-allowed; }
.filters__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.filters__range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filters__found { font-size: 13px; font-weight: 600; color: var(--muted); }
.filters__reset {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}
.filters__reset:hover { color: var(--ink); }

.filters select, .filters input,
.search select, .search input,
.catalogpage__sort select {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    transition: .2s ease;
}
.filters select, .search select, .catalogpage__sort select {
    appearance: none;
    padding-right: 32px;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: right 16px center, right 11px center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}
.filters select:focus, .filters input:focus,
.search select:focus, .search input:focus { outline: none; border-color: var(--accent); background-color: #fff; }
.filters select:disabled { cursor: not-allowed; }

/* ---------- Внутрішні сторінки ---------- */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 12px;
    color: var(--muted);
}
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }

.catalogpage { padding: 24px 0 64px; }
.catalogpage .section-sub { margin-bottom: 22px; }
.catalogpage__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.catalogpage__found { font-size: 14px; font-weight: 600; }
.catalogpage__sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.catalogpage__sort select { width: auto; padding: 10px 32px 10px 12px; background-color: var(--surface); }

.object { padding: 24px 0 64px; }
.object__inner { display: grid; gap: 26px; align-items: start; }
.object__top, .object__details { display: grid; gap: 26px; min-width: 0; }

.gallery { display: grid; gap: 10px; }
.gallery__stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.gallery__image { width: 100%; height: 100%; object-fit: cover; }
.gallery__stage .prop__badge { top: 12px; left: 12px; }
/* Водяний знак — білий логотип у правому верхньому куті; кліки проходять до фото */
.gallery__watermark {
    position: absolute;
    top: 14px; right: 14px;
    width: clamp(72px, 18%, 130px);
    opacity: .7;
    filter: drop-shadow(0 1px 6px rgba(0,0,0,.35));
    pointer-events: none;
    user-select: none;
}
.gallery__counter {
    position: absolute;
    right: 12px; bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(29,29,27,.72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--ink);
    cursor: pointer;
}
.gallery__nav:hover { background: #fff; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--prev svg { transform: rotate(180deg); }
.gallery__nav--next { right: 12px; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
    width: 88px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    opacity: .6;
    transition: .2s ease;
}
.gallery__thumb img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { opacity: 1; border-color: var(--accent); }

/* Повноекранний перегляд фото об'єкта */
.gallery__image { cursor: zoom-in; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px;
    background: rgba(18,18,18,.96);
}
.lightbox__thumbs {
    display: none;
    gap: 8px;
    width: 72px;
    overflow-y: auto;
    scrollbar-width: none;
}
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    opacity: .55;
    transition: .2s ease;
}
.lightbox__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lightbox__thumb:hover { opacity: .85; }
.lightbox__thumb.is-active { opacity: 1; border-color: #fff; }

.lightbox__stage {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
}
.lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 92px);
    max-height: calc(100svh - 92px);
    object-fit: contain;
}
.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--prev svg { transform: rotate(180deg); }
.lightbox__nav--next { right: 14px; }
.lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.object__title { margin: 0 0 10px; font-size: clamp(22px, 4.6vw, 29px); font-weight: 600; line-height: 1.25; }
.object__address { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.object__address svg { width: 18px; height: 18px; color: var(--accent); }
.object__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.object__facts li {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.object__facts strong { font-size: 20px; font-weight: 800; }
.object__facts span { font-size: 12px; color: var(--muted); }

.object__block { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.object__h2 { margin: 0 0 16px; font-size: 19px; font-weight: 600; }
.specs { margin: 0; display: grid; }
.specs__row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.specs__row:last-child { border-bottom: 0; }
.specs dt { font-size: 14px; color: var(--muted); }
.specs dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }
.object__desc { font-size: 15px; line-height: 1.7; }
.object__video iframe, .object__map iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; }
.object__map iframe { aspect-ratio: 4 / 3; margin-bottom: 14px; }

/* Каркас сторінки об'єкта, поки дані ще йдуть: сірі «заглушки» замість порожнечі */
.object__inner.is-loading .gallery__stage,
.object__inner.is-loading .object__title,
.object__inner.is-loading .object__address,
.object__inner.is-loading .object__facts,
.object__inner.is-loading .object__price,
.object__inner.is-loading .object__agent {
    border-radius: 10px;
    background: linear-gradient(90deg, var(--bg-2) 25%, #e9e7e3 50%, var(--bg-2) 75%) 0 0 / 200% 100%;
    animation: skeleton 1.3s ease-in-out infinite;
}
.object__inner.is-loading .gallery__stage { border-radius: var(--radius); }
.object__inner.is-loading .gallery__stage > *,
.object__inner.is-loading .object__address > * { visibility: hidden; }
.object__inner.is-loading .object__title { width: 80%; height: 32px; }
.object__inner.is-loading .object__address { width: 55%; height: 18px; }
.object__inner.is-loading .object__facts { height: 64px; }
.object__inner.is-loading .object__price { width: 170px; height: 32px; }
.object__inner.is-loading .object__agent { height: 120px; }
@keyframes skeleton {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

.object__aside { display: grid; gap: 14px; }
.object__card { display: grid; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.object__price-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.object__price { display: block; font-size: 28px; font-weight: 800; color: #000; }
.object__price-unit { font-size: 13px; color: #000; }
/* Картка ціни — чорна гама; помаранчевою лишається тільки «Надіслати заявку» */
.object__card .prop__fav:hover, .object__card .prop__fav[aria-pressed="true"] { color: #000; }
.object__form .field:focus-within { border-color: #000; }
.object__fav { position: static; flex: none; }
.object__agent { display: grid; gap: 12px; }
.object__agent-top { display: flex; align-items: center; gap: 12px; }
.object__agent-top img, .object__agent-ph {
    width: 54px; height: 54px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-2);
}
.object__agent-top strong { display: block; font-size: 16px; }
.object__agent-top span { font-size: 12px; color: var(--muted); }
.object__agent-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid #000;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    color: #000;
    transition: .22s ease;
}
.object__agent-call:hover { background: #000; color: #fff; }
.object__agent-call svg { width: 18px; height: 18px; }
.object__agent .agent__contacts { justify-content: center; }
.object__agent .agent__contacts a { background: var(--tile); border-color: transparent; color: #000; }
.object__agent .agent__contacts a:hover { background: #000; color: #fff; }
.object__form { display: grid; gap: 12px; }
.object__meta { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

.agentpage { padding: 24px 0 64px; }
.agentpage__inner { display: grid; gap: 26px; align-items: start; }
.agentpage__main { display: grid; gap: 26px; min-width: 0; }
.agentpage__card {
    display: grid;
    gap: 14px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-align: center;
}
.agentpage__photo {
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg-2);
}
.agentpage__name { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.25; }
.agentpage__role { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.agentpage__stats {
    display: grid;
    grid-auto-flow: column;
    justify-content: center;
    gap: 26px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.agentpage__stats li { display: grid; gap: 2px; }
.agentpage__stats strong { font-size: 24px; font-weight: 800; }
.agentpage__stats span { font-size: 11px; color: var(--muted); }
.agentpage__stats:empty { display: none; }
.agentpage__types { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.agentpage__types li {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--tile);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.agentpage__types:empty { display: none; }
.agentpage__contacts { display: grid; gap: 10px; }
.agentpage__objects .section-head { margin-bottom: 16px; }

/* ---------- Планшет ---------- */
@media (min-width: 640px) {
    .catalog__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .filters__body.is-open { grid-template-columns: repeat(2, 1fr); }
    .filters__actions { grid-column: 1 / -1; }
    .partners__grid { grid-template-columns: repeat(4, 1fr); }
    .offices__grid { grid-template-columns: repeat(2, 1fr); }
    .scroller__track > * { flex: 0 0 calc((100% - 14px) / 2); }
    .team__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Десктоп ---------- */
@media (min-width: 992px) {
    body { font-size: 16px; }
    :root { --header-h: 86px; }

    /* На ПК шапка — суцільна біла смуга з квадратними кнопками;
       сіра плашка із заокругленням лишається тільки для телефона. */
    /* на ПК — майже біла напівпрозора, як домовлялись раніше */
    .header {
        margin: 14px 20px;
        padding: 12px 22px;
        background: rgba(252,252,251,.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(43,43,43,.07);
    }
    .header__num { display: inline; }
    .logo-img { height: 38px; }
    .hero {
        min-height: 720px;
        padding-bottom: 170px;
        /* фото вертикальне: зміщуємо кадр, щоб у рамку потрапили родина й місто */
        background-position: center 72%;
    }
    /* на широкому екрані вуаль іде збоку: текст читається, краєвид лишається чистим */
    .hero::before {
        inset: 0;
        height: auto;
        background: linear-gradient(90deg, rgba(252,251,249,.95) 0%, rgba(252,251,249,.88) 36%, rgba(252,251,249,.3) 60%, rgba(252,251,249,0) 76%);
    }
    .hero__inner { gap: 22px; }
    .hero__stats { gap: 22px; }
    .hero__stats li { padding-left: 22px; font-size: 14px; }

    .hero__inner { gap: 26px; }

    .search, .catalog, .team, .reviews, .about, .why, .partners, .offices { padding: 84px 0 92px; }
    .contacts { padding: 84px 0 96px; }
    /* та ж сітка на 4 колонки, що й у типів — Продаж/Оренда шириною як Квартири/Будинки */
    .search__deal { grid-template-columns: repeat(4, 1fr); }
    .search__types { grid-template-columns: repeat(4, 1fr); }
    .search__panel { grid-template-columns: repeat(2, 1fr); }
    .search__row:nth-last-child(-n+2) { border-bottom: 0; }
    .search__row:nth-child(odd) { border-right: 1px solid var(--line); }

    .catalog__grid { gap: 24px; }
    .prop__title { font-size: 16px; }
    .prop__body { padding: 16px 16px 18px; }

    .scroller__track > * { flex: 0 0 calc((100% - 42px) / 4); }
    .team__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .team__more { max-width: 420px; }
    .reviews .scroller__track > * { flex: 0 0 calc((100% - 28px) / 3); }

    .about__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
    .about__media { min-height: 330px; }


    .contacts__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
    .offices__map iframe { aspect-ratio: 2.6 / 1; }

    .catalogpage, .object, .agentpage { padding: 32px 0 96px; }
    .object__inner { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
    .object__top { grid-column: 1; grid-row: 1; }
    .object__details { grid-column: 1; grid-row: 2; }
    .object__aside { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 96px; }
    .object__block { padding: 28px 30px; }
    .lightbox { padding: 16px; gap: 16px; }
    .lightbox__thumbs { display: grid; align-content: start; }
    .lightbox__stage { grid-column: 2; }
    .specs { grid-template-columns: 1fr 1fr; column-gap: 40px; }

    .agentpage__inner { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; }
    .agentpage__objects .catalog__grid { grid-template-columns: repeat(2, 1fr); }

    .filters__body, .filters__body.is-open {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 18px 20px;
        padding: 22px 24px;
    }
    .filters__toggle { display: none; }

    .footer__inner { justify-content: space-between; text-align: left; }
    .footer__logo { justify-items: start; }
    .footer__bottom { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
    .agent--reveal, .object__inner.is-loading * { animation: none !important; }
}
