:root {
  --color-navy: #031c38;
  --color-navy-2: #06284d;
  --color-gold: #d9a73e;
  --color-gold-dark: #bf8e24;
  --color-white: #ffffff;
  --color-bg: #f6f7f9;
  --color-text: #0b1730;
  --color-muted: #607088;
  --color-border: #dde3eb;
  --shadow-soft: 0 14px 35px rgba(3, 28, 56, 0.1);
  --shadow-strong: 0 22px 45px rgba(3, 28, 56, 0.2);
  --container: 1140px;
  --header-height: 92px;
  --radius: 8px;
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link,
.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:focus {
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: var(--radius);
}

.anchor-target {
  display: block;
  position: relative;
  top: calc(var(--header-height) * -1);
  height: 0;
  visibility: hidden;
}

.icon svg,
.stat-icon svg,
.card-icon svg,
.why-icon svg,
.social-links svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  transition: box-shadow 180ms ease, height 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(3, 28, 56, 0.1);
  height: 82px;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 58px;
  height: 58px;
  color: var(--color-navy);
}

.brand-mark svg path:nth-child(3),
.brand-mark svg path:nth-child(4) {
  stroke: var(--color-gold);
}

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

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-navy);
  text-transform: uppercase;
  line-height: 0.95;
}

.brand-sm {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-lines {
  font-size: 1rem;
  font-weight: 800;
}

.brand-lines span {
  color: var(--color-gold);
}

.primary-nav ul,
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  padding: 34px 0;
  color: var(--color-navy);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.header-cta {
  color: var(--color-white);
  background: var(--color-navy);
  box-shadow: 0 8px 20px rgba(3, 28, 56, 0.16);
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--color-navy-2);
  transform: translateY(-1px);
}

.icon {
  width: 18px;
  height: 18px;
  color: currentColor;
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-navy);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 28, 56, 0.98) 0%, rgba(3, 28, 56, 0.9) 34%, rgba(3, 28, 56, 0.35) 67%, rgba(3, 28, 56, 0.14) 100%),
    linear-gradient(0deg, rgba(3, 28, 56, 0.26), rgba(3, 28, 56, 0.08));
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 86px 0 122px;
}

.hero-content {
  max-width: 720px;
  animation: heroIn 650ms ease both;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--color-gold);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-kicker > span:first-child {
  flex: 0 0 auto;
  width: 34px;
  height: 2px;
  background: var(--color-gold);
}

.hero-kicker > span:not(:first-child) {
  width: auto;
  height: auto;
  background: none;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.9rem, 4.8vw, 4.65rem);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 strong {
  color: var(--color-gold);
  font-weight: inherit;
}

.hero-copy {
  max-width: 530px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.btn-gold {
  color: var(--color-navy);
  background: var(--color-gold);
  box-shadow: 0 12px 24px rgba(217, 167, 62, 0.25);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(217, 167, 62, 0.32);
}

.btn-outline {
  color: var(--color-white);
  border-color: var(--color-gold);
  background: rgba(3, 28, 56, 0.35);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--color-navy);
  background: var(--color-gold);
  transform: translateY(-2px);
}

.btn-navy {
  color: var(--color-white);
  background: var(--color-navy);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--color-navy-2);
  transform: translateY(-1px);
}

.btn-outline-dark {
  color: var(--color-navy);
  border-color: var(--color-gold);
  background: var(--color-white);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  color: var(--color-navy);
  background: var(--color-gold);
}

.btn-danger {
  color: var(--color-white);
  background: #9f1f17;
  border-color: #9f1f17;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: #7d1712;
  transform: translateY(-1px);
}

.stats-band {
  position: relative;
  z-index: 3;
  margin-top: -64px;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 22px 28px;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-icon {
  width: 44px;
  height: 44px;
  color: var(--color-gold);
  flex: 0 0 auto;
}

.stat-item strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
}

