@font-face {
  font-family: 'Circle/Wix';
  src: url('https://static.tildacdn.com/tild6661-3665-4630-a537-646631396437/WixMadeforText-Regul.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circle/Wix';
  src: url('https://static.tildacdn.com/tild3432-3934-4061-b461-623739633034/WixMadeforText-Mediu.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circle/Wix';
  src: url('https://static.tildacdn.com/tild6565-6438-4363-b238-646238306332/WixMadeforText-SemiB.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circle/Wix';
  src: url('https://static.tildacdn.com/tild3964-3636-4639-b138-613937633838/WixMadeforText-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circle/Wix';
  src: url('https://static.tildacdn.com/tild3765-3264-4665-b161-653864626463/circe-contrast_regul.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: var(--bc-forest-900, #1F3A26);
  --forest-deep: var(--bc-forest-950, #183321);
  --green: var(--bc-green-700, #2C5F2D);
  --sage: var(--bc-sage-500, #7FA66A);
  --sage-light: var(--bc-sage-200, #C9D8B6);
  --milk: var(--bc-milk-50, #F4F2EA);
  --white: var(--bc-white, #FFFFFF);
  --text: var(--bc-text-900, #1C2B1C);
  --muted: var(--bc-text-600, #5A6657);
  --ochre: var(--bc-ochre-500, #B57B37);
  --border: var(--bc-border, #E2DED4);
  --heading: var(--bc-font-heading, 'Circle/Wix', Arial, sans-serif);
  --body: var(--bc-font-body, 'Circle/Wix', Arial, sans-serif);
  --overline-font: 'Circle/Wix', Arial, sans-serif;
  --radius-card: var(--bc-radius-card, 16px);
  --radius-panel: var(--bc-radius-panel, 18px);
  --shadow: var(--bc-shadow-soft, 0 16px 40px rgba(31, 58, 38, 0.08));
  --container: var(--bc-container, 1180px);
  --section-y: var(--bc-section-y, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--milk); }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
figure { margin: 0; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(22px, 4vw, 56px);
  background: rgba(24, 51, 33, .93);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__logo {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 700;
  background: var(--white);
  overflow: hidden;
}
.brand__logo img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 124%;
  height: 124%;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
}
.brand__caption {
  color: var(--sage-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 25px; color: rgba(255,255,255,.78); font-size: 14px; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--white); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle:focus-visible {
  outline: 3px solid rgba(181, 123, 55, .72);
  outline-offset: 3px;
}
.site-header.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section { padding-block: clamp(78px, 8.5vw, 112px); }
.section-dark { position: relative; overflow: hidden; color: var(--white); background: var(--forest-deep); }
.section-light { background: var(--milk); }

.overline {
  margin: 0 0 20px;
  font-family: var(--overline-font);
  color: var(--sage-light);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.overline--green { color: var(--sage); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: -.035em;
}
h1 {
  max-width: 800px;
  font-size: clamp(48px, 6.3vw, 78px);
  line-height: .98;
}
h2 {
  max-width: 880px;
  font-size: clamp(36px, 4.7vw, 58px);
  line-height: 1.04;
}
h3 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.12; }
p { font-size: 18px; line-height: 1.55; }
.lead {
  max-width: 700px;
  margin: 30px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.44;
}

.round { position: absolute; border-radius: 50%; pointer-events: none; }
.round--hero-a { width: 520px; height: 520px; right: -150px; top: -190px; background: rgba(44, 95, 45, .85); }
.round--hero-b { width: 500px; height: 500px; right: -210px; bottom: -170px; background: rgba(31, 78, 42, .58); border: 1px solid rgba(255,255,255,.06); }
.round--region { width: 440px; height: 440px; left: -190px; bottom: -260px; background: rgba(44,95,45,.58); }
.round--cta { width: 560px; height: 560px; right: -180px; bottom: -230px; background: rgba(44,95,45,.72); }

.hero { min-height: 790px; padding-block: clamp(72px, 8vw, 112px); display: flex; align-items: center; }
.hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(500px, .88fr);
  gap: clamp(40px, 6vw, 82px);
  align-items: center;
}
.hero__content { padding-top: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button--light { color: var(--forest-deep); background: var(--milk); }
.button--outline { color: var(--white); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.06); }
.button--green { min-height: 44px; color: var(--white); background: var(--green); padding-inline: 20px; font-size: 14px; }
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 88px;
  color: var(--sage);
  font-size: 15px;
}
.meta-line span:not(:last-child)::after { content: '·'; margin-left: 16px; color: rgba(201,216,182,.54); }

.hero__visual {
  position: relative;
  min-height: 610px;
}
.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 66px rgba(0,0,0,.25);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card--main { right: 42px; top: 54px; width: min(94%, 500px); height: 500px; }
.hero-card--main img {
  object-fit: contain;
  object-position: center;
  transform: none;
}
.hero-card--small { width: 235px; height: 210px; border-radius: 22px; }
.hero-card--top { right: 0; top: 0; transform: translate(22px, -8px); }
.hero-card--top img { object-position: center 42%; }
.hero-card--bottom { left: 0; bottom: 20px; transform: translate(-8px, 16px); }
.hero-card--bottom img { object-position: 55% 42%; }

.intro { padding-bottom: 52px; }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: start;
}
.intro__text p { margin-top: 0; color: var(--muted); font-size: 20px; }
.intro__text p:last-child { margin-bottom: 0; }

.project-split, .access-grid, .safe-grid, .contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: center;
}
.project-copy { max-width: 540px; }
.accent-list { display: grid; gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.accent-list li {
  position: relative;
  padding-left: 36px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}
.accent-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .42em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ochre);
}
.accent-list strong { color: var(--text); }

.image-panel {
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  background: #dfe4d8;
  border: 1px solid rgba(31,58,38,.08);
  box-shadow: var(--shadow);
}
.image-panel img { width: 100%; height: 100%; object-fit: cover; }
.image-panel--map {
  display: block;
  align-self: center;
  aspect-ratio: 873 / 566;
  min-height: 0;
}
.image-panel--map img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.image-panel figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(244,242,234,.88);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  backdrop-filter: blur(10px);
}
.image-panel--map figcaption {
  display: none;
}
[data-lightbox-source] {
  cursor: zoom-in;
}
[data-lightbox-source]:focus-visible {
  outline: 3px solid rgba(181, 123, 55, .72);
  outline-offset: 4px;
}
.image-panel--winter {
  align-self: center;
  aspect-ratio: 3 / 2;
  min-height: 0;
}
.image-panel--winter img {
  height: 100%;
  object-position: center;
}
.image-panel--tall {
  align-self: center;
  aspect-ratio: 3 / 2;
  min-height: 0;
}
.image-panel--tall img {
  height: 100%;
  object-position: center;
}

.gallery-section { background: #fff; padding-block: clamp(82px, 8vw, 118px); }
.section-heading { max-width: 850px; margin-bottom: 40px; }
.section-heading p { color: var(--muted); }
.section-heading--center { margin-inline: auto; text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  grid-template-rows: 320px 320px;
  gap: 28px;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--forest);
  box-shadow: var(--shadow);
}
.gallery-card--large { grid-row: span 2; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card--large img { object-position: 50% 55%; }
.gallery-card:not(.gallery-card--large) img { object-position: 50% 36%; }
.gallery-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(24,51,33,.82), rgba(24,51,33,0));
}
.gallery-card figcaption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 16px;
  line-height: 1.45;
}

.region { padding-block: clamp(86px, 8.5vw, 116px); }
.dark-heading { position: relative; z-index: 2; max-width: 820px; margin-bottom: 44px; }
.dark-heading p { color: rgba(255,255,255,.75); font-size: 20px; }
.soft-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.soft-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border-radius: 18px;
  background: var(--milk);
  color: var(--text);
  box-shadow: 0 16px 44px rgba(0,0,0,.08);
}
.soft-card h3 { color: var(--green); font-size: clamp(26px, 2.4vw, 34px); }
.soft-card p { margin: 28px 0 0; color: var(--muted); }

.access-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .86fr); }
.access-copy { max-width: 560px; }

.problem h2 { margin-bottom: 40px; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.problem-card {
  padding: clamp(30px, 4vw, 44px);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 55px rgba(31,58,38,.06);
}
.problem-card--light { background: var(--white); }
.problem-card--light p { color: var(--muted); }
.problem-card--dark { color: var(--white); background: var(--forest-deep); border-color: rgba(255,255,255,.08); }
.problem-card--dark p { color: rgba(255,255,255,.82); }
.problem-card blockquote {
  margin: 42px 0 0;
  color: var(--sage-light);
  font-family: var(--heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.08;
}
.simple-list { display: grid; gap: 15px; margin: 30px 0 0; padding: 0; list-style: none; }
.simple-list li { position: relative; padding-left: 32px; color: var(--muted); font-weight: 800; }
.simple-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #6B7B67; }

.safe-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); }
.steps { display: grid; gap: 26px; margin-top: 36px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; }
.step span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--sage);
  font-weight: 900;
  font-size: 22px;
}
.step h3 { margin-bottom: 6px; font-family: var(--body); letter-spacing: 0; font-size: 21px; }
.step p { margin: 0; color: var(--muted); }

.request { padding-block: clamp(92px, 9vw, 132px); }
.request__content { position: relative; z-index: 2; max-width: 900px; margin-left: max(calc((100% - var(--container)) / 2), 24px); }
.request p { max-width: 810px; color: rgba(255,255,255,.78); font-size: 22px; }
.request-box {
  max-width: 760px;
  margin-top: 38px;
  padding: 28px 32px;
  border-radius: 18px;
  background: rgba(44,95,45,.62);
  color: rgba(255,255,255,.9);
  font-size: 19px;
  line-height: 1.5;
}
.request-box strong { color: var(--sage-light); }

.documents { background: #fff; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.doc-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 350px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(31,58,38,.07);
}
.doc-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: linear-gradient(145deg, #ECE9DF, #F8F6EF);
}
.doc-preview img {
  width: 100%;
  max-height: 286px;
  object-fit: cover;
  object-position: top center;
  border-radius: 13px;
  border: 1px solid rgba(31,58,38,.10);
  box-shadow: 0 14px 32px rgba(31,58,38,.10);
}
.doc-content { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
.doc-content h3 { margin-bottom: 14px; color: var(--text); }
.doc-content p { margin: 0; color: var(--muted); }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.text-link { color: var(--green); font-weight: 900; border-bottom: 1px solid rgba(44,95,45,.28); }

.contacts { padding-block: clamp(62px, 6.8vw, 88px); }
.contacts-grid { grid-template-columns: .88fr .92fr; }
.contacts p { color: rgba(255,255,255,.76); }
.contact-card {
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  font-style: normal;
}
.contact-card a {
  display: block;
  margin-bottom: 12px;
  font-family: 'Circle/Wix', Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 2.9vw, 34px);
  line-height: 1.14;
  letter-spacing: 0;
  color: var(--white);
}
.contact-card p { margin: 24px 0 0; font-size: 16px; line-height: 1.55; }
.footer { padding: 26px 0; color: rgba(255,255,255,.68); background: var(--forest-deep); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; }
.cookie-consent[hidden] { display: none; }
.cookie-consent {
  position: fixed;
  z-index: 90;
  right: clamp(16px, 3vw, 38px);
  bottom: clamp(16px, 3vw, 34px);
  width: min(420px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  color: rgba(255,255,255,.88);
  background: rgba(24, 51, 33, .94);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
}
.cookie-consent p {
  margin: 0;
  font-size: 14px;
  line-height: 1.42;
}
.cookie-consent__button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--forest-deep);
  background: var(--milk);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.cookie-consent__button:hover {
  background: var(--white);
  transform: translateY(-1px);
}
.cookie-consent__button:focus-visible {
  outline: 3px solid rgba(181, 123, 55, .72);
  outline-offset: 3px;
}



/* Added intro block before the hero */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.resident-cover {
  min-height: 760px;
  padding-top: clamp(78px, 8vw, 118px);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 16% 14%, rgba(127, 166, 106, .14), transparent 32%),
    linear-gradient(135deg, var(--forest-deep), #0f2a1b 72%);
}
.resident-cover__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .55fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: end;
  padding-bottom: clamp(46px, 5vw, 72px);
}
.resident-cover__headline h2 {
  max-width: 940px;
  color: var(--white);
  font-size: clamp(48px, 5.8vw, 82px);
  line-height: .98;
}
.resident-cover__side {
  position: relative;
  display: grid;
  gap: 26px;
  padding: clamp(28px, 3.8vw, 44px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(244, 242, 234, .09);
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.resident-cover__side p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.44;
}
.resident-cover__plus {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  color: var(--forest-deep);
  background: var(--milk);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  transition: transform .2s ease, background .2s ease;
}
.resident-cover__plus:hover { transform: translateY(-2px) rotate(90deg); background: var(--white); }
.resident-cover__photo {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 48px));
  height: clamp(270px, 28vw, 430px);
  margin: 0 auto -1px;
  overflow: hidden;
  border-radius: 34px 34px 0 0;
  border: 1px solid rgba(255,255,255,.14);
  border-bottom: 0;
  box-shadow: 0 -18px 70px rgba(0,0,0,.20);
}
.resident-cover__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,51,33,.16), transparent 44%);
  pointer-events: none;
}
.resident-cover__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.round--resident-a { width: 540px; height: 540px; right: -210px; top: -180px; background: rgba(44,95,45,.62); }
.round--resident-b { width: 420px; height: 420px; left: -220px; bottom: 60px; background: rgba(127,166,106,.10); border: 1px solid rgba(255,255,255,.06); }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 20, .66);
  backdrop-filter: blur(14px);
}
.modal__panel {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: clamp(34px, 5vw, 62px);
  border-radius: 30px;
  border: 1px solid rgba(31,58,38,.10);
  background: var(--milk);
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0,0,0,.34);
}
.modal__panel h2 { max-width: 720px; font-size: clamp(34px, 4.2vw, 54px); }
.modal__panel p:last-child { margin-bottom: 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--forest-deep);
  background: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.modal-open body { overflow: hidden; }

