:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --text: #1b2430;
  --text-soft: #4e5b6a;
  --primary: #0a4fb3;
  --primary-strong: #083984;
  --accent: #0f766e;
  --line: #d8e1ef;
  --shadow: 0 20px 40px rgba(8, 33, 74, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 10%, #cfe5ff 0, transparent 36%),
    radial-gradient(circle at 10% 15%, #d9f5ee 0, transparent 28%),
    var(--bg);
  line-height: 1.6;
  padding-top: var(--header-h);
}

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

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 1200;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--header-h);
  backdrop-filter: blur(10px);
  background: linear-gradient(120deg, var(--primary-strong), var(--primary));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
}

.site-logo {
  width: 52px;
  border-radius: 12px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.menu > a {
  font-weight: 600;
  color: #e9f2ff;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  transition: background-color 0.2s, color 0.2s;
}

.menu > a:hover,
.menu > a[aria-current="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

.lang-switch {
  display: inline-flex;
  gap: 0.45rem;
  margin-left: 0.5rem;
  padding-left: 0.7rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.lang-switch img {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #c3d2ea;
  transition: transform 0.2s;
}

.lang-switch a:hover img {
  transform: translateY(-1px) scale(1.06);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #ffffff;
  margin: 4px 0;
  border-radius: 5px;
}

.site-main {
  padding-bottom: 3rem;
}

section {
  padding: 5rem 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-title {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

.section-intro {
  color: var(--text-soft);
  margin: 0 0 2rem;
  max-width: 70ch;
}

.hero {
  padding-top: 2.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: #dceaff;
  color: var(--primary-strong);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 2rem + 2.3vw, 4rem);
  line-height: 1.05;
}

.hero p {
  color: var(--text-soft);
  font-size: clamp(1rem, 0.94rem + 0.4vw, 1.18rem);
  margin: 1rem 0 1.7rem;
  max-width: 58ch;
}

.hero p.hero-signature {
  color: var(--primary-strong);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.35rem 0 0.6rem;
  max-width: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.78rem 1.15rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.form-shell .btn[type="submit"] {
  display: flex;
  margin: 1rem auto 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 79, 179, 0.23);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-primary[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.hero-media {
  background: linear-gradient(160deg, #e9f2ff 0%, #f2f8ff 100%);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card h3,
.card h4 {
  margin: 0.7rem 0 0.45rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

.card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.service-card img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.case-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

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

.clients-grid .card {
  display: grid;
  place-items: center;
  min-height: 120px;
}

.clients-grid img {
  width: min(190px, 90%);
  max-height: 74px;
  object-fit: contain;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 0.9rem;
}

.form-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #fbfdff;
  border: 1px solid #cfdcf0;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

textarea {
  resize: vertical;
  min-height: 108px;
}

.form-status {
  min-height: 1.35rem;
  margin: 0.7rem 0 0;
  font-weight: 700;
}

.form-status.success {
  color: #0a7a35;
}

.form-status.error {
  color: #b42318;
}

.contact-meta {
  background: var(--surface-2);
  border: 1px solid #cfe0fb;
  border-radius: var(--radius);
  padding: 1.2rem;
}

.contact-meta p {
  margin: 0 0 0.7rem;
}

.contact-meta a {
  color: var(--primary-strong);
  font-weight: 700;
}

#contact {
  padding: 3.2rem 0;
}

#contact .container {
  max-width: 920px;
}

#contact .section-intro {
  margin-bottom: 1.15rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.35;
}

.contact-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #dceaff;
  color: var(--primary-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(120deg, var(--primary-strong), var(--primary));
  padding: 1.6rem 0 2rem;
  text-align: center;
  color: #ffffff;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 26px rgba(11, 46, 26, 0.24);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

:focus-visible {
  outline: 3px solid #52a5ff;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-wrap,
  .grid-3,
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 76px;
  }

  .nav-toggle {
    display: block;
  }

  .menu {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(360px, 88vw);
    height: calc(100vh - var(--header-h));
    background: linear-gradient(180deg, var(--primary-strong), var(--primary));
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: -12px 0 30px rgba(4, 26, 65, 0.08);
    transform: translateX(110%);
    transition: transform 0.25s ease;
    padding: 1rem;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .menu.open {
    transform: translateX(0);
  }

  .menu > a {
    width: 100%;
  }

  .lang-switch {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    margin-top: 0.4rem;
  }

  .hero-grid,
  .contact-wrap,
  .grid-3,
  .clients-grid {
    grid-template-columns: 1fr;
  }

  #contact {
    padding: 2.6rem 0;
  }

  section {
    padding: 4rem 0;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: 14px;
  }
}
