/* ==========================================================================
   Sections: header/nav, hero, trust, products, certs, cta, contact, footer
   ========================================================================== */

/* --- Header / nav --- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background var(--dur), border-color var(--dur), box-shadow var(--dur);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.9);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-1);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; transition: padding-block var(--dur); }
.site-header.scrolled .nav { padding-block: 0.6rem; }

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 34px; width: auto; display: block; }
.site-header.scrolled .brand__logo { height: 30px; transition: height var(--dur); }

.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; padding: 0; margin: 0; }
.nav__links a { color: var(--ink-600); font-weight: 500; font-size: 0.96rem; position: relative; padding-block: 0.3rem; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width var(--dur) var(--ease-out-quart);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--primary); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { width: 100%; }
.nav__cta { margin-left: 0.5rem; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; border-radius: var(--r-sm); position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--ink-900); border-radius: 2px; transition: transform var(--dur) var(--ease-out-quart), opacity var(--dur);
}
.nav__toggle span { top: 21px; }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero { position: relative; padding-top: clamp(7rem, 12vh, 9rem); padding-bottom: clamp(3rem, 8vh, 6rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(26,115,232,0.12), transparent 62%),
    radial-gradient(50% 45% at 8% 90%, rgba(242,115,12,0.08), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 70%);
}
.hero__grid-lines {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(80% 60% at 70% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 70% 20%, #000, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: var(--fs-hero); margin: 1.1rem 0 1.1rem; }
.hero h1 .grad { color: var(--primary); }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-600); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero__assur { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.8rem; color: var(--muted); font-size: var(--fs-sm); }
.hero__assur span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__assur svg { width: 18px; height: 18px; color: var(--ok); }

/* Hero visual: glass panel + floating medical glyphs */
.hero__visual { position: relative; min-height: 380px; }
.hero__panel {
  position: relative; background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-xl); padding: var(--sp-6); box-shadow: var(--sh-4);
}
.hero__panel h2 { font-size: 1.15rem; margin-bottom: 1rem; color: var(--ink-900); }
.hero__panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero__pill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.9rem; }
.hero__pill b { display: block; font-family: var(--font-head); color: var(--primary); font-size: 1.35rem; }
.hero__pill span { font-size: var(--fs-xs); color: var(--muted); }
.float-glyph { position: absolute; color: var(--blue-400); opacity: 0.9; filter: drop-shadow(0 8px 16px rgba(11,83,148,0.18)); }
.float-glyph svg { width: 100%; height: 100%; }
.float-glyph.g1 { width: 58px; height: 58px; top: -22px; right: 30px; color: var(--accent); }
.float-glyph.g2 { width: 44px; height: 44px; bottom: -18px; left: -14px; }
.float-glyph.g3 { width: 38px; height: 38px; top: 40%; right: -18px; }
@media (prefers-reduced-motion: no-preference) {
  .float-glyph { animation: floaty 7s ease-in-out infinite; }
  .float-glyph.g2 { animation-delay: -2.3s; }
  .float-glyph.g3 { animation-delay: -4.1s; }
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* --- Trust bar --- */
.trust { background: var(--bg); border-block: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(2rem, 4vw, 3rem); }
.trust__item { position: relative; }
.trust__item + .trust__item::before { content: ""; position: absolute; left: calc(-1 * clamp(0.75rem, 2vw, 1.5rem)); top: 50%; transform: translateY(-50%); width: 1px; height: 60%; background: var(--line); }

/* --- Products --- */
.products { background: linear-gradient(180deg, var(--bg), var(--surface)); }
.p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }

/* --- Why choose --- */
.why { background: var(--bg); }
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.why__item { padding: var(--sp-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.why__item svg { width: 30px; height: 30px; color: var(--primary); margin-bottom: 0.75rem; }
.why__item h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.why__item p { color: var(--muted); font-size: var(--fs-sm); }

/* --- Certifications --- */
.certs { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.certs__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 2.5vw, 2rem); }

/* --- CTA banner --- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); color: #fff; border-radius: var(--r-xl); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 15% 10%, rgba(242,115,12,0.35), transparent 55%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.86); max-width: 52ch; margin: 0 auto 1.75rem; font-size: var(--fs-lead); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* --- Contact --- */
.contact { background: var(--bg); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info h3 { font-size: var(--fs-h3); margin-bottom: 1.25rem; }
.info-item { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-2); }
.info-item:last-child { border-bottom: none; }
.info-item__ico { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--blue-050); color: var(--primary); display: grid; place-items: center; }
.info-item__ico svg { width: 20px; height: 20px; }
.info-item h4 { font-size: var(--fs-xs); text-transform: none; color: var(--muted); font-weight: 600; margin-bottom: 0.15rem; letter-spacing: 0; }
.info-item p, .info-item a { font-size: 0.98rem; color: var(--ink-700); }
.info-item a:hover { color: var(--primary); }
.copy-btn { border: 1px solid var(--line); background: var(--bg); color: var(--primary); border-radius: var(--r-sm); padding: 0.25rem 0.6rem; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; margin-left: 0.5rem; }
.copy-btn:hover { background: var(--blue-050); }
.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--sh-1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.trust-badges span { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-xs); color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.3rem 0.7rem; }
.trust-badges svg { width: 14px; height: 14px; color: var(--ok); }

/* --- Footer --- */
.site-footer { background: var(--ink-900); color: #cdd8e4; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: var(--sp-7); }
.footer__brand b { color: #fff; }
.footer__brand p { color: #97a7b8; font-size: var(--fs-sm); margin: 0.9rem 0; max-width: 40ch; }
.footer__legal { font-size: var(--fs-xs); color: #7f92a6; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; font-family: var(--font-head); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.6rem; }
.footer a { color: #a9b8c8; font-size: var(--fs-sm); }
.footer a:hover { color: #fff; }
.newsletter { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.newsletter input { flex: 1; padding: 0.6rem 0.8rem; border-radius: var(--r-sm); border: 1px solid #2a3f55; background: #0f2437; color: #fff; font-size: var(--fs-sm); }
.newsletter input::placeholder { color: #6f8298; }
.social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #12293f; color: #cdd8e4; }
.social a:hover { background: var(--primary); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid #1c3349; padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; font-size: var(--fs-xs); color: #7f92a6; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 968px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-120%); transition: transform var(--dur) var(--ease-out-expo);
    box-shadow: var(--sh-3);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--line-2); }
  .nav__links .nav__cta { margin: 0.75rem 0 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 0; max-width: 460px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .trust__item + .trust__item::before { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .trust__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
