/* VERSIÓN COMPACTA: espacios verticales, márgenes y paddings reducidos. */

/* =========================================================
   VARIABLES GENERALES
   ========================================================= */
:root {
  --green-950: #173b2b;
  --green-900: #1f4d37;
  --green-800: #285e43;
  --green-700: #347653;
  --green-100: #e7efe9;
  --green-50: #f4f8f5;
  --ink: #202620;
  --muted: #616a63;
  --cream: #f8f6ef;
  --white: #ffffff;
  --gold: #b79b5d;
  --border: #dbe4dc;
  --shadow: 0 18px 45px rgba(24, 60, 43, 0.12);
  --radius: 18px;
  --container: min(1180px, calc(100% - 40px));
  --font-body: "Nunito Sans", Arial, Helvetica, sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
}

/* =========================================================
   NORMALIZACIÓN Y ESTILOS BASE
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

ul,
ol {
  margin-top: 0.55rem;
  margin-bottom: 0.55rem;
}

summary {
  line-height: 1.35;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 16px;
}

/* =========================================================
   ENCABEZADO Y NAVEGACIÓN
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(36, 90, 63, 0.14);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 124px;
  gap: 16px;
}

.brand img {
  width: auto;
  height: 124px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 100%;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--green-700);
  content: "";
  transition: right 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  right: 0;
}

.main-nav .nav-cta {
  padding: 11px 18px;
  color: var(--white);
  background: var(--green-800);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  padding: 8px;
  background: none;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px;
  background: var(--green-900);
}

/* =========================================================
   PORTADA PRINCIPAL
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 580px;
  color: var(--white);
  background: url("assets/img/banner1.webp") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 52, 36, 0.92) 0%, rgba(25, 64, 44, 0.72) 52%, rgba(25, 64, 44, 0.18) 100%);
}

.hero-content {
  position: relative;
  padding: 40px 0 46px;
}

.eyebrow,
.section-kicker {
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  color: #d9e6dc;
}

.hero h1 {
  max-width: 870px;
  margin: 6px 0 12px;
  font-size: clamp(1.85rem, 3.7vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 0;
  color: #edf4ef;
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.48;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 21px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 8px 24px rgba(11, 36, 24, 0.22);
}

.btn-light {
  color: var(--green-900);
  background: var(--white);
}

.btn-outline {
  color: var(--green-800);
  background: var(--white);
  border-color: var(--green-700);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 170px));
  gap: 12px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(7px);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.85rem;
}

.hero-stats span {
  color: #e0ebe3;
  font-size: 0.83rem;
  font-weight: 600;
}

/* =========================================================
   FRANJA DE CONTACTO ENTRE SECCIONES
   ========================================================= */
.section-contact {
  color: var(--green-950);
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  min-height: 72px;
  margin: auto;
  gap: 18px;
}

.contact-strip-message {
  margin: 0;
  color: var(--green-950);
  font-size: 0.95rem;
  font-weight: 800;
}

.contact-strip-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  padding: 7px 12px;
  color: var(--green-950);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  border: 1px solid var(--green-100);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(24, 60, 43, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--green-950);
  background: var(--green-50);
  border-color: var(--green-700);
  box-shadow: 0 8px 20px rgba(24, 60, 43, 0.12);
  transform: translateY(-2px);
}

.social-link img {
  display: block;
  width: auto;
  height: 28px;
  object-fit: contain;
}

.social-link-whatsapp img {
  height: 30px;
}

.social-link-linkedin img {
  height: 27px;
}

.social-link-instagram img {
  height: 29px;
}

.social-link-facebook img {
  height: 29px;
}

.social-icon-mobile {
  display: none;
}

.social-link span {
  color: var(--green-950);
  white-space: nowrap;
}

/* =========================================================
   SECCIONES Y BANNERS
   ========================================================= */
.page-section {
  background: var(--white);
}

.alt-section {
  background: var(--green-50);
}

