:root {
  --blue: #7db8d8;
  --blue-2: #dff2fb;
  --brown: #c4a27a;
  --brown-2: #f3e7d8;
  --dark: #13202b;
  --text: #33424f;
  --muted: #70808d;
  --white: #ffffff;
  --line: rgba(19, 32, 43, 0.1);
  --shadow: 0 24px 70px rgba(19, 32, 43, 0.12);
  --shadow-soft: 0 14px 40px rgba(19, 32, 43, 0.08);
  --radius: 28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #fbf8f3;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 10%, rgba(125, 184, 216, 0.22), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(196, 162, 122, 0.22), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f9f3eb 45%, #eef8fc 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(19, 32, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 43, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

/* TOPBAR */
.topbar {
  height: 42px;
  background: rgba(19, 32, 43, 0.92);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.topbar-inner {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-left span {
  width: 4px;
  height: 4px;
  background: var(--brown);
  border-radius: 50%;
}

.topbar a:hover {
  color: white;
}

.topbar-right {
  display: flex;
  gap: 6px;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  background: transparent;
  padding: 4px 9px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
}

.lang-btn.active {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--dark);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(19, 32, 43, 0.08);
  transition: 0.25s ease;
}

.header.scrolled {
  box-shadow: 0 14px 34px rgba(19, 32, 43, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 24px;
  background: linear-gradient(135deg, var(--blue), var(--brown));
  box-shadow: 0 14px 30px rgba(125, 184, 216, 0.35);
}

.logo strong {
  display: block;
  color: var(--dark);
  font-size: 18px;
  letter-spacing: 0.4px;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--dark);
}

.nav > a,
.nav-mega > a {
  padding: 30px 0;
  transition: 0.2s ease;
}

.nav a:hover {
  color: #3d95c5;
}

.nav-mega {
  position: relative;
}

.mega {
  position: absolute;
  left: 50%;
  top: 78px;
  width: 720px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.nav-mega:hover .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mega-grid a {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(223, 242, 251, 0.7), rgba(243, 231, 216, 0.65));
  border: 1px solid rgba(19, 32, 43, 0.06);
}

.mega-grid b {
  display: block;
  color: var(--dark);
}

.mega-grid small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-btn {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: var(--dark);
  border-radius: 14px;
  cursor: pointer;
}

.mobile-btn span {
  width: 18px;
  height: 2px;
  background: white;
  margin: 0 auto;
  border-radius: 4px;
}

.mobile-menu {
  display: none;
  padding: 0 20px 20px;
}

.mobile-menu.open {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--blue), #69a9cc);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(125, 184, 216, 0.38);
  transition: 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(125, 184, 216, 0.48);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--dark);
  border-color: rgba(19, 32, 43, 0.12);
  box-shadow: none;
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

/* HERO */
.hero {
  padding: 92px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 999px;
  color: var(--dark);
  margin-bottom: 24px;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(125, 184, 216, 0.18);
}

.hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -2.3px;
  color: var(--dark);
  margin-bottom: 24px;
}

.hero p {
  max-width: 650px;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hero-trust div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(19, 32, 43, 0.08);
}

.hero-trust strong {
  display: block;
  color: var(--dark);
  font-size: 28px;
  line-height: 1;
}

.hero-trust small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.visual-card.main {
  position: absolute;
  inset: 0;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.52)),
    linear-gradient(135deg, var(--blue-2), var(--brown-2));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-top {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(19, 32, 43, 0.08);
}

.visual-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brown);
}

.visual-top span:nth-child(2) {
  background: var(--blue);
}

.visual-top span:nth-child(3) {
  background: #dce4ea;
}

.medical-illustration {
  position: relative;
  height: calc(100% - 62px);
  display: grid;
  place-items: center;
}

.circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 34px solid rgba(125, 184, 216, 0.62);
  box-shadow: inset 0 0 0 24px rgba(196, 162, 122, 0.16), 0 30px 80px rgba(19, 32, 43, 0.12);
}

.pulse {
  animation: pulse 2.8s infinite;
}

.device {
  position: absolute;
  width: 150px;
  height: 210px;
  border-radius: 30px;
  background: var(--dark);
  box-shadow: 0 20px 50px rgba(19, 32, 43, 0.3);
  padding: 24px;
}

.device div:first-child {
  height: 82px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--brown));
}

.device div:last-child {
  margin: 22px auto 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: white;
}

.scan-line {
  position: absolute;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: scan 3s linear infinite;
}

.floating-card {
  position: absolute;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: var(--shadow-soft);
}

.floating-card b {
  color: var(--dark);
}

.floating-card small {
  display: block;
  color: var(--muted);
}

.card-one {
  left: -28px;
  top: 92px;
}

.card-two {
  right: -18px;
  bottom: 92px;
}

/* SECTIONS */
.section {
  padding: 92px 0;
}

