:root {
  --blue: #1D53C4;
  --blue-bright: #5B8DEF;
  --red: #ED1C24;
  --red-bright: #F0333B;
  --dark: #0E0F12;
  --darker: #08090B;
  --card-dark: #16181C;
  --light: #F5F6F7;
  --border-light: #E4E6EA;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.88);
  --white-faint: rgba(255, 255, 255, 0.7);
  --ink-soft: rgba(17, 18, 20, 0.65);
  --pad-x: clamp(20px, 3.4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img, svg { vertical-align: middle; }

section[id] { scroll-margin-top: 16px; }

/* ---------- Navigation ---------- */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px var(--pad-x);
}

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--white); }

.nav-links .has-caret svg { margin-top: 1px; opacity: 0.8; }

.nav-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 8px;
  display: grid;
  gap: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: grid;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover { background: rgba(255, 255, 255, 0.12); color: inherit; }

.dropdown-menu a strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
}

.dropdown-menu a span {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

.pillars, .pillar { scroll-margin-top: 16px; }

.btn-contact {
  margin-left: auto;
  background: var(--white);
  color: var(--dark);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-rotator {
  margin-left: auto;
  overflow: hidden;
  height: 1.4em;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
}

.nav-rotator .rotator-word {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.21, 1), opacity 0.3s ease;
}

.nav-rotator .rotator-word.on {
  transform: translateY(0);
  opacity: 1;
}

.nav-rotator .rotator-word.bye {
  transform: translateY(-115%);
  opacity: 0;
}

.nav .btn-contact { margin-left: 0; }

.btn-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  margin-left: 12px;
  background: rgba(17, 18, 20, 0.4);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.menu-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 10, 13, 0.92);
  backdrop-filter: blur(14px);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-menu nav a { font-size: 22px; font-weight: 500; }

.mobile-menu nav .btn-contact {
  margin-left: 0;
  margin-top: 10px;
  font-size: 15px;
  padding: 12px 26px;
}

.mobile-menu .mobile-sublinks {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: -14px;
}

.mobile-menu .mobile-sublinks.open { display: flex; }

.mobile-menu a.has-caret svg { transition: transform 0.2s ease; }

.mobile-menu a[aria-expanded="true"] svg { transform: rotate(180deg); }

.mobile-menu .mobile-sublinks a {
  font-size: 14px;
  font-weight: 400;
  color: var(--white-faint);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 118px var(--pad-x) 38px;
  background: url("../assets/hero.jpg") center / cover no-repeat, #22242c;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(8, 10, 15, 0.5) 0%, rgba(8, 10, 15, 0.18) 45%, rgba(8, 10, 15, 0.05) 70%),
    linear-gradient(to top, rgba(6, 8, 12, 0.55) 0%, rgba(6, 8, 12, 0) 38%),
    linear-gradient(rgba(29, 83, 196, 0.1), rgba(29, 83, 196, 0.1));
}

.hero-top {
  max-width: 900px;
  margin-top: clamp(48px, 20vh, 240px);
}

h1 {
  font-size: clamp(42px, 6.6vw, 92px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 8px 24px 8px 8px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(29, 83, 196, 0.45);
}

.cta-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--white);
  color: var(--blue);
  border-radius: 999px;
  transition: transform 0.25s ease;
}

.btn-cta:hover .cta-circle { transform: translateX(3px); }

/* ---------- Hero bottom ---------- */

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero-left p {
  max-width: 340px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--white-soft);
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--white-faint);
  transition: color 0.2s ease;
}

.scroll-hint:hover { color: var(--white); }
.scroll-hint svg { animation: nudge 2.2s ease-in-out infinite; }

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.pillars-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white-faint);
}

.pillars-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pillars-inline i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red-bright);
}

/* ---------- Sections communes ---------- */

.section { padding: clamp(76px, 9vw, 128px) var(--pad-x); }

#contact { padding-top: calc(clamp(76px, 9vw, 128px) - 50px); }

