/* Inkastar Design Studio — estilo KIT con la paleta amarilla del brief */
@font-face {
  font-family: "Nunito Sans";
  src: url("../assets/fonts/NunitoSans-Variable.woff2") format("woff2"), url("../assets/fonts/NunitoSans-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/Unbounded-VariableFont_wght.woff2") format("woff2"), url("../assets/fonts/Unbounded-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --black: #1f1f1f;
  --black-2: #111111;
  /* Color de acento de todo el sitio público. Cambia solo estas líneas (y --on-accent).
     (Los nombres siguen diciendo "yellow" por herencia de Inkastar.)
     Amarillo Inkastar:  #fab900 · #fff4d1 · 250, 185, 0
     Rojo espinoza.ru:   #f14f44 · #ecebe5 (gris neutro, sin rosado) · 241, 79, 68   ← en prueba */
  --yellow: #f14f44;
  --yellow-soft: #f1f0ec; /* fondo suave NEUTRO: con el rojo nunca se usa un tinte rosado */
  --accent-rgb: 241, 79, 68;
  /* Color del texto que va ENCIMA del acento: blanco sobre rojo, #1f1f1f sobre amarillo. */
  --on-accent: #ffffff;
  --paper: #f7f7f4;
  --white: #ffffff;
  --ink-muted: rgba(31, 31, 31, 0.6);
  --muted: rgba(237, 237, 237, 0.68);
  --line-light: rgba(31, 31, 31, 0.12);
  --line-dark: rgba(237, 237, 237, 0.16);
  --radius: 8px;
  --gap: 24px;
  --cta-h: 48px;
  --cta-px: 28px;
  --cta-fs: 13px;
  --display: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  --body: "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  --wrap: min(1320px, calc(100% - 64px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--yellow); padding: 10px 16px; border-radius: 999px; }

/* Barra de progreso de scroll (KIT) */
.scroll-progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--yellow); z-index: 60; }

