/* ==========================================================================
   HeartMedical Innovations – Stylesheet
   Selbst gehostete Schriften, DSGVO-freundlich (keine externen Requests).
   ========================================================================== */

/* ---------- Fonts (lokal) ---------- */
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/poppins-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Design-Tokens ---------- */
:root {
  --navy:      #0E2A47;
  --indigo:    #26306E;
  --teal:      #17A6B4;
  --teal-dark: #128290;
  --green:     #3DA35D;
  --brand-gradient: linear-gradient(135deg, #26306E 0%, #17A6B4 55%, #3DA35D 100%);

  --bg:        #F4F7FA;
  --surface:   #FFFFFF;
  --text:      #1F2A37;
  --muted:     #5B6B7B;
  --border:    #E2E8F0;

  --container: 1180px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(14,42,71,.06), 0 1px 2px rgba(14,42,71,.04);
  --shadow-md: 0 10px 30px rgba(14,42,71,.08);
  --shadow-lg: 0 24px 60px rgba(14,42,71,.14);

  --header-h: 76px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--bg); }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__eyebrow {
  display: inline-block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 12px;
}
.section__title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  box-shadow: 0 8px 20px rgba(23,166,180,.28);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); box-shadow: 0 12px 26px rgba(23,166,180,.36); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.55); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.14); box-shadow: none; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--border); box-shadow: none; }
.btn--outline:hover { background: var(--bg); color: var(--navy); box-shadow: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 1000;
  display: flex; align-items: center;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: background .3s, box-shadow .3s, border-color .3s;
}
.header.is-scrolled { background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); border-bottom-color: var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; gap: 24px; }

/* Logo lockup */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo__badge {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brand-gradient);
  display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px rgba(38,48,110,.28);
  overflow: hidden;
}
.logo__badge svg { width: 30px; height: 30px; }
.logo__badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; color: currentColor; }
.logo__name strong { font-weight: 700; }
.logo__sub { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .82rem; letter-spacing: .16em; color: var(--teal-dark); }
.logo--light { color: #fff; }
.logo--light .logo__sub { color: rgba(255,255,255,.75); }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 500; font-size: .96rem; color: var(--navy); padding: 9px 14px; border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--bg); color: var(--teal-dark); }
.nav__cta { margin-left: 10px; }
.nav__cta .btn { padding: 11px 20px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--border); background: #fff;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) saturate(1.05); transform: scale(1.06); }
.hero__overlay { position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(120deg, rgba(14,42,71,.92) 0%, rgba(38,48,110,.82) 42%, rgba(18,130,144,.68) 100%); }
.hero__graphics { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .6; pointer-events: none; }
.hero__graphics--mobile { display: none; }
@media (max-width: 620px) {
  .hero__graphics--desktop { display: none; }
  .hero__graphics--mobile { display: block; top: auto; bottom: 0; height: 140px; }
}

/* ECG heartbeat animation: a bright segment travels along the line like on a heart monitor */
.ecg--pulse {
  stroke-dasharray: 16 84;           /* 16% bright segment, 84% gap (pathLength=100) */
  stroke-dashoffset: 100;
  stroke-linecap: round;
  stroke-width: 3.2;                 /* bright segment slightly thicker than the base line */
  filter: drop-shadow(0 0 5px rgba(220,255,250,1)) drop-shadow(0 0 14px rgba(127,227,234,.9));
  animation: ecg-run 5s linear infinite;
}
.ecg--slow { animation-duration: 7.5s; animation-delay: 1.2s; stroke-width: 2.6; filter: drop-shadow(0 0 4px rgba(255,255,255,.9)) drop-shadow(0 0 10px rgba(150,200,190,.7)); }
@keyframes ecg-run {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ecg--pulse { animation: none; stroke-dasharray: none; opacity: .35; filter: none; }
}
/* Mid-size windows (tablet / small desktop): the text column reaches into the peak
   zone of the desktop ECG lines. Soften the lines there (blur + lower opacity) so
   they read as a background glow instead of cutting sharply through the text. */
@media (min-width: 621px) and (max-width: 1150px) {
  .hero__graphics--desktop { filter: blur(5px); opacity: .35; }
  .hero__graphics--desktop .ecg--pulse { filter: drop-shadow(0 0 4px rgba(127,227,234,.6)); }
}
.hero__watermark { position: absolute; right: -4%; bottom: -8%; width: min(560px, 60%); opacity: .10; z-index: -1; pointer-events: none; }
/* Round HMI logo, top right of the hero — the decorative rings are drawn around it,
   so logo and rings are always perfectly concentric on every screen size */