.section-light { background: var(--light); color: var(--dark); }
.section-dark { background: var(--dark); color: var(--white); }

.container { max-width: 1240px; margin: 0 auto; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(44px, 5.5vw, 72px);
}

.section-head > p {
  max-width: 400px;
  font-size: 15.5px;
  line-height: 1.55;
  padding-bottom: 6px;
}

.section-light .section-head > p { color: var(--ink-soft); }
.section-dark .section-head > p { color: var(--white-faint); }

.section-title {
  margin-top: 22px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 24ch;
  text-wrap: balance;
}

.section-title strong { font-weight: 700; }

/* ---------- À propos ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.about-lead p {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: rgba(17, 18, 20, 0.82);
}

.about-visual {
  margin: 0 0 26px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

#about .section-title {
  font-size: clamp(30px, 4.2vw, 50px);
}

#formation .section-title {
  font-size: clamp(28px, 3.8vw, 44px);
}

#formation .section-title strong { font-weight: 800; }

.about-visual img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.vm-cards { display: grid; gap: 16px; }

.vm-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 26px 28px;
}

.vm-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(17, 18, 20, 0.55);
}

.vm-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.vm-card p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(17, 18, 20, 0.78);
}

.pillars {
  margin-top: clamp(44px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px;
}

.pillar { border-top: 1px solid rgba(17, 18, 20, 0.18); padding-top: 18px; }

.pillar-num {
  font-size: 12px;
  font-weight: 600;
  color: rgba(17, 18, 20, 0.4);
}

.pillar h3 {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  border: 1px solid rgba(17, 18, 20, 0.25);
}

.pillar p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--card-dark);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 141, 239, 0.4);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(29, 83, 196, 0.18);
  color: var(--blue-bright);
}

.service-card h3 {
  margin: 20px 0 14px;
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.service-card ul {
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.service-card li { display: flex; align-items: baseline; gap: 10px; }

.service-card li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  transform: translateY(-2px);
}

/* ---------- Bandeau certifications ---------- */

.cert-band {
  margin-top: 16px;
  background: var(--blue);
  color: var(--white);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cert-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.cert-band h3 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.title-oneline {
  max-width: none;
  white-space: nowrap;
}

.cert-note {
  flex-basis: 100%;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 18px;
}

.cert-band .cert-cta {
  flex-basis: 100%;
  margin-top: 0;
  background: var(--white);
  color: var(--blue);
}

.cert-band .cert-cta:hover { box-shadow: 0 10px 32px rgba(8, 9, 11, 0.45); }

.cert-band .cert-cta .cta-circle {
  background: var(--blue);
  color: var(--white);
}

/* ---------- Formation ---------- */

#services { background: var(--white); }

#formation {
  background:
    linear-gradient(180deg, rgba(245, 246, 247, 0.62), rgba(245, 246, 247, 0.55)),
    url("../assets/formation-bg.jpg") center / cover no-repeat;
}

.formation-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.formation-actions .btn-cta { margin-top: 0; white-space: nowrap; }

#formation .service-card,
#programmes .service-card {
  background: var(--white);
  border-color: var(--border-light);
}

#services .service-card {
  background: var(--blue);
  border-color: rgba(255, 255, 255, 0.22);
}

#formation .service-card:hover,
#programmes .service-card:hover { border-color: rgba(29, 83, 196, 0.45); }

#services .service-card:hover { border-color: rgba(255, 255, 255, 0.5); }

#formation .service-icon,
#programmes .service-icon {
  background: rgba(29, 83, 196, 0.1);
  color: var(--blue);
}

#services .service-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

#services .service-card h3 { color: var(--white); }

#services .service-card li::before {
  background: var(--white);
  width: 7px;
  height: 7px;
}

#formation .service-card ul,
#programmes .service-card ul { color: var(--ink-soft); }

#services .service-card ul { color: rgba(255, 255, 255, 0.85); }

#services .service-card p { color: rgba(255, 255, 255, 0.85); }

