/* MedClinic public site — design language follows transplantwebsite.medproject.galex.md
   (sky/blue palette, heavy display type, soft layered cards). */

:root {
  --ink: #0f172a;          /* slate-900 headings */
  --ink-2: #334155;        /* slate-700 body strong */
  --muted: #64748b;        /* slate-500 body */
  --line: #e2e8f0;         /* slate-200 */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-600: #0284c7;      /* primary */
  --sky-700: #0369a1;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;     /* footer */
  --mp-blue: #4b74ff;      /* medproject.md wordmark blue */
  --coral: #ee7864;        /* galex.md accent */
  --ok: #16a34a;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --shadow-card: 0 14px 35px rgba(15, 23, 42, .06);
  --shadow-lift: 0 30px 60px rgba(15, 23, 42, .10);
  --shadow-sky: 0 18px 35px rgba(2, 132, 199, .25);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink-2); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-600); text-decoration: none; }
a:hover { color: var(--sky-700); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; font: 700 16px/1.2 var(--font);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--sky-600) 0%, var(--sky-400) 100%); box-shadow: var(--shadow-sky); }
.btn-primary:hover { color: #fff; box-shadow: 0 22px 40px rgba(2, 132, 199, .32); }
.btn-light { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow-card); }
.btn-light:hover { color: var(--ink); border-color: var(--sky-300); }
.btn-sm { padding: 10px 18px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: #fff; color: var(--sky-700); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-card);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.eyebrow { color: var(--sky-600); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sky-100); color: var(--sky-700); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 25px; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand .med { color: var(--mp-blue); }
.brand small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-top: -2px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 8px; color: #374151; font-size: 15.5px; font-weight: 500; }
.nav-links a:hover { background: var(--sky-50); color: var(--sky-700); }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 8px 30px 8px 12px; font: 600 14px var(--font); color: var(--ink); cursor: pointer;
}
.lang::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--sky-100) 0%, #fff 62%, var(--blue-100) 100%); padding: 56px 0 96px; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; bottom: -200px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250, .28), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.035em; margin: 26px 0 10px; line-height: 1.02; }
.hero h1 .accent { display: block; color: var(--sky-600); font-size: .74em; margin-top: 8px; letter-spacing: -.03em; line-height: 1.08; }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); line-height: 1.65; max-width: 560px; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.mini-card { background: #fff; border-radius: var(--radius-lg); padding: 22px 22px 20px; box-shadow: var(--shadow-card); }
.mini-card svg { width: 28px; height: 28px; color: var(--sky-600); }
.mini-card h3 { font-size: 17px; margin: 12px 0 6px; }
.mini-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* layered frame around the hero screenshot, as on the transplant site */
.stage { position: relative; padding: 22px; }
.frame-outer { background: #fff; border-radius: var(--radius-xl); padding: 18px; box-shadow: 0 35px 70px rgba(15, 23, 42, .10); }
.frame-inner { border-radius: var(--radius-lg); padding: 14px; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%); }
.float-chip {
  position: absolute; background: #fff; border-radius: 20px; padding: 14px 20px; box-shadow: var(--shadow-lift);
  z-index: 3; min-width: 120px; animation: bob 6s ease-in-out infinite;
}
.float-chip .k { font-size: 13px; color: var(--muted); }
.float-chip .v { font-size: 26px; font-weight: 800; color: var(--sky-600); letter-spacing: -.02em; line-height: 1.15; }
.float-chip.tl { top: -6px; left: -8px; }
.float-chip.br { bottom: -10px; right: -6px; animation-delay: -3s; }
.float-chip.ml { bottom: 4%; left: -34px; animation-delay: -1.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- device mockups ---------- */
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 20px 45px rgba(2, 132, 199, .12); border: 1px solid #dbe3ee; }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.browser-bar .dots { display: flex; gap: 7px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.browser-bar .dots i:nth-child(2) { background: #fbbf24; }
.browser-bar .dots i:nth-child(3) { background: #34d399; }
.browser-bar .url { flex: 1; max-width: 380px; margin: 0 auto; height: 24px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.browser-bar .url svg { width: 11px; height: 11px; color: var(--ok); }

.laptop { position: relative; margin: 0 6% 0; }
.laptop-screen { background: #0b1220; border-radius: 18px 18px 0 0; padding: 14px 14px 18px; box-shadow: 0 0 0 2px #1f2937 inset; position: relative; }
.laptop-screen::before { content: ""; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #334155; }
.laptop-screen .shot { border-radius: 4px; }
.laptop-base { position: relative; height: 18px; margin: 0 -7%; background: linear-gradient(180deg, #e5e7eb 0%, #cbd5e1 55%, #94a3b8 100%); border-radius: 0 0 22px 22px; box-shadow: 0 26px 40px rgba(15, 23, 42, .18); }
.laptop-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 7px; margin-left: -8%; background: #94a3b8; border-radius: 0 0 10px 10px; }

.tablet { background: #0b1220; border-radius: 34px; padding: 18px; box-shadow: var(--shadow-lift), 0 0 0 2px #1f2937 inset; position: relative; }
.tablet::before { content: ""; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: #334155; }
.tablet .shot { border-radius: 14px; }

/* screenshot box keeps the aspect ratio and shows a neutral skeleton until the file is present */
.shot { position: relative; overflow: hidden; background: #eef3f8; aspect-ratio: 16 / 10; }
.shot.r-tablet { aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot.missing img { display: none; }
.shot.missing::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(#1e3a5f, #1e3a5f) 0 0 / 100% 7% no-repeat,
    linear-gradient(#cfe0ef, #cfe0ef) 3% 13% / 30% 4% no-repeat,
    linear-gradient(#fff, #fff) 3% 22% / 94% 30% no-repeat,
    linear-gradient(#d9e7f3, #d9e7f3) 3% 60% / 45% 22% no-repeat,
    linear-gradient(#d9e7f3, #d9e7f3) 97% 60% / 45% 22% no-repeat,
    linear-gradient(#1e3a5f, #1e3a5f) 0 100% / 100% 7% no-repeat,
    linear-gradient(180deg, #eaf3fb, #f6fafd);
}
.shot.missing::after { content: attr(data-name); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 600 12px var(--font); color: var(--muted); background: rgba(255, 255, 255, .9); padding: 6px 12px; border-radius: 8px; white-space: nowrap; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 104px 0; }
.section.soft { background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); }

/* stats strip */
.stats { margin-top: -48px; position: relative; z-index: 2; }
.stats-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 10px; }
.stat { text-align: center; padding: 6px 14px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .v { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat .v span { color: var(--sky-600); }
.stat .k { font-size: 14px; color: var(--muted); }
.clients { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.clients b { color: var(--ink-2); font-weight: 700; }

/* modules */
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.module { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); border: 1px solid #eef2f7; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.module:hover { transform: translateY(-4px); box-shadow: 0 24px 45px rgba(2, 132, 199, .12); }
.module .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky-100), var(--blue-100)); color: var(--sky-700); }
.module .ico svg { width: 24px; height: 24px; }
.module h3 { font-size: 18px; margin: 16px 0 8px; }
.module p { font-size: 14.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.module .plans { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.module .plans .tag.t2 { background: #ede9fe; color: #5b21b6; }
.module .plans .tag.t3 { background: #dcfce7; color: #166534; }

/* tour */
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); border: 1px solid #eef2f7; }
.tabs-wrap { text-align: center; margin-bottom: 48px; }
.tab { border: 0; background: none; padding: 11px 20px; border-radius: 10px; font: 600 15px var(--font); color: #475569; cursor: pointer; transition: .15s; }
.tab:hover { color: var(--sky-700); }
.tab[aria-selected="true"] { background: var(--blue-600); color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, .28); }
.panel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: center; }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.025em; margin: 10px 0 16px; }
.panel > div > p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.panel.animate { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* workflow */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; counter-reset: s; }
.step { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-card); border: 1px solid #eef2f7; display: flex; gap: 12px; align-items: center; }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--sky-600), var(--sky-400)); }
.step b { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.step span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; }
.duo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.duo-stack { position: relative; padding-bottom: 60px; }
.duo-stack .browser { width: 88%; }
.duo-stack .tablet { position: absolute; right: 0; bottom: 0; width: 58%; }

/* lab band */
.band { background: radial-gradient(1200px 500px at 85% -10%, rgba(56, 189, 248, .35), transparent 60%), linear-gradient(135deg, var(--blue-900) 0%, #1e40af 55%, #0369a1 100%); color: #dbeafe; }
.band h2, .band h3 { color: #fff; }
.band .section-head p { color: #bfdbfe; }
.band .eyebrow { color: var(--sky-300); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 30px; }
.chip-cloud span { padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 14px; font-weight: 600; }
.chip-cloud.proto span { background: rgba(56, 189, 248, .18); border-color: rgba(125, 211, 252, .45); }
.integr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.integr div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 16px; }
.integr b { display: block; color: #fff; margin-bottom: 4px; }
.integr span { font-size: 14px; color: #bfdbfe; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { padding: 28px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); border: 1px solid #eef2f7; }
.why svg { width: 30px; height: 30px; color: var(--sky-600); }
.why h3 { font-size: 19px; margin: 14px 0 8px; }
.why p { color: var(--muted); font-size: 15px; }

/* pricing */
.billing-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); border: 1px solid #eef2f7; }
.billing-toggle button { border: 0; background: none; padding: 10px 18px; border-radius: 10px; font: 600 15px var(--font); color: #475569; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--blue-600); color: #fff; }
.billing-toggle .save { margin-left: 6px; font-size: 12px; font-weight: 800; color: var(--ok); background: #dcfce7; padding: 2px 8px; border-radius: 999px; }
.billing-toggle button[aria-pressed="true"] .save { background: rgba(255, 255, 255, .2); color: #fff; }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-card); border: 1px solid #e8eef6; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--sky-600); box-shadow: 0 30px 60px rgba(2, 132, 199, .18); transform: translateY(-10px); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--sky-600), var(--sky-400)); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { font-size: 22px; }
.plan .for { font-size: 14px; color: var(--muted); margin: 6px 0 20px; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-size: 46px; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.price .cur { font-size: 22px; font-weight: 800; color: var(--ink); }
.price .per { font-size: 14px; color: var(--muted); line-height: 1.3; }
.price-note { font-size: 13px; color: var(--muted); margin: 8px 0 4px; min-height: 40px; }
.price-mdl { font-size: 13px; color: var(--sky-700); font-weight: 600; }
.plan .setup { margin: 16px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); font-size: 13.5px; color: var(--ink-2); }
.plan .checks { margin: 22px 0 26px; gap: 10px; flex: 1; }
.plan .checks li { font-size: 14.5px; }
.plan .btn { margin-top: auto; }
.pricing-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

.addons { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.card { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card); border: 1px solid #eef2f7; }
.card h3 { font-size: 22px; margin-bottom: 6px; }
.card > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.addon-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.addon-table td { padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.addon-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; padding-left: 16px; }
.addon-table small { display: block; color: var(--muted); font-size: 13px; }

.calc label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin: 16px 0 8px; }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc select, .calc input[type="number"], .form input, .form select, .form textarea {
  width: 100%; border: 1px solid #d5dde8; border-radius: 12px; padding: 12px 14px; font: 15px var(--font); color: var(--ink); background: #fff;
}
.calc select:focus, .calc input:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(56, 189, 248, .2); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--sky-600); }
.range-row output { min-width: 56px; text-align: center; font-weight: 800; color: var(--sky-700); background: var(--sky-50); border-radius: 10px; padding: 6px 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 500 !important; color: var(--ink-2) !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--sky-600); margin-top: 2px; }
.calc-out { margin-top: 22px; border-radius: 18px; padding: 20px; background: linear-gradient(135deg, var(--sky-600), var(--blue-800)); color: #e0f2fe; }
.calc-out .big { font-size: 38px; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.calc-out dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 14px 0 0; font-size: 14px; }
.calc-out dt { color: #bae6fd; }
.calc-out dd { margin: 0; text-align: right; color: #fff; font-weight: 700; }
.calc-out .warn { margin-top: 12px; font-size: 13px; color: #fde68a; }

/* process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.process::before { content: ""; position: absolute; top: 31px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--sky-300) 0 10px, transparent 10px 18px); }
.pstep { text-align: center; position: relative; }
.pstep .n { width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 16px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sky); color: var(--sky-600); position: relative; }
.pstep .n svg { width: 28px; height: 28px; }
.pstep h3 { font-size: 17px; margin-bottom: 6px; }
.pstep p { font-size: 14px; color: var(--muted); }

/* faq */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; border: 1px solid #e8eef6; box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--sky-50); color: var(--sky-700); display: grid; place-items: center; font-size: 20px; font-weight: 600; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; margin-top: 28px; }
.contact-info a, .contact-info div { display: flex; gap: 14px; align-items: center; color: var(--ink-2); font-weight: 500; }
.contact-info svg { width: 22px; height: 22px; color: var(--sky-600); flex: none; }
.form { background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: 0 30px 60px rgba(2, 132, 199, .10); border: 1px solid #e8eef6; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); margin: 0 0 8px; }
.form label .req { color: #ef4444; }
.form .field { margin-bottom: 18px; }
.form textarea { min-height: 120px; resize: vertical; }
.form .ok { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #dcfce7; color: #166534; font-size: 14px; }
.form .ok.show { display: block; }
.form .fine { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* footer */
.site-footer { background: var(--blue-900); color: #bfdbfe; padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.site-footer a { color: #bfdbfe; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand .med { color: #93c5fd; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(191, 219, 254, .18); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 10px; font-size: 15px; }
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .plan.featured { transform: none; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .process::before { display: none; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .nav-tools .btn { display: none; }
  .nav-links { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; padding: 12px 16px 20px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15, 23, 42, .08); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-tools { margin-left: auto; }
  .hero-grid, .panel, .duo, .band-grid, .contact-grid, .addons { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 36px; }
  .stage { width: 100%; max-width: 680px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats-card { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding-bottom: 64px; }
  .hero-cards, .modules-grid, .plans-grid, .why-grid, .integr, .form .row, .calc .row, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: minmax(0, 1fr); }
  .float-chip { padding: 10px 14px; border-radius: 16px; min-width: 0; }
  .float-chip .v { font-size: 19px; }
  .float-chip.ml { display: none; }
  .stage { padding: 14px 6px; }
  .frame-outer { padding: 10px; border-radius: 24px; }
  .frame-inner { padding: 8px; border-radius: 18px; }
  .browser-bar .url { display: none; }
  .laptop { margin: 0 4%; }
  .duo-stack { padding-bottom: 40px; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; max-width: 100%; }
  .tab { flex: none; padding: 10px 14px; }
  .form, .card { padding: 22px; }
  .brand { font-size: 22px; }
  .brand small { display: none; }
  .stat .v { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-chip { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .panel.animate { animation: none; }
}

/* analyzer -> integrator -> lab -> doctor flow in the laboratory band */
.flow { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; align-items: stretch; backdrop-filter: blur(6px); }
.flow .node { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 18px 35px rgba(2, 6, 23, .25); }
.flow .node b { display: block; color: var(--ink); font-size: 16px; }
.flow .node span:not(.ni) { display: block; color: var(--muted); font-size: 13.5px; }
.flow .node.hi { background: linear-gradient(135deg, var(--sky-600), var(--sky-400)); }
.flow .node.hi b, .flow .node.hi span:not(.ni) { color: #fff; }
.flow .ni { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-100); color: var(--sky-700); }
.flow .node.hi .ni { background: rgba(255, 255, 255, .22); color: #fff; }
.flow .ni svg { width: 22px; height: 22px; }
.flow .link { position: relative; height: 34px; margin-left: 39px; border-left: 2px dashed rgba(186, 230, 253, .7); }
.flow .link::after { content: ""; position: absolute; left: -7px; bottom: 2px; border: 6px solid transparent; border-top-color: #bae6fd; }
.flow .link.bi::before { content: ""; position: absolute; left: -7px; top: 2px; border: 6px solid transparent; border-bottom-color: #bae6fd; }

/* call-to-action tile closing the modules grid */
.module-cta { grid-column: span 2; flex-direction: row; align-items: center; gap: 24px; background: linear-gradient(135deg, var(--sky-600) 0%, var(--blue-800) 100%); border: 0; }
.module-cta h3 { color: #fff; margin-top: 0; font-size: 21px; }
.module-cta p { color: #bae6fd; }
.module-cta .btn { flex: none; }
@media (max-width: 1100px) { .module-cta { grid-column: span 1; flex-direction: column; align-items: flex-start; } }

/* module-based pricing (price list from EternaMed.xlsx) */
.plans-grid.lots { grid-template-columns: repeat(3, 1fr); }
.plans-grid.lots .plan.featured { transform: none; }
.lot-no { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-600); margin-bottom: 6px; }
.plans-grid.lots .plan h3 { font-size: 21px; }
.plans-grid.lots .price .amt { font-size: 40px; }
.plans-grid.lots .price .per { margin-left: 2px; }
.plans-grid.lots .price-note { min-height: 0; margin-bottom: 0; }
.plans-grid.lots .plan .checks { margin: 18px 0 14px; flex: none; }
.excl { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.excl summary { cursor: pointer; font-weight: 600; color: #b45309; list-style: none; }
.excl summary::-webkit-details-marker { display: none; }
.excl summary::before { content: "−"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: #fef3c7; color: #b45309; font-weight: 800; font-size: 13px; transform: rotate(0); }
.excl ul { margin: 10px 0 0; padding-left: 26px; display: grid; gap: 6px; }
.plans-grid.lots .plan .btn { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 7px 12px; border-radius: 10px; background: var(--sky-50); border: 1px solid #d6ecfb; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.checks.good { margin-top: 14px; }
.checks.good li { font-size: 14.5px; }
.calc-mods { display: grid; gap: 8px; }
.calc .calc-mods .check { display: flex; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px; align-items: center; }
.calc .calc-mods .check span { flex: 1; }
.calc .calc-mods .check b { color: var(--ink); font-size: 14px; white-space: nowrap; }
@media (max-width: 1100px) { .plans-grid.lots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans-grid.lots { grid-template-columns: minmax(0, 1fr); } }

/* header with seven links: tighter spacing, one line per link, and the burger menu below 1240px
   (the longest labels are RO/RU, e.g. "Администрирование") */
.nav { gap: 18px; }
.nav-links a { padding: 8px 10px; font-size: 15px; white-space: nowrap; }
@media (max-width: 1240px) {
  .menu-btn { display: inline-block; }
  .nav-tools .btn { display: none; }
  .nav-tools { margin-left: auto; }
  .nav-links { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; padding: 12px 16px 20px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15, 23, 42, .08); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
}

/* two screens on top of each other: a page and a detail of it (revisions + compare, documents + history) */
.shot-stack { position: relative; padding-bottom: 20%; }
.shot-stack > .browser:first-child { width: 86%; }
.shot-stack > .browser.over { position: absolute; right: 0; bottom: 0; width: 60%; box-shadow: var(--shadow-lift), 0 0 0 1px rgba(2, 132, 199, .08); }
.shot-stack > .browser.over .shot { border-top: 4px solid var(--sky-600); }

/* data protection band: six guarantees and the storage layers behind them */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 18px; }
.sec-card svg { width: 26px; height: 26px; color: var(--sky-300); }
.sec-card b { display: block; color: #fff; margin: 10px 0 4px; font-size: 16px; }
.sec-card span { display: block; font-size: 14px; color: #bfdbfe; line-height: 1.55; }
.flow.layers { gap: 12px; }
.layers-title { color: #bae6fd; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 4px 4px; }
.flow.layers .node:nth-of-type(2) { margin-left: 14px; }
.flow.layers .node:nth-of-type(3) { margin-left: 28px; }
.flow.layers .node:nth-of-type(4) { margin-left: 42px; }
@media (max-width: 640px) {
  .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .shot-stack { padding-bottom: 24%; }
  .shot-stack > .browser:first-child { width: 92%; }
  .shot-stack > .browser.over { width: 66%; }
  .flow.layers { padding: 18px; }
  .flow.layers .node { margin-left: 0 !important; }
}

/* contact form: Turnstile box, honeypot, status messages */
.captcha { min-height: 0; margin: 0 0 16px; }
.captcha:not(:empty) { min-height: 65px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form .ok.err { background: #fee2e2; color: #991b1b; }
.form .ok a { color: inherit; font-weight: 700; text-decoration: underline; }
.form button[disabled] { opacity: .7; cursor: progress; transform: none; }

/* "Log in" → MedClinic sign-in page */
.btn-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-ghost:hover { color: var(--sky-700); border-color: var(--sky-300); background: var(--sky-50); }
.btn-ghost svg { width: 16px; height: 16px; }
.nav-links .nav-login { display: none; }
@media (max-width: 1240px) {
  .nav-links .nav-login { display: flex; align-items: center; gap: 10px; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--sky-700); font-weight: 600; border-radius: 0; }
  .nav-links .nav-login svg { width: 18px; height: 18px; }
}

/* header with the Log in button stays on one line down to the 1240px collapse:
   tighter spacing, and the login button shows only its icon (text kept for screen readers and as a tooltip) */
@media (min-width: 1241px) and (max-width: 1480px) {
  .nav { gap: 16px; }
  .nav-links a { padding: 8px 10px; }
  .nav-tools { gap: 8px; }
  .nav-tools .btn-ghost { padding: 10px 12px; }
  .nav-tools .btn-ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* medical imaging (DICOM / PACS) */
.img-row { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: center; }
.img-row + .img-row { margin-top: 80px; }
.img-row-rev { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.img-row h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.img-row > div > p { color: var(--muted); font-size: 17px; }
.img-tools-title { font-size: 15px; margin: 24px 0 12px; color: var(--ink); }
.img-flow-title { text-align: center; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.025em; margin: 96px 0 40px; }
.img-network { margin-top: 64px; display: flex; gap: 24px; align-items: flex-start; }
.img-network-ico { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky-600), var(--blue-800)); color: #fff; }
.img-network-ico svg { width: 28px; height: 28px; }
.img-network .checks { margin-top: 18px; }
/* 15 modules + the call-to-action tile = 4 full rows */
.modules-grid .module-cta { grid-column: span 1; flex-direction: column; align-items: flex-start; }
@media (max-width: 960px) {
  .img-row, .img-row-rev { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .img-row-rev .laptop { order: 2; }
  .img-network { flex-direction: column; }
}

/* DICOM Viewer showcase: desktop monitor mockup with view tabs */
.img-viewer { margin-top: 96px; }
.img-viewer-head { margin-bottom: 28px; }
.img-viewer-head h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 12px; }
.img-viewer .tabs-wrap { margin-bottom: 32px; }
.vpanel.animate { animation: fadeUp .45s ease both; }
.monitor { max-width: 980px; margin: 0 auto; }
.monitor-screen { background: #0b1220; border-radius: 16px; padding: 12px 12px 16px; box-shadow: var(--shadow-lift), 0 0 0 2px #1f2937 inset; }
.monitor-screen .shot { border-radius: 4px; }
.shot.r-monitor { aspect-ratio: 1440 / 860; }
.monitor-stand { width: 16%; height: 44px; margin: 0 auto; background: linear-gradient(180deg, #94a3b8, #cbd5e1); clip-path: polygon(24% 0, 76% 0, 92% 100%, 8% 100%); }
.monitor-base { width: 32%; height: 10px; margin: 0 auto; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #e2e8f0, #94a3b8); box-shadow: 0 18px 30px rgba(15, 23, 42, .16); }
.monitor-caption { text-align: center; color: var(--muted); font-size: 15px; margin: 18px auto 0; max-width: 640px; }

/* DICOM Network figures */
.img-net-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.img-net-stats div { background: var(--sky-50); border: 1px solid #d6ecfb; border-radius: 14px; padding: 14px 16px; }
.img-net-stats b { display: block; font-size: 26px; font-weight: 800; color: var(--sky-700); letter-spacing: -.02em; line-height: 1.15; }
.img-net-stats span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: block; margin-top: 4px; }
@media (max-width: 1100px) { .img-net-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .img-net-stats { grid-template-columns: minmax(0, 1fr); } .monitor-stand { height: 28px; } }