@media (max-width: 1080px) {
  .resident-cover__layout { grid-template-columns: 1fr; align-items: start; }
  .resident-cover__side { max-width: 720px; }
  .nav { display: none; }
  .hero { min-height: auto; }
  .hero__layout, .intro__grid, .project-split, .access-grid, .safe-grid, .contacts-grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 560px; }
  .hero-card--main { width: 76%; right: 8%; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-card, .gallery-card--large { height: 420px; grid-row: auto; }
  .soft-cards, .doc-grid, .problem-grid { grid-template-columns: 1fr; }
  .doc-card { grid-template-columns: 220px 1fr; }
}

@media (max-width: 700px) {
  .resident-cover { min-height: auto; padding-top: 64px; }
  .resident-cover__layout { width: min(100% - 32px, var(--container)); padding-bottom: 36px; }
  .resident-cover__headline h2 { font-size: clamp(38px, 11vw, 56px); }
  .resident-cover__side { padding: 24px; border-radius: 22px; }
  .resident-cover__photo { width: min(100% - 32px, var(--container)); height: 280px; border-radius: 24px 24px 0 0; }
  .container { width: min(100% - 32px, var(--container)); }
  .site-header { min-height: 66px; padding-inline: 16px; }
  .brand__logo { width: 42px; height: 42px; font-size: 16px; }
  .brand__caption { font-size: 11px; letter-spacing: .12em; }
  .section { padding-block: 64px; }
  h1 { font-size: clamp(41px, 12vw, 58px); }
  h2 { font-size: clamp(32px, 9vw, 44px); }
  .overline { font-size: 10px; letter-spacing: .02em; }
  .lead, .intro__text p, .request p { font-size: 18px; }
  .hero__visual { min-height: 430px; }
  .hero-card--main { top: 36px; right: 0; width: 84%; height: 360px; }
  .hero-card--small { width: 155px; height: 145px; }
  .hero-card--top { top: 4px; right: -8px; }
  .hero-card--bottom { left: 0; bottom: 0; }
  .meta-line { margin-top: 48px; display: grid; gap: 8px; }
  .meta-line span::after { display: none; }
  .image-panel--winter { min-height: 0; }
  .image-panel--tall { min-height: 0; }
  .image-panel--map { min-height: 0; }
  .gallery-card, .gallery-card--large { height: 360px; }
  .soft-card { min-height: auto; }
  .problem-card { padding: 26px; }
  .doc-card { grid-template-columns: 1fr; }
  .doc-preview img { max-height: 240px; }
  .contact-card { padding: 22px; }
  .contact-card a { font-size: 24px; }
  .footer__inner { flex-direction: column; }
  .cookie-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .cookie-consent__button {
    width: 100%;
  }
}