.section-banner {
  display: flex;
  align-items: end;
  min-height: 195px;
  padding: 38px 0 27px;
  color: var(--white);
  background: linear-gradient(90deg, rgba(18, 52, 36, 0.89), rgba(18, 52, 36, 0.38)), url("assets/img/banner2.webp") center 48% / cover no-repeat;
}

.section-banner p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-banner h2 {
  margin: 3px 0 0;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-body {
  padding: 54px 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 44px;
}

.section-kicker {
  color: var(--green-700);
}

.section-body h3,
.catalog-download h3 {
  margin: 5px 0 14px;
  color: var(--green-950);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.10;
  letter-spacing: -0.018em;
}

.section-body p {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.notice {
  margin-top: 16px;
  padding: 13px 15px;
  color: #5a513d;
  background: #fbf6e9;
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
}

/* Banner exclusivo del área de servicios */
#servicios .section-banner {
  background: linear-gradient(90deg, rgba(18, 52, 36, 0.89), rgba(18, 52, 36, 0.38)), url("assets/img/banner3.webp") center 48% / cover no-repeat;
}

/* =========================================================
   VALORES INSTITUCIONALES
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.value-card {
  padding: 21px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(24, 60, 43, 0.07);
}

.value-card span {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.55rem;
}

.value-card h4 {
  margin: 4px 0;
  font-size: 1.35rem;
}

.value-card p {
  margin: 0;
  font-size: 0.94rem;
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.section-intro {
  max-width: 790px;
  margin-bottom: 24px;
}

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

.service-card {
  position: relative;
  padding: 23px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(24, 60, 43, 0.06);
}

.service-card.featured {
  border-top: 5px solid var(--green-700);
}

.service-number {
  color: #96aa9d;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.service-card h4 {
  margin: 4px 0 6px;
  color: var(--green-950);
  font-size: 1.55rem;
  line-height: 1.25;
}

.service-card p {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.service-card .tag {
  position: absolute;
  top: 17px;
  right: 17px;
  padding: 5px 9px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.service-card details {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.service-card summary {
  color: var(--green-800);
  font-weight: 800;
  cursor: pointer;
}

.service-card ul {
  margin-bottom: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.catalog-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 25px 28px;
  color: var(--white);
  background: var(--green-950);
  border-radius: var(--radius);
}

.catalog-download h3 {
  margin: 3px 0 5px;
  color: var(--white);
}

.catalog-download p {
  margin: 0;
  color: #dce8e0;
}

.catalog-download .section-kicker {
  color: #b9d0c1;
}

.catalog-download .btn {
  white-space: nowrap;
}

/* =========================================================
   EQUIPO
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.team-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(24, 60, 43, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-card div {
  padding: 14px;
}

.team-card h4 {
  margin: 0 0 2px;
  color: var(--green-950);
  font-size: 1.25rem;
}

.team-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Banner exclusivo del equipo técnico y administrativo */
#equipo .section-banner {
  background: linear-gradient(90deg, rgba(18, 52, 36, 0.89), rgba(18, 52, 36, 0.38)), url("assets/img/banner4.webp") center 48% / cover no-repeat;
}

/* =========================================================
   PROCESO COMAP
   ========================================================= */
.comap-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 42px;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process-list li {
  position: relative;
  margin-left: 24px;
  padding: 0 0 20px 66px;
  border-left: 1px solid #bed0c4;
  counter-increment: steps;
}

.process-list li:last-child {
  padding-bottom: 0;
}

.process-list li::before {
  position: absolute;
  top: 0;
  left: -25px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--green-800);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  border-radius: 50%;
  content: counter(steps);
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  color: var(--green-950);
  font-family: var(--font-heading);
  font-size: 1.14rem;
}

.process-list span {
  margin-top: 2px;
  color: var(--muted);
}

/* =========================================================
   CLIENTES
   ========================================================= */
