/* ==========================================================
   Kaiser Design — estilos
   Colores principales: cambia aquí y se actualiza todo el sitio
   ========================================================== */
:root {
  --ink: #0F1F38;          /* azul marino (texto y fondos oscuros) */
  --ink-2: #16284A;
  --ground: #F7F8FA;       /* fondo blanco frío */
  --paper: #FFFFFF;
  --sand: #EEF1F6;
  --line: #E3E7EE;
  --line-strong: #C9D1DD;
  --muted: #5A6478;
  --muted-dark: #A9B4C8;
  --gold: #3A63A6;         /* acento (azul del logo) sobre fondo claro */
  --gold-light: #8FB0E3;   /* acento azul claro sobre fondo oscuro */

  --sans: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius-lg: clamp(20px, 2.4vw, 32px);
  --section: clamp(80px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* Palabra de acento: *texto* en los JSON */
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { font-size: 16px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { height: 46px; padding: 0 22px; }
.btn-lg { height: 60px; padding: 0 32px; font-size: 16px; }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark .icon { color: var(--gold-light); }
.btn-dark:hover { background: #1B2F55; }
.btn-gold { background: #FFFFFF; color: var(--ink); font-weight: 700; }
.btn-gold:hover { background: #EAF0FA; }
.btn-outline-light { border: 1px solid #34476A; color: var(--ground); }
.btn-outline-light .icon { color: var(--gold-light); }
.btn-outline-light:hover { border-color: var(--gold-light); }

.btn-text { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; }
.btn-circle { width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.btn-circle .icon { transform: rotate(90deg); }
.btn-text:hover .btn-circle { background: var(--ink); border-color: var(--ink); color: var(--ground); }

.link-underline { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; padding-bottom: 6px; border-bottom: 1px solid currentColor; white-space: nowrap; }
.link-underline:hover { color: var(--gold); }

.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--gold); }
.eyebrow-line { width: 40px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 250, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { width: 30px; height: 34px; }
.logo-img { display: block; width: auto; object-fit: contain; }
.logo-img-header { height: 46px; max-width: 200px; }
.logo-img-footer { height: 54px; max-width: 230px; }
.logo-text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.logo-name { font-size: 17px; font-weight: 700; letter-spacing: .22em; }
.logo-sub { font-size: 9.5px; font-weight: 500; letter-spacing: .62em; color: var(--muted); }

.main-nav ul { display: flex; gap: 40px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--ink); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.lang-switch a { min-width: 40px; height: 34px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--ink); color: var(--ground); }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; place-items: center; }
.menu-toggle-bars { display: flex; flex-direction: column; gap: 6px; width: 18px; }
.menu-toggle-bars span { height: 1.5px; background: var(--ink); transition: transform .25s; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; gap: 30px; }
.hero-title { font-size: clamp(46px, 7vw, 96px); line-height: .98; font-weight: 500; letter-spacing: -0.045em; }
.hero-title .accent { letter-spacing: -0.02em; }
.hero-text { max-width: 520px; font-size: clamp(17px, 1.4vw, 19px); color: #46506A; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.stats { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; }
.stat + .stat { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat dd { font-size: clamp(32px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.stat dd span { color: var(--gold); }
.stat dt { font-size: 14px; color: var(--muted); }

/* Visual del hero */
.hero-visual { position: relative; min-height: 600px; }
.hv-bg { position: absolute; inset: 0 0 0 40px; border-radius: var(--radius-lg); background: var(--ink); overflow: hidden; }
.hv-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-bg path { stroke: #1C2E4F; fill: none; }
.hv-browser { position: absolute; top: 56px; left: 96px; right: 40px; height: 62%; max-height: 400px; border-radius: 18px; background: var(--paper); box-shadow: 0 40px 80px rgba(0, 0, 0, .35); overflow: hidden; display: flex; flex-direction: column; }
.hv-bar { height: 40px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid #E6EAF0; }
.hv-bar i { width: 10px; height: 10px; border-radius: 99px; background: #D8DEE7; }
.hv-bar span { margin-left: 20px; flex: 1; height: 22px; border-radius: 99px; background: #F1F3F7; font-size: 11px; color: #6B7489; display: flex; align-items: center; padding-left: 14px; }
.hv-page { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
.hv-copy { padding: 32px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hv-brand { font-size: 10px; font-weight: 700; letter-spacing: .3em; }
.hv-title { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.02; }
.hv-btn { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 9px 16px; border-radius: 99px; background: var(--ink); color: var(--ground); }
.hv-arch { background: #C9D4E4; position: relative; overflow: hidden; }
.hv-arch i, .hv-arch b { position: absolute; width: 150px; transform: skewY(-18deg); }
.hv-arch i:nth-child(1) { left: 30px; top: 40px; height: 400px; background: #EEF1F5; }
.hv-arch i:nth-child(2) { left: 70px; top: 90px; height: 400px; background: #1A2C4E; }
.hv-arch b { left: 70px; height: 2px; background: #3B5075; }
.hv-arch b:nth-of-type(1) { top: 140px; } .hv-arch b:nth-of-type(2) { top: 190px; } .hv-arch b:nth-of-type(3) { top: 240px; }
.hv-card { position: absolute; left: 0; bottom: 44px; width: 300px; padding: 26px; border-radius: 20px; background: var(--paper); box-shadow: 0 30px 60px rgba(15, 31, 56, .22); display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.hv-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--gold); }
.hv-card-top i { width: 8px; height: 8px; border-radius: 99px; background: #3C8C5E; }
.hv-card-title { font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.hv-card-title .accent, .hv-title .accent { color: inherit; }
.hv-title .accent { color: var(--gold); }
.hv-card svg { width: 100%; height: 56px; }
.hv-tags { position: absolute; right: 72px; bottom: 60px; display: flex; flex-direction: column; gap: 10px; text-align: right; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.hv-tags li:last-child { color: var(--ground); }

/* ---------- Clientes ---------- */
.clients .clients-inner {
  display: flex; align-items: center; gap: 56px;
  max-width: var(--wrap); width: calc(100% - var(--gutter) * 2); padding: 44px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.clients-label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.clients-list { flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; font-size: 19px; font-weight: 600; letter-spacing: .28em; color: #46506A; }
.clients-list .is-serif { font-family: var(--serif); font-style: italic; font-size: 27px; font-weight: 400; letter-spacing: 0; }

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head > div:first-child { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.section-title { font-size: clamp(38px, 5vw, 64px); line-height: 1.03; font-weight: 500; letter-spacing: -0.04em; }

/* Servicios */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #D8DEE7; border-left: 1px solid #D8DEE7; }
.service { min-height: 200px; padding: 32px; border-right: 1px solid #D8DEE7; border-bottom: 1px solid #D8DEE7; display: flex; flex-direction: column; gap: 8px; transition: background .25s; }
.service .icon { font-size: 30px; margin-bottom: auto; padding-bottom: 28px; box-sizing: content-box; }
.service h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.service p { font-size: 15px; color: var(--muted); }
.service:hover { background: var(--paper); }
.service.is-highlight { background: var(--ink); color: var(--ground); }
.service.is-highlight .icon { color: var(--gold-light); }
.service.is-highlight p { color: var(--muted-dark); }

/* Proyectos */
.work { background: var(--ink); color: var(--ground); }
.work .eyebrow { color: var(--gold-light); }
.work .accent { color: var(--gold-light); }
.work-intro { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; text-align: right; max-width: 380px; }
.work-intro p { color: var(--muted-dark); }
.work-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(360px, auto)); gap: 24px; }
.project { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
.project.is-large { grid-row: span 2; }
.project-media { flex: 1; min-height: 220px; position: relative; overflow: hidden; }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.project:hover .project-media img { transform: scale(1.03); }
.project-placeholder { position: absolute; inset: 0; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.pp-brand { font-size: 11px; font-weight: 700; letter-spacing: .3em; }
.pp-title { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 52px); line-height: 1; max-width: 420px; }
.pp-title .accent { color: inherit; }
.tone-sand .project-placeholder { background: #EEF1F6; }
.tone-night .project-placeholder { background: #16284A; color: var(--ground); border-bottom: 1px solid #26395C; }
.tone-night .pp-brand { color: var(--gold-light); }
.tone-stone .project-placeholder { background: #E6EBF2; }
.project-meta { flex-shrink: 0; min-height: 88px; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-meta h3 { font-size: 17px; font-weight: 700; letter-spacing: .14em; line-height: 1.3; }
.project-meta p { font-size: 14px; color: var(--muted); }
.project-arrow { width: 48px; height: 48px; flex-shrink: 0; border-radius: 99px; background: var(--ink); color: var(--gold-light); display: grid; place-items: center; font-size: 18px; transition: transform .25s; }
.project:hover .project-arrow { transform: rotate(45deg); }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.step:first-child { border-top: 2px solid var(--ink); }
.step-num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.step p { font-size: 15px; color: var(--muted); }

/* Testimonios (carrusel) */
.testimonials { position: relative; border-radius: var(--radius-lg); background: var(--sand); padding: clamp(40px, 5vw, 64px) clamp(24px, 6vw, 88px) clamp(36px, 4vw, 52px); }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.t-controls { display: flex; gap: 10px; }
.t-btn { width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; font-size: 18px; transition: background .2s, color .2s, border-color .2s; }
.t-btn:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.t-btn[data-prev] .icon { transform: rotate(180deg); }
.t-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(clamp(24px, 6vw, 88px) * -1); }
.t-track::-webkit-scrollbar { display: none; }
.t-track:focus-visible { outline-offset: -4px; }
.t-slide { flex: 0 0 100%; scroll-snap-align: start; padding: clamp(28px, 4vw, 44px) clamp(24px, 6vw, 88px) 8px; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.quote-mark { width: 44px; height: 33px; fill: var(--gold); }
.t-slide blockquote p { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -0.01em; max-width: 980px; text-wrap: balance; }
.t-slide figcaption { display: flex; align-items: center; gap: 16px; text-align: left; }
.t-slide figcaption > span:last-child { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.t-slide strong { font-size: 16px; color: var(--ink); }
.avatar { width: 64px; height: 64px; border-radius: 99px; background: var(--ink); color: var(--gold-light); display: grid; place-items: center; font-weight: 600; flex-shrink: 0; }
.avatar-photo { object-fit: cover; background: var(--line); box-shadow: 0 0 0 3px var(--sand), 0 0 0 4px var(--gold); }
.t-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.t-dots button { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.t-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); transition: width .3s, background .3s; }
.t-dots button[aria-selected="true"]::before { width: 26px; background: var(--ink); }

/* CTA */
.cta-wrap { padding: clamp(72px, 8vw, 96px) 0 clamp(48px, 5vw, 64px); }
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: var(--ground); padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 80px); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; min-height: 420px; }
.cta-rings { position: absolute; right: -80px; top: -40px; width: 700px; height: 430px; }
.cta-rings circle { stroke: #1F3257; }
.cta-rings .warm { stroke: #2F4E82; }
.cta-copy, .cta-side { position: relative; }
.cta-copy { display: flex; flex-direction: column; gap: 26px; }
.cta-title { font-size: clamp(38px, 5.4vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -0.045em; max-width: 820px; }
.cta .accent { color: var(--gold-light); }
.cta-side { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; text-align: right; flex-shrink: 0; }
.cta-side p { color: var(--muted-dark); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(40px, 5vw, 56px) 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: grid; grid-template-columns: 1.2fr .7fr 1.3fr .7fr; gap: 48px; padding-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-brand p { color: var(--muted); max-width: 280px; }
.footer-col h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col a:hover { color: var(--gold); }
.footer-contact a { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer-contact .icon { font-size: 17px; margin-top: 3px; color: var(--gold); }
.social { flex-direction: row !important; gap: 10px !important; }
.social a { width: 44px; height: 44px; border-radius: 99px; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 16px; transition: background .2s, color .2s; }
.social a:hover { background: var(--ink); color: var(--ground) !important; border-color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Animación de entrada (solo hero) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-visual { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-copy > *:nth-child(5) { animation-delay: .32s; }
  .hero-visual { animation-delay: .2s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .main-nav ul { gap: 28px; }
  .header-cta { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 540px; max-width: 680px; width: 100%; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .work-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .project.is-large { grid-column: span 2; grid-row: auto; }
  .project.is-large .project-media { min-height: 360px; }
  .project-media { min-height: 280px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .main-nav {
    position: fixed; inset: calc(88px + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 40;
    background: var(--ground); padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; gap: 32px;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav ul a { display: block; padding: 18px 0; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
  .nav-cta-mobile { display: inline-flex; align-self: flex-start; }
  body.menu-open { overflow: hidden; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .work-intro { align-items: flex-start; text-align: left; }
  .clients .clients-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .clients-list { justify-content: flex-start; gap: 16px 32px; }
  .cta { flex-direction: column; align-items: flex-start; min-height: 0; }
  .cta-side { align-items: flex-start; text-align: left; }
}

@media (max-width: 640px) {
  .header-inner { height: 76px; }
  .main-nav { inset: calc(76px + env(safe-area-inset-top, 0px)) 0 0 0; }
  .header-actions { gap: 10px; }
  .lang-switch a { min-width: 36px; height: 32px; }
  .hero-visual { min-height: 470px; }
  .hv-bg { left: 0; }
  .hv-browser { left: 20px; right: 20px; top: 24px; height: 270px; }
  .hv-page { grid-template-columns: 1.5fr 1fr; }
  .hv-copy { padding: 20px 18px; }
  .hv-title { font-size: 25px; }
  .hv-card { left: auto; right: 20px; bottom: 24px; width: 220px; padding: 18px; gap: 10px; }
  .hv-card-title { font-size: 22px; }
  .hv-card svg { height: 40px; }
  .hv-tags { display: none; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat dt { font-size: 12.5px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; padding: 26px; }
  .service .icon { padding-bottom: 20px; }
  .steps { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .project.is-large { grid-column: auto; }
  .project.is-large .project-media, .project-media { min-height: 260px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .btn-lg { height: 56px; padding: 0 26px; }
  .logo-img-header { height: 38px; max-width: 160px; }
  .t-btn { width: 44px; height: 44px; }
}
