:root {
  --danube-slate: #bb68ff;
  --registry-blue: #bb68ff;
  --registry-blue-dark: #9747e8;
  --limestone: #061a26;
  --copper-roof: #b8ff12;
  --paper: #071824;
  --mist-border: #244252;
  --charcoal: #f4f8ff;
  --muted: #a8bac6;
  --blueprint-deep: #020b14;
  --blueprint-navy: #001421;
  --properly-purple: #b45dff;
  --properly-lime: #b8ff12;
  --line: rgba(184, 255, 18, 0.2);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --container: 1180px;
  --heading: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(184, 255, 18, 0.08), transparent 26rem),
    linear-gradient(135deg, rgba(184, 255, 18, 0.045) 1px, transparent 1px),
    linear-gradient(45deg, rgba(184, 255, 18, 0.03) 1px, transparent 1px),
    var(--blueprint-deep);
  background-size: auto, 42px 42px, 42px 42px, auto;
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--properly-lime);
  outline-offset: 3px;
}

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

.section-pad {
  padding: 86px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 22px clamp(20px, 5vw, 58px);
  background: rgba(2, 11, 20, 0.9);
  border-bottom: 1px solid rgba(184, 255, 18, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--danube-slate);
  font-size: 1.45rem;
  font-weight: 760;
  letter-spacing: 0;
}

.brand span {
  color: var(--properly-purple);
  text-transform: lowercase;
}

.brand span::after {
  color: var(--properly-lime);
  content: ".";
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--properly-lime);
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 52px);
  color: var(--danube-slate);
  font-size: 0.98rem;
  font-weight: 650;
}

.main-nav a,
.site-footer nav a {
  position: relative;
  padding-bottom: 5px;
}

.main-nav a::after,
.site-footer nav a::after {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--copper-roof);
  content: "";
  transition: right 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after,
.site-footer nav a:hover::after {
  right: 0;
}

.language-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.language-switcher button {
  min-width: 34px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--danube-slate);
  padding: 6px 4px;
  font-size: 0.88rem;
  font-weight: 720;
}

.language-switcher button.is-active {
  border-color: var(--copper-roof);
}

.hero {
  position: relative;
  min-height: 770px;
  overflow: hidden;
  background: var(--blueprint-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--blueprint-deep) 0%, rgba(2, 11, 20, 0.98) 36%, rgba(2, 11, 20, 0.74) 56%, rgba(2, 11, 20, 0.28) 100%),
    linear-gradient(135deg, rgba(184, 255, 18, 0.18) 1px, transparent 1px);
  background-size: auto, 40px 40px;
  content: "";
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(260px, 1fr);
  grid-template-areas:
    "copy ."
    "search search";
  align-content: start;
  gap: 36px;
  padding-top: 56px;
}

.hero-copy {
  grid-area: copy;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--danube-slate);
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.5rem, 5.6vw, 5.5rem);
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
}

h3 {
  color: var(--danube-slate);
  font-family: var(--heading);
  font-size: 1.45rem;
  line-height: 1.18;
}

.hero-copy p,
.compact-hero p {
  max-width: 640px;
  color: #d5e1ea;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 13px 26px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--registry-blue);
  color: var(--blueprint-deep);
  box-shadow: 0 0 30px rgba(180, 93, 255, 0.28);
}

.button.primary:hover {
  background: var(--registry-blue-dark);
}

.button.secondary {
  background: rgba(7, 24, 36, 0.76);
  border-color: var(--properly-lime);
  color: var(--properly-lime);
}

.button.accent {
  background: var(--copper-roof);
  color: var(--blueprint-deep);
}

