/* SAVLAT Family Residence — styles
   Brandbook: To'q yashil #0E2820, Oltin #ECCF87; headings Forum (Cyrillic) / Cinzel (Latin), text Jost

   SCALE. Sizes are in rem (1rem = 16 design px), so the root font size is the scale of the whole
   layout — see "overall scale" below.
   · Narrower than 1000px (phones, portrait tablets): the plain rules apply.
   · Computers: every "desktop" block re-proportions its section for a laptop window of about
     1440×690. Text stays near 15px; headings, paddings and block heights are about a quarter smaller
     than the plain rules would give, so that a heading and its block fit one screen. The upper limits
     inside clamp() in the plain rules are the former desktop sizes and no longer take effect.
   Left in px on purpose: breakpoints, hairlines (2px and less), pill radii, text of 11px and less,
   form inputs (16px, otherwise iOS zooms in on focus). The phone mock-up (.phone, .ui-*) is drawn in
   its own unit --pu: 1px on phones, a share of the root size on computers. */

:root {
  --green: #0E2820;
  --green-2: #14342A;
  --green-3: #1C4336;
  --gold: #ECCF87;
  --gold-2: #F4DDA6;
  --gold-ink: #7F6529;
  --cream: #F3EFE5;
  --paper: #FBF9F4;
  --plan: #F7F2EA;
  --ink: #10261F;
  --ink-2: #4B5952;
  --ink-3: #626D67;
  --line: rgba(14, 40, 32, .12);
  --line-gold: rgba(236, 207, 135, .26);
  --r-xl: 1.75rem;
  --r-lg: 1.375rem;
  --r-md: 1rem;
  --gut: 1rem;
  --max: 85rem;
  --font-d: "Forum", "Times New Roman", serif;
  --font-b: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-l: "Cinzel", "Forum", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gut: 1.75rem; } }
@media (min-width: 1200px) { :root { --gut: 2.5rem; } }
@media (min-width: 1000px) { :root { --r-xl: 1.5rem; --r-lg: 1.125rem; --r-md: .875rem; } } /* desktop */

/* ---------- overall scale ----------
   The root font size is the scale of everything.
   · narrower than 1000px: 100%;
   · computers: it grows with the window width — 14px up to 1160px wide, 15px at 1440px, 16.7px at
     1920px, 18px from 2280px — so a laptop and a large monitor show the same composition;
   · tablets held in landscape (touch is the main input): 100%, buttons there must stay finger-sized.
   --k multiplies all of it and is 1 by default; the address ?m=90 … ?m=110 sets it for a comparison
   on one's own screen (script in index.html). To change the scale for everyone, edit clamp() here. */
html { font-size: calc(100% * var(--k, 1)); }
@media (min-width: 1000px) { html { font-size: calc(clamp(87.5%, 61.25% + .36vw, 112.5%) * var(--k, 1)); } }
@media (min-width: 1000px) and (pointer: coarse) { html { font-size: calc(100% * var(--k, 1)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.75rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-b);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
sup { font-size: .6em; line-height: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: .1875rem; }
::selection { background: var(--gold); color: var(--green); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- type ---------- */
.h2 { font: 400 clamp(2rem, 3.7vw, 3.375rem)/1.06 var(--font-d); letter-spacing: -.012em; color: var(--green); text-wrap: balance; }
.h3 { font: 400 clamp(1.625rem, 2.6vw, 2.375rem)/1.1 var(--font-d); letter-spacing: -.006em; color: var(--green); text-wrap: balance; }
.eyebrow { font: 500 max(11px, .75rem)/1.3 var(--font-b); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .875rem; }
.eyebrow--gold { color: var(--gold); }
.prose { color: var(--ink-2); font-size: 1.03125rem; line-height: 1.62; }
.prose p + p { margin-top: .9em; }
.prose b { color: var(--ink); font-weight: 500; }
.prose--light { color: rgba(243, 239, 229, .78); }
.prose--light b { color: var(--cream); }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.55; color: var(--ink-2); margin-top: 1rem; max-width: 46ch; }
.lead--light { color: rgba(243, 239, 229, .8); max-width: 52ch; }
.note { font-size: .8125rem; line-height: 1.5; color: var(--ink-3); margin-top: 1.25rem; max-width: 96ch; }
@media (min-width: 1000px) { /* desktop */
  .h2 { font-size: 2.5rem; line-height: 1.08; }
  .h3 { font-size: 1.75rem; line-height: 1.12; }
  .eyebrow { margin-bottom: .75rem; }
  .prose { font-size: 1rem; line-height: 1.6; }
  .lead { font-size: 1.0625rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  height: 3.25rem; padding: 0 1.625rem; border-radius: 999px;
  font: 500 .9375rem/1 var(--font-b); letter-spacing: .01em; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--green); color: var(--gold); }
.btn--dark:hover { background: var(--green-3); }
.btn--gold { background: var(--gold); color: var(--green); }
.btn--gold:hover { background: var(--gold-2); }
.btn--glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .38); -webkit-backdrop-filter: blur(.625rem); backdrop-filter: blur(.625rem); }
.btn--glass:hover { background: rgba(255, 255, 255, .26); }
.btn--glassdark { background: rgba(255, 255, 255, .1); color: var(--cream); border: 1px solid rgba(255, 255, 255, .2); }
.btn--lg { height: 3.625rem; padding: 0 1.875rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.round {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--paper); color: var(--green);
  transition: background-color .25s, color .25s, border-color .25s;
}
.round:hover { background: var(--gold); }
.round--line { background: transparent; border: 1px solid var(--line); }
.round--line:hover { background: var(--green); color: var(--gold); border-color: var(--green); }
.round[disabled] { opacity: .35; pointer-events: none; }
@media (min-width: 1000px) { /* desktop */
  .btn { height: 3rem; padding: 0 1.5rem; }
  .btn--lg { height: 3.25rem; padding: 0 1.75rem; font-size: .9375rem; }
  .round { width: 2.875rem; height: 2.875rem; }
}

/* ---------- header ---------- */
.header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding: .625rem var(--gut) 0; pointer-events: none; }
.header__bar {
  pointer-events: auto; max-width: var(--max); margin-inline: auto; height: 4rem;
  display: flex; align-items: center; gap: 1.5rem; padding: 0 .5rem 0 1.25rem;
  background: rgba(251, 249, 244, .84);
  -webkit-backdrop-filter: blur(1rem) saturate(1.4); backdrop-filter: blur(1rem) saturate(1.4);
  border: 1px solid rgba(14, 40, 32, .07); border-radius: 999px;
  box-shadow: 0 .625rem 2.125rem -1.25rem rgba(14, 40, 32, .4);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--green); flex: none; }