.hero__roundlogo {
  position: absolute; z-index: 0;
  top: calc(var(--header-h) + clamp(80px, 14vh, 160px));
  right: clamp(50px, 8vw, 140px);
  width: clamp(132px, 14.4vw, 204px); /* 20% larger than the original size */
}
.hero__roundlogo img {
  display: block; width: 100%; height: auto;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35);
  box-shadow: 0 12px 40px rgba(9,24,41,.45);
}
.hero__roundlogo::before,
.hero__roundlogo::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
}
.hero__roundlogo::before { width: 136%; height: 136%; border: 1.4px solid rgba(255,255,255,.16); }
.hero__roundlogo::after  { width: 192%; height: 192%; border: 1.2px solid rgba(255,255,255,.10); }
@media (max-width: 760px) {
  .hero__roundlogo { display: none; } /* header logo is enough on small screens */
}
.hero .container { padding-top: calc(var(--header-h) + 24px); padding-bottom: 60px; }
/* reserve space below the buttons so the ECG lines never overlap them
   (must come after the base rule above, otherwise it gets overridden) */
@media (max-width: 620px) {
  .hero .container { padding-bottom: 170px; }
}
.hero__inner { max-width: 820px; }
/* Mid-size windows: reserve space on the right so the headline wraps
   before it runs underneath the round hero logo (logo width + offset). */
@media (min-width: 761px) and (max-width: 1150px) {
  .hero__inner { margin-right: calc(clamp(132px, 14.4vw, 204px) + clamp(50px, 8vw, 140px)); }
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #cfeef2; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2); padding: 8px 16px; border-radius: 999px; margin-bottom: 26px; }
.hero__eyebrow::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(61,163,93,.3); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: .35em; }
.hero__tagline { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: #7fe3ea; margin-bottom: .7em; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,.9); max-width: 640px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d5e6ea; }
.card__icon {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(23,166,180,.14), rgba(61,163,93,.14)); color: var(--teal-dark);
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.28rem; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.portrait {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #dfe8ef, #eef3f7); display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--border);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.about__badge {
  position: absolute; left: -22px; bottom: 28px; background: #fff; border-radius: 16px; padding: 16px 20px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border); display: flex; align-items: center; gap: 14px;
}
.about__badge .num { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.8rem; color: var(--teal-dark); line-height: 1; }
.about__badge .lbl { font-size: .84rem; color: var(--muted); line-height: 1.25; }
.about__body p { color: var(--muted); }
.about__body .name { font-family:'Poppins',sans-serif; font-weight:600; color: var(--navy); font-size:1.05rem; margin-bottom: 2px; }

.why { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.why li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--navy); font-size: .98rem; }
.why svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }

/* ---------- Services ---------- */
.service { position: relative; }
.service .card__icon { background: linear-gradient(135deg, rgba(38,48,110,.12), rgba(23,166,180,.12)); color: var(--indigo); }

