/*
 * Стили статьи «1С:Фреш или аренда 1С в облаке» — стиль ДАВСофт
 * Все правила изолированы через класс .davsoft-article
 *
 * Как добавить в WordPress:
 *   Вариант A: Внешний вид → Настроить → Дополнительный CSS
 *   Вариант B: /wp-content/themes/ВАШ-ТЕМА/css/davsoft-wp-style.css
 *              + подключить через functions.php
 *   Вариант C: Плагин WPCode → CSS Snippet → "Specific Pages"
 */

/* Подключение шрифта Montserrat (добавьте в <head> через плагин WPCode или тему) */
/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap'); */

/* ===== RESET ===== */
    .davsoft-article *, .davsoft-article *::before, .davsoft-article *::after { box-sizing: border-box; }
    

    /* ===== BASE — Davsoft style ===== */
    .davsoft-article {
      font-family: 'Montserrat', sans-serif;
      font-size: 15px;
      color: #333333;
      line-height: 1.75;
    }
    .davsoft-article a { color: #ff3d00; text-decoration: none; }
    .davsoft-article a:hover { text-decoration: underline; }
    .davsoft-article img { max-width: 100%; height: auto; display: block; }

    /* ===== LAYOUT ===== */
    .wrap {
      max-width: 860px;
      margin: 0 auto;
      padding: 0 24px;
    }
    .wrap-wide {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* ===== HERO BREADCRUMB BANNER ===== */
    .hero-banner {
      background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 60%, #1a2a3a 100%);
      padding: 48px 24px;
      text-align: center;
    }
    .breadcrumb {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .breadcrumb a,
    .breadcrumb span {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: rgba(255,255,255,0.7);
      text-decoration: none;
    }
    .breadcrumb a:hover { color: #ff3d00; }
    .breadcrumb .sep { color: rgba(255,255,255,0.4); }
    .breadcrumb .current { color: rgba(255,255,255,0.95); }

    /* ===== ARTICLE CONTAINER ===== */
    .article-wrap {
      max-width: 860px;
      margin: 0 auto;
      padding: 52px 24px 80px;
    }

    /* ===== ARTICLE H1 ===== */
    .article-title {
      font-size: clamp(24px, 4vw, 38px);
      font-weight: 800;
      color: #333333;
      line-height: 1.2;
      margin-bottom: 10px;
    }
    .article-meta {
      font-size: 13px;
      color: #999999;
      margin-bottom: 36px;
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
      align-items: center;
    }
    .article-meta .tag {
      background: #fff0ec;
      color: #ff3d00;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 3px 12px;
      border-radius: 1000px;
      border: 1px solid #ffcfc4;
    }

    /* ===== TYPOGRAPHY ===== */
    .article-body h2 {
      font-size: clamp(20px, 3vw, 28px);
      font-weight: 800;
      color: #333333;
      margin: 52px 0 16px;
      line-height: 1.25;
    }
    .article-body h3 {
      font-size: clamp(16px, 2.5vw, 20px);
      font-weight: 700;
      color: #333333;
      margin: 36px 0 12px;
      line-height: 1.3;
    }
    .article-body p {
      margin-bottom: 16px;
      color: #333333;
    }
    .article-body ul,
    .article-body ol {
      padding-left: 0;
      margin-bottom: 18px;
      list-style: none;
    }
    .article-body ul li,
    .article-body ol li {
      position: relative;
      padding-left: 28px;
      margin-bottom: 8px;
      color: #333333;
    }
    /* Davsoft-style checkmark bullets */
    .article-body ul li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 5px;
      width: 18px;
      height: 18px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23ff3d00' d='M8.2 15.6l-4.8-4.8 1.4-1.4 3.4 3.4 7.8-7.8 1.4 1.4z'/%3E%3C/svg%3E") no-repeat center;
      background-size: 18px;
    }
    .article-body ol { counter-reset: ol-counter; }
    .article-body ol li { counter-increment: ol-counter; }
    .article-body ol li::before {
      content: counter(ol-counter) ".";
      position: absolute;
      left: 0;
      top: 0;
      font-weight: 700;
      color: #ff3d00;
      font-size: 14px;
    }
    .davsoft-article strong { color: #333333; }

    /* ===== DIVIDER ===== */
    .divider {
      height: 2px;
      background: linear-gradient(90deg, #ff3d00, #ffc603);
      border: none;
      border-radius: 2px;
      margin: 48px 0;
      width: 60px;
    }

    /* ===== TOC ===== */
    .toc {
      background: #f3f3f3;
      border-radius: 10px;
      padding: 28px 32px;
      margin: 0 0 48px;
    }
    .toc-title {
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #333333;
      margin-bottom: 16px;
    }
    .toc ol {
      padding-left: 0;
      margin: 0;
      counter-reset: toc-counter;
      list-style: none;
    }
    .toc ol li {
      counter-increment: toc-counter;
      padding-left: 28px;
      margin-bottom: 7px;
    }
    .toc ol li::before {
      content: counter(toc-counter) ".";
      position: absolute;
      left: 0;
      font-weight: 700;
      color: #ff3d00;
    }
    .toc a {
      color: #333333;
      font-size: 14px;
      font-weight: 500;
    }
    .toc a:hover { color: #ff3d00; text-decoration: none; }

    /* ===== INFOBOX ===== */
    .infobox {
      border-left: 4px solid #ff3d00;
      background: #fff8f6;
      border-radius: 0 10px 10px 0;
      padding: 20px 24px;
      margin: 24px 0;
    }
    .infobox p { margin: 0; font-size: 14px; }
    .infobox.warning {
      border-color: #ffc603;
      background: #fffdf0;
    }
    .infobox.success {
      border-color: #22c55e;
      background: #f0fdf4;
    }

    /* ===== SOLUTION CARDS ===== */
    .cards-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin: 28px 0;
    }
    @media (max-width: 620px) { .cards-grid { grid-template-columns: 1fr; } }

    .card {
      border: 1px solid #e9e9e9;
      border-radius: 10px;
      padding: 28px 24px;
      background: #fafafa;
      position: relative;
    }
    .card.card-accent {
      border-color: #ff3d00;
      background: #fff;
    }
    .card-badge {
      position: absolute;
      top: -13px;
      left: 20px;
      background: linear-gradient(325deg, #ff3d00, #ffc603);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 4px 14px;
      border-radius: 1000px;
      letter-spacing: 0.3px;
    }
    .card-icon { font-size: 2rem; margin-bottom: 12px; }
    .card-title {
      font-size: 18px;
      font-weight: 800;
      color: #333333;
      margin-bottom: 6px;
    }
    .card-price {
      font-size: 26px;
      font-weight: 800;
      color: #ff3d00;
      margin-bottom: 4px;
      line-height: 1;
    }
    .card-price-note {
      font-size: 13px;
      color: #999999;
      margin-bottom: 14px;
    }
    .card-desc { font-size: 13px; color: #666; margin-bottom: 16px; line-height: 1.6; }
    .card-features { list-style: none; padding: 0; margin: 0; }
    .card-features li {
      font-size: 13px;
      color: #333;
      padding: 5px 0 5px 24px;
      border-bottom: 1px solid #f3f3f3;
      position: relative;
    }
    .card-features li:last-child { border-bottom: none; }
    .card-features li.ok::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: #22c55e;
      font-weight: 700;
    }
    .card-features li.no::before {
      content: '✗';
      position: absolute;
      left: 0;
      color: #dc2626;
      font-weight: 700;
    }

    /* ===== PROS/CONS ===== */
    .pros-cons {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin: 24px 0;
    }
    @media (max-width: 620px) { .pros-cons { grid-template-columns: 1fr; } }
    .pros-box, .cons-box {
      border-radius: 10px;
      padding: 20px 22px;
    }
    .pros-box {
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
    }
    .cons-box {
      background: #fff8f6;
      border: 1px solid #ffd5cc;
    }
    .pros-box h4 {
      font-size: 14px;
      font-weight: 800;
      color: #166534;
      margin-bottom: 14px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .cons-box h4 {
      font-size: 14px;
      font-weight: 800;
      color: #991b1b;
      margin-bottom: 14px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .pros-box ul li, .cons-box ul li {
      font-size: 13px;
      margin-bottom: 7px;
      padding-left: 22px;
      position: relative;
    }
    .pros-box ul li::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: #22c55e;
      font-weight: 700;
    }
    .cons-box ul li::before {
      content: '✗';
      position: absolute;
      left: 0;
      color: #ff3d00;
      font-weight: 700;
    }
    .pros-box ul li { color: #166534; }
    .cons-box ul li { color: #7f1d1d; }

    /* ===== TABLES ===== */
    .table-wrap {
      overflow-x: auto;
      margin: 24px 0;
      border-radius: 10px;
      border: 1px solid #e9e9e9;
    }
    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }
    thead th {
      background: #333333;
      color: #ffffff;
      padding: 13px 16px;
      text-align: left;
      font-weight: 700;
      font-size: 13px;
      white-space: nowrap;
    }
    thead th:first-child { border-radius: 9px 0 0 0; }
    thead th:last-child { border-radius: 0 9px 0 0; }
    tbody td {
      padding: 11px 16px;
      border-bottom: 1px solid #f3f3f3;
      vertical-align: top;
      color: #333;
    }
    tbody tr:last-child td { border-bottom: none; }
    tbody tr:nth-child(even) td { background: #fafafa; }
    tbody tr:hover td { background: #fff8f6; }
    .td-yes { color: #16a34a; font-weight: 700; }
    .td-no { color: #dc2626; font-weight: 700; }
    .td-partial { color: #d97706; font-weight: 600; }
    .highlight-row td { background: #fff0ec !important; font-weight: 700; }

    /* ===== SCORES ===== */
    .scores-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin: 24px 0;
    }
    @media (max-width: 580px) { .scores-grid { grid-template-columns: 1fr; } }
    .score-card {
      border: 1px solid #e9e9e9;
      border-radius: 10px;
      padding: 20px;
      background: #fafafa;
    }
    .score-card h4 {
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #333;
      margin-bottom: 14px;
    }
    .score-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 9px;
    }
    .score-label { font-size: 12px; color: #666; min-width: 130px; }
    .score-bar { flex: 1; height: 5px; background: #e9e9e9; border-radius: 3px; }
    .score-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff3d00, #ffc603); }
    .score-fill.gray { background: #999; }
    .score-num { font-size: 12px; font-weight: 700; color: #333; min-width: 34px; text-align: right; }

    /* ===== CTA BLOCK ===== */
    .cta-block {
      background: linear-gradient(325deg, #ff3d00 0%, #ffc603 100%);
      border-radius: 10px;
      padding: 44px 40px;
      text-align: center;
      margin: 48px 0;
    }
    @media (max-width: 580px) { .cta-block { padding: 32px 20px; } }
    .cta-block h2 {
      color: #fff;
      font-size: clamp(18px, 3vw, 26px);
      font-weight: 800;
      margin: 0 0 10px;
    }
    .cta-block p { color: rgba(255,255,255,0.9); margin-bottom: 26px; font-size: 15px; }
    .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
    .btn {
      display: inline-block;
      padding: 14px 30px;
      border-radius: 1000px;
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
      text-decoration: none;
      line-height: 1;
    }
    .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); text-decoration: none; }
    .btn-white { background: #fff; color: #ff3d00; }
    .btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
    .btn-red {
      background: linear-gradient(325deg, #ff3d00, #ffc603);
      color: #fff;
      border: none;
    }
    .btn-red-outline {
      background: transparent;
      color: #ff3d00;
      border: 2px solid #ff3d00;
    }

    /* ===== REVIEWS ===== */
    .reviews-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin: 24px 0;
    }
    @media (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }
    .review-card {
      border: 1px solid #e9e9e9;
      border-radius: 10px;
      padding: 18px 20px;
      background: #fafafa;
    }
    .review-card.pos { border-left: 3px solid #22c55e; }
    .review-card.neg { border-left: 3px solid #ff3d00; }
    .review-text { font-size: 13px; color: #555; font-style: italic; line-height: 1.6; margin-bottom: 10px; }
    .review-author { font-size: 12px; color: #999; font-weight: 600; }

    /* ===== SELECTOR BOX ===== */
    .selector {
      background: #f3f3f3;
      border-radius: 10px;
      padding: 28px 30px;
      margin: 24px 0;
    }
    .selector h3 { margin-top: 0; }
    .selector-row {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      margin-bottom: 12px;
    }
    .sel-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
    .sel-text { font-size: 13px; color: #333; }

    /* ===== INTEGRATION GRID ===== */
    .int-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
      gap: 14px;
      margin: 20px 0;
    }
    .int-item {
      background: #fafafa;
      border: 1px solid #e9e9e9;
      border-radius: 10px;
      padding: 16px;
      text-align: center;
    }
    .int-icon { font-size: 1.8rem; margin-bottom: 8px; }
    .int-name { font-size: 13px; font-weight: 700; color: #333; }
    .int-status {
      font-size: 11px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 1000px;
      display: inline-block;
      margin-top: 5px;
    }
    .s-yes { background: #dcfce7; color: #15803d; }
    .s-part { background: #fef9c3; color: #854d0e; }

    /* ===== VERDICT ===== */
    .verdict {
      background: #333333;
      color: #fff;
      border-radius: 10px;
      padding: 32px 36px;
      margin: 32px 0;
    }
    .verdict-label {
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: #ffc603;
      margin-bottom: 10px;
    }
    .verdict h3 { color: #fff; font-size: 18px; margin: 0 0 12px; }
    .verdict p { color: rgba(255,255,255,0.85); margin: 0; font-size: 14px; line-height: 1.7; }

    /* ===== FAQ ===== */
    .faq-item {
      border-bottom: 1px solid #e9e9e9;
      padding: 20px 0;
    }
    .faq-item:last-child { border-bottom: none; }
    .faq-q {
      font-size: 15px;
      font-weight: 700;
      color: #333;
      margin-bottom: 8px;
    }
    .faq-q::before { content: "— "; color: #ff3d00; font-weight: 800; }
    .faq-a { font-size: 14px; color: #555; padding-left: 16px; }

    /* ===== SOURCES ===== */
    .sources-list { list-style: none; padding: 0; }
    .sources-list li {
      padding: 8px 0 8px 22px;
      border-bottom: 1px solid #f3f3f3;
      position: relative;
      font-size: 13px;
    }
    .sources-list li::before {
      content: '↗';
      position: absolute;
      left: 0;
      color: #ff3d00;
      font-weight: 700;
    }
    .sources-list li:last-child { border-bottom: none; }
    .sources-list a { color: #333; }
    .sources-list a:hover { color: #ff3d00; }

    /* ===== STICKY BAR ===== */
    .sticky-bar {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      background: #333333;
      padding: 13px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      z-index: 999;
      box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    }
    @media (max-width: 540px) { .sticky-bar { flex-direction: column; text-align: center; padding: 14px 18px; } }
    .sticky-bar p { color: rgba(255,255,255,0.9); font-size: 13px; margin: 0; font-weight: 500; }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 480px) {
      .article-wrap { padding: 36px 16px 80px; }
    }
