:root {
  --navy: #071d3d;
  --navy-soft: #0e294f;
  --gold: #ecc770;
  --paper: #f5f6f7;
  --paper-alt: #eef4f2;
  --ink: #111926;
  --muted: #4d5968;
  --line: #dce0e5;
  --white: #fff;
  --danger: #a72b2b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: 0; }
section[id] { scroll-margin-top: 66px; }
.wrap { width: min(980px, calc(100% - 28px)); margin: 0 auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Sdílená hlavička rodiny janrichter.net / hypo-web.cz */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(7, 29, 61, .16);
}
.head-inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.brand-icon {
  width: 30px;
  height: 30px;
  object-fit: none;
  object-position: left center;
  flex: 0 0 auto;
  filter: brightness(0) saturate(100%) invert(84%) sepia(33%) saturate(674%) hue-rotate(344deg) brightness(99%) contrast(87%);
}
.brand-name {
  display: block;
  color: rgba(255, 255, 255, .9);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.brand-first { color: var(--gold); }
.top-nav {
  justify-self: center;
  display: flex;
  gap: 18px;
}
.top-nav a {
  color: rgba(255, 255, 255, .9);
  font-size: .96rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}
.top-nav a:hover { color: var(--gold); }
.top-cta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 3px;
  background: var(--gold);
  color: var(--navy);
  font-size: .96rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.top-cta:hover { background: var(--gold); }
.top-cta-short { display: none; }
.nav-toggle { display: none; }

/* Hero používá stejné měřítko a kompozici jako janrichter.net */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero-inner {
  min-height: 342px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 22px;
}
.hero-visual {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 342px;
  position: relative;
  overflow: hidden;
}
.hero-visual img {
  width: min(575px, 154%);
  max-width: none;
  max-height: 398px;
  object-fit: contain;
  object-position: center center;
  aspect-ratio: 804 / 760;
}
.hero-visual::after {
  display: none;
}
.hero-text { padding: 34px 0; }
.eyebrow {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow.dark { color: #77541d; }
.hero-text h1 {
  max-width: 560px;
  color: var(--white);
  font-size: clamp(2rem, 3.55vw, 2.92rem);
  line-height: 1.03;
  text-transform: uppercase;
}
.hero-text h1 span { color: var(--gold); }
.hero-text > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 13px;
  color: rgba(255, 255, 255, .88);
  font-size: .98rem;
  font-weight: 650;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn, .button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 0;
  border-radius: 5px;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}
.btn.gold, .button { background: var(--gold); color: var(--navy); }
.btn.white { background: var(--white); color: var(--navy); }
.btn:hover, .button:hover { filter: brightness(1.05); }

.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid div { padding: 13px; border-left: 1px solid var(--line); }
.trust-grid div:last-child { border-right: 1px solid var(--line); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { color: var(--navy); font-size: .92rem; }
.trust-grid span { margin-top: 3px; color: var(--muted); font-size: .84rem; }

.section { padding: 30px 0 31px; }
.section-paper { background: var(--paper-alt); }
.section-head { max-width: 760px; margin-bottom: 16px; }
.section-head h2, .process-intro h2, .person-copy h2, .contact-copy h2 {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.12;
}
.split-head { max-width: 680px; display: block; }
.split-head > p:last-child, .section-head > p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.5; }

.situation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.situation-grid article {
  display: flex;
  flex-direction: column;
  min-height: 192px;
  padding: 13px;
  border: 1px solid rgba(7,29,61,.12);
  border-radius: 2px;
  background: var(--white);
}
.situation-grid article:nth-child(n+4) { grid-column: auto; }
.situation-grid article:hover { border-color: rgba(236,199,112,.7); box-shadow: 0 6px 14px rgba(17,25,38,.1); }
.card-index { display: none; }
.situation-grid h3 { margin: 0 0 7px; color: var(--navy); font-size: 1rem; }
.situation-grid p { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.situation-grid a, .ecosystem-grid a, .text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.situation-grid article > a { margin-top: auto; align-self: flex-start; }

.service-icon {
  width: 29px;
  height: 29px;
  margin-bottom: 13px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-section { padding: 31px 0; background: var(--white); }
.review-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.review-section-head h2 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: clamp(1.2rem, 2vw, 1.62rem);
  line-height: 1.15;
}
.review-note { margin-top: 5px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.carousel-controls { display: flex; gap: 8px; flex: 0 0 auto; }
.carousel-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(21,42,68,.24);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(17,25,38,.1);
}
.carousel-btn:hover { border-color: var(--gold); color: #77541d; }
.review-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow: hidden;
  overscroll-behavior-x: contain;
  padding: 2px 2px 18px;
  will-change: transform;
}
.review-card {
  scroll-snap-align: start;
  min-height: 186px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(17,25,38,.12);
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.review-head img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f1e7;
}
.review-head strong { display: block; font-size: .88rem; }
.review-head small { display: block; margin-top: 1px; color: var(--muted); font-size: .76rem; line-height: 1.25; }
.review-head div span { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .04em; }
.review-card p { color: var(--muted); font-size: .94rem; line-height: 1.5; }


.services { background: var(--navy); color: var(--white); }
.services .section-head h2, .ecosystem .section-head h2 { color: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.service-grid article {
  min-height: 160px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 2px;
  background: rgba(255,255,255,.04);
}
.line-icon { width: 32px; height: 32px; color: var(--gold); }
.line-icon svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.service-grid h3 { margin: 18px 0 7px; color: var(--gold); font-size: .98rem; }
.service-grid p { color: rgba(255,255,255,.76); font-size: .86rem; }

.process { background: var(--white); }
.process.section-paper { background: var(--paper-alt); }
.process-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }
.process-intro > p:last-child { color: var(--muted); font-size: .94rem; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.process-list li:first-child { border-top: 1px solid var(--line); }
.process-list li > span { color: #77541d; font-size: .7rem; font-weight: 900; }
.process-list h3 { margin-bottom: 3px; color: var(--navy); font-size: .98rem; }
.process-list p { color: var(--muted); font-size: .9rem; }

.ecosystem { background: var(--navy); color: var(--white); }
.ecosystem .split-head > p:last-child { color: rgba(255,255,255,.7); }
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ecosystem-grid article {
  min-height: 166px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 2px;
  background: rgba(255,255,255,.04);
}
.ecosystem-grid article.active { background: var(--gold); color: var(--navy); }
.ecosystem-grid article > span { font-size: .68rem; font-weight: 900; }
.ecosystem-grid h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.ecosystem-grid p { color: rgba(255,255,255,.72); font-size: .89rem; }
.ecosystem-grid .active p { color: rgba(7,29,61,.76); }
.ecosystem-grid a { color: var(--white); }
.ecosystem-grid strong { display: inline-block; margin-top: 10px; font-size: .82rem; }

.person { background: var(--paper-alt); }
.person-grid { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: center; }
.person-photo { margin: 0; }
.person-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  object-fit: cover;
  object-position: center 18%;
}
.person-lead { margin-bottom: 7px; color: var(--navy); font-size: 1rem; font-weight: 700; }
.person-copy p:not(.eyebrow):not(.person-lead) { color: var(--muted); font-size: .94rem; }

.company-about { background: var(--white); }
.company-about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: start;
}
.company-about h2 { max-width: 430px; color: var(--navy); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.12; }
.company-about-copy > p { margin-bottom: 10px; color: var(--muted); }
.company-about-copy .person-lead { color: var(--navy); font-size: 1.02rem; font-weight: 800; }

.contact { background: var(--gold); color: var(--navy); }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 28px; align-items: start; }
.contact-copy h2 { color: var(--navy); }
.contact-copy > p:not(.eyebrow) { color: rgba(7,29,61,.76); font-size: .94rem; }
.contact .eyebrow { color: #694719; }
address { display: grid; gap: 10px; margin-top: 18px; font-style: normal; }
address a, address p { color: var(--navy); text-decoration: none; font-size: .92rem; font-weight: 750; }
address span { display: block; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.direct-contact { grid-template-columns: .9fr 1.1fr; align-items: stretch; }
.direct-contact-card {
  padding: 20px;
  border: 1px solid rgba(7,29,61,.18);
  border-radius: 5px;
  background: rgba(255,255,255,.3);
}
.direct-contact-card address { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
.direct-contact-card address a,
.direct-contact-card address p { min-height: 54px; padding: 9px 11px; border-radius: 3px; background: rgba(255,255,255,.58); }
.direct-contact-card address p { grid-column: 1 / -1; }
.direct-contact-card address a:hover { background: var(--white); }

.lead-section {
  padding: 38px 0 42px;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
}

.lead-section h2 {
  font-size: clamp(1.45rem, 3.6vw, 2.35rem);
  line-height: 1.12;
  text-transform: uppercase;
}

.lead-section p {
  margin-top: 14px;
  font-weight: 700;
}

.lead-form {
  max-width: 760px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  padding: 10px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.lead-form textarea {
  grid-column: 1 / -1;
  min-height: 86px;
  resize: vertical;
}

.form-consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.74);
  color: rgba(7, 29, 61, 0.78);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-consent input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
}

.lead-form button {
  grid-column: 1 / -1;
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.lead-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.form-note {
  grid-column: 1 / -1;
  margin-top: -2px;
  color: rgba(7, 29, 61, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-note:empty {
  display: none;
}

.form-note.is-success {
  padding: 10px 12px;
  border: 1px solid rgba(23, 79, 42, 0.28);
  border-radius: 4px;
  background: #edf8f0;
  color: #174f2a;
}

.form-note.is-error {
  padding: 10px 12px;
  border: 1px solid rgba(138, 28, 28, 0.3);
  border-radius: 4px;
  background: #fff1f1;
  color: #8a1c1c;
}

.lead-form input.is-invalid,
.lead-form select.is-invalid,
.lead-form textarea.is-invalid,
.tenant-form input.is-invalid,
.tenant-form select.is-invalid,
.tenant-form textarea.is-invalid {
  outline: 2px solid #a72828;
  outline-offset: -2px;
  background: #fff8f8;
}

.choice-group.is-invalid {
  outline: 2px solid #a72828;
  outline-offset: -2px;
  background: #fff1f1;
}

.form-consent.is-invalid {
  outline: 2px solid #a72828;
  outline-offset: -2px;
  background: #fff1f1;
}

.lead-call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(760px, 100%);
  min-height: 48px;
  margin: 10px auto 0;
  padding: 0 14px;
  border: 2px solid var(--navy);
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.lead-call:hover {
  background: var(--navy-soft);
}

.site-footer { padding: 30px 0 18px; background: var(--navy); color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr .7fr; gap: 28px; padding-bottom: 22px; }
.footer-brand { color: var(--white); }
.footer-grid p { max-width: 300px; margin-top: 10px; font-size: .84rem; }
.footer-grid div:nth-child(2), .footer-grid nav { display: grid; align-content: start; gap: 5px; font-size: .84rem; }
.footer-grid strong { color: var(--white); }
.footer-grid a { color: rgba(255,255,255,.84); }
.footer-regulatory { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.13); font-size: .78rem; line-height: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.13); font-size: .78rem; }

.legal-header { grid-template-columns: 1fr auto; }
.legal-page { min-height: calc(100vh - 170px); padding: 36px 0 48px; background: var(--white); }
.legal-content { max-width: 780px; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--navy); font-weight: 800; text-decoration-color: var(--gold); }
.legal-content h1 { margin-bottom: 18px; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal-content h2 { margin: 24px 0 7px; color: var(--navy); font-size: 1.2rem; }
.legal-content p { color: var(--muted); }
.legal-content .notice { padding: 13px 15px; border-left: 4px solid var(--gold); background: var(--paper); color: var(--ink); }
.legal-content a { color: var(--navy); }
.error-page { min-height: 100vh; background: var(--navy); }
.error-main { width: min(680px, calc(100% - 28px)); min-height: calc(100vh - 64px); margin: auto; display: grid; place-content: center; justify-items: start; color: var(--white); }
.error-main h1 { margin-bottom: 10px; font-size: clamp(2rem, 7vw, 3.5rem); }
.error-main > p:not(.eyebrow) { color: rgba(255,255,255,.76); }
.error-main .button { margin-top: 14px; }
.error-mark { color: var(--gold); font-size: clamp(5rem, 14vw, 8rem); font-weight: 900; line-height: .8; opacity: .2; }

.questionnaire-page { min-height: calc(100vh - 170px); padding: 36px 0 64px; background: var(--paper-alt); }
.questionnaire-wrap { max-width: 860px; }
.questionnaire-wrap > h1 { margin-bottom: 10px; color: var(--navy); font-size: clamp(1.9rem, 4vw, 2.65rem); }
.questionnaire-intro { max-width: 760px; margin-bottom: 24px; color: var(--muted); font-size: 1rem; }
.tenant-form { display: grid; gap: 16px; }
.tenant-form fieldset { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); box-shadow: 0 8px 24px rgba(7,29,61,.05); }
.tenant-form legend { padding: 0 8px; color: var(--navy); font-size: 1.08rem; font-weight: 900; }
.tenant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tenant-form .field { display: grid; align-content: start; gap: 6px; color: var(--navy); font-size: .9rem; font-weight: 800; }
.tenant-form .field.full { grid-column: 1 / -1; }
.tenant-form input[type="text"],
.tenant-form input[type="tel"],
.tenant-form input[type="email"],
.tenant-form input[type="file"],
.tenant-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c9d0d8; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; }
.tenant-form textarea { min-height: 88px; resize: vertical; }
.tenant-form input:focus-visible, .tenant-form textarea:focus-visible { outline: 3px solid rgba(236,199,112,.38); border-color: var(--gold); }
.tenant-form small { color: var(--muted); font-size: .78rem; font-weight: 600; line-height: 1.4; }
.choice-group { padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.choice-group > span { display: block; margin-bottom: 6px; }
.choice-group label { display: inline-flex; align-items: center; gap: 6px; margin-right: 22px; color: var(--ink); font-weight: 650; }
.choice-group input, .tenant-consent input { accent-color: var(--navy); }
.sensitive-field { padding: 14px; border-left: 4px solid var(--gold); background: #fff9e9; }
.tenant-form [hidden] { display: none !important; }
.tenant-consent { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); }
.optional-consent { border-left: 4px solid var(--gold); }
.consent-note { margin-top: -8px; padding: 0 14px; color: var(--muted); font-size: .8rem; }
.tenant-form > button { min-height: 50px; border: 0; border-radius: 4px; background: var(--gold); color: var(--navy); font: inherit; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.tenant-form > button:disabled { cursor: wait; opacity: .72; }
.tenant-form > .form-note { margin: 0; }

@media (max-width: 900px) {
  .top-nav { gap: 10px; }
  .top-nav a { font-size: .72rem; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .person-grid { grid-template-columns: 280px 1fr; }
}

@media (max-width: 760px) {
  .head-inner { min-height: 64px; grid-template-columns: auto auto auto; justify-content: space-between; gap: 8px; position: relative; }
  .header-cta { min-height: 34px; padding: 0 12px; font-size: .96rem; width: auto; max-width: max-content; }
  .nav-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 3px;
    background: transparent;
    color: var(--white);
  }
  .nav-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
  .top-nav {
    display: none;
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,.14);
    border-radius: 0 0 5px 5px;
    background: var(--navy);
    box-shadow: 0 14px 28px rgba(7,29,61,.24);
    flex-direction: column;
    gap: 2px;
  }
  .top-nav.is-open { display: flex; }
  .top-nav a { width: 100%; padding: 11px 12px; border-radius: 3px; }
  .hero-inner { min-height: 0; grid-template-columns: .85fr 1fr; gap: 8px; }
  .hero-visual { min-height: 270px; }
  .hero-visual img { max-height: 335px; width: min(405px, 145%); }
  .hero-text { padding: 30px 0 24px; }
  .hero-text h1 { font-size: 1.75rem; }
  .hero-text > p:not(.eyebrow) { font-size: 1rem; line-height: 1.5; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid div, .trust-grid div:last-child { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .split-head, .process-layout, .person-grid, .company-about-grid, .contact-grid, .direct-contact { grid-template-columns: 1fr; gap: 18px; }
  .situation-grid { grid-template-columns: repeat(2, 1fr); }
  .situation-grid article, .situation-grid article:nth-child(n+4) { grid-column: auto; }
  .situation-grid article:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .review-section-head { align-items: flex-start; }
  .review-carousel { grid-auto-columns: min(86%, 330px); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .person-photo { max-width: 360px; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .tenant-grid { grid-template-columns: 1fr; }
  .tenant-form fieldset { padding: 18px 14px; }
  .tenant-form .field.full { grid-column: auto; }
  .choice-group label { margin-right: 16px; }
}

@media (max-width: 460px) {
  .wrap { width: min(100% - 20px, 980px); }
  .head-inner { grid-template-columns: minmax(0, 1fr) auto auto; justify-content: normal; column-gap: 16px; }
  .hero-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero-buttons .btn { width: 100%; padding-inline: 7px; font-size: .78rem; white-space: nowrap; }
  .brand { gap: 7px; }
  .brand-name { font-size: 1.08rem; }
  .top-cta { min-height: 32px; padding: 0 9px; font-size: .96rem; }
  .top-cta-full { display: none; }
  .top-cta-short { display: inline; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { order: 2; min-height: 285px; justify-content: flex-start; }
  .hero-visual img { width: 100%; max-height: 285px; }
  .hero-visual::after { display: none; }
  .hero-text h1 { font-size: 2rem; }
  .situation-grid { grid-template-columns: 1fr; }
  .situation-grid article, .situation-grid article:nth-child(n+4), .situation-grid article:last-child:nth-child(odd) { grid-column: auto; }
  .service-grid { grid-template-columns: 1fr; }
  .direct-contact-card address { grid-template-columns: 1fr; }
  .direct-contact-card address p { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}


@media (max-width: 760px) {
  .lead-form { grid-template-columns: 1fr; }
  .lead-call { white-space: normal; text-align: center; }
}

@media (max-width: 340px) {
  .head-inner { column-gap: 16px; }
  .hero-buttons .btn { white-space: normal; line-height: 1.12; }
  .brand { gap: 6px; }
  .brand-name { font-size: .9rem; }
  .header-cta { padding: 0 7px; font-size: .82rem; }
}

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