:root {
  --navy: #071c33;
  --navy-2: #0b2a4a;
  --blue: #1457d9;
  --blue-2: #2d71f3;
  --cyan: #51c8d8;
  --cyan-soft: #dff8fb;
  --ink: #0d2138;
  --muted: #60758c;
  --line: #d9e4ef;
  --line-strong: #bdd0e2;
  --mist: #f2f7fb;
  --ice: #eaf3fa;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 30px;
  --shadow: 0 26px 70px rgba(7, 38, 70, .12);
  --shadow-soft: 0 18px 48px rgba(7, 38, 70, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fbfdff;
  font-family: "Avenir Next", Avenir, "Segoe UI", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(20,87,217,.3); outline-offset: 4px; }
.container { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 14px; color: var(--navy); background: white; border: 1px solid var(--line); border-radius: 8px; }
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid rgba(198,215,231,.85);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
}
.nav-shell { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; flex: none; line-height: 0; }
.brand-logo { display: block; width: 194px; height: auto; }
.footer-logo .brand-logo { filter: brightness(0) invert(1); opacity: .98; }
.desktop-nav { display: flex; align-items: center; gap: 30px; color: #2f4862; font-size: .86rem; font-weight: 700; letter-spacing: .01em; }
.desktop-nav a:not(.button) { position: relative; padding: 28px 0; }
.desktop-nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--cyan); transition: right .2s ease; }
.desktop-nav a:not(.button):hover { color: var(--blue); }
.desktop-nav a:not(.button):hover::after { right: 0; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: white;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(20,87,217,.18);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .015em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #0f49bd; box-shadow: 0 16px 30px rgba(20,87,217,.23); }
.button.secondary { color: var(--navy); background: rgba(255,255,255,.9); border-color: var(--line-strong); box-shadow: none; }
.button.secondary:hover { color: var(--blue); border-color: var(--blue); }
.menu-button { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); background: white; }
.mobile-nav { padding: 10px 24px 24px; border-top: 1px solid var(--line); background: white; }
[hidden] { display: none !important; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid #edf2f7; font-weight: 750; }

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.95) 39%, rgba(244,249,253,.5) 68%, rgba(7,28,51,.14) 100%),
    url("/images/site/livoramed-hero-background.jpg") center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg,transparent,var(--cyan),transparent); opacity: .6; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.04fr) minmax(460px,.96fr); gap: 62px; align-items: center; padding-top: 74px; padding-bottom: 78px; }