.formations-grid .service-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Projets / Solutions ---------- */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(17, 18, 20, 0.1);
}

.solution-thumb {
  position: relative;
  height: 168px;
  display: grid;
  place-items: center;
}

.thumb-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  transition: background 0.25s ease;
}

.solution-card:hover .thumb-arrow { background: var(--blue); color: var(--white); }

.tg-1 { background: linear-gradient(115deg, rgba(10, 18, 40, 0.88), rgba(29, 83, 196, 0.5)), url("../assets/sol-nexus.jpg") center / cover no-repeat; }
.tg-2 { background: linear-gradient(115deg, rgba(24, 11, 15, 0.88), rgba(143, 22, 32, 0.55)), url("../assets/sol-cyber.jpg") center / cover no-repeat; }
.tg-3 { background: linear-gradient(115deg, rgba(12, 18, 34, 0.88), rgba(46, 95, 203, 0.5)), url("../assets/sol-governance.jpg") center / cover no-repeat; }
.tg-4 { background: linear-gradient(115deg, rgba(10, 14, 42, 0.86), rgba(59, 119, 240, 0.5)), url("../assets/sol-lab.jpg") center / cover no-repeat; }
.tg-5 { background: linear-gradient(115deg, rgba(25, 12, 15, 0.88), rgba(185, 28, 36, 0.55)), url("../assets/sol-x.jpg") center / cover no-repeat; }

.solution-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.solution-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }

.solution-body p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

.solution-tag {
  margin-top: auto;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  color: rgba(17, 18, 20, 0.65);
  background: var(--light);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- Datyx International ---------- */

#international {
  background:
    linear-gradient(180deg, rgba(29, 83, 196, 0.93) 0%, rgba(23, 63, 150, 0.9) 50%, rgba(16, 46, 115, 0.94) 100%),
    url("../assets/international.jpg") center / cover no-repeat;
  color: var(--white);
}

#international .section-head > p { color: rgba(255, 255, 255, 0.8); }

.intl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.intl-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.intl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 83, 196, 0.45);
  box-shadow: 0 18px 44px rgba(17, 18, 20, 0.08);
}

.intl-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(29, 83, 196, 0.1);
  color: var(--blue);
}

.intl-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.intl-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.intl-card ul {
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(17, 18, 20, 0.72);
  margin-top: auto;
}

.intl-card li { display: flex; align-items: baseline; gap: 9px; }

.intl-card li::before {
  content: "›";
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 700;
}

.intl-cta {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.intl-cta:hover {
  border-color: var(--red);
  box-shadow: 0 18px 44px rgba(237, 28, 36, 0.4);
}

.intl-cta h3 { font-size: 22px; color: #fff; }

.intl-cta p { color: rgba(255, 255, 255, 0.85); }

.intl-cta-btn {
  margin-top: auto;
  background: var(--white);
  color: var(--blue);
}

.intl-cta-btn:hover { box-shadow: 0 10px 32px rgba(8, 9, 11, 0.35); }

.intl-cta-btn .cta-circle {
  background: var(--blue);
  color: var(--white);
}

.service-card.extra { display: none; }

.services-grid.expanded .service-card.extra { display: block; }

.services-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 28px auto 0;
  border-radius: 999px;
  border: 1px solid rgba(17, 18, 20, 0.22);
  background: var(--white);
  color: #111214;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.services-more:hover { border-color: rgba(29, 83, 196, 0.55); color: var(--blue); }

.services-more svg { transition: transform 0.25s ease; }

.services-more.open svg { transform: rotate(180deg); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-list { list-style: none; display: grid; gap: 20px; }

.contact-item { display: flex; align-items: center; gap: 16px; }

.contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(17, 18, 20, 0.16);
  color: var(--blue);
}

.contact-ico.urgent { background: rgba(237, 28, 36, 0.08); border-color: rgba(237, 28, 36, 0.4); color: var(--red); }

.contact-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 18, 20, 0.45);
  margin-bottom: 3px;
}