.section-head {
  max-width: 740px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head span,
.section-mini {
  display: inline-block;
  color: #4a9ac4;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  margin-bottom: 12px;
}

.section-head h2,
.about-content h2,
.contact-info h2 {
  color: var(--dark);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.4px;
}

.section-head p,
.about-content p,
.contact-info p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 16px;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-2), var(--brown-2));
  font-size: 27px;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--dark);
  font-size: 22px;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
}

/* CATALOG */
.catalog-section {
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(19, 32, 43, 0.06);
  border-bottom: 1px solid rgba(19, 32, 43, 0.06);
}

.catalog-toolbar {
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.search input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(19, 32, 43, 0.1);
  border-radius: 999px;
  padding: 0 22px;
  outline: none;
  background: white;
  color: var(--dark);
}

.search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(125, 184, 216, 0.18);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-btn {
  border: 1px solid rgba(19, 32, 43, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: var(--dark);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

.catalog-info {
  color: var(--muted);
  margin-bottom: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.p-img {
  height: 230px;
  background: linear-gradient(135deg, var(--blue-2), var(--brown-2));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.p-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: 0.25s ease;
}

.product-card:hover .p-img img {
  transform: scale(1.04);
}

.p-img.no-img::after {
  content: "🏥";
  font-size: 56px;
}

.p-body {
  padding: 22px;
}

.p-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.p-code {
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.p-cat {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brown-2);
  color: #8b6941;
}

.p-body h3 {
  color: var(--dark);
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.p-body p {
  color: var(--muted);
  font-size: 14px;
  min-height: 66px;
}

.p-specs {
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.p-specs span {
  color: var(--text);
  font-size: 14px;
}

.p-specs span::before {
  content: "✓";
  color: var(--blue);
  font-weight: 900;
  margin-right: 8px;
}

.product-btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--dark);
  color: white;
  font-weight: 700;
  transition: 0.2s ease;
}

.product-btn:hover {
  background: #294254;
}

/* ABOUT */
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  min-height: 500px;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(125, 184, 216, 0.22), rgba(196, 162, 122, 0.24)),
    url("assets/products/product-01.png") center / contain no-repeat;
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: var(--shadow);
  position: relative;
}

.about-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  padding: 20px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.about-card strong {
  display: block;
  color: var(--dark);
}

.about-card span {
  color: var(--muted);
}

.about-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.about-list div {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 32, 43, 0.08);
}

.about-list b {
  color: var(--brown);
}

/* PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-grid div {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 32, 43, 0.08);
}

.process-grid b {
  color: var(--blue);
  font-size: 26px;
}

.process-grid h3 {
  color: var(--dark);
  margin: 18px 0 8px;
}

.process-grid p {
  color: var(--muted);
}

/* CONTACT */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 44px;
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.contact-cards a,
.contact-cards div {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 32, 43, 0.08);
}

.contact-cards b {
  display: block;
  color: var(--dark);
  margin-bottom: 6px;
}

.contact-cards span {
  color: var(--muted);
  font-size: 14px;
}

.contact-form {
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(19, 32, 43, 0.1);
  border-radius: 18px;
  padding: 15px 16px;
  outline: none;
  background: white;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(125, 184, 216, 0.16);
}

.contact-form small {
  color: var(--muted);
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 60px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 34px;
}

.footer-logo strong,
.footer-logo small {
  color: white;
}

.footer p {
  max-width: 360px;
  margin-top: 18px;
}

.footer b {
  display: block;
  color: white;
  margin-bottom: 12px;
}

.footer a {
  display: block;
  margin-bottom: 8px;
}

.copyright {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 32, 43, 0.58);
  backdrop-filter: blur(8px);
}

.modal-window {
  position: relative;
  width: min(900px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  background: white;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  font-size: 26px;
  cursor: pointer;
}

.modal-product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.modal-product .p-img {
  height: 100%;
  min-height: 430px;
}

.modal-body {
  padding: 44px;
}

.modal-body h2 {
  color: var(--dark);
  font-size: 34px;
  line-height: 1.1;
  margin: 16px 0;
}

.modal-body p {
  color: var(--muted);
}

.modal-specs {
  margin: 24px 0;
  display: grid;
  gap: 10px;
}

.modal-specs span::before {
  content: "✓";
  color: var(--blue);
  margin-right: 8px;
  font-weight: 900;
}

/* TOAST */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--dark);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ANIMATIONS */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes scan {
  0% {
    transform: translateY(-180px);
    opacity: 0;
  }
  15%, 85% {
    opacity: 1;
  }
  100% {
    transform: translateY(180px);
    opacity: 0;
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .mobile-btn {
    display: flex;
  }

  .hero-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }

  .services-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-product {
    grid-template-columns: 1fr;
  }

  .modal-product .p-img {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .topbar {
    display: none;
  }

  .container {
    width: min(100% - 24px, 1200px);
  }

  .header-inner {
    height: 72px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    letter-spacing: -1.4px;
  }

  .hero-trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    min-height: 380px;
  }

  .floating-card {
    display: none;
  }

  .services-grid,
  .products-grid,
  .process-grid,
  .contact-cards,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .about-image {
    min-height: 360px;
  }

  .modal-body {
    padding: 30px 22px;
  }
}