.stat-item span:not(.stat-icon) {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.property-search {
  position: relative;
  z-index: 2;
  padding: 26px 0 18px;
}

.search-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 1.45fr);
  gap: 24px;
  align-items: center;
  padding: 24px 32px;
  background: var(--color-white);
  border: 1px solid rgba(3, 28, 56, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.search-intro {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-icon {
  width: 64px;
  height: 64px;
  color: var(--color-gold);
}

.search-intro h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.search-intro p {
  margin: 0;
  color: var(--color-text);
}

.search-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
}

.search-controls select {
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 16px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid #ccd4df;
  border-radius: var(--radius);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-navy) 50%),
    linear-gradient(135deg, var(--color-navy) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 14px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.search-card.has-error select:invalid {
  border-color: #b3261e;
}

.form-message {
  grid-column: 2;
  min-height: 20px;
  margin: -6px 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.section {
  padding: 42px 0 58px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.center {
  text-align: center;
}

.section-heading h2 {
  position: relative;
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(2rem, 3vw, 2.55rem);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0;
}

.section-heading.center h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--color-gold);
}

.section-lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.about-section {
  background: var(--color-white);
}

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

.about-card {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.about-image {
  min-height: 360px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.about-image img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-highlights {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.about-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  color: var(--color-navy);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-weight: 800;
}

.about-highlights .icon {
  color: var(--color-gold);
}

.services {
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 196px;
  padding: 26px 14px 20px;
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(3, 28, 56, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(217, 167, 62, 0.5);
  box-shadow: 0 18px 32px rgba(3, 28, 56, 0.12);
}

.card-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  color: var(--color-gold);
}

.service-card h3 {
  margin: 0 0 8px;
  color: var(--color-navy);
  font-size: 1rem;
  line-height: 1.15;
}

.service-card p {
  margin: 0;
  color: #1e2d45;
  font-size: 0.86rem;
}

.why-section {
  padding: 38px 0 44px;
  color: var(--color-white);
  background: var(--color-navy);
}

.section-heading-dark h2 {
  color: var(--color-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.why-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 8px 18px;
}

.why-item + .why-item {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.why-icon {
  width: 50px;
  height: 50px;
  color: var(--color-gold);
  flex: 0 0 auto;
}

.why-item h3 {
  margin: 0 0 5px;
  color: var(--color-white);
  font-size: 0.98rem;
}

.why-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  line-height: 1.45;
}

.projects {
  background: var(--color-bg);
}

.process-section {
  background: var(--color-white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-card {
  position: relative;
  min-height: 190px;
  padding: 28px 22px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(3, 28, 56, 0.06);
}

.process-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--color-navy);
  background: var(--color-gold);
  border-radius: 50%;
  font-weight: 850;
}

.process-card h3,
.testimonial-card h3 {
  margin: 0 0 8px;
  color: var(--color-navy);
}

.process-card p,
.testimonial-card p {
  margin: 0;
  color: var(--color-muted);
}

.projects-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.projects-header .section-heading {
  margin-bottom: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(3, 28, 56, 0.13);
  isolation: isolate;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3, 28, 56, 0.06) 35%, rgba(3, 28, 56, 0.95) 100%);
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.08);
}

.project-status {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  color: var(--color-navy);
  background: var(--color-gold);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(3, 28, 56, 0.14);
}

.project-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
}

.project-content .icon {
  width: 26px;
  height: 26px;
}

.project-content h3,
.project-content p {
  margin: 0;
}

.project-content h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.project-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
}

.empty-projects {
  margin: 22px 0 0;
  padding: 18px;
  color: var(--color-muted);
  background: var(--color-white);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.gallery-section {
  background: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-navy);
  box-shadow: 0 12px 28px rgba(3, 28, 56, 0.12);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(3, 28, 56, 0.82) 100%);
}

.gallery-item figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: var(--color-white);
  font-weight: 850;
}

