/* Metro Quadrado — estate agency demo.
   Identity: the architect's drawing. White paper, blueprint navy ink, pale drawing-paper blue fields,
   amber as the one marker colour. Dimension lines (.dim) are the motif; the listing card (.sheet) reads as a spec sheet. */
:root {
  --ink: #12284B;
  --ink-2: #1E3E70;
  --paper: #E9F0F7;
  --mark: #F2B441;
  --grey: #6B7785;
  --grey-d: #55616F;
  --line: #C9D5E3;
  --rule: #C9D5E3;
  --white: #FFFFFF;
  --fld: var(--paper);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
*, *::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 1rem/1.55 var(--sans); overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.3vw, 3.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.7rem); line-height: 1.08; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.icon { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }
.fine { font-size: .85rem; line-height: 1.5; color: var(--grey-d); }

/* studio demo bar (same rules as the clinic demo) */
.demobar { background: #000; color: #fff; font: 500 .86rem/1.3 system-ui, sans-serif; }
.demobar__in { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding-block: 7px; }
.demobar a { color: #fff; }
.demobar__back:hover { text-decoration: underline; }
.demobar__txt { flex: 1 1 14em; opacity: .75; }
.demobar__cta { padding: 6px 14px; border-radius: 999px; background: #17D878; color: #000 !important; font-weight: 700; white-space: nowrap; }
html.embedded .demobar { display: none; }

/* dimension line: end ticks are the borders, the two strokes are the pseudo-elements, the figure sits between them */
.dim { display: flex; align-items: center; gap: 10px; height: 11px; border-inline: 1px solid currentColor; color: var(--grey); font: 500 .8rem/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dim::before, .dim::after { content: ""; flex: 1 1 0; min-width: 8px; height: 1px; background: currentColor; }
.dim > span { color: var(--ink); }
.dim--v { flex-direction: column; width: 11px; height: auto; border-inline: 0; border-block: 1px solid currentColor; }
.dim--v::before, .dim--v::after { width: 1px; min-width: 0; height: auto; min-height: 8px; }
.dim--v > span { writing-mode: vertical-rl; transform: rotate(180deg); }
.dim--photo { gap: 0; color: #fff; filter: drop-shadow(0 0 1.5px rgba(18, 40, 75, .9)); }
.dim--photo > span { padding: 5px 9px; background: #fff; color: var(--ink); font-weight: 600; }
.dim--photo.dim--v > span { padding: 9px 5px; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 22px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: #fff; font: 600 .98rem/1.2 var(--sans); text-align: center; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.btn:hover { background: var(--ink-2); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.btn--white { border-color: #fff; background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--paper); }
.more { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.more:hover { text-decoration-thickness: 2px; }
.textbtn { min-height: 44px; padding: 0 4px; border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* header */
.top { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 400 1.55rem/1 var(--serif); white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: .95rem; font-weight: 500; }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 3px; background: var(--mark); }
.menu .menu__tel { display: none; }
.top__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lang { display: inline-flex; border: 1px solid var(--line); }
.lang a { display: grid; place-items: center; min-width: 40px; min-height: 40px; font-size: .82rem; font-weight: 600; color: var(--grey-d); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.burger { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: #fff; cursor: pointer; }
.burger .icon { width: 22px; height: 22px; }

/* home: title band, photograph, search */
.lead { padding-block: clamp(26px, 3.6vw, 44px) clamp(20px, 2.6vw, 30px); }
.lead h1 { font-size: clamp(2.3rem, 4.1vw, 3.3rem); }
.lead__in { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); align-items: end; gap: 16px clamp(24px, 5vw, 72px); }
.lead__in p { max-width: 30em; padding-bottom: 6px; color: var(--grey-d); }
.hero { position: relative; }
.hero__ph { position: relative; height: clamp(230px, 30vw, 400px); overflow: hidden; background: var(--paper); }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__marks { position: absolute; inset: 0; }
.hero__dx { position: absolute; top: 26px; left: clamp(18px, 4vw, 40px); width: 44%; }
.hero__dy { position: absolute; top: 26px; bottom: 33%; right: clamp(18px, 4vw, 40px); }
@keyframes dim-x { from { transform: scaleX(0); } }
@keyframes dim-y { from { transform: scaleY(0); } }
@keyframes dim-fig { from { opacity: 0; } }
.hero .dim::before { transform-origin: right center; animation: dim-x .9s .3s cubic-bezier(.2, .7, .2, 1) both; }
.hero .dim::after { transform-origin: left center; animation: dim-x .9s .3s cubic-bezier(.2, .7, .2, 1) both; }
.hero .dim > span { animation: dim-fig .4s .15s ease both; }
.hero .dim--v::before { transform-origin: center bottom; animation-name: dim-y; animation-delay: .6s; }
.hero .dim--v::after { transform-origin: center top; animation-name: dim-y; animation-delay: .6s; }
.hero .dim--v > span { animation-delay: .45s; }
html.embedded .hero .dim::before, html.embedded .hero .dim::after, html.embedded .hero .dim > span { animation: none; }

.find { position: relative; z-index: 2; margin-top: -88px; }
.find__tabs { display: flex; }
.find__tabs label { position: relative; }
.find__tabs input, .chips input, .seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.find__tabs span { display: grid; place-items: center; min-width: 124px; min-height: 48px; padding: 0 22px; border-top: 4px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.find__tabs input:checked + span { border-top-color: var(--mark); background: #fff; color: var(--ink); }
.find__tabs input:focus-visible + span, .chips input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.find__tabs input:focus-visible + span { outline-color: var(--mark); outline-offset: -6px; }
.find__body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: end; gap: 16px 20px; padding: 18px 20px 20px; border: 1px solid var(--ink); background: #fff; }
.find__body .btn { min-width: 12.5em; }

/* form fields */
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.field > label, .chips__t { display: block; font-size: .82rem; font-weight: 600; }
input[type="text"], input[type="tel"], input[type="number"], input[type="date"], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 2px 2px 0 0; background-color: var(--fld); }
textarea { min-height: 132px; resize: vertical; }
select { padding-right: 38px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312284B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; cursor: pointer; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-bottom: 2px solid #B3261E; }
.field__err { font-size: .85rem; font-weight: 500; color: #B3261E; }
.chips { display: grid; gap: 6px; min-width: 0; }
.chips__row { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label, .seg label { position: relative; }
.chips label span { display: grid; place-items: center; min-width: 46px; min-height: 48px; padding: 0 11px; border-bottom: 1px solid var(--ink); background: var(--fld); font-size: .93rem; font-weight: 500; }
.chips input:checked + span, .seg input:checked + span { background: var(--ink); color: #fff; box-shadow: inset 0 -4px 0 var(--mark); }
.seg { display: flex; }
.seg label span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-bottom: 1px solid var(--ink); background: var(--fld); font-weight: 600; white-space: nowrap; }
.seg small { font-size: .82rem; font-weight: 500; opacity: .7; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel, .ph--paper, .sec--paper { --fld: #fff; }
.panel { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--paper); }
.panel h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.panel .btn { justify-self: start; }

/* sections */
.sec { padding-block: clamp(56px, 7.5vw, 100px); }
.sec--paper { background: var(--paper); --rule: #B9C8DA; }
.sec--ink { background: var(--ink); color: #fff; }
.sec--ink :focus-visible { outline-color: var(--mark); }
.sec--ink .more { color: #fff; }
.sec--list { padding-top: 30px; }
.sec--tight { padding-top: 8px; }
.sec--ask { border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.head--text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(24px, 5vw, 72px); }
.head--text p { max-width: 36em; color: var(--grey-d); }
.sec--ink .head--text p { color: rgba(255, 255, 255, .8); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }

/* listing card: a spec sheet */
.sheet { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: #fff; }
.sheet__ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.sheet__ph img { width: 100%; height: 100%; object-fit: cover; }
.sheet__tag { position: absolute; top: 14px; left: 0; padding: 6px 11px; background: #fff; font-size: .8rem; font-weight: 600; }
.sheet__dim { margin: 12px 16px 0; }
.sheet__body { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 16px; }
.sheet__price { font: 400 2.2rem/1 var(--serif); letter-spacing: -.01em; }
.sheet__price small { margin-left: 3px; font: 500 .9rem/1 var(--sans); letter-spacing: 0; color: var(--grey-d); }
.sheet__title { margin-top: 10px; }
.sheet__note { margin-top: 3px; font-size: .92rem; color: var(--grey-d); }
.sheet__new { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .82rem; font-weight: 600; }
.sheet__new::before { content: ""; width: 9px; height: 9px; background: var(--mark); }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--ink); font-size: .9rem; }
.spec > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.spec > div:nth-child(odd):not(.spec__wide) { padding-right: 12px; border-right: 1px solid var(--rule); }
.spec > div:nth-child(even):not(.spec__wide) { padding-left: 12px; }
.spec > .spec__wide { grid-column: 1 / -1; }
.spec dt { color: var(--grey-d); }
.spec dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.spec.spec--one { grid-template-columns: minmax(0, 1fr); }
.spec.spec--one > div:nth-child(n) { padding-inline: 0; border-right: 0; }
.sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.sheet__ref { font-size: .88rem; color: var(--grey-d); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* energy class scale */
.en { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.en i { display: block; width: 9px; height: 6px; }
.en b { display: grid; place-items: center; min-width: 34px; height: 22px; padding: 0 11px 0 7px; font: 700 .8rem/1 var(--sans); color: var(--ink); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
.en--ap { background: #008D46; }
.en--a { background: #2FAC47; }
.en--b { background: #8CC63F; }
.en--bm { background: #C9DB2D; }
.en--c { background: #FFE600; }
.en--d { background: #FBB03B; }
.en--e { background: #F26F21; }
.en--f { background: #E5252A; }
.en b.en--ap, .en b.en--f { color: #fff; }

/* neighbourhood price table */
.zones { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zones th, .zones td { padding: 15px 24px 15px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.zones th:last-child, .zones td:last-child { padding-right: 0; }
.zones thead th { padding-block: 0 10px; border-bottom-color: var(--ink); font-size: .82rem; font-weight: 600; color: var(--grey-d); vertical-align: bottom; }
.zones tbody th { width: 24%; font: 400 1.5rem/1.15 var(--serif); }
.zones tbody a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule); }
.zones tbody a:hover { text-decoration-color: var(--ink); }
.zones td:nth-child(2) { width: 30%; }
.zones td:nth-child(3) { width: 24%; }
.zones td.zones__x { white-space: nowrap; }
.zbar { display: grid; grid-template-columns: 4.9em minmax(0, 1fr); align-items: center; gap: 14px; font-weight: 600; }
.zbar--s { grid-template-columns: 3.9em minmax(0, 1fr); }
.zbar i { position: relative; display: block; height: 1px; background: rgba(18, 40, 75, .28); }
.zbar i::after { content: ""; position: absolute; top: -2px; left: 0; width: var(--w); height: 5px; background: var(--ink); }
.zones + .fine { margin-top: 16px; }

/* selling sequence as a chain of dimensions */
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: clamp(28px, 4vw, 44px); }
.chain li { min-width: 0; }
.chain .dim { color: rgba(255, 255, 255, .6); }
.chain .dim > span { font-size: .86rem; color: #fff; }
.chain li + li .dim { border-left: 0; }
.chain h3 { margin: 22px 20px 8px 0; font: 400 1.45rem/1.15 var(--serif); }
.chain h3 span { opacity: .6; }
.chain p { margin-right: 20px; font-size: .93rem; color: rgba(255, 255, 255, .8); }

/* home: team and office */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; gap: 32px clamp(32px, 6vw, 80px); }
.duo__p { max-width: 34em; margin-block: 16px 20px; color: var(--grey-d); }
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.crew li { border-top: 1px solid var(--line); }
.crew a { display: flex; align-items: center; gap: 14px; padding-block: 14px; }
.crew img { width: 72px; height: 90px; flex: none; object-fit: cover; }
.crew b { display: block; font-weight: 600; line-height: 1.25; }
.crew small { display: block; margin-top: 3px; font-size: .86rem; line-height: 1.35; color: var(--grey-d); }
.crew a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.office { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: 32px clamp(32px, 6vw, 80px); }
.office__ph { aspect-ratio: 5 / 6; overflow: hidden; }
.office__ph img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin-bottom: 26px; border-bottom: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 20px; padding-block: 14px; border-top: 1px solid var(--rule); }
.facts dt { font-size: .86rem; font-weight: 600; color: var(--grey-d); padding-top: 2px; }
.facts a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.facts .fine { margin-top: 6px; }
.hours { border-collapse: collapse; }
.hours th { padding: 1px 22px 1px 0; font-weight: 400; text-align: left; }
.hours td { padding: 1px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pin { display: flex; align-items: flex-start; gap: 8px; }
.pin .icon { margin-top: 3px; color: var(--ink); fill: var(--mark); }

/* inner page heads */
.ph { padding-block: clamp(34px, 5vw, 64px) clamp(30px, 4.4vw, 56px); }
.ph--paper { background: var(--paper); }
.ph__p { max-width: 40em; margin-top: 16px; font-size: 1.06rem; color: var(--grey-d); }

/* listings page */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; margin-top: 28px; }
.filters > .field { flex: 1 1 150px; }
.filters > .seg, .filters > .chips { flex: 0 0 auto; }
.resbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-bottom: 26px; }
.resbar__dim { flex: 1 1 280px; height: 13px; font-size: 1rem; }
.resbar__dim > span { font-weight: 600; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort label { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.sort select { width: auto; min-width: 190px; }
.empty { max-width: 760px; padding: clamp(26px, 5vw, 52px); border: 1px solid var(--ink); }
.empty p { margin-block: 14px 24px; color: var(--grey-d); }
.list__note { margin-top: 32px; }

/* viewing dialog */
.visit { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--ink); border-radius: 2px; background: #fff; color: var(--ink); }
.visit::backdrop { background: rgba(18, 40, 75, .55); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.visit[open] { animation: pop .2s ease-out; }
.visit__in { display: grid; gap: 16px; padding: 22px 24px 24px; }
.visit__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.visit__top h2 { font-size: 1.9rem; }
.visit__x { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer; }
.visit__prop { padding: 12px 14px; border-left: 4px solid var(--mark); background: var(--paper); font-weight: 600; line-height: 1.4; }

/* selling page */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 36px clamp(32px, 5vw, 64px); }
.ticks { margin-top: 26px; border-bottom: 1px solid var(--line); }
.ticks li { display: flex; align-items: baseline; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); font-weight: 500; }
.ticks li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--mark); }
.split__ph { margin-top: 30px; aspect-ratio: 12 / 7; overflow: hidden; }
.split__ph img { width: 100%; height: 100%; object-fit: cover; }
.est { display: grid; gap: 10px; padding: 16px 18px 18px; border: 1px solid var(--ink); background: #fff; }
.est__t { font-size: .82rem; font-weight: 600; }
.est__v { font: 400 clamp(1.7rem, 3vw, 2.2rem)/1.05 var(--serif); }
.est__v:empty { display: none; }
.steps { border-bottom: 1px solid rgba(255, 255, 255, .28); }
.steps li { display: grid; grid-template-columns: 3rem minmax(0, 15rem) minmax(0, 1fr) 10.5rem; align-items: baseline; gap: 6px 28px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .28); }
.steps__n { font: 400 2rem/1 var(--serif); opacity: .6; }
.steps h3 { font: 400 1.5rem/1.15 var(--serif); }
.steps p { color: rgba(255, 255, 255, .82); }
.steps__t { font: 400 1.5rem/1.15 var(--serif); text-align: right; }
.steps__sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-top: 22px; }
.steps__sum b { font: 400 clamp(1.9rem, 3.3vw, 2.7rem)/1 var(--serif); }
.com { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 36px clamp(28px, 4vw, 56px); }
.com__rate { margin-block: 20px 14px; font: 400 clamp(3.2rem, 6vw, 4.6rem)/1 var(--serif); letter-spacing: -.02em; }
.com p + .fine { margin-top: 14px; }
.com h3 { padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.lines li { display: flex; align-items: flex-start; gap: 10px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.lines .icon { margin-top: 3px; }
.lines--out li { color: var(--grey-d); }
.docs { width: 100%; border-collapse: collapse; }
.docs th, .docs td { padding: 14px 24px 14px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.docs thead th { padding-top: 0; border-bottom-color: var(--ink); font-size: .82rem; font-weight: 600; color: var(--grey-d); }
.docs tbody th { width: 34%; font-weight: 600; }
.docs td:last-child { width: 26%; padding-right: 0; }
.docs + .fine { max-width: 52em; margin-top: 16px; }
.ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.ask p { max-width: 34em; margin-top: 10px; color: var(--grey-d); }

/* team page */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; gap: 36px clamp(32px, 6vw, 80px); }
.about__txt p { max-width: 38em; margin-top: 18px; font-size: 1.06rem; color: var(--grey-d); }
.about__ph { border: 1px solid var(--line); }
.about__ph img { width: 100%; }
.spec--facts { margin-top: 22px; }
.spec--facts dd { white-space: nowrap; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); }
.person { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: start; gap: 24px; padding-block: 30px; border-top: 1px solid var(--ink); scroll-margin-top: 16px; }
.person__ph { aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
.person__ph img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font: 400 1.75rem/1.1 var(--serif); }
.person__role { margin-block: 4px 12px; font-size: .9rem; font-weight: 600; }
.person__role + p { font-size: .96rem; color: var(--grey-d); }
.person .spec { margin-bottom: 18px; }
.person .spec dd { max-width: 62%; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.ways li { padding-top: 18px; border-top: 1px solid var(--ink); }
.ways h3 { margin-bottom: 10px; font: 400 1.55rem/1.15 var(--serif); }
.ways p { color: var(--grey-d); }

/* contact page */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 36px clamp(32px, 5vw, 64px); }
.contact .facts { margin-bottom: 0; }
.get { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; margin-bottom: 28px; }
.get li { display: flex; align-items: flex-start; gap: 12px; }
.get .icon { width: 22px; height: 22px; margin-top: 2px; }
.get b { display: block; }
.get span { color: var(--grey-d); }
.map { display: block; width: 100%; height: clamp(300px, 40vw, 440px); border: 1px solid var(--ink); background: #fff; }

/* footer */
.foot { padding-top: clamp(44px, 6vw, 72px); background: var(--ink); color: rgba(255, 255, 255, .8); font-size: .94rem; }
.foot :focus-visible { outline-color: var(--mark); }
.foot .brand { color: #fff; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 32px clamp(24px, 4vw, 56px); padding-bottom: 40px; }
.foot__brand p { max-width: 26em; margin-top: 16px; }
.foot__brand .foot__ami { color: #fff; font-weight: 600; }
.foot h2 { margin-bottom: 12px; font: 600 .9rem/1.3 var(--sans); letter-spacing: 0; color: #fff; }
.foot li { padding-block: 4px; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot__hours li { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.foot__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .22); }
.foot__bot ul { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot__bot li { padding: 0; }
.foot__bot a { display: inline-block; padding-block: 2px; }
.foot__demo { padding-bottom: 22px; font-size: .84rem; color: rgba(255, 255, 255, .62); }

.wa { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #fff; border-radius: 2px; background: var(--ink); color: #fff; }
.wa:hover { background: var(--ink-2); }
.wa .icon { width: 24px; height: 24px; }
html.embedded .wa { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1020px) {
  .demobar__txt { display: none; }
  .demobar__cta { margin-left: auto; }
  .top__tel { display: none; }
  .top__in { gap: 12px; }
  .menu { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px clamp(18px, 4vw, 40px) 14px; border-bottom: 1px solid var(--ink); background: #fff; }
  .menu.is-open { display: flex; }
  .menu a { min-height: 50px; padding: 0 2px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .menu a[aria-current="page"]::after { top: 14px; bottom: 14px; left: auto; right: 2px; width: 4px; height: auto; }
  .menu .menu__tel { display: inline-flex; gap: 10px; border-bottom: 0; font-weight: 600; }
  .lang { margin-left: auto; }
  .lang a { min-width: 44px; min-height: 44px; }
  .burger { display: grid; }
  .find__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .find__body .chips, .find__body .btn { grid-column: 1 / -1; }
  .find__body .field:first-child { order: -2; }
  .find__body .field:nth-child(3) { order: -1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .chain li + li .dim { border-left: 1px solid currentColor; }
  .chain h3 { margin-top: 16px; }
  .duo, .split, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .com { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .com > div:first-child { grid-column: 1 / -1; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .split__ph { display: none; }
  .steps li { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
  .steps p { grid-column: 2 / -1; grid-row: 2; }
  .steps__t { font-size: 1.2rem; }
  .foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lead__in, .head--text, .office { grid-template-columns: minmax(0, 1fr); }
  .office__ph { aspect-ratio: 4 / 3; }
  .hero__dy { display: none; }
  .hero__dx { top: 18px; width: 62%; }
  .find { margin-top: -48px; }
  .find__tabs label { flex: 1; }
  .find__tabs span { min-width: 0; }
  .find__body { padding: 16px; }
  .zones__x { display: none; }
  .zones th, .zones td { padding: 13px 14px 13px 0; }
  .zones tbody th { width: 34%; font-size: 1.22rem; }
  .zones td:nth-child(2), .zones td:nth-child(3) { width: 33%; }
  .zones td:nth-child(3) { padding-right: 0; }
  .zbar, .zbar--s { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .crew { grid-template-columns: minmax(0, 1fr); }
  .ways, .get { grid-template-columns: minmax(0, 1fr); }
  .filters > .seg, .filters > .chips { flex: 1 1 100%; }
  .seg label { flex: 1; }
  .sort { flex: 1 1 100%; }
  .sort select { flex: 1; min-width: 0; }
  .docs thead { display: none; }
  .docs tr { display: block; padding-block: 14px; border-bottom: 1px solid var(--rule); }
  .docs th, .docs td, .docs tbody th, .docs td:last-child { display: block; width: auto; padding: 2px 0; border: 0; }
  .docs td::before { content: attr(data-l) ": "; font-weight: 600; }
  .steps li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .steps__t { grid-column: 2; grid-row: 3; text-align: left; opacity: .8; }
}
@media (max-width: 600px) {
  .brand { font-size: 1.32rem; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .grid, .com, .foot__top, .row2 { grid-template-columns: minmax(0, 1fr); }
  .find__body { grid-template-columns: minmax(0, 1fr); }
  .chips__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
  .chips label span { min-width: 0; padding: 0 3px; font-size: .88rem; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
  .person { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .person .spec dd { max-width: 68%; }
  .panel .btn, .empty .btn, .ask .btn, .visit .btn { width: 100%; }
  .wa { right: 12px; bottom: 12px; }
}

/* ---- узкие телефоны: длинное слово переносится, а не вылезает из блока ---- */
h1, h2, h3, h4, p, li, dt, dd, td, th, label, b, strong, small, a { overflow-wrap: break-word; }

.chips__row label { flex: 0 0 auto; }
@media (max-width: 360px) {
  .chips label span { min-width: 44px; padding: 0 9px; }
}

/* ---- телефоны: по ссылкам и кнопкам легче попасть пальцем ---- */
@media (max-width: 700px) {
  .demobar__back, .demobar__cta { display: inline-flex; align-items: center; min-height: 40px; }
  footer a:not([class*="btn"]):not([class*="logo"]):not([class*="brand"]):not([class*="marca"]) { display: inline-block; padding-block: 7px; }
  .link, .tl, .more, .tlink, .lnk, .band__link { display: inline-block; padding-block: 9px; }
}

@media (max-width: 380px) {
  .chips__row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