/* Final edits for КБФ HTML version */
.brand { gap: 0; }
.nav { gap: 34px; }
.docs { border-top: 1px solid rgba(31, 58, 38, .08); }
.contacts { border-top: 1px solid rgba(255,255,255,.08); }
.contact-card p { margin-bottom: 0; }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; gap: 16px; }
  .nav { gap: 16px; }
}

/* V3 edits: more nature views, stronger Vygrino block, final visual slider */
.resident-cover__headline h2 {
  max-width: 1080px;
  font-size: clamp(38px, 4.35vw, 62px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.resident-cover__layout {
  align-items: center;
}
.resident-cover__photo img {
  object-position: center 58%;
}
.region .overline {
  margin-bottom: 28px;
}
.region .dark-heading {
  max-width: 1120px;
  margin-bottom: 56px;
}
.region .dark-heading h2 {
  max-width: 980px;
  font-size: clamp(54px, 7.2vw, 96px);
  line-height: .96;
  letter-spacing: -.045em;
}
.region .dark-heading p {
  max-width: 760px;
  margin-top: 26px;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.42;
}
.gallery-card--large img { object-position: center center; }
.gallery-card:not(.gallery-card--large) img { object-position: center center; }
.photo-slider {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(127, 166, 106, .13), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--milk) 100%);
  border-top: 1px solid rgba(31, 58, 38, .08);
}
.slider-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.slider-head h2 { max-width: 780px; }
.slider-controls {
  display: inline-flex;
  gap: 12px;
  flex: 0 0 auto;
}
.slider-button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 58, 38, .14);
  border-radius: 50%;
  color: var(--forest-deep);
  background: var(--white);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(31, 58, 38, .08);
  transition: transform .18s ease, background .18s ease;
}
.slider-button:hover { transform: translateY(-1px); background: var(--milk); }
.visual-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 430px);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 4px 2px 18px;
  scrollbar-color: rgba(44,95,45,.55) rgba(31,58,38,.10);
}
.visual-slide {
  position: relative;
  overflow: hidden;
  height: 390px;
  border-radius: 26px;
  background: var(--forest);
  scroll-snap-align: start;
  cursor: zoom-in;
  box-shadow: 0 20px 56px rgba(31, 58, 38, .12);
}
.visual-slide:focus-visible {
  outline: 3px solid rgba(181, 123, 55, .72);
  outline-offset: 4px;
}
.visual-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.visual-slide:hover img { transform: scale(1.03); }
.visual-slide::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(to top, rgba(24,51,33,.86), transparent);
}
.visual-slide figcaption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  margin: 0;
  color: rgba(255,255,255,.93);
  font-family: var(--heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
}
.seasonal-gallery {
  padding-top: clamp(72px, 7vw, 104px);
}
.seasonal-gallery .visual-slider {
  grid-auto-columns: minmax(230px, 292px);
}
.seasonal-gallery .visual-slide {
  height: 390px;
}
.seasonal-gallery .visual-slide img {
  object-position: center;
}

