/* ==========================================================================
   Cerrajeros Rápidos Madrid — Estilo "Velocidad / Dark Tech"
   Mobile-first · base 360-375px · breakpoints 768px y 1100px
   ========================================================================== */

:root {
  --black: #0D0D0D;
  --graphite: #1C1C1E;
  --graphite-2: #26262A;
  --graphite-3: #3A3A3D;
  --yellow: #FFD60A;
  --yellow-soft: rgba(255, 214, 10, .14);
  --red: #E01E37;
  --red-text: #FF5468;
  --white: #FFFFFF;
  --text: #EDEDEF;
  --muted: #B8B8BD;
  --ok: #25D366;

  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 64px;
  --bar-h: 64px;

  --glow: 0 0 0 2px rgba(255, 214, 10, .35), 0 0 28px rgba(255, 214, 10, .55);
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--black);
  padding-bottom: var(--bar-h);
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--white); }
button, input, select { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--white);
  margin: 0 0 .6em;
}
h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
strong { color: var(--white); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--yellow); color: var(--black); font-weight: 700;
  padding: .75rem 1rem; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--black); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem); position: relative; }
.section--alt { background: var(--graphite); }
.section__head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { color: var(--muted); font-size: 1.08em; }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-size: .9rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: .9rem;
}
.kicker::before {
  content: ""; width: 34px; height: 4px;
  background: repeating-linear-gradient(-60deg, var(--yellow) 0 6px, transparent 6px 10px);
}
.hl { color: var(--yellow); }
.hl-red { color: var(--red-text); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.4rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  border: 2px solid var(--bg); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: box-shadow .25s var(--ease), transform .2s var(--ease), background .2s, color .2s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn:hover, .btn:focus-visible { box-shadow: var(--glow); transform: translateY(-2px); color: var(--fg); }
.btn--ghost { --bg: transparent; --fg: var(--white); border-color: var(--white); clip-path: none; }
.btn--ghost:hover, .btn--ghost:focus-visible { --fg: var(--black); background: var(--yellow); border-color: var(--yellow); }
.btn--red { --bg: var(--red); --fg: var(--white); }
.btn--red:hover, .btn--red:focus-visible { box-shadow: 0 0 0 2px rgba(224, 30, 55, .4), 0 0 28px rgba(224, 30, 55, .6); }
.btn--block { width: 100%; }
.btn i { font-size: 1.05em; }

/* ---------- Caution tape ---------- */
.tape {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--black) 18px 36px);
}
.tape-band {
  position: relative; overflow: hidden;
  background: var(--yellow); color: var(--black);
  border-block: 6px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--black) 0 10px, var(--yellow) 10px 20px) 6;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(1rem, .9rem + .6vw, 1.35rem);
  transform: rotate(-1.2deg); margin-block: -6px; z-index: 2;
}
.tape-band__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.tape-band__track span { padding: .55rem 1.2rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 1.2rem; }
.tape-band__track span::after { content: "\25B6\25B6"; font-size: .7em; color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Topbar + Header ---------- */
.topbar {
  background: var(--red); color: var(--white); font-size: .85rem; text-align: center; padding: .35rem 1rem;
  font-weight: 500;
}
.topbar a { color: var(--white); font-weight: 700; }
.topbar i { margin-right: .35rem; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 13, 13, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--graphite-3);
}
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--yellow) 0 30%, transparent 30% 33%, var(--yellow) 33% 40%, transparent 40%);
  opacity: .9;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--white); }
.brand img { width: 42px; height: 42px; }
.brand__text { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; line-height: 1; font-size: 1.15rem; letter-spacing: .02em; }
.brand__text span { color: var(--yellow); }
.brand__text small { display: block; font-size: .62rem; letter-spacing: .28em; color: var(--muted); margin-top: .3rem; font-weight: 500; }
.brand:hover { color: var(--white); }

