:root {
  --bg: #08111c;
  --bg-soft: #0f1b2c;
  --panel: #122033;
  --panel-2: #16283d;
  --text: #f3f7fb;
  --muted: #c1cad6;
  --primary: #0f2747;
  --primary-2: #1b3d68;
  --accent: #f2c300;
  --accent-soft: #ffd84d;
  --border: #314760;
  --border-strong: #50657d;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(242, 195, 0, 0.16), transparent),
    radial-gradient(700px 380px at 88% 0%, rgba(15, 39, 71, 0.26), transparent),
    linear-gradient(180deg, #08111c 0%, #0c1624 42%, #08111c 100%);
}

a { color: inherit; }
img {
  max-width: 100%;
  display: block;
  image-orientation: from-image;
}
.container { width: min(1140px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(8, 17, 28, 0.9);
  border-bottom: 1px solid rgba(80, 101, 125, 0.65);
}

.header-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0;
}

.nav-top-row {
  padding-bottom: 0;
}

.brand {
  text-decoration: none;
}
.brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 1 auto;
}
.brand-logo {
  width: 146px;
  height: 146px;
  object-fit: contain;
  flex-shrink: 0;
}
.header-logo-large {
  width: 132px;
  height: 132px;
}
.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
}
.header-brand-text {
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 0.92;
  white-space: nowrap;
}
.brand-text span { color: #ffffff; }

nav {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.header-nav-second-row {
  justify-content: flex-start;
  padding: 0 0 3px 146px;
  border-top: 1px solid rgba(80, 101, 125, 0.18);
}
.header-nav a {
  font-size: 0.95rem;
  color: #111111;
}
.header-nav a:hover,
.header-nav a:focus-visible {
  color: #000000;
}
nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: color .2s ease;
}
nav a:hover,
nav a:focus-visible { color: var(--accent-soft); }

.country-flags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(18, 32, 51, 0.96);
  border: 1px solid rgba(80, 101, 125, 0.55);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero { padding: 86px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 420px);
  gap: 24px;
  align-items: start;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.06;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  line-height: 1.14;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.lead {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section { padding: 74px 0; }
.section.alt,
.metrics-band {
  background:
    linear-gradient(180deg, rgba(15, 27, 44, 0.94), rgba(10, 20, 32, 0.97)),
    radial-gradient(680px 220px at 78% 0%, rgba(242, 195, 0, 0.08), transparent);
  border-top: 1px solid rgba(80, 101, 125, 0.5);
  border-bottom: 1px solid rgba(80, 101, 125, 0.5);
}

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(13, 24, 39, 0.95), rgba(9, 18, 29, 0.98));
  border: 1px solid rgba(45, 76, 114, 0.75);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-panel,
.feature-card.dark-panel { position: relative; overflow: hidden; }
.hero-panel::before,
.feature-card.dark-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242, 195, 0, 0.12), transparent 55%);
  pointer-events: none;
}

.hero-contact-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(80, 101, 125, 0.55);
  color: var(--muted);
}

.chips {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 195, 0, 0.45);
  background: linear-gradient(90deg, rgba(242, 195, 0, 0.16), rgba(255, 216, 77, 0.12));
  color: #fff8d8;
  font-size: 0.9rem;
  font-weight: 600;
}

.actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stacked-actions { flex-direction: column; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover,
.btn:focus-visible { transform: translateY(-1px); }
.btn-primary {
  color: #0f2747;
  background: linear-gradient(90deg, #f2c300, #ffd84d);
  box-shadow: 0 14px 30px rgba(242, 195, 0, 0.24);
}
.btn-secondary {
  color: #eef4fb;
  border-color: rgba(80, 101, 125, 0.55);
  background: linear-gradient(90deg, rgba(8, 20, 34, 0.96), rgba(11, 27, 43, 0.96));
}

.check-list,
.contact-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.check-list li,
.contact-list li { margin-bottom: 10px; }
.check-list.compact li { margin-bottom: 8px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-link:hover,
.contact-link:focus-visible {
  color: #ffffff;
}
.contact-link:hover svg,
.contact-link:focus-visible svg {
  color: var(--accent-soft);
}

.stat-card { text-align: left; }
.stat-card h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.35rem;
}

.card p,
.card li,
.contact p { color: var(--muted); }
.services-grid .service-card,
.gallery-card,
.feature-card,
.contact-card,
.project-card { height: 100%; }

.three-up { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.logo-cloud span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px;
  text-align: center;
  font-weight: 700;
  color: #f3f7fb;
  background: linear-gradient(180deg, rgba(18, 32, 51, 0.96), rgba(12, 22, 36, 0.98));
  border: 1px solid rgba(80, 101, 125, 0.6);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.project-grid { align-items: stretch; }
.project-card {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 18px;
  align-items: center;
}
.project-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.project-mosaic-footer {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.project-mosaic-card {
  padding: 14px;
  overflow: hidden;
}
.project-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 150px 150px;
  gap: 8px;
  margin-bottom: 14px;
}
.project-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(45, 76, 114, 0.75);
  background: #08131f;
}
.project-mosaic img:first-child {
  grid-row: 1 / span 2;
}
.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card-body h3 {
  margin: 0;
}
.project-tag {
  margin: 0 0 8px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-detail-hero {
  padding-top: 110px;
}
.project-detail-title {
  font-size: clamp(2rem, 3vw, 3rem);
}
.project-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
.gallery-item {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 24, 39, 0.95), rgba(9, 18, 29, 0.98));
  border: 1px solid rgba(45, 76, 114, 0.75);
}
.gallery-item img {
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  border: 1px solid rgba(45, 76, 114, 0.75);
  box-shadow: var(--shadow);
  background: #08131f;
}

.card-media {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(45, 76, 114, 0.75);
  margin-bottom: 12px;
}
.project-photo {
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  margin-bottom: 0;
  background: #08131f;
}
.work-photo {
  height: 280px;
  object-fit: cover;
  background: #08131f;
}
.compact-card { padding: 12px; }
.compact-card .card-media { margin-bottom: 0; }

.contact { text-align: center; }
.contact-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  text-align: left;
}

.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #edf5ff;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(45, 76, 114, 0.75);
  background: rgba(5, 11, 18, 0.85);
  color: #f6f9ff;
  padding: 13px 14px;
  font: inherit;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(73, 162, 255, 0.24);
  border-color: #4f9cff;
}

.map-frame {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(45, 76, 114, 0.75);
}
.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 290px;
  border: 0;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer {
  padding: 22px 0 28px;
  border-top: 1px solid rgba(80, 101, 125, 0.5);
  color: var(--muted);
  background: rgba(4, 9, 15, 0.95);
}
.section-split { align-items: start; }

@media (max-width: 940px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-photo {
    min-height: 250px;
  }
}

@media (max-width: 860px) {
  .hero { padding: 60px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  nav { display: none; }
  .country-flags { justify-content: flex-end; }
  .work-photo { height: 240px; }
  .header-logo-large {
    width: 96px;
    height: 96px;
  }
  .header-brand-text {
    font-size: 1.7rem;
    white-space: normal;
  }
  .header-nav-second-row {
    padding-left: 0;
    border-top: 0;
  }
}

@media (max-width: 560px) {
  .container { width: min(92%, 100%); }
  .card { padding: 18px; }
  .btn { width: 100%; }
  .footer-layout { flex-direction: column; }
  .logo-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.certification-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 22px;
}

.cert-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.cert-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.cert-card ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  display: grid;
  gap: 6px;
}

.cert-mosaic-grid {
  margin-top: 24px;
}

.cert-mosaic-card {
  padding: 14px;
}

.cert-link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  height: 100%;
}

.cert-thumb-img,
.cert-thumb-pdf {
  width: 100%;
  height: 240px;
  border-radius: 14px;
  border: 1px solid rgba(45, 76, 114, 0.75);
  background: #08131f;
}

.cert-thumb-img {
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.cert-thumb-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
