*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.7;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.logo {
  text-decoration: none;
  line-height: 0;
  display: flex;
  align-items: center;
}
.logo img,
.logo svg {
  display: block;
  height: 72px;
  width: auto;
}

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  text-decoration: none;
  color: #475569;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2a9d8f;
  transition: width .25s;
}
.nav a:hover { color: #0f2b3d; }
.nav a:hover::after { width: 100%; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid #e2e8f0;
}
.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 0;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  color: #94a3b8;
}
.lang-btn svg {
  display: block;
  border-radius: 2px;
  width: 18px;
  height: 18px;
}
.lang-btn .lang-code { line-height: 1; }
.lang-btn.active {
  background: #fff;
  color: #0f2b3d;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0f2b3d;
  padding: 4px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, rgba(15,43,61,.85) 0%, rgba(26,92,106,.75) 45%, rgba(42,157,143,.65) 100%);
  color: #fff;
  text-align: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(15,43,61,.85) 0%, rgba(26,92,106,.75) 45%, rgba(42,157,143,.65) 100%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.3px;
}
.hero-sub {
  font-size: 1.1rem;
  opacity: .8;
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background: #e76f51;
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #d45a3e; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.4);
  margin-left: 12px;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ===== Sections ===== */
.section {
  padding: 90px 0;
}
.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: #0f2b3d;
  margin-bottom: 8px;
  letter-spacing: -.3px;
}
.section-sub {
  text-align: center;
  color: #64748b;
  font-size: .95rem;
  margin-bottom: 52px;
}

/* ===== About ===== */
.about { background: #fff; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.icon-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.icon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
  border-color: #e2e8f0;
}
.icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}
.icon-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #0f2b3d;
  font-weight: 600;
}
.icon-card p {
  font-size: .88rem;
  color: #64748b;
  line-height: 1.6;
}

/* ===== Services ===== */
.services { background: #f8fafc; }
.service-card {
  background: #fff;
  padding: 30px 24px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
  border-color: #2a9d8f;
}
.service-card::after {
  content: '→';
  display: inline-block;
  margin-top: 12px;
  font-size: .85rem;
  color: #2a9d8f;
  opacity: 0;
  transition: opacity .25s, transform .25s;
}
.service-card:hover::after { opacity: 1; transform: translateX(4px); }
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #0f2b3d;
  font-weight: 600;
}
.service-card p {
  font-size: .87rem;
  color: #64748b;
  line-height: 1.6;
}

/* ===== Stats ===== */
.stats {
  background: linear-gradient(135deg, #0f2b3d, #1a5c6a);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.stat { padding: 24px; }
.stat-num {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: #f4a261;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .9rem;
  opacity: .75;
  margin-top: 8px;
  letter-spacing: .3px;
}

/* ===== Projects ===== */
.project-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  transition: transform .25s, box-shadow .25s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.project-img { height: 190px; }
.project-info { padding: 22px; }
.project-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #0f2b3d;
  font-weight: 600;
}
.project-info p {
  font-size: .85rem;
  color: #64748b;
  line-height: 1.6;
}

/* ===== Partners ===== */
.partners { background: #fff; }
.partner-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: 36px;
}
.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  background: #f8fafc;
  border-radius: 8px;
  font-weight: 700;
  font-size: .8rem;
  color: #94a3b8;
  letter-spacing: 1.5px;
  border: 1px solid #f1f5f9;
  transition: border-color .2s, color .2s;
}
.partner-logo:hover {
  border-color: #cbd5e1;
  color: #64748b;
}

/* ===== Contact ===== */
.contact { background: #f8fafc; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 860px;
  margin: 0 auto;
}
.contact-info h3 {
  font-size: 1.15rem;
  color: #0f2b3d;
  margin-bottom: 16px;
  font-weight: 600;
}
.contact-info p {
  margin-bottom: 10px;
  font-size: .92rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .contact-info p { white-space: normal; }
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: .92rem;
  font-family: inherit;
  margin-bottom: 16px;
  outline: none;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: none; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2a9d8f;
  box-shadow: 0 0 0 3px rgba(42,157,143,.1);
}

/* ===== Footer ===== */
.footer {
  background: #0f2b3d;
  color: rgba(255,255,255,.6);
  padding: 32px 0;
  text-align: center;
  font-size: .85rem;
}

/* ===== Services In-section Overlay ===== */
.services-grid-wrap {
  position: relative;
  transition: background .3s;
  border-radius: 12px;
}
.overlay-open {
  background: #f8fafc;
}
.services-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 10;
}
.services-overlay.active {
  opacity: 1;
  visibility: visible;
}
.overlay-open .grid-3 .service-card {
  opacity: .15;
  pointer-events: none;
}
.services-overlay-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
  width: 100%;
  max-width: 520px;
  padding: 0;
  transform: scale(.92) translateY(12px);
  transition: transform .35s ease;
}
.services-overlay.active .services-overlay-card {
  transform: scale(1) translateY(0);
}
.services-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}
.services-overlay-title {
  font-size: 1.2rem;
  color: #0f2b3d;
  font-weight: 700;
}
.services-overlay-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .2s;
}
.services-overlay-close:hover { color: #0f2b3d; }
.services-overlay-body {
  padding: 20px 28px 28px;
}
.services-overlay-body .svc-desc {
  font-size: .95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 20px;
}
.services-overlay-body .svc-list {
  list-style: none;
  margin-bottom: 24px;
}
.services-overlay-body .svc-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  font-size: .9rem;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
}
.services-overlay-body .svc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a9d8f;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #2a9d8f;
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(42,157,143,.3);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #238b7e; transform: translateY(-2px); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    border-top: 1px solid #f1f5f9;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1rem; }
  .hamburger { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: .9rem; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-links { align-items: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.4rem; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.5rem; }
  .lang-btn .lang-code { display: none; }
  .logo svg { height: 48px; }
}