.header__phone {
  display: none; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; letter-spacing: .03em;
  color: var(--black); background: var(--yellow); text-decoration: none;
  padding: .45rem 1rem; border-radius: var(--radius);
  transition: box-shadow .25s var(--ease);
}
.header__phone:hover, .header__phone:focus-visible { color: var(--black); box-shadow: var(--glow); }
.header__phone .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(224, 30, 55, .7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(224, 30, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 30, 55, 0); } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 48px; height: 48px; background: var(--graphite); border: 1px solid var(--graphite-3); border-radius: var(--radius);
  cursor: pointer; padding: 0;
}
.nav-toggle__bar { width: 22px; height: 3px; background: var(--yellow); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  position: fixed; inset: calc(var(--header-h) + 1px) 0 auto 0;
  background: var(--black); border-bottom: 4px solid var(--yellow);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  transform: translateY(-120%); visibility: hidden;
  transition: transform .35s var(--ease), visibility .35s;
}
.nav.is-open { transform: translateY(0); visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: .5rem var(--gutter) 1.25rem; }
.nav__list a {
  display: block; padding: .9rem 0; border-bottom: 1px solid var(--graphite-3);
  font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--white); text-decoration: none;
}
.nav__list a:hover, .nav__list a:focus-visible { color: var(--yellow); }
.nav__cta { margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(3rem, 2rem + 5vw, 6rem);
  background: var(--black);
}
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.55); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(13,13,13,.97) 0%, rgba(13,13,13,.88) 45%, rgba(13,13,13,.55) 100%),
    linear-gradient(0deg, rgba(255,214,10,.10), rgba(255,214,10,.10));
  mix-blend-mode: normal;
}
.speedlines { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.speedlines span {
  position: absolute; height: 2px; left: -40%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--yellow));
  transform: rotate(-14deg); opacity: .55;
  animation: zoom 2.8s linear infinite;
}
.speedlines span:nth-child(1) { top: 18%; animation-delay: 0s; }
.speedlines span:nth-child(2) { top: 34%; animation-delay: .9s; width: 25%; }
.speedlines span:nth-child(3) { top: 52%; animation-delay: 1.6s; }
.speedlines span:nth-child(4) { top: 70%; animation-delay: .4s; width: 30%; background: linear-gradient(90deg, transparent, var(--red)); }
.speedlines span:nth-child(5) { top: 86%; animation-delay: 2.1s; width: 20%; }
.speedlines span:nth-child(6) { top: 8%; animation-delay: 1.2s; width: 18%; height: 1px; }
@keyframes zoom { from { transform: translateX(0) rotate(-14deg); } to { transform: translateX(380%) rotate(-14deg); } }

