﻿:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --ink: #1f2a37;
  --muted: #5b6878;
  --line: #d8d3c9;
  --brand: #35b8e8;
  --brand-2: #4f6fe3;
  --radius: 16px;`r`n  --radius-sm: 14px;`r`n  --radius-md: 16px;`r`n  --radius-lg: 20px;`r`n  --border-soft: #d6e4f5;`r`n  --shadow-soft: 0 8px 20px rgba(60,64,72,.08);`r`n  --shadow-card: 0 10px 24px rgba(40,88,145,.10);
  --maxw: 1160px;

  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 17px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-28: 28px;
  --fs-40: 40px;
  --lh-tight: 1.15;
  --lh-base: 1.6;

  --shadow: var(--shadow-soft);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Open Sans", Segoe UI, Arial, sans-serif;
  font-size: var(--fs-16);
  color: var(--ink);
  line-height: var(--lh-base);
  background: radial-gradient(980px 400px at 12% -8%, #f2f0ea 0%, transparent 60%), radial-gradient(900px 420px at 95% -12%, #f7f5f1 0%, transparent 60%), var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #dbe5f3;
  box-shadow: 0 6px 18px rgba(45,87,134,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
  min-height: 84px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.logo-img { height: 40px; width: auto; display: block; object-fit: contain; }

.nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-left: auto; margin-right: auto; }
 .nav a {
  text-decoration: none;
  font-weight: 800;
  color: #6f8096;
  font-size: var(--fs-14);
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
 }
.nav a:hover { color: #2d4666; }
.nav a.active { color: #1f2a37; background:#eef5fd; border-color:#d1e0f0; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  border-radius: 11px;
  padding: 11px 15px;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-main { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #ffffff; box-shadow: 0 10px 22px rgba(79,111,227,.22); font-weight: 800; }
.btn-alt { border: 1px solid #cad4e2; background: #ffffff; color: #4d6178; }

 .hero {
  margin-top: 16px;
  background: linear-gradient(145deg, #fdfcf9, #f6f4ef);
  border: 1px solid #d8d3c9;
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid #d8e4f2;
  border-radius: 999px;
  font-size: var(--fs-12);
  font-weight: 700;
  color: #5d6f85;
  text-transform: uppercase;
}

h1 { font-family: Montserrat, "Open Sans", Segoe UI, Arial, sans-serif; font-weight: 700; font-size: clamp(40px, 3.8vw, 44px); line-height: 1.13; margin: 12px 0; letter-spacing: -0.011em; color:#1a2635; }
h2 { font-family: Montserrat, "Open Sans", Segoe UI, Arial, sans-serif; font-weight: 700; margin: 0 0 12px; font-size: clamp(32px, 3vw, 36px); line-height: 1.17; letter-spacing: -0.01em; color:#1f2a37; }
h3 { font-family: Montserrat, "Open Sans", Segoe UI, Arial, sans-serif; font-weight: 700; margin: 0 0 8px; font-size: clamp(24px, 2.2vw, 28px); line-height: 1.24; letter-spacing: -0.006em; color:#253446; }
 .sub { color: #5b6f86; font-size: clamp(24px,1.9vw,30px); max-width: 760px; line-height: 1.42; }
.muted { color: var(--muted); font-size: var(--fs-16); font-weight: 500; }

.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.kpi .item { background: linear-gradient(180deg,#ffffff,#f6fbff); border: 1px solid #d6e4f5; border-radius: 12px; padding: 12px; color: #4d637f; box-shadow: 0 6px 16px rgba(40,88,145,.07); }
.kpi b { display: block; font-size: 24px; color: #2f78cc; letter-spacing:-.01em; }

 .section {
  margin-top: 20px;
  background: linear-gradient(180deg, var(--surface), #f6f4ef);
  border: 1px solid var(--border-soft);`r`n  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

 .card {
  padding: 18px;
  border: 1px solid var(--border-soft);`r`n  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card p { margin: 0; line-height: 1.62; font-size: 16.5px; }
.card:hover { transform: translateY(-2px); border-color: #c7d3e1; box-shadow: var(--shadow-card); }

.list { margin: 8px 0 0; padding-left: 18px; color: #556a82; }
.bad{color:#b5772e!important}
.good{color:#228a62!important}
.faq details { border: 1px solid #d4dbe5; border-radius: 12px; padding: 12px 14px; background: #fbfbf9; }
.faq details + details { margin-top: 8px; }

 .cta {
  margin-top: 22px;
  border-radius: 20px;
  padding: 24px;
  color: #223248;
  background: linear-gradient(130deg, #f4f1eb, #ece8e1);
  border: 1px solid #dcd7ce;
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.form input, .form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #cfd8e5;
  color: #2b3f5b;
  background: #ffffff;
  font: inherit;
}
.form textarea { grid-column: 1/-1; min-height: 92px; }
.form .btn-main { border: 0; cursor: pointer; grid-column: 1/-1; }

.footer { margin: 24px 0 8px; color: #6f849e; font-size: var(--fs-14); text-align: center; }
.post-list .card h3 a { text-decoration: none; }
.post-cover { margin: -16px -16px 12px; border-radius: 12px 12px 0 0; overflow: hidden; border-bottom: 1px solid #d8e1eb; }
.post-cover img { width: 100%; height: 150px; object-fit: cover; display: block; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.badge { font-size: var(--fs-12); padding: 5px 8px; border-radius: 999px; border: 1px solid #d8e4f2; color: #4f6e91; background:#f2f7fc; }
.blog-feature {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
.blog-feature .card {
  min-height: 100%;
}
.meta-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  color: #6f849e;
  font-size: var(--fs-12);
}

/* Bitrix24 pass: hero KPI, cases, blog cards, CTA, footer micro details */
.case img{border:1px solid #d6e4f5}
.case .chip:first-child{background:#eef6ff;border-color:#d6e7fb;color:#3f6ca4}
.case .chip:last-child{background:#effaf5;border-color:#d4ecdf;color:#228a62}
.post-list .card h3 a{color:#253446;text-decoration:none}
.post-list .card h3 a:hover{color:#2f78cc}
.cta{
  border:1px solid #d6e4f5;
  background:linear-gradient(140deg,#f8fcff,#f1f7ff 55%,#edf4ff);
  box-shadow:0 12px 28px rgba(40,88,145,.09);
}
.cta .btn-main{box-shadow:0 12px 24px rgba(79,111,227,.24)}
.site-footer{
  border-top:1px solid #d6e4f5;
  background:linear-gradient(180deg,#f8fbff,#f1f6fd);
}
.site-footer .sf-ico{
  background:#edf5ff;
  border:1px solid #d4e5fb;
  color:#4f6e93;
}

/* article */
.read-progress{position:fixed;top:0;left:0;height:3px;background:linear-gradient(90deg,var(--brand),var(--brand-2));width:0;z-index:80}
.article-shell{display:grid;grid-template-columns:260px minmax(0,820px);gap:22px;align-items:start;margin-top:16px}
.article-toc{position:sticky;top:90px;background:#fbfbf9;border:1px solid #d7dfe9;border-radius:14px;padding:14px;box-shadow:var(--shadow)}
.article-toc h4{margin:0 0 8px;font-size:var(--fs-14);text-transform:uppercase;color:#6c8098}
.article-toc a{display:block;font-size:var(--fs-14);color:#4f6683;text-decoration:none;padding:6px 0;border-bottom:1px dashed #d9e1eb}
.article-toc a:last-child{border-bottom:none}
.article{background:#ffffff;border:1px solid #dde3ec;border-radius:18px;padding:24px;box-shadow:var(--shadow)}
.article p,.article li{color:#556a82;line-height:1.75}
.article h2,.article h3{scroll-margin-top:100px;color:#223248}
.article figure{margin:16px 0;padding:10px;border:1px solid #d7dfe9;border-radius:12px;background:#f8fafc}
.article figure img{max-width:100%;height:auto;border-radius:8px;display:block;margin:auto}
.article figcaption{font-size:13px;color:#6f849e;margin-top:8px;text-align:center}
.article .kpi-inline{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}
.article .kpi-inline .k{background:#f3f6fa;border:1px solid #d5dee9;border-radius:10px;padding:10px;font-size:14px;color:#556b84}
.article .kpi-inline b{display:block;font-size:22px;color:#2f78cc}
.article-cta{margin-top:20px;border-radius:16px;padding:18px;background:linear-gradient(135deg,#f1f5f9,#e8eef6);border:1px solid #d2dbe6}
.article-lead-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #d5dee9;
  border-radius: 12px;
  background: linear-gradient(145deg,#f3f7fb,#edf3f9);
  color: #556b84;
}
.article-lead-note b { color: #2f78cc; }
.article-next {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.article-next a {
  display: block;
  text-decoration: none;
  border: 1px solid #d5dee9;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 14px;
  color: #3e5573;
}
.article-next a small {
  display: block;
  color: #6f849e;
  margin-bottom: 4px;
}

.site-footer {
  margin-top: 26px;
  border: 1px solid #d8e3f1;
  background: linear-gradient(180deg,#f9fcff 0%, #f1f6fc 100%);
  text-align: left;
  position: relative;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(40,88,145,.12);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #96bfe4 20%, #3db9de 52%, #96bfe4 84%, transparent 100%);
}
.site-footer .sf-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px 24px;
  display: grid;
  grid-template-columns: 1.3fr .9fr .9fr;
  gap: 28px;
  align-items: start;
}
.site-footer h4 {
  margin: 0 0 8px;
  font-size: var(--fs-16);
  color: #1f3652;
  letter-spacing: .01em;
}
.site-footer p,
.site-footer a {
  margin: 0;
  font-size: var(--fs-14);
  color: #4d6785;
  text-decoration: none;
  line-height: 1.6;
}
.site-footer .sf-links {
  display: grid;
  gap: 10px;
}
.site-footer .sf-brand {
  color: #1f3652;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.site-footer .sf-brand-logo{
  display:block;
  width:auto;
  height:44px;
  max-width:100%;
  margin:0 0 10px;
}
.site-footer a:hover { color: #235a98; }
.site-footer .sf-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-footer .sf-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #2f5f95;
  background: #eaf4ff;
  border: 1px solid #c9def3;
  flex: 0 0 22px;
}
.site-footer .sf-copy {
  border-top: 1px solid #d5e1ef;
  padding: 14px 24px 18px;
  color: #607c9b;
  font-size: 13px;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: left;
}

.reveal{opacity:0;transform:translateY(12px);transition:opacity .5s ease, transform .5s ease}
.reveal.in{opacity:1;transform:none}

@media (max-width: 1100px){.article-shell{grid-template-columns:1fr}.article-toc{position:static}}
@media (max-width: 980px) {
  h1 { font-size: 32px; }
  .kpi { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .form { grid-template-columns: 1fr; }
  .hero { padding: 22px; }
}
@media (max-width: 760px) {
  .header { position: static; top: auto; margin: 0; }
  .container { padding: 0 14px; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "cta"
      "nav";
    justify-items: center;
    align-items: center;
    gap: 10px;
    padding: 12px 0 12px;
  }
  .logo { grid-area: logo; width: auto; min-width: 0; justify-self:center; }
  .logo-img { height: 34px; width:auto; }
  .nav {
    grid-area: nav;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible;
    justify-content: center;
    padding-bottom: 2px;
  }
  .nav a {
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid #d4deea;
    border-radius: 999px;
    padding: 8px 13px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(80,95,120,.08);
  }
  .nav a.active::after { display: none; }
  .btn { padding: 8px 12px; border-radius: 11px; }
  .header .btn-main {
    grid-area: cta;
    width: min(260px,92vw);
    margin-left: 0;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.1;
    border-radius: 14px;
    padding: 10px 14px;
  }
  .form .btn-main{
    grid-area: auto;
    width: 100%;
    justify-self: stretch;
  }
  .hero { margin-top: 12px; padding: 16px; border-radius: 16px; }
  h2 { margin-bottom: 10px; }
  .section { margin-top: 14px; padding: 16px; }
  .card { padding: 14px; }
  .section, .article { padding: 16px; border-radius: 14px; }
  .article-shell { gap: 12px; margin-top: 12px; }
  .article-toc {
    max-height: 42vh;
    overflow: auto;
    border-radius: 12px;
    padding: 12px;
  }
  .article-toc a {
    font-size: 16px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .article h1 { font-size: 28px; line-height: 1.18; }
  .article h2 { font-size: 24px; line-height: 1.24; }
  .article h3 { font-size: 20px; line-height: 1.28; }
  .blog-feature { grid-template-columns: 1fr; }
  .article-next { grid-template-columns: 1fr; }
  .site-footer .sf-inner { grid-template-columns: 1fr; gap: 12px; }
}
@media (min-width: 761px) {
  .header-inner {
    height: 80px;
    padding: 0;
  }
  .logo { margin-right: 14px; }
  .nav { flex-wrap: nowrap; }
  .btn-main { margin-left: 14px; }
}







/* Bitrix24-style compare block */
.before-after{gap:14px}
.before-after .card{position:relative;border:1px solid #d6e4f5;background:#fff;box-shadow:0 8px 22px rgba(40,88,145,.07)}
.before-after .card::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;border-radius:14px 14px 0 0}
.before-after .card.ba:first-child::before{background:linear-gradient(90deg,#e7a94a,#b5772e)}
.before-after .card.ba:last-child::before{background:linear-gradient(90deg,#2fc7f7,#409eef)}
.before-after .ba h4{font-size:clamp(22px,1.9vw,30px);letter-spacing:-.01em;margin:8px 0 10px}
.before-after .ba h4{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  background:#f3f6fa;
  border:1px solid #dce7f5;
}
.before-after .card.ba:first-child .ba h4{
  background:#fff6ea;
  border-color:#edd7b7;
}
.before-after .card.ba:last-child .ba h4{
  background:#eefaf4;
  border-color:#cde9da;
}
.before-after .ba ul{
  line-height:1.68;
  font-size:16px;
  color:#3f556f;
}
.before-after .ba li{margin:0 0 8px}
.before-after .ba li::marker{color:#5f7da4;font-size:1.05em}
.before-after .card.ba:last-child li::marker{color:#2fa77d}
@media (max-width:760px){
  .before-after .ba h4{font-size:22px}
}



