/* ===========================================================
   ALTITUD ING. — Arquitectura e Ingeniería · Paraguay
   Sistema de diseño: cálido / tierra / editorial
   =========================================================== */

:root {
  /* Paleta — negro y dorado, elegante / nocturno */
  --bg:        #0D0C0A;
  --bg-sand:   #131210;
  --paper:     #18160F;
  --ink:       #F3EAD2;   /* texto y títulos (claro) */
  --ink-soft:  #D6CCB2;
  --muted:     #9B927C;
  --muted-2:   #756B57;
  --line:      #2B2620;
  --line-soft: #221E18;
  --clay:      #C9A24A;   /* dorado principal */
  --clay-deep: #DBB85E;   /* dorado brillante (hover/glow) */
  --clay-soft: #E7D49E;   /* dorado pálido */
  --gold-ink:  #181307;   /* texto oscuro sobre dorado */
  --olive:     #8A7B45;
  --shadow:    18px 34px 64px -30px rgba(0, 0, 0, .75);
  --shadow-sm: 8px 16px 34px -18px rgba(0, 0, 0, .65);

  /* Tipografía */
  --display: "Spectral", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 80px);
  --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--clay); color: var(--gold-ink); }

/* ---------- Tipografía base ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
.serif { font-family: var(--display); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--clay);
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 9vw, 140px); }
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); margin-top: 1rem; }
.section-head p { color: var(--muted); margin-top: 1.2rem; font-size: 1.1rem; max-width: 56ch; }

/* ===========================================================
   HEADER / NAV
   =========================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s ease, box-shadow .4s ease, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand .mark { width: 34px; height: 34px; flex: none; color: var(--clay); }
.brand .name { font-family: var(--display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.brand .name b { font-weight: 600; }
.brand .name span { color: var(--clay); }
.brand small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.4rem); }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: .3rem 0; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--clay); transition: width .3s ease; }
.nav-links a:hover { color: var(--clay); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .95rem;
  padding: .82em 1.5em; border-radius: 100px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--clay); color: var(--gold-ink); box-shadow: 0 10px 28px -12px rgba(201,162,74,.55); }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn-lg { padding: 1em 1.8em; font-size: 1rem; }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gut);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.65,0,.35,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--display); font-size: clamp(2rem, 8vw, 3rem); padding: .35rem 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border: none; }
.mobile-menu .mm-cta { margin-top: 2rem; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero-eyebrow { margin-bottom: 1.6rem; }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.2rem); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero .lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.28rem); margin-top: 1.6rem; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-meta { display: flex; gap: 2.2rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-meta .item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.hero-meta .item svg { width: 20px; height: 20px; color: var(--clay); flex: none; }

.hero-visual { position: relative; }
.hero-visual .cl-photo { width: 100%; aspect-ratio: 16/10; box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; left: -22px; top: calc(100% - 24px);
  background: var(--paper); border: 1px solid var(--line);
  padding: 1rem 1.3rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); max-width: 220px;
}
.hero-badge .num { font-family: var(--display); font-size: 2.4rem; color: var(--clay); line-height: 1; }
.hero-badge .lbl { font-size: .82rem; color: var(--muted); margin-top: .3rem; }

/* ===========================================================
   SERVICIOS
   =========================================================== */
.services { background: var(--bg-sand); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(40px, 5vw, 64px); }
.svc-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(26px, 3vw, 38px);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--clay); transform: scaleY(0); transform-origin: top; transition: transform .4s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::before { transform: scaleY(1); }
.svc-num { font-family: var(--display); font-size: .95rem; color: var(--clay); font-weight: 600; letter-spacing: .05em; }
.svc-icon { width: 42px; height: 42px; color: var(--ink); stroke-width: 1.4; }
.svc-card h3 { font-size: 1.4rem; }
.svc-card p { color: var(--muted); font-size: .98rem; }

/* ===========================================================
   PROYECTOS
   =========================================================== */
