:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #1a2434;
  --muted: #596579;
  --line: rgba(26, 36, 52, 0.14);
  --brand: #1665d8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 10%, #e9f0ff 0%, var(--bg) 45%),
    linear-gradient(120deg, #f6f8fc 0%, #f8faff 55%, #f3f7ff 100%);
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.topnav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.topnav a:hover {
  color: var(--text);
}

.back-btn {
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  white-space: nowrap;
}

.layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
}

.layout-single {
  grid-template-columns: 1fr;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(20, 34, 58, 0.08);
}

.side-title {
  margin: 0 0 10px;
  font-size: 1rem;
}

.side-links {
  display: grid;
  gap: 8px;
}

.side-links a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.side-links a.active {
  color: #0f3f91;
  border-color: rgba(22, 101, 216, 0.35);
  background: #eef5ff;
  font-weight: 700;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
}

h2 {
  margin: 28px 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

p,
li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

ul {
  padding-left: 22px;
}

.hero-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(22, 101, 216, 0.24);
  color: #1154b7;
  background: #eef5ff;
  font-weight: 700;
  font-size: 0.86rem;
}

.about-hero {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  align-items: stretch;
}

.about-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.about-metrics {
  display: grid;
  gap: 10px;
}

.about-metrics article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #f6faff, #ffffff);
  padding: 12px;
}

.about-metrics strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
  color: #15325f;
}

.about-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.about-benefits {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.about-benefits article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbff;
  padding: 10px 12px;
  color: #495872;
  line-height: 1.6;
}

.projects-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-flow {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fbff, #ffffff);
  padding: 14px;
}

.project-flow h2 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.flow-track {
  position: relative;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-track::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 18px;
  height: 2px;
  background: linear-gradient(90deg, #8ab7f3, #a4c6f0);
  z-index: 0;
}

.flow-step {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
}

.flow-dot {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #1d6fe3, #2463c4);
  margin-bottom: 8px;
}

.flow-step h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.flow-step p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.project-filters {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-filter {
  border: 1px solid rgba(22, 101, 216, 0.2);
  background: #f4f8ff;
  color: #1e4f95;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.project-filter:hover {
  border-color: rgba(22, 101, 216, 0.35);
  background: #eaf2ff;
}

.project-filter.active {
  background: linear-gradient(135deg, #1d6fe3, #2463c4);
  color: #ffffff;
  border-color: rgba(29, 111, 227, 0.5);
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fbff, #ffffff);
  padding: 14px;
  box-shadow: 0 8px 18px rgba(20, 34, 58, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 101, 216, 0.3);
  box-shadow: 0 12px 22px rgba(20, 34, 58, 0.1);
}

.project-card.is-hidden {
  display: none;
}

.project-card span {
  display: inline-flex;
  border: 1px solid rgba(22, 101, 216, 0.24);
  background: #eef5ff;
  color: #1154b7;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 700;
}

.project-card h3 {
  margin: 10px 0 8px;
  font-size: 1.18rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
}

.project-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef5ff, #f6fbff);
  border: 1px solid rgba(29, 111, 227, 0.28);
  color: #1f4f96;
  line-height: 1;
  flex: 0 0 auto;
}

.project-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.site-footer {
  max-width: 1160px;
  margin: 0 auto 24px;
  padding: 18px 16px 0;
}

.site-footer-grid {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr 1fr 1fr;
}

.site-footer h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: #1c2c46;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer-links {
  display: grid;
  gap: 8px;
}

.site-footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.site-footer-links a:hover {
  color: var(--text);
}

.site-footer-bottom {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.float-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.24);
}

.float-btn .float-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}

.float-btn.phone {
  background: linear-gradient(135deg, #1d6fe3, #2463c4);
}

.float-btn.whatsapp {
  background: linear-gradient(135deg, #1ca768, #0f8f56);
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-cover {
    height: 200px;
  }

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

  .flow-track {
    grid-template-columns: 1fr;
  }

  .flow-track::before {
    display: none;
  }

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

  .site-footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .floating-contact {
    right: 12px;
    bottom: 12px;
  }

  .float-btn .float-text {
    display: none;
  }
}
