:root {
  --red: #e31e24;
  --red-dark: #b60810;
  --orange: #ff8a1f;
  --yellow: #ffc928;
  --ink: #111214;
  --ink-soft: #202124;
  --paper: #f7f4ef;
  --white: #ffffff;
  --muted: #6f7074;
  --line: rgba(17, 18, 20, 0.15);
  --shadow: 0 22px 60px rgba(13, 13, 15, 0.13);
  --display: "Arial Narrow", "Roboto Condensed", Impact, Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -80px;
  z-index: 9999;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 3px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(17, 18, 20, 0.88);
  color: var(--white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(17, 18, 20, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.header-inner {
  width: min(1220px, calc(100% - 48px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 47px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  clip-path: polygon(50% 0, 100% 23%, 89% 87%, 15% 100%, 0 31%);
  transform: rotate(-4deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 3px;
  right: -4px;
  bottom: 7px;
  background: var(--yellow);
  transform: rotate(-22deg);
}

.brand-mark span {
  font: 900 1.65rem/1 var(--display);
  transform: rotate(4deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font: 800 1.18rem/1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.045em;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.8);
}

.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.main-nav > a:hover::after,
.main-nav > a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  padding: 12px 18px;
  background: var(--red);
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--orange);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: 780px;
  padding-top: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 138, 31, 0.2), transparent 20%),
    linear-gradient(115deg, var(--ink) 0 58%, #191a1d 58% 100%);
}

.hero::before {
  content: "";
  position: absolute;
  right: -11vw;
  top: 0;
  width: 48vw;
  min-width: 560px;
  height: 100%;
  background: linear-gradient(155deg, var(--red) 0 48%, var(--red-dark) 48% 69%, var(--orange) 69% 82%, var(--yellow) 82%);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%, 24% 63%, 10% 31%);
}

.hero-grid {
  position: absolute;
  inset: 82px 0 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.hero-slash {
  position: absolute;
  height: 9px;
  background: var(--yellow);
  transform: rotate(-23deg);
  box-shadow: 0 0 28px rgba(255, 201, 40, 0.25);
}

.hero-slash-one {
  left: 50%;
  top: 22%;
  width: 125px;
}

.hero-slash-two {
  left: 5%;
  bottom: 13%;
  width: 70px;
  background: var(--red);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 80px;
  padding: 75px 0 105px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 2px;
  background: currentColor;
}

.eyebrow.dark {
  color: var(--red);
}

.eyebrow.light {
  color: var(--yellow);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font: 800 clamp(4rem, 7.6vw, 7.35rem)/0.82 var(--display);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.68);
  font-style: italic;
}

.hero-lead {
  max-width: 660px;
  margin: 31px 0 0;
  color: rgba(255, 255, 255, 0.69);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.btn-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 13px 32px rgba(227, 30, 36, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--orange);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}

.hero-phones {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.82);
  font: 600 0.84rem var(--body);
}

.hero-phones > span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-phones i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--yellow);
}

.hero-phones a:hover {
  color: var(--yellow);
}

.hero-panel {
  position: relative;
  min-height: 485px;
  padding: 28px 35px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 24px 28px 0 rgba(17, 18, 20, 0.27), var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% 91%, 88% 100%, 0 100%);
}

.hero-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(var(--red) 0 60%, var(--orange) 60% 80%, var(--yellow) 80%);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-title {
  margin: 28px 0 14px;
  color: var(--red);
  font: 800 1.25rem var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-panel li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font: 800 clamp(2.15rem, 4vw, 3.25rem)/1 var(--display);
  text-transform: uppercase;
  transition: padding-left 0.2s ease, color 0.2s ease;
}

.hero-panel li:hover {
  padding-left: 8px;
  color: var(--red);
}

.hero-panel li span {
  color: var(--red);
  font: 700 0.64rem var(--body);
}

.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.panel-foot .arrow {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
}