.proj-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.4rem; }
.proj-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(40px, 5vw, 64px); }
.proj {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-sand); border: 1px solid var(--line);
}
.proj image-slot { width: 100%; height: 100%; }
.proj .proj-img { position: relative; aspect-ratio: 4/3; }
.proj.feature { grid-column: span 4; }
.proj.feature .proj-img { aspect-ratio: 16/10; }
.proj.half { grid-column: span 2; }
.proj.third { grid-column: span 2; }
.proj-info {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(18px, 2vw, 28px);
  background: linear-gradient(to top, rgba(20,14,8,.86) 0%, rgba(20,14,8,.45) 55%, transparent 100%);
  color: #fff; pointer-events: none;
  transform: translateY(8px); opacity: .96; transition: transform .4s ease;
}
.proj:hover .proj-info { transform: translateY(0); }
.proj-tag { display: inline-block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--clay-soft); margin-bottom: .5rem; }
.proj-info h3 { color: #fff; font-size: clamp(1.2rem, 1.8vw, 1.7rem); }
.proj-info .loc { font-size: .85rem; opacity: .8; margin-top: .25rem; }

/* ===========================================================
   PROCESO
   =========================================================== */
.process { background: #070605; color: var(--ink); }
.process .eyebrow { color: var(--clay-soft); }
.process .eyebrow::before { background: var(--clay-soft); }
.process .section-head h2 { color: var(--ink); }
.process .section-head p { color: rgba(246,241,233,.65); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 30px); margin-top: clamp(44px, 5vw, 70px); }
.step { position: relative; padding-top: 2.4rem; border-top: 1px solid rgba(246,241,233,.18); }
.step .n { position: absolute; top: -.6rem; left: 0; font-family: var(--display); font-size: 3.4rem; color: var(--clay); line-height: 1; opacity: .9; }
.step h3 { color: var(--ink); font-size: 1.3rem; margin-top: .6rem; }
.step p { color: rgba(246,241,233,.62); font-size: .95rem; margin-top: .7rem; }

/* ===========================================================
   SOBRE NOSOTROS
   =========================================================== */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-visual { position: relative; }
.about-visual .cl-photo { width: 100%; aspect-ratio: 5/6; box-shadow: var(--shadow); }
.about-visual .frame { position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--clay); border-radius: var(--radius); z-index: -1; }
.about h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 1rem; }
.about p { color: var(--muted); margin-top: 1.3rem; font-size: 1.08rem; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin-top: 2.4rem; }
.value { display: flex; gap: .9rem; }
.value svg { width: 26px; height: 26px; color: var(--clay); flex: none; stroke-width: 1.5; margin-top: 2px; }
.value h4 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; }
.value p { margin-top: .2rem; font-size: .92rem; color: var(--muted); }

/* Stat band */
.statband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statband .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; padding: clamp(34px, 4vw, 56px) 1rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .big { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--clay); line-height: 1; }
.stat .cap { color: var(--muted); margin-top: .6rem; font-size: .92rem; letter-spacing: .02em; }

/* ===========================================================
   CONTACTO
   =========================================================== */
