:root {
  --navy: #071e33;
  --navy-2: #0d3558;
  --ink: #173044;
  --muted: #5c7080;
  --teal: #0e7490;
  --teal-d: #0b6278;
  --gold: #a67c42;
  --line: #e2eaef;
  --paper: #f4f7f9;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 30, 51, 0.08);
  --radius: 18px;
  --max: 1160px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}
.lead { color: var(--muted); font-size: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-d); }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { background: #e7f4f7; }
.btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-line { background: white; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--teal); color: var(--teal-d); }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { filter: brightness(0.95); }

.topbar {
  background: var(--navy);
  color: #d5e4ee;
  font-size: 14px;
}
.topbar-inner, .header-inner, .footer-grid, .split, .catalog-layout, .detail-grid, .contact-grid, .why-grid, .offer-grid, .service-grid {
  display: grid;
}
.topbar-inner {
  min-height: 42px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
.topbar a:hover { color: white; }
.topbar-left, .topbar-right, .cluster { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar-right { color: #9eb4c4; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 78px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 56px; width: auto; display: block; }

.nav { display: flex; align-items: center; justify-content: center; gap: 6px; }
.nav > a, .nav-item > a {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--navy);
}
.nav > a:hover, .nav-item > a:hover, .nav a[aria-current="page"] { background: var(--paper); color: var(--teal-d); }
.nav-item { position: relative; }
.mega {
  position: absolute;
  left: 50%;
  transform: translateX(-40%);
  top: calc(100% + 8px);
  width: min(760px, 80vw);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { display: grid; }
.mega a {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
}
.mega a:hover { background: var(--paper); }
.mega strong { display: block; font-size: 15px; }
.mega small { color: var(--muted); display: block; line-height: 1.4; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-toggle { display: none; }
.header-actions .btn { min-height: 44px; }

.hero {
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(14,116,144,0.16), transparent 60%),
    linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
  padding: 56px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.hero-grid > *, .stage, .stage-main, .stage-side, .about-band > *, .catalog-layout > *, .detail-grid > *, .contact-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); color: var(--navy); max-width: 11em; }
.hero .lead { margin: 18px 0 26px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 15px; }

.stage { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 14px; }
.stage-main, .stage-side article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stage-main { min-height: 420px; display: flex; align-items: center; justify-content: center; padding: 18px; background: linear-gradient(180deg, #fff, #f3f7f8); }
.stage-main img, .stage-side img { width: 100%; max-width: 100%; height: 150px; object-fit: contain; }
.stage-main img { height: auto; max-height: 380px; }
.stage-side { display: grid; gap: 14px; }
.stage-side article { padding: 12px; }
.stage-side p { font-size: 13px; font-weight: 700; color: var(--navy); margin-top: 8px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 42px;
}
.stats article { background: white; padding: 22px 20px; }
.stats strong { display: block; font-family: var(--display); font-size: 28px; color: var(--navy); letter-spacing: -0.04em; }
.stats span { color: var(--muted); font-size: 14px; }

.section { padding: 78px 0; }
.section-alt { background: var(--paper); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2, .page-hero h1 { font-size: clamp(32px, 4vw, 46px); color: var(--navy); }

.offer-grid, .service-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer-card, .service-card, .why-card, .pcard, .info-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.offer-card, .service-card, .why-card { padding: 22px; }
.offer-card:hover, .pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.offer-card, .pcard { transition: 0.18s ease; display: block; }
.offer-card .num, .service-card .num {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #e7f5f8; color: var(--teal-d); font-weight: 800; margin-bottom: 14px;
}
.offer-card h3, .service-card h3, .why-card h3 { font-size: 20px; margin-bottom: 8px; }
.offer-card p, .service-card p, .why-card p { color: var(--muted); }
.offer-card em { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--teal-d); }

.rail-wrap { position: relative; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.pcard { scroll-snap-align: start; overflow: hidden; }
.pcard-img {
  height: 210px;
  background: linear-gradient(180deg, #fbfcfd, #eef3f6);
  display: grid;
  place-items: center;
  padding: 16px;
}
.pcard-img img { max-height: 180px; width: 100%; object-fit: contain; }
.pcard-body { padding: 14px 16px 18px; }
.pcard-body small { color: var(--teal-d); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.pcard-body h3 { font-size: 17px; margin: 6px 0 8px; letter-spacing: -0.02em; }
.pcard-body span { color: var(--muted); font-weight: 700; font-size: 14px; }

.carousel-nav { display: flex; gap: 8px; align-items: center; }
.about-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.about-panel {
  background: var(--navy);
  color: white;
  border-radius: 28px;
  padding: 36px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image:
    linear-gradient(180deg, rgba(7,30,51,0.15), rgba(7,30,51,0.78)),
    url("../images/products/five-function-electric-icu-bed.png");
  background-size: cover;
  background-position: center;
}
.about-panel strong { font-family: var(--display); font-size: 34px; letter-spacing: -0.04em; }
.about-copy h2 { font-size: clamp(32px, 4vw, 44px); color: var(--navy); margin-bottom: 14px; }
.about-copy p + p { margin-top: 12px; color: var(--muted); }
.about-copy .btn { margin-top: 22px; }

.why-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.why-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.why-card i {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: white; display: grid; place-items: center;
  font-style: normal; font-size: 14px; margin-top: 2px;
}

.cta {
  background: var(--navy);
  color: white;
  border-radius: 28px;
  padding: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.cta h2 { font-size: clamp(30px, 4vw, 42px); max-width: 16ch; }
.cta p { color: #c5d5e0; margin-top: 8px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.page-hero { padding: 54px 0 20px; background: linear-gradient(180deg, #f5fafb, #fff); }
.page-hero p { max-width: 62ch; color: var(--muted); margin-top: 12px; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.crumbs a:hover { color: var(--teal-d); }

.prose { max-width: 74ch; }
.prose p + p { margin-top: 14px; }
.prose h2 { margin: 28px 0 10px; color: var(--navy); font-size: 30px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.about-main .section { padding: 28px 0; }
.about-main .page-hero { padding-bottom: 4px; }
.about-story, .work-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.about-story .prose, .work-split .prose { max-width: none; }
.about-frame, .work-photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.about-frame img, .work-photo img {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1;
  object-fit: cover;
  object-position: center;
}
.about-frame figcaption, .work-photo figcaption {
  margin: 0;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border-top: 1px solid var(--line);
}
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.about-gallery article {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.about-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  object-position: center;
  background: #f7fafb;
}
.about-gallery div { padding: 14px 16px 16px; }
.about-gallery h3 { font-size: 18px; margin-bottom: 6px; }
.about-gallery p { color: var(--muted); }
.work-split { margin-top: 24px; }
.work-split h2 { margin-top: 0; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li:before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }

.catalog-layout { grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: white;
}
.filters button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.filters button.active, .filters button:hover { background: var(--paper); color: var(--teal-d); }
.filters button span { color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.toolbar input, .field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #d5e0e7;
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.toolbar input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14,116,144,0.12); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.empty { padding: 40px 10px; color: var(--muted); }

.detail-grid { grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: start; }
.gallery {
  background: linear-gradient(180deg, #fbfcfd, #eef3f6);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
.gallery-main { min-height: 380px; display: grid; place-items: center; }
.gallery-main img { max-height: 420px; width: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumbs button { width: 74px; height: 74px; border-radius: 12px; border: 1px solid var(--line); background: white; padding: 6px; cursor: pointer; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.thumbs .active { border-color: var(--teal); }
.detail h1 { font-size: clamp(32px, 4vw, 44px); color: var(--navy); }
.detail .cat { color: var(--teal-d); font-weight: 700; margin-bottom: 8px; }
.spec {
  margin-top: 18px;
  background: var(--paper);
  border-radius: 16px;
  padding: 16px 18px;
}
.spec strong { display: block; margin-bottom: 4px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 28px; }
.info-card { padding: 22px; }
.info-card + .info-card { margin-top: 14px; }
.info-card h2 { font-size: 18px; margin-bottom: 8px; }
.info-card a { color: var(--teal-d); font-weight: 700; }
.map {
  margin-top: 14px;
  border: 0;
  width: 100%;
  height: 230px;
  border-radius: 16px;
  background: var(--paper);
}
.form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.form h2 { margin-bottom: 6px; color: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field span { font-weight: 700; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.notice {
  background: #e8f6ef;
  color: #0f6b45;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.notice.error { background: #fdecec; color: #9b2c2c; }
.form .fine { color: var(--muted); font-size: 14px; margin-top: 10px; }

.site-footer { background: var(--navy); color: #d5e2eb; padding: 56px 0 20px; margin-top: 20px; }
.footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: white; font-size: 16px; margin-bottom: 12px; }
.site-footer a { display: block; padding: 4px 0; color: #d5e2eb; }
.site-footer a:hover { color: white; }
.site-footer .logo {
  background: #fff;
  display: inline-flex;
  border-radius: 12px;
  padding: 6px 10px;
}
.site-footer .logo img { height: 48px; }
.footer-brand p { margin-top: 12px; color: #b7c9d4; max-width: 36ch; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 28px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8ea6b5;
  font-size: 14px;
}

.wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1fa855;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(15, 90, 50, 0.28);
}
.wa:hover { transform: translateY(-2px); }

.search-modal, .nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 51, 0.46);
  z-index: 60;
  display: none;
  padding: 10vh 16px 16px;
}
.search-modal.open, .nav-backdrop.open { display: block; }
.search-panel {
  width: min(680px, 100%);
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.search-panel input { width: 100%; border: 0; border-bottom: 1px solid var(--line); font-size: 22px; padding: 10px 4px 12px; outline: none; }
.search-results { margin-top: 8px; max-height: 50vh; overflow: auto; }
.search-results a { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; }
.search-results a:hover { background: var(--paper); }
.search-results img { width: 54px; height: 54px; object-fit: contain; background: var(--paper); border-radius: 8px; }
.search-results small { color: var(--muted); }

@media (max-width: 980px) {
  .hero-grid, .about-band, .about-story, .work-split, .catalog-layout, .detail-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-gallery { grid-template-columns: 1fr 1fr; }
  .offer-grid, .service-grid, .product-grid, .stats { grid-template-columns: 1fr 1fr; }
  .stage { grid-template-columns: 1fr 1fr; }
  .stage-main { grid-column: 1 / -1; min-height: 280px; }
  .stage-main img { height: 240px; }
  .filters { position: static; }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .logo { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .nav-toggle { grid-column: 3; grid-row: 1; display: grid; }
  .header-actions .btn { display: none; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .mega { position: static; transform: none; width: auto; display: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .nav-item.open .mega, .nav-item:hover .mega, .nav-item:focus-within .mega { display: grid; grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .topbar-right { display: none; }
}

@media (max-width: 680px) {
  .logo img { height: 44px; }
  .offer-grid, .service-grid, .product-grid, .stats, .why-grid, .form-grid, .two-col, .about-gallery { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .section { padding: 52px 0; }
  .cta, .about-panel { padding: 24px; }
  .legal { flex-direction: column; }
}
