/* ===== dms-sravnenie.ru — Медицинский, чистый стиль ===== */
:root {
  --primary: #00695C;
  --primary-light: #00897B;
  --primary-pale: #E0F2F1;
  --primary-dark: #004D40;
  --accent: #E91E63;
  --accent-light: #F06292;
  --accent-pale: #FCE4EC;
  --text: #212121;
  --text-light: #555;
  --text-muted: #999;
  --bg: #FAFAFA;
  --bg-white: #fff;
  --bg-gray: #F5F5F5;
  --border: #E0E0E0;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 10px;
  --max-w: 1140px;
  --nav-h: 60px;
  --font: 'Fira Sans', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { line-height: 1.3; color: var(--text); }
h1 { font-size: 2rem; margin-bottom: 16px; }
h2 { font-size: 1.5rem; margin: 40px 0 16px; }
h3 { font-size: 1.15rem; margin: 24px 0 10px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 24px; }
li { margin-bottom: 6px; }

/* ===== Nav — Accent Bar (E) ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-white);
  border-top: 3px solid var(--accent);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.nav .container { display: flex; align-items: center; height: var(--nav-h); gap: 24px; }
.nav-logo { font-weight: 700; font-size: 1.2rem; color: var(--primary); white-space: nowrap; }
.nav-logo span { color: var(--accent); font-weight: 400; }
.nav-links { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.85rem; padding: 6px 12px; border-radius: 6px;
  color: var(--text-light); transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--primary-pale); color: var(--primary); }

.burger { display: none; background: none; border: none; cursor: pointer; width: 32px; height: 24px; position: relative; }
.burger span { display: block; width: 100%; height: 2px; background: var(--text); position: absolute; left: 0; transition: all .3s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { background: var(--bg-gray); padding: 10px 0; font-size: 0.82rem; }
.breadcrumbs-list { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs-list li::after { content: '→'; margin-left: 8px; color: var(--text-muted); }
.breadcrumbs-list li:last-child::after { display: none; }
.breadcrumbs-list a { color: var(--primary); }
.breadcrumbs-list span { color: var(--text-muted); }

/* ===== Hero — Gradient + Calculator (A) ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff; padding: 60px 0 50px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(233,30,99,.15);
}
.hero h1 { color: #fff; font-size: 2.2rem; max-width: 600px; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 550px; margin-bottom: 24px; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.hero-text { position: relative; z-index: 1; }
.hero-stats { display: flex; gap: 32px; margin-top: 24px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.8rem; font-weight: 700; color: #fff; display: block; }
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,.7); }

/* ===== Configurator (in hero) ===== */
.configurator {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 28px; color: var(--text); box-shadow: var(--shadow-lg); position: relative; z-index: 1;
}
.configurator h3 { color: var(--primary); margin-top: 0; font-size: 1.1rem; }
.config-group { margin-bottom: 16px; }
.config-group label { display: block; font-size: 0.88rem; color: var(--text-light); margin-bottom: 6px; font-weight: 500; }
.config-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: 0.9rem; }
.config-check input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; }
.config-select, .config-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 6px; font-family: var(--font); font-size: 0.9rem;
  transition: border-color .2s;
}
.config-select:focus, .config-input:focus { outline: none; border-color: var(--primary); }
.config-result {
  background: var(--primary-pale); border-radius: 8px; padding: 16px;
  text-align: center; margin-top: 12px;
}
.config-result-price { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.config-result-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ===== Buttons — With Icon/Arrow (D) ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none; transition: all .25s;
}
.btn::after { content: '→'; font-size: 1.1rem; transition: transform .2s; }
.btn:hover::after { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #C2185B; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-pale); color: var(--primary); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-no-arrow::after { display: none; }

/* ===== Cards — Solid Color (E) ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.card-solid {
  background: var(--primary-pale); border-radius: var(--radius);
  padding: 24px; transition: transform .3s, box-shadow .3s;
}
.card-solid:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-solid h3 { color: var(--primary); margin-top: 0; font-size: 1.05rem; }
.card-solid p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 12px; }

.card-accent {
  background: var(--accent-pale); border-radius: var(--radius); padding: 24px;
  transition: transform .3s, box-shadow .3s;
}
.card-accent:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-accent h3 { color: var(--accent); margin-top: 0; }

/* ===== Company Cards ===== */
.company-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); transition: all .3s;
}
.company-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.company-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.company-card-name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.company-card-badge {
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 2px 10px; border-radius: 20px;
}
.company-card-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.company-card-features { list-style: none; padding: 0; margin: 0 0 16px; }
.company-card-features li { font-size: 0.85rem; color: var(--text-light); padding: 3px 0; padding-left: 20px; position: relative; }
.company-card-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ===== Price Grid ===== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.price-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: all .3s;
}
.price-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 4px 20px rgba(233,30,99,.15); position: relative; }
.price-card.featured::before {
  content: 'Популярный'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 2px 16px; border-radius: 20px;
}
.price-card-name { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.price-card-price { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.price-card-price small { font-size: 0.5em; color: var(--text-muted); font-weight: 400; }
.price-card-features { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.price-card-features li { font-size: 0.85rem; padding: 6px 0; border-bottom: 1px solid var(--bg-gray); color: var(--text-light); }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--primary); color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; }
td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
tr:nth-child(even) { background: var(--bg-gray); }
.text-accent { color: var(--accent); font-weight: 600; }

/* ===== Info Box ===== */
.info-box {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--radius);
  margin: 24px 0; align-items: flex-start;
}
.info-box-icon { font-size: 1.6rem; flex-shrink: 0; }
.info-box-green { background: var(--primary-pale); border-left: 4px solid var(--primary); }
.info-box-pink { background: var(--accent-pale); border-left: 4px solid var(--accent); }

