:root {
  --paper: #fbfaf5;
  --paper-deep: #f1eee3;
  --ink: #161a17;
  --muted: #62675f;
  --line: #d8d4c5;
  --green: #0f5a47;
  --green-2: #dff0dc;
  --orange: #d96b2b;
  --blue: #2357a5;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(28, 31, 26, 0.09);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image: linear-gradient(rgba(22, 26, 23, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 26, 23, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  z-index: -1;
}

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

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 212, 197, 0.8);
  background: rgba(251, 250, 245, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 150px;
  height: auto;
}

.menu-toggle {
  order: 4;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 22px;
}

.nav-links {
  order: 5;
  position: absolute;
  top: 68px;
  left: 16px;
  right: 16px;
  display: none;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.nav-links.is-open {
  display: grid;
  gap: 10px;
}

.nav-links a {
  padding: 10px;
  color: var(--muted);
  font-weight: 650;
}

.nav-links a[aria-current="page"] {
  color: var(--green);
}

.nav-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.nav-actions .btn {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.lang-switch {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.lang-switch a {
  min-width: 34px;
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.lang-switch a[aria-current="true"] {
  background: var(--green);
  color: var(--white);
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
  text-align: center;
}

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

.btn.green {
  border-color: var(--green);
  background: var(--green);
}

.btn.mail {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.eyebrow {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  padding: 44px 0 34px;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
  line-height: 1.02;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.65rem, 13vw, 5.8rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(2.15rem, 7vw, 3.45rem);
}

h3 {
  font-size: clamp(1.35rem, 5vw, 2rem);
}

p {
  margin: 0;
}

.lead {
  color: #33382f;
  font-size: clamp(1.06rem, 4.4vw, 1.35rem);
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric {
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.metric strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 12vw, 3.6rem);
  line-height: 0.95;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.signal {
  padding: 14px;
  border-left: 4px solid var(--orange);
  background: #fff5ed;
  color: #40362b;
}

.section {
  padding: 58px 0;
}

.section.alt {
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two,
.grid.three,
.grid.four {
  grid-template-columns: 1fr;
}

.service-card,
.case-card,
.note-card,
.process-step,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card,
.note-card,
.process-step {
  padding: 20px;
}

.service-card {
  display: grid;
  gap: 16px;
}

.price {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 650;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
}

.case-card {
  overflow: hidden;
}

.case-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: #f5f7f8;
  object-fit: contain;
}

.case-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.case-meta {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.case-stats div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.case-stats strong {
  display: block;
  font-size: 1.25rem;
}

.case-stats span,
.small {
  color: var(--muted);
  font-size: 0.88rem;
}

.compare-shots {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f5f7f8;
}

.compare-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.compare-shot span {
  display: block;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.proof-strip {
  display: grid;
  gap: 12px;
  padding: 20px 0 0;
}

.logo-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.logo-wall span {
  display: grid;
  min-height: 70px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: #40463e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 650;
}

.split {
  display: grid;
  gap: 24px;
}

.list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list li {
  padding-left: 20px;
  position: relative;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.process-step {
  min-height: 210px;
}

.process-step .num {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq button {
  width: 100%;
  padding: 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.faq p {
  display: none;
  padding: 0 18px 18px;
  color: var(--muted);
}

.faq-item.is-open p {
  display: block;
}

.cta {
  padding: 32px 0;
  background: var(--ink);
  color: var(--white);
}

.cta h2,
.cta p {
  color: var(--white);
}

.cta h2 {
  font-size: clamp(2rem, 7vw, 3.45rem);
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero {
  padding: 42px 0 24px;
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 12vw, 5.2rem);
}

.wide-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.wide-shot img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: left center;
}

@media (min-width: 720px) {
  .container {
    width: min(calc(100% - 56px), var(--max));
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    order: 2;
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .nav-actions {
    order: 4;
    margin-left: 4px;
  }

  .lang-switch {
    order: 3;
    margin-left: auto;
  }

  .hero {
    padding: 76px 0 54px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    align-items: end;
  }

  .hero-copy {
    max-width: 740px;
  }

  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: 0.86fr 1.14fr;
    align-items: start;
  }

  .logo-wall {
    grid-template-columns: repeat(4, 1fr);
  }

  .proof-strip {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .brand {
    max-width: 96px;
  }

  .brand-logo {
    width: 96px;
  }

  .lang-switch a {
    min-width: 28px;
    padding-inline: 5px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn {
    min-width: 38px;
    padding: 8px;
    font-size: 0;
  }

  .nav-actions .btn::after {
    font-size: 0.78rem;
  }

  .nav-actions [data-channel="whatsapp"]::after {
    content: "WA";
  }

  .nav-actions [data-channel="mail"]::after {
    content: "Email";
  }
}

@media (min-width: 980px) {
  .section {
    padding: 82px 0;
  }

  .case-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
  }

  .case-card.featured .case-image {
    height: 100%;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .case-card.featured .compare-shots {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .compare-shots {
    grid-template-columns: 1fr 1fr;
    align-content: center;
  }
}

/* Cybersecurity service pages */
.cyber-page h1 { max-width: 16ch; font-size: clamp(2.65rem, 6.5vw, 5rem); }
.cyber-page .hero-panel h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cyber-page .hero-grid { align-items: center; }
.cyber-page section[id] { scroll-margin-top: 90px; }
.cyber-note { margin-top: 24px; }
.cyber-source { padding-block: 24px; }
.text-link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.cyber-faq { display: grid; gap: 10px; }
.cyber-faq summary { padding: 18px; cursor: pointer; font-weight: 750; }
.cyber-faq p { padding: 0 18px 18px; color: var(--muted); }
.cyber-page .service-card { align-content: start; }
.cyber-page a:focus-visible, .cyber-page summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
@media (max-width: 480px) {
  .cyber-page .metric-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Keep the expanded navigation usable on tablets. */
@media (min-width: 720px) and (max-width: 1199px) {
  .menu-toggle { display: block; order: 5; flex-shrink: 0; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: grid; gap: 10px; }
}


.btn.telegram {
  border-color: #176b91;
  background: #176b91;
  color: var(--white);
}
@media (max-width: 600px) {
  .nav { flex-wrap: wrap; padding-block: 10px; }
  .nav-actions { order: 6; width: 100%; justify-content: flex-end; }
  .nav-links { top: 100%; }
  .nav-actions .btn { font-size: 0.9rem; }
  .nav-actions .btn::after { content: none; }
}

/* Allow translated copy and contact groups to fit narrow grid columns. */
.grid > *, .hero-grid > *, .hero-copy > *, .metric-row > *, .split > * {
  min-width: 0;
}
h1, h2, h3, .metric, .btn { overflow-wrap: anywhere; }
@media (min-width: 720px) and (max-width: 979px) {
  .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