.testimonials-section {
  background: var(--color-bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testimonial-card {
  padding: 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(3, 28, 56, 0.06);
}

.testimonial-card p {
  margin-bottom: 22px;
  font-size: 1.02rem;
}

.testimonial-card p::before {
  content: '"';
  color: var(--color-gold);
  font-size: 2.2rem;
  font-weight: 850;
  line-height: 0;
}

.testimonial-card span {
  color: var(--color-gold-dark);
  font-weight: 800;
}

.partners-strip {
  padding: 24px 0;
  color: var(--color-white);
  background: var(--color-navy);
}

.partners-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.partners-inner strong {
  color: var(--color-gold);
  text-transform: uppercase;
}

.partners-inner div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.partners-inner span {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.faq-section {
  background: var(--color-white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 46px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.faq-item summary {
  padding: 18px 20px;
  color: var(--color-navy);
  cursor: pointer;
  font-weight: 850;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--color-muted);
}

.contact-section {
  padding: 58px 0;
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-panel,
.lead-form,
.map-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.contact-panel {
  padding: 34px;
}

.contact-panel h2 {
  margin: 0 0 16px;
  color: var(--color-navy);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.12;
}

.contact-panel p {
  color: var(--color-muted);
}

.contact-list-dark li {
  color: var(--color-text);
}

.contact-list-dark a {
  color: var(--color-text);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row:nth-child(4),
.lead-form .btn,
.lead-form .form-message {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--color-navy);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid #ccd4df;
  border-radius: var(--radius);
}

.form-row textarea {
  resize: vertical;
}

.lead-form.has-error input:invalid,
.lead-form.has-error select:invalid {
  border-color: #b3261e;
}

.map-card {
  margin-top: 28px;
  overflow: hidden;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 330px;
  border: 0;
}

.legal-section {
  padding: 28px 0;
  background: var(--color-white);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.legal-grid article {
  padding: 22px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.legal-grid h2 {
  margin: 0 0 8px;
  color: var(--color-navy);
  font-size: 1.1rem;
}

.legal-grid p {
  margin: 0;
  color: var(--color-muted);
}

.detail-page {
  background: var(--color-bg);
}

.project-detail-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-navy);
}

.project-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 28, 56, 0.95) 0%, rgba(3, 28, 56, 0.72) 45%, rgba(3, 28, 56, 0.18) 100%);
}

.project-detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-content {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}

.project-detail-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
}

.project-detail-content p:not(.section-kicker) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--color-gold);
  font-weight: 850;
  text-transform: uppercase;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-meta span {
  padding: 9px 12px;
  color: var(--color-navy);
  background: var(--color-gold);
  border-radius: 999px;
  font-weight: 850;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.detail-card {
  padding: 26px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(3, 28, 56, 0.06);
}

.detail-card h2 {
  margin: 0 0 16px;
  color: var(--color-navy);
}

.detail-card ul,
.detail-card ol {
  padding-left: 20px;
  margin: 0;
  color: var(--color-muted);
}

.detail-card li + li {
  margin-top: 8px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(3, 28, 56, 0.12);
}

.brochure-page {
  padding: 28px;
  background: #e9edf3;
}

.brochure-sheet {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 34px;
  background: var(--color-white);
  border-top: 8px solid var(--color-gold);
  box-shadow: var(--shadow-strong);
}

.brochure-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.brochure-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
}

.brochure-hero h1 {
  margin: 0 0 12px;
  color: var(--color-navy);
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.brochure-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.brochure-meta span {
  padding: 9px 12px;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: 999px;
  font-weight: 800;
}

.brochure-sheet section {
  margin-top: 22px;
}

.brochure-sheet h2 {
  color: var(--color-navy);
}

.brochure-sheet footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.brochure-sheet button,
.brochure-sheet a {
  padding: 10px 14px;
  color: var(--color-navy);
  background: var(--color-gold);
  border: 0;
  border-radius: var(--radius);
  font-weight: 850;
}

.site-footer {
  color: var(--color-white);
  background: var(--color-navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.25fr 1fr;
  gap: 48px;
  padding: 42px 0 34px;
}

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

.brand-footer .brand-text,
.footer-column h2 {
  color: var(--color-white);
}

.brand-footer .brand-sm {
  font-size: 2.5rem;
}

.footer-brand p,
.footer-column p {
  max-width: 250px;
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.8);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--color-gold);
  border: 1px solid rgba(217, 167, 62, 0.45);
  border-radius: 50%;
  transition: background 180ms ease, color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--color-navy);
  background: var(--color-gold);
}