.hero-index {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero-index span:nth-child(even) {
  color: var(--yellow);
}

.service-strip {
  overflow: hidden;
  background: var(--red);
  color: var(--white);
  transform: rotate(-0.8deg) scale(1.02);
  transform-origin: center;
}

.marquee-track {
  width: max-content;
  min-width: 100%;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
  animation: marquee 24s linear infinite;
  font: 800 1.52rem var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.marquee-track i {
  color: var(--yellow);
  font-size: 0.72rem;
}

@keyframes marquee {
  to { transform: translateX(-35%); }
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 54px;
}

.section-heading h2,
.valuation-copy h2,
.procedures-copy h2,
.video-copy h2,
.contact-copy h2 {
  margin: 0;
  font: 800 clamp(3.25rem, 6.6vw, 6.2rem)/0.88 var(--display);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.section-heading h2 em,
.valuation-copy h2 em,
.procedures-copy h2 em,
.video-copy h2 em,
.contact-copy h2 em {
  color: var(--red);
  font-style: italic;
}

.section-intro {
  margin: 0 0 7px;
  padding-left: 22px;
  border-left: 3px solid var(--red);
  color: var(--muted);
  line-height: 1.8;
}

.services-section {
  padding-top: 145px;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(17, 18, 20, 0.04) 50%, transparent 50.1%),
    var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 170px;
  height: 170px;
  border: 26px solid rgba(227, 30, 36, 0.05);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.service-card:hover {
  z-index: 2;
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  background: var(--white);
}

.service-card:hover::after {
  transform: rotate(60deg) scale(1.08);
}

.service-card-featured {
  background: var(--red);
  color: var(--white);
}

.service-card-featured::after {
  border-color: rgba(255, 255, 255, 0.11);
}

.service-card-featured:hover {
  background: var(--red-dark);
}

.service-card-dark {
  background: var(--ink);
  color: var(--white);
}

.service-card-dark:hover {
  background: #242529;
}

.card-number {
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.service-card-featured .card-number,
.service-card-dark .card-number {
  color: var(--yellow);
}

.card-symbol {
  width: 50px;
  height: 50px;
  margin: 24px 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--red);
  font: 500 1.45rem var(--display);
  transform: rotate(-5deg);
}

.service-card-featured .card-symbol,
.service-card-dark .card-symbol {
  color: var(--white);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin: 26px 0 9px;
  font: 800 2rem var(--display);
  text-transform: uppercase;
}

.service-card p {
  position: relative;
  z-index: 1;
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.service-card-featured p,
.service-card-dark p {
  color: rgba(255, 255, 255, 0.68);
}

.service-card a {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  color: inherit;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.procedures-section {
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.procedures-section::before {
  content: "TRÁMITES";
  position: absolute;
  left: -22px;
  bottom: -60px;
  color: rgba(255, 255, 255, 0.025);
  font: 900 14rem var(--display);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.procedure-shape {
  position: absolute;
  right: -9%;
  top: 0;
  width: 39%;
  height: 100%;
  background: linear-gradient(165deg, var(--red) 0 53%, var(--orange) 53% 72%, var(--yellow) 72% 80%, transparent 80%);
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%, 26% 55%);
  opacity: 0.78;
}

.procedures-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 95px;
  align-items: start;
}

.procedures-copy {
  position: sticky;
  top: 125px;
}

.procedures-copy h2 em,
.video-copy h2 em,
.contact-copy h2 em {
  color: var(--yellow);
}

.procedures-copy > p:not(.eyebrow),
.video-copy > p:not(.eyebrow),
.contact-copy > p:not(.eyebrow) {
  max-width: 440px;
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.61);
  line-height: 1.8;
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: var(--yellow);
}

.procedure-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(17, 18, 20, 0.42);
  backdrop-filter: blur(8px);
}

.procedure-list article {
  min-height: 86px;
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: padding-left 0.23s ease, background 0.23s ease;
}

.procedure-list article:hover {
  padding-left: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.procedure-list article > span {
  color: var(--yellow);
  font-size: 0.62rem;
  font-weight: 700;
}

.procedure-list h3 {
  margin: 0;
  font: 700 clamp(1.35rem, 2.5vw, 2rem) var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.procedure-list b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.valuation-section {
  background: var(--white);
}

.valuation-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) 1fr;
  align-items: center;
  gap: 100px;
}

.valuation-visual {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(17, 18, 20, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 20, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.valuation-visual::before,
.valuation-visual::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 70px;
  background: var(--red);
  transform: rotate(-30deg);
}

.valuation-visual::before {
  left: -105px;
  top: 38px;
}

.valuation-visual::after {
  right: -85px;
  bottom: 34px;
  background: var(--orange);
}

.valuation-core {
  position: relative;
  z-index: 1;
  width: 245px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  transform: rotate(-3deg);
  box-shadow: 17px 17px 0 var(--red);
}

.valuation-core > * {
  transform: rotate(3deg);
}

.valuation-core > span {
  color: var(--yellow);
  font: 900 5rem/1 var(--display);
  letter-spacing: -0.08em;
}

.valuation-core strong {
  margin-top: 8px;
  font: 800 1.75rem var(--display);
  text-transform: uppercase;
}

.valuation-core small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.measure {
  position: absolute;
  left: 26px;
  right: 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.measure i {
  height: 1px;
  background: var(--line);
}

.measure-top { top: 25px; }
.measure-bottom { bottom: 25px; }

.valuation-copy h2 {
  font-size: clamp(3.2rem, 5.8vw, 5.7rem);
}

.valuation-items {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.valuation-items > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.valuation-items > div > span {
  padding-top: 6px;
  color: var(--red);
  font-size: 0.67rem;
  font-weight: 700;
}

.valuation-items h3 {
  margin: 0 0 6px;
  font: 800 1.7rem var(--display);
  text-transform: uppercase;
}

.valuation-items p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  gap: 24px;
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.succession-section {
  background: var(--paper);
}

.section-heading.compact {
  margin-bottom: 45px;
}

.succession-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.succession-grid article {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 42px rgba(17, 18, 20, 0.05);
  overflow: hidden;
}

.succession-grid article::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--orange) 50% 78%, var(--yellow) 78%);
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.succession-grid article:hover::after {
  transform: scaleX(1);
}

.succession-grid article > span {
  color: var(--red);
  font-size: 0.67rem;
  font-weight: 700;
}

.succession-grid h3 {
  margin: 62px 0 12px;
  font: 800 2.1rem/1 var(--display);
  text-transform: uppercase;
}

.succession-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.video-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, rgba(227, 30, 36, 0.25), transparent 26%),
    var(--ink);
  color: var(--white);
}

.video-section::before {
  content: "";
  position: absolute;
  left: -60px;
  top: -120px;
  width: 270px;
  height: 500px;
  border: 52px solid rgba(255, 255, 255, 0.035);
  transform: rotate(31deg);
}

.video-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 95px;
}

.video-copy h2 {
  font-size: clamp(3.7rem, 6vw, 6rem);
}

.video-index {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin-top: 50px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.video-index i {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.video-frame {
  position: relative;
  width: min(100%, 390px);
  justify-self: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 24px 24px 0 rgba(227, 30, 36, 0.3);
}

.video-frame video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(135deg, rgba(227, 30, 36, 0.17), transparent 50%),
    #070708;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  z-index: 0;
  inset: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(227, 30, 36, 0.24), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 40px, rgba(255, 255, 255, 0.025) 40px 41px),
    #070708;
  color: var(--white);
}

.video-placeholder span {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 1.3rem;
  text-indent: 4px;
}

.video-placeholder strong {
  font: 800 1.7rem var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.video-placeholder small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.video-frame.has-video .video-placeholder {
  display: none;
}

.video-corner {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-color: var(--yellow);
  pointer-events: none;
}

.video-corner-one {
  left: -8px;
  top: -8px;
  border-left: 3px solid var(--yellow);
  border-top: 3px solid var(--yellow);
}

.video-corner-two {
  right: -8px;
  bottom: -8px;
  border-right: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
}

.directory-section {
  background: var(--white);
}

.directory-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 44px;
}

.directory-head h2 {
  margin: 0;
  font: 800 clamp(3.1rem, 6vw, 5.8rem)/0.9 var(--display);
  text-transform: uppercase;
}

.directory-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.directory-list > div {
  min-height: 75px;
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  gap: 18px;
  padding: 15px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.directory-list > div:hover {
  padding-left: 28px;
  background: var(--red);
  color: var(--white);
}

.directory-list span {
  color: var(--red);
  font-size: 0.64rem;
  font-weight: 700;
}

.directory-list > div:hover span {
  color: var(--yellow);
}

.directory-list p {
  margin: 0;
  font: 700 1.15rem var(--display);
  text-transform: uppercase;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 115px 0;
  background: var(--red);
  color: var(--white);
}

.contact-section::after {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -190px;
  width: 640px;
  height: 370px;
  background: var(--orange);
  transform: rotate(-24deg);
  box-shadow: -160px 0 0 var(--yellow);
}

.contact-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: linear-gradient(135deg, transparent 46%, #fff 47% 48%, transparent 49%);
  background-size: 55px 55px;
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: end;
  gap: 90px;
}

.contact-copy h2 {
  font-size: clamp(4rem, 7vw, 7rem);
}

.contact-actions {
  display: grid;
  gap: 11px;
}

.contact-actions > a {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(131, 0, 5, 0.18);
  transition: transform 0.22s ease, background 0.22s ease;
}

.contact-actions > a:hover,
.contact-actions > a:focus-visible {
  transform: translateX(-8px);
  background: var(--yellow);
}

.contact-actions span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-actions small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-actions strong {
  font: 800 clamp(1.75rem, 3.2vw, 2.75rem) var(--display);
  letter-spacing: 0.02em;
}

.contact-actions b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--white);
  font-weight: 400;
}