.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(14, 31, 21, .78);
  backdrop-filter: blur(12px);
}
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(82vh, 820px);
  display: grid;
  gap: 14px;
}
.gallery-lightbox__panel img {
  width: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  border-radius: 18px;
  background: rgba(244, 242, 234, .08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
}
.gallery-lightbox__panel figcaption {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-family: var(--heading);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 58, 38, .16);
  border-radius: 50%;
  color: var(--forest-deep);
  background: var(--milk);
  font-family: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease;
}
.gallery-lightbox__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}
.gallery-lightbox__nav:focus-visible {
  outline: 3px solid rgba(181, 123, 55, .72);
  outline-offset: 3px;
}
.gallery-lightbox__nav[hidden] {
  display: none;
}
.gallery-lightbox__nav--prev {
  left: clamp(16px, 4vw, 58px);
}
.gallery-lightbox__nav--next {
  right: clamp(16px, 4vw, 58px);
}
.gallery-lightbox__close {
  position: absolute;
  z-index: 2;
  right: -18px;
  top: -18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 58, 38, .16);
  border-radius: 50%;
  color: var(--forest-deep);
  background: var(--milk);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .20);
}
.gallery-lightbox__close:focus-visible {
  outline: 3px solid rgba(181, 123, 55, .72);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .resident-cover__headline h2 { font-size: clamp(42px, 7vw, 64px); }
  .region .dark-heading h2 { font-size: clamp(48px, 8vw, 76px); }
  .slider-head { align-items: start; flex-direction: column; }
}