.search-panel {
  grid-area: search;
  width: min(730px, 100%);
  margin-top: 10px;
  padding: 24px;
  background: rgba(7, 24, 36, 0.9);
  border: 1px solid rgba(184, 255, 18, 0.26);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tabs,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tabs {
  margin-bottom: 18px;
}

.tabs button,
.filter-chips button {
  border: 1px solid var(--registry-blue);
  border-radius: 6px;
  background: var(--paper);
  color: var(--danube-slate);
  padding: 9px 18px;
  font-size: 0.94rem;
  font-weight: 700;
}

.tabs button {
  border-color: transparent;
  border-bottom-color: var(--line);
  border-radius: 0;
  padding-left: 0;
  padding-right: 28px;
}

.tabs button.is-active {
  border-bottom: 3px solid var(--registry-blue);
  color: var(--danube-slate);
}

.filter-chips button.is-active,
.filter-chips button:hover {
  background: var(--properly-lime);
  color: var(--blueprint-deep);
}

.search-fields,
.filters-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 16px;
  align-items: end;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--mist-border);
  border-radius: 7px;
  background: var(--paper);
  color: var(--charcoal);
  padding: 13px 14px;
  font-size: 0.96rem;
}

textarea {
  resize: vertical;
}

.source-note,
.center-note,
.form-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.source-note {
  margin: 16px 0 0;
}

.verification-strip {
  position: relative;
  z-index: 3;
  background: rgba(2, 11, 20, 0.94);
  border-top: 1px solid rgba(184, 255, 18, 0.22);
  border-bottom: 1px solid rgba(184, 255, 18, 0.22);
}

.ribbon-rail {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: center;
  padding: 25px 0;
}

.rail-start {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--charcoal);
  font-size: 0.94rem;
  line-height: 1.35;
}

.shield-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--registry-blue);
}

.shield-icon svg path,
.process-anchor svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.ribbon-rail ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.ribbon-rail li {
  position: relative;
  min-width: 0;
  padding-left: 34px;
}

.ribbon-rail li::before {
  position: absolute;
  top: 15px;
  left: -21px;
  width: 36px;
  height: 1px;
  background: var(--copper-roof);
  content: "";
}

.ribbon-rail li:first-child::before {
  display: none;
}

.ribbon-rail li span,
.step-number {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid var(--copper-roof);
  border-radius: 999px;
  color: var(--copper-roof);
  font-size: 0.78rem;
  font-weight: 800;
}

.ribbon-rail li span {
  position: absolute;
  left: 0;
  top: 2px;
}

.ribbon-rail strong,
.ribbon-rail small {
  display: block;
}

.ribbon-rail strong {
  color: var(--charcoal);
  font-size: 0.95rem;
}

.ribbon-rail small {
  color: var(--muted);
  font-size: 0.78rem;
}

.listings-preview {
  background:
    linear-gradient(180deg, var(--limestone) 0%, var(--blueprint-deep) 100%),
    linear-gradient(90deg, rgba(184, 255, 18, 0.06) 1px, transparent 1px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.text-link {
  color: var(--registry-blue);
  font-weight: 760;
  white-space: nowrap;
}

.text-link::after {
  content: " ->";
}

.filter-chips {
  justify-content: center;
  margin-bottom: 34px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.listing-grid.expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: rgba(7, 24, 36, 0.92);
  border: 1px solid rgba(184, 255, 18, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.listing-card .image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--limestone);
}

.listing-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.listing-card:hover img {
  transform: scale(1.025);
}

.sample-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 5px;
  background: var(--copper-roof);
  color: var(--blueprint-deep);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.listing-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.location-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
}

.location-line svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--registry-blue);
}

.listing-body h3 {
  margin: 14px 0 18px;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--muted);
  font-size: 0.92rem;
}

.spec-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--mist-border);
}

.price {
  color: var(--registry-blue);
  font-family: var(--heading);
  font-size: 1.28rem;
  font-weight: 700;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--registry-blue);
  border-radius: 6px;
  color: var(--registry-blue);
  padding: 8px 17px;
  font-size: 0.9rem;
  font-weight: 780;
}

.detail-link::after {
  margin-left: 8px;
  content: "->";
}