/* Cabecera flotante */
.site-header {
  position: sticky; top: 12px; z-index: 50;
  width: var(--wrap); margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--line-light); border-radius: 999px;
  background: rgba(247, 247, 244, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 14px 30px -20px rgba(17, 17, 17, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 150px; }
.brand .stamp { margin-left: 4px; }
.stamp {
  display: inline-block; padding: 3px 8px 2px; border: 2px solid var(--black); border-radius: 6px;
  font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-12deg);
}
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--black); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: #fff; transition: transform .3s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Botones (KIT) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--cta-h); padding: 0 var(--cta-px); border-radius: 999px; border: 1px solid transparent;
  font-family: var(--body); font-size: var(--cta-fs); font-weight: 600; letter-spacing: .01em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .3s ease;
}
.btn--yellow { background: var(--yellow); color: var(--on-accent); }
.btn--yellow:hover { box-shadow: 0 12px 26px -14px rgba(17, 17, 17, .4); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--yellow); color: var(--on-accent); }
.btn--outline { border-color: rgba(31, 31, 31, .24); color: var(--black); }
.btn--outline:hover { border-color: var(--black); background: var(--black); color: #fff; }
.on-dark .btn--outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.on-dark .btn--outline:hover { background: #fff; color: var(--black); }
.btn:focus-visible, .glow-btn:focus-visible, a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow, .glow-btn:hover .arrow { transform: translate(2px, -2px); }
.button-roll { display: inline-grid; overflow: hidden; vertical-align: middle; position: relative; line-height: 1.4; }
.button-roll__item { display: block; grid-area: 1 / 1; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.button-roll__item--next { transform: translateY(115%); }
.has-button-roll:is(:hover,:focus-visible) .button-roll__item { transform: translateY(-115%); }
.has-button-roll:is(:hover,:focus-visible) .button-roll__item--next { transform: translateY(0); }
.button-roll--arrow .button-roll__item { transition-delay: .055s; }
.has-button-roll:is(:hover,:focus-visible) .arrow { transform: none; }
.btn.has-button-roll, .glow-btn.has-button-roll { transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .35s ease; }
.btn.has-button-roll:is(:hover,:focus-visible), .glow-btn.has-button-roll:is(:hover,:focus-visible) { box-shadow: 0 3px 7px -3px rgba(76,46,12,.26), 0 14px 28px -14px rgba(123,83,20,.3), inset 0 1px rgba(255,255,255,.16); }
@media (prefers-reduced-motion: reduce) {
  .button-roll__item { transition: none; }
  .has-button-roll:is(:hover,:focus-visible) .button-roll__item { transform: none; }
  .button-roll__item--next { visibility: hidden; }
}

/* Botón con luz (KIT), luz recoloreada a amarillo */
.glow-btn-wrap { --lx: 0px; --rim-r: 1; --rim-l: 0; position: relative; display: inline-flex; isolation: isolate; }
.glow-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden;
  height: var(--cta-h); padding: 0 calc(var(--cta-px) + 14px) 0 calc(var(--cta-px) + 10px);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; background: #d9d6cc; color: #3d2b00;
  font-size: var(--cta-fs); font-weight: 700; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.glow-btn__label { position: relative; }
.glow-btn__light { position: absolute; left: 50%; top: 50%; width: 204px; height: 121px; pointer-events: none; transform: translate(calc(-50% + var(--lx)), -50%); transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.glow-btn-wrap.is-tracking .glow-btn__light { transition-duration: .18s; }
.glow-btn__light::before, .glow-btn__light::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.glow-btn__light::before { width: 121px; height: 121px; background: radial-gradient(50% 50% at 50% 50%, #fffff5 3.5%, #ffd54a 26.5%, #ffe9a0 37.5%, rgba(250, 185, 0, .5) 49%, rgba(250, 185, 0, 0) 92.5%); }
.glow-btn__light::after { width: 204px; height: 103px; background: radial-gradient(43.3% 44.23% at 50% 49.51%, #fffff7 29%, #fff6c8 48.5%, #f5e2a8 60.71%, rgba(214, 211, 200, 0) 100%); filter: blur(5px); }
.glow-btn__rim { position: absolute; inset: -4.5px; z-index: 0; border-radius: 999px; opacity: var(--rim-r); pointer-events: none; transition: opacity .5s ease; }
.glow-btn__rim--left { opacity: var(--rim-l); transform: scaleX(-1); }
.glow-btn__rim i { position: absolute; inset: 3px; border-radius: inherit; background: linear-gradient(103.7deg, rgba(188, 170, 120, .1) 38.66%, rgba(250, 185, 0, .12) 68.55%, #fab900 85.01%, #fff 92.12%); }
.glow-btn__rim::before, .glow-btn__rim::after { content: ""; position: absolute; border-radius: inherit; }
.glow-btn__rim::before { inset: -2px; background: linear-gradient(97.68deg, rgba(255, 214, 90, 0) 38.1%, rgba(255, 214, 90, .25) 82.47%, #ffc81e 93.3%); filter: blur(2px); }
.glow-btn__rim::after { inset: -3px; background: linear-gradient(91.88deg, rgba(255, 200, 40, .2) 46.45%, #e0a300 98.59%); filter: blur(15px); }

/* Secciones */
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section--dark { background: var(--black-2); color: #ededed; }
.section--yellow { background: var(--yellow); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.section--yellow .eyebrow::before { background: var(--black); }
.badge { display: inline-block; padding: 3px 10px; border: 1px solid currentColor; border-radius: 999px; font-weight: 500; letter-spacing: .04em; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); font-weight: 800; max-width: 18ch; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-muted); max-width: 56ch; }
.section--dark .lede { color: var(--muted); }
.head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gap); align-items: end; margin-bottom: 56px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 110px) 0 clamp(56px, 7vw, 100px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 5.6rem); font-weight: 800; margin-bottom: 28px; }
.hero h1 mark { background: none; color: inherit; box-shadow: inset 0 -0.32em 0 var(--yellow); }
.hero .lede { margin-bottom: 36px; }
.hero__note { margin-top: 28px; font-size: 14px; color: var(--ink-muted); }
.hero__card { position: relative; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) * 3); background: var(--yellow); overflow: hidden; display: grid; place-items: center; }
.hero__sun { width: 62%; animation: spin 40s linear infinite; }
.hero__tag { position: absolute; left: 20px; bottom: 20px; right: 20px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .85); font-size: 14px; display: flex; gap: 12px; align-items: center; }
.hero__tag img { width: 42px; height: 42px; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ticker de clientes */
.ticker { overflow: hidden; border-block: 1px solid var(--line-light); padding: 22px 0; background: var(--white); }
.ticker__track { display: flex; gap: 64px; width: max-content; animation: ticker 32s linear infinite; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.6rem); color: rgba(31, 31, 31, .5); }
.ticker__track span::after { content: "✦"; margin-left: 64px; color: var(--yellow); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Tarjetas (KIT) */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--line-light); border-radius: calc(var(--radius) * 2); background: var(--white); transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(17, 17, 17, .35); border-color: rgba(31, 31, 31, .24); }
.card h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 700; }
.card p { color: var(--ink-muted); }
.card__num { font-family: var(--display); font-weight: 800; color: var(--yellow); font-size: 14px; }
.card--dark { background: var(--black); color: #fff; border-color: var(--black); }
.card--dark p { color: var(--muted); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* Por qué (KIT why) */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.why li { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--yellow); }
.why b { font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.why span { color: var(--ink-muted); }

/* Sobre mí */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.about__photo { border-radius: calc(var(--radius) * 3); background: var(--yellow); aspect-ratio: 1; display: grid; place-items: center; }
.about__photo img { width: 46%; border-radius: 50%; }
.about p + p { margin-top: 18px; }
.quote { margin-top: 32px; padding-left: 20px; border-left: 3px solid var(--yellow); font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.35; }

/* IA-branding destacado */
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.feature__box { padding: 36px; border-radius: calc(var(--radius) * 3); background: var(--black); color: #fff; display: grid; gap: 18px; }
.feature__box big { font-family: var(--display); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; color: var(--yellow); line-height: 1; }
.feature__box small { color: var(--muted); font-size: 14px; }

/* Portafolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; transition: background .25s ease, color .25s ease; }
.chip[aria-pressed="true"], .chip:hover { background: var(--black); color: #fff; border-color: var(--black); }
.work { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.work__img { aspect-ratio: 4 / 3; border-radius: calc(var(--radius) * 2); overflow: hidden; background: #e9e6dc; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: rgba(31, 31, 31, .78); text-align: center; padding: 0 12px; }
.work__img--cover { aspect-ratio: 7 / 5; display: block; padding: 0; }
.work__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; padding: 0; }
.works .work:nth-child(6n+1) .work__img { background: #e8d9b8; }
.works .work:nth-child(6n+2) .work__img { background: #dfe7d6; }
.works .work:nth-child(6n+3) .work__img { background: #fff0c2; }
.works .work:nth-child(6n+4) .work__img { background: #e3e0f0; }
.works .work:nth-child(6n+5) .work__img { background: #f3dccf; }
.works .work:nth-child(6n+6) .work__img { background: #d8e9ec; }
.work__img > * { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.work:hover .work__img > * { transform: scale(1.06); }
.work:hover .work__img--cover > img { transform: none; }
.work__tags { display: flex; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: rgba(31, 31, 31, .08); font: 600 11px var(--display); }
.work h3 { font-size: 1.1rem; font-weight: 600; }
.work[hidden] { display: none; }

/* Testimonios */
.testi { padding: 32px; border-radius: calc(var(--radius) * 2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 20px; }
.testi p { color: #ededed; }
.testi footer { margin-top: auto; font-size: 14px; color: var(--muted); }
.testi footer b { display: block; color: #fff; font-family: var(--display); font-weight: 600; }

/* Precios */
.price { position: relative; }
.price__amount { font-family: var(--display); font-weight: 800; font-size: 1.8rem; }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.price li { padding-left: 22px; position: relative; color: var(--ink-muted); }
.price li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.card--dark.price li { color: var(--muted); }
.price__flag { position: absolute; top: -12px; right: 24px; background: var(--yellow); color: var(--on-accent); padding: 4px 12px; border-radius: 999px; font: 700 11px var(--display); text-transform: uppercase; }

/* Blog */
.post { text-decoration: none; }
.post time { font-size: 13px; color: var(--ink-muted); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 1.6rem; line-height: 1; transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--ink-muted); max-width: 70ch; }

/* CTA y pie */
.cta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: end; }
.cta .h2 { max-width: 16ch; }
.contacts { display: grid; gap: 10px; }
.contacts a { text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.contacts a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.footer { padding: 40px 0; background: var(--black-2); color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer a { color: #ededed; text-decoration: none; margin-left: 18px; }
.footer a:hover { color: var(--yellow); }

/* Aparición al hacer scroll (KIT reveal) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .grid-4, .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line-light); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 18px; }
  .menu-toggle { display: block; }
}
@media (max-width: 860px) {
  :root { --wrap: calc(100% - 32px); }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line-light); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 18px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .hero__grid, .head, .about, .feature, .cta, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero__card { max-width: 420px; }
  .card { padding: 24px; }
}
@media (max-width: 560px) {
  .grid-4, .why { grid-template-columns: minmax(0, 1fr); }
  .brand img { width: 120px; }
  .footer a { margin: 0 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== CMS: utilidades (sin estilos en línea: la CSP los bloquea) ===== */
.section--white { background: var(--white); }
.section--tight { padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 120px); }
.lede--ink { color: rgba(31, 31, 31, .75); }
.mt-20 { margin-top: 20px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mb-32 { margin-bottom: 32px; } .my-24 { margin: 24px 0; }
.wrap-narrow { width: min(760px, calc(100% - 64px)); margin-inline: auto; }
.empty { padding: 48px 0; color: var(--ink-muted); font-size: 1.1rem; }
.preview-bar { position: sticky; top: 0; z-index: 70; padding: 8px 16px; background: var(--black); color: var(--yellow); text-align: center; font: 600 13px var(--body); }

/* Cabecera de páginas internas */
.page-head { padding: clamp(40px, 6vw, 88px) 0 0; }
.page-title { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 800; margin-bottom: 20px; max-width: 20ch; }
.page-head .lede { margin-bottom: 28px; }
.page-head .lede:last-child { margin-bottom: 0; }
.page-head + .section { padding-top: 32px; }
.page-head--works, .page-head--blog { padding-bottom: 0; }
.page-head--works .lede, .page-head--blog .filters { margin-bottom: 0; }
.section--works-list, .section--blog-list { padding-top: 32px; }
.filters--links .chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.filters--links .chip[aria-current="page"] { background: var(--black); color: #fff; border-color: var(--black); }
.chip small { opacity: .6; font-weight: 500; }

/* Migas de pan */
.crumbs { margin-bottom: 24px; font-size: 13px; color: var(--ink-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Tarjetas del blog */
.post { gap: 10px; }
.post__img { margin: -32px -32px 8px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--radius) * 2) calc(var(--radius) * 2) 0 0; background: var(--yellow-soft); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { font-size: 13px; color: var(--ink-muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 56px; font-size: 14px; color: var(--ink-muted); }

/* Artículo */
.article { padding-bottom: clamp(48px, 6vw, 96px); }
.article__head { padding-top: clamp(40px, 6vw, 88px); }
.article__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.article__cats .tag { text-decoration: none; }
.article__title { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; margin-bottom: 20px; }
.article__meta { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; font-size: 14px; color: var(--ink-muted); }
.article__meta img { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); }
.article__cover, .case__cover { margin: clamp(32px, 4vw, 56px) auto; }
.article__cover img, .case__cover img { width: 100%; border-radius: calc(var(--radius) * 3); }
.article__body { margin-top: 40px; }
.toc { margin-bottom: 40px; padding: 24px 28px; border-left: 3px solid var(--yellow); background: var(--white); border-radius: 0 16px 16px 0; }
.toc__title { font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Texto largo (Markdown) */
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; margin-top: 2em; scroll-margin-top: 110px; }
.prose h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; margin-top: 1.6em; scroll-margin-top: 110px; }
.prose h4 { font-size: 1.1rem; font-weight: 700; margin-top: 1.4em; }
.prose a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--yellow-soft); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--yellow); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--yellow); font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.45; }
.prose figure { margin-inline: 0; }
.prose figure img { width: 100%; border-radius: calc(var(--radius) * 2); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-muted); text-align: center; }
.prose code { padding: 2px 6px; border-radius: 6px; background: rgba(31, 31, 31, .07); font-size: .9em; }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: var(--black); color: #f3f3f3; }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; height: 2px; background: var(--line-light); margin: 2.4em 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-light); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line-light); text-align: left; vertical-align: top; }
.prose th { background: var(--yellow-soft); font-family: var(--display); font-weight: 600; font-size: .85rem; }
.prose tr:last-child td { border-bottom: 0; }
.prose .ta-center { text-align: center; } .prose .ta-right { text-align: right; }

.author { display: flex; gap: 18px; align-items: center; margin-top: 56px; padding: 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line-light); }
.author img { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); flex: none; }
.author__name { font: 700 1.05rem var(--display); margin-bottom: 4px; }
.author p { color: var(--ink-muted); font-size: 15px; }

/* Caso del portafolio */
.case { padding-bottom: clamp(48px, 6vw, 96px); }
.case__head { padding-top: clamp(40px, 6vw, 88px); }
.case__intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 48px; align-items: end; }
.case__facts { margin: 0; display: grid; gap: 16px; padding: 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line-light); }
.case__facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.case__facts dd { margin: 2px 0 0; font-family: var(--display); font-weight: 600; }
.case__body { margin-top: 24px; }

/* Páginas de error */
.error-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.error-box { max-width: 560px; }
.error-box h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.error-box p { margin-bottom: 20px; color: var(--ink-muted); }
.error-code { font: 800 clamp(3rem, 10vw, 6rem) var(--display); color: var(--yellow); line-height: 1; margin-bottom: 12px; }
.error-debug { margin-top: 24px; padding: 16px; overflow: auto; max-height: 50vh; font-size: 12px; background: #fff; border: 1px solid var(--line-light); border-radius: 12px; white-space: pre-wrap; }
.footer__links { display: inline-flex; flex-wrap: wrap; }
.footer .footer__main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 8vw, 120px); padding-bottom: 40px; }
.footer__identity { max-width: 430px; }
.footer a.footer__brand { display: inline-block; margin: 0 0 18px; }
.footer__brand img { display: block; width: 164px; height: auto; }
.footer__identity p { margin: 0 0 16px; color: #bdbdb8; line-height: 1.75; }
.footer__location { display: block; font-size: 12px; line-height: 1.6; color: #989892; }
.footer__navigation h2 { margin: 5px 0 22px; font: 700 12px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.footer__menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.footer__menu a { margin: 0; }
.footer .footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; align-items: center; }
@media (max-width: 600px) { .footer .footer__main { grid-template-columns: 1fr; gap: 30px; } .footer__bottom { gap: 16px; } }

@media (max-width: 860px) {
  .wrap-narrow { width: calc(100% - 32px); }
  .case__intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .post__img { margin: -24px -24px 8px; }
}

/* ===== Hero v2: fondo negro (el botón con luz luce sobre oscuro), titular más contenido ===== */
.hero--dark { background: var(--black-2); color: #ededed; margin-top: -76px; padding-top: calc(76px + clamp(48px, 6vw, 96px)); }
.hero--dark .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); }
.hero--dark h1 { font-size: clamp(2.1rem, 4.2vw, 3.9rem); max-width: 16ch; color: #fff; }
.hero--dark h1 mark { box-shadow: inset 0 -0.28em 0 rgba(var(--accent-rgb), .85); color: #fff; }
.hero--dark .lede, .hero--dark .hero__note { color: var(--muted); }
.hero--dark .eyebrow { color: #fff; }
.hero--dark .btn--outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.hero--dark .btn--outline:hover { background: #fff; color: var(--black); }
.hero__facts { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--line-dark); border-radius: calc(var(--radius) * 3); background: rgba(255, 255, 255, .04); }
.hero__facts dl { margin: 0; display: grid; gap: 18px; }
.hero__facts dl div { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); }
.hero__facts dt { font: 800 2.2rem/1 var(--display); color: var(--yellow); }
.hero__facts dd { margin: 0; color: #ededed; }
.hero__facts .hero__tag { position: static; background: var(--yellow); color: var(--on-accent); }
@media (max-width: 860px) { .hero--dark .hero__grid { grid-template-columns: minmax(0, 1fr); } }

/* Botón con luz: la luz siempre fija a la derecha */
.glow-btn-wrap { --lx: 70px; --rim-r: 1; --rim-l: 0; }

/* Cabecera como KIT: fija, blanca, se esconde al bajar y vuelve al subir */
.site-header { position: fixed; top: 24px; left: 50%; margin: 0; transform: translateX(-50%); width: min(1720px, calc(100% - 96px)); min-height: 70px; padding: 10px 12px 10px 24px; background: rgba(255, 255, 255, .94); border: 1px solid rgba(31, 31, 31, .08); box-shadow: 0 18px 48px rgba(31, 31, 31, .08); backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15); transition: transform .35s ease, opacity .25s ease, box-shadow .3s ease; }
.site-header.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-140%); }
main > :first-child:not(.hero--dark) { padding-top: calc(118px + clamp(24px, 4vw, 56px)); }
main > :first-child:has(.crumbs) { padding-top: 118px; }
main > :first-child > :is(.article__head, .case__head):has(.crumbs) { padding-top: 0; }
main > :first-child .crumbs { margin-bottom: clamp(40px, 4vw, 56px); }
@media (max-width: 860px) { main > :first-child:has(.crumbs) { padding-top: 106px; } }
.hero--dark { margin-top: 0; padding-top: calc(118px + clamp(40px, 5vw, 80px)); }
@media (max-width: 860px) { .site-header { top: 12px; width: calc(100% - 24px); } }

/* ===== Hero v3 = KIT: foto fundida con el fondo, titular en mayúsculas ===== */
.hero--dark { background: #010303; overflow: hidden; padding: 0; }
.hero--dark .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); min-height: 100svh; align-items: stretch; padding-top: clamp(120px, 11vw, 160px); }
.hero__copy { align-self: center; display: grid; gap: 22px; padding-bottom: clamp(32px, 5vw, 72px); }
.hero__copy .eyebrow { margin: 0; color: rgba(237, 237, 237, .6); }
.hero--dark h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.04; text-transform: uppercase; max-width: none; }
.hero--dark h1 span { color: var(--yellow); }
.hero--dark .lede { margin: 0; max-width: 34em; color: rgba(237, 237, 237, .74); }
.hero__note { margin: 0; }
.hero__experience { justify-self: start; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--yellow); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; cursor: default; }
.hero__experience strong { font-weight: inherit; }
.hero__copy .hero__note { line-height: 1.65; }
@media (max-width: 560px) {
  body .price-list li, body .svc__list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  body .price-list b, body .svc__list b { white-space: normal; overflow-wrap: anywhere; }
  .price-list, .svc__list { min-width: 0; }
}
.hero__photo { margin: 0; align-self: end; display: flex; justify-content: center; -webkit-mask-image: radial-gradient(75% 75% at 50% 45%, #000 60%, transparent 100%); mask-image: radial-gradient(75% 75% at 50% 45%, #000 60%, transparent 100%); }
.hero__photo img { width: 100%; max-height: 82svh; object-fit: contain; object-position: bottom; }
.hero--emblem { position: relative; isolation: isolate; }
.hero__workbench {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  --spot-x: 75%; --spot-y: 45%;
}
.hero__workbench > span { position: absolute; inset: 0; pointer-events: none; }
.hero__draft-base, .hero__draft-reveal { background: url("../assets/brand/hero-emblem/brand-workbench.svg?v=10") center top / min(1600px, 110%) auto no-repeat; }
.hero__draft-base { opacity: .012; }
.hero__draft-reveal {
  opacity: 0; transition: opacity .8s ease;
  -webkit-mask-image: radial-gradient(circle 260px at var(--spot-x) var(--spot-y), #000 0%, rgba(0,0,0,.85) 30%, transparent 100%);
  mask-image: radial-gradient(circle 260px at var(--spot-x) var(--spot-y), #000 0%, rgba(0,0,0,.85) 30%, transparent 100%);
}
.hero__draft-light { opacity: 0; transition: opacity .8s ease; background: radial-gradient(circle 360px at var(--spot-x) var(--spot-y), rgba(242,192,92,.13), rgba(206,156,61,.045) 42%, transparent 100%); }
.hero__workbench::after { content:""; position:absolute; inset:0; pointer-events:none; display:none; opacity:0; background:url("../assets/brand/hero-emblem/ultrawide-workbench.svg?v=4") center top / 2600px 1000px no-repeat; -webkit-mask-image:radial-gradient(circle 300px at var(--spot-x) var(--spot-y),#000,transparent); mask-image:radial-gradient(circle 300px at var(--spot-x) var(--spot-y),#000,transparent); transition:opacity .5s ease; }
@media(min-width:1900px) and (hover:hover) { .hero__workbench::after { display:block; } .is-spotlight .hero__workbench::after { opacity:.24; } }
.hero--emblem.is-spotlight .hero__draft-reveal { opacity: .22; }
.hero--emblem.is-spotlight .hero__draft-light { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .hero__draft-base { opacity: .018; }
  .hero__draft-reveal, .hero__draft-light { display: none; }
}
.hero--emblem::before { content: none; }
.hero--emblem .hero__grid { position: relative; z-index: 1; }
@keyframes hero-light-drift {
  0% { transform: translate3d(-26vw, -12%, 0) scale(.9); }
  45% { transform: translate3d(6vw, 10%, 0) scale(1.12); }
  100% { transform: translate3d(32vw, -3%, 0) scale(.95); }
}
.hero--emblem.is-motion-paused::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero--emblem::before { animation: none; transform: none; will-change: auto; }
}
.hero__art { --logo-scale: 1.2; position: relative; margin: 0; width: 100%; aspect-ratio: 1; align-self: center; isolation: isolate; transform: translate(10px, -48px) scale(1.12); }
.hero--dark .hero__grid:has(.hero__art) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.hero__art > img { position: absolute; display: block; height: auto; pointer-events: none; }
.hero__art-emblem { inset: 0; width: 100%; }
.hero__art-emblem { z-index: 1; transform: scale(var(--logo-scale)); }
.hero__art .hero__cursor { z-index: 2; width: 11.5%; transform: translate(-50%, -50%); }
.hero__cursor--12 { left: 55%; top: 7%; width: 10.5% !important; }
.hero__cursor--2 { left: 87.5%; top: 28%; }
.hero__art .hero__cursor--4 { left: 84%; top: 74.5%; width: 15%; }
.hero__cursor--6 { left: 50%; top: 96%; width: 7.475% !important; }
.hero__art .hero__cursor--8 { left: 15.5%; top: 65.5%; width: 15%; }
.hero__cursor--10 { left: 17%; top: 25.5%; }
.hero__cursor--12, .hero__cursor--4, .hero__cursor--8 { filter: blur(1.56px); }
@media (max-width: 860px) {
  .hero--dark .hero__grid:has(.hero__art) { grid-template-columns: minmax(0, 1fr); }
  .hero__art { --logo-scale: 1.08; max-width: 620px; justify-self: center; transform: none; margin-bottom: 24px; }
}

/* Menú como KIT: transparente sobre el hero oscuro, blanco al hacer scroll */
.site-header { width: var(--wrap); border-radius: 999px; }
body.has-dark-hero .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Logo oficial para fondo oscuro (símbolo amarillo + texto blanco), sin filtros */
.brand__light { display: none; }
body.has-dark-hero .site-header:not(.is-scrolled) .brand__dark { display: none; }
body.has-dark-hero .site-header:not(.is-scrolled) .brand__light { display: block; }
body.has-dark-hero .site-header:not(.is-scrolled) .nav a { color: #fff; }
body.has-dark-hero .site-header:not(.is-scrolled) .header-cta { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
body.has-dark-hero .site-header:not(.is-scrolled) .menu-toggle { background: #fff; }
body.has-dark-hero .site-header:not(.is-scrolled) .menu-toggle span { background: var(--black); }
@media (max-width: 860px) {
  .hero--dark .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 110px; }
  .hero__photo img { max-height: 60svh; }
}

/* ===== v4: páginas separadas, escaparate de casos, equipo ===== */
.h3x { font: 800 clamp(1.3rem, 2vw, 1.75rem)/1.15 var(--display); margin: 6px 0 12px; }
.card--link { text-decoration: none; }
.card__more { margin-top: auto; font: 600 13px var(--body); color: var(--yellow); }
.card:not(.card--dark) .card__more { color: var(--black); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.actions--center { justify-content: center; }

/* Escaparate de casos en la portada: imagen grande + contenido al lado, alternando */
.showcase { display: grid; gap: clamp(56px, 7vw, 120px); }
.showcase__item { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.showcase__item--flip .showcase__img { order: 2; }
.showcase__img { display: grid; place-items: center; aspect-ratio: 16 / 11; overflow: hidden; border-radius: calc(var(--radius) * 3); background: #e9e6dc; text-decoration: none; font: 800 clamp(2rem, 5vw, 4.4rem) var(--display); color: rgba(31, 31, 31, .8); box-shadow: 0 40px 80px -50px rgba(17, 17, 17, .45); }
.showcase__item:nth-child(4n+1) .showcase__img { background: #f3e2b8; }
.showcase__item:nth-child(4n+2) .showcase__img { background: #dfe7d6; }
.showcase__item:nth-child(4n+3) .showcase__img { background: #e3e0f0; }
.showcase__item:nth-child(4n+4) .showcase__img { background: #f3dccf; }
.showcase__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.22, 1, .36, 1); }
.showcase__item:hover .showcase__img img { transform: scale(1.04); }
.showcase__body { display: grid; gap: 16px; justify-items: start; }
.showcase__num { font: 800 clamp(3rem, 6vw, 5.5rem)/.9 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--yellow); }
.showcase__body h3 { font: 800 clamp(1.5rem, 2.6vw, 2.3rem)/1.1 var(--display); }
.showcase__body h3 a { text-decoration: none; }
.showcase__body p { color: var(--ink-muted); }
.showcase__facts { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.showcase__facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.showcase__facts dd { margin: 0; font-weight: 600; }

/* Proceso */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.process li { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--black); }
.process span { font: 800 13px var(--display); color: var(--yellow); }
.process b { font: 700 1.05rem var(--display); }
.process p { color: var(--ink-muted); font-size: 15px; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.member { display: grid; gap: 8px; align-content: start; text-decoration: none; }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: calc(var(--radius) * 3); background: var(--black); display: grid; place-items: center; margin-bottom: 10px; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.member:hover .member__photo img { transform: scale(1.04); }
.member__photo span { font: 800 clamp(3rem, 6vw, 5rem) var(--display); color: var(--yellow); }
.member h3 { font: 700 1.3rem var(--display); }
.member__role { font-weight: 600; color: var(--black); }
.member__bio { color: var(--ink-muted); font-size: 15px; }
.member--join .member__photo { background: transparent; border: 2px dashed var(--line-light); }
.member--join .member__photo span { color: var(--ink-muted); }

/* Servicios y precios */
.areas { display: grid; gap: 20px; }
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 36px; border-radius: calc(var(--radius) * 3); background: var(--white); border: 1px solid var(--line-light); scroll-margin-top: 110px; }
.area__title { font-weight: 600; margin-bottom: 10px; }
.area p:not(.area__title) { color: var(--ink-muted); }
.price-list { margin: 0; padding: 0; list-style: none; display: grid; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.price .price-list li { padding-left: 22px; }
.price .price-list li::before { top: calc(14px + .5lh - 5px); }
.on-dark .price-list li { border-color: var(--line-dark); }
.price-list b { font-family: var(--display); white-space: nowrap; }
.hint-line { color: var(--ink-muted); font-size: 15px; padding: 8px 4px; }
.prices-grid { margin-bottom: 40px; }
.conditions { padding: 32px; border-radius: calc(var(--radius) * 3); background: var(--yellow-soft); }
.conditions ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.why--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.on-dark .why span { color: var(--muted); }

@media (max-width: 1080px) { .process, .why--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .showcase__item { grid-template-columns: minmax(0, 1fr); }
  .showcase__item--flip .showcase__img { order: 0; }
  .team, .area { grid-template-columns: minmax(0, 1fr); }
  .area { padding: 24px; gap: 20px; }
}
@media (max-width: 560px) { .process, .why--5 { grid-template-columns: minmax(0, 1fr); } }

/* Escaparate v2: tarjeta tipo KIT, mitad imagen / mitad contenido + círculo que sigue al ratón */
.showcase { gap: 28px; }
.showcase__item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: stretch; overflow: hidden; border-radius: calc(var(--radius) * 3); background: var(--white); border: 1px solid var(--line-light); transition: box-shadow .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1); }
.showcase__item:hover { box-shadow: 0 40px 80px -50px rgba(17, 17, 17, .45); transform: translateY(-4px); }
.showcase__img { position: relative; border-radius: 0; box-shadow: none; aspect-ratio: auto; min-height: clamp(300px, 34vw, 520px); cursor: none; }
.showcase__body { padding: clamp(28px, 4vw, 56px); align-content: center; }
.showcase__num { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.view-dot { position: absolute; left: 0; top: 0; z-index: 2; display: grid; place-items: center; width: 116px; height: 116px; margin: -58px 0 0 -58px; border-radius: 50%; background: rgba(15, 16, 14, .38); color: #fff; border: 1px solid rgba(255,255,255,.42); backdrop-filter: blur(9px) saturate(1.1); -webkit-backdrop-filter: blur(9px) saturate(1.1); font: 700 12px/1.2 var(--display); text-transform: uppercase; text-align: center; pointer-events: none; transform: translate(var(--dx, 50%), var(--dy, 50%)) scale(0); transition: transform .25s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 12px 30px -16px rgba(60,35,6,.45), inset 0 1px rgba(255,255,255,.14); }
.showcase__img.is-hover .view-dot { transform: translate(var(--dx), var(--dy)) scale(1); }
@media (hover: none) { .showcase__img { cursor: pointer; } .view-dot { display: none; } }
@media (max-width: 860px) {
  /* Keep the mobile stack after the v2 desktop rules in the cascade. */
  .showcase__item { grid-template-columns: minmax(0, 1fr); }
  .showcase__item--flip .showcase__img { order: 0; }
  .showcase__img { min-height: 0; aspect-ratio: 7 / 5; }
  .showcase__body { padding: 24px; gap: 12px; }
}

/* ===== v5 · secciones premium (estilo espinoza.ru, mejorado) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec-label { display: flex; gap: 44px; margin: 0 0 28px; font: 800 12px var(--display); text-transform: uppercase; letter-spacing: .06em; }
.sec-label span { opacity: .55; }
.mega { font: 800 clamp(2.6rem, 6.6vw, 6.4rem)/.95 var(--display); letter-spacing: -.035em; margin: 0; }
.mega em { font-style: normal; color: var(--yellow); }
.mega--caps { text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 5.6rem); }
.xp__head { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr); gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.xp__head .lede { margin: 0; }

/* 01 Experiencia */
.xp { position: relative; overflow: hidden; padding: clamp(80px, 9vw, 140px) 0 0; background: #0d0d0d; color: #fff; }
.xp::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .16), transparent); pointer-events: none; }
.xp .lede { color: rgba(237, 237, 237, .66); }
.xp__stats { position: relative; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.xp__stats div { display: grid; gap: 14px; align-content: start; padding: 36px 24px 32px; min-height: 300px; border-right: 1px solid var(--line-dark); transition: background .4s ease; }
.xp__stats div:last-child { border-right: 0; }
.xp__stats div:hover { background: rgba(var(--accent-rgb), .05); }
.xp__stats dt { font: 800 clamp(4rem, 8vw, 7.6rem)/.9 var(--display); color: var(--yellow); letter-spacing: -.04em; }
.xp__stats dd { margin: 0; font: 800 14px var(--display); text-transform: uppercase; }
.xp__stats small { margin-top: auto; align-self: end; color: rgba(237, 237, 237, .35); font-size: 12px; }

/* 02 Servicios */
.svc { padding: clamp(64px, 8vw, 120px) 0; background: #fff; overflow: hidden; }
.svc__intro { position: relative; padding-bottom: clamp(60px, 8vw, 120px); }
.svc__word { margin: 0; font: 800 clamp(5rem, 19vw, 19rem)/.8 var(--display); letter-spacing: -.05em; color: #ececec; user-select: none; }
.svc__lede { position: absolute; right: 0; bottom: clamp(30px, 5vw, 90px); width: min(560px, 50%); margin: 0; color: #5f5f5f; }
.svc__row { border-top: 1px solid var(--line-light); padding: 26px 0 clamp(48px, 6vw, 80px); }
.svc__meta { display: flex; justify-content: space-between; margin-bottom: 36px; font: 800 12px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.svc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.svc__name { margin: 0; font: 800 clamp(2.6rem, 5.6vw, 5.4rem)/.95 var(--display); letter-spacing: -.04em; }
.svc__name a { text-decoration: none; }
.svc__visual { position: relative; display: grid; align-content: space-between; aspect-ratio: 16 / 10; padding: 26px; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; background: #111; box-shadow: 0 40px 80px -48px rgba(17, 17, 17, .6); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.svc__visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 90% at 85% 15%, rgba(var(--accent-rgb), .55), transparent 60%); transition: opacity .5s ease; }
.svc__visual--2::after { background: radial-gradient(80% 90% at 15% 85%, rgba(var(--accent-rgb), .5), transparent 60%); }
.svc__visual--3::after { background: radial-gradient(70% 70% at 50% 0%, rgba(var(--accent-rgb), .5), transparent 65%); }
.svc__visual--4 { background: var(--yellow); color: var(--on-accent); }
.svc__visual--4::after { background: radial-gradient(70% 80% at 80% 90%, rgba(255, 255, 255, .55), transparent 60%); }
.svc__visual:hover { transform: translateY(-6px) rotate(-.6deg); }
.svc__visual-num { position: relative; z-index: 1; font: 800 clamp(3.6rem, 7vw, 6.4rem)/.9 var(--display); letter-spacing: -.04em; }
.svc__visual-text { position: relative; z-index: 1; max-width: 32ch; font-size: 15px; opacity: .85; }
.svc__list { margin: 0; padding: 0; list-style: none; display: grid; }
.svc__list li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-light); color: #4f4f4f; }
.svc__list li::before { content: "+"; color: var(--yellow); font-weight: 800; margin-right: -4px; }
.svc__list li span { flex: 1; }
.svc__list b { font: 700 14px var(--display); color: var(--black); white-space: nowrap; }

/* Contacto: identidad de cada canal, con iconos conservados al animar el texto. */
.contact-channel { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact-channel--phone { --channel: #0a0a0a; }
.contact-channel--telegram { --channel: #087eac; }
.contact-channel .contact-channel__button { margin-top: auto; background: var(--channel); border-color: var(--channel); color: #fff; gap: 12px; }
.contact-channel__button svg { flex: 0 0 22px; }
.contact-channel .contact-channel__button:hover { background: var(--channel); color: #fff; box-shadow: 0 10px 24px -12px var(--channel); }

/* 04 Por qué elegirnos (bento) */
.why-us { padding: clamp(80px, 9vw, 140px) 0; background: #f1f0ec; }
.why-us .lede { color: #5f5f5f; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.bento__card { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; min-height: 340px; padding: clamp(24px, 2.6vw, 36px); border-radius: 22px; background: #fafaf8; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 24px 50px -38px rgba(17, 17, 17, .4); transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease; }
.bento__card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -36px rgba(17, 17, 17, .45); }
.bento__card--wide { grid-column: span 5; }
.bento__card:nth-child(5) { grid-column: span 3; }
.bento__card small { color: var(--ink-muted); font-size: 14px; }
.bento__card > small:last-child { margin-top: auto; }
.bento__big { margin: 0; font: 500 clamp(1.9rem, 2.8vw, 2.7rem)/1.08 var(--body); letter-spacing: -.02em; }
.bento__big mark { background: none; color: var(--black); font-weight: 800; box-shadow: inset 0 -.35em 0 var(--yellow); }
.bento__num { margin: 0; font: 800 clamp(4rem, 7vw, 6.4rem)/.9 var(--display); color: var(--yellow); letter-spacing: -.04em; }
.bento__num span { font-size: .3em; letter-spacing: 0; color: var(--black); }
.bento__cap { color: var(--black) !important; font-weight: 600; }
.bento__title { margin: 0; font: 600 clamp(1.6rem, 2.3vw, 2.2rem)/1.12 var(--body); letter-spacing: -.02em; }
.bento__card:nth-child(3) .bento__title { margin-top: auto; }
.bento__text { margin: 0; color: var(--ink-muted); }
.bento__card:nth-child(2) .bento__text { margin-top: auto; }
.bento__visual { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; min-height: 150px; padding: 18px; border-radius: 16px; background: #111 radial-gradient(70% 90% at 90% 10%, rgba(var(--accent-rgb), .45), transparent 60%); }
.bento__visual span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font: 700 12px var(--display); }
.bento__visual span:nth-child(odd) { background: var(--yellow); color: var(--on-accent); border-color: var(--yellow); }
.bento__checks { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-muted); }
.bento__checks li::before { content: "✓"; margin-right: 10px; color: var(--yellow); font-weight: 800; }
.bento__card--cta { grid-column: span 4; background: var(--black); color: #fff; }
.bento__card--cta .bento__text { color: var(--muted); }
.bento__card--cta .btn { margin-top: auto; }
.bento__card { position: relative; overflow: hidden; border: 3px solid #fff; border-radius: 30px; background: radial-gradient(ellipse at 10% 0%, #29271f 0%, #111313 65%); color: #f5f4ef; box-shadow: 0 16px 35px -30px #453d26; }
.bento__card small, .bento__card .bento__text, .bento__checks { color: #b9b9b3; }
.bento__big mark { color: var(--yellow); box-shadow: none; }
.bento__num span, .bento__card .bento__cap { color: #f5f4ef !important; }
.bento__diagram { width: 100%; height: 70px; margin-top: auto; stroke: #b79b48; stroke-width: 1; }
.bento__diagram circle { fill: #151616; }
.bento__orbit { width: 100%; height: 100px; stroke: #a28a48; stroke-width: 1; }
.bento__visual { background: transparent; padding: 10px 0; flex-wrap: nowrap; gap: 6px; }
.bento__visual span, .bento__visual span:nth-child(odd) { flex: 1; min-width: 0; height: 90px; padding: 9px 5px; border-radius: 8px; display: flex; align-items: end; justify-content: center; background: linear-gradient(145deg, #34352f, #191a18); border: 1px solid #67654c; color: #eee9d9; font-size: 10px; transform: rotate(-5deg); }
.bento__visual span:nth-child(even) { transform: translateY(-12px) rotate(4deg); }
.bento__checks li { padding: 6px 0; border-bottom: 1px solid #ffffff18; }
.bento { gap: 12px; align-items: stretch; }
.bento__card { min-height: 0; gap: 12px; padding: 24px; border-radius: 26px; }
.bento__card > small:last-child, .bento__card:nth-child(2) .bento__text, .bento__card:nth-child(3) .bento__title { margin-top: 0; }
.bento__big { font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
.bento__num { font-size: clamp(4rem, 6vw, 5.6rem); }
.bento__title { font-size: clamp(1.4rem, 1.9vw, 1.8rem); }
.bento__text { font-size: 15px; line-height: 1.55; }
.bento__diagram { height: 40px; margin-top: 0; }
.bento__orbit { height: 60px; }
.bento__visual { min-height: 100px; }
.bento__visual span, .bento__visual span:nth-child(odd) { height: 65px; }

@media (max-width: 1080px) {
  .xp__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp__stats div:nth-child(2) { border-right: 0; }
  .xp__stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .svc__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc__name { grid-column: 1 / -1; }
  .bento__card, .bento__card--wide, .bento__card:nth-child(5), .bento__card--cta { grid-column: span 6; }
}
@media (max-width: 860px) {
  .xp__head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .svc__lede { position: static; width: auto; margin-top: 24px; }
  .svc__grid { grid-template-columns: minmax(0, 1fr); }
  .bento__card, .bento__card--wide, .bento__card:nth-child(5), .bento__card--cta { grid-column: 1 / -1; min-height: 0; }
  .xp__stats div { min-height: 220px; }
}
@media (max-width: 560px) { .xp__stats { grid-template-columns: minmax(0, 1fr); } .xp__stats div { border-right: 0; border-bottom: 1px solid var(--line-dark); } }
.svc__name { font-size: clamp(2.2rem, 4.2vw, 4.2rem); overflow-wrap: anywhere; }
.hero--dark h1 { font-size: clamp(1.9rem, 3.1vw, 3rem); }

/* ===== Tipografía de títulos: Nunito Sans, ancho 125 y peso 700 ===== */
:root { --display: "Nunito Sans", ui-sans-serif, system-ui, sans-serif; }
body { font-variation-settings: "wdth" 125, "opsz" 12; }
body :is(h1, h2, h3, h4, .h2, .h3x, .mega, .page-title, .svc__name, .svc__word,
.xp__stats dt, .bento__num, .bento__big, .bento__title, .showcase__body h3) {
  font-family: var(--display); font-weight: 700; font-stretch: 125%;
  font-variation-settings: "wght" 700, "wdth" 125;
  font-optical-sizing: auto; letter-spacing: -.02em;
}
/* Nunca números con contorno: siempre rellenos */
body .hero--emblem h1 {
  text-transform: none;
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: "wght" 800, "wdth" 125;
}
body .hero--emblem h1 span { display: block; }
.hero--emblem .hero__copy { row-gap: 14px; }
.hero--emblem .hero__copy .actions { margin-top: 30px; gap: 28px; }
.hero--emblem .hero__copy .hero__note { margin-top: 8px; }
.hero__down { display: inline-block; font-size: 1.25em; transition: transform .25s ease; }
.hero__cases:hover .hero__down { transform: translateY(3px); }
@media (min-width: 861px) {
  .hero--dark .hero__grid:has(.hero__art) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  body .hero--emblem h1 { font-size: clamp(3.42rem, 5.58vw, 5.4rem); line-height: 1.04; }
}
.showcase__num { color: var(--yellow); -webkit-text-stroke: 0; }

/* Wiracocha en la parte de abajo (como en el brief): entra desde la derecha al hacer scroll */

/* ===== Artículo con técnica SEO para IA: resumen, secciones numeradas, CTA ===== */
.article__eyebrow { margin: 0 0 14px; font: 800 12px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.tldr { margin-top: 28px; padding: 24px 28px; border-radius: 20px; background: var(--black); color: #ededed; }
.tldr h2 { margin: 0 0 10px; font: 800 13px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.tldr p { font-size: 1.08rem; line-height: 1.65; }
.prose { counter-reset: sec; }
.prose > h2 { counter-increment: sec; }
.prose > h2::before { content: counter(sec, decimal-leading-zero) " /"; display: block; margin-bottom: 8px; font: 800 12px var(--display); letter-spacing: .08em; color: var(--yellow); }
.mid-cta { display: grid; gap: 12px; justify-items: start; margin-top: 48px; padding: 28px; border-radius: 20px; background: var(--yellow); }
.mid-cta__title { font: 800 1.3rem var(--display); }
/* Entrada sin imagen: portada de respaldo con la categoría (nunca una tarjeta vacía) */
.post__img--empty { display: grid; place-items: center; background: var(--black) radial-gradient(70% 90% at 85% 10%, rgba(var(--accent-rgb), .5), transparent 60%); }
.post__img--empty span { font: 800 clamp(1.1rem, 2vw, 1.5rem) var(--display); color: #fff; text-align: center; padding: 0 24px; }

/* Cabecera alineada a la retícula: el contenedor sobresale 24 px a cada lado,
   exactamente su padding interno, así el logo y el botón caen en el borde del contenido. */
.site-header { --hpad: 24px; width: min(calc(var(--wrap) + 2 * var(--hpad)), calc(100% - 16px)); padding: 10px var(--hpad); }
@media (max-width: 860px) { .site-header { --hpad: 16px; top: 12px; width: min(calc(var(--wrap) + 2 * var(--hpad)), calc(100% - 8px)); } }

.ticker__caption { margin: 0; padding: 18px 16px 0; transform: translateY(-10px); text-align: center; font-size: 12px; letter-spacing: .06em; color: var(--ink-muted); }
.market-switch { position: relative; flex-shrink: 0; color: var(--black); }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.market-switch summary { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 6px; border: 0; border-radius: 0; cursor: pointer; font-size: 12px; font-weight: 600; list-style: none; }
.market-switch summary::-webkit-details-marker { display: none; }
.market-switch__chevron { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; background: currentColor; -webkit-mask: url('/assets/icons/arrow.svg') center / contain no-repeat; mask: url('/assets/icons/arrow.svg') center / contain no-repeat; transition: transform .2s ease; }
.market-switch[open] .market-switch__chevron { transform: rotate(180deg); }
.market-switch summary > span:first-child { font-size: 19px; line-height: 1; }
.market-switch__menu { position: absolute; top: calc(100% + 12px); right: 0; width: min(290px,calc(100vw - 32px)); padding: 10px; border: 1px solid var(--line-light); border-radius: 18px; background: #fff; color: #1f1f1f; box-shadow: 0 18px 44px -20px #30270f66; }
.market-switch__menu p { margin: 4px 10px 8px; font-size: 12px; color: #666; }
.market-switch__menu a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px; border-radius: 10px; text-decoration: none; font-size: 14px; }
.market-switch__menu a > span:nth-child(2) { flex: 1; }
.market-switch__menu small { display: block; font-size: 12px; color: #666; }
.market-switch__menu a:hover, .market-switch__menu a[aria-current] { background: #fff4d1; }
.market-price-note { margin-top: 12px; font-size: 14px; color: #4f4f4f; }
.has-dark-hero .site-header:not(.is-scrolled) .market-switch { color: #fff; }
@media (min-width: 1001px) and (max-width: 1280px) { .site-header { gap: 12px; } .nav { gap: 16px; } .header-cta { padding-inline: 18px; } }
@media (max-width: 1000px) { .header-tools { margin-left: auto; } .market-switch summary { padding-inline: 6px; } }
@media (max-width: 560px) { .site-header { gap: 12px; } .market-switch__menu { right: -56px; } }
.showcase-section, .svc { position: relative; isolation: isolate; }
.showcase-section { padding-top: calc(clamp(72px, 9vw, 140px) + 56px); }
.svc { padding-top: calc(clamp(64px, 8vw, 120px) + 56px); }
.showcase-section > .wrap, .svc > .wrap { position: relative; z-index: 1; }
.scroll-word { position: absolute; z-index: 0; top: 12px; left: 0; right: 0; overflow: hidden; margin: 0; padding-block: .08em; pointer-events: none; }
.scroll-word__text { display: block; width: max-content; margin: 0; font: 700 clamp(6rem, 25vw, 25rem)/.95 var(--display); font-variation-settings: "wght" 700, "wdth" 125; letter-spacing: -.045em; color: #e5e4df; opacity: .55; white-space: nowrap; user-select: none; transform: translate3d(var(--word-x, 0px),0,0); }
.showcase-section .head .lede, .svc .svc__lede { color: #4f4f4f; }
.svc .svc__intro { padding-bottom: 32px; }
.svc .svc__lede { position: static; width: min(560px,100%); margin: 0 0 0 auto; }
@media (max-width: 860px) {
  .scroll-word { top: 0; }
  .svc .svc__lede { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-word__text { font-size: clamp(2rem, 10vw, 6rem); transform: none; }
}
@media (max-width: 860px) {
  .hero__art { width: 80%; margin: -8px 0 12px; }
  .hero__art .hero__cursor { display: none; }
  .hero__copy { padding-bottom: 8px; }
  .hero--dark .hero__grid:has(.hero__art) { row-gap: 12px; }
}

/* One mobile type scale, after all desktop section styles. */
@media (max-width: 860px) {
  :root {
    --mobile-h1: clamp(1.75rem, 4.6vw, 2.25rem);
    --mobile-h2: clamp(1.5rem, 3.8vw, 1.875rem);
    --mobile-h3: clamp(1.25rem, 3.2vw, 1.5rem);
  }
  body { font-size: 16px; line-height: 1.6; }
  body :is(h1, .page-title, .article__title), .hero--dark h1 { font-size: var(--mobile-h1); line-height: 1.15; }
  main :is(h2, .h2, .mega, .mega--caps), .prose h2 { font-size: var(--mobile-h2); line-height: 1.2; }
  body :is(h3, .h3x, .svc__name), .showcase__body h3, .card h3, .member h3, .work h3, .prose h3,
  .bento__title, .bento__big { font-size: var(--mobile-h3); line-height: 1.25; }
  body h4, .prose h4 { font-size: 1.125rem; line-height: 1.35; }
  body h5 { font-size: 1rem; line-height: 1.4; }
  body h6 { font-size: .9375rem; line-height: 1.4; }
  main :is(h5, h6) { font-family: var(--display); font-weight: 700; font-variation-settings: "wght" 700, "wdth" 125; }
  .lede, .prose, .tldr p, .bento__text, .showcase__body p, .card p, .member__bio { font-size: 1rem; line-height: 1.65; }
  .hero__note, .hero__copy .hero__note, .bento__card small { font-size: .875rem; line-height: 1.6; }
  .article__meta { font-size: .75rem; line-height: 1.5; align-items: flex-start; }
  .article__meta img { flex-shrink: 0; }
  .section { padding-block: 48px; }
  .showcase-section, .svc { padding-top: 76px; }
  .head { gap: 16px; margin-bottom: 28px; }
  .h2, .cta .h2, .page-title { max-width: none; }
  .bento__card, .card, .area { padding: 22px; border-radius: 22px; }
  .post__img { margin: -22px -22px 8px; }
  .bento__num, .xp__stats dt { font-size: 3rem; }
  .xp__stats div { min-height: 0; padding: 24px; }
  .showcase__num { font-size: 2rem; }
  .showcase__body { padding: 22px; }
  .price-list li { flex-wrap: wrap; gap: 4px 12px; }
  .price-list b { white-space: normal; }
  .contacts a { font-size: 1rem; overflow-wrap: anywhere; }
  .tldr, .mid-cta { padding: 20px; }
  .tldr h2 { font-size: .8125rem; line-height: 1.4; }
  .prose h2 { margin-top: 1.6em; }
  .prose :is(p, li) { overflow-wrap: break-word; }
}

/* Espinoza: paquetes de precios */
.price { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.price > ul { width: 100%; }
.price .card__num { font-size: 1.35rem; }
.price__term { margin-top: auto; }

/* Espinoza: reseñas con título fijo y columna que se desplaza */
.reviews { overflow: visible; }
.reviews__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.reviews__aside { position: sticky; top: 120px; display: grid; gap: 20px; justify-items: start; }
.reviews__aside .lede { max-width: 34ch; }
.reviews__more { margin-top: 8px; }
.reviews__count { margin: 16px 0 0; font: 700 14px var(--display); letter-spacing: .08em; color: var(--muted); }
.reviews__count span { color: var(--yellow); }
.reviews__list { display: grid; gap: var(--gap); }
.reviews__item { position: relative; margin: 0; padding: clamp(28px, 3.4vw, 48px); transition: border-color .3s ease, background-color .3s ease; }
.reviews__item p { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.55; }
.reviews__item.is-current { border-color: var(--yellow); background: rgba(255, 255, 255, .09); }
.reviews__num { font: 800 13px var(--display); color: var(--yellow); letter-spacing: .08em; }
@media (max-width: 860px) {
  .reviews__grid { grid-template-columns: minmax(0, 1fr); }
  .reviews__aside { position: static; }
  .reviews__count { display: none; }
}

.reviews__rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 4px 0 0; }
.reviews__rating b { font: 800 clamp(2.4rem, 4vw, 3.4rem)/1 var(--display); color: #fff; }
.reviews__rating small { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.reviews__stars { color: var(--yellow); letter-spacing: .12em; }
.reviews__item p + p { margin-top: -6px; }

/* Espinoza: reservas de videollamada (/booking/) */
.booking__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr) minmax(0, 1.05fr); gap: var(--gap); align-items: start; }
.booking .card { display: grid; gap: 16px; align-content: start; }
.booking h2 { font: 700 1.35rem var(--display); margin: 0; }
.booking__step { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.booking__step span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--on-accent); }
.booking__nav { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; }
.booking__nav a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-light); text-decoration: none; color: inherit; font-size: 18px; }
.booking__nav a:hover { background: var(--black); color: #fff; }
.booking__weekdays, .booking__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.booking__weekdays span { text-align: center; font: 600 12px var(--display); color: var(--ink-muted); }
.booking__day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; font: 600 15px var(--display); text-decoration: none; color: inherit; border: 2px solid transparent; }
.booking__day--off { color: #b9b6ad; }
.booking__day--free { background: #fff; color: var(--black); border-color: rgba(31, 31, 31, .28); }
.booking__day--free:hover { border-color: var(--black); }
.booking__day--full { background: #e4e2db; color: #8a877e; cursor: default; }
.booking__day { position: relative; }
.booking__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--black); }
.booking__day.is-today.is-selected::after { background: #fff; }
.booking__day.is-selected { background: var(--black); color: #fff; border-color: var(--black); text-decoration: none; }
.booking__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-muted); }
.booking__legend li { display: flex; align-items: center; gap: 8px; }
.booking__dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.booking__dot--free { background: #fff; border: 2px solid rgba(31, 31, 31, .28); }
.booking__dot--full { background: #eceae4; }
.booking__dot--off { width: auto; height: auto; background: transparent; font: 600 13px var(--display); font-style: normal; color: #b9b6ad; }
.booking__dot--off::before { content: "12"; }
.booking__tz, .booking__note, .booking__empty { margin: 0; font-size: 14px; color: var(--ink-muted); }
.booking__times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.booking__time { position: relative; cursor: pointer; }
.booking__time input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.booking__time span { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line-light); background: #fff; text-align: center; transition: border-color .15s ease, background-color .15s ease; }
.booking__time b { font: 700 1.1rem var(--display); }
.booking__time small { font-size: 12px; color: #2b7a3d; }
.booking__time:hover span { border-color: var(--black); }
.booking__time input:checked + span { background: var(--black); border-color: var(--black); color: #fff; }
.booking__time input:checked + span small { color: var(--yellow); }
.booking__time input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.booking__time.is-busy { cursor: not-allowed; }
.booking__time.is-busy input { cursor: not-allowed; }
.booking__time.is-busy span { background: #eceae4; border-color: #eceae4; color: #8a877e; }
.booking__time.is-busy b { text-decoration: line-through; }
.booking__time.is-busy small { color: #8a877e; }
.booking__field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.booking__field small { font-weight: 400; color: var(--ink-muted); }
.booking__field input, .booking__field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #cfccc3; background: #fff; font: inherit; font-weight: 400; color: inherit; }
.booking__field input:focus, .booking__field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--black); }
.booking__consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; color: var(--ink-muted); align-items: start; }
.booking__consent input { width: 18px; height: 18px; margin-top: 2px; }
.booking__error { color: #b42318; font-size: 13px; font-weight: 600; }
.booking__alert { margin: 0 0 var(--gap); padding: 14px 18px; border-radius: 14px; background: #fde8e6; color: #8f1d14; font-weight: 600; }
@media (max-width: 1080px) { .booking__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .booking__form { grid-column: 1 / -1; } }
@media (max-width: 700px) { .booking__grid { grid-template-columns: minmax(0, 1fr); } .booking__times { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#booking { scroll-margin-top: 96px; }

/* Texto sobre fondos de acento: usa --on-accent en vez de negro fijo. */
.skip:focus { color: var(--on-accent); }
.section--yellow, .mid-cta { color: var(--on-accent); }
.section--yellow .lede--ink { color: var(--on-accent); opacity: .92; }
.section--yellow .eyebrow::before { background: var(--on-accent); }
.section--yellow .contacts a { color: var(--on-accent); }
.reviews__more .arrow, .btn--yellow .arrow { color: inherit; }

/* Espinoza: artículo con barra lateral (migas alineadas con el resto del sitio) */
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.article--sidebar .article__head { padding-top: 0; }
.article--sidebar .article__cover { margin: clamp(28px, 3vw, 44px) 0; }
.article--sidebar .article__body { margin-top: 0; }
/* El contenido ocupa toda la columna: las imágenes y tablas llegan al mismo borde que la portada;
   el texto conserva un ancho cómodo de lectura. */
.article--sidebar .prose { max-width: none; }
.article--sidebar .prose > :not(figure):not(table):not(.table-wrap):not(pre) { max-width: 760px; }
.article--sidebar .prose > figure { margin-inline: 0; }
.article--sidebar .prose > figure img { width: 100%; height: auto; }
.article__aside { align-self: stretch; }
.article__sticky { position: sticky; top: var(--sticky-top, 108px); display: grid; gap: 16px; }
.side-card { display: grid; gap: 12px; padding: 22px 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line-light); font-size: 15px; }
.side-card p { margin: 0; }
.side-card__title { font: 800 12px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.side-card--dark { background: var(--black); border-color: var(--black); color: #ededed; }
.side-card--dark .side-card__title { color: var(--yellow); }
.side-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.side-toc li { counter-increment: toc; }
.side-toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 0; text-decoration: none; line-height: 1.35; color: var(--ink-muted); border-left: 2px solid transparent; padding-left: 10px; margin-left: -12px; transition: color .15s ease, border-color .15s ease; }
.side-toc a::before { content: counter(toc, decimal-leading-zero); font: 700 11px var(--display); padding-top: 3px; }
.side-toc a:hover, .side-toc a.is-current { color: var(--black); border-left-color: var(--yellow); }
.side-posts { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.side-posts li { display: grid; gap: 4px; }
.side-posts a { font: 600 15px/1.35 var(--display); text-decoration: none; }
.side-posts a:hover { text-decoration: underline; }
.side-posts time { font-size: 12px; color: var(--ink-muted); }
.article--sidebar .toc--inline { display: none; }
@media (max-width: 1080px) {
  .article__layout { grid-template-columns: minmax(0, 1fr); }
  .article__sticky { position: static; }
  .side-toc { display: none; }
  .article--sidebar .toc--inline { display: block; }
}

/* Espinoza: cabecera oscura de artículos y casos con la portada de fondo */
.entry-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--black-2); color: #fff; padding-bottom: clamp(40px, 5vw, 72px); margin-bottom: clamp(32px, 4vw, 56px); }
.entry-hero__bg { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); max-width: none; object-fit: cover; z-index: -2; filter: blur(2px) saturate(.9); }
.entry-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 10, .86) 0%, rgba(10, 10, 10, .74) 55%, rgba(10, 10, 10, .6) 100%); }
.entry-hero .crumbs, .entry-hero .crumbs a { color: rgba(255, 255, 255, .72); }
.entry-hero .article__eyebrow { color: rgba(255, 255, 255, .72); }
.entry-hero .article__title { max-width: 22ch; margin-bottom: 0; color: #fff; }
.entry-hero .article__meta { color: rgba(255, 255, 255, .78); }
.entry-hero .article__meta b { color: #fff; }
.entry-hero__lede { max-width: 62ch; margin-top: 24px; color: rgba(255, 255, 255, .84); }
.entry-hero .tag { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }
.article--sidebar .tldr { margin-top: 0; }
.article--sidebar .article__cover { margin-top: clamp(28px, 3vw, 44px); }
.article--sidebar .case__cover-main { margin-top: 0; }
.case.article--sidebar .case__body { margin-top: 0; }
/* Barra lateral: primero los bloques que pasan con la lectura; al final, lo que acompaña (índice y consulta). */
.article__aside { display: flex; flex-direction: column; gap: 16px; }
.article__static { display: grid; gap: 16px; }
.article__sticky { margin-top: 0; }
.side-card b { font: 700 1.05rem/1.3 var(--display); }
.side-card__more { font: 600 13px var(--display); }
.side-card--accent { background: var(--black); border-color: var(--black); color: #ededed; }
.side-card--accent .side-card__title { color: var(--yellow); }
.side-card--accent b { color: #fff; }
a.side-card { text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease; }
a.side-card { transition: box-shadow .2s ease, transform .2s ease; }
a.side-card:hover { box-shadow: 0 16px 34px -20px rgba(17, 17, 17, .45); transform: translateY(-2px); }
.side-case img { width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: cover; border-radius: 12px; }
.side-rating { grid-template-columns: 64px 1fr; align-items: center; gap: 14px; }
.side-rating img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--yellow); }
.side-rating span { display: grid; gap: 2px; }
.side-rating b { font-size: 1.5rem; }
.side-rating i { font-style: normal; font-size: .9rem; color: var(--yellow); letter-spacing: .1em; }
.side-rating small { color: var(--ink-muted); font-size: 13px; }
.side-share__links { display: flex; flex-wrap: wrap; gap: 8px; }
.side-share__links a, .side-share__links button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; font: 600 13px var(--display); color: inherit; text-decoration: none; cursor: pointer; }
.side-share__links a:hover, .side-share__links button:hover { background: var(--yellow-soft); }
.article__aside .btn--outline:hover { background: var(--yellow-soft); border-color: rgba(31, 31, 31, .3); color: inherit; }
.article__aside .btn--yellow:hover { filter: brightness(.92); }
.side-works { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.side-works a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-decoration: none; font: 600 14px/1.3 var(--display); }
.side-works img { width: 96px; height: 68px; object-fit: cover; border-radius: 10px; }
.side-works a:hover span { text-decoration: underline; }
.side-card.case__facts { margin: 0; }
@media (max-width: 1080px) { .entry-hero .article__title { max-width: none; } }

/* Artículo: el resumen «Коротко» va en blanco (el negro queda para las tarjetas de acción de la barra). */
.article--sidebar .tldr { background: var(--white); color: inherit; border: 1px solid var(--line-light); }
.article--sidebar .tldr h2 { color: var(--yellow); }

/* Compartir con iconos */
.side-share__title { display: flex; align-items: center; gap: 8px; }
.side-share__links { align-items: center; }
.side-share__links a, .side-share__links button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.side-share__status { font-size: 13px; color: var(--ink-muted); }
/* CTA del final del artículo: dos acciones, sin hover que se pierda sobre el acento */
.mid-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mid-cta .btn--dark:hover { background: var(--black); color: #fff; box-shadow: 0 14px 28px -14px rgba(17, 17, 17, .7); }
.mid-cta__ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .7); color: var(--on-accent); }
.mid-cta__ghost:hover { background: rgba(0, 0, 0, .12); color: var(--on-accent); }

.area__cta { margin-top: 20px; }

/* Hero de portada: interlineado del título más cerrado (el cirílico en minúsculas abre mucho las líneas) */
body .hero--emblem h1 { line-height: .94; }
@media (max-width: 860px) { body .hero--emblem h1 { line-height: 1.02; } }

/* Páginas de servicio */
.service__facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 28px 0 0; }
.service__facts div { display: grid; gap: 2px; align-content: start; }
.service__facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.service__facts dd { margin: 0; font: 700 1.5rem var(--display); }
.service__actions { margin-top: 28px; }
.process--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service__others { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 1080px) { .process--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process--4 { grid-template-columns: minmax(0, 1fr); } }

/* Submenú de «Услуги» */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__sub { position: absolute; top: calc(100% + 14px); left: -18px; z-index: 5; display: grid; gap: 2px; min-width: 280px; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line-light); box-shadow: 0 24px 48px -24px rgba(17, 17, 17, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav .nav__sub a, body.has-dark-hero .site-header:not(.is-scrolled) .nav .nav__sub a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 12px; color: var(--black); font-weight: 600; }
.nav .nav__sub a::after { content: none; }
.nav .nav__sub a:hover { background: var(--yellow-soft); }
.nav .nav__sub a small { font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.nav .nav__sub a.nav__sub-all { margin-top: 4px; border-top: 1px solid var(--line-light); border-radius: 0 0 12px 12px; color: var(--ink-muted); font-weight: 500; }
@media (max-width: 1000px) {
  .nav__item { display: grid; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 8px 12px; border: 0; box-shadow: none; background: transparent; }
  .nav__sub::before { content: none; }
  .nav .nav__sub a, body.has-dark-hero .site-header:not(.is-scrolled) .nav .nav__sub a { padding: 9px 12px; font-size: 15px; font-weight: 500; }
  .nav .nav__sub a small { display: none; }
  .nav .nav__sub a.nav__sub-all { display: none; }
}

/* Footer ampliado: servicios, estudio, contactos y datos legales */
.footer { padding: clamp(48px, 6vw, 80px) 0 32px; }
.footer .footer__main { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.footer__col h2 { margin: 5px 0 20px; font: 700 12px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #8f8f89; }
.footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.footer .footer__col a { margin: 0; }
.footer__col li small { display: block; font-size: 12px; color: #8f8f89; }
.footer__cta { margin-top: 22px; }
.footer .footer__cta a { margin: 0; color: var(--on-accent); }
.footer .footer__cta a:hover { color: var(--on-accent); }
.footer .footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: #8f8f89; }
.footer .footer__bottom a { color: #bdbdb8; }
.footer__legal { display: grid; gap: 4px; }
@media (max-width: 1000px) { .footer .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__identity { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer .footer__main { grid-template-columns: 1fr; } }

/* El botón luminoso del hero y la luz de fondo conservan el dorado de KIT: no dependen del color de acento. */

/* Hero: rejilla inclinada de logos en movimiento */
.hero--dark .hero__grid:has(.hero__wall) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.hero__copy { position: relative; z-index: 2; }
/* Ocupa la mitad derecha del hero hasta el borde de la pantalla; se funde hacia el título y por arriba y abajo. */
.hero__wall { position: absolute; top: 0; bottom: 0; left: 30%; right: calc((100vw - 100%) / -2); z-index: 1; overflow: hidden;
  --tile: clamp(120px, 11.5vw, 190px); --gap: clamp(12px, 1.2vw, 20px); --tilt-x: 0deg; --tilt-z: 0deg;
  /* Postura de la rejilla. Vertical: 0deg / 0deg / 1. Inclinada (versión anterior): 50deg / 12deg / 1.12 */
  --wall-rx: 0deg; --wall-rz: 0deg; --wall-scale: 1; }
/* La rejilla cuelga desde arriba (no centrada): cada columna mide cuatro repeticiones y avanza media columna,
   así que la mitad que queda siempre cubre toda la altura del hero. Centrarla dejaba huecos. */
.logo-wall { position: absolute; left: 43%; top: -40px; display: flex; gap: var(--gap); width: max-content; transform-origin: 50% 500px;
  transform: translate(-50%, 0) perspective(1600px) rotateX(calc(var(--wall-rx) + var(--tilt-x))) rotateZ(calc(var(--wall-rz) + var(--tilt-z))) scale(var(--wall-scale));
  transform-style: preserve-3d; }
.logo-wall__col { position: relative; display: flex; flex-direction: column; gap: var(--gap); animation: logo-wall-up 80s linear infinite; transform-style: preserve-3d; }
.logo-wall__col--2, .logo-wall__col--4 { animation-name: logo-wall-down; animation-duration: 92s; }
.logo-wall__col--3 { animation-duration: 68s; }
.logo-wall__col--5 { animation-duration: 86s; }
.logo-wall__col--6 { animation-name: logo-wall-down; animation-duration: 74s; }
.logo-wall__col--7 { animation-duration: 90s; }
.logo-wall__col--8 { animation-name: logo-wall-down; animation-duration: 70s; }
/* Las columnas 5-8 repiten los grupos de las 1-4: arrancan desplazadas para que no se vea el mismo logo a la misma altura */
.logo-wall__col--5 { animation-delay: -31s; } .logo-wall__col--6 { animation-delay: -47s; } .logo-wall__col--7 { animation-delay: -19s; } .logo-wall__col--8 { animation-delay: -38s; }
/* Tres copias por columna: una vuelta es un tercio de la altura (más un tercio de separación). */
@keyframes logo-wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-100% / 3 - var(--gap) / 3)); } }
@keyframes logo-wall-down { from { transform: translateY(calc(-100% / 3 - var(--gap) / 3)); } to { transform: translateY(0); } }
.logo-wall__tile { display: block; width: var(--tile); height: var(--tile); border-radius: 22%; transform: translateZ(0);
  transition: filter .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .7s ease; }
.logo-wall__tile img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.logo-wall__tile.is-lit, a.logo-wall__tile:focus-visible { transform: translateZ(70px) scale(1.12); box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .8); z-index: 2; }
/* El movimiento no se detiene al pasar el cursor por el hero: solo la columna del logo que se está mirando. */
.logo-wall__col:has(a.logo-wall__tile:hover) { animation-play-state: paused; }
@media (max-width: 1080px) {
  .hero--dark .hero__grid:has(.hero__wall) { grid-template-columns: minmax(0, 1fr); }
  .hero__wall { position: relative; inset: auto; height: 340px; margin: 8px -16px 0; --tile: 104px; --gap: 12px;
  }
  .logo-wall { left: 50%; top: -20px; transform-origin: 50% 170px; transform: translate(-50%, 0) perspective(1200px) rotateX(var(--wall-rx)) rotateZ(var(--wall-rz)) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .logo-wall__col { animation: none; } .logo-wall, .logo-wall__tile { transition: none; } }


/* ---- Rejilla de logos: posición, bordes y luz ----
   La rejilla empieza a la derecha del texto (no pasa por detrás del título) y los logos se ven con su brillo natural.
   El dibujo de líneas del fondo ocupa todo el hero, sin cortes, y queda por detrás de los logos.
   Los bordes se funden con una máscara corta (solo el primer tramo y arriba/abajo), no con un velo opaco. */
/* Sin degradado horizontal: la entrada hacia el título se hace atenuando las tres primeras columnas (10 %, 15 %, 60 %).
   Se atenúa con brillo, no con transparencia, para que el dibujo del fondo no se vea a través de los logos. */
.hero__wall { left: 38%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%); }
/* Profundidad: cada columna tiene su brillo, desenfoque y tamaño (distancia). Las más grandes pasan por delante.
   col  brillo  desenfoque  tamaño
    1    10 %     2 px        90 %
    2    20 %     1 px       100 %
    3    70 %      —         108 %
    4    50 %     2 px        92 %
    5   100 %      —         116 %
    6    50 %     2 px       108 %
    7    50 %     2 px        92 %
    8    50 %     2 px       100 % */
.logo-wall__col { transform-origin: 50% 0; }
.logo-wall__col--1 { filter: brightness(.1); scale: .9; z-index: 1; }
.logo-wall__col--2 { filter: brightness(.2); z-index: 3; }
.logo-wall__col--3 { filter: brightness(.7); scale: 1.08; z-index: 4; }
.logo-wall__col--4 { filter: brightness(.5); scale: .92; z-index: 2; }
.logo-wall__col--5 { scale: 1.16; z-index: 5; }
.logo-wall__col--6 { filter: brightness(.5); scale: 1.08; z-index: 4; }
.logo-wall__col--7 { filter: brightness(.5); scale: .92; z-index: 2; }
.logo-wall__col--8 { filter: brightness(.5); z-index: 2; }
.logo-wall { left: 0; transform: translate(0, 0) perspective(1600px) rotateX(var(--wall-rx)) rotateZ(var(--wall-rz)) scale(var(--wall-scale)); }
/* Sin capa de luz sobre la rejilla (dejaba un resplandor gris entre los logos). La luz es solo del logo bajo el cursor. */
.logo-wall__tile:hover { filter: brightness(1.14); transition-duration: .2s; }
@media (max-width: 1080px) {
  .hero__wall { left: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }
  .logo-wall__col { filter: none; scale: none; }
  .logo-wall { left: 50%; transform: translate(-50%, 0); }
}
/* La luz dorada del emblema anterior no se usa con los logos */
.hero:has(.hero__wall) .hero__draft-light { display: none; }

/* Rendimiento de la rejilla: sin contexto 3D ni una capa por baldosa. Solo se mueven las ocho columnas,
   y se detienen cuando el hero no está en pantalla. */
.logo-wall, .logo-wall__col { transform-style: flat; }
.logo-wall { transform: none; }
.logo-wall__tile { transform: none; }
.logo-wall__tile.is-lit, a.logo-wall__tile:focus-visible { transform: scale(1.1); }
.hero__wall.is-offscreen .logo-wall__col { animation-play-state: paused; }
@media (max-width: 1080px) { .logo-wall { transform: translate(-50%, 0); } }

/* Velocidades: la columna 3 va más viva y la 5 (la grande, en primer plano) es la más lenta de todas. */
.logo-wall__col--3 { animation-duration: 60s; }
.logo-wall__col--5 { animation-duration: 130s; }


/* Bucle sin salto: cada columna mide exactamente lo que miden sus logos. Sin esto, las columnas con menos logos
   se estiraban a la altura de la más larga y, al reiniciar el ciclo, el desplazamiento no coincidía con una vuelta. */
.logo-wall { align-items: flex-start; }

/* Forma de las baldosas: curva continua tipo icono de iOS (máscara de superelipse), en lugar del radio circular. */
.logo-wall__tile, .logo-wall__tile img { border-radius: 0; }
.logo-wall__tile img { -webkit-mask: url("../assets/brand/squircle.svg") center / 100% 100% no-repeat; mask: url("../assets/brand/squircle.svg") center / 100% 100% no-repeat; }
.logo-wall__tile, .logo-wall__tile.is-lit, a.logo-wall__tile:focus-visible { box-shadow: none; }
/* Sombras naturales: suaves, hacia abajo y con la forma de la baldosa. Cuanto más cerca la columna, más sombra;
   las del fondo no proyectan. */
.logo-wall__col--5 .logo-wall__tile { filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .55)); }
.logo-wall__col--3 .logo-wall__tile { filter: drop-shadow(0 11px 16px rgba(0, 0, 0, .45)); }
.logo-wall__col--2 .logo-wall__tile { filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .35)); }
.logo-wall__tile.is-lit { filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .6)); }
.logo-wall__tile:hover { filter: brightness(1.14) drop-shadow(0 16px 22px rgba(0, 0, 0, .5)); }
@media (max-width: 1080px) { .logo-wall__col .logo-wall__tile { filter: none; } }

/* Rejilla girada 15° en sentido horario (solo escritorio). Se sube para que el giro no descubra la esquina superior derecha. */
@media (min-width: 1081px) {
  .logo-wall { top: -420px; transform-origin: 50% 920px; transform: rotate(15deg); }
}

/* Sin recorte vertical: el contenedor de la rejilla ocupa todo el ancho del hero (antes empezaba al 38 % y cortaba
   en línea recta las baldosas giradas). La rejilla conserva su posición; la entrada hacia el título la da solo
   la atenuación de las primeras columnas. */
@media (min-width: 1081px) {
  .hero__wall { left: calc((100vw - 100%) / -2); right: calc((100vw - 100%) / -2); }
  .logo-wall { left: calc((100vw - var(--wrap)) / 2 + var(--wrap) * .38); }
}

/* Fundido superior más largo: los logos no llegan visibles a la franja del menú y del botón. */
@media (min-width: 1081px) {
  .hero__wall { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 10%, rgba(0, 0, 0, .35) 20%, #000 34%, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 10%, rgba(0, 0, 0, .35) 20%, #000 34%, #000 84%, transparent 100%); }
}

/* ---- Fluidez al hacer scroll ----
   Antes: una máscara por imagen (192), un filtro de sombra por baldosa y una máscara sobre toda la rejilla en
   movimiento; el navegador recomponía todo en cada fotograma. Ahora la forma va dentro de la imagen, las sombras
   son simples y el fundido de arriba y abajo es un degradado encima, no una máscara. */
.logo-wall__tile img { -webkit-mask: none; mask: none; }
.logo-wall__tile, .logo-wall__col .logo-wall__tile, .logo-wall__tile.is-lit, .logo-wall__tile:hover { filter: none; }
.logo-wall__tile { border-radius: 26%; }
.logo-wall__col--5 .logo-wall__tile { box-shadow: 0 16px 26px -8px rgba(0, 0, 0, .6); }
.logo-wall__col--3 .logo-wall__tile { box-shadow: 0 11px 18px -6px rgba(0, 0, 0, .5); }
.logo-wall__col--2 .logo-wall__tile { box-shadow: 0 7px 12px -5px rgba(0, 0, 0, .4); }
.logo-wall__tile:hover { opacity: .88; }
.logo-wall__col { will-change: transform; }
@media (min-width: 1081px) {
  .hero__wall { -webkit-mask-image: none; mask-image: none; }
  .hero__wall::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
    background: linear-gradient(180deg, #010303 0%, #010303 10%, rgba(1, 3, 3, .65) 20%, rgba(1, 3, 3, 0) 34%, rgba(1, 3, 3, 0) 84%, #010303 100%); }
}
@media (max-width: 1080px) { .logo-wall__col .logo-wall__tile { box-shadow: none; } }

/* ---- Tirones al hacer scroll (segunda pasada) ----
   1) La baldosa que se destaca cada 2,6 s hacía repintar su columna entera durante la transición (el «tik tak»).
      Ahora las baldosas de esa columna son capas propias y el realce es solo un cambio de tamaño, sin repintado.
   2) Mientras se hace scroll, la rejilla se detiene: el navegador no mueve ocho columnas y la página a la vez. */
.logo-wall__col--5 .logo-wall__tile { will-change: transform; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.logo-wall__tile.is-lit { box-shadow: inherit; }
.logo-wall__col--5 .logo-wall__tile.is-lit { box-shadow: 0 16px 26px -8px rgba(0, 0, 0, .6); }
.logo-wall__tile:hover { opacity: 1; }
.hero__wall.is-scrolling .logo-wall__col { animation-play-state: paused; }

/* Bloque de cierre: fondo negro en degradado y, a la derecha, la cabeza de Wiracocha que sigue al cursor. */
.cta-dark { padding: 40px 0; position: relative; overflow: hidden; color: #ededed; background: var(--black-2); }
.cta-dark .cta { align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.cta-dark .h2 { color: #fff; }
.cta-dark .lede { color: var(--muted); max-width: 52ch; }
.cta-dark__contacts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }
.cta-dark__contacts a { color: #fff; }
.cta-dark__head { display: flex; justify-content: center; align-items: center; min-width: 0; }
.cta-dark__head canvas { flex: none; width: min(640px, 46vw); margin: -56px 0; height: auto; aspect-ratio: 1; opacity: 0; transition: opacity 1.2s ease; mix-blend-mode: lighten; }
.cta-dark__head canvas.is-ready { opacity: 1; }
@media (max-width: 860px) { .cta-dark .cta { grid-template-columns: minmax(0, 1fr); } .cta-dark__head { order: -1; } .cta-dark__head canvas { width: min(92vw, 560px); margin: -40px 0; } }

/* Escala única de títulos: sin mayúsculas forzadas y con tamaños contenidos (h1 de página > h2 de sección). */
.page-title { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.1; max-width: 22ch; }
.h2, .mega, .mega--caps { font: 800 clamp(1.8rem, 2.9vw, 2.7rem)/1.12 var(--display); letter-spacing: -.015em; text-transform: none; max-width: 22ch; }
/* Nombre de cada área: tamaño que deja la palabra entera en una línea; nunca se parte por la mitad. */
.svc__name { font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; overflow-wrap: normal; word-break: normal; hyphens: none; }
/* Tarjeta roja: la luz se funde en modo overlay (aclara el rojo sin desteñirlo a rosa). */
.svc__visual--4 { isolation: isolate; }
.svc__visual--4::after { background: radial-gradient(70% 80% at 80% 90%, rgba(255, 255, 255, .9), transparent 62%); mix-blend-mode: overlay; }

/* Franja de clientes con logotipos (no nombres) y más aire bajo el título. */
.ticker__caption { padding-bottom: 14px; transform: none; }
.ticker__track--logos { gap: 0; align-items: center; animation: ticker-logos 60s linear infinite; }
.ticker__track--logos img { flex: none; width: 150px; height: 96px; margin-right: 56px; object-fit: cover; }
@keyframes ticker-logos { to { transform: translateX(-25%); } }
@media (max-width: 700px) { .ticker__track--logos img { width: 112px; height: 72px; margin-right: 32px; } }

/* Reseñas: sin caja; texto más pequeño, foto en círculo y una línea divisoria muy tenue entre ellas. */
.reviews__list { gap: 0; }
.reviews__item, .reviews__item.is-current { padding: 34px 0; border: 0; border-radius: 0; background: none; border-bottom: 1px solid rgba(255, 255, 255, .07); gap: 14px; }
.reviews__item:first-child { padding-top: 0; }
.reviews__item:last-child { border-bottom: 0; }
.reviews__item p { font-size: 15.5px; line-height: 1.65; color: #cfcfcb; transition: color .3s ease; max-width: 62ch; }
.reviews__item.is-current p { color: #fff; }
.reviews__item p + p { margin-top: 0; }
.testi footer.reviews__author { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 13px; }
.reviews__author img, .reviews__initial { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.reviews__initial { display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; font: 700 16px var(--display); }

/* Botón único «Обсудить проект»: variantes de colocación. */
.glow-btn-wrap.header-cta { flex: none; }
.glow-btn-wrap.header-cta .glow-btn { height: 44px; padding-inline: 24px 28px; }
.glow-btn-wrap--end { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .glow-btn-wrap.header-cta { display: none; } }

/* Botón de Telegram: mismo icono y color de marca en todo el sitio. */
.btn.btn--telegram, .btn.btn--telegram.contact-channel__button { gap: 10px; background: #229ed9; border-color: #229ed9; color: #fff; }
.btn.btn--telegram:is(:hover, :focus-visible) { background: #1b8bc2; border-color: #1b8bc2; color: #fff; }
.btn--telegram svg { flex: none; }
.cta-dark .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
/* Cabecera: dorado solo sobre el hero oscuro; con el menú blanco el botón es rojo, con sombra al pasar el ratón. */
.site-header .header-cta .glow-btn { transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .3s ease, transform .3s ease; }
body:not(.has-dark-hero) .site-header .header-cta :is(.glow-btn__rim, .glow-btn__light),
.site-header.is-scrolled .header-cta :is(.glow-btn__rim, .glow-btn__light) { display: none; }
body:not(.has-dark-hero) .site-header .header-cta .glow-btn,
.site-header.is-scrolled .header-cta .glow-btn { background: var(--yellow); border-color: var(--yellow); color: var(--on-accent); }
body:not(.has-dark-hero) .site-header .header-cta .glow-btn:is(:hover, :focus-visible),
.site-header.is-scrolled .header-cta .glow-btn:is(:hover, :focus-visible) { box-shadow: 0 10px 24px -8px rgba(var(--accent-rgb), .65), 0 3px 8px -3px rgba(var(--accent-rgb), .5); transform: translateY(-1px); }

/* Iconos lineales en botones y enlaces. */
.ico { flex: none; display: inline-block; vertical-align: -0.2em; }
.btn .ico, .btn--icon { gap: 10px; }
a .ico--ext { margin-left: 2px; opacity: .85; }
/* Pie: enlaces subrayados; iconos de chat/Telegram y botón de copiar. */
.footer__col a, .footer__links a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(237, 237, 237, .35); }
.footer__col a:hover, .footer__links a:hover { text-decoration-color: currentColor; }
.footer__contacts li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.footer__contacts li small { flex-basis: 100%; }
.footer__ico-link { display: inline-flex; align-items: center; gap: 7px; }
/* Botón copiar */
.copy-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; opacity: .55; cursor: pointer; vertical-align: middle; transition: opacity .2s ease, background-color .2s ease, color .2s ease; }
.copy-btn:hover, .copy-btn:focus-visible { opacity: 1; background: rgba(127, 127, 127, .16); }
.copy-btn.is-copied { opacity: 1; color: #34c759; }
.copy-temp { position: fixed; left: -9999px; top: 0; }
.cta-dark__contacts { align-items: center; }

/* Contacto: tres tarjetas (Telegram · videollamada · teléfono + e-mail), botón siempre abajo. */
.contact-cards .contact-channel { display: flex; flex-direction: column; gap: 14px; }
.contact-cards .contact-channel__button { margin-top: auto; align-self: flex-start; gap: 10px; }
.contact-line { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); font-weight: 600; }
.contact-line + .contact-line { margin-top: -8px; }
.contact-line a { color: inherit; text-decoration: none; }
.contact-line + .contact-channel__button, .contact-channel p:not(.contact-line) + .contact-channel__button { margin-top: auto; }
.contact-cards .btn--yellow.contact-channel__button { background: var(--yellow); border-color: var(--yellow); color: var(--on-accent); }
.contact-cards .btn--dark.contact-channel__button { background: var(--black); border-color: var(--black); color: #fff; }
/* Copiar: sin verde; el icono se oscurece y aparece un tooltip «Скопировано в буфер обмена». */
.copy-btn { position: relative; }
.copy-btn.is-copied { color: inherit; opacity: 1; background: rgba(127, 127, 127, .28); filter: brightness(.7); }
.copy-btn::after { content: "Скопировано в буфер обмена"; position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 20; padding: 6px 10px; border-radius: 8px; background: #1f1f1f; color: #fff; font: 500 12px/1.2 var(--body); white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .2s ease, transform .2s ease; }
.copy-btn.is-copied::after { opacity: 1; transform: translate(-50%, 0); }
.footer .copy-btn::after, .cta-dark .copy-btn::after { background: #fff; color: #1f1f1f; }

/* El dato que corresponde al botón va pegado a él (abajo de la tarjeta). */
.contact-cards .contact-line--pinned { margin-top: auto; }
.contact-cards .contact-line--pinned + .contact-channel__button { margin-top: 0; }
/* Programa de recomendaciones */
.referral-form-wrap { max-width: none; }
.referral-form { display: grid; gap: 16px; }
.referral-form .btn { justify-self: start; }
.referral-stats__num { margin: 6px 0 0; font: 800 clamp(1.6rem, 2.4vw, 2.2rem)/1.1 var(--display); color: var(--ink); }
.referral-link { margin-top: var(--gap); display: grid; gap: 12px; }
.referral-link .contact-line span { overflow-wrap: anywhere; }
.referral-h { margin: 48px 0 16px; }
.referral-table-wrap { overflow-x: auto; }
.referral-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.referral-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); padding: 10px 12px; border-bottom: 1px solid var(--line-light); }
.referral-table td { padding: 12px; border-bottom: 1px solid var(--line-light); }

/* 404: Wiracocha meditando, flotando con su sombra que respira. */
.e404 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 5vw, 80px); }
.e404__wira { position: relative; display: grid; justify-items: center; padding-bottom: 40px; }
.e404__wira img { width: min(100%, 380px); height: auto; animation: wira-float 5.5s ease-in-out infinite; will-change: transform; }
.e404__shadow { position: absolute; bottom: 0; width: 46%; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 31, 31, .28), transparent); animation: wira-shadow 5.5s ease-in-out infinite; }
@keyframes wira-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-22px) rotate(1deg); } }
@keyframes wira-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.78); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .e404__wira img, .e404__shadow { animation: none; } }
@media (max-width: 860px) { .e404 { grid-template-columns: minmax(0, 1fr); } .e404__wira { order: -1; } .e404__wira img { width: min(62vw, 260px); } }

/* Servicio: nota bajo el precio. */
.service__price-note { display: block; margin-top: 4px; font: 500 13px/1.3 var(--body); color: var(--ink-muted); }

/* /services/: bloque «Что выбрать?» — necesidad → servicio, precio y plazo. */
.choose { margin-top: var(--gap); display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 44px); }
.choose__list { margin: 0; padding: 0; list-style: none; }
.choose__list a { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid var(--line-light); color: inherit; text-decoration: none; }
.choose__list li:last-child a { border-bottom: 0; }
.choose__need { color: var(--ink-muted); }
.choose__svc { display: grid; gap: 2px; }
.choose__svc b { font-family: var(--display); font-size: 1.05rem; }
.choose__svc small { color: var(--ink-muted); font-size: 13px; }
.choose__go { color: var(--yellow); font-size: 20px; transition: transform .25s ease; }
.choose__list a:hover .choose__go { transform: translateX(4px); }
.choose__list a:hover .choose__svc b { color: var(--yellow); }
.choose__help { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line-light); }
.choose__help p { margin: 0; }
@media (max-width: 700px) { .choose__list a { grid-template-columns: minmax(0, 1fr) auto; } .choose__need { grid-column: 1 / -1; } }

/* О студии: el equipo va justo después de la cabecera; un poco de aire entre ambos. */
.page-head + .team-section { padding-top: clamp(48px, 6vw, 88px); }

/* Cabeza: los bordes del lienzo se funden con el fondo (sin cuadrado visible). */
.cta-dark__head canvas { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }

/* Home: franja «Как начать работу» — dos caminos en una sola banda. */
.start { padding: clamp(40px, 5vw, 72px) 0; background: var(--white); }
.start__band { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line-light); border-radius: calc(var(--radius) * 2); overflow: hidden; }
.start__title { margin: 0; padding: clamp(24px, 3vw, 40px); font: 800 clamp(1.5rem, 2.2vw, 2rem)/1.15 var(--display); align-self: center; }
.start__path { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line-light); }
.start__path h3 { margin: 0; font: 800 1.25rem/1.2 var(--display); }
.start__path p { margin: 0; color: var(--ink-muted); }
.start__path .btn { justify-self: start; margin-top: 8px; }
.start__tag { font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--yellow) !important; }
.start__path--paid { background: var(--black-2); }
.start__path--paid h3 { color: #fff; }
.start__path--paid p { color: #bdbdb8; }
@media (max-width: 960px) { .start__band { grid-template-columns: minmax(0, 1fr); } .start__path { border-left: 0; border-top: 1px solid var(--line-light); } }

/* Reserva: casilla «Нужно решение — платная консультация». */
.booking__paid { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line-light); border-radius: 14px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.booking__paid input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--yellow); }
.booking__paid span { display: grid; gap: 4px; }
.booking__paid small { color: var(--ink-muted); font-size: 13px; line-height: 1.45; }
.booking__paid:has(input:checked) { border-color: var(--yellow); background: var(--white); }

/* Franja «Как начать работу»: foto de Denis en círculo sobre fondo marrón. */
.start__intro { display: grid; gap: 16px; align-content: center; padding: clamp(24px, 3vw, 40px); }
.start__intro .start__title { padding: 0; }
.start__avatar { display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #6b4a36; box-shadow: 0 10px 24px -12px rgba(60, 35, 20, .55); }
.start__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; mix-blend-mode: luminosity; }

/* «Опыт» + «Как начать работу» en un solo bloque oscuro; cifras compactas en una línea. */
.xp { padding-bottom: clamp(48px, 6vw, 80px); }
.xp .xp__head { margin-bottom: clamp(32px, 4vw, 56px); }
.xp .start__band { border-color: var(--line-dark); background: rgba(255, 255, 255, .03); }
.xp .start__path { border-left-color: var(--line-dark); }
.xp .start__title, .xp .start__path h3 { color: #fff; }
.xp .start__path p { color: rgba(237, 237, 237, .66); }
.xp .start__path .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.xp .start__path--paid { background: rgba(var(--accent-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45); }
.xp .start__avatar { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); }
.xp .xp__stats { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-dark); }
.xp .xp__stats div { min-height: 0; display: flex; align-items: baseline; gap: 12px; padding: 22px 24px 4px 0; border-right: 0; }
.xp .xp__stats div:hover { background: none; }
.xp .xp__stats dt { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; }
.xp .xp__stats dd { font-size: 12px; letter-spacing: .04em; color: rgba(237, 237, 237, .8); }
@media (max-width: 960px) { .xp .start__path { border-left: 0; border-top: 1px solid var(--line-dark); } .xp .xp__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* La foto del autor (la del blog, fondo amarillo) en el círculo, sin filtros. */
.start__avatar { background: #f3c400; }
.start__avatar img { mix-blend-mode: normal; object-position: 50% 30%; }

/* ===== Bento «Клиент работает со мной напрямую»: tarjetas negras con luz cálida y mini-interfaces ===== */
.bento--glow { gap: 14px; }
.bento--glow .bento__card { isolation: isolate; gap: 14px; padding: 28px; border: 0; border-radius: 28px; background: #0c0c0c; color: #f4f3ee; box-shadow: 0 0 0 3px #fff, inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 50px -36px rgba(17, 17, 17, .55); }
.bento--glow .bento__card:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px #fff, inset 0 1px 0 rgba(255, 255, 255, .14), 0 36px 60px -34px rgba(17, 17, 17, .6); }
/* textura de puntos + luz por tarjeta */
.bento--glow .bento__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 14px 14px; -webkit-mask-image: radial-gradient(120% 90% at 50% 100%, #000, transparent 70%); mask-image: radial-gradient(120% 90% at 50% 100%, #000, transparent 70%); }
.bento--glow .bento__card::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(90% 60% at 50% 118%, rgba(var(--accent-rgb), .5), rgba(var(--accent-rgb), .3) 38%, transparent 70%); opacity: .55; transition: opacity .5s ease; }
.bento--glow .bento__card:hover::after { opacity: .9; }
.bento--glow .bento__card small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8f8f89; }
.bento--glow .bento__title { font: 700 clamp(1.25rem, 1.6vw, 1.55rem)/1.2 var(--display); letter-spacing: -.01em; margin-top: auto; }
.bento--glow .bento__text { color: #b4b4ae; font-size: 14.5px; line-height: 1.55; }
.bento--glow .bento__big { font: 800 clamp(1.5rem, 2vw, 1.9rem)/1.12 var(--display); }
.bento--glow .bento__big mark { color: var(--yellow); }

/* 1 · pasos */
.bn-steps { list-style: none; margin: auto 0 0; padding: 26px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative; }
.bn-steps::before { content: ""; position: absolute; left: 7px; right: 7px; top: 32px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .16) 45%, var(--yellow) 80%, var(--yellow) 100%); box-shadow: 0 0 14px rgba(var(--accent-rgb), .35); }
.bn-steps li { position: relative; display: grid; gap: 12px; justify-items: start; font-size: 11.5px; color: #8f8f89; }
.bn-steps li:last-child { justify-items: end; text-align: right; }
.bn-steps i { width: 14px; height: 14px; border-radius: 50%; background: #0c0c0c; border: 2px solid rgba(255, 255, 255, .35); }
.bn-steps .is-on { color: #fff; font-weight: 700; }
.bn-steps .is-on i { border-color: var(--yellow); background: var(--yellow); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .2), 0 0 22px 4px rgba(var(--accent-rgb), .7); animation: bn-pulse 2.8s ease-in-out infinite; }
@keyframes bn-pulse { 50% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), .08), 0 0 30px 8px rgba(var(--accent-rgb), .5); } }

/* 2 · cifra */
.bento--glow .bento__card--experience::after { background: radial-gradient(85% 70% at 50% 112%, var(--yellow) 0%, rgba(var(--accent-rgb), .75) 30%, rgba(120, 20, 10, .35) 55%, transparent 76%); opacity: .95; }
.bento--glow .bento__num { margin: auto 0 0; display: flex; align-items: baseline; gap: 14px; font: 800 clamp(5rem, 8.4vw, 7.6rem)/.86 var(--display); letter-spacing: -.05em; color: #fff; text-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.bento--glow .bento__num span { font: 700 14px/1.3 var(--body); letter-spacing: .02em; color: rgba(255, 255, 255, .85) !important; max-width: 7em; }
.bento--glow .bento__card--experience .bento__text { margin-top: 0; color: rgba(255, 255, 255, .82); }

/* 3 · brief */
.bn-brief { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bn-brief li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); font-size: 13px; color: #9a9a94; }
.bn-brief li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(255, 255, 255, .3); }
.bn-brief .is-done { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.bn-brief .is-done::before { border-color: transparent; background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.bn-brief .is-now { color: #fff; border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .08); box-shadow: 0 0 18px -4px rgba(var(--accent-rgb), .5); }
.bn-brief .is-now::before { border-radius: 50%; border-color: var(--yellow); box-shadow: inset 0 0 0 3px #0c0c0c, inset 0 0 0 8px var(--yellow); }

/* 4 · archivos */
.bn-files { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 14px 0 6px; }
.bn-files span { position: relative; display: grid; align-content: end; gap: 3px; height: 92px; padding: 10px; border-radius: 4px 12px 12px 12px; border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.bn-files span::before { content: ""; position: absolute; left: -1px; top: -9px; width: 46%; height: 10px; border-radius: 6px 8px 0 0; border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; background: rgba(255, 255, 255, .09); }
.bn-files b { font: 700 11.5px/1.2 var(--display); color: #f4f3ee; overflow-wrap: anywhere; }
.bn-files em { font: 500 10px/1 var(--body); font-style: normal; color: #8f8f89; }
.bn-files .is-on { transform: translateY(-8px); border-color: rgba(var(--accent-rgb), .75); background: linear-gradient(160deg, rgba(var(--accent-rgb), .38), rgba(var(--accent-rgb), .12)); box-shadow: 0 16px 34px -12px rgba(var(--accent-rgb), .6); }
.bn-files .is-on::before { border-color: rgba(var(--accent-rgb), .75); background: rgba(var(--accent-rgb), .4); }
.bento__card--system:hover .bn-files span:not(.is-on) { transform: translateY(-3px); }

/* 5 · chat */
.bn-chat { display: grid; gap: 8px; margin-top: auto; }
.bn-chat p { margin: 0; justify-self: start; max-width: 92%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #d6d5cf; }
.bn-chat .is-me { justify-self: end; border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, var(--yellow), var(--yellow)); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), .7); }
.bn-chat .is-me::after { content: " ✓"; }
.bento--glow .bento__card--support .bento__title { margin-top: 0; }
.bento--glow .bento__checks { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bento--glow .bento__checks li { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; font-size: 11.5px; color: #b4b4ae; }
.bento--glow .bento__checks li::before { content: none; }

/* 6 · CTA: luz dorada, a juego con el botón */
.bento--glow .bento__card--cta { background: #0c0c0c; }
.bento--glow .bento__card--cta::after { background: radial-gradient(80% 70% at 22% 118%, rgba(250, 185, 0, .6), rgba(var(--accent-rgb), .25) 42%, transparent 72%); opacity: .8; }
.bento--glow .bento__card--cta .bento__title { margin-top: 0; font-size: clamp(1.4rem, 1.9vw, 1.8rem); }

@media (prefers-reduced-motion: reduce) { .bn-steps .is-on i { animation: none; } }
@media (max-width: 700px) { .bn-files { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; } .bn-files span:nth-child(n+4) { display: none; } .bn-steps li { font-size: 10.5px; } }

.bn-files b { font-size: 10.5px; overflow-wrap: normal; word-break: normal; -webkit-hyphens: auto; hyphens: auto; }
.bn-files span { padding: 9px 8px; }
/* «16» + «лет в брендинге»: el texto se apoya en la base de la cifra. */
.bento--glow .bento__num { align-items: flex-end; }
.bento--glow .bento__num span { padding-bottom: .62em; line-height: 1.2; }

/* Todo el brillo de las tarjetas usa el rojo de la marca; la tarjeta de contacto conserva el dorado del botón. */
/* Proceso: una sola línea fina y continua con un nodo rojo por etapa (igual que los pasos de las tarjetas). */
.process { gap: 0; }
.process li { position: relative; padding: 26px var(--gap) 0 0; border-top: 1px solid var(--line-light); }
.process li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 2px solid var(--yellow); transition: background-color .25s ease, box-shadow .25s ease; }
.process li:hover::before { background: var(--yellow); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .14); }
.process li:last-child { padding-right: 0; }
@media (max-width: 1000px) { .process { row-gap: 32px; } }
/* Proceso: cifras grandes en Nunito fino; nodo más grande y brillante al pasar el ratón. */
.process span { font: 300 clamp(2.2rem, 3.2vw, 3rem)/1 "Nunito Sans", var(--display); letter-spacing: -.02em; color: var(--yellow); transition: text-shadow .3s ease; }
.process li { gap: 12px; }
.process li::before { transition: transform .3s cubic-bezier(.22, 1, .36, 1), background-color .25s ease, box-shadow .3s ease; }
.process li:hover::before { transform: scale(1.9); background: var(--yellow); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18), 0 0 18px 6px rgba(var(--accent-rgb), .6); }
.process li:hover span { text-shadow: 0 0 22px rgba(var(--accent-rgb), .45); }

@media (max-width: 1080px) { .process { row-gap: 40px; } }
/* Telegram: botón «ghost» (sin relleno) con el icono en azul Telegram; se adapta a fondo claro u oscuro. */
.btn.btn--telegram, .btn.btn--telegram.contact-channel__button { background: transparent; color: inherit; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 38%, transparent); }
.btn.btn--telegram .ico { color: #229ed9; }
.btn.btn--telegram:is(:hover, :focus-visible) { background: rgba(34, 158, 217, .1); border-color: #229ed9; color: inherit; }
.cta-dark .btn--telegram, .mid-cta .btn--telegram { color: #fff; }

/* Bloque de cierre: el icono de copiar va pegado a su dato, no flotando entre los dos. */
.cta-dark__contacts { gap: 10px 6px; }
.cta-dark__contacts .copy-btn { margin-right: 22px; }
.cta-dark__contacts .copy-btn:last-child { margin-right: 0; }
/* Tarjetas 01–04 de servicios: mismo estilo que las tarjetas negras (textura de puntos + luz roja desde abajo). */
.svc__visual, .svc__visual--4 { isolation: isolate; align-content: space-between; border-radius: 28px; background: #0c0c0c; color: #f4f3ee; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 50px -36px rgba(17, 17, 17, .55); }
.svc__visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 14px 14px; -webkit-mask-image: radial-gradient(120% 90% at 50% 100%, #000, transparent 70%); mask-image: radial-gradient(120% 90% at 50% 100%, #000, transparent 70%); }
.svc__visual::after, .svc__visual--2::after, .svc__visual--3::after, .svc__visual--4::after { z-index: -2; mix-blend-mode: normal; background: radial-gradient(85% 70% at 50% 112%, var(--yellow) 0%, rgba(var(--accent-rgb), .75) 30%, rgba(120, 20, 10, .35) 55%, transparent 76%); opacity: .8; transition: opacity .5s ease; }
.svc__visual:hover::after { opacity: 1; }
.svc__visual:hover { transform: translateY(-4px); }
.svc__visual-num { font: 800 clamp(4rem, 7vw, 6.4rem)/.86 var(--display); letter-spacing: -.05em; color: #fff; text-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.svc__visual-text { opacity: 1; color: rgba(255, 255, 255, .82); font-size: 14.5px; line-height: 1.55; }

/* ===== Calculadora (/calculator/) ===== */
.calc-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.calc-presets > span { font-size: 13px; color: var(--ink-muted); margin-right: 4px; }
.calc-presets .chip.is-on { background: var(--black); border-color: var(--black); color: #fff; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.calc__steps { display: grid; gap: clamp(32px, 4vw, 52px); }
.calc-step { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.calc-step legend { display: flex; align-items: baseline; gap: 12px; padding: 0; font: 800 clamp(1.4rem, 2vw, 1.8rem)/1.15 var(--display); }
.calc-step legend span { font: 300 1.1em/1 "Nunito Sans", var(--display); color: var(--yellow); }
.calc-step__lead { margin: 0 0 8px; color: var(--ink-muted); font-size: 15px; }
.calc-opt { position: relative; border: 1.5px solid var(--line-light); border-radius: 16px; background: var(--white); transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease; }
.calc-opt:hover { border-color: rgba(31, 31, 31, .35); }
.calc-opt:has(input:checked) { border-color: var(--black); box-shadow: 0 14px 30px -22px rgba(17, 17, 17, .5); }
.calc-opt:has(input:focus-visible) { outline: 2px solid var(--yellow); outline-offset: 2px; }
.calc-opt__main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; cursor: pointer; }
.calc-opt__main input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid rgba(31, 31, 31, .4); border-radius: 50%; background: var(--white); display: grid; place-items: center; transition: border-color .2s ease, background-color .2s ease; }
.calc-opt__main input[type="checkbox"] { border-radius: 6px; }
.calc-opt__main input::after { content: ""; width: 10px; height: 10px; border-radius: inherit; background: var(--yellow); transform: scale(0); transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
.calc-opt__main input[type="checkbox"]::after { border-radius: 3px; }
.calc-opt__main input:checked { border-color: var(--yellow); }
.calc-opt__main input:checked::after { transform: scale(1); }
.calc-opt__text { display: grid; gap: 3px; }
.calc-opt__text b { font: 700 1.02rem/1.25 var(--display); }
.calc-opt__text em { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: var(--on-accent); font: 700 10px/1.6 var(--body); font-style: normal; text-transform: uppercase; letter-spacing: .04em; vertical-align: 2px; }
.calc-opt__text small { color: var(--ink-muted); font-size: 14px; line-height: 1.45; }
.calc-opt__price { display: grid; gap: 2px; justify-items: end; text-align: right; white-space: nowrap; }
.calc-opt__price b { font: 700 1rem/1.25 var(--display); }
.calc-opt__price small { color: var(--ink-muted); font-size: 12.5px; }
.calc-opt__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 0 18px 14px 52px; }
.calc-info { padding: 0; border: 0; background: none; color: var(--ink); font: 600 13px var(--body); text-decoration: underline; text-decoration-color: rgba(31, 31, 31, .3); text-underline-offset: 3px; cursor: pointer; }
.calc-info:hover { color: var(--yellow); text-decoration-color: currentColor; }
.calc-hours { display: none; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.calc-opt:has(input[data-rate]:checked) .calc-hours { display: inline-flex; }
.calc-hours span { margin-right: 4px; }
.calc-hours button { width: 30px; height: 30px; border: 1px solid var(--line-light); border-radius: 50%; background: var(--white); font-size: 16px; line-height: 1; cursor: pointer; }
.calc-hours button:hover { border-color: var(--black); }
.calc-hours input { width: 52px; height: 30px; border: 1px solid var(--line-light); border-radius: 8px; text-align: center; font: 700 14px var(--body); -moz-appearance: textfield; }
.calc-hours input::-webkit-outer-spin-button, .calc-hours input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-tip { margin: 4px 0 0; padding: 12px 14px; border-left: 3px solid var(--yellow); border-radius: 0 10px 10px 0; background: var(--yellow-soft); font-size: 14px; }
.calc-tip__act { margin-left: 6px; padding: 0; border: 0; background: none; font: 700 14px var(--body); color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Resumen fijo */
.calc-sum { position: sticky; top: 104px; display: grid; gap: 14px; padding: 26px; border-radius: 24px; background: #0c0c0c; color: #f4f3ee; isolation: isolate; overflow: hidden; }
.calc-sum::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 55% at 50% 116%, rgba(var(--accent-rgb), .55), transparent 70%); pointer-events: none; }
.calc-sum__title { margin: 0; font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: #8f8f89; }
.calc-sum__lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.calc-sum__lines li { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: #d6d5cf; }
.calc-sum__lines li b { white-space: nowrap; color: #fff; font-weight: 600; }
.calc-sum__empty { margin: 0; color: #8f8f89; font-size: 14px; }
.calc-sum__total, .calc-sum__term { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.calc-sum__total span, .calc-sum__term span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8f8f89; }
.calc-sum__total b { font: 800 clamp(1.7rem, 2.4vw, 2.2rem)/1 var(--display); letter-spacing: -.02em; color: #fff; }
.calc-sum__term b { font: 600 1rem var(--display); color: #fff; text-align: right; }
.calc-sum__notes { margin: 0; font-size: 13px; color: #c9c8c2; }
.calc-sum .btn--telegram { color: #fff; }
.calc-sum__copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px; border: 0; background: none; color: #b4b4ae; font: 600 13px var(--body); cursor: pointer; position: relative; }
.calc-sum__copy:hover { color: #fff; }
.calc-sum__copy.copy-btn, .calc-sum__copy { width: auto; height: auto; opacity: 1; }
.calc-sum__copy.is-copied span::after { content: " ✓"; }
.calc-sum__fine { margin: 0; font-size: 12px; line-height: 1.5; color: #8f8f89; }
.calc-sum b.is-bump { animation: calc-bump .35s cubic-bezier(.22, 1, .36, 1); }
@keyframes calc-bump { 40% { transform: scale(1.06); } }

/* Ventana «Что входит» */
.calc-dialog { width: min(520px, calc(100vw - 32px)); max-height: min(86vh, 720px); padding: 32px; border: 0; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); overflow: auto; }
.calc-dialog::backdrop { background: rgba(12, 12, 12, .55); backdrop-filter: blur(3px); }
.calc-dialog[open] { animation: calc-in .28s cubic-bezier(.22, 1, .36, 1); }
@keyframes calc-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.calc-dialog__close { position: absolute; right: 14px; top: 12px; margin: 0; }
.calc-dialog__close button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--yellow-soft); font-size: 22px; line-height: 1; cursor: pointer; }
.calc-dialog__kicker { margin: 0 0 6px; font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.calc-dialog h2 { margin: 0; font: 800 1.7rem/1.15 var(--display); }
.calc-dialog__price { margin: 10px 0 0; font-size: 1rem; }
.calc-dialog__hint { margin: 10px 0 0; color: var(--ink-muted); }
.calc-dialog h3 { margin: 22px 0 6px; font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.calc-dialog ul { margin: 0; padding: 0; list-style: none; }
.calc-dialog li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line-light); }
.calc-dialog li:last-child { border-bottom: 0; }
.calc-dialog li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.calc-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Barra inferior en móvil */
.calc-bar { display: none; }
@media (max-width: 960px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-sum { position: static; }
  .calc-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 18px; background: #0c0c0c; color: #fff; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); transition: transform .3s ease, opacity .3s ease; }
  .calc-bar.is-hidden { transform: translateY(140%); opacity: 0; }
  .calc-bar div { display: grid; }
  .calc-bar small { font-size: 11px; color: #9a9a94; }
  .calc-bar b { font: 800 1.15rem/1.2 var(--display); }
  .calc-opt__main { grid-template-columns: auto minmax(0, 1fr); }
  .calc-opt__price { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; gap: 8px; align-items: baseline; }
  .calc-section { padding-bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) { .calc-dialog[open], .calc-sum b.is-bump { animation: none; } }
.calc-sum__total { flex-direction: column; align-items: flex-start; gap: 6px; }
.calc-sum__total b { white-space: nowrap; }

/* Calculadora: nivel de complejidad de cada opción (4 barras). */
.calc-level { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11.5px; color: var(--ink-muted); }
.calc-level i { font-style: normal; margin-right: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.calc-level u { width: 16px; height: 5px; border-radius: 3px; background: var(--line-light); text-decoration: none; }
.calc-level u.is-on { background: var(--black); }
.calc-opt:has(input:checked) .calc-level u.is-on { background: var(--yellow); }
.calc-level em { margin-left: 6px; padding: 0; background: none; color: var(--ink-muted); font: 500 11.5px var(--body); font-style: normal; text-transform: none; letter-spacing: 0; }

/* Volumen de trabajo: bajo el precio, en la esquina derecha. */
.calc-opt__price .calc-level { margin-top: 4px; justify-content: flex-end; }
.calc-opt__price .calc-level em { margin-left: 6px; }
@media (max-width: 960px) { .calc-opt__price { grid-auto-flow: row; justify-items: start; } .calc-opt__price .calc-level { justify-content: flex-start; } }

/* Cabecera de página: si ya hay migas de pan, no se repite la etiqueta con el punto (ahorra altura). */
.crumbs + .eyebrow { display: none; }
/* Cabecera de página en dos columnas: título a la izquierda, entradilla a la derecha, alineadas arriba (el contenido sube). */
@media (min-width: 961px) {
  .page-head:not(.page-head--404) > .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .page-head:not(.page-head--404) > .wrap > * { grid-column: 1 / -1; }
  .page-head:not(.page-head--404) > .wrap > .page-title { grid-column: 1; margin-bottom: 0; max-width: none; }
  .page-head:not(.page-head--404) > .wrap > .page-title + .lede { grid-column: 2; margin: .35em 0 0; max-width: none; }
}

/* Calculadora: «Какая у вас задача?» como opciones con círculo (se ve qué está elegido) + reinicio. */
.calc-presets > span { font: 700 14px var(--body); color: var(--ink); margin-right: 6px; }
.calc-preset { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 12px; border: 1.5px solid var(--line-light); border-radius: 999px; background: var(--white); font: 600 13.5px var(--body); color: var(--ink); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.calc-preset i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(31, 31, 31, .4); display: grid; place-items: center; transition: border-color .2s ease; }
.calc-preset i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); transform: scale(0); transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
.calc-preset:hover { border-color: rgba(31, 31, 31, .5); }
.calc-preset.is-on { border-color: var(--black); }
.calc-preset.is-on i { border-color: var(--yellow); }
.calc-preset.is-on i::after { transform: scale(1); }
.calc-preset:focus-visible, .calc-reset:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.calc-reset { margin-left: 6px; padding: 0; border: 0; background: none; font: 600 13.5px var(--body); color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.calc-reset:hover { color: var(--yellow); }
.calc-reset[hidden] { display: none; }

/* «Сбросить выбор»: siempre visible; atenuado cuando no hay nada que reiniciar. */
.calc-reset { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1.5px dashed rgba(31, 31, 31, .35); border-radius: 999px; text-decoration: none; color: var(--ink); }
.calc-reset:hover:not(:disabled) { border-color: var(--yellow); color: var(--yellow); }
.calc-reset:disabled { opacity: .4; cursor: default; }

/* Etiqueta negra («доступный») junto a la roja («рекомендуемый»). */
.calc-opt__text em.is-dark { background: var(--black); color: #fff; }

/* «доступный»: etiqueta amarilla con letra negra (el amarillo del botón dorado). */
.calc-opt__text em.is-dark { background: #fab900; color: #1f1f1f; }

/* Calculadora: interruptor «С ИИ-агентом» dentro de la tarjeta. */
.calc-opt__more { align-items: flex-start; }
.calc-switch { order: 2; flex-basis: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--yellow-soft); cursor: pointer; }
.calc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.calc-switch i { position: relative; width: 40px; height: 24px; margin-top: 1px; border-radius: 999px; background: rgba(31, 31, 31, .25); transition: background-color .25s ease; }
.calc-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.calc-switch input:checked + i { background: var(--yellow); }
.calc-switch input:checked + i::after { transform: translateX(16px); }
.calc-switch input:focus-visible + i { outline: 2px solid var(--yellow); outline-offset: 2px; }
.calc-switch span { display: grid; gap: 2px; }
.calc-switch b { font: 700 14px var(--display); }
.calc-switch em { justify-self: start; padding: 1px 8px; border-radius: 999px; background: var(--black); color: #fff; font: 700 11px/1.7 var(--body); font-style: normal; }
.calc-switch span { grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.calc-switch small { grid-column: 1 / -1; color: var(--ink-muted); font-size: 13px; line-height: 1.4; }
.calc-opt.is-ai [data-calc-price] { color: var(--yellow); }

/* Botón del resumen cuando lleva al brief: sin icono de calendario. */
.calc-sum .btn.is-brief .ico { display: none; }

/* Contacto: cuatro tarjetas (videollamada · Telegram · teléfono y e-mail · brief). */
.contact-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-cards .btn--outline.contact-channel__button { background: transparent; border-color: rgba(31, 31, 31, .4); color: var(--ink); }
@media (max-width: 1200px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
/* Contacto en 4 columnas: los botones nunca se salen de su tarjeta (el texto baja de línea si hace falta). */
.contact-cards .contact-channel__button { max-width: 100%; height: auto; min-height: 44px; padding-block: 10px; white-space: normal; text-align: left; line-height: 1.25; }
.contact-cards .contact-channel__button .button-roll { white-space: normal; }

/* Resumen: «Заполнить бриф» como acción aparte, compatible con la llamada gratuita o la consulta pagada. */
.calc-sum .calc-sum__brief { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.calc-sum .calc-sum__brief:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.calc-sum__brief-note { margin: -4px 0 0; font-size: 12.5px; line-height: 1.45; color: #9a9a94; }

/* Resumen: Telegram como enlace discreto, no como tercer botón. */
.calc-sum__alt { margin: 0; font-size: 13px; color: #9a9a94; text-align: center; }
.calc-sum__alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.calc-sum__alt a:hover { text-decoration-color: #fff; }

/* Resumen: «Как продолжить?» — dos caminos excluyentes (llamada o brief) y un único botón. */
.calc-next { margin: 4px 0 0; padding: 0; border: 0; display: grid; gap: 8px; }
.calc-next legend { padding: 0 0 8px; font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: #8f8f89; }
.calc-next__opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.calc-next__opt:hover { border-color: rgba(255, 255, 255, .35); }
.calc-next__opt:has(input:checked) { border-color: var(--yellow); background: rgba(var(--accent-rgb), .1); }
.calc-next__opt input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%; display: grid; place-items: center; }
.calc-next__opt input::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); transform: scale(0); transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
.calc-next__opt input:checked { border-color: var(--yellow); }
.calc-next__opt input:checked::after { transform: scale(1); }
.calc-next__opt input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.calc-next__opt span { display: grid; gap: 3px; }
.calc-next__opt b { font: 700 14px var(--display); color: #fff; }
.calc-next__opt small { font-size: 12.5px; line-height: 1.4; color: #a9a9a3; }

/* «Как продолжить?» con la consulta pagada y su selector de horas (sobre fondo oscuro). */
.calc-next__opt--paid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.calc-next__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; }
.calc-next__row input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%; display: grid; place-items: center; }
.calc-next__row input::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); transform: scale(0); transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
.calc-next__row input:checked { border-color: var(--yellow); }
.calc-next__row input:checked::after { transform: scale(1); }
.calc-next__row span { display: grid; gap: 3px; }
.calc-next__row b { font: 700 14px var(--display); color: #fff; }
.calc-next__row small { font-size: 12.5px; line-height: 1.4; color: #a9a9a3; }
.calc-hours--dark { display: none; margin-left: 28px; color: #a9a9a3; }
.calc-next__opt--paid:has(input[value="paid"]:checked) .calc-hours--dark { display: inline-flex; }
.calc-hours--dark button { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.calc-hours--dark input { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.calc-sum__lines li.is-separate { padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, .18); color: #a9a9a3; }
/* «Gracias» tras Telegram */
.calc-thanks { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.calc-thanks p { margin: 0; font-size: 14px; color: #d6d5cf; }
.calc-thanks__title { font: 800 1.25rem/1.2 var(--display) !important; color: #fff !important; }
.calc-thanks__brief { margin-top: 6px !important; color: #a9a9a3 !important; font-size: 13px !important; }
.calc-sum .calc-thanks__btn { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.calc-thanks__back { justify-self: start; padding: 0; border: 0; background: none; color: #a9a9a3; font: 600 13px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.calc.is-thanks .calc-next, .calc.is-thanks [data-calc-book] { display: none; }

/* Reserva confirmada: tarjeta del brief opcional. */
.booking-brief { display: flex; flex-direction: column; gap: 12px; }
.booking-brief .btn { margin-top: auto; align-self: flex-start; }

/* «Gracias»: el brief como tarjeta de ayuda opcional, clara y separada. */
.calc-help { display: grid; gap: 8px; margin-top: 6px; padding: 16px; border-radius: 14px; background: #fff; color: var(--ink); }
.calc-help p { margin: 0; color: inherit; }
.calc-help__kicker { font: 700 11px var(--body) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted) !important; }
.calc-help__title { font: 800 1.05rem/1.2 var(--display) !important; color: var(--ink) !important; }
.calc-help__text { font-size: 13.5px !important; line-height: 1.5; color: var(--ink-muted) !important; }
.calc-help__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; padding: 0; list-style: none; }
.calc-help__facts li { padding: 4px 10px; border-radius: 999px; background: var(--yellow-soft); font-size: 12px; font-weight: 600; color: var(--ink); }
.calc-sum .calc-help__btn { background: var(--black); border-color: var(--black); color: #fff; }
.calc-sum .calc-help__btn:hover { background: #333; border-color: #333; }

/* Color de texto principal (lo usan calculadora, contacto y tarjetas nuevas). */
:root { --ink: #1f1f1f; }
.calc-thanks[hidden], .calc-sum__empty[hidden], .calc-sum__notes[hidden], .calc-tip[hidden] { display: none; }

/* Resumen: el bloque de precio y plazo como una tarjeta propia. */
.calc-sum__total { margin-top: 4px; padding: 18px 18px 14px; border: 0; border-radius: 16px 16px 0 0; background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.calc-sum__term { margin-top: -14px; padding: 12px 18px 16px; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0 0 16px 16px; background: rgba(255, 255, 255, .07); }
.calc-sum__total b { font-size: clamp(2rem, 2.8vw, 2.5rem); }
/* Etiqueta «По желанию» de la tarjeta del brief: legible, como pastilla. */
.calc-help__kicker { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--yellow-soft); font: 700 12px/1.4 var(--body) !important; letter-spacing: 0; text-transform: none; color: var(--ink) !important; }

/* /prices/: tabla compacta con todos los precios bajo la calculadora. */
.price-table { margin-top: 28px; }
.price-table__group { margin: 0 0 6px; font: 800 1.1rem var(--display); }
.price-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .8fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.price-row__name { display: grid; gap: 3px; }
.price-row__name b { font: 700 1rem var(--display); }
.price-row__name em { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: var(--on-accent); font: 700 10px/1.6 var(--body); font-style: normal; text-transform: uppercase; letter-spacing: .04em; vertical-align: 2px; }
.price-row__name em.is-dark { background: #fab900; color: #1f1f1f; }
.price-row__name small { color: var(--ink-muted); font-size: 13.5px; }
.price-row__price { display: grid; gap: 2px; }
.price-row__price b { font: 700 1rem var(--display); white-space: nowrap; }
.price-row__price small { font-size: 12px; color: var(--ink-muted); }
.price-row__term { font-size: 14px; color: var(--ink-muted); }
.price-row__act { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.price-row__pick { height: 34px; padding: 0 16px; border: 1.5px solid var(--black); border-radius: 999px; background: transparent; font: 700 12px var(--body); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); cursor: pointer; }
.price-row__pick:hover { background: var(--black); color: #fff; }
.price-table-section .conditions { margin-top: 48px; }
.calc-opt.is-flash { box-shadow: 0 0 0 3px var(--yellow); }
@media (max-width: 860px) { .price-row { grid-template-columns: minmax(0, 1fr) auto; } .price-row__name { grid-column: 1 / -1; } .price-row__term { grid-column: 1; } .price-row__act { grid-column: 1 / -1; } }
/* /prices/: «Условия работы» como letra pequeña al final. */
.price-table-section .conditions { margin-top: 56px; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line-light); border-radius: 0; background: none; box-shadow: none; }
.price-table-section .conditions .h3x { margin: 0 0 10px; font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.price-table-section .conditions ul { display: grid; gap: 6px; margin: 0; padding-left: 16px; columns: 2; column-gap: 40px; }
.price-table-section .conditions li { break-inside: avoid; margin-bottom: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-muted); }
.price-table-section .conditions li::before { content: none; }
@media (max-width: 760px) { .price-table-section .conditions ul { columns: 1; } }

/* /prices/: tabla simplificada plegable al final (interruptor «Показать простую таблицу цен»). */
.price-simple { border-top: 1px solid var(--line-light); }
.price-simple summary { display: inline-flex; align-items: center; gap: 12px; padding: 22px 0 6px; list-style: none; cursor: pointer; font: 700 14px var(--body); color: var(--ink); }
.price-simple summary::-webkit-details-marker { display: none; }
.price-simple summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 6px; }
.price-simple__switch { position: relative; width: 40px; height: 24px; border-radius: 999px; background: rgba(31, 31, 31, .25); transition: background-color .25s ease; }
.price-simple__switch i { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.price-simple[open] .price-simple__switch { background: var(--yellow); }
.price-simple[open] .price-simple__switch i { transform: translateX(16px); }
.price-simple__table { width: 100%; max-width: 820px; margin: 18px 0 8px; border-collapse: collapse; font-size: 14.5px; animation: calc-in .3s cubic-bezier(.22, 1, .36, 1); }
.price-simple__table thead th { padding: 8px 12px 8px 0; text-align: left; font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--line-light); }
.price-simple__group th { padding: 18px 12px 6px 0; text-align: left; font: 800 14px var(--display); }
.price-simple__table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.price-simple__table td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.price-simple__table td:nth-child(3) { color: var(--ink-muted); }
.price-simple__table small { font-weight: 500; color: var(--ink-muted); }
.price-table-section .conditions { margin-top: 32px; }
.price-simple__table { max-width: 920px; }
.price-simple__more { text-align: right; white-space: nowrap; }
/* Tabla simple y condiciones: centradas, en una columna de lectura. */
.price-table-section .wrap { max-width: 920px; }
.price-simple { text-align: center; }
.price-simple summary { justify-content: center; }
.price-simple__table { margin-inline: auto; text-align: left; }
.price-table-section .conditions { text-align: left; }
/* Móvil: la tabla pasa a filas apiladas, sin scroll horizontal. */
@media (max-width: 640px) {
  .price-simple__table thead { display: none; }
  .price-simple__table, .price-simple__table tbody, .price-simple__table tr, .price-simple__table td, .price-simple__table th { display: block; width: 100%; }
  .price-simple__table tr:not(.price-simple__group) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-light); }
  .price-simple__table td { padding: 0; border: 0; }
  .price-simple__table td:nth-child(1) { grid-column: 1; font-weight: 600; }
  .price-simple__table td:nth-child(2) { grid-column: 2; text-align: right; }
  .price-simple__table td:nth-child(3) { grid-column: 1; font-size: 13px; }
  .price-simple__more { grid-column: 2; grid-row: 2; text-align: right; }
  .price-simple__group th { padding-top: 20px; }
}
/* Calculadora en móvil: el resumen no se sale por la derecha y su rótulo no se agranda. */
.calc-sum { grid-template-columns: minmax(0, 1fr); }
.calc-sum > * { min-width: 0; }
.calc-sum .calc-sum__title { font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: #8f8f89; }
@media (max-width: 640px) {
  .calc-sum { padding: 20px 16px; border-radius: 20px; }
  .calc-sum__total, .calc-sum__term { padding-inline: 14px; }
  .calc-sum__term b { font-size: .92rem; }
  .calc-presets { gap: 6px; }
  .calc-preset { height: 36px; font-size: 13px; }
  .calc-opt__main { padding: 14px; gap: 12px; }
  .calc-opt__more { padding: 0 14px 12px 46px; }
  .calc-switch { padding: 10px 12px; }
}

/* La luz roja del resumen se queda dentro del resumen también en móvil (sin mancha rosa arriba). */
@media (max-width: 960px) { .calc-sum { position: relative; } }

/* /services/: «Что выбрать?» como bloque principal, agrupado por área. */
.choose { margin-top: 0; }
.choose__group { margin: 18px 0 0; padding-top: 4px; font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); scroll-margin-top: 110px; }
.choose__group + .choose__list { margin-top: 4px; }

body .choose .choose__group { font: 700 12px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }

/* /services/: tarjetas por área; cada fila de precio es un enlace (mismos datos que /prices/). */
.areas .area { scroll-margin-top: 110px; }
.price-list--links li { display: block; padding: 0; }
.price-list--links a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: center; padding: 14px 0; color: inherit; text-decoration: none; }
.price-list--links a > span { display: grid; gap: 2px; }
.price-list__name { font: 600 15px var(--body) !important; white-space: normal !important; }
.price-list--links small { font-size: 12.5px; color: var(--ink-muted); }
.price-list--links a > b { font-family: var(--display); white-space: nowrap; }
.price-list--links i { font-style: normal; color: var(--yellow); transition: transform .25s ease; }
.price-list--links a:hover i { transform: translateX(4px); }
.price-list--links a:hover .price-list__name { color: var(--yellow); }
.areas__help { display: grid; gap: 14px; justify-items: start; padding: 28px 0 0; }
.areas__help p { margin: 0; color: var(--ink-muted); max-width: 62ch; }
@media (max-width: 640px) { .price-list--links a { grid-template-columns: minmax(0, 1fr) auto; } .price-list--links a > b { grid-column: 1; } .price-list--links i { grid-column: 2; grid-row: 1 / span 2; } }

/* Hero: entradilla algo más pequeña y acceso a la consulta premium (de pago, se ve como tal). */
.hero--dark .hero__lede { font-size: clamp(.98rem, 1.15vw, 1.1rem); line-height: 1.6; }
.hero__premium { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px 10px 10px; border: 1px solid rgba(250, 185, 0, .35); border-radius: 14px; background: rgba(250, 185, 0, .06); color: #ededed; text-decoration: none; max-width: 34em; transition: border-color .25s ease, background-color .25s ease; }
.hero__premium:hover { border-color: #fab900; background: rgba(250, 185, 0, .12); }
.hero__premium-tag { flex: none; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, #fff2bf, #fab900); color: #1f1f1f; font: 800 11px var(--body); letter-spacing: .06em; text-transform: uppercase; }
.hero__premium-text { font-size: 13.5px; line-height: 1.45; color: rgba(237, 237, 237, .8); }
.hero__premium-text b { color: #fff; font-weight: 700; }
.hero__premium-go { flex: none; color: #fab900; transition: transform .25s ease; }
.hero__premium:hover .hero__premium-go { transform: translateX(4px); }

/* «Опыт»: solo dos caminos, gratis a la izquierda y de pago a la derecha. */
.start__band--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.start__band--two .start__path:first-child { border-left: 0; }
@media (max-width: 960px) { .start__band--two { grid-template-columns: minmax(0, 1fr); } .start__band--two .start__path:first-child { border-top: 0; } }
/* Hero: título más compacto; «фирменный стиль» en una sola línea. */
.nowrap { white-space: nowrap; }
body .hero--emblem h1 .nowrap { display: inline; color: inherit; }
@media (min-width: 861px) { body .hero--emblem h1 { line-height: .9; font-size: clamp(3rem, 5vw, 5rem); } }
/* Hero: «Премиум» redondeado como los botones y pegado a la parte baja del hero (≈28 px). */
.hero__premium { border-radius: 999px; padding: 8px 18px 8px 8px; }
@media (min-width: 1081px) {
  .hero--emblem { padding-bottom: 120px; }
  .hero--emblem .hero__premium { position: absolute; left: max(16px, calc((100% - var(--wrap)) / 2)); bottom: 28px; z-index: 2; margin: 0; }
}

/* «Премиум» en escritorio: anclado a 28 px de la parte baja del hero, alineado con el texto. */
.hero__premium-bar { display: none; }
@media (min-width: 1081px) {
  .hero--emblem .hero__premium--inline { display: none; }
  .hero--emblem .hero__premium-bar { display: block; position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; pointer-events: none; }
  .hero--emblem .hero__premium--bar { position: static; pointer-events: auto; }
}
/* Hero de portada: ocupa exactamente la altura inicial del navegador; el «Премиум» queda siempre visible abajo. */
@media (min-width: 1081px) {
  .hero--emblem { padding-bottom: 0; }
  .hero--emblem .hero__grid { min-height: 100svh; }
}
/* «Премиум»: la etiqueta ocupa toda la altura interior → mismo espacio arriba, abajo y a la izquierda (cápsula dentro de cápsula). */
.hero__premium { align-items: stretch; padding: 6px 18px 6px 6px; }
.hero__premium-tag { display: inline-flex; align-items: center; padding: 0 14px; }
.hero__premium-text, .hero__premium-go { align-self: center; }

/* Cabecera: teléfono y e-mail junto al botón (solo en pantallas anchas). */
.header-contacts { display: none; }
@media (min-width: 1240px) {
  .header-contacts { display: grid; justify-items: end; gap: 1px; margin-left: auto; margin-right: 18px; line-height: 1.25; }
  .header-contacts a { color: var(--ink); text-decoration: none; font-size: 13px; white-space: nowrap; }
  .header-contacts a:first-child { font: 700 14px var(--display); }
  .header-contacts a:hover { color: var(--yellow); }
  body.has-dark-hero .site-header:not(.is-scrolled) .header-contacts a { color: #fff; }
  body.has-dark-hero .site-header:not(.is-scrolled) .header-contacts a:last-child { color: rgba(255, 255, 255, .7); }
}

/* Cabecera: icono gris de copiar junto al teléfono y al e-mail. */
@media (min-width: 1240px) {
  .header-contacts__row { display: inline-flex; align-items: center; gap: 2px; }
  .header-contacts .header-contacts__phone { font: 700 14px var(--display); }
  .header-contacts .header-contacts__mail { font: 400 13px var(--body); }
  .header-contacts .copy-btn { width: 22px; height: 22px; border-radius: 6px; }
  .header-contacts .copy-btn .ico { width: 14px; height: 14px; }
  .header-contacts .copy-btn::after { top: calc(100% + 8px); bottom: auto; }
  body.has-dark-hero .site-header:not(.is-scrolled) .header-contacts .copy-btn { color: #fff; }
}

/* Home: «Какая у вас задача?» — fila de tarjetas en escritorio, deslizable en móvil. */
.tasks { padding: clamp(36px, 4vw, 56px) 0; background: var(--white); border-bottom: 1px solid var(--line-light); }
.tasks__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
body .tasks .tasks__title { margin: 0; font: 800 clamp(1.3rem, 1.8vw, 1.6rem)/1.2 var(--display); }
.tasks__all { font: 700 14px var(--body); color: var(--ink); text-decoration: none; white-space: nowrap; }
.tasks__all:hover { color: var(--yellow); }
.tasks__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.task { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 14px; height: 100%; padding: 18px 18px 16px; border: 1.5px solid var(--line-light); border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease; }
.task:hover { border-color: var(--black); transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(17, 17, 17, .5); }
.task__need { font: 600 15px/1.35 var(--body); }
.task__answer { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line-light); }
.task__answer b { font: 700 14px var(--display); }
.task__answer small { font-size: 13px; color: var(--ink-muted); }
.task__go { position: absolute; right: 16px; bottom: 16px; color: var(--yellow); transition: transform .25s ease; }
.task:hover .task__go { transform: translateX(3px); }
@media (max-width: 1080px) {
  .tasks__list { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(230px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-right: calc(-1 * (100vw - var(--wrap)) / 2); padding-right: calc((100vw - var(--wrap)) / 2); scrollbar-width: none; }
  .tasks__list::-webkit-scrollbar { display: none; }
  .tasks__list li { scroll-snap-align: start; }
}
/* Tarjetas deslizables: llegan al borde de la pantalla sin crear scroll lateral en la página. */
@media (max-width: 1080px) { .tasks__list { margin-right: -32px; padding-right: 32px; } }
@media (max-width: 860px) { .tasks__list { margin-right: -16px; padding-right: 16px; } }
.tasks { overflow-x: clip; }

/* Home: «С чем вы пришли?» como diálogo — sin precios ni cajas. */
.tasks--dialog { padding: clamp(40px, 5vw, 72px) 0; }
.dialog { margin: 0; padding: 0; list-style: none; display: grid; }
.dialog__pair { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 8px 40px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-light); }
.dialog__pair:last-child { border-bottom: 1px solid var(--line-light); }
.dialog__you, .dialog__me { margin: 0; display: grid; gap: 4px; }
.dialog__who { font: 700 11px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.dialog__you { font: 700 clamp(1rem, 1.25vw, 1.15rem)/1.35 var(--display); color: var(--ink); }
.dialog__you::before { content: none; }
.dialog__me { font-size: 15.5px; line-height: 1.55; color: var(--ink-muted); }
.dialog__me .dialog__who { color: var(--yellow); }
.dialog__me a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 1px solid currentColor; }
.dialog__me a:hover { color: var(--yellow); }
@media (max-width: 760px) { .dialog__pair { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 0; } .dialog__me { padding-left: 14px; border-left: 2px solid var(--yellow); } }

/* «Опыт»: tres frases de clientes sobre lo que aporta la experiencia. */
.xp-quotes { margin: 0 0 clamp(28px, 3.4vw, 44px); }
.xp-quotes__lead { margin: 0 0 14px; font-size: 14px; color: rgba(237, 237, 237, .6); }
.xp-quotes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.xp-quotes__list li { display: grid; gap: 8px; align-content: start; padding: 18px 24px 4px 0; }
.xp-quotes__list li + li { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.xp-quotes q { font: 700 clamp(1.05rem, 1.5vw, 1.3rem)/1.3 var(--display); color: #fff; quotes: "«" "»"; }
.xp-quotes span { font-size: 12.5px; color: rgba(237, 237, 237, .55); }
@media (max-width: 760px) { .xp-quotes__list { grid-template-columns: minmax(0, 1fr); } .xp-quotes__list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); } }
.dialog__me a { justify-self: start; margin-top: 2px; }

/* «Премиум» compacto: una línea en escritorio; en móvil la etiqueta no se estira y nada se sale por la derecha. */
.hero__premium { max-width: 100%; box-sizing: border-box; }
.hero__premium-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1080px) {
  .hero__premium { align-items: center; padding: 6px 14px 6px 6px; gap: 10px; }
  .hero__premium-tag { align-self: stretch; padding: 0 12px; font-size: 10.5px; }
  .hero__premium-text { white-space: normal; font-size: 13px; }
}

/* «С чем вы пришли?»: 4 columnas, cada una con dos burbujas de chat (cliente → Денис). */
.chat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.chat__pair { display: grid; gap: 8px; align-content: start; }
.chat__bubble { margin: 0; padding: 12px 14px; font-size: 14.5px; line-height: 1.45; }
.chat__bubble--you { justify-self: start; max-width: 92%; border-radius: 16px 16px 16px 4px; background: var(--paper); border: 1px solid var(--line-light); font-weight: 600; color: var(--ink); }
.chat__bubble--me { justify-self: end; display: grid; gap: 8px; max-width: 92%; border-radius: 16px 16px 4px 16px; background: var(--black); color: rgba(255, 255, 255, .82); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.chat__bubble--me b { font: 700 13px var(--body); color: #fff; }
.chat__bubble--me:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(17, 17, 17, .6); }
.chat__bubble--me:hover b { color: var(--yellow); }
@media (max-width: 1080px) {
  .chat { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(250px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -32px; padding-right: 32px; padding-bottom: 6px; scrollbar-width: none; }
  .chat::-webkit-scrollbar { display: none; }
  .chat__pair { scroll-snap-align: start; }
}
@media (max-width: 860px) { .chat { margin-right: -16px; padding-right: 16px; } }
/* «С чем вы пришли?» minimalista: sin cajas; la frase del cliente lleva solo una línea inferior con «punta» de bocadillo. */
.chat { gap: clamp(20px, 2.6vw, 40px); }
.chat__pair { gap: 18px; }
.chat__bubble { padding: 0; }
.chat__bubble--you { position: relative; justify-self: stretch; max-width: none; padding: 0 0 12px; border: 0; border-bottom: 1.5px solid var(--black); border-radius: 0; background: none; font: 700 clamp(1rem, 1.2vw, 1.1rem)/1.35 var(--display); }
.chat__bubble--you::after { content: ""; position: absolute; left: 18px; bottom: -8px; width: 13px; height: 13px; background: var(--white); border-right: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black); transform: skewX(40deg) rotate(45deg); transform: rotate(45deg); }
.chat__bubble--me { justify-self: stretch; max-width: none; padding: 4px 0 0; border-radius: 0; background: none; color: var(--ink-muted); font-size: 14.5px; box-shadow: none; }
.chat__bubble--me b { color: var(--ink); justify-self: start; border-bottom: 1px solid currentColor; }
.chat__bubble--me:hover { transform: none; box-shadow: none; }
.chat__bubble--me:hover b { color: var(--yellow); }
/* Diálogo: líneas alineadas entre columnas */
@media (min-width: 1081px) {
  .chat { grid-template-rows: auto auto; row-gap: 18px; }
  .chat__pair { grid-row: span 2; grid-template-rows: subgrid; }
  .chat__bubble--you { align-self: end; }
}
.chat__bubble--you .hl { font-style: normal; color: var(--yellow); }
/* === Encabezado de sección único: punto rojo + título a la izquierda, texto a la derecha === */
main .head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); row-gap: 16px; align-items: end; margin: 0 0 clamp(36px, 4.5vw, 64px); }
main .head > div { min-width: 0; }
main .head .h2, .reviews__aside .h2, .cta-dark .h2 { margin: 0; max-width: 18ch; }
main .head .eyebrow, .reviews__aside .eyebrow, .cta-dark .eyebrow { display: flex; margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
main .head .lede { margin: 0; max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; color: #5f5f5f; }
.section--dark .head .lede, .xp .head .lede, .cta-dark .lede, .reviews__aside .lede { color: rgba(237, 237, 237, .66); }
.reviews__aside { gap: 0; }
.reviews__aside .lede { margin-top: 20px; }
.xp .head .h2 em { font-style: normal; }
@media (max-width: 860px) { main .head { grid-template-columns: minmax(0, 1fr); } }
main .showcase-section .head .lede { color: #5f5f5f; }
.reviews__aside .lede, .cta-dark .lede { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; }
@media (min-width: 1081px) {
  .chat__bubble--me { align-self: stretch; grid-template-rows: 1fr auto; }
  .chat__bubble--me b { align-self: end; padding-bottom: 2px; }
}
main .tasks--dialog .head { margin-bottom: clamp(20px, 2.4vw, 32px); }
.tasks--dialog { padding: clamp(36px, 4vw, 56px) 0; }
.h2 .hl, .xp .head .h2 em { font-style: normal; color: var(--yellow); }
.svc__row { padding: 20px 0 clamp(24px, 3vw, 40px); } .svc__meta { margin-bottom: 18px; }
/* Fondo: construcción de la firma, muy tenue */
.process-sign { position: relative; overflow: hidden; }
.process-sign::before { content: ""; position: absolute; left: 50%; top: clamp(24px, 4vw, 64px); width: min(1500px, 120%); aspect-ratio: 2000 / 493; transform: translateX(-50%); background: url("/assets/firma-construccion.webp") center / contain no-repeat; opacity: .55; pointer-events: none; }
.process-sign > .wrap { position: relative; }
.process-sign { padding-bottom: clamp(140px, 16vw, 260px); }
.process-sign::before { top: auto; bottom: clamp(8px, 1.5vw, 24px); width: min(1100px, 92%); opacity: .7; }
.process-sign { padding-bottom: clamp(200px, 22vw, 340px); }

/* === Contacto: formulario «письмо» === */
.letter-sec { padding-top: clamp(24px, 3vw, 40px); }
.letter-wrap { position: relative; max-width: 980px; }
.letter { position: relative; display: grid; gap: clamp(20px, 2.4vw, 30px); padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line-light); border-radius: 28px; background: var(--paper); box-shadow: 0 30px 60px -44px rgba(17, 17, 17, .45); transition: transform .7s cubic-bezier(.5, 0, .2, 1), opacity .55s ease; transform-origin: 70% 30%; }
.letter[hidden], .letter-thanks[hidden], .letter__err[hidden] { display: none; }
.letter__kicker { margin: 0; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.letter__text { display: grid; gap: clamp(12px, 1.6vw, 18px); }
.letter__line { margin: 0; font: 700 clamp(1.25rem, 2.5vw, 2rem)/1.35 var(--display); letter-spacing: -.01em; color: var(--ink); }
.letter__line label { cursor: text; }
.letter__blank { display: inline-block; max-width: 100%; vertical-align: baseline; }
.letter__blank input, .letter__area { font: inherit; letter-spacing: inherit; color: var(--yellow); border: 0; border-radius: 0; outline: 0; padding: 0 2px 2px; max-width: 100%; background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 0 2px no-repeat, linear-gradient(rgba(31, 31, 31, .28), rgba(31, 31, 31, .28)) left bottom / 100% 2px no-repeat; transition: background-size .35s ease; caret-color: var(--yellow); }
.letter__blank input { min-width: 8ch; field-sizing: content; }
.letter__blank input::placeholder, .letter__area::placeholder { color: rgba(31, 31, 31, .3); font-weight: 400; opacity: 1; }
.letter__blank input:focus, .letter__area:focus { background-size: 100% 2px, 100% 2px; }
.letter__area { display: block; width: 100%; min-height: 2.9em; resize: none; overflow: hidden; font: 400 clamp(1rem, 1.5vw, 1.2rem)/1.5 var(--body); color: var(--ink); padding: 4px 2px 8px; }
.letter__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lchip { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lchip input { position: absolute; opacity: 0; pointer-events: none; }
.lchip span { display: inline-flex; align-items: center; gap: 0; padding: 11px 20px; border: 1.5px solid rgba(31, 31, 31, .22); border-radius: 999px; background: var(--white); font: 700 15px var(--display); color: var(--ink); transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, gap .2s ease; user-select: none; }
.lchip span::before { content: ""; width: 0; height: 9px; border-left: 0 solid currentColor; border-bottom: 0 solid currentColor; transform: rotate(-45deg) translateY(-2px); opacity: 0; transition: width .2s ease, opacity .2s ease; }
.lchip:hover span { border-color: var(--black); }
.lchip:active span { transform: scale(.94); }
.lchip input:checked + span { gap: 9px; background: var(--black); border-color: var(--black); color: #fff; animation: chip-pop .32s ease; }
.lchip input:checked + span::before { width: 14px; height: 8px; border-left-width: 2.5px; border-bottom-width: 2.5px; opacity: 1; }
.lchip input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 3px; }
@keyframes chip-pop { 0% { transform: scale(.92); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
.letter__consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--ink-muted); cursor: pointer; }
.letter__consent input { position: absolute; opacity: 0; }
.letter__box { position: relative; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid rgba(31, 31, 31, .4); border-radius: 7px; background: var(--white); transition: background .2s ease, border-color .2s ease, transform .15s ease; }
.letter__box::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .2s ease .05s; }
.letter__consent:active .letter__box { transform: scale(.88); }
.letter__consent input:checked + .letter__box { background: var(--black); border-color: var(--black); }
.letter__consent input:checked + .letter__box::after { transform: rotate(45deg) scale(1); }
.letter__consent input:focus-visible + .letter__box { outline: 2px solid var(--yellow); outline-offset: 3px; }
.letter__consent a, .letter__terms a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.letter__consent a:hover, .letter__terms a:hover { color: var(--yellow); }
.letter__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.letter__send { gap: 10px; padding-inline: 28px; }
.letter__send .ico { transition: transform .25s ease; }
.letter__send:hover .ico { transform: translateX(5px); }
.letter__send:active { transform: scale(.97); }
.letter.is-sending .letter__send { pointer-events: none; opacity: .75; }
.letter.is-sending .letter__send .ico { animation: send-go .7s ease-in-out infinite; }
@keyframes send-go { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.letter__terms { margin: 0; font-size: 13px; color: var(--ink-muted); }
.letter__err { margin: -4px 0 0; font: 600 14px var(--body); color: var(--yellow); }
.letter .is-bad input { background-size: 100% 2px, 100% 2px; animation: bad-shake .35s ease; }
@keyframes bad-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.letter.is-flying { transform: translate(38%, -70%) rotate(9deg) scale(.35); opacity: 0; pointer-events: none; }
/* Gracias */
.letter-thanks { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: 28px; background: var(--black); color: #fff; outline: 0; animation: thanks-in .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes thanks-in { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
.letter-thanks__wira img { width: 100%; height: auto; animation: wira-float 5.5s ease-in-out infinite; }
.letter-thanks__copy { display: grid; gap: 16px; justify-items: start; }
.letter-thanks .letter__kicker { color: rgba(237, 237, 237, .6); }
.letter-thanks .h2 { margin: 0; color: #fff; }
.letter-thanks .h2 [data-thanks-name] { color: var(--yellow); }
.letter-thanks .lede { margin: 0; max-width: 46ch; color: rgba(237, 237, 237, .72); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; }
.letter-thanks__sign { width: min(100%, 440px); aspect-ratio: 2000 / 493; background: url("/assets/firma-construccion.webp") left center / contain no-repeat; filter: invert(1); mix-blend-mode: screen; opacity: .8; animation: sign-draw 2.2s cubic-bezier(.6, 0, .3, 1) .5s both; }
@keyframes sign-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.letter-thanks .btn--outline { border-color: rgba(255, 255, 255, .35); color: #fff; }
.letter-thanks .btn--outline:hover { background: #fff; border-color: #fff; color: var(--black); }
@media (max-width: 760px) {
  .letter-thanks { grid-template-columns: minmax(0, 1fr); }
  .letter-thanks__wira { max-width: 180px; }
  .letter__blank, .letter__blank input { width: 100%; }
  .lchip span { padding: 10px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .letter, .letter-thanks, .letter-thanks__sign, .letter-thanks__wira img, .lchip input:checked + span { animation: none; transition: none; } }
.letter-thanks__sign { filter: invert(1) contrast(4) brightness(2.2); mix-blend-mode: screen; opacity: 1; }
@media (max-width: 760px) { .letter__dot { display: none; } }

/* Contacto v2: cabecera compacta, sobre aéreo, estampilla, cinta, teléfono, popup legal */
.page-head--contact { padding-top: clamp(28px, 4vw, 56px); }
.page-head--contact .page-title { margin-bottom: 10px; }
.page-head--contact .lede { max-width: 62ch; margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink-muted); }
.page-head--contact + .section { padding-top: 24px; }
.letter-wrap { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.letter-wrap > .letter-thanks { grid-column: 1; }
.letter { overflow: hidden; padding-top: clamp(40px, 5vw, 68px); }
.letter__airmail { position: absolute; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, transparent 16px 32px, #1d3c78 32px 48px, transparent 48px 64px); }
.letter__stamp { position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(28px, 3.4vw, 44px); width: clamp(74px, 9vw, 112px); transform: rotate(4deg); pointer-events: none; }
.letter__stamp-img { display: block; padding: 7px; background: #fff; box-shadow: 0 6px 14px -8px rgba(17, 17, 17, .5); -webkit-mask: radial-gradient(circle 4px at 4px 4px, transparent 97%, #000) -4px -4px / 12px 12px; mask: radial-gradient(circle 4px at 4px 4px, transparent 97%, #000) -4px -4px / 12px 12px; }
.letter__stamp-img img { display: block; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; background: #e9e6dd; }
.letter__postmark { position: absolute; left: -46%; bottom: -30%; width: 96%; height: auto; color: rgba(31, 31, 31, .5); transform: rotate(-16deg); font-family: var(--display); }
.letter__blank input, .letter__area { font-family: "Fira Code", ui-monospace, Menlo, monospace; font-weight: 500; letter-spacing: -.02em; }
.letter__blank input { font-size: .86em; }
.letter__area { font-size: clamp(.95rem, 1.3vw, 1.08rem); font-weight: 400; }
.letter__blank input::placeholder, .letter__area::placeholder { font-family: "Fira Code", ui-monospace, Menlo, monospace; }
.letter__chips { gap: 14px 12px; padding-top: 6px; }
.lchip span { padding: 13px 24px; font-size: 17px; }
.lchip span::before { display: none; }
.lchip input:checked + span { gap: 0; }
.lchip span::after { content: ""; position: absolute; left: 50%; top: -9px; width: 54px; height: 18px; margin-left: -27px; background: linear-gradient(90deg, rgba(250, 185, 0, .5), rgba(250, 185, 0, .72) 50%, rgba(250, 185, 0, .5)); border-left: 1px dashed rgba(31, 31, 31, .18); border-right: 1px dashed rgba(31, 31, 31, .18); box-shadow: 0 2px 4px -2px rgba(17, 17, 17, .35); transform: rotate(-5deg) scale(0); transform-origin: 50% 50%; transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
.lchip:nth-child(even) span::after { transform: rotate(4deg) scale(0); }
.lchip input:checked + span::after { transform: rotate(-5deg) scale(1); }
.lchip:nth-child(even) input:checked + span::after { transform: rotate(4deg) scale(1); }
.letter-aside { display: grid; gap: 10px; padding-top: 8px; }
.letter-aside p { margin: 0; }
.letter-aside__phone { display: flex; align-items: center; gap: 8px; font: 800 clamp(1.5rem, 2.3vw, 2rem)/1.15 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.letter-aside__phone a { color: var(--ink); text-decoration: none; }
.letter-aside__phone a:hover { color: var(--yellow); }
.letter-aside__note { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.letter-aside__mail { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.legal-dialog { width: min(760px, calc(100vw - 32px)); max-height: min(84vh, 900px); padding: 0; border: 0; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(17, 17, 17, .6); }
.legal-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: thanks-in .35s ease both; }
.legal-dialog::backdrop { background: rgba(17, 17, 17, .55); }
.legal-dialog__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px 28px; border-bottom: 1px solid var(--line-light); }
.legal-dialog__head h2 { flex: 1; margin: 0; font: 800 clamp(1.05rem, 1.6vw, 1.3rem)/1.25 var(--display); }
.legal-dialog__ext, .legal-dialog__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease; }
.legal-dialog__ext:hover, .legal-dialog__close:hover { background: var(--black); color: #fff; }
.legal-dialog__body { overflow: auto; padding: 20px 28px 32px; font-size: 15px; }
.legal-dialog__body img { display: none; }
@media (max-width: 900px) { .letter-wrap { grid-template-columns: minmax(0, 1fr); } .letter__stamp { width: 70px; } .letter__line:first-of-type { padding-right: 84px; } }
.page-head--contact .wrap { display: block; }
.page-head--contact .lede { grid-column: auto; }
.letter__stamp-img { -webkit-mask: none; mask: none; outline: 5px dotted var(--paper); outline-offset: -3px; padding: 8px; }
.legal-dialog__body h2 { margin: 1.4em 0 .5em; font: 800 1.1rem/1.3 var(--display); }
.legal-dialog__body h2::before, .legal-dialog__body h2 > span:first-child { font-size: 11px; }
main .page-head.page-head--contact > .wrap { display: block; } main .page-head.page-head--contact > .wrap > .lede { grid-column: auto; margin-top: 0; }
main .page-head.page-head--contact > .wrap > .lede { font-size: 16px; max-width: 62ch; margin-top: 12px; }
main .letter-sec { padding-bottom: 0; } main .letter-sec + .section { padding-top: clamp(28px, 3vw, 44px); }
/* Carta más compacta */
.letter { gap: clamp(14px, 1.6vw, 20px); padding: clamp(34px, 3.6vw, 48px) clamp(20px, 3vw, 40px) clamp(20px, 2.6vw, 32px); }
.letter__text { gap: clamp(8px, 1vw, 12px); }
.letter__line { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.3; }
.letter__chips { gap: 12px 8px; padding-top: 4px; }
.lchip span { padding: 9px 18px; font-size: 15px; }
.lchip span::after { width: 44px; height: 14px; margin-left: -22px; top: -7px; }
.letter__area { min-height: 2.6em; padding-bottom: 6px; font-size: clamp(.9rem, 1.1vw, 1rem); }
.letter__stamp { width: clamp(64px, 7vw, 88px); top: clamp(24px, 2.6vw, 34px); }
.letter__consent { font-size: 13px; }

/* Franja difuminada sobre la cabecera flotante: tapa lo que pasa por encima del menú */
body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; z-index: 49; height: 60px; pointer-events: none; background: linear-gradient(to bottom, rgba(247, 247, 244, .85), rgba(247, 247, 244, 0)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask: linear-gradient(to bottom, #000 55%, transparent); mask: linear-gradient(to bottom, #000 55%, transparent); transition: opacity .3s ease; }
body:has(.site-header.is-hidden)::before, body:has(.hero--dark):not(:has(.site-header.is-scrolled))::before { opacity: 0; }
main > :first-child .crumbs { margin-bottom: clamp(20px, 2vw, 28px); }

/* Cabecera flotante: la mitad de separación del borde superior */
@media (min-width: 861px) {
  .site-header { top: 12px; }
  main > :first-child:has(.crumbs) { padding-top: 106px; }
  body::before { height: 48px; }
}
@media (max-width: 860px) { .site-header { top: 6px; } main > :first-child:has(.crumbs) { padding-top: 100px; } }
.team-section + .section--tight { padding-top: 0; } main .team-section:has(+ .section--tight) { padding-bottom: clamp(40px, 4vw, 56px); }

/* ===== /studio/ ===== */
main .page-head.page-head--studio > .wrap { display: block; }
.studio-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.studio-head .page-title { margin-bottom: 14px; }
.studio-head .lede { margin: 0; max-width: 56ch; }
.studio-facts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.studio-facts li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); }
.studio-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.studio-facts b { font: 800 clamp(1.5rem, 2.4vw, 2rem)/1 var(--display); color: var(--ink); }
.studio-facts span { font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.page-head--studio + .studio-about { padding-top: clamp(32px, 4vw, 56px); }
.studio-about + .team-section { padding-top: clamp(32px, 4vw, 56px); }
.studio-works .studio-works__link { display: flex; align-items: center; gap: 24px; padding: clamp(22px, 3vw, 34px) clamp(24px, 3.4vw, 44px); border-radius: 999px; background: var(--yellow); color: #fff; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.studio-works__link > span { display: grid; gap: 4px; flex: 1; }
.studio-works__link b { font: 800 clamp(1.1rem, 1.8vw, 1.5rem)/1.2 var(--display); }
.studio-works__link small { font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.studio-works__link i { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--black); font: 800 22px/1 var(--display); font-style: normal; transition: transform .25s ease; }
.studio-works__link:hover { background: var(--black); }
.studio-works__link:hover i { transform: translateX(4px) rotate(-45deg); }
.studio-letter-head { padding-top: clamp(48px, 6vw, 88px); }
.studio-letter-head .page-title { margin-bottom: 10px; }
@media (max-width: 860px) { .studio-head { grid-template-columns: minmax(0, 1fr); } .studio-works .studio-works__link { border-radius: 24px; } .studio-facts li { grid-template-columns: 100px minmax(0, 1fr); } }
.page-title .hl { font-style: normal; color: var(--yellow); } .studio-facts li { grid-template-columns: 150px minmax(0, 1fr); } .studio-facts b { white-space: nowrap; }
main .studio-about { padding-bottom: 0; } main .studio-about + .team-section { padding-top: clamp(48px, 5vw, 72px); }
main .studio-works { padding: clamp(36px, 4vw, 56px) 0; } main .studio-letter-head { padding-top: clamp(40px, 4vw, 56px); } main .studio-about ~ .team-section { padding-bottom: clamp(64px, 7vw, 96px); }
.studio-facts b { font-weight: 700; font-variation-settings: "wght" 700, "wdth" 125; letter-spacing: -.01em; } .studio-facts li { grid-template-columns: 190px minmax(0, 1fr); }
/* Cifras del estudio en horizontal */
.studio-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.studio-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.studio-facts li { display: grid; grid-template-columns: none; gap: 6px; align-content: start; padding: 0 20px; border-bottom: 0; border-left: 1px solid var(--line-light); }
.studio-facts li:first-child { padding-left: 0; border-left: 0; }
.studio-facts span { font-size: 14px; }
@media (max-width: 860px) { .studio-head { grid-template-columns: minmax(0, 1fr); } .studio-facts li { padding: 0 12px; } .studio-facts b { font-size: 1.3rem; } }
@media (min-width: 861px) { .studio-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
/* Contacto: videollamada en la columna lateral, bajo teléfono y correo */
.letter-aside__call { display: grid; gap: 10px; justify-items: start; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.letter-aside__call-title { margin: 0; font: 700 clamp(1.15rem, 1.6vw, 1.35rem)/1.2 var(--display); font-variation-settings: "wght" 700, "wdth" 125; }
.letter-aside__call .btn { margin-top: 4px; }
@media (min-width: 1001px) { .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
main .page-head .lede, main .page-head.page-head--contact > .wrap > .lede { max-width: 640px; }
main .page-head:not(.page-head--404) > .wrap > .page-title + .lede { max-width: 640px; }

/* Pie: banner de la guía en PDF */
.footer .footer__main { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); }
.footer__guide { display: grid; gap: 6px; justify-items: start; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.footer__guide:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.footer__guide img { width: 100%; max-width: 200px; height: auto; margin: -4px auto 8px; transition: transform .35s ease; }
.footer__guide:hover img { transform: translateY(-4px) rotate(-1deg); }
.footer__guide-kicker { font: 700 11px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.footer__guide b { font: 700 16px/1.25 var(--display); font-variation-settings: "wght" 700, "wdth" 125; }
.footer__guide-text { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .62); }
.footer__guide-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--black); font: 700 12px var(--display); letter-spacing: .05em; text-transform: uppercase; }
.footer__guide:hover .footer__guide-btn { background: var(--yellow); color: #fff; }
.footer__guide small { font-size: 12px; color: rgba(255, 255, 255, .45); }
@media (max-width: 1200px) { .footer .footer__main { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } .footer__guide { grid-column: 1 / -1; grid-template-columns: 140px minmax(0, 1fr); column-gap: 20px; } .footer__guide img { grid-row: 1 / span 6; margin: 0; } }
@media (max-width: 1000px) { .footer .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .footer .footer__main { grid-template-columns: 1fr; } .footer__guide { grid-template-columns: 100px minmax(0, 1fr); } }
/* Sin líneas rojas sobre la lista de servicios */
.why li { border-top: 1px solid var(--line-light); }
.on-dark .why li { border-top-color: rgba(255, 255, 255, .14); }
/* Enlace al portfolio: que se lea como enlace */
.studio-works__kicker { font: 700 11px var(--display) !important; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75) !important; }
.studio-works__go { flex: none; font: 700 13px var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.studio-works__link:hover i { transform: translateX(6px); }
@media (max-width: 720px) { .studio-works__go { display: none; } }
.studio-works__link > .studio-works__go { flex: none; display: inline; }

/* Reseñas en carrusel horizontal (/studio/) */
.reviews--slider .reviews__grid { align-items: center; }
.reviews--slider .reviews__aside { position: static; }
.reviews--slider .reviews__list { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; outline: 0; }
.reviews--slider .reviews__list::-webkit-scrollbar { display: none; }
.reviews--slider .reviews__item { flex: 0 0 100%; scroll-snap-align: start; max-height: 520px; overflow: auto; scrollbar-width: thin; border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; background: rgba(255, 255, 255, .04); opacity: .55; transition: opacity .3s ease; }
.reviews--slider .reviews__item.is-current { opacity: 1; }
.reviews__nav { display: flex; gap: 10px; margin: 6px 0 0; }
.reviews__btn { display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 50%; background: none; color: #fff; font: 700 20px/1 var(--display); cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease; }
.reviews__btn:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--black); }
.reviews__btn:disabled { opacity: .3; cursor: default; }
.reviews--slider .reviews__list { align-items: flex-start; } .reviews--slider .reviews__item { padding: clamp(24px, 3vw, 40px) !important; align-self: flex-start; } .reviews--slider .reviews__item p { max-width: none; }
/* Carrusel: flechas y contador debajo de las reseñas, alineados a la columna derecha */
.reviews--slider .reviews__under { grid-column: 2; display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.reviews--slider .reviews__under .reviews__nav { margin: 0; }
.reviews--slider .reviews__under .reviews__count { position: static; margin: 0; }
@media (max-width: 960px) { .reviews--slider .reviews__under { grid-column: 1; } }
/* La carta de /studio/ no puede pegarse al pie */
.studio-letter-head ~ .letter-sec { padding-bottom: clamp(56px, 6vw, 96px); }
.reviews--slider .reviews__grid { grid-template-rows: auto 1fr; row-gap: 14px; align-items: start; } .reviews--slider .reviews__aside { grid-row: 1 / span 2; } .reviews--slider .reviews__list { grid-column: 2; grid-row: 1; } .reviews--slider .reviews__under { grid-row: 2; margin-top: 0; } @media (max-width: 960px) { .reviews--slider .reviews__aside, .reviews--slider .reviews__list, .reviews--slider .reviews__under { grid-row: auto; grid-column: 1; } }
.reviews--slider .reviews__list { transition: height .35s ease; overflow-y: hidden; }
/* Sin contenedores: reseñas del carrusel y banner de la guía */
.reviews--slider .reviews__item { border: 0; border-radius: 0; background: none; padding: 0 !important; }
.footer__guide { padding: 0; border: 0; background: none; }
.footer__guide:hover { background: none; }
.footer__guide img { margin: 0 0 10px; }
/* Menú: flechita en «Услуги», que tiene submenú */
.nav__caret { display: inline-block; width: 6px; height: 6px; margin: -3px 0 0 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; vertical-align: middle; transition: transform .25s ease, opacity .2s ease, margin .25s ease; }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(225deg); margin-top: 3px; opacity: 1; }
.mt-48 > .studio-works { padding: 0; }
/* Barra del portfolio: misma caja que las tarjetas de casos, como su continuación */
.studio-works .studio-works__link { border-radius: 24px; border: 1px solid var(--line-light); background: var(--white); color: var(--ink); padding: clamp(28px, 3.4vw, 44px) clamp(28px, 4vw, 56px); }
.studio-works__link b { color: var(--ink); }
.studio-works__link small { color: var(--ink-muted); }
.studio-works__kicker { color: var(--yellow) !important; }
.studio-works__go { color: var(--ink); }
.studio-works__link i { background: var(--yellow); color: #fff; }
.studio-works .studio-works__link:hover { background: var(--white); border-color: var(--black); }
.studio-works__link:hover .studio-works__go { color: var(--yellow); }
.mt-48:has(> .studio-works) { margin-top: 28px; }
@media (max-width: 860px) { .studio-works .studio-works__link { border-radius: 24px; } }
/* Servicios en la portada: título visible + texto a la derecha, como las demás secciones */
main .svc .svc__intro.head { position: relative; padding-bottom: 0; margin-bottom: clamp(36px, 4.5vw, 64px); }
main .svc .svc__intro.head .svc__lede { position: static; width: auto; margin: 0; }
.scroll-word__text { opacity: .28; }

/* ===== Frase con trazo a mano que se dibuja al hacer scroll ===== */
.tape-sec { overflow: hidden; padding: clamp(48px, 7vw, 112px) 0; text-align: left; }
.stroke { --p: 0; margin: 0; font: 700 clamp(2rem, 6.4vw, 6.2rem)/1.08 var(--display); font-variation-settings: "wght" 700, "wdth" 125; letter-spacing: -.02em; color: var(--ink); }
.stroke > span { display: inline-block; }
.stroke__a { opacity: calc(.18 + var(--p) * 4); }
.stroke__b { opacity: calc(.18 + (var(--p) - .2) * 4); }
.stroke__c { position: relative; opacity: calc(.18 + (var(--p) - .4) * 4); }
.stroke__d { opacity: calc(.18 + (var(--p) - .6) * 4); }
.stroke__c svg { position: absolute; left: -2%; right: -2%; bottom: -.16em; width: 104%; height: .34em; overflow: visible; }
.stroke__c path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p) - .45) * 2, 1)); }
@media (prefers-reduced-motion: reduce) { .stroke { --p: 1 !important; } }
/* Barra del portfolio: una sola frase, cápsula roja */
.studio-works .studio-works__link { justify-content: space-between; padding: 14px 14px 14px clamp(24px, 3vw, 40px); border: 0; border-radius: 999px; background: var(--yellow); color: #fff; }
.studio-works .studio-works__link b { color: #fff; font: 700 clamp(1.05rem, 1.6vw, 1.35rem)/1.2 var(--display); font-variation-settings: "wght" 700, "wdth" 125; }
.studio-works .studio-works__link i { width: 52px; height: 52px; background: #fff; color: var(--black); }
.studio-works .studio-works__link:hover { background: var(--black); border: 0; }
@media (max-width: 860px) { .studio-works .studio-works__link { border-radius: 999px; } }
/* Firma en construcción: más ancha */
.process-sign::before { width: min(1500px, 108%); }
.process-sign { padding-bottom: clamp(240px, 27vw, 420px); }
.letter { background: var(--white); } .letter__stamp-img { outline-color: var(--white); background: var(--paper); } .letter .lchip span { background: var(--paper); } .letter .lchip input:checked + span { background: var(--black); }
.letter-thanks__sign { width: min(100%, 300px); aspect-ratio: 303 / 48; background: url("/assets/brand/logotype_espinoza-light.svg") left center / contain no-repeat; filter: none; mix-blend-mode: normal; opacity: .9; }

/* ===== Móvil: márgenes compactos y parejos (al final, para ganar a los ajustes de escritorio) ===== */
@media (max-width: 720px) {
  :root { --wrap: calc(100% - 28px); }
  main > section.section, main > .showcase-section, main > .xp, main > .svc, main > .why-us, main > .tape-sec, main > .team-section { padding-top: 40px; padding-bottom: 40px; }
  main > section.section--tight, main .studio-works, main > .tasks--dialog { padding-top: 28px; padding-bottom: 28px; }
  main .process-sign { padding-bottom: 120px; }
  main .process-sign::before { width: 120%; }
  main .head { margin-bottom: 24px; row-gap: 12px; }
  .card { padding: 18px; }
  .letter { padding: 30px 16px 18px; border-radius: 20px; }
  .letter__line { font-size: 1.05rem; }
  .letter__stamp { width: 58px; right: 12px; top: 22px; }
  .letter-thanks { padding: 22px 18px; border-radius: 20px; }
  .studio-head { gap: 20px; }
  .studio-facts li { padding: 0 10px; }
  .studio-facts b { font-size: 1.15rem; }
  .studio-facts span { font-size: 12.5px; }
  .studio-works .studio-works__link { padding: 10px 10px 10px 20px; }
  .studio-works .studio-works__link i { width: 44px; height: 44px; }
  .stroke { font-size: clamp(1.7rem, 8.4vw, 2.4rem); }
  .footer .footer__main { gap: 24px; }
  .svc__row { padding: 16px 0 24px; }
  .reviews--slider .reviews__under { margin-top: 4px; }
}
body::before { background: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ip-switch { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.ip-switch legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ip-switch__track { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--paper-2, #efeee9); border: 1px solid var(--line-light, #e4e2dc); isolation: isolate; }
.ip-switch__track input { position: absolute; opacity: 0; pointer-events: none; }
.ip-switch__track label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; text-align: center; color: var(--ink-muted, #77756f); cursor: pointer; transition: color .25s ease; }
.ip-switch__track input:checked + label { color: #fff; }
.ip-switch__track input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.ip-switch__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink, #111); box-shadow: 0 6px 16px rgba(0,0,0,.14); transition: transform .35s cubic-bezier(.3,1.3,.5,1); }
#ip-yes:checked ~ .ip-switch__thumb { transform: translateX(100%); }
.ip-switch__hint { margin: 0; font-size: 14px; color: var(--ink-muted, #77756f); }
[data-ip-field][hidden] { display: none; }
@media (max-width: 520px) { .ip-switch__track label { font-size: 14px; padding: 8px 10px; } }
.inn-check { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--ink-muted, #77756f); }
.inn-check--ok { color: #1f7a3f; font-weight: 600; }
.inn-check--bad { color: var(--red, #e2231a); }
.referral-steps-sec { padding-bottom: 0; }
.referral-form-sec { padding-top: 20px; }
.referral-steps { gap: 16px; }
.referral-step { padding: 20px 22px; }
.referral-step__title { margin: 0 0 6px; font: 700 17px/1.3 var(--display); color: var(--ink); }
.referral-step__title span { color: var(--red, #e2231a); margin-right: 4px; }
.referral-step p { margin: 0; font-size: 14px; line-height: 1.5; }
.ref-pay { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ref-pay--paid { background: #e3f3e8; color: #1f7a3f; }
.ref-pay--wait { background: #efeee9; color: #77756f; }

/* Selector de idioma (cabecera) */
.lang-switch { position: relative; flex-shrink: 0; color: var(--ink); }
.lang-switch summary { min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 6px 4px; cursor: pointer; list-style: none; font: 700 12px/1 var(--display); letter-spacing: .04em; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch__flag { display: inline-flex; flex: 0 0 20px; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.lang-switch__flag svg { display: block; width: 100%; height: 100%; }
.lang-switch__chevron { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; -webkit-mask: url('/assets/icons/arrow.svg') center / contain no-repeat; mask: url('/assets/icons/arrow.svg') center / contain no-repeat; transition: transform .2s ease; }
.lang-switch[open] .lang-switch__chevron { transform: rotate(180deg); }
.lang-switch__menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; min-width: 184px; padding: 6px; border: 1px solid var(--line-light); border-radius: 16px; background: #fff; color: #1f1f1f; box-shadow: 0 18px 44px -20px rgba(0, 0, 0, .35); }
.lang-switch__menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-size: 14px; }
.lang-switch__menu a:hover, .lang-switch__menu a:focus-visible { background: #f3f2ee; }
.lang-switch__menu a[aria-current] { background: #f3f2ee; font-weight: 700; }
body.has-dark-hero .site-header:not(.is-scrolled) .lang-switch { color: #fff; }

/* ===== /denis/ — страница основателя (по материалам denis.espinoza.ru) ===== */
/* Первый экран: фото (z1) → фамилия (z2) → вырезанная голова (z3): фамилия проходит за головой. Фото на белом, поэтому и экран белый. */
.denis-hero { --name: clamp(3.2rem, 9.6vw, 9.6rem); background: var(--white); overflow: hidden; padding-bottom: clamp(48px, 6vw, 88px); }
.denis-hero__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); grid-template-rows: auto auto 1fr; column-gap: clamp(24px, 4vw, 64px); }
.denis-hero__kicker { grid-column: 1; grid-row: 1; position: relative; z-index: 4; margin: 0; }
body .denis-hero__name { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 2; margin: clamp(14px, 2vw, 26px) 0 clamp(22px, 3vw, 40px); max-width: none; font-size: var(--name); line-height: .92; font-weight: 800; font-variation-settings: "wght" 800, "wdth" 125; letter-spacing: -.035em; pointer-events: none; }
.denis-hero__name > span, .denis-hero__name .hl { display: block; white-space: nowrap; }
.denis-hero__name .hl { font-style: normal; color: var(--yellow); text-align: right; /* el final del apellido queda al 40 % del ancho de la foto: la última letra pasa por detrás de la frente */ padding-right: calc(28.75% - .2875 * clamp(24px, 4vw, 64px)); }
.denis-hero__photo { grid-column: 2; grid-row: 1 / -1; align-self: start; justify-self: end; position: relative; width: 100%; max-width: 620px; margin: calc(var(--name) * .55) 0 0; }
.denis-hero__img { position: relative; z-index: 1; width: 100%; height: auto; }
.denis-hero__head { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.denis-hero__text { grid-column: 1; grid-row: 3; position: relative; z-index: 4; display: grid; gap: 28px; align-content: start; max-width: 580px; }
.denis-hero__text .lede { max-width: 48ch; }
.denis-facts { margin: 0; }
.denis-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.denis-ext { margin-left: 4px; font-size: .85em; font-weight: 400; }

.denis-about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.denis-about__text { display: grid; gap: 18px; color: var(--ink-muted); font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 62ch; }
body .denis-about__lead { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.35; font-variation-settings: "wght" 600, "wdth" 112; color: var(--black); }

.denis-do__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.denis-do__list li { display: grid; grid-template-columns: 64px minmax(0, .85fr) minmax(0, 1.3fr); gap: var(--gap); align-items: baseline; padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line-light); }
.denis-do__num { font: 800 14px var(--display); color: var(--yellow); }
body .denis-do__list h3 { font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
.denis-do__list p { color: var(--ink-muted); }

.denis-projects__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.denis-project { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line-dark); border-radius: calc(var(--radius) * 2); background: rgba(255, 255, 255, .03); }
.denis-project__cover { display: block; overflow: hidden; background: #000; }
.denis-project__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.denis-project:hover .denis-project__cover img { transform: scale(1.04); }
.denis-project__cover--inti img { object-position: center 30%; }
.denis-project__body { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.4vw, 32px); }
.denis-project__kind { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
body .denis-project h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); color: #fff; }
.denis-project p { color: var(--muted); font-size: 15px; }
.denis-project p b { color: #fff; font-weight: 600; }
.denis-project__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.denis-project__links a { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: color .2s ease, border-color .2s ease; }
.denis-project__links a:hover { color: var(--yellow); border-color: var(--yellow); }
.denis-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: center; padding: clamp(22px, 2.4vw, 32px) 0 clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 32px); }
.denis-book img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .7); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.denis-book:hover img { transform: translateY(-4px); }

.denis-clients__logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.denis-clients__logos li { display: grid; place-items: center; aspect-ratio: 1; padding: 10px; border: 1px solid var(--line-light); border-radius: 16px; background: var(--white); }
.denis-clients__logos img { width: 100%; height: auto; opacity: .78; transition: opacity .3s ease; }
.denis-clients__logos li:hover img { opacity: 1; }

.denis-links__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-bottom: clamp(32px, 4vw, 56px); }
.denis-card-link { display: flex; align-items: center; gap: 24px; padding: clamp(22px, 3vw, 32px) clamp(24px, 3.4vw, 40px); border: 1px solid var(--line-light); border-radius: 999px; background: var(--paper); color: var(--black); text-decoration: none; transition: background .25s ease, border-color .25s ease, color .25s ease; }
.denis-card-link > span { display: grid; gap: 4px; flex: 1; }
body .denis-card-link b { font-family: var(--display); font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.2; font-variation-settings: "wght" 800, "wdth" 125; }
.denis-card-link small { font-size: 14.5px; line-height: 1.45; color: var(--ink-muted); }
.denis-card-link i { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--black); color: #fff; font: 800 20px/1 var(--display); font-style: normal; transition: transform .25s ease; }
.denis-card-link:hover { border-color: var(--black); }
.denis-card-link:hover i { transform: translateX(4px); }
.denis-card-link--accent { background: var(--yellow); border-color: var(--yellow); color: #fff; }
.denis-card-link--accent small { color: rgba(255, 255, 255, .85); }
.denis-card-link--accent i { background: #fff; color: var(--black); }
.denis-card-link--accent:hover { background: var(--black); border-color: var(--black); }
.denis-social { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.denis-social a { display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--black); color: var(--black); text-decoration: none; transition: border-color .2s ease; }
body .denis-social b { font-family: var(--display); font-size: 1.05rem; font-variation-settings: "wght" 700, "wdth" 125; transition: color .2s ease; }
.denis-social span { font-size: 14px; color: var(--ink-muted); }
.denis-social a:hover { border-color: var(--yellow); }
.denis-social a:hover b { color: var(--yellow); }

.denis-contact__box { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: clamp(24px, 4vw, 64px); align-items: end; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line-light); border-radius: calc(var(--radius) * 3); background: var(--white); }
.denis-contact__box .lede { margin-top: 14px; }
.denis-contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.denis-personal { margin-top: 28px; text-align: center; color: var(--ink-muted); }
.denis-personal a { color: var(--black); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.denis-personal a:hover { color: var(--yellow); }

/* Enlaces a /denis/ desde el equipo y la ficha del autor del blog */
.member h3 a, .author__name a { color: inherit; text-decoration: none; transition: color .2s ease; }
.member h3 a:hover, .author__name a:hover { color: var(--yellow); }
.member__more, .author__more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding-bottom: 2px; border-bottom: 2px solid var(--yellow); color: var(--black); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.member__more:hover, .author__more:hover { color: var(--yellow); }
.author__photo { flex: none; }
.author .author__more { color: var(--black); }

@media (max-width: 1080px) {
  .denis-projects__grid { grid-template-columns: minmax(0, 1fr); }
  .denis-clients__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .denis-social { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .denis-hero { --name: 13.4vw; }
  .denis-hero__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .denis-hero__kicker, body .denis-hero__name, .denis-hero__photo, .denis-hero__text { grid-column: 1; grid-row: auto; }
  body .denis-hero__name { margin-bottom: 0; }
  .denis-hero__name .hl { padding-right: 0; text-align: left; padding-left: .5em; }
  .denis-hero__photo { justify-self: center; max-width: 520px; margin: calc(var(--name) * -1.15) 0 8px; }
  .denis-about__grid, .denis-links__cards, .denis-contact__box { grid-template-columns: minmax(0, 1fr); }
  .denis-do__list li { grid-template-columns: 40px minmax(0, 1fr); row-gap: 8px; }
  .denis-do__list li p { grid-column: 2; }
  .denis-card-link { border-radius: 24px; }
}
@media (max-width: 560px) {
  .denis-project { grid-template-columns: minmax(0, 1fr); }
  .denis-project__cover { aspect-ratio: 16 / 10; }
  .denis-books { padding: 22px 22px 0; }
  .denis-clients__logos { gap: 10px; }
  .denis-clients__logos li { padding: 4px; border-radius: 12px; }
  .denis-social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .denis-card-link { gap: 16px; }
  .denis-card-link i { width: 44px; height: 44px; }
}

/* /denis/ — путь: зигзаг, год напротив карточки, точка-курсор идёт за скроллом (js/denis.js) */
.denis-story__tl { position: relative; max-width: 1080px; margin: clamp(16px, 3vw, 40px) auto 0; }
.denis-story__rail { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #e2e2e2; }
.denis-story__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: rgb(var(--accent-rgb)); }
.denis-story__cursor { display: none; position: absolute; z-index: 3; left: 50%; top: 0; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px rgb(var(--accent-rgb)), 0 10px 24px rgba(0, 0, 0, .22); pointer-events: none; }
.denis-story__cursor img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.denis-story__tl.is-live .denis-story__cursor { display: block; animation: denis-cursor 2.4s ease-in-out infinite; }
@keyframes denis-cursor { 50% { transform: scale(1.07); } }
.denis-story__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 5.5vw, 80px); }
.denis-story__list li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(72px, 10vw, 140px); align-items: center; }
.denis-story__list li::after { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgb(var(--accent-rgb)); border: 2px solid rgb(var(--accent-rgb)); box-shadow: 0 0 0 6px #fff; }
.denis-story__list li > div { grid-column: 1; grid-row: 1; background: #fff; border: 1px solid var(--line-light); border-radius: 20px; padding: clamp(22px, 2.6vw, 34px); box-shadow: 0 16px 36px -26px rgba(0, 0, 0, .25); transition: border-color .35s ease; }
.denis-story__year { grid-column: 2; grid-row: 1; font: 800 clamp(2.4rem, 4.4vw, 4rem)/1 var(--display); font-stretch: 125%; font-variation-settings: "wght" 800, "wdth" 125; color: var(--black); letter-spacing: -.01em; transition: color .35s ease; }
.denis-story__list li:nth-child(even) > div { grid-column: 2; }
.denis-story__list li:nth-child(even) .denis-story__year { grid-column: 1; text-align: right; }
body .denis-story__list h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); margin-bottom: 8px; }
.denis-story__list p { color: var(--ink-muted); }
.is-live .denis-story__list li:not(.is-on)::after { background: #fff; border-color: #cfcfcf; }
.is-live .denis-story__list li:not(.is-on) .denis-story__year { color: #a0a0a0; }
.is-live .denis-story__list li.is-on > div { border-color: rgba(31, 31, 31, .22); }
@media (prefers-reduced-motion: reduce) { .denis-story__tl.is-live .denis-story__cursor { animation: none; } }
@media (max-width: 760px) {
  .denis-story__rail, .denis-story__cursor { left: 22px; }
  .denis-story__cursor { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .denis-story__list { gap: 36px; }
  .denis-story__list li, .denis-story__list li:nth-child(even) { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding-left: 58px; }
  .denis-story__list li::after { left: 22px; top: 18px; }
  .denis-story__list li > div, .denis-story__list li:nth-child(even) > div { grid-column: 1; grid-row: 2; }
  .denis-story__year, .denis-story__list li:nth-child(even) .denis-story__year { grid-column: 1; grid-row: 1; text-align: left; font-size: 2.2rem; }
}

/* el primer bloque del artículo (portada o «Коротко») alineado con la tarjeta lateral */
.article--sidebar .article__main > :first-child { margin-top: 0; }

/* Блок «Не уверены, что нужно?» в статьях: чёрный вместо красного */
.mid-cta { background: var(--black); color: #fff; }
.mid-cta p { color: rgba(255, 255, 255, .8); }
.mid-cta .mid-cta__title { color: #fff; }
.mid-cta .btn--dark { background: #fff; color: var(--black); }
.mid-cta .btn--dark:hover { background: #fff; color: var(--black); box-shadow: 0 14px 28px -14px rgba(255, 255, 255, .35); }
.mid-cta .btn--telegram { color: #fff; border-color: rgba(255, 255, 255, .35); }
.mid-cta .btn--telegram:hover { border-color: #fff; }

/* Cabecera fija de borde a borde (no isla flotante): se esconde al bajar y vuelve al subir (site.js) */
.site-header, .site-header.is-scrolled { top: 0; left: 0; right: 0; transform: none; width: 100%; max-width: none; border-radius: 0; border: 0; border-bottom: 1px solid rgba(31, 31, 31, .08); padding: 12px max(16px, calc((100% - var(--wrap)) / 2)); background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.site-header.is-scrolled { box-shadow: 0 10px 24px -20px rgba(17, 17, 17, .35); }
.site-header.is-hidden { transform: translateY(-100%); }
body::before { display: none; }
@media (max-width: 860px) { .site-header, .site-header.is-scrolled { top: 0; width: 100%; padding: 10px 16px; } }

/* Страница услуги: план проекта как спринт (дни/недели, этапы внахлёст) */
.sprint { margin-bottom: clamp(40px, 5vw, 64px); }
.sprint__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sprint__chart { --cols: 4; position: relative; min-width: 640px; padding-top: 40px; }
.sprint__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); pointer-events: none; }
.sprint__grid span { border-left: 1px solid var(--line-light); padding: 4px 0 0 12px; font-size: 13px; color: var(--ink-muted); }
.sprint__grid span:last-child { border-right: 1px solid var(--line-light); }
.sprint__bars { position: relative; list-style: none; margin: 0; padding: 12px 0 8px; display: grid; gap: 10px; }
.sprint__bar { min-width: max-content; box-sizing: border-box; border-radius: 999px; background: var(--black); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; padding: 11px 16px; white-space: nowrap; overflow: visible; }
.sprint__bar.is-key { background: rgb(var(--accent-rgb)); }
.sprint__chart:not(.is-ready) .sprint__bar { width: auto; }
.sprint__note { margin-top: 20px; max-width: 60ch; color: var(--ink-muted); }

/* Портада: пакет «Старт за 7 дней» — отдельный блок в графике карточки «Консалтинг» (04): точки, красное свечение снизу, шаги с линией */
.start7 { padding-top: 0; background: #fff; }
.start7__card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "main price" "cta plan"; column-gap: clamp(32px, 7vw, 112px); row-gap: 36px; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: #0c0c0c; color: #f4f3ee; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 50px -36px rgba(17, 17, 17, .55); }
.start7__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 14px 14px; -webkit-mask-image: radial-gradient(70% 100% at 72% 100%, #000, transparent 72%); mask-image: radial-gradient(70% 100% at 72% 100%, #000, transparent 72%); }
.start7__card::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(48% 62% at 72% 118%, var(--yellow) 0%, rgba(var(--accent-rgb), .75) 30%, rgba(120, 20, 10, .35) 55%, transparent 76%); opacity: .8; }
.start7__main { grid-area: main; }
.start7 .h2 { color: #fff; margin-top: 12px; }
.start7__lede { margin-top: 18px; color: rgba(255, 255, 255, .78); max-width: 52ch; }
.start7__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.start7__list li { position: relative; padding-left: 26px; color: rgba(255, 255, 255, .9); }
.start7__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--accent-rgb)); }
.start7__price { grid-area: price; display: grid; gap: 10px; align-content: start; }
.start7__term { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8f8f89; }
.start7__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; }
.start7__amount b { font: 800 clamp(2.4rem, 4.4vw, 3.6rem)/1 var(--display); font-variation-settings: "wght" 800, "wdth" 125; color: #fff; text-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.start7__amount s { color: rgba(255, 255, 255, .45); }
.start7__sprint { grid-area: plan; align-self: end; position: relative; padding-top: 30px; }
.start7__days { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); pointer-events: none; }
.start7__days span { border-left: 1px dashed rgba(255, 255, 255, .14); padding-left: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8f8f89; white-space: nowrap; overflow: hidden; }
.start7__days span:last-child { border-right: 1px dashed rgba(255, 255, 255, .14); }
.start7__days em { font-style: normal; }
.start7__bars { position: relative; display: grid; gap: 10px; padding: 14px 0 6px; }
.start7__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: calc(4 / 7 * 100%); min-height: 42px; padding: 0 16px; border-radius: 999px; color: #fff; font-size: 13.5px; white-space: nowrap; }
.start7__bar b { font-weight: 700; }
.start7__bar small { font-size: 11.5px; font-weight: 600; opacity: .72; }
.start7__bar--logo { background: rgb(var(--accent-rgb)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 30px -10px rgba(var(--accent-rgb), .85); }
.start7__bar--site { margin-left: calc(3 / 7 * 100%); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
@media (max-width: 560px) { .start7__days em { display: none; } .start7__days span { padding-left: 6px; } }
.start7__actions { grid-area: cta; align-self: end; display: flex; flex-wrap: wrap; gap: 12px; }
.start7 .btn--telegram { color: #fff; border-color: rgba(255, 255, 255, .35); }
@media (max-width: 860px) {
  .start7__card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "price" "plan" "cta"; row-gap: 28px; }
  .start7__card::before { -webkit-mask-image: radial-gradient(120% 60% at 50% 100%, #000, transparent 72%); mask-image: radial-gradient(120% 60% at 50% 100%, #000, transparent 72%); }
  .start7__card::after { background: radial-gradient(90% 40% at 50% 108%, var(--yellow) 0%, rgba(var(--accent-rgb), .75) 30%, rgba(120, 20, 10, .35) 55%, transparent 76%); }
}
/* Sprint del paquete: las barras se dibujan al aparecer, el logo «respira» con su brillo rojo y el final de la landing late */
.start7__bar { position: relative; transform: scaleX(0); transform-origin: left center; transition: transform 1s cubic-bezier(.22, 1, .36, 1) .25s; }
.start7__bar--site { transition-delay: .85s; }
.start7__card.is-in .start7__bar, .no-js .start7__bar { transform: none; }
.start7__bar--logo { animation: start7-glow 2.8s ease-in-out 1.4s infinite alternate; }
@keyframes start7-glow { from { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 30px -10px rgba(var(--accent-rgb), .7); } to { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 42px -6px rgba(var(--accent-rgb), 1); } }
.start7__bar--site::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: rgb(var(--accent-rgb)); box-shadow: 0 0 0 4px #0c0c0c, 0 0 18px 4px rgba(var(--accent-rgb), .7); animation: bn-pulse 2.8s ease-in-out infinite; }
.start7__days span:last-child { color: #fff; }
@media (prefers-reduced-motion: reduce) { .start7__bar { transform: none; transition: none; } .start7__bar--logo, .start7__bar--site::after { animation: none; } }

/* Paquete «Старт за 7 дней»: precio y sprint juntos a la derecha (sin hueco), botones solos abajo a la izquierda */
.start7__card { grid-template-areas: "main side" "cta ."; row-gap: clamp(40px, 5vw, 64px); padding: clamp(32px, 5vw, 72px); }
.start7__side { grid-area: side; display: grid; align-content: start; gap: clamp(32px, 4vw, 52px); }
.start7__price, .start7__sprint { grid-area: auto; }
.start7__sprint { align-self: start; padding-top: 44px; }
.start7__days span { font-size: 11.5px; }
.start7__bars { gap: 18px; padding: 22px 0 14px; }
.start7__bar { min-height: 54px; padding: 0 20px; font-size: 15px; }
.start7__bar small { font-size: 12.5px; }
.start7__actions { align-self: start; gap: 12px 32px; }
@media (max-width: 860px) { .start7__card { grid-template-areas: "main" "side" "cta"; row-gap: 32px; } }
.start7__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 700; text-decoration: none; transition: border-color .25s ease, gap .25s ease; }
.start7__more:hover { border-color: rgb(var(--accent-rgb)); gap: 12px; }

/* Landing «Старт за 7 дней»: обычная шапка услуги, только на чёрном фоне под прозрачной шапкой сайта */
.page-head--epic { background: #010303; color: #f4f3ee; padding-bottom: clamp(56px, 7vw, 104px); }
.page-head--epic .crumbs, .page-head--epic .crumbs a { color: rgba(255, 255, 255, .55); }
.page-head--epic .page-title { color: #fff; }
.page-head--epic .page-title .hl { white-space: nowrap; }
.page-head--epic .lede { color: rgba(255, 255, 255, .72); }
.page-head--epic .service__facts dt, .page-head--epic .service__price-note { color: rgba(255, 255, 255, .5); }
.page-head--epic .service__facts dd { color: #fff; }
.page-head--epic .btn--outline, .page-head--epic .btn--telegram { border-color: rgba(255, 255, 255, .4); color: #fff; }
.page-head--epic .btn--outline:hover { background: #fff; color: var(--black); }
.page-head--epic + .section { padding-top: clamp(56px, 7vw, 104px); }

/* «Кому подойдёт» стопкой. Слева заголовок (здесь потом будет графика), справа карточки одна под другой.
   При прокрутке каждая следующая наезжает на предыдущую и закрывает её на 80 %: остаётся полоса с номером, как у папок в картотеке.
   Подъезжая, карточка из размытой становится резкой, а когда легла — ставится галочка (js/checkin.js). Без JS стопка тоже работает: всё резкое и отмечено */
.needs-stack { --stack-top: 112px; --card-h: 360px; --peek: calc(var(--card-h) * .2); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.needs-stack__side { position: sticky; top: var(--stack-top); }
.service__needs { margin: 0; padding: 0; list-style: none; counter-reset: need; }
.service__needs::after { content: ""; display: block; height: 18vh; } /* собранная стопка ещё немного стоит, прежде чем уйти */
.service__needs li { --i: 0; --rest: 0; counter-increment: need; position: sticky; top: calc(var(--stack-top) + var(--i) * var(--peek)); display: flex; flex-direction: column; gap: 20px; min-height: var(--card-h); margin-bottom: calc(var(--rest) * var(--peek) + 24px); padding: 22px 28px 32px; border-radius: 26px; border: 1px solid var(--line-light); background: #fff; box-shadow: 0 -18px 40px -28px rgba(17, 17, 17, .32), 0 30px 60px -44px rgba(17, 17, 17, .35); overflow: hidden; color: var(--black); }
.service__needs li:nth-child(2) { --i: 1; }
.service__needs li:nth-child(3) { --i: 2; }
.service__needs li:nth-child(4) { --i: 3; }
.service__needs li:nth-child(5) { --i: 4; }
.service__needs li:nth-child(6) { --i: 5; }
/* Отступ снизу растёт к началу стопки: так в конце она уходит вверх целиком, не складываясь */
.service__needs li:nth-last-child(2) { --rest: 1; }
.service__needs li:nth-last-child(3) { --rest: 2; }
.service__needs li:nth-last-child(4) { --rest: 3; }
.service__needs li:nth-last-child(5) { --rest: 4; }
.service__needs li:nth-last-child(6) { --rest: 5; }
.service__needs li::before { content: counter(need, decimal-leading-zero); font: 800 2.8rem/1 var(--display); font-variation-settings: "wght" 800, "wdth" 125; letter-spacing: -.02em; color: rgb(var(--accent-rgb)); }
.service__needs li:first-child { border-color: #0c0c0c; color: #f4f3ee; background: radial-gradient(95% 70% at 50% 118%, rgba(var(--accent-rgb), .6), rgba(120, 20, 10, .28) 45%, transparent 72%), #0c0c0c; }
.need__body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; }
.need__text { max-width: 26ch; font: 600 clamp(1.3rem, 1.9vw, 1.75rem)/1.3 var(--display); }
/* С графикой карточка выше, но вся стопка всё равно помещается в экран по высоте */
.needs-stack--art { --card-h: clamp(340px, calc((100vh - 152px) / 1.6), 440px); }
.needs-stack--art .need__text { max-width: 30ch; font-size: clamp(1.15rem, 1.5vw, 1.45rem); }
/* Картинка слева под заголовком (прозрачный фон) */
.needs-stack__img { display: block; width: 100%; max-height: calc(100vh - var(--stack-top) - 150px); margin-top: clamp(20px, 3vw, 36px); object-fit: contain; object-position: left top; }
@media (max-width: 860px) {
  .needs-stack { --stack-top: 84px; --card-h: 300px; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .needs-stack--art { --card-h: clamp(320px, calc((100vh - 108px) / 1.6), 400px); }
  .needs-stack--art .need__text { font-size: 1.15rem; }
  .needs-stack__img { display: none; }
  .needs-stack__side { position: static; }
  .service__needs li { padding: 18px 22px 26px; border-radius: 22px; }
  .service__needs li::before { font-size: 2.3rem; }
  .service__needs .need__check { top: 20px; right: 20px; width: 32px; height: 32px; }
  .need__text { font-size: 1.2rem; }
}

/* Галочки, которые ставятся при прокрутке (js/checkin.js). Без JS всё сразу отмечено */
.need__check { position: absolute; top: 24px; right: 24px; width: 36px; height: 36px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.need__check svg, .checkrail__box svg { display: block; overflow: visible; }
.need__check svg { width: 100%; height: 100%; }
.need__check circle { fill: rgb(var(--accent-rgb)); stroke: rgb(var(--accent-rgb)); stroke-width: 1.5; transition: fill .35s ease, stroke .35s ease; }
.need__check path, .checkrail__box path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 18; stroke-dashoffset: 0; transition: stroke-dashoffset .5s .12s cubic-bezier(.65, 0, .35, 1); }
.service__needs.is-live li:not(.is-on) .need__check { transform: scale(.86); }
.service__needs.is-live li:not(.is-on) .need__check circle { fill: rgba(255, 255, 255, 0); stroke: #d9d9d3; }
.service__needs.is-live li:first-child:not(.is-on) .need__check circle { stroke: rgba(255, 255, 255, .3); }
.service__needs.is-live li:not(.is-on) .need__check path { stroke-dashoffset: 18; }

/* Блоки услуги: заголовок и текст — треть ширины, чек-лист — две трети */
.service__splits { display: grid; gap: clamp(96px, 11vw, 160px); }
.service__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .service__split { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Чек-лист с линией: красная линия идёт вниз за скроллом, пройденные пункты получают галочку (как путь на /denis/) */
.checkrail { --cr-bg: var(--paper); --cr-box: 40px; }
.section--white .checkrail { --cr-bg: var(--white); }
.checkrail__label { margin: 0 0 32px; font: 700 12px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.checkrail__track { position: relative; }
.checkrail__rail { position: absolute; left: calc(var(--cr-box) / 2 - 1px); top: calc(var(--cr-box) / 2); bottom: calc(var(--cr-box) / 2); width: 2px; background: #e3e3de; }
.checkrail__fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgb(var(--accent-rgb)); }
.checkrail__dot { display: none; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgb(var(--accent-rgb)); box-shadow: 0 0 0 5px var(--cr-bg); }
.checkrail.is-live .checkrail__fill { height: 0; }
.checkrail.is-live .checkrail__dot { display: block; }
.checkrail__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(34px, 3.6vw, 52px); }
.checkrail__list li { display: grid; grid-template-columns: var(--cr-box) minmax(0, 1fr); column-gap: clamp(20px, 2.4vw, 32px); align-items: center; font: 600 clamp(1.1rem, 1.45vw, 1.32rem)/1.4 var(--display); color: var(--black); transition: color .4s ease; }
.checkrail__box { position: relative; display: grid; place-items: center; width: var(--cr-box); height: var(--cr-box); border-radius: 50%; background: rgb(var(--accent-rgb)); border: 2px solid rgb(var(--accent-rgb)); box-shadow: 0 0 0 8px var(--cr-bg); transition: background-color .35s ease, border-color .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.checkrail__box svg { width: 55%; height: 55%; }
.checkrail.is-live li:not(.is-on) { color: var(--ink-muted); }
.checkrail.is-live li:not(.is-on) .checkrail__box { background-color: var(--cr-bg); border-color: #d9d9d3; transform: scale(.86); }
.checkrail.is-live li:not(.is-on) .checkrail__box path { stroke-dashoffset: 18; }
@media (max-width: 600px) { .checkrail { --cr-box: 34px; } .checkrail__list { gap: 28px; } }
@media (prefers-reduced-motion: reduce) { .need__check, .need__check circle, .need__check path, .checkrail__box, .checkrail__box path, .checkrail__list li { transition: none; } }

/* Страница услуги: над шагами уже есть план по дням, поэтому линия с точками над шагами там не нужна */
.process--plain li { border-top: 0; padding-top: 0; }
.process--plain li::before { display: none; }

/* Иконка в карточке «Кому подойдёт» (public/_need-art.php): крупный стеклянный объект. На широком экране занимает правую половину карточки на всю высоту под шапкой, текст — слева внизу. На телефоне — всё свободное место над текстом */
.need__art { position: relative; flex: 1 1 0; min-height: 0; }
.need__pic { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: right center; }
@media (min-width: 861px) {
  .needs-stack--art .need__art { position: absolute; top: calc(var(--peek) + 4px); right: 32px; bottom: 28px; width: 46%; flex: none; }
  .needs-stack--art .need__copy { max-width: 50%; }
}

/* Карточка «Кому подойдёт»: заголовок темы и текст под ним; слева под «Кому подойдёт» — пояснение */
.need__copy { display: grid; gap: 10px; }
.need__title { margin: 0; font: 800 clamp(1.5rem, 2.2vw, 2.1rem)/1.1 var(--display); font-variation-settings: "wght" 800, "wdth" 125; letter-spacing: -.01em; text-transform: uppercase; color: inherit; }
.needs-stack--art .need__text { max-width: 28ch; font-size: clamp(1.2rem, 1.55vw, 1.5rem); }
.needs-stack__side .lede { max-width: 30ch; }
@media (max-width: 860px) { .needs-stack--art .need__text { font-size: 1.15rem; } .need__title { font-size: 1.4rem; } .needs-stack__side .lede { max-width: none; } }
/* Низкий экран ноутбука: карточка ниже, поэтому всё внутри компактнее — иначе карточки стопки получаются разной высоты */
@media (min-width: 861px) and (max-height: 780px) {
  .needs-stack--art .service__needs li, .needs-stack--art .need__body { gap: 12px; }
  .needs-stack--art .service__needs li { padding-bottom: 24px; }
  .need__title { font-size: 1.45rem; }
  .needs-stack--art .need__text { font-size: 1.1rem; }
  .need__copy { gap: 6px; }
}

/* Плавный переход между страницами сайта (Chrome, Edge, Safari 18.2+; в остальных — обычный переход).
   Шапка получает своё имя и остаётся на месте, страница под ней мягко сменяется. При «уменьшить движение» — выключено */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