@media (max-width: 700px) {
  .resident-cover__headline h2 { font-size: clamp(34px, 9vw, 48px); }
  .region .dark-heading h2 { font-size: clamp(40px, 11vw, 58px); }
  .region .dark-heading p { font-size: 19px; }
  .visual-slider { grid-auto-columns: minmax(260px, 82vw); }
  .visual-slide { height: 330px; border-radius: 22px; }
  .visual-slide figcaption { font-size: 24px; }
  .seasonal-gallery .visual-slider { grid-auto-columns: minmax(230px, 74vw); }
  .seasonal-gallery .visual-slide { height: 340px; }
  .gallery-lightbox { padding: 18px; }
  .gallery-lightbox__close { right: 10px; top: 10px; }
  .gallery-lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  .gallery-lightbox__nav--prev { left: 12px; }
  .gallery-lightbox__nav--next { right: 12px; }
  .gallery-lightbox__panel img { border-radius: 14px; }
}


/* V4 edits: smaller heading scale and fixed 2-line first resident heading */
h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.55vw, 58px);
  line-height: 1.03;
  letter-spacing: -.035em;
}
h2 {
  max-width: 820px;
  font-size: clamp(30px, 3.55vw, 44px);
  line-height: 1.08;
  letter-spacing: -.032em;
}
h3 {
  font-size: clamp(21px, 1.85vw, 26px);
  line-height: 1.15;
}
.resident-cover__layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: clamp(28px, 4vw, 56px);
}
.resident-cover__headline h2 {
  max-width: none;
  font-size: clamp(32px, 3.25vw, 44px);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.resident-cover__headline h2 span {
  display: block;
  white-space: nowrap;
}
.resident-cover__side {
  padding: clamp(24px, 3vw, 34px);
}
.resident-cover__side p {
  font-size: clamp(17px, 1.35vw, 20px);
}
.hero h1 {
  font-size: clamp(40px, 4.8vw, 62px);
  line-height: 1.02;
}
.intro h2,
.project-copy h2,
.access-copy h2,
.problem h2,
.safe-copy h2,
.docs h2,
.slider-head h2,
.contacts h2 {
  font-size: clamp(30px, 3.25vw, 42px);
  line-height: 1.08;
}
.region .dark-heading h2 {
  font-size: clamp(42px, 5.6vw, 70px);
  line-height: 1;
}
.visual-slide figcaption {
  font-size: 24px;
}
.modal__panel h2 {
  font-size: clamp(30px, 3.25vw, 42px);
  line-height: 1.08;
}
@media (max-width: 1180px) {
  .resident-cover__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 34px;
  }
  .resident-cover__headline h2 {
    font-size: clamp(30px, 3.1vw, 38px);
  }
}
@media (max-width: 900px) {
  .resident-cover__layout {
    grid-template-columns: 1fr;
  }
  .resident-cover__headline h2 span {
    white-space: normal;
  }
}
@media (max-width: 700px) {
  h1 { font-size: clamp(34px, 10vw, 46px); }
  h2 { font-size: clamp(28px, 8vw, 38px); }
  .resident-cover__headline h2 { font-size: clamp(31px, 8.6vw, 42px); }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .region .dark-heading h2 { font-size: clamp(36px, 10vw, 48px); }
}

/* V4.1 correction: keep the first resident headline in exactly two desktop lines */
.resident-cover__layout {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 270px);
  gap: clamp(24px, 2.8vw, 36px);
}
.resident-cover__headline h2 {
  font-size: clamp(28px, 2.45vw, 36px);
  line-height: 1.08;
  max-width: none;
}
.resident-cover__side {
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: 24px;
}
.resident-cover__side p {
  font-size: clamp(16px, 1.15vw, 18px);
}
@media (max-width: 1180px) {
  .resident-cover__layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
  }
  .resident-cover__headline h2 {
    font-size: clamp(27px, 2.45vw, 34px);
  }
}
@media (max-width: 900px) {
  .resident-cover__layout { grid-template-columns: 1fr; }
  .resident-cover__headline h2 span { white-space: normal; }
}