.footer-column h2 {
  margin: 0 0 16px;
  font-size: 0.98rem;
  text-transform: uppercase;
}

.footer-column li + li {
  margin-top: 8px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  transition: color 180ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--color-gold);
}

.footer-column ul[data-footer-nav-list] a::after {
  content: ">";
  margin-left: 14px;
  color: var(--color-gold);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-list .icon {
  color: var(--color-gold);
}

.footer-cta .btn {
  width: max-content;
  min-height: 44px;
}

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

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 58px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-site,
.legal-links,
.legal-links a {
  display: inline-flex;
  align-items: center;
}

.footer-site {
  gap: 9px;
  color: var(--color-white);
  font-weight: 700;
}

.footer-site .icon {
  color: var(--color-gold);
}

.legal-links {
  gap: 18px;
}

.legal-links a:hover,
.legal-links a:focus-visible,
.footer-site:hover,
.footer-site:focus-visible {
  color: var(--color-gold);
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  gap: 12px;
}

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

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 28, 56, 0.76);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.9fr);
  width: min(100%, 980px);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--color-white);
  background: rgba(3, 28, 56, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--color-navy);
  background: var(--color-gold);
}

.modal-media {
  position: relative;
  min-height: 420px;
  background: var(--color-navy);
}

.modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 28, 56, 0.02) 45%, rgba(3, 28, 56, 0.42) 100%);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-status {
  z-index: 2;
}

.modal-content {
  padding: 42px 38px 36px;
}

.modal-content h2 {
  margin: 0 0 14px;
  color: var(--color-navy);
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.08;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-navy);
  font-weight: 800;
}

.modal-meta .icon {
  color: var(--color-gold);
}

.modal-content p:not(.section-kicker) {
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: 1rem;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.modal-features li {
  position: relative;
  padding-left: 22px;
  color: var(--color-text);
  font-weight: 700;
}

.modal-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.float-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(3, 28, 56, 0.24);
  transition: transform 180ms ease;
}

.float-btn:hover,
.float-btn:focus-visible {
  transform: translateY(-3px);
}

.float-btn.whatsapp {
  background: #1fae62;
}

.float-btn.call {
  background: var(--color-gold);
  color: var(--color-navy);
}

.tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 7px 10px;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: 6px;
  font-size: 0.76rem;
  white-space: nowrap;
  opacity: 0;
  transform: translate(8px, -50%);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.float-btn:hover .tooltip,
