/* ── Container ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--sp-5); }
}

/* ── Section base ──────────────────────────────────── */
section {
  padding: 120px 0;
}

@media (max-width: 900px) {
  section { padding: 88px 0; }
}

@media (max-width: 480px) {
  section { padding: 64px 0; }
}

/* ── Section intro block ───────────────────────────── */
.section-intro {
  margin-bottom: 56px;
}

/* ── Hero ──────────────────────────────────────────── */
#hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 72px;
}

.skyline-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
}

#hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 48px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 40px 44px 36px;
  position: relative;
  z-index: 1;
}

.hero-left-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
}

.hero-left-text h1 { margin-bottom: 28px; }
.hero-left-text p  { margin-bottom: 24px; font-size: 1rem; line-height: 1.78; color: var(--text-mid); }

.hero-justicia {
  max-height: 272px;
  width: auto;
  flex-shrink: 0;
  align-self: flex-end;
  margin-top: auto;
  margin-right: -44px;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
  display: block;
}

@media (max-width: 680px) {
  .hero-content {
    display: block;
  }

  .hero-left { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-left-text h1 { margin-bottom: 20px; }
  .hero-justicia     { display: none; }
}

/* ── Products grid ─────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
}


/* ── Team grid ─────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}

.team-card               { grid-column: span 2; }
.team-card:nth-child(4)  { grid-column: 2 / span 2; }
.team-card:nth-child(5)  { grid-column: 4 / span 2; }

@media (max-width: 900px) {
  .team-grid               { grid-template-columns: repeat(2, 1fr); }
  .team-card               { grid-column: span 1; }
  .team-card:nth-child(4)  { grid-column: span 1; }
  .team-card:nth-child(5)  { grid-column: span 1; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Contact ───────────────────────────────────────── */
.contact-inner {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 32px 40px;
  position: relative;
  z-index: 1;
}

/* ── Footer ────────────────────────────────────────── */
footer {
  background: var(--color-card);
  border-top: 1px solid var(--border);
  padding: 56px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-right {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.75;
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
}