/* V5 UX correction: first screen / resident hero composition */
@media (min-width: 901px) {
  .resident-cover {
    min-height: calc(100svh - 76px);
    padding-top: clamp(56px, 6.2vw, 84px);
    justify-content: flex-start;
  }

  .resident-cover__layout {
    width: min(1180px, calc(100% - 96px));
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: clamp(42px, 5vw, 76px);
    align-items: center;
    padding-bottom: 0;
  }

  .resident-cover__headline {
    max-width: 860px;
    padding-top: 10px;
  }

  .resident-cover__headline .overline {
    margin-bottom: 22px;
  }

  .resident-cover__headline h2 {
    max-width: 880px;
    font-size: clamp(28px, 2.45vw, 36px);
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .resident-cover__headline h2 span {
    display: block;
    white-space: nowrap;
  }

  .resident-cover__side {
    align-self: center;
    min-height: 320px;
    padding: 34px 34px 30px;
    border-radius: 26px;
  }

  .resident-cover__side p {
    max-width: 285px;
    font-size: 18px;
    line-height: 1.44;
  }

  .resident-cover__plus {
    width: 64px;
    height: 64px;
    margin-top: 8px;
  }

  .resident-cover__photo {
    width: min(1180px, calc(100% - 96px));
    height: clamp(245px, 28vh, 330px);
    margin-top: clamp(48px, 5.5vw, 68px);
    border-radius: 34px 34px 0 0;
  }

  .resident-cover__photo img {
    object-position: center 54%;
  }

  .round--resident-a {
    width: 560px;
    height: 560px;
    right: -180px;
    top: -120px;
  }

  .round--resident-b {
    width: 360px;
    height: 360px;
    left: -140px;
    bottom: 118px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .resident-cover__layout,
  .resident-cover__photo {
    width: min(100% - 64px, 1080px);
  }

  .resident-cover__layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 42px;
  }

  .resident-cover__headline h2 {
    font-size: clamp(27px, 2.35vw, 32px);
  }

  .resident-cover__side {
    min-height: 292px;
    padding: 28px;
  }

  .resident-cover__side p {
    font-size: 16px;
  }
}

/* V6: redesigned first screen as approved UX hero */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(24, 51, 33, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(18px);
}

.resident-cover {
  position: relative;
  min-height: calc(100svh - 76px);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--forest-deep);
  isolation: isolate;
}

.resident-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 86% 18%, rgba(44, 95, 45, .18), transparent 28%),
    linear-gradient(90deg, rgba(12, 35, 22, .78) 0%, rgba(15, 45, 27, .58) 38%, rgba(15, 45, 27, .24) 68%, rgba(15, 45, 27, .10) 100%),
    linear-gradient(180deg, rgba(12, 35, 22, .12) 0%, rgba(12, 35, 22, .36) 100%);
  pointer-events: none;
}

.resident-cover::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: -170px;
  bottom: -210px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(127, 166, 106, .34);
  background: rgba(44, 95, 45, .10);
  pointer-events: none;
}

.resident-cover .round--resident-a {
  z-index: 2;
  right: -180px;
  top: -210px;
  width: 560px;
  height: 560px;
  background: rgba(44, 95, 45, .34);
}

.resident-cover .round--resident-b { display: none; }

.resident-cover__photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.resident-cover__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 32, 20, .10), rgba(10, 32, 20, 0) 44%);
}

.resident-cover__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: none;
}

.resident-cover__layout {
  position: relative;
  z-index: 3;
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(42px, 6vw, 82px);
}

.resident-cover__headline {
  max-width: 780px;
  transform: translateY(14px);
}

.resident-cover__headline .overline {
  margin-bottom: clamp(22px, 3vw, 34px);
  color: rgba(244, 242, 234, .86);
  letter-spacing: .02em;
}

.resident-cover__headline h2 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(48px, 5.25vw, 78px);
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 10px 42px rgba(0,0,0,.32);
}

.resident-cover__headline h2 span { display: inline; }
.resident-cover__headline h2 span + span::before { content: ' '; }

.resident-cover__side {
  align-self: center;
  max-width: 430px;
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  padding: clamp(30px, 4vw, 48px);
  border-radius: 30px;
  border: 1px solid rgba(244, 242, 234, .16);
  background: linear-gradient(145deg, rgba(244, 242, 234, .10), rgba(44, 95, 45, .18));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
  backdrop-filter: none;
}

.resident-cover__side p {
  max-width: 330px;
  color: rgba(244, 242, 234, .88);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.46;
  font-weight: 600;
}

.resident-cover__plus {
  width: 70px;
  height: 70px;
  border: 0;
  color: var(--forest-deep);
  background: var(--milk);
  font-size: 40px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .18);
}

@media (max-width: 1180px) {
  .resident-cover__layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 44px;
  }
  .resident-cover__headline h2 { font-size: clamp(45px, 5.1vw, 64px); }
  .resident-cover__side { padding: 32px; }
  .resident-cover__side p { font-size: 20px; }
}

@media (max-width: 920px) {
  .resident-cover { min-height: auto; }
  .resident-cover__layout {
    min-height: 760px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 32px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .resident-cover__headline { transform: none; max-width: 680px; }
  .resident-cover__headline h2 { font-size: clamp(42px, 9vw, 62px); }
  .resident-cover__side { max-width: 560px; }
  .resident-cover__photo img { object-position: center 50%; }
}

@media (max-width: 560px) {
  .resident-cover__layout {
    width: min(100% - 32px, var(--container));
    min-height: 700px;
    padding-top: 42px;
    padding-bottom: 42px;
  }
  .resident-cover__headline .overline { letter-spacing: .02em; margin-bottom: 18px; }
  .resident-cover__headline h2 { font-size: clamp(34px, 10.8vw, 48px); line-height: 1.04; }
  .resident-cover__side { padding: 24px; border-radius: 24px; }
  .resident-cover__side p { font-size: 18px; }
  .resident-cover__plus { width: 58px; height: 58px; font-size: 34px; }
}

/* V8 correction: calmer heading scale across the whole landing */
h1 {
  max-width: 720px;
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.032em;
}

h2 {
  max-width: 780px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -.028em;
}

h3 {
  font-size: clamp(20px, 1.55vw, 24px);
  line-height: 1.18;
}

.hero h1,
.intro h2,
.project-copy h2,
.access-copy h2,
.problem h2,
.safe-copy h2,
.docs h2,
.slider-head h2,
.contacts h2,
.modal__panel h2 {
  font-size: clamp(28px, 2.85vw, 40px);
  line-height: 1.12;
  max-width: 780px;
}

.region .dark-heading h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.04;
  max-width: 860px;
}