.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(224, 30, 55, .14); border: 1px solid rgba(224, 30, 55, .55); color: var(--white);
  padding: .35rem .9rem; border-radius: 14px; font-size: .85rem; line-height: 1.35; font-weight: 500; margin-bottom: 1.1rem;
}
.hero__eyebrow i { color: var(--red-text); }
.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 5.4vw, 5.4rem);
  line-height: .95; margin-bottom: .35em;
  font-style: italic; letter-spacing: -.005em;
}
.hero h1 .hl { display: block; text-shadow: 0 0 34px rgba(255, 214, 10, .35); }
.hero__rotator {
  font-family: var(--font-head); text-transform: uppercase; font-size: clamp(1.35rem, 1.05rem + 1.7vw, 2.3rem);
  line-height: 1.2; margin-bottom: 1.1rem; color: var(--white); min-height: 2.4em;
}
.rotator-word { color: var(--yellow); border-bottom: 3px solid var(--red); }
.rotator-caret { display: inline-block; width: 3px; height: 1em; background: var(--yellow); margin-left: 2px; vertical-align: -.1em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__text { color: var(--muted); max-width: 560px; font-size: 1.08em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-block: 1.6rem 1.4rem; }
.hero__ctas .btn { flex: 1 1 240px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.badges li {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 500;
  background: rgba(28, 28, 30, .85); border: 1px solid var(--graphite-3); border-radius: 6px; padding: .4rem .7rem;
}
.badges i { color: var(--yellow); }

/* Gauge */
.gauge-wrap { position: relative; max-width: 420px; width: 100%; margin-inline: auto; }
.gauge-wrap::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 10, .22), transparent 65%); filter: blur(10px); z-index: -1;
}
.gauge { width: 100%; height: auto; overflow: visible; }
.gauge .bezel { fill: #121214; stroke: var(--graphite-3); stroke-width: 3; }
.gauge .bezel-in { fill: none; stroke: #2a2a2e; stroke-width: 1; stroke-dasharray: 3 5; }
.gauge .crown { fill: var(--graphite-3); }
.gauge .crown-top { fill: var(--yellow); }
.gauge .track { fill: none; stroke: #2a2a2e; stroke-width: 12; stroke-linecap: round; }
.gauge .progress {
  fill: none; stroke: var(--yellow); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 527.8; stroke-dashoffset: 527.8;
  filter: drop-shadow(0 0 6px rgba(255, 214, 10, .8));
}
.gauge .redzone { fill: none; stroke: var(--red); stroke-width: 5; }
.gauge .tk { stroke: #8a8a90; stroke-width: 2; }
.gauge .tk--m { stroke: var(--white); stroke-width: 3; }
.gauge .tk--r { stroke: var(--red-text); }
.gauge .tl { fill: var(--muted); font-family: var(--font-head); font-size: 13px; text-anchor: middle; }
.gauge .needle { fill: var(--yellow); transform-origin: 150px 160px; transform: rotate(-120deg); filter: drop-shadow(0 0 5px rgba(255, 214, 10, .7)); }
.gauge .hub { fill: var(--black); stroke: var(--yellow); stroke-width: 2; }
.gauge .readout { fill: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 38px; text-anchor: middle; letter-spacing: 1px; }
.gauge .readout tspan.u { fill: var(--yellow); font-size: 20px; }
.gauge .readout-lbl { fill: var(--muted); font-family: var(--font-head); font-size: 11px; letter-spacing: 3px; text-anchor: middle; }
.gauge.is-on .progress { animation: fill 2.4s var(--ease) .3s forwards; }
.gauge.is-on .needle { animation: sweep 2.4s var(--ease) .3s forwards; }
@keyframes fill { to { stroke-dashoffset: 58; } }
@keyframes sweep {
  0% { transform: rotate(-120deg); }
  70% { transform: rotate(104deg); }
  85% { transform: rotate(92deg); }
  100% { transform: rotate(96deg); }
}
.gauge-caption {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(-2deg);
  background: var(--red); color: var(--white); white-space: nowrap;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: clamp(1rem, .9rem + .5vw, 1.25rem);
  padding: .35rem 1rem; box-shadow: var(--shadow);
}

/* ---------- Stats ---------- */
.stats { background: var(--graphite); border-block: 1px solid var(--graphite-3); }
.stats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid var(--graphite-3); border-bottom: 1px solid var(--graphite-3); position: relative; }
.stat:nth-child(2n) { border-right: 0; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 1.8rem + 3vw, 3.8rem); line-height: 1; color: var(--yellow); }
.stat__num small { font-size: .45em; color: var(--white); margin-left: .15em; }
.stat__label { display: block; margin-top: .45rem; color: var(--muted); font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Services ---------- */
.services__grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card {
  position: relative; background: var(--graphite); border: 1px solid var(--graphite-3); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow), 0 18px 40px rgba(255, 214, 10, .12); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--black); }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.75); transition: transform .6s var(--ease), filter .4s; }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0) 30%, rgba(28,28,30,1) 100%), linear-gradient(135deg, rgba(255,214,10,.28), rgba(224,30,55,.18));
  mix-blend-mode: normal;
}
.card:hover .card__media img { transform: scale(1.06); filter: grayscale(.3) contrast(1.1) brightness(.85); }
.card__icon {
  position: absolute; left: 1.1rem; bottom: 10px; z-index: 2;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--yellow); color: var(--black); font-size: 1.35rem;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.card__body { padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .45rem; }
.card__body p { color: var(--muted); font-size: .97rem; }
.card__tag {
  margin-top: auto; align-self: flex-start;
  font-family: var(--font-head); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--yellow); display: inline-flex; gap: .4rem; align-items: center;
}

