:root {
  --ink: #17212a;
  --navy: #1f3d64;
  --navy-deep: #152b47;
  --blue: #1f3d64;
  --orange: #eb5a43;
  --paper: #f3f5f6;
  --white: #ffffff;
  --soft: #e7edf0;
  --muted: #6f7d87;
  --line: #d2dce1;
  --line-dark: rgba(255,255,255,.18);
  --container: min(1320px, calc(100vw - 72px));
  --sans: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy-deep); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
img,svg { max-width: 100%; }
em { font-style: normal; }
::selection { color: var(--white); background: var(--orange); }
.container { width: var(--container); margin-inline: auto; }
.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; }
.skip-link { position: fixed; z-index: 9999; left: 18px; top: -70px; padding: 11px 16px; color: var(--white); background: var(--orange); transition: top .2s; }
.skip-link:focus { top: 18px; }
.muted { color: var(--muted); }

.header { position: sticky; z-index: 800; top: 0; height: 86px; color: var(--ink); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: height .25s,box-shadow .25s; }
.header.scrolled { height: 72px; box-shadow: 0 10px 35px rgba(31,61,100,.09); backdrop-filter: blur(14px); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.brand { display: flex; width: 112px; height: 100%; align-items: center; }
.brand img { display: block; width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px,2vw,32px); }
.nav > a:not(.nav__button) { position: relative; padding: 10px 0; font-size: 12px; font-weight: 650; }
.nav > a:not(.nav__button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav > a:not(.nav__button):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__button { padding: 12px 18px; color: var(--white); background: var(--navy); font-size: 11px; font-weight: 750; }
.nav__button:hover { background: var(--orange); }
.menu-button { display: none; width: 46px; height: 46px; padding: 13px 10px; border: 0; background: transparent; cursor: pointer; }
.menu-button > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: transform .25s,opacity .25s; }

