:root {
  /* Цвета из логотипа Cardio Care */
  --navy: #353a45;       /* графит из надписи */
  --teal: #d9414b;       /* красный из сердца */
  --teal-dark: #b02a37;  /* тёмно-красный */
  --teal-soft: #fdeeec;  /* светлый коралловый фон */
  --ink: #262a33;
  --muted: #646a76;
  --bg: #ffffff;
  --bg-alt: #faf6f5;
  --line: #ece3e1;
  --radius: 14px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Rubik", "Assistant", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.25; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.alt { background: var(--bg-alt); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a.active { background: var(--teal-soft); color: var(--teal-dark); }
.nav a.cta { background: var(--teal); color: #fff; }
.nav a.cta:hover { background: var(--teal-dark); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  font-size: 22px; padding: 4px 12px; cursor: pointer; color: var(--navy);
}
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 70px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 28px; border-radius: 999px; border: 0; font-size: 18px;
  cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--teal-dark); }
.btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--teal-soft), #fff 70%); padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 20px; color: var(--muted); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(15,45,74,.15); }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } }

.page-hero { background: var(--teal-soft); padding: 48px 0; }
.page-hero p { color: var(--muted); font-size: 20px; max-width: 760px; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.price { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.price.featured { border-color: var(--teal); }
.price .amount { font-size: 38px; font-weight: 800; color: var(--navy); }
.price .label { color: var(--muted); }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-inline-start: 32px; margin-bottom: 10px; }
.checks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--teal); font-weight: 800;
}
ul.dots { padding-inline-start: 22px; margin: 0 0 1em; }
ul.dots li { margin-bottom: 6px; }