/* ---------- Partners ---------- */
.partners__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.partner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 22px;
  min-height: 150px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); color: var(--navy);
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--navy); }
.partner__logo { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.partner__link { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.partner__link svg { width: 14px; height: 14px; }
.partners__note { text-align: center; color: var(--muted); margin-top: 26px; font-size: .95rem; }
/* "In development" notice shown while partner / consultant content is pending */
.section__dev {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px dashed #c3d5dc; border-radius: var(--radius-lg);
  padding: 44px 32px; box-shadow: var(--shadow-sm);
}
.section__dev .badge { margin-bottom: 14px; }
.section__dev p { color: var(--muted); margin: 0; }

/* ---------- Innovations ---------- */
.innov { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.innov__card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.innov__img { aspect-ratio: 16/10; background: linear-gradient(150deg, #e7eef4, #f2f6f9); display: grid; place-items: center; color: #9db2c3; border-bottom: 1px solid var(--border); }
.innov__img svg { width: 60px; height: 60px; }
.innov__img--photo { background: #fff; padding: 26px; }
.innov__img--photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.innov__brand { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.innov__eyebrow { display: flex; align-items: center; gap: 2px; }
.innov__doc { margin-top: 16px; font-size: .92rem; padding: 10px 18px; }
.innov__doc svg { flex: none; }
.innov__body { padding: 28px 30px 32px; }
.innov__body h3 { margin-bottom: .3em; }
.innov__body p { color: var(--muted); margin-bottom: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;
}
.badge::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--granted { color: var(--green); background: rgba(61,163,93,.12); }
.badge--dev { color: #B9770E; background: rgba(214,158,46,.15); }
.innov__eyebrow { font-size: .8rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color: var(--teal-dark); margin-bottom: 6px; }

/* ---------- Consultants ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-weight: 500; font-size: .92rem; color: var(--navy); box-shadow: var(--shadow-sm); }
.consultants__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.consultant { text-align: center; padding: 30px 24px; }
.consultant__avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(160deg,#dfe8ef,#eef3f7); border: 1px solid var(--border); display: grid; place-items: center; color: #9db2c3; }
.consultant__avatar svg { width: 44px; height: 44px; }
.consultant h4 { font-size: 1.08rem; margin-bottom: 2px; }
.consultant__role { color: var(--teal-dark); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.consultant p { color: var(--muted); font-size: .95rem; }
.consultant__linkedin { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.consultant__linkedin svg { width: 16px; height: 16px; }

/* ---------- News ---------- */
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card__top { padding: 26px 26px 0; }
.news-card__tag { display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); background: rgba(23,166,180,.10); padding: 5px 11px; border-radius: 6px; margin-bottom: 14px; }
.news-card__body { padding: 0 26px 26px; }
.news-card h4 { font-size: 1.12rem; margin-bottom: .4em; }
.news-card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.news-card__date { color: var(--muted); font-size: .82rem; margin-top: auto; padding: 0 26px 22px; }
.news__cta { text-align: center; margin-top: 40px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
/* Contact without form: single centered info card */
.contact--single { grid-template-columns: 1fr; justify-items: center; }
.contact--single .contact__info { width: min(560px, 100%); }
.contact__form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 11px; padding: 13px 15px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(23,166,180,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-status { display: none; margin-top: 16px; padding: 13px 16px; border-radius: 11px; font-size: .92rem; font-weight: 500; }
.form-status.is-success { display: block; background: rgba(61,163,93,.12); color: #237a3f; }
.form-status.is-error { display: block; background: rgba(214,60,60,.1); color: #b23434; }

.contact__info { display: flex; flex-direction: column; gap: 4px; }
.contact__card { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); background-image: var(--brand-gradient); }
.contact__card h3 { color: #fff; }
.info-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); }
.info-item:first-of-type { border-top: none; }
.info-item svg { width: 22px; height: 22px; color: #bff0f4; flex: none; margin-top: 2px; }
.info-item a, .info-item span { color: #fff; }
.info-item a:hover { color: #bff0f4; }
.info-item .lbl { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 66px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer p { color: rgba(255,255,255,.62); font-size: .94rem; }
.footer h5 { color: #fff; font-family: 'Poppins', sans-serif; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.footer a { color: rgba(255,255,255,.72); font-size: .94rem; line-height: 2.1; }
.footer a:hover { color: #fff; }
.footer__social { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.1); margin-top: 18px; }
.footer__social svg { width: 20px; height: 20px; color:#fff; }
.footer__social:hover { background: var(--teal); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
.footer__bottom a { font-size: .86rem; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + 60px) 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .8em; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1rem; }
.legal a { word-break: break-word; }
.disclaimer { background: #FFF8E6; border: 1px solid #F0D98A; color: #8A6D1B; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 34px; font-size: .92rem; }
.legal .back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 30px; font-weight: 600; }
.legal .back svg { width: 16px; height: 16px; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--3, .partners__grid, .consultants__grid, .news__grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 420px; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 16px 20px 24px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform .35s var(--ease); max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 13px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav a:last-child { border-bottom: none; }
  .nav__cta { margin: 12px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; padding: 14px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 62px 0; }
  .grid--3, .grid--2, .partners__grid, .consultants__grid, .news__grid, .innov, .form-row, .why { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .contact__form { padding: 26px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .about__badge { left: 0; }
  .logo__sub { font-size: .74rem; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  * { animation-duration: .001s !important; }
}