.contact-item a, .contact-item span:not(.contact-ico) { font-size: 15px; font-weight: 500; }

.contact-item a { transition: color 0.2s ease; }
.contact-item a:hover { color: var(--blue); }

.contact-form-wrap { position: relative; }

.contact-form {
  background: var(--light);
  color: var(--dark);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: grid; gap: 7px; margin-bottom: 14px; }

.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 18, 20, 0.55);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--dark);
  background: var(--white);
  border: 1px solid #D9DCE2;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(17, 18, 20, 0.35); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(29, 83, 196, 0.55);
  box-shadow: 0 0 0 3px rgba(29, 83, 196, 0.18);
}

.field textarea { min-height: 120px; resize: vertical; }

.form-submit { margin-top: 6px; }

.form-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(17, 18, 20, 0.45);
}

.form-success {
  background: var(--light);
  color: var(--dark);
  border-radius: 24px;
  padding: clamp(32px, 4vw, 48px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.success-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  margin-bottom: 6px;
}

.form-success[hidden] { display: none; }

.form-success h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

.form-success p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); max-width: 340px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.8);
  padding: clamp(48px, 6vw, 72px) var(--pad-x) 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

  .footer-brand { max-width: 300px; }

  .footer-brand .brand-logo { height: 34px; }

.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.55; }

.footer-signature {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col { display: grid; gap: 11px; align-content: start; }

.footer-col h4 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 5px;
}

.footer-col a { font-size: 14px; transition: color 0.2s ease; }

.footer-col a:hover { color: #fff; }

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.newsletter h4 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsletter-form input {
  width: 270px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.65); }

.newsletter-form input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.newsletter-btn {
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.newsletter-btn:hover { box-shadow: 0 8px 24px rgba(8, 9, 11, 0.3); transform: translateY(-1px); }

.newsletter-success { font-size: 13.5px; color: rgba(255, 255, 255, 0.9); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav { gap: 16px; }
  .nav-links { display: none; }
  .nav-rotator { display: none; }
  .menu-toggle { display: flex; }
  .br-desktop { display: none; }
  h1 { text-wrap: initial; }
  .cert-band h3 { white-space: normal; }
  .title-oneline { white-space: normal; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 720px) {
  .hero { padding-top: 104px; }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }
  .hero-right { align-self: stretch; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { flex-direction: column; gap: 32px; }
  .newsletter { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; width: auto; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint svg { animation: none; }
  .btn-cta, .btn-contact, .cta-circle, .service-card, .solution-card { transition: none; }
}

/* ---------- Sticky nav ---------- */

.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px var(--pad-x);
  background: var(--blue);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}

.sticky-nav.is-visible { transform: translateY(0); }

.sticky-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.sticky-brand img { display: block; height: 40px; width: auto; }

.sticky-rotator {
  overflow: hidden;
  height: 1.35em;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  flex-shrink: 0;
}

.sticky-rotator .rotator-word {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.21, 1), opacity 0.3s ease;
}

.sticky-rotator .rotator-word.on { transform: translateY(0); opacity: 1; }
.sticky-rotator .rotator-word.bye { transform: translateY(-115%); opacity: 0; }

.sticky-inner { margin-left: auto; display: flex; align-items: center; gap: 30px; }

.sticky-links { display: flex; align-items: center; gap: 28px; }

.sticky-links > a,
.sticky-links .nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--white-soft);
  transition: color 0.2s ease;
}

.sticky-links > a:hover,
.sticky-links > a.is-active,
.sticky-links .nav-dropdown > a:hover { color: var(--white); }

.sticky-links .has-caret svg { margin-top: 1px; opacity: 0.8; }

.sticky-links .nav-dropdown { position: relative; }

.sticky-cta {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.sticky-cta:hover { opacity: 0.9; color: var(--blue); }

@media (max-width: 960px) {
  .sticky-inner { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-nav { transition: none; }
}