.center-note {
  margin: 22px 0 0;
  text-align: center;
}

.empty-results {
  grid-column: 1 / -1;
  padding: 32px 0;
}

.listing-body .spec-row {
  margin-bottom: 24px;
}

.related-offer {
  border-left: 2px solid var(--properly-lime);
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.related-offer a {
  color: var(--properly-purple);
  text-decoration: underline;
}

.listing-card a:focus-visible,
.detail-hero a:focus-visible,
.detail-hero button:focus-visible,
.detail-content a:focus-visible {
  outline: 3px solid var(--properly-lime);
  outline-offset: 3px;
}

.listing-card .image-wrap:focus-visible,
.gallery-main-link:focus-visible {
  outline-offset: -4px;
}

.process-section {
  background: var(--blueprint-deep);
}

.process-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 52px;
  align-items: stretch;
}

.process-anchor {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 270px;
  padding: 36px;
  background: var(--registry-blue);
  color: var(--blueprint-deep);
}

.process-anchor svg {
  width: 64px;
  margin-bottom: 34px;
  color: var(--blueprint-deep);
}

.process-anchor h2 {
  color: var(--blueprint-deep);
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
}

.process-steps article {
  position: relative;
  min-height: 220px;
  padding: 26px 10px 0 0;
}

.process-steps article:not(:last-child)::after {
  position: absolute;
  top: 54px;
  right: -21px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--registry-blue);
  border-right: 2px solid var(--registry-blue);
  content: "";
  transform: rotate(45deg);
}

.step-number {
  background: var(--registry-blue);
  border-color: var(--registry-blue);
  color: var(--blueprint-deep);
}

.process-steps p,
.bio-copy p,
.about-copy p,
.contact-aside p {
  color: var(--muted);
}

.bio-contact {
  background: var(--limestone);
}

.bio-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 46px;
  align-items: center;
}

.bio-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bio-image img,
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bio-copy {
  min-width: 0;
}

.bio-copy h2 {
  margin-bottom: 22px;
}

.service-list,
.aside-lines {
  display: grid;
  gap: 0;
  margin: 28px 0 4px;
  border-top: 1px solid var(--mist-border);
}

.service-list span,
.aside-lines span {
  padding: 14px 0 14px 38px;
  border-bottom: 1px solid var(--mist-border);
  color: var(--charcoal);
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.service-list span {
  position: relative;
}

.service-list span::before {
  position: absolute;
  left: 0;
  top: 20px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--registry-blue);
  border-radius: 999px;
  background: var(--paper);
  content: "";
}

.contact-panel {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 36px;
  background: rgba(7, 24, 36, 0.94);
  border: 1px solid rgba(184, 255, 18, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(24, 49, 58, 0.08);
}

.contact-panel h2 {
  overflow-wrap: anywhere;
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .full,
.full-button {
  grid-column: 1 / -1;
}

.full-button {
  width: 100%;
  margin-top: 16px;
}

.form-status {
  margin: 14px 0 0;
  color: var(--registry-blue);
  font-weight: 700;
}

.site-footer {
  background: #000812;
  color: rgba(255, 255, 255, 0.88);
  padding: 38px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  color: var(--properly-purple);
}

.footer-brand .brand-mark {
  color: var(--properly-lime);
}

.site-footer nav {
  display: flex;
  gap: 42px;
  font-weight: 700;
}

.footer-domain {
  justify-self: end;
  color: var(--properly-lime);
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.page-hero {
  background:
    linear-gradient(180deg, var(--limestone), var(--blueprint-deep)),
    linear-gradient(90deg, rgba(184, 255, 18, 0.06) 1px, transparent 1px);
  border-bottom: 1px solid var(--mist-border);
  padding: 60px 0 52px;
}

.compact-hero {
  position: relative;
  padding-left: 34px;
}

.compact-hero::before {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: linear-gradient(180deg, var(--registry-blue), var(--copper-roof));
  border-radius: 999px;
  content: "";
}

.compact-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
}

.listings-page-section.section-pad {
  padding-top: 58px;
}

.filters-bar {
  grid-template-columns: 1fr 1.35fr 1fr 1fr;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--mist-border);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(24, 49, 58, 0.07);
}

.listing-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 26px 0;
}

