:root {
  --red: #8c0000;
  --red-dark: #610000;
  --red-soft: #b52929;
  --ink: #171717;
  --ink-2: #272727;
  --muted: #656565;
  --line: #e8e3e3;
  --surface: #ffffff;
  --surface-2: #f6f3f3;
  --cream: #fbf9f7;
  --shadow: 0 24px 70px rgba(26, 8, 8, .12);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 9999; padding: 10px 14px; background: #fff; color: #000; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.topbar { background: #f0eded; color: #4f4a4a; font-size: 13px; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; fill: var(--red); }
.topbar__contacts { display: flex; gap: 10px; align-items: center; color: var(--red); font-weight: 700; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(140, 0, 0, .96); backdrop-filter: blur(16px); box-shadow: 0 8px 30px rgba(43, 0, 0, .12); }
.header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; min-width: 210px; }
.brand__image { width: 235px; height: 64px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; gap: 30px; color: #fff; font-size: 14px; font-weight: 650; }
.nav > a:not(.button) { position: relative; padding-block: 10px; }
.nav > a:not(.button)::after { content: ""; position: absolute; left: 0; bottom: 5px; width: 100%; height: 2px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.nav > a:not(.button):hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); padding: 11px; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .25s ease; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--red); border-radius: 999px; background: var(--red); color: #fff; font-weight: 750; letter-spacing: -.01em; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(140,0,0,.25); background: var(--red-dark); }
.button--small { min-height: 42px; padding: 0 18px; background: #fff; border-color: #fff; color: var(--red); }
.button--small:hover { background: #f7eeee; color: var(--red); box-shadow: none; }
.button--ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.button--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.button--full { width: 100%; border: 0; }

.hero { position: relative; overflow: hidden; min-height: 710px; color: #fff; background: #1c0505; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -3; background-image: linear-gradient(90deg, rgba(18,3,3,.96) 0%, rgba(36,5,5,.84) 48%, rgba(68,0,0,.62) 100%), url('/wp-content/uploads/2021/12/economist-in-office1-1.jpg'); background-size: cover; background-position: center; }
.hero__grid { position: absolute; inset: 0; z-index: -2; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, transparent, #000 45%, #000); }
.hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -190px; bottom: -250px; z-index: -1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 100px rgba(255,255,255,.02), 0 0 0 200px rgba(255,255,255,.015); }
.hero__inner { min-height: 710px; display: grid; grid-template-columns: 1.2fr .68fr; gap: 72px; align-items: center; padding-block: 72px; }
.hero__content { max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 12px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; color: #f3c8c8; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--red); }
.hero h1 { margin: 0; font-size: clamp(44px, 5.7vw, 78px); line-height: .98; letter-spacing: -.055em; max-width: 820px; }
.hero__content > p { max-width: 650px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 54px; max-width: 680px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.hero__trust > div { padding: 18px; background: rgba(10,0,0,.28); backdrop-filter: blur(10px); }
.hero__trust strong, .hero__trust span { display: block; }
.hero__trust strong { font-size: 17px; }
.hero__trust span { margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.65); }
.hero-card { position: relative; padding: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(28, 8, 8, .58); backdrop-filter: blur(18px); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.hero-card::before { content: ""; position: absolute; width: 80px; height: 4px; left: 34px; top: 0; background: #fff; }
.hero-card__label { color: #f3c8c8; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.hero-card h2 { margin: 16px 0 12px; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.hero-card p { color: rgba(255,255,255,.72); }
.hero-card ul { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 10px; }
.hero-card li { position: relative; padding-left: 23px; color: rgba(255,255,255,.86); font-size: 14px; }
.hero-card li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #cf6a6a; position: absolute; left: 0; top: .62em; }
.hero-card > a { display: inline-block; margin-top: 6px; color: #fff; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.5); }

.section { padding: 110px 0; }
.section--light { background: var(--cream); }
.section--dark { color: #fff; background: #171313; }
.section-heading { display: grid; grid-template-columns: 1.15fr .7fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.section-heading h2, .about__content h2, .consulting h2, .contact h2 { margin: 0; font-size: clamp(36px, 4vw, 56px); line-height: 1.06; letter-spacing: -.045em; }
.section-heading > p { margin: 0 0 6px; color: var(--muted); font-size: 17px; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 86px; align-items: center; }
.about__visual { position: relative; min-height: 590px; }
.about__photo { position: absolute; inset: 0 42px 42px 0; border-radius: 22px; background-image: linear-gradient(180deg, transparent 45%, rgba(27,5,5,.55)), url('assets/images/about-imperatus.webp'); background-size: cover; background-position: center; background-color: #d8cece; box-shadow: var(--shadow); }
.about__photo::after { content: "IMPERATUS"; position: absolute; right: -24px; bottom: 42px; color: rgba(255,255,255,.16); font-size: 52px; font-weight: 900; letter-spacing: .1em; writing-mode: vertical-rl; transform: rotate(180deg); }
.about__badge { position: absolute; right: 0; bottom: 0; width: 250px; padding: 24px; border-radius: 18px; color: #fff; background: var(--red); box-shadow: 0 22px 55px rgba(140,0,0,.25); }
.about__badge strong { display: block; font-size: 24px; }
.about__badge span { display: block; margin-top: 5px; font-size: 13px; opacity: .82; }
.about__content > p { color: var(--muted); font-size: 17px; }
.about__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.about__values article { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.about__values article > span { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.about__values h3 { margin: 10px 0 7px; font-size: 17px; }
.about__values p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.services { background: #fff; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 320px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.service-card:hover { transform: translateY(-7px); border-color: #d9caca; box-shadow: 0 22px 55px rgba(45,20,20,.1); }
.service-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -80px; bottom: -80px; border-radius: 50%; background: rgba(140,0,0,.05); transition: transform .35s ease; }
.service-card:hover::after { transform: scale(1.45); }
.service-card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #f6eaea; color: var(--red); }
.service-card__icon svg { width: 25px; fill: currentColor; }
.service-card > span { position: absolute; right: 28px; top: 26px; font-size: 12px; font-weight: 900; color: #c8bdbd; }
.service-card h3 { margin: 40px 0 12px; font-size: 25px; letter-spacing: -.03em; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }

.consulting { display: grid; grid-template-columns: 1fr .78fr; gap: 90px; align-items: center; }
.consulting__copy > p { max-width: 650px; margin: 24px 0 30px; color: rgba(255,255,255,.68); font-size: 17px; }
.consulting__panel { position: relative; padding: 45px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: linear-gradient(145deg, rgba(140,0,0,.45), rgba(140,0,0,.08)); }
.consulting__quote { position: absolute; right: 30px; top: 5px; color: rgba(255,255,255,.09); font-family: Georgia, serif; font-size: 140px; line-height: 1; }
.consulting__panel > p { position: relative; max-width: 440px; margin: 0 0 34px; font-size: 31px; line-height: 1.2; letter-spacing: -.03em; }
.consulting__panel strong { color: #efaaaa; }
.consulting__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consulting__list span { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); font-size: 13px; }

.contact { background: var(--surface-2); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.contact__copy > p { max-width: 580px; color: var(--muted); font-size: 17px; }
.contact__cards { display: grid; gap: 10px; margin-top: 32px; }
.contact__cards > a { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid #e4dddd; border-radius: 15px; background: #fff; transition: transform .2s ease, border-color .2s ease; }
.contact__cards > a:hover { transform: translateX(4px); border-color: #ccbaba; }
.contact__icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #f6eaea; color: var(--red); }
.contact__icon svg { width: 21px; fill: currentColor; }
.contact__cards small, .contact__cards strong { display: block; }
.contact__cards small { color: #8b8181; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.contact__cards strong { font-size: 14px; }
.contact-form { padding: 36px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.contact-form__heading { margin-bottom: 28px; }
.contact-form__heading span { font-size: 24px; font-weight: 850; letter-spacing: -.03em; }
.contact-form__heading p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 8px; margin-bottom: 17px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 12px; font-weight: 800; color: #5d5454; }
.field input, .field textarea { width: 100%; border: 1px solid #ddd4d4; border-radius: 12px; padding: 12px 14px; outline: none; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(140,0,0,.08); }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.form-note { display: block; margin-top: 12px; color: #8f8787; text-align: center; }

.footer { padding: 68px 0 22px; color: rgba(255,255,255,.72); background: #111; }
.footer__grid { display: grid; grid-template-columns: 1.5fr .8fr .9fr .8fr; gap: 60px; }
.brand--footer img { width: 230px; max-height: 72px; object-fit: contain; object-position: left center; }
.footer__grid > div:first-child p { max-width: 360px; color: rgba(255,255,255,.52); font-size: 14px; }
.footer h3 { margin: 0 0 16px; color: #fff; font-size: 14px; }
.footer__grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer__grid a { font-size: 13px; transition: color .2s ease; }
.footer__grid a:hover { color: #fff; }
.footer__bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.45); font-size: 12px; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #25d366; box-shadow: 0 14px 28px rgba(0,0,0,.22); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); }
.whatsapp-float svg { width: 30px; fill: currentColor; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; color: #fff; background: #1f1f1f; opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.policy { min-height: 100vh; background: var(--cream); }
.policy__header { padding: 28px 0; background: var(--red); }
.policy__header .brand__image { width: 220px; }
.policy__main { width: min(calc(100% - 40px), 880px); margin: 0 auto; padding: 80px 0; }
.policy__main h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1; letter-spacing: -.045em; }
.policy__main h2 { margin-top: 42px; font-size: 24px; }
.policy__main p, .policy__main li { color: #5e5858; }
.policy__main a { color: var(--red); text-decoration: underline; }

@media (max-width: 1050px) {
  .topbar__item span { display: none; }
  .nav { gap: 18px; }
  .nav > a:not(.button) { display: none; }
  .hero__inner { grid-template-columns: 1fr .72fr; gap: 40px; }
  .about { gap: 52px; }
  .about__values { grid-template-columns: 1fr; }
  .about__values article { display: grid; grid-template-columns: 40px 95px 1fr; align-items: start; gap: 10px; }
  .about__values h3 { margin: 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .topbar { display: none; }
  .header__inner { min-height: 72px; }
  .brand__image { width: 190px; height: 54px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: fixed; left: 0; right: 0; top: 72px; height: calc(100dvh - 72px); padding: 32px 20px; flex-direction: column; align-items: stretch; background: #730000; transform: translateX(100%); transition: transform .28s ease; }
  .nav.is-open { transform: translateX(0); }
  .nav > a:not(.button) { display: block; padding: 12px 8px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav > a:not(.button)::after { display: none; }
  .nav .button { margin-top: 12px; }
  .hero, .hero__inner { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 80px; }
  .hero-card { max-width: 560px; }
  .section { padding: 82px 0; }
  .section-heading, .about, .consulting, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { min-height: 500px; }
  .section-heading { align-items: start; }
  .section-heading > p { max-width: 650px; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer__grid > div:nth-child(4) { grid-column: 2; }
}

@media (max-width: 590px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero__inner { padding-block: 64px; }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); }
  .hero__content > p { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__trust { grid-template-columns: 1fr; }
  .hero-card { padding: 26px; }
  .about__visual { min-height: 420px; }
  .about__photo { inset: 0 20px 34px 0; }
  .about__badge { width: 215px; padding: 18px; }
  .about__values article { display: block; }
  .about__values h3 { margin: 8px 0 6px; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .consulting__panel { padding: 30px; }
  .consulting__list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 38px 28px; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .footer__grid > div:nth-child(4) { grid-column: auto; }
  .footer__bottom { flex-direction: column; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

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