
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@700&display=swap');
  /* ---------- Базовый сброс, всё под неймспейсом .cc-page, чтобы не
     конфликтовать со стилями Tilda ---------- */
  .cc-page, .cc-page *, .cc-page *::before, .cc-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  .cc-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--cc-ink);
    background: var(--cc-page-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  .cc-page img { max-width: 100%; display: block; }
  .cc-page a { color: inherit; text-decoration: none; }
  /* :where() keeps this reset at zero extra specificity, so any later
     button rule (.cc-btn--primary, .cc-modal__close, etc.) can override
     it normally instead of losing to the element selector's specificity */
  .cc-page :where(button) { font: inherit; cursor: pointer; border: none; background: transparent; }
  .cc-page ul { list-style: none; }

  /* ---------- Темы (4 цвета карточек) ---------- */
  .cc-page[data-theme="blue"] {
    --cc-primary: #4F8DC7;
    --cc-primary-dark: #35618C;
    --cc-primary-light: #E9F2FA;
    --cc-on-primary: #FFFFFF;
    --cc-page-bg: #FFFFFF;
    --cc-ink: #1F2A3A;
  }
  .cc-page[data-theme="orange"] {
    --cc-primary: #E07C3E;
    --cc-primary-dark: #B85F27;
    --cc-primary-light: #FBEBDD;
    --cc-on-primary: #FFFFFF;
    --cc-page-bg: #FFFFFF;
    --cc-ink: #1F2A3A;
  }
  .cc-page[data-theme="ivory"] {
    --cc-primary: #28344A;
    --cc-primary-dark: #171F2E;
    --cc-primary-light: #E7E9ED;
    --cc-on-primary: #FFFFFF;
    --cc-page-bg: #FFFFFF;
    --cc-ink: #1F2A3A;
  }
  .cc-page[data-theme="green"] {
    --cc-primary: #74A055;
    --cc-primary-dark: #557939;
    --cc-primary-light: #EAF3E1;
    --cc-on-primary: #FFFFFF;
    --cc-page-bg: #FFFFFF;
    --cc-ink: #1F2A3A;
  }

  .cc-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .cc-article-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* ---------- Header ---------- */
  .cc-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #FFFFFF;
    border-bottom: 1px solid #EBEDF0;
    box-shadow: 0 1px 3px rgba(16,24,40,0.05);
  }
  .cc-header__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .cc-logo {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cc-ink);
  }
  .cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  }
  .cc-btn--primary {
    background: var(--cc-primary-dark);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  }
  .cc-btn--primary:hover { background: var(--cc-primary); }
  .cc-btn--ghost {
    background: transparent;
    border: 1.5px solid #D7DBE1;
    color: var(--cc-ink);
  }
  .cc-btn--ghost:hover { border-color: var(--cc-primary); color: var(--cc-primary); }
  .cc-btn:active { transform: scale(0.97); }
  .cc-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

  /* ---------- Sections ---------- */
  .cc-section { padding: 48px 0; }
  .cc-section--lead { padding-top: 60px; }
  .cc-section--muted { background: #FAFBFC; }
  .cc-section__title {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    color: var(--cc-ink);
  }
  .cc-page-heading {
    font-size: clamp(30px, 5vw, 44px);
    color: var(--cc-primary-dark);
    margin-bottom: 22px;
  }
  .cc-section__text {
    font-size: 16px;
    color: #3E4756;
    max-width: 680px;
  }
  .cc-section__text + .cc-section__text { margin-top: 12px; }

  .cc-placeholder {
    margin-top: 20px;
    border: 1.5px dashed #C9CFD9;
    border-radius: 14px;
    padding: 24px;
    background: var(--cc-primary-light);
    max-width: 680px;
  }
  .cc-placeholder__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cc-primary-dark);
    margin-bottom: 8px;
  }
  .cc-placeholder__text {
    font-size: 15px;
    color: #4A5261;
  }

  /* ---------- Заглушка под фото карточки (пока нет реального фото) ---------- */
  .cc-about__img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
    background: var(--cc-primary-light);
  }
  .cc-about__img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cc-about__img-wrap--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    border: 1.5px dashed #C9CFD9;
  }
  .cc-about__img-wrap--empty span {
    font-size: 12px;
    font-weight: 600;
    color: var(--cc-primary-dark);
    line-height: 1.4;
  }

  /* ---------- Статья: развёрнутый текст об инструменте ---------- */
  .cc-article-meta {
    font-size: 13px;
    color: #8A93A2;
    margin: 6px 0 28px;
  }
  .cc-article {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: start;
  }
  .cc-article-body { min-width: 0; order: 1; }
  .cc-lead {
    font-size: 18px;
    line-height: 1.65;
    color: #333E4D;
    margin-bottom: 28px;
  }

  .cc-toc {
    border: 1px solid #E5E8EC;
    border-radius: 14px;
    padding: 18px 22px;
    background: #FAFBFC;
    margin: 4px 0 40px;
    max-width: 460px;
  }
  .cc-toc__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #8A93A2;
    margin-bottom: 10px;
  }
  .cc-toc ol { margin: 0; padding-left: 20px; }
  .cc-toc li { font-size: 14px; margin-bottom: 7px; }
  .cc-toc li:last-child { margin-bottom: 0; }
  .cc-toc a { color: #2C3444; }
  .cc-toc a:hover { color: var(--cc-primary-dark); }

  .cc-article-body h2 {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 21px;
    letter-spacing: 0.01em;
    color: var(--cc-ink);
    margin: 44px 0 14px;
    scroll-margin-top: 90px;
  }
  .cc-article-body > h2:first-child { margin-top: 0; }
  .cc-article-body p {
    font-size: 15.5px;
    line-height: 1.72;
    color: #3E4756;
    margin-bottom: 14px;
  }
  .cc-article-body > ol, .cc-article-body > ul:not([class]) {
    margin: 0 0 20px 20px;
  }
  .cc-article-body > ol > li, .cc-article-body > ul:not([class]) > li {
    font-size: 15.5px;
    line-height: 1.65;
    color: #3E4756;
    margin-bottom: 12px;
    display: list-item;
  }
  .cc-article-body > ol > li::marker { font-weight: 700; color: var(--cc-primary-dark); }
  .cc-article-body strong { color: var(--cc-ink); }

  .cc-callout {
    border-left: 4px solid var(--cc-primary);
    background: var(--cc-primary-light);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 8px 0 28px;
    font-size: 15.5px;
    line-height: 1.62;
    color: #2C3444;
  }
  .cc-callout strong { color: var(--cc-primary-dark); }

  .cc-timeline {
    display: flex;
    gap: 0;
    margin: 20px 0 32px;
  }
  .cc-timeline__step { flex: 1; position: relative; padding-right: 16px; }
  .cc-timeline__num {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--cc-primary-dark);
    color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    margin-bottom: 12px;
    position: relative; z-index: 2;
  }
  .cc-timeline__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px; left: 34px; right: -0px;
    height: 2px;
    background: #DCE0E6;
    z-index: 1;
  }
  .cc-timeline__title { font-weight: 700; font-size: 14px; color: var(--cc-ink); margin-bottom: 4px; }
  .cc-timeline__text { font-size: 13px; line-height: 1.5; color: #5B6472; }

  .cc-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 20px 0 32px;
  }
  .cc-icon-card { border: 1px solid #E5E8EC; border-radius: 14px; padding: 18px; background: #FFFFFF; }
  .cc-icon-card__icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--cc-primary-light);
    color: var(--cc-primary-dark);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
  }
  .cc-icon-card__icon svg { width: 20px; height: 20px; }
  .cc-icon-card__title { font-weight: 700; font-size: 14.5px; color: var(--cc-ink); margin-bottom: 6px; }
  .cc-icon-card__text { font-size: 13.5px; line-height: 1.55; color: #5B6472; }

  .cc-mistake-list { list-style: none; margin: 20px 0 32px; padding: 0; }
  .cc-mistake-list li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid #EFF1F4; font-size: 15px; line-height: 1.55; color: #3E4756; }
  .cc-mistake-list li:first-child { border-top: none; padding-top: 0; }
  .cc-mistake-list__mark {
    flex: 0 0 22px; height: 22px; width: 22px;
    border-radius: 50%;
    background: #F1F2F5; color: #8A93A2;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
    margin-top: 1px;
  }

  .cc-metric-list { list-style: none; margin: 20px 0 32px; padding: 0; display: grid; gap: 12px; }
  .cc-metric-list li { display: flex; gap: 14px; align-items: flex-start; }
  .cc-metric-list__num {
    flex: 0 0 26px; height: 26px;
    border-radius: 50%;
    background: var(--cc-primary-dark); color: #FFFFFF;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  .cc-metric-list__text { font-size: 15px; line-height: 1.55; color: #3E4756; padding-top: 2px; }

  .cc-checklist { list-style: none; margin: 20px 0 32px; padding: 0; border: 1px solid #E5E8EC; border-radius: 14px; overflow: hidden; }
  .cc-checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; font-size: 14.5px; line-height: 1.5; color: #2C3444; border-top: 1px solid #EFF1F4; }
  .cc-checklist li:first-child { border-top: none; }
  .cc-checklist__icon {
    flex: 0 0 22px; height: 22px; width: 22px;
    border-radius: 50%;
    background: var(--cc-primary-light); color: var(--cc-primary-dark);
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
  }
  .cc-checklist__icon svg { width: 13px; height: 13px; }

  .cc-seealso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
  .cc-seealso__card { display: block; border: 1px solid #E5E8EC; border-radius: 14px; padding: 16px; background: #FFFFFF; transition: border-color .15s ease; }
  .cc-seealso__card:hover { border-color: var(--cc-primary); }
  .cc-seealso__tag { font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; color: #8A93A2; margin-bottom: 6px; }
  .cc-seealso__title { font-weight: 700; font-size: 15px; color: var(--cc-ink); margin-bottom: 6px; }
  .cc-seealso__text { font-size: 13px; color: #5B6472; line-height: 1.5; }

  .cc-infobox {
    border: 1px solid #E5E8EC;
    border-radius: 16px;
    overflow: hidden;
    background: #FAFBFC;
    position: sticky;
    top: 84px;
  }
  .cc-infobox__body { padding: 16px 18px 18px; }
  .cc-infobox__row { padding: 10px 0; border-top: 1px solid #ECEEF1; }
  .cc-infobox__row:first-child { border-top: none; padding-top: 0; }
  .cc-infobox__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #8A93A2; font-weight: 700; margin-bottom: 4px; }
  .cc-infobox__value { font-size: 14px; color: #2C3444; line-height: 1.45; }

  @media (max-width: 880px) {
    .cc-article { grid-template-columns: 1fr; }
    .cc-infobox { order: -1; position: static; margin-bottom: 28px; }
  }
  @media (max-width: 720px) {
    .cc-icon-grid { grid-template-columns: 1fr; }
    .cc-seealso { grid-template-columns: 1fr; }
    .cc-timeline { flex-direction: column; gap: 22px; }
    .cc-timeline__step { padding-right: 0; padding-left: 46px; }
    .cc-timeline__num { position: absolute; left: 0; top: 0; margin-bottom: 0; }
    .cc-timeline__title, .cc-timeline__text { margin-left: 0; }
    .cc-timeline__step .cc-timeline__title { padding-top: 4px; }
    .cc-timeline__step:not(:last-child)::after {
      top: 34px; left: 17px; right: auto; bottom: -22px;
      width: 2px; height: auto;
    }
  }

  /* ---------- CTA ---------- */
  .cc-cta {
    border-radius: 20px;
    background: var(--cc-primary-light);
    padding: 36px 28px;
    text-align: center;
  }
  .cc-cta__title {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--cc-ink);
  }
  .cc-cta__text {
    font-size: 15px;
    color: #4A5261;
    max-width: 480px;
    margin: 0 auto 22px;
  }

  /* ---------- Footer ---------- */
  .cc-footer {
    border-top: 1px solid #EBEDF0;
    padding: 28px 0 40px;
  }
  .cc-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .cc-footer__text {
    font-size: 13px;
    color: #8A93A2;
  }
  .cc-footer__links { display: flex; gap: 18px; }
  .cc-footer__links a { font-size: 13px; color: #5B6472; font-weight: 500; }
  .cc-footer__links a:hover { color: var(--cc-primary); }

  /* ---------- Modal ---------- */
  .cc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 32, 0.55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    z-index: 100;
  }
  .cc-modal-overlay.is-open { display: flex; }
  .cc-modal {
    background: #FFFFFF;
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    margin: auto 0;
    padding: 26px 24px 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  }
  .cc-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F1F2F5;
    color: #5B6472;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cc-modal__close:hover { background: #E5E7EB; }
  .cc-modal__title {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 20px;
    margin-bottom: 4px;
    padding-right: 30px;
  }
  .cc-modal__subtitle {
    font-size: 13px;
    color: #8A93A2;
    margin-bottom: 18px;
  }

  .cc-field { margin-bottom: 14px; }
  .cc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2C3444;
    margin-bottom: 6px;
  }
  .cc-field label .cc-optional {
    font-weight: 400;
    color: #9AA2AF;
  }
  .cc-field input[type="text"],
  .cc-field input[type="tel"],
  .cc-field input[type="email"],
  .cc-field input[type="url"],
  .cc-field input[type="number"],
  .cc-field textarea {
    width: 100%;
    border: 1.5px solid #DCE0E6;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #1F2A3A;
    background: #FCFCFD;
  }
  .cc-field input:focus,
  .cc-field textarea:focus {
    outline: none;
    border-color: var(--cc-primary);
    background: #FFFFFF;
  }
  .cc-field textarea { resize: vertical; min-height: 90px; }
  .cc-field-row { display: flex; gap: 10px; }
  .cc-field-row .cc-field { flex: 1; }
  .cc-field__error {
    font-size: 12px;
    color: #D0453B;
    margin-top: 5px;
    display: none;
  }
  .cc-field.has-error input,
  .cc-field.has-error textarea { border-color: #D0453B; }
  .cc-field.has-error .cc-field__error { display: block; }

  .cc-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .cc-captcha__question {
    background: #F1F2F5;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #2C3444;
    white-space: nowrap;
  }
  .cc-captcha__refresh {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #F1F2F5;
    color: #5B6472;
    font-size: 16px;
    flex-shrink: 0;
  }
  .cc-captcha__refresh:hover { background: #E5E7EB; }
  .cc-captcha input { flex: 1; min-width: 0; }

  .cc-form__submit { width: 100%; padding: 13px; font-size: 15px; margin-top: 6px; }
  .cc-form__status {
    margin-top: 14px;
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 10px;
    display: none;
  }
  .cc-form__status.is-success { display: block; background: #E7F5EA; color: #2C6E3B; }
  .cc-form__status.is-error { display: block; background: #FBEAEA; color: #B23A31; }
  .cc-form__status.is-info { display: block; background: #EEF2F6; color: #46536A; }

  .cc-form__note {
    font-size: 12px;
    color: #9AA2AF;
    margin-top: 10px;
  }

  @media (max-width: 520px) {
    .cc-header__inner { padding: 12px 16px; }
    .cc-section { padding: 36px 0; }
    .cc-section--lead { padding-top: 40px; }
    .cc-field-row { flex-direction: column; gap: 0; }
    .cc-modal { padding: 22px 18px 20px; border-radius: 16px; }
  }
</style>