.cite { color: var(--muted); font-size: 15px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Insurers */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
@media (max-width: 500px) { .logos { gap: 8px; } .logos a { padding: 6px; } }
.logos a {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1;
}
.logos img { max-height: 100px; object-fit: contain; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
summary { font-weight: 700; cursor: pointer; color: var(--navy); font-size: 19px; }
details[open] summary { margin-bottom: 10px; }

/* Certificates */
.certs { max-width: 900px; }
.certs a {
  text-decoration: none; color: var(--navy); text-align: center;
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.certs a:hover { border-color: var(--teal); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.certs img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; padding: 12px; }
.certs h3 { margin: 0; }
.certs .ph { aspect-ratio: 16 / 9; min-height: 0; margin: 0; }

/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact h2 { color: #fff; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .contact .wrap { grid-template-columns: 1fr; } }
.contact .phone { font-size: 32px; font-weight: 800; color: #fff; text-decoration: none; direction: ltr; display: inline-block; }
form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 16px; }
input, textarea {
  width: 100%; padding: 14px; border-radius: 10px; border: 1px solid #c8d3dd; font: inherit; font-size: 17px;
}
textarea { min-height: 110px; resize: vertical; }
.form-status { min-height: 1.5em; font-weight: 600; }

footer { background: #23262e; color: #b8c6d4; padding: 24px 0; font-size: 15px; text-align: center; }
footer a { color: #fff; }

.fab {
  position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 60;
  background: var(--teal); color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

/* Три шага "איך זה עובד" */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 8px; }
.steps figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--bg-alt); }
.steps figcaption { font-weight: 600; color: var(--navy); }
.steps b { color: var(--teal); }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.hero img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.steps figure:not(:first-child) img { object-fit: contain; background: #fff; border: 1px solid var(--line); }

/* Language switcher */
.header-end { display: flex; align-items: center; gap: 10px; order: 3; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  padding: 5px 11px; line-height: 1.4;
}
.langs a:hover { color: var(--teal-dark); background: var(--teal-soft); }
.langs a.current { background: var(--navy); color: #fff; }
.site-header .nav { order: 2; }
@media (min-width: 1181px) {
  .site-header .wrap { justify-content: flex-start; }
  .site-header .nav { margin-inline-start: auto; }
}
/* Long English/Russian labels: shrink the menu on mid-size screens */
@media (max-width: 1320px) and (min-width: 1181px) {
  .nav a { padding: 8px 8px; font-size: 15px; }
}
html[lang="he"] .cite[dir="ltr"] { text-align: left; }

/* Service cards on the home page */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.service {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-color: var(--teal); box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-alt); }
.service-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-body h3, .service-body p { margin: 0; }
.service-body p { color: var(--muted); font-size: 17px; }
.service-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.service .from { font-weight: 700; color: var(--navy); }
.service .more { font-weight: 700; color: var(--teal); }

/* Reimbursement + insurers: centered block */
.reimb { text-align: center; }
.reimb .reimb-text { max-width: 720px; margin: 0 auto 28px; }
.reimb h3 { margin-top: 8px; }
.logos { margin-inline: auto; }

/* Anchor targets stay clear of the sticky header */
#contact, #contact-form { scroll-margin-top: 84px; }
.logos a { min-width: 0; overflow: hidden; }
.logos img { max-width: 100%; height: auto; }

/* Key numbers (72h Holter page) */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 22px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat .num { font-size: clamp(34px, 6vw, 52px); font-weight: 800; color: var(--teal); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--navy); font-weight: 600; font-size: 16px; }
@media (max-width: 500px) { .stat { padding: 16px 6px; } .stat .lbl { font-size: 14px; } }
.nav a { white-space: nowrap; }
/* Latin citations and numbers keep their own direction inside Hebrew text */
span.cite, .stat .num { unicode-bidi: isolate; direction: ltr; }

/* 12-lead Holter page */
.narrow { max-width: 760px; }
.table-wrap { overflow-x: auto; margin-top: 20px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 520px; }
.compare th, .compare td { padding: 14px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { color: var(--navy); font-size: 17px; background: var(--bg-alt); }
.compare tbody th { color: var(--muted); font-weight: 600; font-size: 16px; white-space: nowrap; }
.compare .hl { background: var(--teal-soft); color: var(--navy); font-weight: 600; }
.compare thead .hl { color: var(--teal-dark); }
.steps-col { grid-template-columns: 1fr; margin-top: 8px; }
.steps-col figure { flex-direction: row; align-items: center; gap: 16px; }
.steps-col img { width: 132px; flex-shrink: 0; }
@media (max-width: 600px) {
  .compare { min-width: 0; font-size: 14px; }
  .compare th, .compare td { padding: 10px 8px; }
  .compare thead th { font-size: 14px; }
  .compare tbody th { white-space: normal; font-size: 13px; }
  .steps-col img { width: 96px; }
}
@media (max-width: 600px) { .compare { hyphens: auto; -webkit-hyphens: auto; } .compare th, .compare td { overflow-wrap: break-word; } }
.stat .num { white-space: nowrap; } @media (max-width: 500px) { .stat .num { font-size: 28px; } }

/* Cardiologist card (12-lead Holter page) */
.doctor { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 860px; }
.doctor img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.doctor h3 { margin: 0 0 4px; font-size: 24px; }
.doctor .role { margin: 0; color: var(--teal-dark); font-weight: 700; }
.doctor .license { margin: 4px 0 14px; color: var(--muted); font-size: 16px; }
@media (max-width: 600px) {
  .doctor { grid-template-columns: 1fr; text-align: center; padding: 20px; }
  .doctor img { max-width: 220px; margin: 0 auto; }
}
.price-one { max-width: 340px; margin-bottom: 18px; }

/* ===================== Landing page (lp/) ===================== */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.lp-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.lp-call { padding: 10px 18px; font-size: 17px; }
.lp-hero { background: linear-gradient(135deg, var(--teal-soft), #fff 70%); padding: 40px 0 56px; }
.lp-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.lp-hero h1 { font-size: clamp(30px, 5vw, 48px); }
.lp-hero .lead { font-size: 20px; color: var(--muted); }
.lp-badges { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-badges li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--navy); font-size: 15px; }
.lp-badges li::before { content: "✓ "; color: var(--teal); font-weight: 800; }
.lp-hero-img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.lp-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 20px 50px rgba(15,45,74,.14); position: sticky; top: 90px; scroll-margin-top: 80px; }
.lp-form h2 { font-size: 24px; margin: 0; }
.lp-form-sub { color: var(--muted); margin: 0 0 6px; }
.lp-form select { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid #c8d3dd; font: inherit; font-size: 17px; background: #fff; }
.lp-form .btn { width: 100%; margin-top: 6px; }
.lp-form.sent .form-status { color: var(--teal-dark); font-size: 18px; }
.lp-privacy { color: var(--muted); font-size: 13px; margin: 0; }
@media (max-width: 900px) {
  .lp-hero .wrap { grid-template-columns: 1fr; }
  .lp-form { position: static; }
  .lp-hero-img { display: none; }
}
.lp-center { text-align: center; }
.lp-muted { color: var(--muted); margin-bottom: 28px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .lp-cards { grid-template-columns: 1fr; } }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.lp-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-alt); }
.lp-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lp-card-body h3 { margin: 0; }
.lp-price { font-size: 26px; font-weight: 800; color: var(--teal); }
.lp-card .checks { flex: 1; }
.lp-card .btn { text-align: center; font-size: 16px; padding: 12px 18px; }
.lp-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
@media (max-width: 900px) { .lp-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .lp-why { grid-template-columns: 1fr; } }
.lp-why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.lp-why-item h3 { margin: 0 0 6px; color: var(--teal-dark); }
.lp-why-item p { margin: 0; color: var(--muted); }
.lp-doctor { margin: 0 auto; }
.lp-narrow { max-width: 820px; }
.lp-final { background: var(--navy); color: #fff; }
.lp-final h2 { color: #fff; }
.lp-actions { justify-content: center; }
.lp-ghost { color: #fff; border-color: #fff; }
.lp-ghost:hover { background: #fff; color: var(--navy); }
.lp-bar { display: none; }
@media (max-width: 700px) {
  .lp-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .lp-bar .btn { text-align: center; padding: 12px; font-size: 16px; }
  body.lp { padding-bottom: 76px; }
}
@media (max-width: 600px) {
  .lp-hero { padding: 24px 0 36px; }
  .lp-hero .lead { font-size: 17px; }
  .lp-badges { margin: 12px 0 8px; }
  .lp-badges li { font-size: 13px; padding: 5px 10px; }
}
.lp-where { display: block; font-size: 15px; font-weight: 600; color: var(--navy); }
.lp-home { margin: 0; font-size: 14px; color: var(--muted); }
.lp-address { font-size: 18px; margin-bottom: 4px; }
/* Landing: clinic block */
.lp-clinic-sec { background: var(--teal-soft); }
.lp-clinic { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 800px) { .lp-clinic { grid-template-columns: 1fr; } }
.lp-clinic-addr { font-size: 22px; font-weight: 700; color: var(--teal-dark); margin-bottom: 10px; }
.lp-clinic .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-clinic-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.lp-clinic-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.lp-clinic-row span { color: var(--muted); }
.lp-clinic-row a { color: var(--navy); text-decoration: none; }
.lp-clinic-box .btn { text-align: center; }