#listingCount {
  margin: 0;
  color: var(--charcoal);
  font-weight: 800;
}

.detail-hero {
  padding: 54px 0 0;
  background: var(--limestone);
}

.detail-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

.detail-gallery {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.gallery-main-link {
  display: block;
}

.detail-gallery .gallery-main {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--blueprint-deep);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-controls button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--mist-border);
  border-radius: 6px;
  background: var(--limestone);
  color: var(--properly-lime);
  font-size: 1.3rem;
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 12px 16px;
}

.gallery-thumbnails button {
  width: 88px;
  height: 68px;
  flex: 0 0 88px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 5px;
  background: var(--blueprint-deep);
}

.gallery-thumbnails button[aria-pressed="true"] {
  border-color: var(--properly-lime);
}

.gallery-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-summary {
  min-width: 0;
  padding: 12px 0 36px;
}

.detail-summary h1 {
  margin-bottom: 14px;
  font-size: 2.5rem;
  overflow-wrap: break-word;
}

.detail-summary .source-note {
  margin: 20px 0 14px;
}

.detail-summary .source-link {
  white-space: normal;
}

.broker-name {
  font-weight: 700;
}

.map-link,
.inquiry-panel .button {
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.detail-price {
  color: var(--registry-blue);
  font-family: var(--heading);
  font-size: 1.8rem;
  font-weight: 700;
}

.detail-content {
  background: var(--blueprint-deep);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
}

.spec-panel,
.map-panel,
.inquiry-panel {
  border: 1px solid var(--mist-border);
  border-radius: var(--radius);
  background: var(--paper);
}

.spec-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 32px;
}

.spec-panel div {
  padding: 20px;
  border-right: 1px solid var(--mist-border);
}

.spec-panel div:nth-child(4n) {
  border-right: 0;
}

.spec-panel div:last-child {
  border-right: 0;
}

.spec-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.spec-panel strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 6px;
  color: var(--charcoal);
  font-size: 1.2rem;
}

.detail-description h2,
.map-panel h2,
.inquiry-panel h2 {
  margin-bottom: 16px;
  font-size: 2.1rem;
}

.map-panel {
  margin-top: 32px;
  padding: 24px;
}

.detail-side {
  position: sticky;
  top: 104px;
}

.inquiry-panel {
  padding: 24px;
  box-shadow: 0 12px 32px rgba(24, 49, 58, 0.08);
}

.inquiry-panel .form-grid {
  grid-template-columns: 1fr;
}

.about-grid,
.contact-page-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.about-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.agency-profile {
  margin-top: 26px;
}

.agency-profile dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.agency-profile dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.agency-profile dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.agency-profile-source {
  margin: 14px 0 0;
}

.agency-profile .text-link {
  white-space: normal;
  overflow-wrap: anywhere;
}

.agency-profile a:focus-visible,
.certificate-preview:focus-visible {
  outline: 3px solid var(--properly-lime);
  outline-offset: 4px;
}

.timeline-list {
  position: relative;
  margin-top: 34px;
  border-left: 3px solid var(--registry-blue);
}

.timeline-list div {
  padding: 0 0 28px 30px;
}

.timeline-list span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--copper-roof);
  font-weight: 850;
}

.timeline-list strong {
  display: block;
  color: var(--danube-slate);
  font-family: var(--heading);
  font-size: 1.45rem;
}

.certificate-section {
  background:
    linear-gradient(135deg, rgba(184, 255, 18, 0.05) 1px, transparent 1px),
    var(--blueprint-deep);
  background-size: 42px 42px, auto;
  border-top: 1px solid rgba(184, 255, 18, 0.16);
}