.clients-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.client-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.client-types div {
  padding: 15px 12px;
  color: var(--green-900);
  background: var(--green-50);
  font-weight: 800;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* Banner exclusivo de proyectos de inversión COMAP */
#comap .section-banner {
  background: linear-gradient(90deg, rgba(18, 52, 36, 0.89), rgba(18, 52, 36, 0.38)), url("assets/img/banner5.webp") center 48% / cover no-repeat;
}

/* Banner exclusivo de nuestros clientes */
#clientes .section-banner {
  background: linear-gradient(90deg, rgba(18, 52, 36, 0.89), rgba(18, 52, 36, 0.38)), url("assets/img/banner6.webp") center 48% / cover no-repeat;
}

/* Banner exclusivo de contacto */
#contacto .section-banner {
  background: linear-gradient(90deg, rgba(18, 52, 36, 0.89), rgba(18, 52, 36, 0.38)), url("assets/img/banner7.webp") center 48% / cover no-repeat;
}

/* =========================================================
   CONTACTO Y MAPA
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
  gap: 30px;
}

.contact-panel,
.map-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 13px 32px rgba(24, 60, 43, 0.08);
}

.contact-panel {
  padding: 27px;
}

.contact-list {
  margin: 18px 0 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.contact-list dt {
  color: var(--green-900);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
  color: var(--muted);
}

.contact-list a:hover {
  text-decoration: underline;
}

.map-card {
  overflow: hidden;
}

.map-card img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.map-card a {
  display: block;
  height: calc(100% - 47px);
}

.map-card p {
  margin: 0;
  padding: 9px 13px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.78rem;
}

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */
.site-footer {
  padding: 40px 0 16px;
  color: #e8f0eb;
  background: #102d20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 38px;
}

.footer-logo {
  width: 190px;
  padding: 8px;
  background: var(--white);
  border-radius: 8px;
}

.footer-grid p {
  max-width: 370px;
  margin-bottom: 0;
  color: #bcd0c2;
  line-height: 1.5;
}

.footer-grid h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.footer-grid a {
  display: block;
  margin: 4px 0;
  color: #c8d9ce;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 13px;
  color: #a9bdb0;
  font-size: 0.84rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* =========================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================= */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

/* =========================================================
   TABLETS Y PANTALLAS MEDIANAS
   ========================================================= */
@media (max-width: 1020px) {
  .main-nav {
    position: fixed;
    top: 86px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 20px;
    background: var(--white);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
  }

  .main-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .two-column,
  .comap-layout,
  .clients-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

  .contact-strip {
    align-items: center;
    padding: 10px 0;
  }

  .catalog-download {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-card img {
    min-height: 300px;
  }
}

/* =========================================================
   TELÉFONOS Y PANTALLAS PEQUEÑAS
   ========================================================= */
@media (max-width: 700px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .header-inner {
    align-items: center;
    height: 76px;
  }

  .brand {
    display: block;
    width: min(230px, calc(100vw - 105px));
    height: 60px;
    background: url("assets/img/logom.jpg") left center / contain no-repeat;
  }

  .brand img {
    display: none;
  }

  .main-nav {
    top: 76px;
  }

  .hero {
    min-height: 540px;
  }

  .hero-content {
    padding: 34px 0 30px;
  }

  .hero h1 {
    font-size: 1.86rem;
    line-height: 1.12;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-stats div {
    display: flex;
    align-items: center;
    gap: 13px;
  }

  .section-contact {
    padding: 0;
  }

  .contact-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding: 18px 0;
    gap: 14px;
  }

  .contact-strip-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    color: var(--green-950);
    font-size: 0;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
  }

  .contact-strip-message::before {
    display: block;
    font-size: 1rem;
    content: "¿Necesita asesoramiento?";
  }

  .contact-strip-message::after {
    display: block;
    margin-top: 2px;
    font-size: 1rem;
    content: "Comuníquese con nuestro equipo.";
  }

  .contact-strip-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .social-link,
  .social-link-whatsapp,
  .social-link-linkedin,
  .social-link-instagram,
  .social-link-facebook {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    max-width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
  }

  .social-link .social-icon-desktop {
    display: none;
  }

  .social-link .social-icon-mobile {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .social-link span {
    display: none;
  }

  .section-banner {
    min-height: 160px;
  }

  .section-body {
    padding: 40px 0;
  }

  .values-grid,
  .team-grid,
  .client-types {
    grid-template-columns: 1fr 1fr;
  }

  .team-card div {
    padding: 14px;
  }

  .catalog-download {
    padding: 21px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   TELÉFONOS COMPACTOS
   ========================================================= */
@media (max-width: 480px) {
  .values-grid,
  .team-grid,
  .client-types {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.58rem;
  }

  .section-body h3,
  .catalog-download h3 {
    font-size: 1.33rem;
  }

  .service-card {
    padding: 20px;
  }

  .team-card {
    display: grid;
    grid-template-columns: 115px 1fr;
  }

  .team-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .team-card div {
    align-self: center;
  }
}

/* =========================================================
   PÁGINA DEL CATÁLOGO COMPLETO
   ========================================================= */
.catalog-page {
  background: var(--green-50);
}

.catalog-page-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 470px;
  color: var(--white);
  background: url("assets/img/banner3.png") center 48% / cover no-repeat;
}

.catalog-page-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 52, 36, 0.96) 0%, rgba(24, 67, 45, 0.82) 55%, rgba(24, 67, 45, 0.42) 100%);
}