/* ---------- Why ---------- */
.why__grid { display: grid; gap: 2.5rem; align-items: center; }
.why__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.why__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.7); aspect-ratio: 4 / 3; }
.why__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,214,10,.35), rgba(13,13,13,.4) 55%, rgba(224,30,55,.35)); mix-blend-mode: multiply; }
.why__media-badge {
  position: absolute; z-index: 2; right: 1rem; bottom: 1rem;
  background: var(--black); border-left: 5px solid var(--yellow); padding: .8rem 1rem; max-width: 70%;
  font-family: var(--font-head); text-transform: uppercase; line-height: 1.15;
}
.why__media-badge strong { display: block; font-size: 2rem; color: var(--yellow); }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.why__item { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; padding: 1.1rem; background: var(--black); border: 1px solid var(--graphite-3); border-radius: var(--radius); }
.why__item i { width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.5rem; color: var(--yellow); background: var(--yellow-soft); border-radius: var(--radius); }
.why__item h3 { margin-bottom: .3rem; font-size: 1.25rem; }
.why__item p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; counter-reset: step; }
.step {
  position: relative; padding: 1.6rem 1.4rem 1.5rem; background: var(--graphite); border-radius: var(--radius-lg);
  border-top: 4px solid var(--yellow); overflow: hidden;
}
.step__num {
  position: absolute; right: .6rem; top: -.6rem; font-family: var(--font-head); font-weight: 700;
  font-size: 6.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 214, 10, .35); font-style: italic;
}
.step i { font-size: 1.8rem; color: var(--yellow); margin-bottom: .8rem; display: block; }
.step h3 { font-size: 1.6rem; }
.step p { color: var(--muted); margin: 0; }
.step__time { display: inline-block; margin-top: .9rem; font-family: var(--font-head); color: var(--black); background: var(--yellow); padding: .15rem .6rem; letter-spacing: .06em; font-size: .9rem; }

/* ---------- Prices ---------- */
.prices__grid { display: grid; gap: 1.2rem; }
.price {
  background: var(--black); border: 1px solid var(--graphite-3); border-radius: var(--radius-lg); padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column; position: relative;
}
.price--featured { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow), 0 0 40px rgba(255, 214, 10, .12); }
.price__flag { position: absolute; top: -12px; right: 1rem; background: var(--red); color: var(--white); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; padding: .2rem .6rem; }
.price__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .2rem; }
.price__head i { color: var(--yellow); font-size: 1.4rem; }
.price__head h3 { margin: 0; }
.price__hours { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.price__from { font-family: var(--font-head); font-size: 1rem; text-transform: uppercase; color: var(--muted); margin: 0; }
.price__amount { font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--white); margin-bottom: 1rem; }
.price__amount span { color: var(--yellow); font-size: .55em; }
.price__list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.price__list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--graphite-3); padding-bottom: .45rem; font-size: .95rem; }
.price__list li span:last-child { color: var(--yellow); font-weight: 700; white-space: nowrap; }
.price .btn { margin-top: auto; }
.legal-note { margin-top: 1.6rem; font-size: .88rem; color: var(--muted); border-left: 4px solid var(--red); padding: .8rem 1rem; background: rgba(224, 30, 55, .07); }