.contact { background: var(--bg-sand); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); }
.contact h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 1rem; }
.contact .lead { color: var(--muted); margin-top: 1.2rem; font-size: 1.08rem; max-width: 44ch; }
.contact-list { margin-top: 2.4rem; display: flex; flex-direction: column; gap: 1.4rem; }
.cl-item { display: flex; align-items: center; gap: 1rem; }
.cl-item .ico { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--clay); }
.cl-item .ico svg { width: 22px; height: 22px; }
.cl-item .t { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.cl-item .v { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.cl-item a.v:hover { color: var(--clay); }

.socials { display: flex; gap: .8rem; margin-top: 2.2rem; }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); transition: all .25s; }
.socials a:hover { background: var(--clay); color: #fff; border-color: var(--clay); transform: translateY(-3px); }
.socials a svg { width: 20px; height: 20px; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3.5vw, 48px); box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 1.5rem; }
.form-card .sub { color: var(--muted); font-size: .95rem; margin-top: .4rem; margin-bottom: 1.8rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .85em 1em; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .4rem; }
.form-actions .btn { width: 100%; justify-content: center; }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: 1rem; text-align: center; }
.form-note a { color: var(--ink-soft); border-bottom: 1px dotted var(--muted-2); }
.form-note a:hover { color: var(--clay); border-color: var(--clay); }
@media (max-width: 520px) { .form-actions { grid-template-columns: 1fr; } }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: #070605; color: rgba(243,234,210,.7); padding-block: clamp(56px, 6vw, 84px) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer .brand .name { color: var(--ink); }
.footer .brand .mark { color: var(--clay); }
.footer .f-about { margin-top: 1.4rem; max-width: 34ch; font-size: .95rem; color: rgba(246,241,233,.55); }
.footer h5 { font-family: var(--sans); color: var(--ink); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 700; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer ul a { font-size: .95rem; color: rgba(246,241,233,.62); transition: color .2s; }
.footer ul a:hover { color: var(--clay-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: clamp(40px, 5vw, 64px); padding-top: 2rem; border-top: 1px solid rgba(246,241,233,.14); font-size: .85rem; color: rgba(246,241,233,.5); }
.footer-bottom .socials a { border-color: rgba(246,241,233,.2); color: rgba(246,241,233,.7); }
.footer-bottom .socials a:hover { color: #fff; }

/* WhatsApp floating */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* ===========================================================
   GALERÍA CLOUDINARY
   =========================================================== */
/* Foto única (hero / nosotros) pintada como fondo por cloudinary.js */
.cl-photo {
  background: var(--bg-sand) center/cover no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Tabs */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(32px, 4vw, 52px); }
.gallery-tabs .tab {
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  padding: .6em 1.2em; border-radius: 100px;
  border: 1.5px solid var(--line); color: var(--ink-soft);
  transition: background .25s, color .25s, border-color .25s;
}
.gallery-tabs .tab:hover { border-color: var(--clay); color: var(--clay); }
.gallery-tabs .tab.active { background: var(--clay); color: var(--gold-ink); border-color: var(--clay); }

.tab-panel { display: none; margin-top: clamp(24px, 3vw, 40px); }
.tab-panel.active { display: block; }

/* Grilla */
.cl-grid { display: grid; grid-template-columns: repeat(var(--cl-cols, 3), 1fr); gap: clamp(14px, 1.6vw, 22px); }
.cl-card {
  position: relative; display: block; overflow: hidden;
  background: var(--bg-sand); border: 1px solid var(--line); border-radius: var(--radius);
}

/* Imágenes */
.cl-card-image { aspect-ratio: 4/3; }
.cl-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cl-card-image:hover img { transform: scale(1.05); }
.cl-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: .8rem 1rem; font-size: .85rem; color: #fff;
  background: linear-gradient(to top, rgba(20,14,8,.86), transparent);
}

/* Videos */
.cl-card-video { background: #000; }
.cl-card-video video { width: 100%; display: block; }
.cl-card-video figcaption { padding: .7rem 1rem; font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* Archivos / PDFs */
.cl-files { list-style: none; display: grid; gap: .8rem; }
.cl-file { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s; }
.cl-file:hover { border-color: var(--clay); transform: translateY(-2px); }
.cl-file-ico { width: 38px; height: 38px; flex: none; color: var(--clay); }
.cl-file-ico svg { width: 100%; height: 100%; }
.cl-file-meta { display: flex; flex-direction: column; flex: 1; }
.cl-file-name { font-weight: 600; color: var(--ink); }
.cl-file-type { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.cl-file-arrow { width: 20px; height: 20px; flex: none; color: var(--clay); }

/* Skeleton de carga */
.cl-skeleton {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--bg-sand) 30%, var(--line) 50%, var(--bg-sand) 70%);
  background-size: 200% 100%; animation: cl-shimmer 1.3s infinite linear;
}
@keyframes cl-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .cl-skeleton { animation: none; } }

/* Estado vacío / error */
.cl-empty { text-align: center; padding: clamp(40px, 6vw, 80px) 1.5rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.cl-empty svg { width: 48px; height: 48px; color: var(--muted-2); margin: 0 auto 1rem; }
.cl-empty h4 { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }
.cl-empty p { margin-top: .5rem; font-size: .95rem; }
.cl-empty code { background: var(--paper); padding: .15em .5em; border-radius: 4px; color: var(--clay); font-size: .9em; }
.cl-error { border-color: color-mix(in srgb, #b3261e 50%, var(--line)); }

@media (max-width: 880px) { .cl-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 600px) { .cl-grid { grid-template-columns: 1fr !important; } }

/* ===========================================================
   REVEAL ANIMATIONS
   Estado base = VISIBLE (a prueba de fallos). Solo se anima
   cuando <html> tiene la clase .anim y hay movimiento permitido.
   =========================================================== */
/* ===========================================================
   REVEAL — siempre visible (sin animación frágil que se congele)
   =========================================================== */
.reveal { opacity: 1 !important; transform: none !important; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 520px; margin-inline: auto; order: -1; }
  .hero-visual .cl-photo { aspect-ratio: 16/10; }
  .proj.feature { grid-column: span 6; }
  .proj.half, .proj.third { grid-column: span 3; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .footer-top .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav-links, .nav-actions .btn { display: none; }
  .burger { display: flex; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2.4rem 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 460px; }
  .about-visual .frame { inset: 14px -14px -14px 14px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.6rem; }
  .values { grid-template-columns: 1fr; }
  .statband .wrap { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .proj.feature, .proj.half, .proj.third { grid-column: span 6; }
  .proj .proj-img, .proj.feature .proj-img { aspect-ratio: 4/3; }
  .hero-badge { left: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