.certificate-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 54px;
  align-items: center;
}

.certificate-copy {
  max-width: 620px;
}

.certificate-copy h2 {
  color: var(--danube-slate);
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.certificate-copy p {
  color: var(--muted);
}

.certificate-facts {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.certificate-facts span {
  border-left: 3px solid var(--properly-lime);
  padding: 6px 0 6px 14px;
  color: var(--charcoal);
  font-weight: 800;
}

.certificate-preview {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(184, 255, 18, 0.28);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.certificate-preview img {
  width: 100%;
  height: auto;
  background: #fff;
}

.certificate-preview span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 6px;
  background: var(--properly-lime);
  color: var(--blueprint-deep);
  font-size: 0.88rem;
  font-weight: 850;
  padding: 10px 13px;
}

.contact-page-section {
  background: var(--limestone);
}

.contact-aside {
  padding: 34px;
  background: var(--registry-blue);
  border-radius: var(--radius);
  color: var(--paper);
}

.contact-aside h2 {
  color: var(--blueprint-deep);
  font-size: clamp(2rem, 3vw, 3rem);
}

.contact-aside p {
  color: rgba(2, 11, 20, 0.78);
}

.contact-aside .aside-lines {
  border-color: rgba(255, 255, 255, 0.22);
}

.contact-aside .aside-lines span {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--blueprint-deep);
}

.contact-panel.standalone {
  grid-column: auto;
  margin-top: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .main-nav,
  .language-switcher {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-media::before {
    background:
      linear-gradient(180deg, rgba(2, 11, 20, 0.98) 0%, rgba(2, 11, 20, 0.88) 52%, rgba(2, 11, 20, 0.74) 100%),
      linear-gradient(135deg, rgba(184, 255, 18, 0.14) 1px, transparent 1px);
    background-size: auto, 36px 36px;
  }

  .hero-grid,
  .detail-shell,
  .detail-grid,
  .about-grid,
  .certificate-grid,
  .contact-page-grid,
  .bio-grid,
  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-fields,
  .filters-bar,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-fields .button,
  .filters-bar label:nth-child(2),
  .contact-panel,
  .form-grid .full,
  .full-button {
    grid-column: 1 / -1;
  }

  .ribbon-rail {
    grid-template-columns: 1fr;
  }

  .ribbon-rail ol,
  .listing-grid,
  .listing-grid.expanded,
  .process-steps,
  .spec-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps article::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-domain {
    justify-self: start;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 680px) {
  .compact-hero h1 {
    font-size: 1.875rem;
    overflow-wrap: anywhere;
  }

  .detail-summary h1 {
    font-size: 2rem;
  }

  .agency-profile dl {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-pad {
    padding: 58px 0;
  }

  .site-header {
    padding: 18px 16px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
  }

  .hero-grid {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .hero-copy h1 span {
    white-space: normal;
  }

  .hero-copy p,
  .compact-hero p {
    font-size: 1rem;
  }

  .hero-actions,
  .section-heading,
  .listing-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .detail-link {
    width: 100%;
  }

  .search-panel,
  .contact-panel,
  .filters-bar,
  .contact-aside {
    padding: 20px;
  }

  .search-fields,
  .filters-bar,
  .form-grid,
  .ribbon-rail ol,
  .listing-grid,
  .listing-grid.expanded,
  .process-steps,
  .spec-panel {
    grid-template-columns: 1fr;
  }

  .ribbon-rail li::before {
    display: none;
  }

  .process-anchor {
    min-height: 0;
  }

  .listing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .spec-panel div {
    border-right: 0;
    border-bottom: 1px solid var(--mist-border);
  }

  .spec-panel div:last-child {
    border-bottom: 0;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.no-photo {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px;
  color: var(--ink, #F4F8FF);
  background: #071824;
  text-align: center;
}

.detail-no-photo {
  min-height: 240px;
  aspect-ratio: 4 / 3;
}