.catalog-page-hero-content {
  position: relative;
  padding: 58px 0 52px;
}

.catalog-page-hero h1 {
  max-width: 850px;
  margin: 7px 0 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
}

.catalog-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 190px));
  gap: 12px;
  margin-top: 34px;
}

.catalog-hero-stats div {
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(7px);
}

.catalog-hero-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
}

.catalog-hero-stats span {
  color: #e1ece5;
  font-size: 0.84rem;
  font-weight: 700;
}

.catalog-introduction {
  padding: 34px 0 0;
}

.catalog-intro-card {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  align-items: center;
  gap: 34px;
  padding: 30px 34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 13px 32px rgba(24, 60, 43, 0.08);
}

.catalog-intro-card h2 {
  margin: 5px 0 10px;
  color: var(--green-950);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.catalog-intro-card p {
  margin: 0;
  color: var(--muted);
}

.catalog-legend {
  padding: 19px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 14px;
}

.catalog-legend p {
  margin-top: 10px;
  font-size: 0.9rem;
}

.catalog-directory {
  padding: 48px 0 64px;
}

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

.catalog-heading h2 {
  margin: 4px 0 0;
  color: var(--green-950);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.catalog-heading p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
}

.catalog-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 9px 24px rgba(24, 60, 43, 0.06);
}

.catalog-search {
  display: grid;
  flex: 1;
  gap: 7px;
  color: var(--green-950);
  font-size: 0.83rem;
  font-weight: 800;
}