/* First screen: calmer corporate composition */
.resident-cover__layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  align-items: end;
  gap: clamp(56px, 8vw, 128px);
  padding-top: clamp(84px, 10vw, 130px);
  padding-bottom: clamp(72px, 8vw, 112px);
}

.resident-cover__headline {
  max-width: 650px;
  align-self: end;
  transform: none;
}

.resident-cover__headline h2 {
  max-width: 650px;
  font-family: var(--heading);
  font-size: clamp(30px, 2.75vw, 40px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -.024em;
  text-shadow: 0 10px 34px rgba(0,0,0,.34);
}

.resident-cover__headline .overline {
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.resident-cover__side {
  align-self: end;
  max-width: 370px;
  padding: clamp(26px, 3vw, 36px);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(12, 35, 22, .34), rgba(44, 95, 45, .20));
}

.resident-cover__side p {
  max-width: 292px;
  font-size: clamp(15px, .98vw, 17px);
  line-height: 1.55;
}

.resident-cover__plus {
  width: 58px;
  height: 58px;
  font-size: 32px;
}

@media (max-width: 1180px) {
  h1 { font-size: clamp(34px, 4.2vw, 48px); }
  h2,
  .hero h1,
  .intro h2,
  .project-copy h2,
  .access-copy h2,
  .problem h2,
  .safe-copy h2,
  .docs h2,
  .slider-head h2,
  .contacts h2,
  .modal__panel h2 { font-size: clamp(27px, 3.4vw, 36px); }
  .region .dark-heading h2 { font-size: clamp(34px, 5vw, 48px); }
  .resident-cover__layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 40px; }
  .resident-cover__headline h2 { font-size: clamp(29px, 3.25vw, 37px); }
  .resident-cover__side p { font-size: 16px; }
}

