/*
 * Kari – architects template · Abedev (abedev.com)
 *
 * Design: an architecture office – drafting paper with a fine grid, a deep blueprint blue, a red pen for dimensions,
 * a tall condensed display face and a monospace for plan labels; the language switch is a row of section markers from a
 * drawing (flag in the upper half, code in the lower half, the one in use drawn in red) and on phones the menu is a
 * floor plan where every page is a room. Colours, fonts and spacing are variables: change them here and the whole
 * site follows.
 * Sections: 1 fonts · 2 tokens · 3 base, plan drawings · 4 header, markers & floor plan · 5 hero & home · 6 projects
 * · 7 services & calculator · 8 office · 9 contact · 10 footer · 11 smaller screens
 */

/* 1 ─ Fonts (bundled, SIL Open Font License – see assets/fonts/OFL.txt) */
@font-face { font-family: "Kari Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/sofia-sans-extra-condensed-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: "Kari Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/sofia-sans-extra-condensed-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: "Kari Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/sofia-sans-extra-condensed-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: "Kari Display"; 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: "Kari Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sofia-sans-extra-condensed-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: "Kari Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sofia-sans-extra-condensed-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: "Kari Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sofia-sans-extra-condensed-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: "Kari Display"; font-style: normal; font-weight: 700; 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; }
@font-face { font-family: "Kari Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/arsenal-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: "Kari Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/arsenal-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: "Kari Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/arsenal-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: "Kari 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: "Kari Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/arsenal-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: "Kari Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/arsenal-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: "Kari Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/arsenal-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: "Kari Text"; font-style: normal; font-weight: 700; 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; }
@font-face { font-family: "Kari Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pt-mono-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: "Kari Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pt-mono-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: "Kari Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pt-mono-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: "Kari Mono"; 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; }

/* 2 ─ Tokens */
:root {
    --red: #d2452b;
    --blue: #1d2a3a;
    --paper: #f1efe9;
    --sheet: #fbfaf6;
    --line: #cfd3d6;
    --grid: rgba(29, 42, 58, .07);
    --mid: #5a6470;
    --display: "Kari Display", "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
    --text: "Kari Text", "Arsenal", system-ui, sans-serif;
    --mono: "Kari Mono", "PT Mono", ui-monospace, monospace;
    --wrap: 1240px;
}

/* 3 ─ Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--blue); font: 400 18px/1.6 var(--text); overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
svg { display: block; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .98; margin: 0 0 .45em; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.6rem; line-height: 1.05; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { text-transform: none; line-height: 1.3; letter-spacing: 0; }
:lang(ka) h1 { font-size: clamp(1.8rem, 4.4vw, 3.3rem); }
:lang(ka) h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
:lang(ka) h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--red); color: #fff; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 400 .78rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 22px; height: 22px; flex: none; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; }
:lang(ka) .eyebrow { text-transform: none; letter-spacing: 0; }
.lead { font-size: 1.18rem; color: var(--mid); max-width: 62ch; }
.muted { color: var(--mid); }
.small { font-size: .9rem; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(24px, 4vw, 44px) 0 clamp(56px, 8vw, 96px); }
.section--blue { background: var(--blue); color: #e6ebef; }
.section--blue .lead, .section--blue .muted { color: #a9b6c2; }
.section--paper { background: #e7e4dc; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; margin-bottom: 30px; }
.head-row h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 8px; font: 400 .8rem var(--mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border-bottom: 1.5px solid var(--red); padding-bottom: 3px; }
:lang(ka) .more { text-transform: none; letter-spacing: 0; }
.more:hover { color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border: 1.5px solid var(--blue); font: 700 1rem/1.2 var(--text); text-decoration: none; cursor: pointer; text-align: center; transition: background .2s, color .2s; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--blue); border-color: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--red); border-color: var(--red); }
.btn-line { background: transparent; color: var(--blue); }
.btn-line:hover { background: var(--blue); color: #fff; }
.round { display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--blue); border-radius: 50%; background: var(--sheet); color: var(--blue); cursor: pointer; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.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; } }
/* iPhone Safari: date fields keep their own width otherwise and stick out of the form */
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; }
input[type="date"]::-webkit-date-and-time-value { min-height: 1.4em; text-align: left; }

/* plan drawings */
.plan { width: 100%; height: 100%; background: var(--sheet); }
.pl-grid { fill: none; stroke: var(--grid); stroke-width: 1; }
.pl-wall { stroke: var(--blue); stroke-width: 7; stroke-linecap: square; fill: none; }
.pl-wall-c { fill: none; stroke: var(--blue); stroke-width: 7; }
.pl-win { fill: var(--sheet); stroke: var(--blue); stroke-width: 1.2; }
.pl-door { stroke: var(--blue); stroke-width: 1.6; fill: none; }
.pl-swing { stroke: var(--blue); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.pl-furn { fill: none; stroke: #8a96a3; stroke-width: 1.2; }
.pl-shelf { stroke: #8a96a3; stroke-width: 3; }
.pl-stair { fill: none; stroke: #8a96a3; stroke-width: 1.2; }
.pl-pool { fill: rgba(80, 150, 200, .18); stroke: #5e8fb3; stroke-width: 1.2; }
.pl-gap { stroke: var(--sheet); stroke-width: 9; }
.pl-dim { stroke: var(--red); stroke-width: 1; fill: none; }
.pl-north circle { fill: none; stroke: var(--blue); stroke-width: 1; }
.pl-north path { fill: var(--red); }

/* 4 ─ Header, section markers (language) & floor plan menu */
.header { position: sticky; top: 0; z-index: 40; background: rgba(241, 239, 233, .95); border-bottom: 1.5px solid var(--blue); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1.5px solid var(--blue); color: var(--red); }
.logo-mark .icon { width: 26px; height: 26px; }
.logo-img { max-height: 44px; width: auto; }
.logo > span:last-child { display: grid; font: 700 1.9rem/.9 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.logo small { margin-top: 4px; font: 400 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
:lang(ka) .logo small { text-transform: none; letter-spacing: 0; font-size: .72rem; }
.nav { display: flex; gap: 0; margin-left: auto; border-left: 1.5px solid var(--line); }
.nav a { padding: 6px 14px; text-decoration: none; font: 700 1.25rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; border-right: 1.5px solid var(--line); }
:lang(ka) .nav a { text-transform: none; font-size: .98rem; letter-spacing: 0; }
.nav a:hover { color: var(--red); }
.nav a[aria-current] { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.marks { display: flex; gap: 2px; }
.marks a { position: relative; display: block; text-decoration: none; color: var(--blue); }
.mk { width: 46px; height: 38px; }
.mk-ring { fill: none; stroke: var(--blue); stroke-width: 1.4; }
.mk-arrow { fill: var(--blue); }
.marks span { position: absolute; left: 0; width: 40px; bottom: 6px; text-align: center; font: 400 .55rem/1 var(--mono); letter-spacing: .04em; pointer-events: none; }
.marks a:hover .mk-ring, .marks a[aria-current] .mk-ring { stroke: var(--red); stroke-width: 2; }
.marks a:hover .mk-arrow, .marks a[aria-current] .mk-arrow { fill: var(--red); }
.marks a[aria-current] span { color: var(--red); font-weight: 700; }
.marks a:not([aria-current]) .mk g g { opacity: .7; }
.marks a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.plan-btn { display: none; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--blue); background: var(--sheet); color: var(--blue); font: 700 1.1rem var(--display); text-transform: uppercase; cursor: pointer; }
:lang(ka) .plan-btn { text-transform: none; font: 700 .95rem var(--text); }
.floorplan { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: 1fr auto auto; gap: 16px; padding: 64px 18px 24px; background: var(--sheet); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; opacity: 0; transition: opacity .25s; overflow: auto; }
.floorplan.is-open { opacity: 1; }
.floorplan-close { position: absolute; right: 12px; top: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--blue); background: var(--sheet); color: var(--blue); cursor: pointer; }
.rooms { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(3, minmax(90px, auto)); align-self: center; width: min(420px, 100%); justify-self: center; border: 7px solid var(--blue); }
.room { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 16px; text-decoration: none; font: 700 1.6rem/1 var(--display); text-transform: uppercase; color: var(--blue); }
:lang(ka) .room { text-transform: none; font: 700 1.05rem/1.3 var(--text); }
.room small { font: 400 .62rem var(--mono); color: var(--mid); }
.r1 { grid-row: 1 / 3; border-right: 5px solid var(--blue); border-bottom: 5px solid var(--blue); }
.r2 { border-bottom: 5px solid var(--blue); }
.r3 { border-bottom: 5px solid var(--blue); }
.r4 { border-right: 5px solid var(--blue); }
.room::after { content: ""; position: absolute; width: 26px; height: 26px; border: 1px dashed var(--blue); border-color: transparent var(--blue) var(--blue) transparent; border-radius: 0 0 26px 0; right: 14px; bottom: -3px; }
.r4::after, .r5::after { display: none; }
.room[aria-current] { color: var(--red); background: repeating-linear-gradient(45deg, rgba(210, 69, 43, .12) 0 2px, transparent 2px 9px); }
.titleblock { display: grid; grid-template-columns: 1fr auto auto; width: min(420px, 100%); justify-self: center; border: 1.5px solid var(--blue); font: 400 .72rem var(--mono); text-transform: uppercase; }
.titleblock span { padding: 8px 10px; border-right: 1.5px solid var(--blue); }
.titleblock span:last-child { border-right: 0; }
.marks--plan { justify-self: center; }
:lang(ka) .titleblock, :lang(ka) .sheet-tabs button, :lang(ka) .footer-name, :lang(ka) .logo > span:last-child { text-transform: none; }

/* 5 ─ Hero & start page */
.hero { border-bottom: 1.5px solid var(--blue); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(44px, 7vw, 96px) 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-pic { position: relative; margin: 0 30px 30px 0; border: 1.5px solid var(--blue); aspect-ratio: 4 / 3; background: var(--sheet); }
.hero-pic > img, .hero-pic > .plan { width: 100%; height: 100%; object-fit: cover; }
.dim { position: absolute; pointer-events: none; --l: linear-gradient(var(--red), var(--red)); }
.dim-x { left: 0; right: 0; bottom: -24px; height: 11px; background: var(--l) center / 100% 1px no-repeat, var(--l) left / 1.5px 100% no-repeat, var(--l) right / 1.5px 100% no-repeat; }
.dim-y { top: 0; bottom: 0; right: -24px; width: 11px; background: var(--l) center / 1px 100% no-repeat, var(--l) top / 100% 1.5px no-repeat, var(--l) bottom / 100% 1.5px no-repeat; }
.facts-band { border-bottom: 1.5px solid var(--blue); background: var(--sheet); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; }
.facts div { padding: 24px 20px; border-left: 1.5px solid var(--line); min-width: 0; }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); color: var(--red); }
.facts dd { margin: 6px 0 0; color: var(--mid); overflow-wrap: break-word; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.project { display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.project-open { position: relative; display: block; width: 100%; padding: 0; border: 1.5px solid var(--blue); background: var(--sheet); cursor: pointer; }
.project-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.project-pic > img, .project-pic > .plan { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-open:hover .project-pic > * { transform: scale(1.03); }
.project-no { position: absolute; left: -1.5px; top: -1.5px; padding: 4px 10px; background: var(--blue); color: #fff; font: 400 .72rem var(--mono); }
.project-body { padding: 14px 2px 0; }
.project-body h3 { margin-bottom: 6px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font: 400 .78rem var(--mono); color: var(--mid); }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.note { margin: 0; padding: 26px 24px; border: 1.5px solid #3c4d61; position: relative; }
.note::before { content: ""; position: absolute; left: -1.5px; top: -1.5px; width: 22px; height: 22px; border-left: 3px solid var(--red); border-top: 3px solid var(--red); }
.note blockquote { margin: 0 0 18px; font-size: 1.12rem; }
.note figcaption { display: grid; gap: 2px; }
.note figcaption span { font: 400 .74rem var(--mono); color: #a9b6c2; }
.cta { padding: clamp(48px, 7vw, 88px) 0; border-top: 1.5px solid var(--blue); }
.cta-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.cta-mark { display: grid; place-items: center; width: 84px; height: 84px; border: 1.5px solid var(--blue); border-radius: 50%; color: var(--red); }
.cta-mark .icon { width: 40px; height: 40px; }
.cta-inner h2 { margin-bottom: 6px; }
.cta-inner p { margin: 0; color: var(--mid); }

/* 6 ─ Projects & project sheet */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(16px, 3vw, 28px); }
.filter-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { width: 100%; margin-bottom: 10px; padding: 0; font-weight: 700; font-size: .98rem; }
.chips label { position: relative; }
.chips input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chips span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--blue); background: var(--sheet); font-weight: 700; font-size: .95rem; cursor: pointer; }
.chips input:checked + span { background: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.count { margin: 0; font: 400 .78rem var(--mono); color: var(--mid); }
.sheet { width: min(1000px, 100% - 24px); max-height: calc(100vh - 24px); padding: 26px; border: 1.5px solid var(--blue); background: var(--sheet); color: var(--blue); }
.sheet::backdrop { background: rgba(29, 42, 58, .7); }
.sheet-close { position: absolute; right: 12px; top: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--blue); background: var(--sheet); cursor: pointer; color: var(--blue); }
.sheet-tabs { display: flex; gap: 0; margin-bottom: 14px; }
.sheet-tabs button { padding: 6px 16px; border: 1.5px solid var(--blue); background: var(--sheet); color: var(--blue); font: 400 .78rem var(--mono); text-transform: uppercase; cursor: pointer; }
.sheet-tabs button + button { border-left: 0; }
.sheet-tabs button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4px 28px; }
.sheet-views { grid-row: 1 / 6; border: 1.5px solid var(--blue); aspect-ratio: 4 / 3; }
.sheet-photo, .sheet-plan { width: 100%; height: 100%; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body[data-view="photo"] .sheet-plan, .sheet-body[data-view="plan"] .sheet-photo { display: none; }
.sheet-type { margin: 0 0 6px; font: 400 .78rem var(--mono); text-transform: uppercase; color: var(--red); }
:lang(ka) .sheet-type { text-transform: none; }
.sheet-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 6px 0 0; border-top: 1.5px solid var(--blue); }
.sheet-data div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sheet-data dt { font: 400 .7rem var(--mono); text-transform: uppercase; color: var(--mid); }
:lang(ka) .sheet-data dt { text-transform: none; }
.sheet-data dd { margin: 2px 0 0; font-weight: 700; }
.sheet-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.sheet-nav span { font: 400 .82rem var(--mono); }
.sheet-nav .btn { margin-left: auto; }

/* 7 ─ Services, calculator & phases */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--blue); background: var(--sheet); }
.service { padding: 28px 26px; border-right: 1.5px solid var(--line); min-width: 0; }
.service:last-child { border-right: 0; }
.service-no { display: block; margin-bottom: 14px; font: 400 .8rem var(--mono); color: var(--red); }
.service h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.service > p { color: var(--mid); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks .icon { margin-top: 5px; color: var(--red); }
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.calc-inputs { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 14px; margin: 24px 0; }
.calc-inputs label { display: grid; gap: 6px; font-weight: 700; min-width: 0; }
.calc-inputs input, .calc-inputs select { width: 100%; min-width: 0; min-height: 50px; padding: 10px 14px; border: 1.5px solid #6d8196; background: #fff; color: var(--blue); font: 400 16px var(--text); }
.calc-inputs select, .field select { -webkit-appearance: none; appearance: none; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2452b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.phase-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.phase-picks legend { width: 100%; margin-bottom: 10px; padding: 0; font-weight: 700; }
.phase-picks label { position: relative; }
.phase-picks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.phase-picks span { display: inline-block; padding: 8px 14px; border: 1.5px solid #6d8196; cursor: pointer; }
.phase-picks input:checked + span { background: #fff; color: var(--blue); border-color: #fff; }
.phase-picks input:checked + span::before { content: "✓ "; color: var(--red); }
.phase-picks input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.stamp { position: sticky; top: 100px; padding: 24px; background: var(--sheet); color: var(--blue); border: 1.5px solid #fff; outline: 1.5px solid var(--sheet); outline-offset: 5px; }
.stamp dl { margin: 0 0 14px; }
.stamp dl div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.stamp dt { font: 400 .72rem var(--mono); text-transform: uppercase; color: var(--mid); }
:lang(ka) .stamp dt { text-transform: none; }
.stamp dd { margin: 4px 0 0; font: 700 1.7rem/1.1 var(--display); overflow-wrap: anywhere; }
:lang(ka) .stamp dd { font: 700 1.2rem/1.3 var(--text); }
.stamp-empty { color: var(--red); font-weight: 700; }
.stamp-note { font-size: .9rem; color: var(--mid); }
.stamp .btn { width: 100%; }
.phases { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--blue); }
.phases li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 220px); gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.phase-no { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--blue); border-radius: 50%; font: 400 .9rem var(--mono); }
.phases h3 { margin-bottom: 6px; }
.phases p { margin: 0; color: var(--mid); }
.phase-meta { display: grid; gap: 4px; text-align: right; }
.phase-meta b { color: var(--red); font: 700 1.3rem var(--display); }
.phase-meta span { font: 400 .78rem var(--mono); }
.phase-bar { position: absolute; left: 0; bottom: -1px; height: 3px; width: calc(var(--share) * 1%); background: var(--red); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 30px; }
.faq details { border-bottom: 1.5px solid var(--blue); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--mid); }

/* 8 ─ Office */
.office-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.office-pic { margin: 0; border: 1.5px solid var(--blue); aspect-ratio: 4 / 3; background: var(--sheet); }
.office-pic > img, .office-pic > .plan { width: 100%; height: 100%; object-fit: cover; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 30px 0 0; padding: 0; list-style: none; }
.team li { display: grid; gap: 4px; align-content: start; min-width: 0; }
.team-pic { display: grid; place-items: center; margin-bottom: 12px; aspect-ratio: 1; border: 1.5px solid var(--blue); background: var(--sheet); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; overflow: hidden; }
.team-pic > img { width: 100%; height: 100%; object-fit: cover; }
.team-mark { display: grid; place-items: center; width: 56%; aspect-ratio: 1; border: 1.5px solid var(--blue); border-radius: 50%; font: 700 3.4rem/1 var(--display); color: var(--red); background: linear-gradient(var(--blue), var(--blue)) center / 100% 1px no-repeat; }
.team b { font: 700 1.5rem/1 var(--display); text-transform: uppercase; }
:lang(ka) .team b { text-transform: none; font: 700 1.05rem var(--text); }
.team-role { color: var(--mid); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.principles article { padding-top: 16px; border-top: 1.5px solid var(--blue); }
.principles p { color: var(--mid); }

/* 9 ─ Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.panel { min-width: 0; padding: clamp(20px, 4vw, 36px); background: var(--sheet); border: 1.5px solid var(--blue); scroll-margin-top: 100px; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .98rem; padding: 0; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--blue); border-radius: 0; background: #fff; font: 400 16px/1.4 var(--text); color: var(--blue); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; }
.field textarea { min-height: 110px; resize: vertical; }
.field.chips { display: flex; }
.meets { display: flex; flex-wrap: wrap; gap: 8px; }
.meets legend { width: 100%; }
.meets label { position: relative; }
.meets input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; }
.meets span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--blue); background: #fff; cursor: pointer; font-weight: 700; }
.meets input:checked + span { background: var(--blue); color: #fff; }
.meets input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.estimate { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; padding: 14px 18px; border: 1.5px dashed var(--red); }
.estimate b { font: 700 1.8rem var(--display); color: var(--red); text-align: right; }
.estimate small { grid-column: 1 / -1; color: var(--mid); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.form-status { display: none; padding: 12px 16px; font-weight: 700; border: 1.5px solid var(--blue); }
.form-status.is-shown { display: block; }
.form-status.ok { background: #e3eedc; }
.form-status.info { background: #fdf0d8; }
.form-status.error { background: #fbe0dc; }
.side { display: grid; gap: 20px; min-width: 0; }
.side-block { padding: 24px; background: var(--blue); color: #e6ebef; }
.side-block h2 { font-size: 1.8rem; }
.side-block .muted { display: flex; gap: 8px; align-items: flex-start; color: #a9b6c2; margin: 12px 0 0; }
.side-block .muted .icon { margin-top: 4px; color: #f08a74; }
.side-block .more { border-color: #f08a74; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #34465b; }
.hours li span:last-child { font: 400 .86rem var(--mono); white-space: nowrap; }
.legal { max-width: 820px; }
.legal h2 { font-size: 2rem; margin-top: 1.2em; }

/* 10 ─ Footer */
.footer { background: var(--blue); color: #c4ced8; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.footer-name { font: 700 3rem/1 var(--display); text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer .footer-h { font: 400 .74rem/1.4 var(--mono); text-transform: uppercase; color: #f08a74; margin-bottom: 12px; }
:lang(ka) .footer .footer-h { text-transform: none; font: 700 1rem var(--text); }
.footer a { color: #fff; }
.plain { list-style: none; margin: 0; padding: 0; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid #3c4d61; }
.socials a:hover { border-color: #f08a74; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid #34465b; font-size: .9rem; }

/* 11 ─ Smaller screens */
@media (max-width: 1100px) {
    .nav a { padding: 6px 10px; font-size: 1.1rem; }
}
@media (max-width: 980px) {
    .nav { display: none; }
    .plan-btn { display: inline-flex; }
    .marks--top { margin-left: auto; }
    .marks--top + .plan-btn { margin-left: 0; }
    .hero-grid, .calc, .office-grid, .faq-wrap, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .sheet-body { grid-template-columns: minmax(0, 1fr); }
    .sheet-views { grid-row: auto; }
    .projects, .notes, .team, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .services { grid-template-columns: minmax(0, 1fr); }
    .service { border-right: 0; border-bottom: 1.5px solid var(--line); }
    .service:last-child { border-bottom: 0; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
    .stamp { position: static; }
    .cta-inner { grid-template-columns: minmax(0, 1fr); justify-items: start; }
    .phases li { grid-template-columns: 56px minmax(0, 1fr); }
    .phase-meta { grid-column: 2; text-align: left; }
}
@media (max-width: 640px) {
    body { font-size: 17px; }
    .marks--top { display: none; }
    .plan-btn, .marks--top + .plan-btn { margin-left: auto; }
    .header-inner { min-height: 64px; gap: 12px; }
    .logo > span:last-child { font-size: 1.6rem; }
    .projects, .notes, .team, .principles, .footer-grid, .form, .calc-inputs, .sheet-data { grid-template-columns: minmax(0, 1fr); }
    .hero-pic { margin-right: 26px; }
    .sheet { padding: 18px; }
    .sheet-nav .btn { margin-left: 0; width: 100%; }
    .phases li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
    .phase-no { width: 38px; height: 38px; }
    .facts dt { font-size: 2.4rem; }
}
@media (max-width: 380px) {
    .logo small { display: none; }
    .plan-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .plan-btn { padding: 8px 12px; }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .facts div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
    .rooms { grid-template-columns: 1fr; }
    .r1 { grid-row: auto; border-right: 0; }
    .r4 { border-right: 0; border-bottom: 5px solid var(--blue); }
}