.catalog-search input {
  width: 100%;
  min-height: 50px;
  padding: 11px 15px;
  color: var(--ink);
  background: var(--green-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
}

.catalog-search input:focus {
  background: var(--white);
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(52, 118, 83, 0.13);
}

.catalog-tool-actions {
  display: flex;
  gap: 9px;
}

.catalog-tool-actions .btn {
  min-height: 48px;
  padding: 10px 16px;
  cursor: pointer;
}

.catalog-results {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.catalog-index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}

.catalog-index-link {
  display: grid;
  align-content: start;
  min-height: 132px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(24, 60, 43, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-index-link:hover,
.catalog-index-link:focus-visible {
  border-color: var(--green-700);
  box-shadow: 0 12px 26px rgba(24, 60, 43, 0.1);
  transform: translateY(-3px);
}

.catalog-index-link span {
  color: #8aa394;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.catalog-index-link strong {
  margin-top: 5px;
  color: var(--green-950);
  font-size: 0.93rem;
  line-height: 1.28;
}

.catalog-index-link small {
  margin-top: auto;
  padding-top: 10px;
  color: var(--green-700);
  font-weight: 800;
}

.catalog-areas {
  display: grid;
  gap: 15px;
}

.catalog-area {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(24, 60, 43, 0.06);
  scroll-margin-top: 100px;
}

.catalog-area[hidden] {
  display: none;
}

.catalog-area > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 21px 58px 21px 23px;
  color: var(--green-950);
  background: var(--white);
  cursor: pointer;
  list-style: none;
}

.catalog-area > summary::-webkit-details-marker {
  display: none;
}

.catalog-area > summary::after {
  position: absolute;
  top: 50%;
  right: 23px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.catalog-area[open] > summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.catalog-area[open] > summary {
  background: var(--green-50);
  border-bottom: 1px solid var(--border);
}

.catalog-area-number {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: var(--green-800);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  border-radius: 50%;
}

.catalog-area-title {
  display: grid;
  gap: 2px;
}

.catalog-area-title strong {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.15;
}

.catalog-area-title small {
  color: var(--green-700);
  font-weight: 800;
}

.catalog-area-content {
  padding: 24px;
}

.catalog-subsection + .catalog-subsection {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.catalog-subsection h3 {
  margin: 0 0 15px;
  color: var(--green-800);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.catalog-services-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 31px;
}

.catalog-service-item {
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfdfb;
  border: 1px solid #e5ece7;
  border-radius: 10px;
}

.catalog-service-item::marker {
  color: var(--green-700);
  font-weight: 900;
}

.catalog-service-item[hidden] {
  display: none;
}

.catalog-service-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service-specialty {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 25px;
  padding: 4px 9px;
  color: var(--white);
  background: var(--green-700);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
}

.service-scope {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.45;
}

.service-scope strong {
  color: var(--green-800);
}

.catalog-notes {
  margin-top: 28px;
  padding: 27px 29px;
  color: var(--white);
  background: var(--green-950);
  border-radius: var(--radius);
}

.catalog-notes h2 {
  margin: 5px 0 14px;
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.catalog-notes .section-kicker {
  color: #b9d0c1;
}

.catalog-notes ul {
  margin: 0;
  padding-left: 20px;
  color: #dce8e0;
}

.catalog-notes li + li {
  margin-top: 8px;
}

@media (max-width: 1020px) {
  .catalog-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-tool-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .catalog-page-hero {
    min-height: 500px;
  }

  .catalog-page-hero-content {
    padding: 42px 0 38px;
  }

  .catalog-page-hero h1 {
    font-size: 2rem;
  }

  .catalog-hero-stats {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .catalog-hero-stats div {
    display: flex;
    align-items: center;
    gap: 13px;
  }

  .catalog-introduction {
    padding-top: 22px;
  }

  .catalog-intro-card {
    gap: 20px;
    padding: 23px;
  }

  .catalog-directory {
    padding: 38px 0 50px;
  }

  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .catalog-index-grid {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-index-link {
    min-height: 120px;
    padding: 14px;
  }

  .catalog-area > summary {
    align-items: flex-start;
    padding: 18px 48px 18px 17px;
  }

  .catalog-area > summary::after {
    right: 18px;
  }

  .catalog-area-number {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .catalog-area-content {
    padding: 18px;
  }

  .catalog-service-main {
    flex-direction: column;
    gap: 7px;
  }

  .catalog-tool-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .catalog-tool-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .catalog-index-grid {
    grid-template-columns: 1fr;
  }

  .catalog-index-link {
    min-height: 104px;
  }

  .catalog-tool-actions {
    grid-template-columns: 1fr;
  }

  .catalog-services-list {
    padding-left: 25px;
  }

  .catalog-area-title strong {
    font-size: 1.22rem;
  }

  .catalog-notes {
    padding: 23px;
  }
}