@media (max-width: 920px) {
  .resident-cover__layout {
    align-items: start;
    gap: 28px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .resident-cover__headline { max-width: 620px; }
  .resident-cover__headline h2 { font-size: clamp(29px, 5.6vw, 38px); line-height: 1.14; }
  .resident-cover__side { max-width: 500px; align-self: start; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(30px, 9vw, 40px); }
  h2,
  .hero h1,
  .intro h2,
  .project-copy h2,
  .access-copy h2,
  .problem h2,
  .safe-copy h2,
  .docs h2,
  .slider-head h2,
  .contacts h2,
  .modal__panel h2 { font-size: clamp(26px, 7.5vw, 34px); }
  .region .dark-heading h2 { font-size: clamp(32px, 9vw, 42px); }
  .resident-cover__headline h2 { font-size: clamp(26px, 7.2vw, 32px); line-height: 1.15; }
  .resident-cover__side p { font-size: 16px; }
}

/* Mobile fix: keep the first screen readable and prevent the intro card from covering the headline. */
@media (max-width: 1080px) {
  .resident-cover {
    min-height: auto;
    align-items: stretch;
  }

  .resident-cover__layout {
    width: min(100% - 40px, var(--container));
    min-height: auto;
    grid-template-columns: 1fr;
    align-content: start;
    align-items: start;
    gap: 28px;
    padding-top: clamp(44px, 7vw, 72px);
    padding-bottom: clamp(48px, 8vw, 76px);
  }

  .resident-cover__headline {
    max-width: 680px;
    align-self: auto;
    transform: none;
  }

  .resident-cover__headline h2 {
    max-width: 680px;
    font-size: clamp(30px, 5vw, 40px);
    line-height: 1.1;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .resident-cover__side {
    width: min(100%, 560px);
    max-width: 560px;
    align-self: auto;
    justify-self: start;
    gap: 24px;
    padding: 24px;
    border-radius: 22px;
  }

  .resident-cover__side p {
    max-width: none;
    font-size: clamp(16px, 3.2vw, 20px);
    line-height: 1.46;
  }

  .resident-cover__plus {
    width: 56px;
    height: 56px;
    justify-self: start;
    font-size: 32px;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
    height: 64px;
    padding: 8px 12px;
    align-items: center;
    gap: 0;
    border-bottom: 0;
  }

  .brand__logo {
    width: 46px;
    height: 46px;
    border-color: rgba(255,255,255,.18);
  }

  .brand__logo img {
    width: 150%;
    height: 150%;
  }

  .resident-cover {
    min-height: calc(100dvh - 64px);
  }

  .resident-cover::after,
  .resident-cover .round--resident-a {
    display: none;
  }

  .resident-cover::before {
    background:
      linear-gradient(
        180deg,
        rgba(16, 48, 38, .20) 0%,
        rgba(16, 48, 38, .40) 38%,
        rgba(11, 39, 31, .78) 100%
      );
  }

  .resident-cover__layout {
    width: min(100% - 32px, var(--container));
    min-height: calc(100dvh - 64px);
    align-content: start;
    justify-content: start;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 32px;
  }

  .resident-cover__headline {
    max-width: 100%;
  }

  .resident-cover__headline .overline {
    margin-bottom: 12px;
  }

  .resident-cover__headline h2 {
    max-width: 330px;
    font-size: clamp(34px, 9.8vw, 42px);
    line-height: .98;
    letter-spacing: 0;
  }

  .resident-cover__side {
    width: 100%;
    max-width: 330px;
    padding: 22px 20px;
    gap: 22px;
    border-radius: 20px;
    border-color: rgba(255, 255, 255, .16);
    background: rgba(18, 54, 43, .46);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
  }

  .resident-cover__side p {
    max-width: 280px;
    font-size: 15px;
    line-height: 1.42;
    font-weight: 500;
  }

  .resident-cover__plus {
    width: 46px;
    height: 46px;
    margin-top: 0;
    font-size: 28px;
    font-weight: 500;
  }

  .resident-cover__photo img {
    object-position: 56% center;
  }
}

@media (max-width: 1080px) {
  .site-header {
    position: sticky;
  }

  .menu-toggle {
    display: grid;
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    z-index: 3;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    color: rgba(255,255,255,.9);
    background: rgba(24, 51, 33, .96);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .24);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.2;
  }

  .nav a:hover,
  .nav a:focus-visible {
    color: var(--white);
    background: rgba(255,255,255,.08);
  }

  .site-header.is-menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (min-width: 1081px) {
  .site-header.is-menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* Contact form modal */
.contact-card__button {
  width: fit-content;
  margin-top: 8px;
  font-style: normal;
}

.contact-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-modal[hidden] { display: none; }

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 32, 20, .72);
  backdrop-filter: blur(8px);
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  color: var(--forest-deep);
  background: var(--milk);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
}

.contact-modal__panel h2 { margin: 8px 56px 10px 0; }
.contact-modal__intro { margin: 0 48px 28px 0; color: rgba(24, 51, 33, .72); }

.contact-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 58, 38, .16);
  border-radius: 50%;
  color: var(--forest-deep);
  background: var(--white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.contact-form { display: grid; gap: 18px; }
.contact-form__field { display: grid; gap: 8px; font-style: normal; font-weight: 600; }

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid rgba(31, 58, 38, .25);
  border-radius: 14px;
  padding: 13px 15px;
  color: var(--forest-deep);
  background: var(--white);
  font: inherit;
  font-weight: 400;
}

.contact-form__field textarea { min-height: 132px; resize: vertical; }

.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible,
.contact-modal__close:focus-visible {
  outline: 3px solid rgba(181, 123, 55, .72);
  outline-offset: 3px;
}

.contact-form__field input[aria-invalid="true"],
.contact-form__field textarea[aria-invalid="true"] { border-color: #a52c2c; }

.contact-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form__status { min-height: 24px; margin: -2px 0 0; font-size: 15px; }
.contact-form__status[data-state="error"] { color: #8c2424; }
.contact-form__status[data-state="success"] { color: var(--forest); font-weight: 700; }
.contact-form__submit { justify-self: start; }
.contact-form__submit:disabled { cursor: wait; opacity: .65; }

@media (max-width: 640px) {
  .contact-modal { align-items: end; padding: 12px; }
  .contact-modal__panel {
    max-height: calc(100dvh - 24px);
    padding: 30px 20px 24px;
    border-radius: 22px;
  }
  .contact-modal__close { top: 14px; right: 14px; }
  .contact-modal__intro { margin-right: 36px; }
  .contact-form__submit { width: 100%; }
}

/* V9: centered contacts */
.contacts {
  padding-block: clamp(52px, 6vw, 72px);
}

.contacts-grid {
  display: block;
}

.contacts__content {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 18px;
}

.contacts__intro {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .7);
}

.contact-card {
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 20px;
}

.contact-card__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.contact-card__links a {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 32px);
}

.contact-card__links a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: .85em;
  margin-right: 22px;
  vertical-align: -.08em;
  background: rgba(255, 255, 255, .32);
}

.contact-card__button {
  justify-self: center;
  margin-top: 8px;
}

.contact-card__address {
  max-width: 900px;
  font-size: 14px;
  color: rgba(255, 255, 255, .62);
}

.contact-card__address p {
  margin: 0;
  color: inherit;
}

.contact-card__address span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .78);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 700px) {
  .contacts {
    padding-block: 48px;
  }

  .contacts__content {
    gap: 16px;
  }

  .contact-card {
    gap: 18px;
  }

  .contact-card__links {
    flex-direction: column;
    gap: 8px;
  }

  .contact-card__links a {
    font-size: clamp(21px, 7vw, 27px);
  }

  .contact-card__links a + a::before {
    display: none;
  }

  .contact-card__button {
    margin-top: 6px;
  }

  .contact-card__address {
    font-size: 13px;
    line-height: 1.5;
  }
}