.site-footer {
  background: #0b0b0c;
  color: var(--white);
}

.footer-inner {
  width: min(1160px, calc(100% - 48px));
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 60px;
}

.footer-nav,
.footer-phones {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.72rem;
}

.footer-phones {
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}

.footer-nav a:hover,
.footer-phones a:hover {
  color: var(--yellow);
}

.footer-bottom {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.floating-call {
  position: fixed;
  z-index: 800;
  right: 24px;
  bottom: 23px;
  min-height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 2px solid var(--white);
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.floating-call:hover,
.floating-call:focus-visible {
  transform: translateY(-4px);
  background: var(--orange);
}

.back-to-top {
  position: fixed;
  z-index: 790;
  left: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  animation-delay: 0.12s;
}

.reveal.is-visible {
  animation: reveal-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: 1fr 390px;
    gap: 35px;
  }

  .hero::before {
    right: -27vw;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 8vw, 6rem);
  }

  .procedures-layout,
  .valuation-grid {
    gap: 55px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-phones {
    grid-column: 2;
  }
}

@media (max-width: 880px) {
  html {
    scroll-padding-top: 74px;
  }

  .header-inner {
    width: min(100% - 30px, 1220px);
    height: 72px;
  }

  .brand-copy strong { font-size: 1rem; }
  .brand-copy small { font-size: 0.53rem; }
  .brand-mark { width: 42px; }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto;
    max-height: 0;
    display: grid;
    gap: 0;
    overflow: hidden;
    background: rgba(17, 18, 20, 0.98);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.22);
    transition: max-height 0.34s ease;
  }

  .main-nav.open {
    max-height: 440px;
  }

  .main-nav > a:not(.nav-cta),
  .nav-cta {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-cta {
    background: var(--red);
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero::before {
    right: -210px;
    top: auto;
    bottom: 0;
    width: 570px;
    height: 58%;
    opacity: 0.8;
  }

  .hero-grid { inset: 72px 0 0; }

  .hero-inner {
    width: min(100% - 30px, 680px);
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 80px 0 110px;
  }

  .hero h1 {
    font-size: clamp(4.1rem, 14vw, 6.6rem);
  }

  .hero-panel {
    width: min(100%, 560px);
    min-height: 440px;
    justify-self: center;
  }

  .hero-panel li { font-size: 2.75rem; }

  .section { padding: 90px 0; }
  .section-shell { width: min(100% - 30px, 720px); }

  .section-heading,
  .section-heading.compact,
  .procedures-layout,
  .valuation-grid,
  .video-layout,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .section-intro { max-width: 540px; }

  .service-grid { grid-template-columns: 1fr 1fr; }

  .procedures-copy { position: static; }
  .procedure-shape { width: 70%; opacity: 0.35; }

  .valuation-visual {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .succession-grid { grid-template-columns: 1fr; }
  .succession-grid article { min-height: 220px; }
  .succession-grid h3 { margin-top: 44px; }

  .video-copy { max-width: 520px; }

  .directory-list { grid-template-columns: 1fr; }

  .contact-actions { width: min(100%, 540px); }

  .footer-inner {
    width: min(100% - 30px, 720px);
    grid-template-columns: 1fr 1fr;
    padding: 42px 0;
    gap: 35px;
  }

  .footer-phones { grid-column: auto; }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }
  .footer-bottom { width: min(100% - 30px, 720px); }
}

@media (max-width: 580px) {
  .header-inner { width: calc(100% - 24px); }
  .brand-copy small { display: none; }

  .hero-inner {
    width: calc(100% - 28px);
    padding-top: 67px;
  }

  .hero h1 { font-size: clamp(3.35rem, 18vw, 5.5rem); }
  .hero-lead { font-size: 0.94rem; }

  .hero-actions { display: grid; }
  .btn { width: 100%; }

  .hero-phones {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .hero-phones > span { width: 100%; }

  .hero-panel {
    min-height: 400px;
    padding: 24px 24px 27px 28px;
    box-shadow: 13px 15px 0 rgba(17, 18, 20, 0.27), var(--shadow);
  }

  .hero-panel li {
    gap: 15px;
    font-size: 2.25rem;
  }

  .hero-index {
    gap: 9px;
    font-size: 0.5rem;
    letter-spacing: 0.13em;
  }

  .marquee-track { height: 56px; font-size: 1.3rem; }

  .section { padding: 74px 0; }
  .section-shell { width: calc(100% - 28px); }

  .section-heading h2,
  .valuation-copy h2,
  .procedures-copy h2,
  .video-copy h2,
  .contact-copy h2 {
    font-size: clamp(3rem, 15.5vw, 4.65rem);
  }

  .services-section { padding-top: 90px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 300px; }

  .procedure-list article {
    grid-template-columns: 31px 1fr 32px;
    gap: 10px;
    padding: 14px 12px;
  }

  .procedure-list h3 { font-size: 1.25rem; }
  .procedure-list b { width: 31px; height: 31px; }

  .valuation-visual { min-height: 400px; }
  .valuation-core { width: 190px; }
  .valuation-core > span { font-size: 4rem; }

  .directory-head { display: block; }
  .directory-list > div { padding-left: 15px; grid-template-columns: 34px 1fr; }

  .contact-section { padding: 80px 0 100px; }
  .contact-actions > a { min-height: 84px; padding: 17px; }
  .contact-actions strong { font-size: 1.9rem; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-column: auto; grid-row: auto; }
  .footer-phones { grid-column: auto; }
  .footer-bottom { display: grid; }

  .floating-call {
    right: 14px;
    bottom: 14px;
    min-height: 48px;
    padding: 0 15px;
  }

  .back-to-top { left: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