.float-btn:focus-visible .tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.noscript-message {
  padding: 14px;
  text-align: center;
  color: var(--color-white);
  background: #b3261e;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  :root {
    --container: 1000px;
  }

  .brand-lines {
    font-size: 0.88rem;
  }

  .primary-nav ul {
    gap: 16px;
  }

  .header-cta {
    padding: 0 16px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 0;
  }

  .why-item:nth-child(4) {
    border-left: 0;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid,
  .gallery-grid,
  .testimonial-grid,
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 78px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    max-height: calc(100vh - var(--header-height));
    overflow: auto;
    padding: 18px 16px 26px;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(3, 28, 56, 0.15);
    transform: translateY(-115%);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 180ms ease;
  }

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

  .primary-nav ul {
    width: min(100%, var(--container));
    margin-inline: auto;
    display: grid;
    gap: 0;
  }

  .nav-link {
    display: flex;
    padding: 16px 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link::after {
    right: auto;
    bottom: 11px;
    width: 58px;
  }

  .hero {
    min-height: 570px;
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 28, 56, 0.98) 0%, rgba(3, 28, 56, 0.86) 50%, rgba(3, 28, 56, 0.32) 100%),
      linear-gradient(0deg, rgba(3, 28, 56, 0.3), rgba(3, 28, 56, 0.08));
  }

  .hero-inner {
    padding: 68px 0 110px;
  }

  .stats-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(3) {
    border-left: 0;
  }

  .stat-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .search-card {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .about-card,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 300px;
  }

  .search-controls {
    grid-template-columns: 1fr 1fr;
  }

  .search-controls .btn {
    grid-column: 1 / -1;
  }

  .form-message {
    grid-column: 1;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-item,
  .why-item + .why-item,
  .why-item:nth-child(4) {
    border-left: 0;
  }

  .why-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.24);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  .footer-bottom-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
    text-align: center;
  }

  .partners-inner {
    display: grid;
    justify-items: start;
  }

  .partners-inner div {
    justify-content: flex-start;
  }

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

  .modal-media {
    min-height: 300px;
  }

  .detail-grid,
  .detail-gallery,
  .brochure-hero,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .site-header,
  .site-header.is-scrolled {
    height: 72px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-text {
    gap: 7px;
  }

  .brand-sm {
    font-size: 2rem;
  }

  .brand-lines {
    font-size: 0.7rem;
  }

  .primary-nav {
    inset: 72px 0 auto 0;
    max-height: calc(100vh - 72px);
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 28, 56, 0.98) 0%, rgba(3, 28, 56, 0.88) 62%, rgba(3, 28, 56, 0.62) 100%),
      linear-gradient(0deg, rgba(3, 28, 56, 0.46), rgba(3, 28, 56, 0.08));
  }

  .hero-inner {
    padding: 64px 0 96px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.4vw, 3rem);
    line-height: 1.12;
  }

  .hero-kicker {
    align-items: flex-start;
    max-width: 320px;
    margin-bottom: 16px;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .hero-kicker > span:first-child {
    width: 28px;
    margin-top: 8px;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    gap: 14px;
  }

  .stats-band {
    margin-top: -44px;
  }

  .stats-card {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .stat-item,
  .stat-item + .stat-item,
  .stat-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .stat-item:first-child {
    border-top: 0;
  }

  .search-card {
    padding: 22px;
    border-radius: 12px;
  }

  .search-intro {
    align-items: flex-start;
  }

  .search-icon {
    width: 54px;
    height: 54px;
  }

  .search-controls {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 38px 0 48px;
  }

  .services-grid,
  .projects-grid,
  .process-grid,
  .gallery-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .contact-panel {
    padding: 24px;
  }

  .service-card {
    min-height: 0;
  }

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

  .why-item,
  .why-item:nth-child(odd) {
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .why-item:first-child {
    border-top: 0;
  }

  .projects-header {
    display: grid;
    align-items: start;
  }

  .projects-header .btn {
    width: 100%;
  }

  .project-card {
    min-height: 250px;
  }

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

  .footer-bottom-inner {
    display: grid;
    gap: 12px;
  }

  .floating-contact {
    display: none;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .project-modal {
    padding: 12px;
  }

  .modal-panel {
    max-height: 90vh;
    border-radius: 12px;
  }

  .modal-media {
    min-height: 230px;
  }

  .modal-content {
    padding: 26px 20px 22px;
  }

  .modal-features {
    grid-template-columns: 1fr;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .project-detail-hero {
    min-height: 480px;
  }

  .project-detail-content {
    padding: 58px 0;
  }

  .detail-grid,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery img {
    height: 230px;
  }

  .brochure-page {
    padding: 10px;
  }

  .brochure-sheet {
    padding: 20px;
  }

  .brochure-hero img {
    height: 240px;
  }
}

@media (max-width: 380px) {
  .brand-lines {
    display: none;
  }

  .hero-kicker {
    align-items: flex-start;
  }

  .hero-kicker > span:first-child {
    width: 24px;
    margin-top: 8px;
  }

  .search-card {
    padding: 18px;
  }

  .stat-item {
    padding: 18px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.cms-admin-page {
  background: var(--color-bg);
}

.cms-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.cms-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  color: var(--color-white);
  background: var(--color-navy);
}

.cms-sidebar .brand-text,
.cms-sidebar .brand-mark {
  color: var(--color-white);
}

.cms-tabs {
  display: grid;
  gap: 10px;
}

.cms-tabs button {
  width: 100%;
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-weight: 800;
}

.cms-tabs button.is-active,
.cms-tabs button:hover {
  color: var(--color-navy);
  background: var(--color-gold);
}

.cms-workspace {
  padding: 30px;
}

.cms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.cms-header h1 {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

.cms-pin-form {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(3, 28, 56, 0.06);
}

.cms-pin-form label,
.cms-grid label,
.cms-card label {
  display: grid;
  gap: 7px;
  color: var(--color-navy);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.cms-pin-form input,
.cms-grid input,
.cms-grid textarea,
.cms-grid select,
.cms-card input,
.cms-card textarea,
.cms-card select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid #cbd4df;
  border-radius: 8px;
  text-transform: none;
}

.cms-card textarea {
  resize: vertical;
}

.cms-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: var(--color-navy);
  background: #fff8e7;
  border: 1px solid rgba(217, 167, 62, 0.45);
  border-radius: 8px;
  font-weight: 800;
}

.cms-status.is-error {
  color: #8f1f17;
  background: #fff1ef;
  border-color: #e2a19b;
}

.cms-panel {
  display: none;
  gap: 18px;
}

.cms-panel.is-active {
  display: grid;
}

.cms-card {
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(3, 28, 56, 0.06);
}

.cms-card h2 {
  margin: 0 0 18px;
  color: var(--color-navy);
}

.cms-help {
  margin-top: -8px;
  color: var(--color-muted);
}

.cms-backup-meta {
  margin: 12px 0 0;
  padding: 12px 14px;
  color: var(--color-navy);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-weight: 800;
}

.cms-backup-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.cms-backup-list h3 {
  margin: 0;
  color: var(--color-navy);
  font-size: 1rem;
}

.cms-backup-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  color: var(--color-navy);
  text-align: left;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.cms-backup-item:hover,
.cms-backup-item:focus-visible,
.cms-backup-item.is-latest {
  border-color: var(--color-gold);
  box-shadow: 0 8px 18px rgba(3, 28, 56, 0.08);
}

.cms-backup-item span {
  font-weight: 900;
}

.cms-backup-item small {
  color: var(--color-muted);
  font-weight: 800;
}

.cms-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cms-block-head h3 {
  margin: 0 0 4px;
  color: var(--color-navy);
}

.cms-block-head .cms-help {
  margin: 0;
}

.cms-grid {
  display: grid;
  gap: 16px;
}

.cms-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.cms-grid .wide {
  grid-column: 1 / -1;
}

.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cms-actions.compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cms-actions.image-url-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-image-block {
  display: block;
}

.cms-image-editor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cms-image-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.cms-url-image-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.cms-url-image-preview.wide {
  grid-column: 1 / -1;
}

.cms-image-preview {
  display: grid;
  place-items: center;
  min-height: 170px;
  overflow: hidden;
  color: var(--color-muted);
  background: var(--color-navy);
  border-radius: 10px;
  font-weight: 800;
}

.cms-image-preview.is-broken {
  padding: 16px;
  color: #8d1f17;
  text-align: center;
  background: #fff1ef;
  border: 1px dashed #e2a19b;
}

.cms-image-preview small {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.cms-image-preview img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.cms-url-image-preview .cms-image-preview img {
  height: 260px;
}

.cms-url-image-preview [aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.import-btn input {
  display: none;
}

@media (max-width: 960px) {
  .cms-shell {
    grid-template-columns: 1fr;
  }

  .cms-sidebar {
    position: static;
    height: auto;
  }

  .cms-header {
    display: grid;
  }

  .cms-image-editor {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .cms-workspace,
  .cms-sidebar {
    padding: 18px;
  }

  .cms-grid.two {
    grid-template-columns: 1fr;
  }

  .cms-pin-form,
  .cms-actions {
    display: grid;
  }

  .cms-block-head {
    display: grid;
  }

  .cms-image-editor {
    grid-template-columns: 1fr;
  }

  .cms-actions.compact {
    grid-template-columns: 1fr;
  }
}