/* ===== Pros/Cons ===== */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.pros, .cons { padding: 20px; border-radius: var(--radius); }
.pros { background: var(--primary-pale); }
.cons { background: #FFF3E0; }
.pros h4 { color: var(--primary); }
.cons h4 { color: #E65100; }
.pros ul, .cons ul { margin-bottom: 0; }

/* ===== FAQ — Accordion (A) ===== */
.faq-list { margin: 24px 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 16px 48px 16px 20px; border: none; background: var(--bg-white);
  font-family: var(--font); font-size: 0.95rem; font-weight: 600; color: var(--text);
  cursor: pointer; position: relative; transition: background .2s;
}
.faq-question:hover { background: var(--bg-gray); }
.faq-question::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent); font-weight: 300; transition: transform .3s;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer-inner { padding: 0 20px 16px; font-size: 0.9rem; color: var(--text-light); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 48px 32px; border-radius: var(--radius);
  text-align: center; margin: 48px 0;
}
.cta-banner h2 { color: #fff; margin-top: 0; font-size: 1.6rem; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 20px; }

/* ===== Article Layout ===== */
.article { padding: 40px 0; }
.article-header { margin-bottom: 24px; }
.article-meta { font-size: 0.82rem; color: var(--text-muted); }
.layout-with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 40px; }
.article-content { min-width: 0; }

/* ===== Sidebar ===== */
.sidebar-widget { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.sidebar-widget h4 { font-size: 0.9rem; color: var(--primary); margin-bottom: 12px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar-nav a { font-size: 0.85rem; color: var(--text-light); padding: 6px 10px; border-radius: 6px; transition: all .2s; }
.sidebar-nav a:hover { background: var(--primary-pale); color: var(--primary); }

/* ===== Footer — CTA Banner + Footer (E) ===== */
.footer-cta {
  background: var(--accent); color: #fff; padding: 40px 0; text-align: center;
}
.footer-cta h3 { color: #fff; margin: 0 0 8px; font-size: 1.3rem; }
.footer-cta p { color: rgba(255,255,255,.85); margin-bottom: 16px; }
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 40px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.footer-brand p { font-size: 0.85rem; margin-top: 8px; color: rgba(255,255,255,.6); }
.footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px;
  display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 8px;
}
.footer-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,.4); margin-top: 12px; }

/* ===== Slide-in Animation (C) ===== */
.slide-in { opacity: 0; transform: translateX(-40px); transition: opacity .6s ease, transform .6s ease; }
.slide-in-right { opacity: 0; transform: translateX(40px); transition: opacity .6s ease, transform .6s ease; }
.slide-in.visible, .slide-in-right.visible { opacity: 1; transform: translateX(0); }

/* ===== Utilities ===== */
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.text-center { text-align: center; }
.section-alt { background: var(--bg-gray); padding: 48px 0; }
.section-white { background: var(--bg-white); padding: 48px 0; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg-white);
    flex-direction: column; padding: 16px; box-shadow: var(--shadow); border-top: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .burger { display: block; margin-left: auto; }
  .card-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 1.5rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
