:root {
  --ema: #2c8b93;
  --ema-dark: #103c40;
  --ema-ink: #172326;
  --paper: #f8f4ed;
  --paper-soft: #efe8dd;
  --line: rgba(23, 35, 38, 0.2);
  --gold: #a88447;
  --white: #fffdf8;
  --shadow: 0 22px 70px rgba(16, 60, 64, 0.14);
  --max: 1180px;
  color-scheme: light;
  font-family: Montserrat, Avenir Next, Avenir, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ema-ink);
  font-family: Montserrat, Avenir Next, Avenir, Helvetica, Arial, sans-serif;
}

body.cadran {
  --ema: #252a27;
  --ema-dark: #151817;
  --gold: #8a7449;
  --paper: #f6f2ea;
  --paper-soft: #e8dfcf;
}

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

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

p {
  line-height: 1.65;
}

.top-strip {
  background: var(--ema-dark);
  color: #f7f3ea;
  font-size: 0.78rem;
}

.top-strip__inner,
.nav,
.section,
.footer__inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.top-strip__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: min(290px, 54vw);
  height: auto;
}

.brand--cadran img {
  width: 84px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.78rem;
  font-weight: 650;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ema-dark);
  border-radius: 4px;
  background: var(--ema-dark);
  color: #f9f3e8;
  padding: 0 20px;
  font-weight: 750;
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(44, 139, 147, 0.09) 15% 15.2%, transparent 15.2% 100%),
    repeating-linear-gradient(90deg, transparent 0 86px, rgba(16, 60, 64, 0.08) 87px 88px),
    repeating-linear-gradient(0deg, transparent 0 86px, rgba(16, 60, 64, 0.05) 87px 88px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) 0 38px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

.kicker {
  margin: 0 0 14px;
  color: var(--ema);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ema-dark);
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.55rem, 7vw, 6.7rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.hero__intro {
  max-width: 52ch;
  margin: 26px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero__facts {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: rgba(23, 35, 38, 0.72);
  font-size: 0.9rem;
}

.service-index {
  display: grid;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.56);
  box-shadow: var(--shadow);
}

.service-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  min-height: 112px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(16, 60, 64, 0.32);
  color: var(--ema);
}

.service-row h2 {
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  text-transform: uppercase;
}

.service-row p {
  margin: 6px 0 0;
  color: rgba(23, 35, 38, 0.72);
  font-size: 0.9rem;
}

.service-row__arrow {
  color: var(--gold);
  font-size: 1.8rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  padding: 20px;
}

.contact-panel strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ema-dark);
}

.contact-panel span {
  color: rgba(23, 35, 38, 0.72);
  font-size: 0.9rem;
}

.or {
  color: rgba(23, 35, 38, 0.45);
  font-size: 0.82rem;
  text-align: center;
}

.section {
  padding: clamp(56px, 8vw, 94px) 0;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.section__head h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
}

.section__head p {
  max-width: 48ch;
  margin: 0;
  color: rgba(23, 35, 38, 0.72);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr 0.85fr;
  gap: 12px;
}

.proof-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--ema-dark);
}

.proof-card:nth-child(2) {
  min-height: 420px;
}

.proof-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(16, 60, 64, 0.9), transparent);
  color: #fff7e9;
  padding: 54px 18px 18px;
  font-weight: 750;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  background: var(--paper);
  padding: clamp(22px, 3vw, 34px);
}

.step b {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 500;
}

.step h3 {
  font-size: 1rem;
  text-transform: uppercase;
}

.step p {
  margin-bottom: 0;
  color: rgba(23, 35, 38, 0.72);
  font-size: 0.92rem;
}

.dark-cta {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  color: #fff8ed;
  background: var(--ema-dark);
}

.dark-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.dark-cta__content {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) 0;
}

.dark-cta h2 {
  max-width: 560px;
  color: #fff8ed;
  font-size: clamp(2.1rem, 4.6vw, 5rem);
  line-height: 0.98;
}

.dark-cta p {
  max-width: 48ch;
  color: rgba(255, 248, 237, 0.83);
}

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

.legal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid var(--line);
}

.legal details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.legal summary {
  cursor: pointer;
  color: var(--ema-dark);
  font-weight: 800;
}

.legal p,
.legal li {
  color: rgba(23, 35, 38, 0.76);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer {
  background: var(--ema-dark);
  color: #fff8ed;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 28px 0 90px;
  color: rgba(255, 248, 237, 0.82);
  font-size: 0.82rem;
}

.mobile-contact {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 20;
  display: none;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 237, 0.28);
  border-radius: 6px;
  box-shadow: 0 18px 55px rgba(16, 60, 64, 0.28);
}

.mobile-contact a {
  display: grid;
  min-height: 56px;
  place-items: center;
  background: var(--ema-dark);
  color: #fff8ed;
  font-weight: 800;
}

.mobile-contact a:first-child {
  background: var(--ema);
}

.cadran-hero h1 {
  font-size: clamp(2.3rem, 5vw, 5.4rem);
  line-height: 0.98;
  text-transform: none;
}

.cadran-mark {
  width: min(280px, 70vw);
  margin-bottom: 26px;
}

@media (max-width: 900px) {
  .top-strip__inner,
  .nav__links {
    display: none;
  }

  .nav {
    min-height: 74px;
  }

  .hero__grid,
  .contact-panel,
  .legal {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding-top: 34px;
  }

  .service-index {
    margin-top: 28px;
  }

  .service-row {
    grid-template-columns: 56px 1fr auto;
    min-height: 92px;
    padding: 16px;
  }

  .service-row__icon {
    width: 46px;
    height: 46px;
  }

  .contact-panel {
    gap: 14px;
  }

  .or {
    text-align: left;
  }

  .section__head {
    display: grid;
  }

  .proof-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .proof-card,
  .proof-card:nth-child(2) {
    min-height: 260px;
  }

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

  .mobile-contact {
    display: grid;
  }
}

@media (max-width: 520px) {
  .top-strip__inner,
  .nav,
  .section,
  .footer__inner,
  .hero__inner,
  .dark-cta__content {
    width: min(100% - 24px, var(--max));
  }

  .brand img {
    width: min(230px, 68vw);
  }

  h1 {
    font-size: clamp(2.35rem, 16vw, 4.4rem);
  }

  .button {
    width: 100%;
  }

  .service-row h2 {
    font-size: 1rem;
  }
}
