/* ==========================================================
   Derma Delgadillo — propuesta de sitio web
   Paleta: blanco clínico + verde azulado de la marca
   ========================================================== */
:root {
  --teal: #0E6B7A;
  --teal-dark: #0A4F5A;
  --teal-deep: #0F3E45;
  --teal-soft: #E8F3F4;
  --mist: #F2F7F7;
  --cream: #F3EFE7;
  --sand: #D9C3A2;
  --line: #E3ECEC;
  --ink: #14282B;
  --ink-2: #2B4245;
  --text: #3E5659;
  --muted: #5A7174;
  --white: #FFFFFF;
  --wa: #1FA855;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); font-weight: 400; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--serif); color: #10272A; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid #1C9FB3; outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.kicker { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); font-weight: 500; }
.kicker--light { color: #9FD6DE; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 28px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { border-color: #C9DADB; color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--teal); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 14px; }
.btn--wa { background: var(--wa); color: #fff; width: 100%; min-height: 56px; font-size: 16px; }
.btn--wa:hover { background: #178D47; }

/* ---------- Barra superior / encabezado ---------- */
.topbar { background: var(--mist); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); }
.topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar__right { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { text-decoration: none; font-weight: 500; }

.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid #EDF2F2; }
.header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: .3px; color: var(--ink); }
.brand__tag { font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--teal); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; }
.lang { display: flex; border: 1px solid #D5E2E3; border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500; cursor: pointer; min-height: 36px; }
.lang button[aria-pressed="true"] { background: #10272A; color: #fff; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 80px; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-weight: 500; font-size: clamp(44px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -.5px; }
.hero h1 em { color: var(--teal); }
.lead { font-size: 18px; line-height: 1.65; color: var(--text); max-width: 520px; font-weight: 300; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 18px; border-top: 1px solid #E6EEEE; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats strong { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--teal); }
.stats span { font-size: 13px; color: var(--muted); }
.hero__media { position: relative; }
.hero__arch { border-radius: 220px 220px 24px 24px; overflow: hidden; height: 600px; background: #EEF4F4; }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; animation: drift 2.4s cubic-bezier(.2,.7,.2,1) both; }
.hero__badge { position: absolute; left: -24px; bottom: 40px; max-width: 300px; display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: 0 20px 50px -28px rgba(14,60,68,.45); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.hero__badge svg { color: var(--teal); flex-shrink: 0; }

/* ---------- Bandas y secciones ---------- */
.band { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 32px; padding-top: 26px; padding-bottom: 26px; }
.trust div { display: flex; flex-direction: column; gap: 4px; }
.trust strong { font-family: var(--serif); font-size: 21px; font-weight: 600; color: #10272A; }
.trust span { font-size: 13px; color: var(--muted); line-height: 1.5; }

.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section__head > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section__head > p { max-width: 430px; font-size: 16px; line-height: 1.65; color: var(--text); font-weight: 300; }
.section__head--stack { flex-direction: column; align-items: flex-start; gap: 12px; max-width: 720px; }
.section__head--stack p { font-size: 16px; line-height: 1.65; color: var(--text); font-weight: 300; }
h2 { font-weight: 500; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; }

.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 18px; }
.grid--team { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.lift { transition: transform .35s ease, box-shadow .35s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(14,60,68,.35); }
.zoom { overflow: hidden; }
.zoom img { transition: transform .9s ease; }
.zoom:hover img { transform: scale(1.04); }

/* Servicios — galería editorial */
.section--services { gap: 48px; }
.service { position: relative; overflow: hidden; display: flex; min-height: 300px; background: var(--ink); isolation: isolate; }
.service:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.service:nth-child(2), .service:nth-child(3) { grid-column: span 5; }
.service:nth-child(4), .service:nth-child(5) { grid-column: span 6; }
.service::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(6, 24, 27, .62); transition: background .4s ease; }
.service:hover::after { background: rgba(6, 24, 27, .5); }
.service__img { position: absolute; inset: 0; background: var(--ink); }
.service__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.04); transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.service:hover .service__img img { transform: scale(1.035); filter: saturate(.95) contrast(1.02); }
.service__body { position: relative; z-index: 2; width: 100%; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; color: #fff; }
.service__where { align-self: flex-start; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.48); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.82); }
.service__copy { display: flex; flex-direction: column; gap: 12px; margin-top: auto; max-width: 540px; }
.service h3 { font-size: clamp(30px, 3vw, 46px); line-height: 1.02; font-weight: 500; color: #fff; }
.service p { max-width: 500px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.82); font-weight: 300; }
.service__quote { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.55); color: #fff; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; }
.service__quote span { font-size: 18px; transition: transform .2s ease; }
.service__quote:hover span { transform: translate(3px, -3px); }

/* Sucursales — recorrido por los espacios */
.locations { background: #102A2D; color: #fff; }
.section--locations { gap: 28px; }
.locations__intro { max-width: 820px; }
.locations .section__head h2 { color: #fff; }
.locations .section__head p { color: #BFD0D1; }
.locations .kicker { color: #9FD6DE; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid #D5E2E3; background: #fff; color: var(--ink); border-radius: 999px; padding: 12px 22px; font-size: 15px; cursor: pointer; min-height: 44px; transition: background .2s, color .2s, border-color .2s; }
.pill:hover { border-color: var(--teal); }
.pill[aria-selected="true"], .pill[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.locations .tabs .pill { background: transparent; border-color: rgba(255,255,255,.28); color: #E7EFEF; font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; }
.locations .tabs .pill:hover { border-color: #9FD6DE; }
.locations .tabs .pill[aria-selected="true"] { background: var(--cream); border-color: var(--cream); color: #173033; }
.section--locations > .tabs { position: sticky; top: 84px; z-index: 8; width: fit-content; max-width: 100%; padding: 10px 0; background: #102A2D; }
.loc { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 30px; align-items: stretch; }
.loc.is-changing { animation: fadein .5s ease both; }
.loc__gallery { display: flex; flex-direction: column; gap: 12px; }
.carousel { position: relative; overflow: hidden; height: 420px; background: #0B1D1F; }
.carousel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.02); transition: opacity .35s ease, transform .9s ease; }
.carousel:hover img { transform: scale(1.02); }
.carousel img.is-fading { opacity: 0; }
.carousel__bar { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.carousel__caption { background: rgba(10,29,31,.82); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 9px 15px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; backdrop-filter: blur(8px); }
.carousel__nav { display: flex; gap: 8px; }
.carousel__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(10,29,31,.82); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.carousel__nav button:hover { background: var(--cream); color: var(--ink); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 10px; }
.thumbs button { padding: 0; height: 62px; overflow: hidden; cursor: pointer; background: #0B1D1F; border: 1px solid transparent; opacity: .48; transition: opacity .2s, border-color .2s; }
.thumbs button[aria-current="true"] { border-color: #9FD6DE; opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.loc__info { position: relative; z-index: 2; min-height: 420px; margin: 0; padding: 34px 38px; display: flex; flex-direction: column; justify-content: center; gap: 16px; background: var(--cream); color: var(--ink); box-shadow: 0 24px 60px -38px rgba(0,0,0,.65); }
.loc__info .kicker { color: var(--teal); }
.loc__info h3 { font-size: 40px; font-weight: 500; line-height: 1.04; }
.loc__info > p { font-size: 15px; line-height: 1.7; color: var(--text); font-weight: 300; }
.loc__dl { margin: 0; display: grid; grid-template-columns: 84px 1fr; gap: 11px 16px; font-size: 13px; padding: 18px 0; border-top: 1px solid #DAD5CB; border-bottom: 1px solid #DAD5CB; }
.loc__dl dt { color: var(--muted); }
.loc__dl dd { margin: 0; }
.loc__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Equipo */
.doc { background: #fff; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.doc__photo { height: 360px; background: #E9EEEE; }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; }
.doc__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.doc__body h3 { font-size: 28px; font-weight: 600; }
.doc__role { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal); }
.doc__body p { font-size: 15px; line-height: 1.6; color: var(--text); font-weight: 300; }
.doc__body .muted { font-size: 13px; }

/* Laboratorios — escaparate editorial */
.laboratories { overflow: hidden; background: #0D2528; color: #fff; }
.section--labs { gap: 34px; }
.laboratories .section__head h2 { color: #fff; }
.laboratories .section__head > p { color: #BFD0D1; }
.laboratories .kicker { color: #9FD6DE; }
.lab-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.lab-tabs::-webkit-scrollbar { display: none; }
.lab-tabs button { flex: 0 0 auto; min-height: 42px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: transparent; color: #DDE9EA; font-size: 11px; letter-spacing: 1.25px; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.lab-tabs button:hover { border-color: #9FD6DE; }
.lab-tabs button[aria-selected="true"] { border-color: var(--cream); background: var(--cream); color: var(--ink); }
.lab-showcase { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); background: #123034; box-shadow: 0 28px 70px -42px rgba(0,0,0,.8); }
.lab-showcase.is-changing { animation: fadein .45s ease both; }
.lab-showcase__visuals { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(190px, .65fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; background: #0A1C1E; }
.lab-showcase__visuals[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.lab-showcase__visuals[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.lab-showcase__image { min-width: 0; min-height: 0; margin: 0; overflow: hidden; background: #F1F2F0; }
.lab-showcase__image--1 { grid-row: 1 / -1; }
.lab-showcase__visuals[data-count="1"] .lab-showcase__image--1,
.lab-showcase__visuals[data-count="2"] .lab-showcase__image--1 { grid-row: auto; }
.lab-showcase__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(1.02); transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.lab-showcase__image:hover img { transform: scale(1.025); filter: saturate(1) contrast(1); }
.lab-showcase__visuals[data-count="1"] img { object-fit: contain; }
.lab-showcase__copy { position: relative; z-index: 2; padding: 48px 42px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; background: var(--cream); color: var(--ink); }
.lab-showcase__eyebrow { padding-bottom: 9px; border-bottom: 1px solid #B9AD99; color: var(--teal); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.lab-showcase h3 { font-size: clamp(38px, 4vw, 58px); line-height: .98; font-weight: 500; }
.lab-showcase__copy p { max-width: 340px; color: var(--text); font-size: 15px; line-height: 1.7; font-weight: 300; }
.lab-showcase__index { margin-top: 28px; color: #8C8880; font-family: var(--serif); font-size: 14px; letter-spacing: 1px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 820px; }

/* ---------- Cotizar ---------- */
.quote { background: var(--teal-deep); color: #fff; }
.quote__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: start; padding-top: 96px; padding-bottom: 96px; }
.quote__copy { display: flex; flex-direction: column; gap: 20px; }
.quote__copy h2 { color: #fff; }
.quote__copy p { font-size: 16px; line-height: 1.7; color: #CFE3E6; font-weight: 300; }
.steps { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: center; font-size: 15px; color: #E3F0F2; }
.steps span { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #5FA9B4; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }

.card { background: #fff; color: var(--ink); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.card fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card legend, .field label { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 10px; padding: 0; }
.field { display: flex; flex-direction: column; }
.card select, .card input, .card textarea { width: 100%; border: 1px solid #CFDDDE; border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--ink); background: #fff; }
.card select, .card input { height: 48px; padding-top: 0; padding-bottom: 0; }
.card textarea { resize: vertical; min-height: 84px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid #E6EEEE; }
.footer__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand .brand__name { font-size: 22px; }
.footer__brand em { font-family: var(--serif); font-size: 19px; color: var(--teal); }
.footer__col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text); }
.footer__col strong { color: var(--ink); font-weight: 500; margin-top: 6px; }
.footer__col strong:first-child { margin-top: 0; }
.footer__col a { text-decoration: none; }
.footer__legal { padding-top: 18px; padding-bottom: 28px; font-size: 12px; color: #6B8083; border-top: 1px solid #EEF3F3; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); transition: transform .2s; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- Animaciones ---------- */
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .grid--services { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 420px; }
  .service:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .service:nth-child(1) { grid-column: span 2; }
  .loc { grid-template-columns: 1fr; gap: 0; }
  .carousel { height: 400px; }
  .loc__info { min-height: 0; margin: 0; padding: 36px; }
  .lab-showcase { grid-template-columns: 1fr; }
  .lab-showcase__visuals { height: 460px; }
  .lab-showcase__copy { padding: 38px 36px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  #servicios, #sucursales, #equipo, #laboratorios, #cotizar { scroll-margin-top: 76px; }
  .topbar { display: none; }
  .header__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand toggle" "nav nav" "actions actions"; gap: 0 12px; padding-top: 9px; padding-bottom: 9px; }
  .header .brand { grid-area: brand; gap: 9px; min-width: 0; }
  .header .brand img { width: 38px; height: 38px; }
  .header .brand__name { font-size: 20px; line-height: 1; white-space: nowrap; }
  .header .brand__tag { font-size: 9px; letter-spacing: 1.8px; }
  .menu-toggle { grid-area: toggle; display: inline-flex; align-items: center; justify-content: center; align-self: center; width: 42px; height: 42px; padding: 0; border: 1px solid #D5E2E3; border-radius: 50%; background: #fff; color: var(--ink); font-size: 17px; cursor: pointer; }
  .menu-toggle:hover { border-color: var(--teal); color: var(--teal); }
  .nav, .header__actions { display: none; }
  .header.is-open .nav { grid-area: nav; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 0 18px; margin-top: 9px; padding: 10px 0 8px; border-top: 1px solid var(--line); }
  .header.is-open .nav a { min-height: 42px; display: flex; align-items: center; padding: 8px 2px; font-size: 14px; }
  .header.is-open .header__actions { grid-area: actions; display: flex; width: 100%; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
  .header.is-open .lang { padding: 2px; }
  .header.is-open .lang button { min-height: 32px; padding: 6px 11px; font-size: 12px; }
  .header.is-open .header__actions .btn { display: inline-flex; min-height: 38px; padding: 8px 18px; font-size: 13px; }
  .hero { padding-top: 32px; gap: 36px; }
  .hero__arch { height: 420px; border-radius: 160px 160px 20px 20px; }
  .hero__badge { left: 12px; right: 12px; bottom: 16px; max-width: none; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section--services { gap: 34px; }
  .grid--services { grid-template-columns: 1fr; grid-auto-rows: 430px; gap: 12px; }
  .service:nth-child(n) { grid-column: span 1; }
  .service__body { padding: 26px; }
  .service h3 { font-size: 34px; }
  .section--labs { gap: 26px; }
  .lab-tabs { width: calc(100% + 48px); margin-left: -24px; padding: 2px 24px 8px; }
  .lab-tabs button { min-height: 40px; padding: 9px 15px; font-size: 10px; }
  .lab-showcase { width: calc(100% + 48px); min-height: 0; margin-left: -24px; }
  .lab-showcase__visuals { height: 350px; grid-template-columns: minmax(0, 1.2fr) minmax(100px, .8fr); gap: 5px; padding: 5px; }
  .lab-showcase__visuals[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-showcase__copy { padding: 30px 24px 34px; gap: 14px; }
  .lab-showcase h3 { font-size: 38px; }
  .lab-showcase__copy p { font-size: 14px; }
  .lab-showcase__index { margin-top: 16px; }
  .quote__in { padding-top: 64px; padding-bottom: 64px; }
  .section--locations { gap: 22px; }
  .section--locations > .tabs { top: 61px; width: calc(100% + 48px); max-width: none; margin-left: -24px; padding: 10px 24px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .section--locations > .tabs::-webkit-scrollbar { display: none; }
  .locations .tabs .pill { flex: 0 0 auto; }
  .carousel { height: 320px; }
  .carousel__bar { left: 14px; right: 14px; bottom: 14px; }
  .carousel__caption { max-width: calc(100% - 108px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .thumbs { display: none; }
  .loc__info { margin: 0; padding: 28px 24px; }
  .loc__info h3 { font-size: 36px; }
  .loc__dl { grid-template-columns: 1fr; gap: 4px; }
  .loc__dl dd { margin-bottom: 10px; }
  .card { padding: 22px; }
}