.brand svg { fill: currentColor; display: block; }
.brand__emblem { height: 1.875rem; width: 2.15625rem; }
.brand__word { height: .875rem; width: 6.54375rem; }
.brand--gold { color: var(--gold); }
.brand--lg .brand__emblem { height: 2.875rem; width: 3.30625rem; }
.brand--lg .brand__word { height: 1.3125rem; width: 9.81875rem; }
.nav { display: none; gap: 1.375rem; margin-inline: auto; }
.nav a { position: relative; font-size: .90625rem; color: var(--ink-2); padding: .5rem 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold-ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--green); }
.nav a.is-active::after { transform: scaleX(1); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.tel { display: inline-flex; align-items: center; gap: .625rem; font-weight: 500; font-size: 1rem; color: var(--green); white-space: nowrap; }
.tel__ic { width: 2.875rem; height: 2.875rem; border-radius: 50%; background: rgba(14, 40, 32, .06); display: grid; place-items: center; transition: background-color .25s; }
.tel:hover .tel__ic { background: var(--gold); }
.tel__num { display: none; padding-right: .5rem; }
.header__cta { display: none; height: 3rem; padding: 0 1.375rem; }
.burger { width: 3rem; height: 3rem; border-radius: 50%; background: var(--green); color: var(--gold); display: grid; place-items: center; }
@media (min-width: 560px) { .tel__num { display: inline; } }
@media (min-width: 860px) { .header__cta { display: inline-flex; } }
@media (min-width: 1120px) {
  .nav { display: flex; }
  .burger { display: none; }
  .tel__num { display: none; }
}
@media (min-width: 1300px) { .tel__num { display: inline; } .nav { gap: 1.625rem; } }
@media (min-width: 1000px) { /* desktop: the bar ends 4.125rem from the top; a section jumped to from the menu starts 1.75rem below it */
  html { scroll-padding-top: 4.625rem; }
  .header__bar { height: 3.5rem; padding: 0 .4375rem 0 1.125rem; }
  .brand__emblem { height: 1.75rem; width: 2.0125rem; }
  .brand__word { height: .8125rem; width: 6.0764rem; }
  .tel { font-size: .9375rem; }
  .tel__ic { width: 2.625rem; height: 2.625rem; }
  .header__cta { height: 2.625rem; padding: 0 1.25rem; font-size: .875rem; }
  .burger { width: 2.625rem; height: 2.625rem; }
}

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 60; background: rgba(8, 22, 17, .5); -webkit-backdrop-filter: blur(.375rem); backdrop-filter: blur(.375rem); opacity: 0; transition: opacity .3s; }
.mnav.is-open { opacity: 1; }
.mnav__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(26.25rem, 100%);
  background: var(--green); color: var(--cream); padding: 1.125rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.mnav.is-open .mnav__panel { transform: none; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.125rem; }
.mnav__close { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: var(--gold); }
.mnav__links a { display: block; font: 400 1.5625rem/1.2 var(--font-d); padding: .8125rem 0; border-bottom: 1px solid var(--line-gold); }
.mnav__foot { margin-top: auto; padding-top: 1.625rem; display: grid; gap: .875rem; }
.mnav__tel { font: 400 1.75rem/1 var(--font-d); color: var(--gold); }

/* ---------- intro + hero ---------- */
.intro { padding-top: 6.375rem; }
.intro__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.375rem 3rem; margin-bottom: 1.625rem; }
.intro__name .eyebrow { margin-bottom: 1.125rem; }
.intro__h1 { display: flex; flex-direction: column; gap: .875rem; font-weight: 400; }
.intro__word { --h: clamp(2.125rem, 5.2vw, 4rem); height: var(--h); width: calc(var(--h) * 7.481); fill: var(--green); display: block; }
.intro__sub { font: 500 clamp(11px, 1.15vw, .9375rem)/1 var(--font-l); letter-spacing: .62em; text-transform: uppercase; color: var(--gold-ink); }
.facts { display: flex; flex-wrap: wrap; gap: .875rem 2.75rem; }
.fact dt { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--ink-3); }
.fact dt .ic { width: 1rem; height: 1rem; color: var(--gold-ink); }
.fact dd { margin-top: .25rem; font-size: 1.0625rem; font-weight: 500; color: var(--green); white-space: nowrap; }

