/* Изоляция стилей через уникальный неймспейс */
  .sv-calc * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  .sv-calc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  /* ========== ШАПКА ========== */
  .sv-calc__header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
  }

  .sv-calc__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
  }

  .sv-calc__subtitle {
    font-size: 15px;
    color: #6b7280;
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.5;
  }

  /* ========== БЛОК ОБЩИХ ПАРАМЕТРОВ ========== */
  .sv-calc__common {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
  }

  .sv-calc__common-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
  }

  .sv-calc__common-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  /* ========== СРАВНЕНИЕ ДВУХ СТАНКОВ ========== */
  .sv-calc__machines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }

  .sv-calc__machine {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
  }

  .sv-calc__machine--a {
    border-top: 4px solid #3498db;
  }

  .sv-calc__machine--b {
    border-top: 4px solid #1a1a1a;
  }

  .sv-calc__machine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .sv-calc__machine-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
  }

  .sv-calc__machine-name-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 6px 0;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
    outline: none;
    font-family: inherit;
  }

  .sv-calc__machine-name-input:focus {
    border-bottom-color: #3498db;
  }

  /* ========== ПОЛЯ ВВОДА ========== */
  .sv-calc__field {
    margin-bottom: 16px;
  }

  .sv-calc__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
  }

  .sv-calc__label-text {
    flex: 1;
  }

  .sv-calc__hint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    margin-left: 8px;
    font-family: inherit;
    flex-shrink: 0;
  }

  .sv-calc__hint-btn:hover {
    background: #3498db;
    color: #ffffff;
  }

  .sv-calc__hint {
    display: none;
    background: #eff6ff;
    border-left: 3px solid #3498db;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    border-radius: 0 4px 4px 0;
  }

  .sv-calc__hint.is-visible {
    display: block;
  }

  .sv-calc__hint strong {
    color: #1a1a1a;
  }

  .sv-calc__input-wrap {
    position: relative;
  }

  .sv-calc__input,
  .sv-calc__select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
  }

  .sv-calc__input::-webkit-outer-spin-button,
  .sv-calc__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .sv-calc__input:focus,
  .sv-calc__select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  }

  .sv-calc__input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #6b7280;
    pointer-events: none;
  }

  .sv-calc__input--with-suffix {
    padding-right: 60px;
  }

  /* ========== КНОПКА РАСЧЁТА ========== */
  .sv-calc__action {
    text-align: center;
    margin-bottom: 32px;
  }

  .sv-calc__btn {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    letter-spacing: 0.02em;
  }

  .sv-calc__btn:hover {
    background: #3498db;
    transform: translateY(-1px);
  }

  .sv-calc__btn:active {
    transform: translateY(0);
  }

  /* ========== РЕЗУЛЬТАТЫ ========== */
  .sv-calc__results {
    display: none;
    animation: sv-fade-in 0.4s ease;
  }

  .sv-calc__results.is-visible {
    display: block;
  }

  @keyframes sv-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .sv-calc__results-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
  }

  .sv-calc__results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }

  .sv-calc__result-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
  }

  .sv-calc__result-card--a {
    border-top: 4px solid #3498db;
  }

  .sv-calc__result-card--b {
    border-top: 4px solid #1a1a1a;
  }

  .sv-calc__result-name {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .sv-calc__big-number {
    font-size: 38px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
  }

  .sv-calc__big-number-unit {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    font-weight: 500;
  }

  .sv-calc__metric {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
    font-size: 14px;
  }

  .sv-calc__metric:first-of-type {
    border-top: none;
  }

  .sv-calc__metric-label {
    color: #6b7280;
  }

  .sv-calc__metric-value {
    color: #1a1a1a;
    font-weight: 600;
  }

  /* ========== ВЫВОД-СРАВНЕНИЕ ========== */
  .sv-calc__verdict {
    background: #3498db;
    color: #ffffff;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
  }

  .sv-calc__verdict-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
  }

  .sv-calc__verdict-main {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: #ffffff;
  }

  .sv-calc__verdict-detail {
    font-size: 15px;
    color: #ffffff;
    opacity: 0.95;
    line-height: 1.5;
  }

  .sv-calc__verdict-detail strong {
    color: #ffffff;
    opacity: 1;
  }

  /* ========== ПОЯСНЕНИЕ К РАСЧЁТУ ========== */
  .sv-calc__explanation {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
  }

  .sv-calc__explanation-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
  }

  .sv-calc__explanation p {
    margin-bottom: 10px;
  }

  .sv-calc__explanation p:last-child {
    margin-bottom: 0;
  }

  .sv-calc__explanation strong {
    color: #1a1a1a;
  }

  /* ========== SEO-БЛОК ========== */
  .sv-calc__seo {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
  }

  .sv-calc__seo-h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
  }

  .sv-calc__seo-h2:first-child {
    margin-top: 0;
  }

  .sv-calc__seo-h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.35;
  }

  .sv-calc__seo-p {
    font-size: 15px;
    color: #374151;
    line-height: 1.65;
    margin-bottom: 14px;
  }

  .sv-calc__seo-p strong {
    color: #1a1a1a;
    font-weight: 600;
  }

  .sv-calc__seo-list {
    margin: 12px 0 18px 0;
    padding-left: 20px;
  }

  .sv-calc__seo-list li {
    font-size: 15px;
    color: #374151;
    line-height: 1.65;
    margin-bottom: 8px;
    padding-left: 4px;
  }

  .sv-calc__seo-list li strong {
    color: #1a1a1a;
    font-weight: 600;
  }

  .sv-calc__seo-formula {
    background: #f9fafb;
    border-left: 3px solid #3498db;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 15px;
    color: #1a1a1a;
    border-radius: 0 6px 6px 0;
    line-height: 1.7;
  }

  /* FAQ */
  .sv-calc__faq {
    margin-top: 16px;
  }

  .sv-calc__faq-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 12px;
  }

  .sv-calc__faq-q {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .sv-calc__faq-a {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
  }

  .sv-calc__email-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
  }

  .sv-calc__email-link:hover {
    text-decoration: underline;
  }

  /* CTA */
  .sv-calc__cta {
    background: #3498db;
    color: #ffffff;
    border-radius: 8px;
    padding: 32px;
    margin-top: 32px;
    text-align: center;
  }

  .sv-calc__cta-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.3;
  }

  .sv-calc__cta-text {
    font-size: 15px;
    color: #ffffff;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .sv-calc__cta-btn {
    display: inline-block;
    background: #ffffff;
    color: #1a1a1a;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.15s ease;
  }

  .sv-calc__cta-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-1px);
  }

  /* ========== АДАПТИВНОСТЬ ========== */
  @media (max-width: 720px) {
    .sv-calc {
      padding: 20px 12px;
    }

    .sv-calc__title {
      font-size: 22px;
    }

    .sv-calc__subtitle {
      font-size: 14px;
    }

    .sv-calc__machines,
    .sv-calc__results-grid {
      grid-template-columns: 1fr;
    }

    .sv-calc__big-number {
      font-size: 32px;
    }

    .sv-calc__verdict-main {
      font-size: 18px;
    }

    .sv-calc__btn {
      width: 100%;
      padding: 14px 24px;
    }

    .sv-calc__machine,
    .sv-calc__result-card {
      padding: 18px;
    }

    .sv-calc__seo-h2 {
      font-size: 20px;
    }

    .sv-calc__seo-h3 {
      font-size: 17px;
    }

    .sv-calc__seo-p,
    .sv-calc__seo-list li {
      font-size: 14px;
    }

    .sv-calc__cta {
      padding: 24px 18px;
    }

    .sv-calc__cta-title {
      font-size: 20px;
    }

    .sv-calc__cta-btn {
      padding: 12px 20px;
      font-size: 14px;
      width: 100%;
      box-sizing: border-box;
    }

    .sv-calc__faq-item {
      padding: 16px 18px;
    }
  }
