/* ===========================================================
   Клиникал Софт — clinicalsoft.pro
   Static marketing site stylesheet
   =========================================================== */

:root {
  --ink:        #1d2733;
  --ink-soft:   #44525f;
  --muted:      #6b7785;
  --line:       #e4e9ef;
  --bg:         #ffffff;
  --bg-soft:    #f5f8fb;
  --bg-soft-2:  #eef3f8;

  --brand:      #1763c7;   /* primary accent — confident blue */
  --brand-dark: #114e9e;
  --brand-soft: #e8f1fc;

  --bar-red:    #e23b2e;
  --bar-orange: #f5811e;
  --bar-yellow: #f5b914;
  --bar-green:  #23a455;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(29,39,51,.06), 0 8px 28px rgba(29,39,51,.07);
  --shadow-lg:  0 12px 40px rgba(29,39,51,.12);
  --maxw:       1180px;
  --space:      clamp(64px, 9vw, 120px);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- tri-color slanted bars motif ---------- */
.bars { display: inline-flex; gap: 5px; transform: skewX(-18deg); }
.bars span { width: 10px; height: 30px; border-radius: 3px; display: block; }
.bars span:nth-child(1) { background: var(--bar-red); }
.bars span:nth-child(2) { background: var(--bar-yellow); }
.bars span:nth-child(3) { background: var(--bar-green); }
.bars.sm span { width: 7px; height: 20px; }

.bars-divider {
  height: 6px;
  background: linear-gradient(90deg,
    var(--bar-red) 0 25%, var(--bar-orange) 25% 50%,
    var(--bar-yellow) 50% 75%, var(--bar-green) 75% 100%);
  border-radius: 6px;
  transform: skewX(-18deg);
  max-width: 120px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--bar-red), var(--bar-yellow), var(--bar-green));
  transform: skewX(-18deg);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 12px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(23,99,199,.25); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.menu-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -8%, var(--brand-soft), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 104px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: flex; align-items: center; gap: 9px; font-size: .95rem; color: var(--ink-soft); font-weight: 500; }
.hero-points svg { flex: none; color: var(--bar-green); }
.hero-media { position: relative; }
.hero-media img {
  border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); width: 100%; height: auto; display: block;
}
.hero-badge {
  position: absolute; left: -18px; bottom: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-badge strong { display: block; font-size: .95rem; color: var(--ink); }
.hero-badge span { font-size: .8rem; color: var(--muted); }

/* ===========================================================
   Section primitives
   =========================================================== */
.section { padding: var(--space) 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 64ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- services grid ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dde7; }
.svc-ic {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.svc-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.svc-card p { font-size: .93rem; margin: 0; color: var(--muted); }

/* ---------- feature rows (image + text) ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
.feature.reverse .feature-media { order: 2; }
.feature-media img { border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); width: 100%; height: auto; display: block; }
.feature ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature ul li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: var(--ink-soft); }
.feature ul svg { flex: none; margin-top: 3px; color: var(--brand); }
.price-tag {
  display: inline-flex; align-items: baseline; gap: 8px; margin-top: 26px;
  background: var(--brand-soft); color: var(--brand-dark);
  padding: 10px 18px; border-radius: 12px; font-weight: 600;
}
.price-tag b { font-size: 1.25rem; }

/* ---------- trust / why us ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: left;
}
.section.alt .trust-card { background: #fff; }
.trust-ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  color: var(--brand); margin-bottom: 16px; border: 1px solid var(--line);
}
.trust-card h3 { font-size: 1.08rem; }
.trust-card p { font-size: .93rem; margin: 0; color: var(--muted); }

/* ---------- about stats strip ---------- */
.about-points { display: grid; gap: 14px; margin-top: 22px; list-style: none; padding: 0; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.about-points svg { flex: none; margin-top: 4px; color: var(--bar-green); }

/* ---------- contacts ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.contact-mail {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; color: var(--brand); margin: 6px 0 18px;
}
.req {
  font-size: .95rem; color: var(--ink-soft); line-height: 1.75;
  border-left: 4px solid var(--brand); padding-left: 16px; margin-top: 20px;
}
.req b { color: var(--ink); }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: #0f1822; color: #c2ccd6; padding: 56px 0 28px; }
.site-footer a { color: #c2ccd6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 36px; }
.footer-logo {
  background: #fff; border-radius: 10px; padding: 10px 14px; display: inline-block; margin-bottom: 16px;
}
.footer-logo img { height: 28px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-req { font-size: .9rem; line-height: 1.7; color: #97a4b1; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #233040;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .88rem; color: #8090a0;
}

/* ===========================================================
   Privacy page
   =========================================================== */
.doc { padding: clamp(48px, 7vw, 80px) 0; }
.doc-wrap { max-width: 820px; margin: 0 auto; }
.doc h1 { margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: .92rem; margin-bottom: 32px; }
.doc h2 { font-size: 1.35rem; margin-top: 40px; }
.doc h3 { font-size: 1.08rem; margin-top: 24px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; color: var(--ink-soft); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-weight: 600; }

/* ===========================================================
   Scroll reveal
   =========================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: -1; }
  .feature-media { order: -1; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow);
  }
  .nav.open a { padding: 8px 0; width: 100%; }
  .nav.open .btn { display: inline-flex; margin-top: 8px; }
  .hero-badge { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .svc-grid, .trust-grid { grid-template-columns: 1fr; }
}