.hero { position: relative; isolation: isolate; height: clamp(35rem, 78vh, 50rem); border-radius: var(--r-xl); overflow: hidden; background: var(--green); color: #fff; }
.hero__slides, .hero__slide { position: absolute; inset: 0; margin: 0; }
.hero__slide { opacity: 0; transition: opacity 1.3s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 9s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 22, 17, .5) 0%, rgba(8, 22, 17, .2) 42%, rgba(8, 22, 17, 0) 68%),
    linear-gradient(180deg, rgba(8, 22, 17, .42) 0%, rgba(8, 22, 17, 0) 22%, rgba(8, 22, 17, .1) 36%, rgba(8, 22, 17, .68) 66%, rgba(8, 22, 17, .95) 100%);
}
.hero__tags { position: absolute; z-index: 2; top: 1.25rem; left: 1.25rem; right: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__tags li { height: 2.375rem; padding: 0 1rem; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(251, 249, 244, .95); color: var(--green); font-size: .84375rem; font-weight: 500; white-space: nowrap; }
.hero__tags li:first-child { background: var(--gold); }
.hero__text { position: absolute; z-index: 2; left: clamp(1.25rem, 3.4vw, 3rem); right: clamp(1.25rem, 3.4vw, 3rem); bottom: clamp(1.375rem, 3.4vw, 3rem); max-width: 50rem; }
.hero__title { font: 400 clamp(1.875rem, 4.4vw, 3.875rem)/1.03 var(--font-d); letter-spacing: -.014em; text-wrap: balance; text-shadow: 0 2px 1.75rem rgba(8, 22, 17, .5); }
.hero__motto { margin-top: .875rem; font: 400 clamp(.9375rem, 1.5vw, 1.1875rem)/1.3 var(--font-d); letter-spacing: .02em; color: var(--gold); }
.hero__lead { margin-top: .75rem; max-width: 60ch; font-size: clamp(.9375rem, 1.2vw, 1.0625rem); line-height: 1.55; color: rgba(255, 255, 255, .86); }
.hero__cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .625rem; }
.hero__nav { position: absolute; z-index: 2; right: clamp(1.25rem, 3.4vw, 3rem); bottom: clamp(1.375rem, 3.4vw, 3rem); display: none; align-items: center; gap: .625rem; }
.hero__count { margin-right: .5rem; font-size: .9375rem; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.hero__count b { color: #fff; font-weight: 500; }
@media (min-width: 720px) { .hero__tags { top: 1.75rem; left: 1.75rem; } }
@media (min-width: 1000px) { /* desktop */
  .intro { padding-top: 5.25rem; }
  .intro__row { gap: 1rem 3rem; margin-bottom: 1.25rem; }
  .intro__name .eyebrow { margin-bottom: .875rem; }
  .intro__h1 { gap: .625rem; }
  .intro__word { --h: 3rem; }
  .intro__sub { font-size: .8125rem; }
  .facts { gap: .75rem 2.5rem; }
  .fact dd { font-size: 1rem; }
  /* the picture is framed by the first screen: window height minus what is above it (12.75rem) and a 1.5rem margin below */
  .hero { height: clamp(25rem, calc(100vh - 14.25rem), 44rem); height: clamp(25rem, calc(100svh - 14.25rem), 44rem); }
  .hero__tags { top: 1.5rem; left: 1.5rem; right: 1.5rem; }
  .hero__tags li { height: 2rem; padding: 0 .875rem; font-size: .8125rem; }
  .hero__text { left: 2.5rem; right: 2.5rem; bottom: 2.25rem; max-width: 52rem; }
  .hero__title { font-size: 2.875rem; line-height: 1.05; }
  .hero__motto { margin-top: .75rem; font-size: 1.125rem; }
  .hero__lead { margin-top: .5rem; max-width: 62ch; font-size: .9375rem; }
  .hero__cta { margin-top: 1.25rem; }
  .hero__nav { display: flex; right: 2.5rem; bottom: 2.25rem; }
  .hero__count { font-size: .875rem; }
  /* the picture is a wide strip here: for the two views of the main facade keep its top and the sky, not the lawn under the text */
  .hero__slide:nth-child(-n+2) img { object-position: 50% 22%; }
}
@media (max-width: 719px) {
  .hero__shade { background: linear-gradient(180deg, rgba(8, 22, 17, .5) 0%, rgba(8, 22, 17, .05) 20%, rgba(8, 22, 17, .2) 38%, rgba(8, 22, 17, .82) 64%, rgba(8, 22, 17, .97) 100%); }
  .hero__tags { top: 1rem; left: 1rem; right: 1rem; gap: .375rem; }
  .hero__tags li { height: 2rem; padding: 0 .75rem; font-size: max(11px, .75rem); }
}
@media (max-width: 559px) { .hero__lead { display: none; } .hero__cta .btn { flex: 1 1 100%; } }

/* ---------- sections ---------- */
/* scroll-margin: a jump from the menu puts the section heading right under the header, not a band of empty margin */
.sec { --sec-pad: clamp(4.5rem, 9vw, 8.5rem); padding-top: var(--sec-pad); scroll-margin-top: calc(1.25rem - var(--sec-pad)); }
.sec__head { margin-bottom: clamp(1.625rem, 3.4vw, 3rem); }
.sec__head .h2 { max-width: 17em; }
.sec__head--split { display: grid; gap: 1.125rem 4rem; }
.sec__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2.5rem; }
@media (min-width: 960px) {
  .sec__head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .sec__head--split > .prose { padding-top: 2.125rem; }
}
@media (min-width: 1000px) { /* desktop */
  .sec { --sec-pad: 5.5rem; }
  .sec__head { margin-bottom: 2rem; }
  .sec__head .h2 { max-width: 24em; }
  .sec__head--split { gap: 1rem 3.5rem; }
  .sec__head--split > .prose { padding-top: 1.75rem; }
}

.bento { display: grid; gap: .5rem; }
@media (min-width: 960px) { .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.media { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--green-2); aspect-ratio: 4 / 3; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.media:hover img { transform: scale(1.03); }
@media (min-width: 960px) { .media { aspect-ratio: auto; min-height: 30rem; } }
.card { background: var(--paper); border-radius: var(--r-xl); padding: clamp(1.5rem, 3.4vw, 3.25rem); display: flex; flex-direction: column; }
.card .h3 { margin-bottom: 1.125rem; }
.card__foot { margin-top: auto; padding-top: 1.875rem; }
.card--dark { background: var(--green); color: var(--cream); }
.card--wide { grid-column: 1 / -1; }
.card--frame { position: relative; justify-content: center; align-items: center; text-align: center; min-height: 23.75rem; }
.card--frame::before { content: ""; position: absolute; inset: 1rem; border: 1px solid var(--line-gold); border-radius: .875rem; pointer-events: none; }
.card--frame::after { content: ""; position: absolute; inset: 1.4375rem; border: 1px solid rgba(236, 207, 135, .12); border-radius: .5rem; pointer-events: none; }
.quote { font: 400 clamp(1.625rem, 3vw, 2.75rem)/1.12 var(--font-d); max-width: 14em; text-wrap: balance; }
.quote--gold { color: var(--gold); margin-top: .3em; }
.quote__emblem { fill: var(--gold); width: 4rem; height: 3.48125rem; margin-bottom: 1.75rem; }
@media (min-width: 1000px) { /* desktop: unequal halves — the text card gets the wider one */
  .bento--a { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .bento--b { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .media { min-height: 20rem; }
  .card { padding: 2.25rem; }
  .card .h3 { margin-bottom: 1rem; }
  .card__foot { padding-top: 1.5rem; }
  .card--frame { min-height: 20rem; }
  .card--frame::before { inset: .875rem; border-radius: .75rem; }
  .card--frame::after { inset: 1.25rem; border-radius: .4375rem; }
  .quote { font-size: 2rem; }
  .quote__emblem { width: 3.25rem; height: 2.8285rem; margin-bottom: 1.375rem; }
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .75rem; padding: .375rem 1.25rem .375rem .375rem; border-radius: 999px; background: rgba(14, 40, 32, .05); }
.chip i { width: 2.625rem; height: 2.625rem; border-radius: 50%; background: var(--gold); color: var(--green); display: grid; place-items: center; flex: none; }
.chip span { display: flex; flex-direction: column; line-height: 1.2; }
.chip b { font-weight: 500; font-size: .9375rem; color: var(--green); }
.chip small { font-size: .78125rem; color: var(--ink-3); }
.chips--dark { margin-top: 1.875rem; }
.chips--dark .chip { background: rgba(255, 255, 255, .07); }
.chips--dark .chip b { color: var(--cream); }
.chips--dark .chip small { color: rgba(243, 239, 229, .6); }
.chips--row { margin-top: 1.125rem; }
.chips--row .chip { background: var(--paper); }
@media (min-width: 1000px) { /* desktop */
  .chip { gap: .625rem; padding: .3125rem 1rem .3125rem .3125rem; }
  .chip i { width: 2.25rem; height: 2.25rem; }
  .chip b { font-size: .875rem; }
  .chip small { font-size: .75rem; }
  .chips--dark { margin-top: 1.5rem; }
  .chips--row { margin-top: .875rem; }
  .card__foot.chips { gap: .375rem; }
  .card__foot .chip { padding-right: .875rem; }
}

.figures { margin-top: .5rem; background: var(--paper); border-radius: var(--r-xl); padding: clamp(1.5rem, 3.4vw, 3.25rem); display: grid; gap: 1.375rem 4rem; }
.figures__grid { display: grid; column-gap: 2.75rem; }
.figures__grid > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.figures__grid dt { font-size: max(11px, .75rem); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .375rem; }
.figures__grid dd { font: 400 1.3125rem/1.22 var(--font-d); color: var(--green); }
@media (min-width: 640px) { .figures__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { /* desktop: a wide strip, four in a row */
  .figures { padding: 2.25rem; gap: 1.25rem; }
  .figures__grid { grid-template-columns: repeat(4, 1fr); column-gap: 2rem; }
  .figures__grid > div { padding: .875rem 0; }
  .figures__grid dd { font-size: 1.25rem; }
}

/* ---------- dark panels ---------- */
.panel { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(1.625rem, 4.6vw, 4.75rem); }
.panel--dark { background: var(--green); color: var(--cream); }
.panel--dark .h2 { color: var(--cream); margin-bottom: 1.375rem; }
.panel__grid { display: grid; gap: 2.25rem 4.5rem; }
@media (min-width: 1000px) { .panel__grid { grid-template-columns: 1.15fr .85fr; } }
.panel__aside { display: flex; flex-direction: column; justify-content: center; }
.pull { border-left: 1px solid var(--gold); padding-left: clamp(1.25rem, 2.4vw, 2.25rem); }
.pull p { font: 400 clamp(1.375rem, 2.1vw, 1.875rem)/1.26 var(--font-d); color: var(--gold); }
.panel__sub { font: 500 max(11px, .75rem)/1.3 var(--font-b); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: clamp(2.25rem, 4.4vw, 4rem) 0 1.125rem; }
.companies { display: grid; gap: .5rem; }
.companies li { display: flex; flex-direction: column; gap: .75rem; padding: 1.375rem 1.375rem 1.5rem; border: 1px solid var(--line-gold); border-radius: var(--r-lg); transition: background-color .3s, border-color .3s; }
.companies li:hover { background: rgba(236, 207, 135, .06); border-color: rgba(236, 207, 135, .5); }
.companies b { font: 500 .875rem/1.3 var(--font-l); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.companies span { font-size: .90625rem; line-height: 1.5; color: rgba(243, 239, 229, .74); }
@media (min-width: 640px) { .companies { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1160px) { .companies { grid-template-columns: repeat(5, 1fr); } }
.contractor { margin-top: clamp(1.75rem, 3vw, 2.75rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line-gold); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 3rem; }
.contractor .eyebrow { margin-bottom: .5rem; }
.contractor__name { font: 400 clamp(1.75rem, 3vw, 2.625rem)/1.08 var(--font-d); }
.contractor__list { display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; color: rgba(243, 239, 229, .6); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { height: 2.25rem; padding: 0 1rem; display: inline-flex; align-items: center; border: 1px solid var(--line-gold); border-radius: 999px; font-size: .875rem; color: var(--cream); white-space: nowrap; }
.tags--ink li { border-color: var(--line); color: var(--green); }
@media (min-width: 1000px) { /* desktop */
  .panel { padding: 3rem; }
  .panel--dark .h2 { margin-bottom: 1.125rem; }
  .panel__grid { gap: 2rem 3.5rem; }
  .pull { padding-left: 1.75rem; }
  .pull p { font-size: 1.4375rem; line-height: 1.3; }
  .panel__sub { margin: 2.5rem 0 1rem; }
  .companies li { gap: .5rem; padding: 1.125rem 1.125rem 1.25rem; }
  .companies b { font-size: .8125rem; }
  .companies span { font-size: .875rem; }
  .contractor { margin-top: 1.75rem; padding-top: 1.5rem; }
  .contractor__name { font-size: 2rem; }
  .contractor__list { gap: .625rem; font-size: .8125rem; }
  .tags li { height: 2rem; padding: 0 .875rem; font-size: .8125rem; }
}

/* ---------- location ---------- */
.map { display: grid; gap: .5rem; }
.map__pic { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #EDE7D9; min-height: 14.375rem; }
.map__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map__side { background: var(--paper); border-radius: var(--r-xl); padding: clamp(1.375rem, 2.6vw, 2.5rem); }
.dist > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.dist > div:first-child { border-top: 0; padding-top: 0; }
.dist dt { color: var(--ink-2); font-size: .96875rem; }
.dist dd { font: 400 1.375rem/1 var(--font-d); color: var(--green); white-space: nowrap; }
@media (min-width: 1000px) { .map { grid-template-columns: 2fr 1fr; } }
.h3--sub { margin: clamp(2.5rem, 5vw, 4.75rem) 0 clamp(1.25rem, 2.4vw, 2rem); }

.around { display: grid; gap: .5rem; }
.place { display: flex; flex-direction: column; gap: .875rem; padding: clamp(1.375rem, 2.6vw, 2.5rem); border-radius: var(--r-xl); background: var(--green); color: var(--cream); }
.place p, .place .dash li { font-size: .9375rem; line-height: 1.58; color: rgba(243, 239, 229, .76); }
.place__ic { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; margin-bottom: .375rem; background: rgba(236, 207, 135, .13); color: var(--gold); }
.place__ic .ic { width: 1.5rem; height: 1.5rem; }
.place__t { font: 400 clamp(1.4375rem, 2vw, 1.75rem)/1.14 var(--font-d); color: var(--cream); text-wrap: balance; }
.stats { margin-top: auto; padding-top: .875rem; display: flex; flex-wrap: wrap; gap: .875rem 1.875rem; }
.stats li { display: flex; flex-direction: column; gap: .1875rem; }
.stats b { font: 400 1.6875rem/1 var(--font-d); color: var(--gold); white-space: nowrap; }
.stats span { font-size: .78125rem; color: rgba(243, 239, 229, .6); }
.dash li { position: relative; padding-left: 1.5rem; }
.dash li + li { margin-top: .625rem; }
.dash li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.dash b { font-weight: 500; color: var(--cream); }
.place--light { background: var(--paper); color: var(--ink); }
.place--light p, .place--light .dash li { color: var(--ink-2); }
.place--light .place__ic { background: var(--gold); color: var(--green); }
.place--light .place__t { color: var(--green); }
.place--light .stats b { color: var(--green); }
.place--light .stats span { color: var(--ink-3); }
.place--light .dash li::before { color: var(--gold-ink); }
.place--light .dash b { color: var(--ink); }
@media (min-width: 760px) { .around { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { /* desktop */
  .map__side { padding: 1.75rem; }
  .dist > div { padding: .5625rem 0; }
  .dist dt { font-size: .9375rem; }
  .dist dd { font-size: 1.25rem; }
  .h3--sub { margin: 3rem 0 1.375rem; }
  .place { gap: .75rem; padding: 1.75rem; }
  .place p, .place .dash li { line-height: 1.56; }
  .place__ic { width: 2.75rem; height: 2.75rem; margin-bottom: .25rem; }
  .place__ic .ic { width: 1.375rem; height: 1.375rem; }
  .place__t { font-size: 1.4375rem; }
  .stats { column-gap: 1.5rem; } /* the three figures of a narrow card stay in one row */
  .stats b { font-size: 1.625rem; }
  .stats span { font-size: .75rem; }
}
@media (min-width: 1200px) { /* three, then the two longest texts in wide cards, then three */
  .around { grid-template-columns: repeat(12, 1fr); }
  .place { grid-column: span 4; }
  .place:nth-child(4), .place:nth-child(5) { grid-column: span 6; }
}

/* ---------- horizontal rail ---------- */
.rail {
  --pad: max(var(--gut), calc((100vw - var(--max)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 35rem); gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad); padding: 0 var(--pad) .375rem; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail__card { scroll-snap-align: start; }
.rail__card figure { aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--green-2); }
.rail__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.rail__card:hover img { transform: scale(1.04); }
.rail__card h3 { margin: 1.25rem 0 .5rem; font: 400 clamp(1.4375rem, 2vw, 1.6875rem)/1.15 var(--font-d); color: var(--green); text-wrap: balance; }
.rail__card p { font-size: .96875rem; color: var(--ink-2); max-width: 54ch; }
.arrows { display: flex; gap: .5rem; margin-top: 1.375rem; }
@media (min-width: 1000px) { /* desktop */
  .rail { grid-auto-columns: 30rem; }
  .rail__card h3 { margin: 1rem 0 .375rem; font-size: 1.375rem; }
  .rail__card p { font-size: .9375rem; }
  .arrows { margin-top: 1rem; }
}

/* ---------- lifestyle tiles ---------- */
.tiles { display: grid; gap: .5rem; }
.tile { display: flex; flex-direction: column; gap: .75rem; min-height: 16.25rem; padding: clamp(1.375rem, 2.6vw, 2.375rem); border-radius: var(--r-xl); background: var(--paper); }
.tile__ic { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--green); margin-bottom: auto; }
.tile__ic .ic { width: 1.5rem; height: 1.5rem; }
.tile h3 { margin-top: 1.625rem; font: 400 clamp(1.375rem, 1.9vw, 1.5625rem)/1.15 var(--font-d); color: var(--green); text-wrap: balance; }
.tile p { font-size: .9375rem; color: var(--ink-2); }
.tile--pic { position: relative; overflow: hidden; padding: 0; margin: 0; min-height: 18.75rem; background: var(--green); }
.tile--pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 17, 0) 45%, rgba(8, 22, 17, .78) 100%); }
.tile--pic figcaption { position: absolute; z-index: 1; left: clamp(1.375rem, 2.6vw, 2.375rem); bottom: clamp(1.25rem, 2.4vw, 2rem); font: 400 1.6875rem/1.1 var(--font-d); color: #fff; }
@media (min-width: 700px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 699px) { .tile:not(.tile--pic) { min-height: 0; } } /* one column: no empty band between the icon and the title */
@media (min-width: 1000px) { /* desktop */
  .tile { gap: .5rem; min-height: 13rem; padding: 1.5rem; }
  .tile__ic { width: 2.75rem; height: 2.75rem; }
  .tile__ic .ic { width: 1.375rem; height: 1.375rem; }
  .tile h3 { margin-top: .5rem; }
  .tile--pic { min-height: 13rem; padding: 0; }
  .tile--pic figcaption { left: 1.5rem; bottom: 1.25rem; font-size: 1.5rem; }
}

/* ---------- engineering / service ---------- */
.steps li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1.125rem; padding: 1.375rem 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li:last-child { padding-bottom: 0; }
.steps i { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 40, 32, .06); color: var(--green); }
.steps i .ic { width: 1.4375rem; height: 1.4375rem; }
.steps h3 { font: 400 clamp(1.3125rem, 1.8vw, 1.5rem)/1.18 var(--font-d); color: var(--green); margin-bottom: .375rem; }
.steps p { font-size: .9375rem; color: var(--ink-2); }
.duo { display: grid; gap: 2.375rem; align-content: center; height: 100%; }
.duo i { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: rgba(236, 207, 135, .13); color: var(--gold); }
.duo i .ic { width: 1.5rem; height: 1.5rem; }
.duo h3 { margin: 1.125rem 0 .5rem; font: 400 clamp(1.5rem, 2.1vw, 1.8125rem)/1.14 var(--font-d); }
.duo p { color: rgba(243, 239, 229, .76); max-width: 46ch; }
.hall { display: grid; gap: 1.375rem 4rem; }
.hall .eyebrow { margin-bottom: .875rem; }
.hall .h3 { margin: 0; }
.hall .tags { margin-top: 1.375rem; }
@media (min-width: 960px) { .hall { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { /* desktop */
  .steps li { grid-template-columns: 2.75rem 1fr; gap: 1rem; padding: .875rem 0; }
  .steps i { width: 2.75rem; height: 2.75rem; }
  .steps i .ic { width: 1.25rem; height: 1.25rem; }
  .steps h3 { margin-bottom: .25rem; }
  .duo { gap: 1.75rem; }
  .duo i { width: 2.75rem; height: 2.75rem; }
  .duo i .ic { width: 1.375rem; height: 1.375rem; }
  .duo h3 { margin: .875rem 0 .375rem; }
  .hall { gap: 1.25rem 3.5rem; }
  .hall .tags { margin-top: 1.125rem; }
}

/* ---------- resident app ---------- */
.panel--app { background: radial-gradient(110% 90% at 88% 8%, #1D4739 0%, var(--green) 62%); }
.app { display: grid; gap: 2.75rem 3.5rem; align-items: center; }
.app .h2 { margin-bottom: 0; }
.feats { margin-top: 2.125rem; display: grid; gap: 1.5rem 2.25rem; }
.feats li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.feats i { width: 3rem; height: 3rem; border-radius: .875rem; display: grid; place-items: center; background: rgba(236, 207, 135, .13); color: var(--gold); }
.feats i .ic { width: 1.4375rem; height: 1.4375rem; }
.feats h3 { font: 400 1.375rem/1.2 var(--font-d); margin-bottom: .375rem; }
.feats p { font-size: .90625rem; line-height: 1.55; color: rgba(243, 239, 229, .72); }
@media (min-width: 640px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .app { grid-template-columns: 1.25fr .75fr; } }
.app__phone { --pu: 1px; display: flex; flex-direction: column; align-items: center; gap: 1.125rem; }
.app__note { font-size: max(11px, .75rem); color: rgba(243, 239, 229, .6); }
.phone { position: relative; width: min(calc(var(--pu) * 304), 80vw); aspect-ratio: 9 / 19.2; padding: calc(var(--pu) * 9); border-radius: calc(var(--pu) * 46); background: #06110D; box-shadow: 0 calc(var(--pu) * 50) calc(var(--pu) * 90) calc(var(--pu) * -34) rgba(0, 0, 0, .75), 0 0 0 1.5px rgba(236, 207, 135, .4); }
.phone__notch { position: absolute; z-index: 2; top: calc(var(--pu) * 18); left: 50%; width: calc(var(--pu) * 82); height: calc(var(--pu) * 22); border-radius: calc(var(--pu) * 12); background: #06110D; transform: translateX(-50%); }
.phone__screen { height: 100%; overflow: hidden; border-radius: calc(var(--pu) * 38); padding: calc(var(--pu) * 15) calc(var(--pu) * 13) 0; display: flex; flex-direction: column; gap: calc(var(--pu) * 9); background: linear-gradient(180deg, #16382D 0%, #0E2820 46%); color: var(--cream); font-size: calc(var(--pu) * 11); line-height: 1.25; }
.ui-top { display: flex; align-items: center; justify-content: space-between; padding: 1px calc(var(--pu) * 10) calc(var(--pu) * 4); font-weight: 500; }
.ui-top__brand { display: none; }
.ui-top__dot { width: calc(var(--pu) * 16); height: calc(var(--pu) * 8); border-radius: calc(var(--pu) * 3); border: 1px solid rgba(243, 239, 229, .6); }
.ui-hello { font: 400 calc(var(--pu) * 21)/1.1 var(--font-d); padding: calc(var(--pu) * 4) calc(var(--pu) * 4) 0; }
.ui-hello small { display: block; margin-top: calc(var(--pu) * 3); font: 400 calc(var(--pu) * 10.5) var(--font-b); color: rgba(243, 239, 229, .6); }
.ui-cam { position: relative; border-radius: calc(var(--pu) * 16); overflow: hidden; aspect-ratio: 16 / 9.4; flex: none; }
.ui-cam img, .ui-cams img { width: 100%; height: 100%; object-fit: cover; }
.ui-live { position: absolute; top: calc(var(--pu) * 8); left: calc(var(--pu) * 8); display: inline-flex; align-items: center; gap: calc(var(--pu) * 5); padding: calc(var(--pu) * 3) calc(var(--pu) * 8) calc(var(--pu) * 3) calc(var(--pu) * 7); border-radius: 999px; background: rgba(6, 17, 13, .7); font-weight: 500; font-size: calc(var(--pu) * 9.5); letter-spacing: .08em; text-transform: uppercase; }
.ui-live::before { content: ""; width: calc(var(--pu) * 6); height: calc(var(--pu) * 6); border-radius: 50%; background: #E5533D; animation: livedot 1.6s ease-in-out infinite; }
@keyframes livedot { 50% { opacity: .25; } }
.ui-cam__name { position: absolute; left: calc(var(--pu) * 10); bottom: calc(var(--pu) * 8); font-weight: 500; font-size: calc(var(--pu) * 11); text-shadow: 0 1px calc(var(--pu) * 6) rgba(0, 0, 0, .6); }
.ui-cams { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--pu) * 6); flex: none; }
.ui-cams span { position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--pu) * 10); overflow: hidden; }
.ui-cams em { position: absolute; left: calc(var(--pu) * 6); bottom: calc(var(--pu) * 4); font-style: normal; font-size: calc(var(--pu) * 9); font-weight: 500; text-shadow: 0 1px calc(var(--pu) * 5) rgba(0, 0, 0, .7); }
.ui-label { padding: calc(var(--pu) * 3) calc(var(--pu) * 4) 0; font-weight: 500; font-size: calc(var(--pu) * 9.5); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.ui-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--pu) * 6); flex: none; }
.ui-grid span { display: flex; flex-direction: column; align-items: center; gap: calc(var(--pu) * 5); padding: calc(var(--pu) * 9) calc(var(--pu) * 2) calc(var(--pu) * 8); border-radius: calc(var(--pu) * 12); background: rgba(255, 255, 255, .07); font-size: calc(var(--pu) * 9); }
.ui-grid .ic { width: calc(var(--pu) * 17); height: calc(var(--pu) * 17); color: var(--gold); }
.ui-row { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--pu) * 9) calc(var(--pu) * 9) calc(var(--pu) * 9) calc(var(--pu) * 12); border-radius: calc(var(--pu) * 13); background: rgba(255, 255, 255, .07); flex: none; }
.ui-row span { display: inline-flex; align-items: center; gap: calc(var(--pu) * 8); }
.ui-row .ic { width: calc(var(--pu) * 15); height: calc(var(--pu) * 15); color: var(--gold); }
.ui-row b { padding: calc(var(--pu) * 5) calc(var(--pu) * 11); border-radius: 999px; font-weight: 500; font-size: calc(var(--pu) * 10); background: rgba(236, 207, 135, .16); color: var(--gold); }
.ui-row--gold b { background: var(--gold); color: var(--green); }
.ui-tabs { margin: auto calc(var(--pu) * -13) 0; padding: calc(var(--pu) * 10) calc(var(--pu) * 14) calc(var(--pu) * 16); display: flex; justify-content: space-around; background: rgba(6, 17, 13, .55); font-size: calc(var(--pu) * 9.5); color: rgba(243, 239, 229, .55); }
.ui-tabs .is-on { color: var(--gold); font-weight: 500; }
@media (min-width: 1000px) { /* desktop */
  .app { gap: 2rem 3rem; align-items: start; }
  .feats { margin-top: 1.75rem; gap: 1.25rem 2rem; }
  .feats li { grid-template-columns: 2.75rem 1fr; gap: .875rem; }
  .feats i { width: 2.75rem; height: 2.75rem; border-radius: .8125rem; }
  .feats h3 { font-size: 1.3125rem; margin-bottom: .25rem; }
  .feats p { font-size: .875rem; }
  /* the phone is drawn larger than the panel and is cut by its bottom edge: 520 of its 648 units stay
     visible — everything down to the "Шлагбаум" row; the caption moves to the panel's bottom corner */
  .app__phone { --pu: calc(.0625rem * .95); display: block; align-self: end; height: calc(var(--pu) * 520); margin-bottom: -3rem; }
  .phone { margin-inline: auto; }
  .app__note { position: absolute; left: 3rem; bottom: .875rem; }
}

/* ---------- heritage ---------- */
.codes { display: grid; gap: .5rem; }
.codes li { display: flex; flex-direction: column; gap: .625rem; min-height: 15rem; padding: clamp(1.375rem, 2.4vw, 2.25rem); border-radius: var(--r-xl); background: var(--paper); }
.codes i { color: var(--gold-ink); margin-bottom: auto; }
.codes i .ic { width: 2.625rem; height: 2.625rem; stroke-width: 1.1; }
.codes h3 { margin-top: 1.625rem; font: 400 clamp(1.375rem, 1.9vw, 1.5625rem)/1.15 var(--font-d); color: var(--green); }
.codes p { font-size: .9375rem; color: var(--ink-2); }
/* three cards: one column on phones, two columns with the last card full width on tablets, three in a row from 900px */
@media (min-width: 640px) and (max-width: 899px) { .codes { grid-template-columns: 1fr 1fr; } .codes li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 900px) { .codes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) { .codes li { min-height: 0; } } /* one column: no empty band between the icon and the title */
@media (min-width: 1000px) { /* desktop */
  .codes li { gap: .5rem; min-height: 12rem; padding: 1.625rem; }
  .codes i .ic { width: 2.25rem; height: 2.25rem; }
  .codes h3 { margin-top: 1rem; }
}

/* ---------- tabs ---------- */
.tabs { display: inline-flex; gap: 2px; max-width: 100%; padding: .3125rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 2.875rem; min-width: 3.75rem; padding: 0 1.25rem; border-radius: 999px; font: 500 .9375rem/1 var(--font-b); color: var(--ink-2); white-space: nowrap; transition: background-color .25s, color .25s; }
.tabs button small { font-weight: 400; font-size: .8125rem; opacity: .7; margin-left: .25rem; }
.tabs button:hover { color: var(--green); }
.tabs button[aria-selected="true"] { background: var(--green); color: var(--gold); }
@media (max-width: 559px) { .tabs button { height: 2.625rem; min-width: 0; padding: 0 .875rem; font-size: .875rem; } }
@media (min-width: 1000px) { /* desktop */
  .tabs { padding: .25rem; }
  .tabs button { height: 2.5rem; min-width: 3.5rem; padding: 0 1.125rem; font-size: .875rem; }
  .tabs button small { font-size: .75rem; }
}

/* ---------- plans ---------- */
.plans { display: grid; gap: .5rem; }
.plans__main { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.plans__pic { position: relative; flex: 1; scroll-margin-top: 5.5rem; width: 100%; aspect-ratio: 1.2 / 1; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: clamp(1.125rem, 2.6vw, 2.75rem); border-radius: var(--r-xl); background: var(--plan); overflow: hidden; cursor: zoom-in; }
.plans__pic img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; transition: opacity .25s; }
.plans__pic.is-swap img { opacity: 0; }
.plans__zoom { position: absolute; top: 1rem; right: 1rem; width: 2.875rem; height: 2.875rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--green); transition: background-color .25s; }
.plans__pic:hover .plans__zoom { background: var(--gold); }
.plans__badges { position: absolute; top: 1.125rem; left: 1.125rem; display: flex; flex-wrap: wrap; gap: .375rem; }
.plans__badges span { height: 2rem; padding: 0 .875rem; display: inline-flex; align-items: center; border-radius: 999px; background: var(--green); color: var(--gold); font-size: .8125rem; font-weight: 500; }
.plans__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; padding: 1.25rem clamp(1.125rem, 2.2vw, 2rem); border-radius: var(--r-lg); background: var(--paper); }
.plans__facts dt { font-size: .8125rem; color: var(--ink-3); }
.plans__facts dd { margin-top: 2px; font-weight: 500; font-size: 1rem; color: var(--green); white-space: nowrap; }
.plans__facts div:first-child { grid-column: 1 / -1; }
.plans__facts div:first-child dd { font: 400 1.625rem/1.1 var(--font-d); }
.plans__facts dd small { display: block; font-weight: 400; font-size: .78125rem; color: var(--ink-3); }
.plans__side { display: flex; flex-direction: column; gap: 1.375rem; min-width: 0; padding: clamp(1.125rem, 2.2vw, 2rem); border-radius: var(--r-xl); background: var(--paper); }
.plans__sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .875rem 1rem; }
.plans__count { font: 500 1.375rem/1.15 var(--font-b); color: var(--green); }
.plans__from { font: 400 1.3125rem/1.25 var(--font-b); color: var(--ink-2); }
.plans__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.thumb { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-width: 0; aspect-ratio: 1 / 1.1; padding: .625rem .625rem 2.125rem; border-radius: 1rem; background: var(--plan); border: 1.5px solid transparent; transition: border-color .2s, transform .25s var(--ease); }
.thumb:hover { transform: translateY(-2px); }
.thumb img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.thumb span { position: absolute; left: .25rem; right: .25rem; bottom: .5625rem; text-align: center; font-size: .78125rem; font-weight: 500; color: var(--green); white-space: nowrap; }
.thumb em { position: absolute; top: .4375rem; left: .4375rem; padding: .1875rem .5rem; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 500; background: var(--gold); color: var(--green); }
.thumb[aria-selected="true"] { border-color: var(--green); }
.plans__rooms { margin-top: auto; }
.plans__rooms ul { columns: 2; column-gap: 1.75rem; }
.plans__rooms li { display: flex; justify-content: space-between; gap: .625rem; padding: .4375rem 0; border-bottom: 1px dashed var(--line); font-size: .875rem; color: var(--ink-2); break-inside: avoid; }
.plans__rooms li b { font-weight: 500; color: var(--green); white-space: nowrap; }
@media (min-width: 640px) {
  .plans__facts { grid-template-columns: 1.5fr repeat(4, auto); align-items: end; }
  .plans__facts div:first-child { grid-column: auto; }
  .plans__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { /* desktop: the drawing, its numbers and the whole list of types fit one screen */
  /* 33.25rem is the tallest list (three rooms, ten lines of areas): the block keeps one height for every tab and type */
  .plans { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: 33.25rem; }
  /* the drawing no longer stretches its box: the box takes the height of the list beside it */
  .plans__pic { aspect-ratio: auto; min-height: 22rem; padding: 0; }
  .plans__pic img { position: absolute; inset: 1.75rem; width: calc(100% - 3.5rem); height: calc(100% - 3.5rem); }
  .plans__zoom { top: .875rem; right: .875rem; width: 2.5rem; height: 2.5rem; }
  .plans__badges { top: 1rem; left: 1rem; }
  .plans__badges span { height: 1.75rem; padding: 0 .75rem; font-size: .75rem; }
  .plans__facts { gap: .75rem 1.5rem; padding: 1rem 1.75rem; }
  .plans__facts dt { font-size: .75rem; }
  .plans__facts dd { font-size: .9375rem; }
  .plans__facts div:first-child dd { font-size: 1.5rem; }
  .plans__side { gap: 1.125rem; padding: 1.625rem; }
  .plans__count { font-size: 1.25rem; }
  .plans__from { font-size: 1.125rem; }
  .plans__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .thumb { aspect-ratio: 1 / 1.08; padding: .5rem .5rem 1.75rem; border-radius: .75rem; }
  .thumb span { bottom: .4375rem; font-size: .75rem; }
  .plans__rooms li { padding: .3125rem 0; font-size: .8125rem; }
}
@media (min-width: 1200px) {
  .plans__thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .plans__rooms ul { columns: 3; column-gap: 1.5rem; }
}
@media (max-width: 420px) { .plans__rooms ul { columns: 1; } }

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.gal button { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--green-2); cursor: zoom-in; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal button:hover img { transform: scale(1.05); }
.gal button:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 3 / 1.6; }
@media (min-width: 900px) {
  .gal { grid-template-columns: repeat(3, 1fr); }
  .gal button:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 3 / 2; }
  .gal button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border-radius: var(--r-xl); }
}
@media (min-width: 1000px) { /* desktop: lower rows — the large picture with two beside it fits one screen */
  .gal button, .gal button:last-child:nth-child(odd) { aspect-ratio: 5 / 3; }
  .gal button:first-child { aspect-ratio: auto; }
  .gal button:first-child img { position: absolute; inset: 0; } /* the rows are set by the small pictures, the large one fills two of them */
}

/* ---------- contact form ---------- */
.cta { display: grid; gap: 1.875rem 4rem; padding: clamp(1.625rem, 4.6vw, 4.75rem); border-radius: var(--r-xl); background: var(--paper); }
.cta__tel { display: inline-block; margin-top: 1.375rem; font: 400 clamp(1.875rem, 3.2vw, 2.75rem)/1 var(--font-d); color: var(--green); white-space: nowrap; }
.cta__tel:hover { color: var(--gold-ink); }
@media (min-width: 960px) { .cta { grid-template-columns: 1fr 1fr; align-items: center; } }
.form { display: grid; gap: .75rem; }
.field { display: flex; flex-direction: column; gap: .375rem; }
.field span { padding-left: 1.25rem; font-size: .8125rem; color: var(--ink-3); }
.field input { width: 100%; height: 3.625rem; padding: 0 1.5rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 400 16px var(--font-b); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #87908B; }
.field input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 .25rem rgba(14, 40, 32, .08); }
.field input.is-bad { border-color: #B4472F; box-shadow: 0 0 0 .25rem rgba(180, 71, 47, .1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: .375rem; }
.form__msg { min-height: 1.4em; font-size: .90625rem; }
.form__msg.is-ok { color: #1E6A47; }
.form__msg.is-err { color: #A23E28; }
.form__msg a { text-decoration: underline; white-space: nowrap; }
.form__legal { font-size: max(11px, .75rem); color: var(--ink-3); }
@media (min-width: 560px) {
  .cta .form { grid-template-columns: 1fr 1fr; }
  .cta .form .btn, .cta .form__msg, .cta .form__legal { grid-column: 1 / -1; }
}
@media (min-width: 1000px) { /* desktop */
  .cta { gap: 1.5rem 3.5rem; padding: 3rem; }
  .cta__tel { margin-top: 1.125rem; font-size: 2.125rem; }
  .field input { height: 3.25rem; padding: 0 1.375rem; }
  .field span { padding-left: 1.125rem; }
}

/* ---------- footer ---------- */
.footer { margin-top: clamp(4.5rem, 9vw, 8.5rem); padding: clamp(2.75rem, 5vw, 5.25rem) 0 6.875rem; background: var(--green); color: rgba(243, 239, 229, .74); font-size: .9375rem; }
.footer__top { display: grid; gap: 2.25rem 2.5rem; }
.footer__sub { margin-top: 1rem; font: 500 11px/1 var(--font-l); letter-spacing: .6em; text-transform: uppercase; color: var(--gold); }
.footer__motto { margin-top: 1.125rem; max-width: 22em; font: 400 1.0625rem/1.3 var(--font-d); color: rgba(243, 239, 229, .6); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: .625rem; }
.footer__col h3 { margin-bottom: .5rem; font: 500 max(11px, .75rem)/1.3 var(--font-b); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--cream); }
.footer__col .btn { margin-top: .625rem; color: var(--green); }
.footer__col .btn:hover { color: var(--green); }
.footer__tel { font: 400 1.6875rem/1.1 var(--font-d); color: var(--cream); white-space: nowrap; }
.footer__team { margin-top: 2.75rem; padding: 1.625rem 0; border-block: 1px solid var(--line-gold); display: grid; gap: 1rem 2.5rem; }
.footer__team p { display: flex; flex-direction: column; gap: .3125rem; }
.footer__team span { font-size: max(11px, .71875rem); letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 239, 229, .6); }
.footer__team b { font: 400 1.3125rem/1.15 var(--font-d); color: var(--cream); }
.footer__bottom { margin-top: 1.625rem; display: grid; gap: .875rem 3.5rem; font-size: .78125rem; line-height: 1.5; color: rgba(243, 239, 229, .6); }
.footer__legal { max-width: 110ch; }
@media (min-width: 760px) { .footer__team { grid-template-columns: repeat(3, 1fr); } .footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { /* desktop */
  .footer { margin-top: 5.5rem; padding: 3.5rem 0 2.25rem; }
  .footer__top { grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr; gap: 2rem 2.5rem; }
  .brand--lg .brand__emblem { height: 2.5rem; width: 2.875rem; }
  .brand--lg .brand__word { height: 1.125rem; width: 8.4134rem; }
  .footer__sub { margin-top: .875rem; }
  .footer__motto { margin-top: 1rem; font-size: 1rem; }
  .footer__tel { font-size: 1.5rem; }
  .footer__team { margin-top: 2.25rem; padding: 1.375rem 0; }
  .footer__team b { font-size: 1.1875rem; }
  .footer__bottom { margin-top: 1.375rem; grid-template-columns: auto 1fr; }
}

/* ---------- mobile action bar ---------- */
.dock { position: fixed; z-index: 40; left: .625rem; right: .625rem; bottom: calc(.625rem + env(safe-area-inset-bottom)); display: flex; gap: .5rem; padding: .5rem; border-radius: 999px; background: rgba(14, 40, 32, .93); -webkit-backdrop-filter: blur(.875rem); backdrop-filter: blur(.875rem); box-shadow: 0 1.125rem 2.5rem -1rem rgba(0, 0, 0, .55); transform: translateY(150%); transition: transform .5s var(--ease); }
.dock.is-on { transform: none; }
.dock .btn { flex: 1; height: 3rem; padding: 0 .75rem; font-size: .90625rem; }
@media (min-width: 1000px) { .dock { display: none; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: .875rem; background: rgba(8, 22, 17, .62); -webkit-backdrop-filter: blur(.5rem); backdrop-filter: blur(.5rem); opacity: 0; transition: opacity .3s; }
.modal.is-open { opacity: 1; }
.modal__box { position: relative; width: min(30rem, 100%); max-height: calc(100dvh - 1.75rem); overflow: auto; padding: clamp(1.625rem, 5vw, 2.75rem); border-radius: var(--r-xl); background: var(--paper); transform: translateY(1.125rem) scale(.98); transition: transform .4s var(--ease); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: .875rem; right: .875rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 40, 32, .06); color: var(--green); }
.modal__close:hover { background: var(--gold); }
.modal__emblem { fill: var(--gold-ink); width: 2.875rem; height: 2.5rem; margin-bottom: 1rem; }
.modal__lead { margin: .625rem 0 1.125rem; color: var(--ink-2); }
.modal__ctx { margin-bottom: 1rem; padding: .75rem 1rem; border-radius: .875rem; background: var(--plan); font-size: .875rem; color: var(--green); }
@media (min-width: 1000px) { /* desktop */
  .modal__box { padding: 2.25rem; }
  .modal__close { width: 2.5rem; height: 2.5rem; }
}

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; background: rgba(5, 14, 11, .97); opacity: 0; transition: opacity .3s; }
.lb.is-open { opacity: 1; }
.lb__fig { grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .875rem; height: 100dvh; padding: 4.125rem .375rem 1.625rem; }
.lb__fig img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 8.75rem); object-fit: contain; border-radius: .75rem; }
.lb__fig img.is-plan { background: var(--plan); padding: clamp(.875rem, 3vw, 2.5rem); }
.lb figcaption { display: flex; gap: 1.125rem; font-size: .875rem; color: rgba(243, 239, 229, .7); text-align: center; }
.lb__nav, .lb__close { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .25s, color .25s; }
.lb__nav { margin: 0 .875rem; }
.lb__nav:hover, .lb__close:hover { background: var(--gold); color: var(--green); }
.lb__close { position: absolute; z-index: 1; top: .875rem; right: .875rem; }
@media (max-width: 760px) {
  .lb { grid-template-columns: minmax(0, 1fr); }
  .lb__fig { grid-column: 1; padding-bottom: 5.75rem; }
  .lb__nav { position: absolute; bottom: 1.375rem; margin: 0; }
  .lb__nav--prev { left: 1.125rem; }
  .lb__nav--next { right: 1.125rem; }
}

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(1.625rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero__slide img { transform: none; transition: none; }
  .ui-live::before { animation: none; }
}
@media print {
  .header, .dock, .mnav, .modal, .lb, .hero__nav { display: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