/* ---------- Districts ---------- */
.districts { position: relative; isolation: isolate; overflow: hidden; }
.districts__bg { position: absolute; inset: 0; z-index: -2; }
.districts__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.35); }
.districts::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,13,13,.96), rgba(13,13,13,.9) 50%, rgba(13,13,13,.97)); }
.districts__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: .7rem; }
.district {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .3rem 1rem;
  padding: .9rem 1rem; background: rgba(28, 28, 30, .88); border: 1px solid var(--graphite-3); border-radius: var(--radius);
  transition: border-color .25s, transform .25s var(--ease);
}
.district:hover { border-color: var(--yellow); transform: translateX(4px); }
.district h3 { font-size: 1.12rem; margin: 0; }
.district p { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.district__time { font-family: var(--font-head); font-size: 1.05rem; color: var(--yellow); white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.district__bar { grid-column: 1 / -1; height: 4px; background: var(--graphite-3); border-radius: 4px; overflow: hidden; }
.district__bar span { display: block; height: 100%; width: var(--w, 60%); background: linear-gradient(90deg, var(--yellow), var(--red)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.is-visible .district__bar span { transform: scaleX(1); }
.districts__note { margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }

/* ---------- Testimonials ---------- */
.testimonials__grid { display: grid; gap: 1.1rem; }
.quote { margin: 0; padding: 1.6rem 1.4rem; background: var(--black); border: 1px solid var(--graphite-3); border-radius: var(--radius-lg); position: relative; display: flex; flex-direction: column; }
.quote::before { content: "\201C"; position: absolute; right: 1rem; top: -.6rem; font-family: var(--font-head); font-size: 6rem; color: var(--yellow); opacity: .25; line-height: 1; }
.quote__stars { color: var(--yellow); margin-bottom: .7rem; letter-spacing: 2px; }
.quote blockquote { margin: 0 0 1.2rem; color: var(--text); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .8rem; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--black); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.quote__name { font-weight: 700; color: var(--white); display: block; }
.quote__meta { font-size: .85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 880px; margin-inline: auto; display: grid; gap: .7rem; }
.faq__item { background: var(--graphite); border: 1px solid var(--graphite-3); border-radius: var(--radius); overflow: hidden; }
.faq__item[open] { border-color: var(--yellow); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.2rem; position: relative;
  font-family: var(--font-head); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); text-transform: uppercase; letter-spacing: .02em; color: var(--white);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
  background: var(--yellow); color: var(--black); border-radius: 6px; transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { content: "\2212"; background: var(--red); color: var(--white); }
.faq__item summary h3 { display: inline; font-size: inherit; margin: 0; }
.faq__answer { padding: 0 1.2rem 1.2rem; color: var(--muted); }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 1.6rem; }
.form { background: var(--black); border: 1px solid var(--graphite-3); border-top: 5px solid var(--yellow); border-radius: var(--radius-lg); padding: clamp(1.3rem, 1rem + 2vw, 2.2rem); }
.form h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.form__row { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 500; font-size: .95rem; color: var(--white); }
.field input, .field select {
  width: 100%; min-height: 50px; padding: .7rem .9rem; color: var(--white);
  background: var(--graphite); border: 2px solid var(--graphite-3); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%), linear-gradient(135deg, var(--yellow) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.field input::placeholder { color: #8d8d93; }
.field input:focus, .field select:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 214, 10, .25); }
.field.has-error input, .field.has-error select { border-color: var(--red-text); }
.field__error { min-height: 1.1em; font-size: .85rem; color: var(--red-text); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: .4rem; }
.check input { width: 20px; height: 20px; accent-color: var(--yellow); margin-top: .15rem; flex-shrink: 0; }
.form__status { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius); display: none; }
.form__status.is-ok { display: block; background: rgba(37, 211, 102, .12); border: 1px solid var(--ok); color: var(--white); }
.form__status.is-error { display: block; background: rgba(224, 30, 55, .12); border: 1px solid var(--red); color: var(--white); }
.contact__info { display: grid; gap: 1rem; align-content: start; }
.info-card { background: var(--black); border: 1px solid var(--graphite-3); border-radius: var(--radius-lg); padding: 1.3rem; }
.info-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.info-card li { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; align-items: start; }
.info-card li i { color: var(--yellow); margin-top: .3rem; }
.info-card a { color: var(--white); }
.info-card a:hover { color: var(--yellow); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--graphite-3); background: var(--graphite); }
.map iframe { width: 100%; height: 300px; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }

/* ---------- Final CTA ---------- */
.cta-final { background: var(--yellow); color: var(--black); position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-60deg, transparent 0 40px, rgba(0,0,0,.06) 40px 80px); }
.cta-final__inner { position: relative; display: grid; gap: 1.2rem; align-items: center; padding-block: clamp(2.2rem, 1.8rem + 2vw, 3.4rem); }
.cta-final h2 { color: var(--black); margin: 0; font-size: clamp(1.9rem, 1.3rem + 3vw, 3.2rem); font-style: italic; }
.cta-final p { margin: .4rem 0 0; font-weight: 500; }
.cta-final .btn { --bg: var(--black); --fg: var(--yellow); }
.cta-final .btn:hover { box-shadow: 0 0 0 3px rgba(13,13,13,.25), 0 10px 30px rgba(0,0,0,.35); }
.cta-final__btns { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Footer ---------- */
.footer { background: #070707; padding-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); color: var(--muted); font-size: .95rem; }
.footer__grid { display: grid; gap: 2rem; }
.footer__logo { width: 260px; height: auto; margin-bottom: 1rem; }
.footer h2 { font-size: 1.15rem; letter-spacing: .1em; color: var(--yellow); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--yellow); text-decoration: underline; }
.footer address { font-style: normal; display: grid; gap: .5rem; }
.footer address i { color: var(--yellow); width: 1.3em; }
.footer__districts { font-size: .85rem; line-height: 1.7; }
.footer__bottom { margin-top: 2.5rem; padding-block: 1.3rem; border-top: 1px solid var(--graphite-3); display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; font-size: .85rem; }
.footer__legal { display: flex !important; flex-wrap: wrap; gap: .4rem 1.2rem !important; }

/* ---------- Mobile bar + floating ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: var(--bar-h);
  display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -8px 24px rgba(0,0,0,.5);
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--font-head); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; font-weight: 600; }
.mobile-bar__call { background: var(--yellow); color: var(--black); }
.mobile-bar__mail { background: var(--graphite); color: var(--white); border-top: 2px solid var(--yellow); }
.mobile-bar a:hover { color: inherit; filter: brightness(1.05); }

.float { display: none; }
.float-call {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 90;
  width: 68px; height: 68px; border-radius: 50%; place-items: center;
  background: var(--yellow); color: var(--black); font-size: 1.6rem; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.float-call::before, .float-call::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--yellow); animation: pulse 2s var(--ease) infinite; }
.float-call::after { animation-delay: 1s; }
.float-call:hover { color: var(--black); box-shadow: var(--glow); }
.float-label {
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: var(--black); color: var(--yellow); border: 1px solid var(--yellow);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; padding: .3rem .7rem;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Cookies ---------- */
.cookies {
  position: fixed; left: .75rem; right: .75rem; bottom: calc(var(--bar-h) + .75rem); z-index: 200;
  background: var(--graphite); border: 1px solid var(--graphite-3); border-top: 4px solid var(--yellow); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow); font-size: .9rem;
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0 0 .8rem; color: var(--text); }
.cookies__btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookies .btn { min-height: 42px; font-size: .95rem; padding: .5rem 1rem; flex: 1 1 auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.page-hero { background: var(--graphite); padding-block: 2.5rem 2rem; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 3vw, 3.4rem); font-style: italic; margin-bottom: .3rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--graphite-3); }
.legal { max-width: 860px; }
.legal h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-top: 2.2rem; color: var(--yellow); }
.legal h3 { font-size: 1.2rem; margin-top: 1.4rem; }
.legal p, .legal li { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--graphite-3); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.legal th { background: var(--graphite); color: var(--yellow); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.legal .placeholder { background: rgba(255, 214, 10, .15); color: var(--yellow); padding: 0 .25rem; border-radius: 3px; }
.table-wrap { overflow-x: auto; }

/* ==========================================================================
   >= 768px
   ========================================================================== */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .float { display: grid; }
  .cookies { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 420px; }
  .header__phone { display: inline-flex; }

  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--graphite-3); }
  .stat:last-child { border-right: 0; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .prices__grid { grid-template-columns: repeat(3, 1fr); }
  .districts__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cta-final__inner { grid-template-columns: 1fr auto; }
  .map iframe { height: 340px; }
}

/* ==========================================================================
   >= 1100px
   ========================================================================== */
@media (min-width: 1100px) {
  :root { --header-h: 78px; }
  .nav-toggle { display: none; }
  .nav {
    position: static; transform: none; visibility: visible; background: none; border: 0; max-height: none; overflow: visible;
  }
  .nav__list { display: flex; gap: 1.6rem; padding: 0; }
  .nav__list a { border: 0; padding: .4rem 0; font-size: 1rem; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav__list a:hover::after, .nav__list a:focus-visible::after { transform: scaleX(1); }
  .nav__cta { display: none; }
  .header__inner { gap: 2rem; }
  .brand { margin-right: auto; }

  .hero__grid { grid-template-columns: 1.25fr .9fr; gap: 3rem; }
  .services__grid { grid-template-columns: repeat(4, 1fr); }
  .why__grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .districts__grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(4, 1fr); }
  .contact__grid { grid-template-columns: 1.15fr .85fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .speedlines { display: none; }
  .tape-band__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .gauge .progress { stroke-dashoffset: 58; }
  .gauge .needle { transform: rotate(96deg); }
  .district__bar span { transform: scaleX(1); }
  .rotator-caret { animation: none; }
}