.hero-copy { position: relative; z-index: 2; max-width: 690px; }
.hero-overline { display: inline-flex; align-items: center; gap: 11px; color: var(--blue); font-size: .75rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero-overline i { width: 38px; height: 2px; background: linear-gradient(90deg,var(--blue),var(--cyan)); }
.eyebrow { color: var(--blue); font-size: .75rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 {
  max-width: 760px;
  margin: 20px 0 24px;
  color: var(--navy);
  font-size: clamp(3rem,5.5vw,5.85rem);
  line-height: .94;
  letter-spacing: -.063em;
}
.hero h1 span { display: block; color: var(--blue); }
.hero p { max-width: 630px; margin: 0; color: #506a83; font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 34px; color: #5b7187; font-size: .8rem; font-weight: 750; }
.trust-line span { display: inline-flex; align-items: center; gap: 9px; }
.trust-line span::before { content: ""; width: 18px; height: 1px; background: var(--cyan); }

.product-stage { position: relative; min-height: 520px; }
.stage-frame { position: absolute; inset: 0; }
.stage-frame::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: 30px;
  top: 48px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255,255,255,.08), 0 0 0 104px rgba(255,255,255,.045);
}
.stage-card { position: absolute; overflow: hidden; border: 1px solid rgba(207,220,233,.92); background: rgba(255,255,255,.94); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.stage-card:hover { z-index: 4; box-shadow: 0 34px 85px rgba(7,38,70,.2); }
.stage-card img { width: 100%; height: 100%; object-fit: contain; padding: 18px; mix-blend-mode: multiply; }
.stage-card span { position: absolute; left: 22px; bottom: 16px; padding: 7px 10px; border-radius: 8px; color: white; background: rgba(7,28,51,.88); font-size: .7rem; font-weight: 800; letter-spacing: .03em; }
.stage-main { inset: 54px 20px 62px 52px; border-radius: 30px 8px 30px 30px; transform: rotate(-1.5deg); }
.stage-main:hover { transform: translateY(-5px) rotate(0); }
.stage-mask { width: 168px; height: 168px; right: -5px; top: 6px; border-radius: 16px 16px 16px 48px; transform: rotate(4deg); }
.stage-mask:hover { transform: translateY(-5px) rotate(1deg); }
.stage-tube { width: 154px; height: 154px; left: 0; bottom: 4px; border-radius: 16px 44px 16px 16px; transform: rotate(-4deg); }
.stage-tube:hover { transform: translateY(-5px) rotate(-1deg); }
.stage-stat { position: absolute; right: 0; bottom: 20px; z-index: 3; display: flex; align-items: center; gap: 13px; padding: 14px 17px; border-left: 3px solid var(--cyan); border-radius: 4px 12px 12px 4px; color: white; background: var(--navy); box-shadow: 0 18px 38px rgba(7,28,51,.24); }
.stage-stat strong { font-size: 1.8rem; line-height: 1; }
.stage-stat span { color: #bad0df; font-size: .68rem; font-weight: 750; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; }

.section { padding: 104px 0; }
.section.mist { background: linear-gradient(180deg,#f5f9fc 0%,#edf4f9 100%); }
.section.navy { position: relative; overflow: hidden; color: white; background: linear-gradient(135deg,#06182c 0%,#0a2847 72%,#0c3656 100%); }
.section.navy::after { content: ""; position: absolute; width: 520px; height: 520px; right: -230px; top: -200px; border: 1px solid rgba(81,200,216,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(81,200,216,.03),0 0 0 140px rgba(81,200,216,.025); }
.section.navy > .container { position: relative; z-index: 1; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 46px; }
.section-head h2, .page-hero h1 { margin: 11px 0 0; color: var(--navy); font-size: clamp(2.15rem,4vw,4rem); line-height: 1.02; letter-spacing: -.05em; }
.section-head p { max-width: 550px; margin: 0; color: var(--muted); line-height: 1.75; }

.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.category-card {
  min-height: 350px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 6px var(--radius) var(--radius) var(--radius);
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 28px rgba(7,38,70,.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.category-card:nth-child(2) { border-top-color: var(--cyan); }
.category-card:nth-child(3) { color: white; border-color: var(--navy); border-top-color: var(--cyan); background: var(--navy); }
.category-card:nth-child(4) { border-top-color: #7e95ac; }
.category-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -88px; bottom: -88px; border: 26px solid rgba(20,87,217,.045); border-radius: 50%; }
.category-card:nth-child(3)::after { border-color: rgba(255,255,255,.045); }
.category-card:hover { transform: translateY(-6px); border-color: #b3c9dd; box-shadow: var(--shadow-soft); }
.category-number { color: var(--blue); font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.category-card:nth-child(3) .category-number { color: var(--cyan); }
.category-card h3 { max-width: 260px; margin: 44px 0 14px; color: var(--navy); font-size: 1.55rem; line-height: 1.1; letter-spacing: -.035em; }
.category-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.category-card:nth-child(3) h3, .category-card:nth-child(3) p { color: white; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px; color: var(--blue); font-size: .85rem; font-weight: 850; }
.category-card:nth-child(3) .text-link { color: var(--cyan); }

.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 7px 24px rgba(7,38,70,.035); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.product-card:hover { transform: translateY(-5px); border-color: #b9cde0; box-shadow: var(--shadow-soft); }
.product-card-media { aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid #e5edf5; background: linear-gradient(145deg,#f8fbfe,#eaf2f8); }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; mix-blend-mode: multiply; transition: transform .3s ease; }
.product-card:hover .product-card-media img { transform: scale(1.035); }
.image-fallback { width: 70%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(20,87,217,.18); border-radius: 50%; color: var(--blue); text-align: center; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.product-card-body { padding: 21px 21px 24px; }
.product-card small { color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.product-card h3 { min-height: 2.6em; margin: 9px 0 10px; color: var(--navy); font-size: 1.05rem; line-height: 1.3; letter-spacing: -.01em; }
.product-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }

.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.value-card { position: relative; min-height: 260px; padding: 32px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px var(--radius) var(--radius) var(--radius); background: rgba(255,255,255,.045); }
.value-card::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 64px; background: linear-gradient(var(--cyan),transparent); }
.value-card .index { color: var(--cyan); font-size: .7rem; font-weight: 850; letter-spacing: .14em; }
.value-card h3 { margin: 54px 0 12px; font-size: 1.32rem; letter-spacing: -.015em; }
.value-card p { margin: 0; color: #b8cad9; }

.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; padding: 54px 58px; border-top: 4px solid var(--cyan); border-radius: 8px var(--radius-lg) var(--radius-lg) var(--radius-lg); color: white; background: linear-gradient(120deg,var(--navy),#0c3b63); box-shadow: var(--shadow); }
.cta-band::after { content: ""; position: absolute; width: 300px; height: 300px; right: -130px; bottom: -190px; border: 44px solid rgba(81,200,216,.09); border-radius: 50%; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(2rem,3vw,3.25rem); line-height: 1.03; letter-spacing: -.045em; }
.cta-band p { max-width: 670px; margin: 0; color: #c0d2e1; }
.cta-band .button { color: var(--navy); background: white; white-space: nowrap; box-shadow: none; }

.page-hero { position: relative; overflow: hidden; padding: 78px 0 72px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg,rgba(244,249,253,.99),rgba(244,249,253,.95) 58%,rgba(244,249,253,.55)),url("/images/site/livoramed-hero-background.jpg") center / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--blue),var(--cyan)); }
.page-hero .container { position: relative; }
.page-hero p { max-width: 740px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #73879b; font-size: .78rem; font-weight: 700; }
.breadcrumbs a:hover { color: var(--blue); }
.catalog-intro { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 34px; }
.catalog-count { flex: none; padding: 9px 14px; border: 1px solid #d0e1ee; border-radius: 9px; color: var(--blue); background: white; font-size: .75rem; font-weight: 850; letter-spacing: .05em; }

.product-hero { position: relative; overflow: hidden; padding: 66px 0 82px; background: linear-gradient(140deg,#f8fbfd 0%,#eaf3f9 100%); }
.product-hero::after { content: ""; position: absolute; width: 460px; height: 460px; right: -170px; bottom: -280px; border: 1px solid rgba(20,87,217,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(20,87,217,.025); }
.product-hero .container { position: relative; z-index: 1; }
.product-hero-grid { display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); gap: 72px; align-items: center; margin-top: 34px; }
.product-image { aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--cyan); border-radius: 8px var(--radius-lg) var(--radius-lg) var(--radius-lg); background: white; box-shadow: var(--shadow); }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 34px; mix-blend-mode: multiply; }
.product-copy h1 { margin: 16px 0 20px; color: var(--navy); font-size: clamp(2.55rem,5vw,4.85rem); line-height: .98; letter-spacing: -.055em; }
.product-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.product-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: #35536f; background: rgba(255,255,255,.82); font-size: .76rem; font-weight: 750; }

.detail-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); gap: 64px; align-items: start; }
.detail-copy h2 { margin: 0 0 18px; color: var(--navy); font-size: 2.2rem; line-height: 1.08; letter-spacing: -.04em; }
.detail-copy p { color: var(--muted); font-size: 1.03rem; line-height: 1.8; }
.request-panel { position: sticky; top: 112px; padding: 32px; border: 1px solid var(--line); border-top: 4px solid var(--cyan); border-radius: 7px var(--radius) var(--radius) var(--radius); background: linear-gradient(150deg,#f8fbfd,#eef5fa); box-shadow: var(--shadow-soft); }
.request-panel h3 { margin: 10px 0; color: var(--navy); font-size: 1.4rem; line-height: 1.2; }
.check-list { padding: 0; margin: 20px 0 27px; list-style: none; }
.check-list li { position: relative; padding: 10px 0 10px 25px; border-bottom: 1px solid var(--line); color: #4c647c; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 2px; background: var(--cyan); }
.options { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0 0; }
.option { padding: 10px 13px; border: 1px solid #d7e6f2; border-radius: 9px; color: #214c8f; background: #f0f6fd; font-size: .83rem; font-weight: 750; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.prose-card { padding: 36px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 7px var(--radius) var(--radius) var(--radius); background: white; box-shadow: 0 9px 28px rgba(7,38,70,.035); }
.prose-card:nth-child(even) { border-top-color: var(--cyan); }
.prose-card h2, .prose-card h3 { margin: 12px 0 14px; color: var(--navy); line-height: 1.14; letter-spacing: -.025em; }
.prose-card p { color: var(--muted); line-height: 1.78; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1/-1; }
.field label { color: var(--navy); font-size: .82rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #c8d7e5; border-radius: 9px; color: var(--ink); background: #fbfdff; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,87,217,.1); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: .83rem; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 9px; color: #17665e; background: #eaf8f7; font-weight: 700; }
.form-status[hidden] { display: none; }

.site-footer { position: relative; overflow: hidden; padding: 72px 0 30px; color: #c4d1dc; background: #05182b; }
.site-footer::before { content: ""; position: absolute; left: 0; top: 0; width: 34%; height: 3px; background: linear-gradient(90deg,var(--blue),var(--cyan)); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 46px; }
.footer-brand p { max-width: 360px; color: #8fa5b8; line-height: 1.75; }
.footer-col h3 { margin: 0 0 16px; color: white; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-col a { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; margin: 9px 0; color: #9fb2c3; font-size: .87rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.1); color: #7790a5; font-size: .78rem; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .hero-grid, .product-hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .product-stage { min-height: 455px; max-width: 680px; width: 100%; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 30px,1220px); }
  .nav-shell { height: 70px; }
  .hero { min-height: auto; background-position: 62% center; }
  .hero-grid { gap: 34px; padding-top: 54px; padding-bottom: 58px; }
  .hero h1 { font-size: clamp(2.7rem,13vw,4.25rem); }
  .hero p { font-size: 1.02rem; }
  .hero-overline { font-size: .68rem; letter-spacing: .12em; }
  .trust-line { gap: 12px 18px; }
  .product-stage { min-height: 350px; }
  .stage-frame::before { width: 270px; height: 270px; right: 22px; top: 36px; }
  .stage-main { inset: 38px 10px 44px 30px; }
  .stage-mask { width: 118px; height: 118px; right: 0; }
  .stage-tube { width: 110px; height: 110px; }
  .stage-stat { right: 0; bottom: 8px; padding: 11px 13px; }
  .stage-stat strong { font-size: 1.45rem; }
  .stage-stat span { font-size: .6rem; }
  .section { padding: 74px 0; }
  .section-head, .catalog-intro { display: block; }
  .section-head p { margin-top: 17px; }
  .catalog-count { display: inline-flex; margin-top: 15px; }
  .category-grid, .value-grid, .two-col, .detail-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 300px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .product-hero-grid { gap: 38px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .request-panel { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .brand-logo { width: 164px; }
  .hero h1 { letter-spacing: -.055em; }
  .hero-actions .button { width: 100%; }
  .stage-card span { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card h3 { min-height: 0; }
  .category-card { min-height: 280px; padding: 25px 22px; }
  .product-image img { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
