/*
 * Kvarta – real estate agency template · Abedev (abedev.com)
 *
 * Design: architectural and precise – a wide display font, black and electric blue on white, fine grid lines,
 * numbered labels, sharp cards with a floor-plan fallback, a dialog for listing details and an abstract district
 * map. Colours, fonts and spacing are variables: change them here and the whole site follows.
 * Sections: 1 fonts · 2 tokens · 3 base · 4 header · 5 hero & search · 6 home · 7 listings & dialog · 8 sell
 * · 9 team · 10 forms · 11 footer
 */

/* 1 ─ Fonts (bundled, SIL Open Font License – see assets/fonts/OFL.txt) */
@font-face { font-family: "Kvarta Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kvarta Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/unbounded-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kvarta Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/unbounded-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Kvarta Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-700-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Kvarta Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kvarta Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kvarta Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Kvarta Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-700-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Kvarta Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kvarta Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kvarta Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Kvarta Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-400-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Kvarta Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/golos-text-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kvarta Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/golos-text-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kvarta Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/golos-text-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Kvarta Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-600-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }

/* 2 ─ Tokens */
:root {
    --blue: #2453ff;
    --ink: #111418;
    --grey: #f2f3f6;
    --mid: #6b7280;
    --line: #e2e5ec;
    --white: #ffffff;
    --display: "Kvarta Display", "Unbounded", system-ui, sans-serif;
    --text: "Kvarta Text", "Golos Text", system-ui, sans-serif;
    --wrap: 1280px;
}

/* 3 ─ Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.65 var(--text); overflow-x: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
svg { display: block; }
svg[viewBox="0 0 24 24"] { width: 1.1em; height: 1.1em; flex: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0 0 .45em; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.1rem; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: 0; line-height: 1.25; hyphens: none; }
:lang(ka) h1 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
:lang(ka) h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 12px/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.label::before { content: ""; width: 10px; height: 10px; background: currentColor; }
.label--light { color: #9db1ff; }
:lang(ka) .label { letter-spacing: .03em; }
.lead { font-size: 1.1rem; color: var(--mid); max-width: 40em; }
.muted { color: var(--mid); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: 0; font: 600 15px/1.2 var(--text); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; text-align: center; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--blue); color: var(--white); }
.btn-line { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-line:hover { border-color: var(--white); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--blue); }
.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 15px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks svg { margin-top: .3em; color: var(--blue); }

/* 4 ─ Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo > span:not(.logo-mark) { display: flex; flex-direction: column; font: 700 20px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
:lang(ka) .logo > span:not(.logo-mark) { text-transform: none; }
.logo small { margin-top: 5px; font: 600 10.5px var(--text); letter-spacing: .16em; color: var(--mid); }
.logo-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 34px; height: 34px; flex: none; }
.logo-mark i { background: var(--ink); }
.logo-mark i:nth-child(1), .logo-mark i:nth-child(4) { background: var(--blue); }
.logo-img { max-height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a { position: relative; padding: 10px 14px; font-weight: 600; font-size: 15px; text-decoration: none; }
.nav > a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--blue); }
.nav > a:hover { color: var(--blue); }
.lang { display: flex; margin-left: 12px; border: 1px solid var(--line); }
.lang a { padding: 6px 9px; font: 600 12px var(--text); text-decoration: none; color: var(--mid); }
.lang a[aria-current] { background: var(--ink); color: var(--white); }
.saved { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); text-decoration: none; }
.saved svg { width: 20px; height: 20px; }
.saved span { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: var(--white); font: 600 12px/20px var(--text); text-align: center; }
.saved.is-empty span { display: none; }
.menu-btn { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; padding: 0 12px; border: 0; background: var(--ink); cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--white); transition: transform .25s; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* 5 ─ Hero & search */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; color: var(--white); }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img, .hero-photo svg { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 20, 24, .78) 0%, rgba(17, 20, 24, .35) 60%, rgba(17, 20, 24, .1)); }
.hero-inner { position: relative; padding: 110px 0 60px; }
.hero h1 { max-width: 13em; }
.hero-lead { max-width: 34em; color: #dfe3ea; font-size: 1.1rem; }
.hero .label { color: #9db1ff; }
.search { display: grid; grid-template-columns: auto 1fr 1fr auto; align-items: stretch; margin-top: 30px; background: var(--white); color: var(--ink); max-width: 980px; }
.deal-switch { display: flex; border-right: 1px solid var(--line); }
.deal-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.deal-switch span { display: flex; align-items: center; height: 100%; padding: 0 20px; font-weight: 600; cursor: pointer; }
.deal-switch input:checked + span { background: var(--ink); color: var(--white); }
.deal-switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -2px; }
.s-field { display: grid; gap: 2px; padding: 10px 16px; border-right: 1px solid var(--line); min-width: 0; }
.s-field span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
:lang(ka) .s-field span { letter-spacing: .02em; }
.s-field select, .s-field input { border: 0; padding: 4px 0; background: transparent; font: 600 16px var(--text); min-height: 0; }
.search .btn { min-height: 68px; }

/* 6 ─ Home */
.stats-row { border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stats > div { display: grid; gap: 4px; padding: 26px 22px; border-right: 1px solid var(--line); }
.stats > div:first-child { border-left: 1px solid var(--line); }
.stats small { font-weight: 600; color: var(--blue); font-size: 12px; }
.stats strong { font: 500 clamp(1.8rem, 3vw, 2.5rem)/1 var(--display); }
.stats span { color: var(--mid); font-size: 14.5px; }
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section--flush { padding-top: 0; }
.section--tight { padding-top: 10px; }
.section--grey { background: var(--grey); }
.section--ink { background: var(--ink); color: #c9ced8; }
.section--ink h2 { color: var(--white); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.head-row h2 { margin: 0; }
.head-row > div { min-width: 0; max-width: 100%; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--ink); box-shadow: 8px 8px 0 var(--blue); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img, .card-img svg { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; background: var(--ink); color: var(--white); font: 600 12px var(--text); letter-spacing: .08em; text-transform: uppercase; }
:lang(ka) .badge { letter-spacing: 0; text-transform: none; }
.badge--rent { background: var(--blue); }
.fav { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; }
.fav svg { width: 20px; height: 20px; }
.fav[aria-pressed="true"] { color: #e5484d; }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; }
.card-price { margin: 0; font: 500 1.35rem var(--display); }
.card-price small { font: 400 14px var(--text); color: var(--mid); }
.card h3 { margin: 0; font: 600 1.05rem/1.35 var(--text); letter-spacing: 0; }
.open { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.open::after { content: ""; position: absolute; inset: 0; }
.card .fav { z-index: 2; }
.card-loc { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--mid); font-size: 14.5px; }
.specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); font-size: 14px; }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { color: var(--blue); }
.map-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.map { border: 1px solid var(--line); background: var(--white); }
.map svg { width: 100%; height: auto; }
.map-pin { transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.map-pin.is-on circle { fill: var(--ink); }
.dist-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.dist-list a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.dist-list a:hover { background: var(--white); }
.dist-list .n { display: grid; place-items: center; width: 28px; height: 28px; background: var(--blue); color: var(--white); font: 600 13px var(--text); }
.dn { font-weight: 600; }
.dp { color: var(--mid); font-size: 14px; white-space: nowrap; }
.services-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.services li { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sn { font: 500 1.6rem var(--display); color: var(--blue); }
.services h3 { margin-top: 12px; }
.services p { margin: 0; color: var(--mid); font-size: 15px; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quote { margin: 0; padding: 26px; border: 1px solid #2a2f37; }
.quote blockquote { margin: 0 0 18px; color: var(--white); }
.quote figcaption { display: grid; font-size: 14px; }
.quote figcaption strong { color: var(--white); }
.cta { background: var(--blue); color: #e5eaff; }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 30px; align-items: center; padding: 56px 0; }
.cta h2 { color: var(--white); margin: 0; }
.cta p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-head { padding: 60px 0 36px; }

/* 7 ─ Listings & dialog */
.filterbar { display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; border: 1px solid var(--ink); margin-bottom: 16px; }
.only-saved { display: flex; align-items: center; padding: 0 16px; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.only-saved input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.only-saved span { display: inline-flex; align-items: center; gap: 6px; }
.only-saved input:checked + span { color: #e5484d; }
.only-saved input:checked + span svg { fill: currentColor; }
.only-saved input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 4px; }
.count { margin: 0 0 20px; color: var(--mid); font-size: 14.5px; }
.empty { padding: 40px; border: 1px dashed var(--line); text-align: center; color: var(--mid); }
.dlg { width: min(1040px, 100% - 24px); max-height: calc(100vh - 40px); padding: 0; border: 0; background: var(--white); color: var(--ink); overflow: auto; }
.dlg::backdrop { background: rgba(17, 20, 24, .7); }
.dlg-close { position: sticky; top: 0; float: right; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border: 0; background: var(--ink); color: var(--white); cursor: pointer; }
.dlg-close svg { width: 22px; height: 22px; }
.dlg-content { display: grid; grid-template-columns: 1.1fr 1fr; }
.dlg-gallery { display: grid; gap: 4px; align-content: start; }
.dlg-gallery img, .dlg-gallery svg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dlg-body { padding: 30px; }
.dlg-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.mortgage { display: grid; gap: 12px; margin: 10px 0 20px; padding: 20px; background: var(--grey); }
.mortgage h3 { margin: 0; }
.mortgage label { display: grid; gap: 4px; font-size: 14.5px; font-weight: 600; }
.mortgage label span { display: flex; justify-content: space-between; }
.mortgage input[type="range"] { width: 100%; accent-color: var(--blue); padding: 0; border: 0; }
.mortgage-result { margin: 0; font-size: 15px; }
.mortgage-result strong { font: 500 1.4rem var(--display); color: var(--blue); }
.mortgage small { color: var(--mid); }
.agent { display: flex; align-items: center; gap: 8px; color: var(--mid); }

/* 8 ─ Sell */
.estimator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.estimator { display: grid; gap: 14px; padding: 30px; border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--blue); }
.estimator .s-field { border: 1px solid var(--line); }
.cond { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.cond legend { width: 100%; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
:lang(ka) .cond legend { letter-spacing: .02em; }
.cond input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cond span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 14.5px; }
.cond input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cond input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.estimate-out { padding: 18px; background: var(--grey); }
.estimate-out small { display: block; color: var(--mid); }
.estimate-out strong { font: 500 clamp(1.4rem, 3vw, 2rem) var(--display); color: var(--blue); }
.note { color: var(--mid); font-size: 14px; margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.steps li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li span { font: 500 1.2rem var(--display); color: var(--blue); }

/* 9 ─ Team */
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.agent-card { border: 1px solid var(--line); }
.agent-photo { aspect-ratio: 1; display: grid; place-items: center; background: var(--grey); color: var(--blue); font: 500 3rem var(--display); overflow: hidden; }
.agent-card:nth-child(even) .agent-photo { background: #e6ebff; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-body { padding: 20px; }
.agent-body small { color: var(--blue); font-weight: 600; }
.agent-body h2 { font-size: 1.3rem; margin: 6px 0 2px; }
.agent-role { color: var(--mid); }
.agent-body dl { display: grid; gap: 6px; margin: 0 0 14px; font-size: 14.5px; }
.agent-body dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.agent-body dt { color: var(--mid); }
.agent-body dd { margin: 0; font-weight: 600; text-align: right; }

/* 10 ─ Forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.panel { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--ink); scroll-margin-top: 100px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mid); }
:lang(ka) .field label { letter-spacing: 0; text-transform: none; }
input, select, textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #cfd4de; border-radius: 0; background: var(--white); color: var(--ink); font: 400 16px var(--text); }
input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 48px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mid); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--blue); }
.form-status { grid-column: 1 / -1; display: none; padding: 14px 18px; font-size: 15px; border-left: 4px solid var(--blue); }
.form-status.is-shown { display: block; }
.form-status.ok { background: #e6f5ec; border-color: #1f9d55; }
.form-status.info { background: #e9edff; }
.form-status.error { background: #fde8e8; border-color: #e5484d; }
.side { display: grid; gap: 18px; }
.side-block { padding: 22px; background: var(--grey); }
.side-block h2 { font-size: 1.15rem; }
.side-block a { text-decoration: none; }
.hours { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
.faq p { color: var(--mid); font-size: 15px; }
.legal { max-width: 800px; overflow-wrap: break-word; }
.legal h2 { font-size: 1.4rem; margin-top: 1.4em; }
.legal h2:first-child { margin-top: 0; }

/* 11 ─ Footer */
.footer { background: var(--ink); color: #b5bcc8; padding: 60px 0 26px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.logo--light { color: var(--white); }
.logo--light .logo-mark i { background: var(--white); }
.logo--light .logo-mark i:nth-child(1), .logo--light .logo-mark i:nth-child(4) { background: var(--blue); }
.footer-brand p { margin-top: 16px; }
.footer .footer-h { font: 600 12px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
:lang(ka) .footer-h { letter-spacing: .02em; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #2a2f37; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 18px; border-top: 1px solid #2a2f37; font-size: 13.5px; }

/* Responsive */
@media (max-width: 1100px) {
    .filterbar { grid-template-columns: 1fr 1fr; }
    .filterbar .deal-switch { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
    .filterbar .deal-switch span { padding: 12px 16px; }
    .filterbar .s-field { border-bottom: 1px solid var(--line); }
    .only-saved { padding: 14px 16px; }
}
@media (max-width: 980px) {
    .menu-btn { display: flex; }
    .saved { margin-left: auto; }
    .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0 24px; background: var(--white); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s, padding .35s, visibility .35s; }
    .menu-open .nav { max-height: 80vh; padding: 10px 24px 20px; visibility: visible; }
    .nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 1.1rem var(--display); }
    .nav > a[aria-current="page"]::after { left: 0; right: auto; width: 30px; }
    .lang { margin: 14px 0 0; align-self: flex-start; }
    .search { grid-template-columns: 1fr 1fr; }
    .search .deal-switch { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
    .search .deal-switch span { padding: 14px 18px; }
    .search .btn { grid-column: 1 / -1; }
    .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-grid, .services-grid, .estimator-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .quotes { grid-template-columns: minmax(0, 1fr); }
    .cta-inner { grid-template-columns: minmax(0, 1fr); }
    .dlg-content { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { gap: 10px; min-height: 64px; }
    .logo > span:not(.logo-mark) { font-size: 16px; }
    .logo small { font-size: 9px; letter-spacing: .1em; }
    .hero { min-height: 560px; }
    .hero-inner { padding: 70px 0 30px; }
    .search { grid-template-columns: minmax(0, 1fr); }
    .search .s-field { border-right: 0; border-bottom: 1px solid var(--line); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats > div:nth-child(odd) { border-left: 1px solid var(--line); }
    .cards--3, .cards { grid-template-columns: minmax(0, 1fr); }
    .services { grid-template-columns: minmax(0, 1fr); }
    .filterbar { grid-template-columns: minmax(0, 1fr); }
    .deal-switch label { flex: 1 1 0; min-width: 0; }
    .filterbar .deal-switch span, .search .deal-switch span { justify-content: center; padding: 12px 6px; text-align: center; }
    .filterbar .s-field { border-right: 0; }
    .ticks { grid-template-columns: minmax(0, 1fr); }
    .dlg-body { padding: 22px 18px; }
    .form { grid-template-columns: minmax(0, 1fr); }
    .estimator { padding: 22px 18px; box-shadow: 6px 6px 0 var(--blue); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
