:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f1f3f6;
  --ink: #151922;
  --muted: #647084;
  --line: #e3e7ee;
  --red: #c4001a;
  --red-dark: #9f0015;
  --dark: #111827;
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, .06);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227, 231, 238, .92);
}
.topbar {
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: 176px; height: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.desktop-nav-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.desktop-nav-row > a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #293445;
  font-size: .94rem;
  font-weight: 700;
  white-space: nowrap;
}
.desktop-nav-row > a:hover,
.nav-item > a:hover,
.desktop-nav-row > a.active,
.nav-item > a.active {
  background: var(--surface-soft);
  color: var(--red);
}
.header-remote { flex: 0 0 auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(196, 0, 26, .22); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--dark); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-green { background: #128c7e; color: #fff; }

.menu-toggle,
.mobile-menu-head,
.mobile-menu-panel { display: none; }

.has-mega { position: relative; }
.mega-menu {
  position: absolute;
  top: 48px;
  left: 0;
  width: min(720px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease;
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mega-intro { background: #f7f8fa; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.mega-intro strong { display: block; font-size: 1rem; }
.mega-intro p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.mega-links { display: grid; gap: 6px; }
.mega-links a { display: block; padding: 10px 12px; border-radius: 14px; }
.mega-links a:hover { background: var(--surface-soft); }
.mega-links span { display: block; font-weight: 800; }
.mega-links small { display: block; color: var(--muted); margin-top: 2px; }

.hero {
  padding: 84px 24px 60px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(196, 0, 26, .10), transparent 32%),
    linear-gradient(135deg, #fff 0%, #f5f6f8 56%, #eef1f6 100%);
}
.hero-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.82); color: var(--red); font-weight: 850; font-size: .86rem; }
h1 { font-size: clamp(2.35rem, 5vw, 4.65rem); line-height: .98; letter-spacing: -.055em; margin: 22px 0 20px; }
h2 { font-size: clamp(1.9rem, 3vw, 3.15rem); line-height: 1.06; letter-spacing: -.04em; margin: 0 0 16px; }
h3 { font-size: 1.18rem; margin: 0 0 10px; }
p.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual { background: #fff; border: 1px solid var(--line); border-radius: 34px; padding: 22px; box-shadow: var(--shadow); }
.hero-visual img { width: 100%; border-radius: 24px; background: #eef1f5; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); }
.visual-caption { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.visual-caption div { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 18px; padding: 14px; font-weight: 800; }
.visual-caption small { display: block; margin-top: 2px; color: var(--muted); font-weight: 650; }

.section { padding: 78px 24px; }
.section-tight { padding: 50px 24px; }
.container { max-width: var(--max); margin: 0 auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-head p { color: var(--muted); max-width: 660px; margin: 0; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.card:hover { box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card .link,
.card-link { display: inline-flex; margin-top: 18px; color: var(--red); font-weight: 850; }
.card-image { padding: 0; overflow: hidden; }
.card-image .card-body { padding: 26px; }
.card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eef1f5; }
.partner-logo-placeholder { width: 58px; height: 58px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-soft); color: var(--red); font-weight: 900; margin-bottom: 16px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { padding: 8px 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; color: #334155; font-weight: 750; font-size: .9rem; }
.dark-band { background: #111827; color: #fff; }
.dark-band p,
.dark-band .muted { color: rgba(255,255,255,.72); }
.feature-list { display: grid; gap: 14px; }
.feature-list div { padding-left: 22px; position: relative; }
.feature-list div::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.check-list { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.service-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 28px; background: #fff; overflow: hidden; }
.service-strip a { padding: 22px; border-right: 1px solid var(--line); }
.service-strip a:last-child { border-right: 0; }
.service-strip strong { display: block; margin-bottom: 4px; }
.service-strip small { color: var(--muted); }
.cta-box { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 28px; box-shadow: var(--shadow); }
.cta-box p { color: var(--muted); margin: 0; }
.page-hero { padding: 72px 24px 36px; background: linear-gradient(135deg, #fff, #eef2f7); border-bottom: 1px solid var(--line); }
.page-hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: center; }
.page-hero img { border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.simple-page { padding: 70px 24px; }
.anydesk-panel { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.detected-os { font-weight: 850; color: var(--red); }

.footer { background: #10151f; color: #fff; padding: 54px 24px 28px; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 28px; }
.footer-logo { width: 172px; height: auto; filter: brightness(0) invert(1); }
.footer h3 { color: #fff; }
.footer a { display: block; color: rgba(255,255,255,.72); margin: 6px 0; }
.footer a:hover { color: #fff; }
.footer p { color: rgba(255,255,255,.72); margin: 8px 0 0; }
.footer-bottom { max-width: var(--max); margin: 34px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: .92rem; }

@media (max-width: 1080px) {
  .brand-logo { width: 158px; }
  .desktop-nav-row > a, .nav-item > a { padding-inline: 10px; font-size: .9rem; }
  .topbar { gap: 14px; }
}

@media (max-width: 980px) {
  .topbar { min-height: 70px; padding: 0 16px; gap: 10px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-logo { width: 150px; }
  .header-remote { min-height: 38px; padding: 10px 12px; font-size: .84rem; box-shadow: none; }
  .menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 0;
    flex: 0 0 auto;
  }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 999px; transition: transform .18s ease, opacity .18s ease; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 70px;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    padding: 0;
    border-top: 1px solid var(--line);
    justify-content: initial;
  }
  .main-nav.open { display: block; }
  .desktop-nav-row { display: none; }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-weight: 850;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .menu-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    font-size: 1.55rem;
    line-height: 1;
    color: var(--ink);
  }
  .mobile-menu-panel { display: grid; gap: 22px; padding: 20px; max-width: 760px; margin: 0 auto; }
  .mobile-primary-links { display: grid; gap: 8px; }
  .mobile-primary-links > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 850;
  }
  .mobile-primary-links > a::after { content: '›'; color: var(--muted); font-size: 1.4rem; line-height: 1; }
  .mobile-primary-links > a.active { border-color: rgba(196,0,26,.32); color: var(--red); background: #fff6f7; }
  .mobile-service-group { display: grid; gap: 8px; padding-top: 4px; }
  .mobile-service-group > strong { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 2px; }
  .mobile-service-group > a {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
  }
  .mobile-service-group span { display: block; font-weight: 850; color: var(--ink); }
  .mobile-service-group small { display: block; margin-top: 3px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
  .mobile-remote {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 900;
  }

  .hero { padding: 56px 18px 44px; }
  .hero-grid, .page-hero .container, .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { border-radius: 28px; padding: 16px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-strip a:nth-child(2n) { border-right: 0; }
  .service-strip a { border-bottom: 1px solid var(--line); }
  .service-strip a:nth-last-child(-n+2) { border-bottom: 0; }
  .section-head, .cta-box { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .brand-logo { width: 138px; }
  .header-remote { font-size: 0; width: 42px; height: 42px; padding: 0; border-radius: 14px; }
  .header-remote::before { content: '↗'; font-size: 1.1rem; line-height: 1; }
  h1 { font-size: clamp(2.1rem, 11vw, 3.2rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 56px 18px; }
  .page-hero { padding: 52px 18px 30px; }
  .grid-3, .grid-4, .service-strip, .footer-grid { grid-template-columns: 1fr; }
  .service-strip a { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-strip a:last-child { border-bottom: 0; }
  .visual-caption { grid-template-columns: 1fr; }
  .card, .cta-box, .anydesk-panel { border-radius: 22px; padding: 22px; }
}

@media (max-width: 380px) {
  .brand-logo { width: 122px; }
  .topbar { padding: 0 12px; }
}

/* v11 footer, legal and contact refinements */
.footer-grid-5 { grid-template-columns: 1.15fr .85fr 1.15fr .8fr .85fr; align-items: start; }
.footer-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.footer-logo { width: 178px; height: auto; filter: none; }
.footer-address { line-height: 1.55; }
.footer-address strong { color: #fff; }
.footer-bottom a { display: inline; color: rgba(255,255,255,.7); margin: 0; }
.footer-bottom a:hover { color: #fff; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.4fr; gap: 24px; align-items: start; }
.contact-actions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.strong-card { border-top: 4px solid var(--red); }
.legal-page .narrow { max-width: 860px; }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; margin-top: 18px; box-shadow: var(--shadow-soft); }
.legal-card h2 { margin-top: 0; font-size: 1.2rem; }
.muted-card { background: var(--surface-soft); box-shadow: none; }

@media (max-width: 1080px) {
  .footer-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-actions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .footer-grid-5 { grid-template-columns: 1fr; }
  .footer-logo-box { padding: 10px 12px; }
  .footer-logo { width: 160px; }
}

/* v12 contact page layout fix */
.contact-page h1 {
  max-width: 980px;
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
}
.contact-page .lead {
  max-width: 760px;
}
.contact-layout {
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.15fr);
  gap: 26px;
}
.contact-details.card {
  min-width: 0;
}
.contact-details h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  overflow-wrap: anywhere;
}
.contact-actions-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}
.contact-actions-grid .card {
  min-width: 0;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr) auto;
  align-items: center;
  column-gap: 20px;
}
.contact-actions-grid .card h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  margin: 0;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.contact-actions-grid .card p {
  margin: 0;
}
.contact-actions-grid .card .btn {
  white-space: nowrap;
  min-width: 158px;
}

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .contact-page h1 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    letter-spacing: -.045em;
  }
  .contact-actions-grid .card {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
  .contact-actions-grid .card .btn {
    width: 100%;
    min-width: 0;
  }
}

/* v13 contact action cards refinement */
.btn-whatsapp {
  background: #128c7e;
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 140, 126, .22);
}
.btn-whatsapp:hover { background: #0f766c; }
.btn-support {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .18);
}
.btn-support:hover { background: #020617; }

.contact-actions-grid .contact-action-card {
  grid-template-columns: 52px minmax(175px, 0.72fr) minmax(220px, 1fr) max-content;
  gap: 18px;
  padding: 24px 22px;
  overflow: hidden;
}
.contact-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  color: var(--red);
  font-weight: 900;
  font-size: .92rem;
  flex: 0 0 auto;
}
.contact-action-card--whatsapp .contact-action-icon {
  background: rgba(18, 140, 126, .10);
  color: #128c7e;
}
.contact-action-card--remote .contact-action-icon {
  background: rgba(17, 24, 39, .08);
  color: var(--dark);
}
.contact-actions-grid .contact-action-card h2 {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(1.35rem, 1.85vw, 1.95rem);
}
.contact-actions-grid .contact-action-card p {
  color: var(--muted);
  max-width: 34ch;
}
.contact-actions-grid .contact-action-card .btn {
  min-width: 160px;
  justify-self: end;
}

@media (max-width: 1120px) {
  .contact-actions-grid .contact-action-card {
    grid-template-columns: 52px minmax(150px, .65fr) minmax(190px, 1fr);
  }
  .contact-actions-grid .contact-action-card .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .contact-actions-grid .contact-action-card {
    grid-template-columns: 46px 1fr;
    gap: 10px 14px;
    padding: 22px;
  }
  .contact-actions-grid .contact-action-card h2 {
    white-space: normal;
    font-size: 1.55rem;
  }
  .contact-actions-grid .contact-action-card p,
  .contact-actions-grid .contact-action-card .btn {
    grid-column: 1 / -1;
  }
  .contact-actions-grid .contact-action-card .btn {
    width: 100%;
    justify-self: stretch;
  }
}