.section { padding: clamp(78px,7vw,112px) 0; }
main section { scroll-margin-top: 72px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-heading h2,.about h2,.disclosure h2,.appeal h2 { max-width: 900px; margin: 0; font-size: clamp(40px,4.5vw,67px); line-height: 1.02; letter-spacing: -.045em; }
.section-label { margin: 0 0 16px; color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.section-heading--light { color: var(--white); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 28px; padding: 0 18px 0 20px; border: 1px solid transparent; cursor: pointer; font-size: 12px; font-weight: 750; transition: color .25s,background .25s,border-color .25s,transform .25s; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--white); background: var(--navy); }
.button--primary:hover { background: var(--orange); }
.button--outline { color: var(--navy); background: transparent; border-color: var(--navy); }
.button--outline:hover { color: var(--white); background: var(--navy); }

/* First screen */
.hero { position: relative; padding: clamp(34px,4vw,58px) 0 0; background: var(--white); overflow: hidden; }
.hero__art { position: absolute; z-index: 0; left: max(0px,calc((100vw - 1320px)/2 - 120px)); bottom: -80px; width: min(790px,57vw); opacity: .075; mix-blend-mode: multiply; pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(350px,.72fr); gap: clamp(45px,7vw,100px); align-items: center; }
.hero__content { display: flex; flex-direction: column; justify-content: center; min-height: 630px; padding: 24px 0 58px; }
.hero__eyebrow { margin: 0 0 16px; color: var(--blue); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.hero h1 { max-width: 760px; margin: 0; color: var(--navy); font-size: clamp(58px,6.4vw,96px); line-height: .94; letter-spacing: -.06em; }
.hero__text { max-width: 610px; margin: 30px 0 0; color: var(--muted); font-size: 17px; }
.hero__buttons { display: flex; gap: 10px; margin-top: 36px; }
.hero__facts { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; margin: 47px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__facts div { min-width: 0; }
.hero__facts dt { margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.hero__facts dd { margin: 0; font-size: 13px; font-weight: 650; }

.director-profile--hero { width: 100%; max-width: 430px; justify-self: end; align-self: center; }
.director-profile--hero .director-profile__photo { min-height: 310px; aspect-ratio: 1.3/1; }
.director-profile--hero .director-profile__info { min-height: 255px; }
.director-profile--hero h2 { max-width: 330px; margin: 8px 0 7px; font-size: clamp(25px,2.25vw,34px); line-height: 1.08; letter-spacing: -.035em; }

/* Navigation */
.services { position: relative; background: var(--white); border-top: 1px solid var(--line); overflow: hidden; }
.services .container,.news .container,.houses .container,.disclosure .container,.appeal .container { position: relative; z-index: 1; }
.section-art { position: absolute; z-index: 0; display: block; max-width: none; object-fit: contain; pointer-events: none; user-select: none; opacity: .065; mix-blend-mode: multiply; }
.section-art--services { width: min(250px,21vw); height: 190px; right: 6vw; top: 8px; object-fit: contain; object-position: center top; opacity: .08; }
.section-art--news { width: min(720px,48vw); right: -120px; top: -60px; opacity: .045; }
.section-art--houses { width: min(600px,42vw); right: -45px; bottom: -155px; opacity: .12; filter: invert(1) grayscale(1); mix-blend-mode: screen; }
.section-art--disclosure { width: min(660px,48vw); left: -160px; bottom: -120px; opacity: .045; }
.section-art--appeal { width: min(670px,43vw); left: max(22px,calc((100vw - 1320px)/2)); top: clamp(390px,30vw,445px); opacity: .23; }
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 305px; display: flex; flex-direction: column; padding: 25px; color: var(--ink); background: var(--white); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; transition: color .28s,background .28s; }
.service-card:hover { color: var(--white); background: var(--navy); }
.service-card > span { color: var(--orange); font-size: 10px; font-weight: 800; }
.service-card svg { width: 62px; height: 62px; margin: 42px 0 auto; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 23px 0 6px; font-size: 21px; }
.service-card p { margin: 0; max-width: 220px; color: var(--muted); font-size: 12px; }
.service-card:hover p { color: rgba(255,255,255,.65); }
.service-card > b { position: absolute; right: 24px; bottom: 23px; font-size: 19px; transition: transform .25s; }
.service-card:hover > b { transform: translateX(5px); }

/* Company */
.about { background: var(--soft); }
.about__grid { display: grid; grid-template-columns: .82fr 1.05fr .78fr; gap: clamp(38px,5vw,76px); align-items: start; }
.about__title h2 { font-size: clamp(43px,4.5vw,68px); }
.about__lead { margin: 0 0 34px; font-size: clamp(21px,2vw,30px); line-height: 1.35; letter-spacing: -.025em; }
.about__list { border-top: 1px solid #c3d0d6; }
.about__list > div { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid #c3d0d6; }
.about__list span { color: var(--orange); font-size: 10px; font-weight: 800; }
.about__list p { margin: 0; }
.director-profile { background: var(--white); border: 1px solid #ccd7dc; box-shadow: 0 22px 55px rgba(31,61,100,.08); }
.director-profile__photo { position: relative; aspect-ratio: 4/4.55; display: grid; place-items: center; background: var(--navy); overflow: hidden; }
.director-profile__photo::before { content: none; display: none; }
.director-profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.director-profile__photo svg { width: 76%; fill: none; stroke: rgba(154,169,187,.65); stroke-width: 1.3; }
.director-profile__photo span { position: absolute; left: 20px; bottom: 17px; color: rgba(255,255,255,.58); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.director-profile__info { padding: 25px; }
.director-profile__info small { color: var(--orange); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.director-profile h3 { margin: 7px 0 5px; font-size: 22px; line-height: 1.18; }
.director-profile__info > a { color: var(--blue); font-size: 13px; font-weight: 700; }
.director-profile blockquote { margin: 23px 0 0; padding-top: 20px; color: #4e5c65; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.65; }

/* News */
.news { position: relative; background: var(--paper); overflow: hidden; }
.carousel-controls { display: flex; flex: 0 0 auto; gap: 8px; }
.carousel-controls[hidden] { display: none; }
.carousel-controls button { width: 50px; height: 50px; color: var(--navy); background: transparent; border: 1px solid var(--navy); cursor: pointer; font-size: 20px; transition: color .25s,background .25s,opacity .25s,transform .25s; }
.carousel-controls button:hover:not(:disabled) { color: var(--white); background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.carousel-controls button:disabled { opacity: .28; cursor: default; }
.carousel-controls--light button { color: var(--white); border-color: rgba(255,255,255,.62); }
.news-grid { display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.news-grid::-webkit-scrollbar,.houses-list::-webkit-scrollbar { display: none; }
.news-card { flex: 0 0 calc((100% - 36px)/3); min-width: 0; height: 530px; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); cursor: pointer; overflow: hidden; transition: box-shadow .3s,transform .3s; }
.news-grid:not(:has(.news-card:nth-child(2))) .news-card { flex-basis: 100%; }
.news-grid:has(.news-card:nth-child(2)):not(:has(.news-card:nth-child(3))) .news-card { flex-basis: calc((100% - 18px)/2); }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(31,61,100,.1); }
.news-card__image { position: relative; height: 278px; flex: 0 0 278px; overflow: hidden; background: var(--navy); }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.news-card:hover .news-card__image img { transform: scale(1.025); }
.news-card__pin { position: absolute; z-index: 2; left: 18px; top: 18px; padding: 7px 10px; color: var(--white); background: var(--orange); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.news-card__placeholder { position: absolute; inset: 0; color: var(--white); background: var(--navy); overflow: hidden; }
.news-card__placeholder::before { content: ""; position: absolute; width: 130px; height: 130px; right: -39px; top: -42px; border: 23px solid var(--orange); border-radius: 50%; opacity: .9; }
.news-card__placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-card__placeholder path,.news-card__placeholder circle { fill: none; stroke: #8fa0b6; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.news-card__placeholder .accent { stroke: var(--orange); }
.news-card__content { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.news-card__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.news-card h3 { display: -webkit-box; margin: 20px 0 10px; overflow: hidden; font-size: clamp(22px,2vw,30px); line-height: 1.15; letter-spacing: -.025em; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-card__content > p { display: -webkit-box; margin: 0 0 23px; color: var(--muted); overflow: hidden; font-size: 12px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.news-card__more { margin-top: auto; color: var(--blue); font-size: 10px; font-weight: 750; }

/* Houses */
.houses { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.houses::after { content: ""; position: absolute; right: -3vw; top: -55px; width: 360px; height: 360px; border: 58px solid rgba(235,90,67,.13); border-radius: 50%; pointer-events: none; }
.houses .container { position: relative; z-index: 1; }
.houses-list { display: flex; gap: 16px; padding: 1px 0 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.house-card { position: relative; flex: 0 0 calc((100% - 48px)/4); min-width: 255px; aspect-ratio: 1/1; scroll-snap-align: start; display: flex; flex-direction: column; padding: 25px; background: rgba(255,255,255,.055); border: 1px solid var(--line-dark); backdrop-filter: blur(3px); overflow: hidden; transition: background .3s,transform .3s,border-color .3s; }
.house-card::before { content: ""; position: absolute; width: 130px; height: 130px; right: -72px; top: -72px; border: 25px solid rgba(235,90,67,.18); border-radius: 50%; transition: transform .55s var(--ease),opacity .3s; }
.house-card:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.42); transform: translateY(-3px); }
.house-card:hover::before { transform: translate(-18px,18px) scale(1.08); opacity: 1; }
.house-card__index { color: #9aa9bb; font-size: 10px; font-weight: 800; }
.house-card small,.house-card dt { display: block; margin-bottom: 5px; color: rgba(255,255,255,.5); font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.house-card__address { margin: auto 0; }
.house-card h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.house-card dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.house-card dd { margin: 0; font-size: 14px; font-weight: 700; }
.house-card__arrow { position: absolute; right: 22px; top: 19px; font-size: 17px; }
.empty-state { min-height: 230px; display: grid; place-items: center; align-content: center; text-align: center; border-bottom: 1px solid var(--line-dark); }
.empty-state > span { color: #9aa9bb; font-size: 38px; }
.empty-state h3 { margin: 8px 0 4px; font-size: 26px; }
.empty-state p { margin: 0; color: rgba(255,255,255,.56); }

/* Disclosure */
.disclosure { position: relative; background: var(--white); overflow: hidden; }
.disclosure__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px 90px; align-items: start; }
.disclosure__intro { position: relative; align-self: start; }
.disclosure__intro .button { margin-top: 34px; }
.disclosure__landmark { display: block; width: 100%; margin-top: 70px; }
.disclosure__landmark path { fill: none; stroke: #8799af; stroke-width: 1.2; }
.legal-list { border-top: 1px solid var(--line); }
.legal-list details { border-bottom: 1px solid var(--line); }
.legal-list summary { list-style: none; display: grid; grid-template-columns: 42px 1fr 24px; align-items: center; gap: 10px; padding: 23px 0; cursor: pointer; font-size: 19px; font-weight: 650; }
.legal-list summary::-webkit-details-marker { display: none; }
.legal-list summary span { color: var(--orange); font-size: 10px; }
.legal-list summary i { font-size: 25px; font-weight: 300; font-style: normal; transition: transform .25s; }
.legal-list details[open] summary i { transform: rotate(45deg); color: var(--orange); }
.legal-list details > div { padding: 0 0 24px 52px; }
.legal-list details p { margin: 0 0 8px; }
.legal-list details small { color: var(--muted); }
.legal-note { grid-column: 1/-1; margin: 0; padding: 18px 22px; color: var(--muted); border: 1px solid var(--line); font-size: 11px; }

/* Appeal */
.appeal { position: relative; background: #e5eff5; overflow: hidden; }
.appeal__grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(55px,8vw,120px); align-items: start; }
.appeal__intro { position: relative; padding-bottom: clamp(390px,35vw,520px); }
.emergency-card { margin-top: 42px; padding: 22px; color: var(--white); background: var(--navy); border-left: 5px solid var(--orange); }
.emergency-card strong { font-size: 17px; }
.emergency-card p { margin: 7px 0 13px; color: rgba(255,255,255,.62); font-size: 12px; }
.text-link { padding: 0; color: #a7b4c4; background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 750; }
.appeal__landmark { display: block; width: 100%; margin-top: 55px; }
.appeal__landmark path,.appeal__landmark circle { fill: none; stroke: rgba(31,61,100,.45); stroke-width: 1.2; }
.appeal__landmark circle:first-child { stroke: rgba(235,90,67,.65); }
.appeal-form { padding: clamp(28px,4vw,48px); background: var(--white); border: 1px solid var(--line); }
.form-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 35px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-title span { font-size: 25px; font-weight: 700; }
.form-title small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.appeal-form label { display: block; margin-bottom: 20px; font-size: 11px; font-weight: 700; }
.appeal-form input,.appeal-form select,.appeal-form textarea { width: 100%; margin-top: 8px; padding: 13px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0; outline: 0; font-size: 14px; font-weight: 400; transition: border-color .2s,box-shadow .2s; }
.appeal-form textarea { min-height: 125px; resize: vertical; }
.appeal-form input:focus,.appeal-form select:focus,.appeal-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,61,100,.1); }
.honeypot { position: absolute !important; left: -10000px; }
.consent { display: flex !important; align-items: flex-start; gap: 11px; margin: 6px 0 27px !important; font-weight: 400 !important; }
.consent input { flex: 0 0 17px; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--orange); }
.consent span { color: var(--muted); font-size: 11px; }
.consent a { color: var(--blue); text-decoration: underline; }
.form-footer { display: flex; align-items: center; }
.form-result { margin-top: 18px; font-size: 12px; }
.form-result.success { padding: 13px; background: #e4f4e8; }
.form-result.error { padding: 13px; color: #8c2c25; background: #f9e8e6; }

/* Footer */
.footer { padding: 62px 0 22px; color: var(--white); background: var(--navy-deep); border-top: 5px solid var(--orange); }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 55px; }
.footer__logo { display: block; width: 150px; height: auto; }
.logo--light { filter: brightness(0) invert(1); }
.footer h3 { margin: 0 0 18px; color: #9aa9bb; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.footer__grid a,.footer-link,.footer__grid > div > p { display: block; margin: 0 0 9px; padding: 0; color: rgba(255,255,255,.68); background: none; border: 0; text-align: left; cursor: pointer; font-size: 11px; }
.footer__grid a:hover,.footer-link:hover { color: var(--white); }
.footer-documents__list a { display: block; }
.footer-documents__list a span { color: #8a9cb2; }
.footer-documents__list > span { color: #7f929f; font-size: 11px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 18px; color: rgba(255,255,255,.38); border-top: 1px solid rgba(255,255,255,.12); font-size: 9px; }

/* Dialogs */
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #66c87a; }
.dispatch-modal { width: min(650px,calc(100vw - 28px)); padding: clamp(34px,5vw,60px); color: var(--ink); background: var(--white); border: 0; border-top: 6px solid var(--orange); box-shadow: 0 30px 90px rgba(4,20,31,.35); overflow-x: hidden; }
.dispatch-modal::backdrop,.news-modal::backdrop { background: rgba(21,43,71,.72); backdrop-filter: blur(5px); }
.modal-close { position: absolute; right: 18px; top: 16px; width: 38px; height: 38px; color: currentColor; background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 24px; line-height: 1; }
.modal-close:hover { color: var(--white); background: var(--navy); border-color: var(--navy); }
.modal-tag { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.dispatch-modal h2 { max-width: 480px; margin: 28px 0 20px; font-size: clamp(34px,5vw,52px); line-height: 1.03; letter-spacing: -.04em; }
.dispatch-modal > p { max-width: 470px; color: var(--muted); }
.dispatch-phone { display: block; margin-top: 30px; color: var(--navy); font-size: clamp(27px,4vw,41px); font-weight: 700; }
.dispatch-email { display: block; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.modal-rule { height: 1px; margin: 30px 0 18px; background: var(--line); }
.dispatch-modal > small { display: block; color: var(--muted); }
.news-modal { width: min(900px,calc(100vw - 28px)); max-height: calc(100vh - 32px); padding: 0; color: var(--ink); background: var(--white); border: 0; box-shadow: 0 30px 100px rgba(4,20,31,.4); }
.news-modal__image { width: 100%; max-height: 390px; object-fit: cover; }
.news-modal__body { padding: clamp(30px,5vw,62px); }
.news-modal__meta { color: var(--orange); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.news-modal h2 { margin: 17px 0 25px; font-size: clamp(34px,5vw,58px); line-height: 1.05; letter-spacing: -.04em; }
.news-modal__text { color: #42515c; white-space: pre-wrap; font-size: 15px; line-height: 1.75; }

/* Privacy policy */
.legal-page { color: var(--ink); background: var(--paper); }
.legal-header { color: var(--white); background: var(--navy-deep); border-top: 5px solid var(--orange); }
.legal-header .container { min-height: 94px; display: flex; align-items: center; justify-content: space-between; }
.legal-header img { display: block; width: 105px; height: auto; filter: brightness(0) invert(1); }
.legal-header a:last-child { color: #afbbc9; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.legal-content { max-width: 1040px; padding-top: 75px; padding-bottom: 100px; }
.legal-content .eyebrow { margin: 0 0 22px; color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.legal-content h1 { margin: 0 0 54px; color: var(--navy); font-size: clamp(45px,6vw,76px); line-height: 1; letter-spacing: -.05em; }
.legal-content section { display: grid; grid-template-columns: 235px 1fr; gap: 44px; padding: 33px 0; border-top: 1px solid var(--line); }
.legal-content section h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.legal-content section p { grid-column: 2; margin: 0 0 13px; color: #4d5b65; }
.legal-content section a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-source { margin-top: 28px; padding: 17px 20px; color: var(--muted); border: 1px solid var(--line); font-size: 12px; }
.legal-source p { margin: 0; }
.legal-footer { color: var(--white); background: var(--navy-deep); border-top: 4px solid var(--orange); }
.legal-footer .container { min-height: 78px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease),transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  :root { --container: min(100% - 44px,980px); }
  .nav { gap: 16px; }
  .nav > a:not(.nav__button) { display: none; }
  .hero__grid { grid-template-columns: 1fr .72fr; gap: 42px; }
  .director-profile--hero .director-profile__photo { min-height: 280px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .news-card { flex-basis: calc((100% - 18px)/2); }
  .house-card { flex-basis: calc((100% - 32px)/3); }
  .disclosure__grid,.appeal__grid { gap: 50px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__grid > div:last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --container: calc(100vw - 32px); }
  .header,.header.scrolled { height: 72px; }
  .brand { width: 88px; }
  .menu-button { display: block; }
  .menu-button[aria-expanded="true"] > span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: fixed; z-index: 850; inset: 72px 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; color: var(--ink); background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 35px rgba(21,43,71,.15); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform .35s var(--ease),opacity .2s; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a:not(.nav__button) { display: block; padding: 13px 3px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__button { margin-top: 14px; text-align: center; }
  .section { padding: 70px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2,.about h2,.disclosure h2,.appeal h2 { font-size: 38px; }

  .hero { padding-top: 32px; }
  .hero__grid { display: block; }
  .hero__content { min-height: 0; padding: 0 0 40px; }
  .hero h1 { font-size: clamp(48px,14vw,64px); }
  .hero__eyebrow { margin-bottom: 12px; }
  .hero__text { font-size: 14px; }
  .hero__buttons { flex-direction: column; align-items: stretch; }
  .hero__facts { grid-template-columns: 1fr; }
  .director-profile--hero { max-width: none; margin: 0 0 40px; }
  .director-profile--hero .director-profile__photo { min-height: 0; aspect-ratio: 4/3.1; }
  .director-profile--hero .director-profile__info { min-height: 0; }
  .director-profile--hero h2 { font-size: 30px; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
  .service-card svg { margin-top: 30px; }

  .section-art { width: 430px; opacity: .035; }
  .section-art--houses { opacity: .08; right: -150px; }
  .section-art--appeal { top: 385px; left: 16px; width: calc(100vw - 32px); opacity: .21; }
  .hero__art { left: -70px; bottom: 410px; width: 620px; opacity: .055; }

  .section-heading { align-items: flex-end; }
  .carousel-controls { gap: 5px; }
  .carousel-controls button { width: 42px; height: 42px; }
  .news-card { flex-basis: 88%; height: 500px; }
  .news-card__image { height: 265px; flex-basis: 265px; }
  .news-card h3 { font-size: 27px; }

  .house-card { flex-basis: 84%; min-width: 0; }
  .house-card h3 { font-size: 19px; }

  .disclosure__grid,.appeal__grid { display: block; }
  .disclosure__intro { margin-bottom: 44px; }
  .disclosure__landmark { margin-top: 42px; }
  .legal-list summary { grid-template-columns: 30px 1fr 22px; font-size: 16px; }
  .legal-list details > div { padding-left: 40px; }
  .legal-note { margin-top: 30px; }

  .appeal__intro { margin-bottom: 42px; padding-bottom: 345px; }
  .emergency-card { margin-top: 28px; }
  .appeal__landmark { display: none; }
  .appeal-form { padding: 24px 17px; }
  .form-title { align-items: flex-start; }
  .form-title span { font-size: 21px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-footer .button { width: 100%; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
  .footer__grid > div:first-child { grid-column: 1/-1; }
  .footer__grid > div:last-child { grid-column: auto; }
  .footer__bottom { flex-direction: column; }
  .dispatch-modal { padding: 45px 23px 30px; }
  .dispatch-modal h2 { font-size: 34px; }
  .dispatch-phone { font-size: 26px; }
  .news-modal__body { padding: 28px 22px; }
  .news-modal h2 { font-size: 33px; }
  .legal-header .container { min-height: 78px; }.legal-header img { width: 88px; }.legal-content { padding-top: 55px; }.legal-content h1 { font-size: 42px; }.legal-content section { display: block; }.legal-content section h2 { margin-bottom: 17px; }.legal-content section p { margin-bottom: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Тёплая фирменная тема — по печатному макету УК «Софит» */
:root {
  --ink: #1f3d64;
  --navy: #1f3d64;
  --navy-deep: #152f4d;
  --blue: #1f3d64;
  --orange: #d68065;
  --paper: #ebe0d4;
  --white: #fffaf5;
  --soft: #e3d3c4;
  --muted: #6f6862;
  --line: #cbb9a8;
  --line-dark: rgba(255,255,255,.22);
}

html { background: var(--navy-deep); }
body { color: var(--ink); background: var(--paper); }
.header { background: rgba(235,224,212,.97); border-bottom-color: var(--line); }
.header.scrolled { box-shadow: 0 10px 35px rgba(31,61,100,.10); }
.hero { background: var(--paper); }
.services { background: var(--paper); }
.service-card { background: rgba(255,250,245,.42); }
.service-card:hover { background: var(--navy); }
.about { background: var(--soft); }
.about__list { border-top-color: var(--line); }
.about__list > div { border-bottom-color: var(--line); }
.director-profile { background: var(--white); border-color: #cfbdac; box-shadow: 0 22px 55px rgba(31,61,100,.09); }
.director-profile blockquote { color: #625d58; }
.news { background: var(--paper); }
.news-card { background: var(--white); border-color: var(--line); }
.news-card:hover { box-shadow: 0 20px 46px rgba(31,61,100,.12); }
.houses { background: var(--navy); }
.disclosure { background: var(--paper); }
.legal-note { background: rgba(255,250,245,.28); }
.appeal { background: #dfcdbc; }
.appeal-form { background: var(--white); border-color: var(--line); }
.appeal-form input,.appeal-form select,.appeal-form textarea { background: #f4eadf; border-color: var(--line); }
.appeal-form input:focus,.appeal-form select:focus,.appeal-form textarea:focus { box-shadow: 0 0 0 3px rgba(31,61,100,.10); }
.footer { background: var(--navy-deep); }
.dispatch-modal,.news-modal { background: var(--white); }
.news-modal__text { color: #5b5651; }
.legal-page { background: var(--paper); }
.legal-content section p { color: #5f5954; }
.nav { --mobile-nav-bg: var(--paper); }

@media (max-width: 820px) {
  .nav { background: var(--paper); }
}
