/*
 * MasterCRM theme styles.
 * Most layout lives in inline style attributes copied from the designer prototype;
 * this file holds fonts, the base reset, responsive/interactive state classes and
 * the hover/focus states (generated from the prototype's style-hover/style-focus).
 */

/* ---------- Inter, self-hosted (no Google Fonts: 152-FZ cross-border transfer) ---------- */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-cyrillic-500-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-cyrillic-700-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-latin-400-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-latin-500-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-latin-600-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-latin-700-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- base (from the prototype pages) ---------- */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: #ffffff;
  color: #2a3140;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
a {
  color: #0f2147;
  text-decoration: none;
}
a:hover {
  color: #0a1836;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
img {
  max-width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
html:not(.js) .mc-js-only {
  display: none !important;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- header: desktop >= 1060px, burger below (Шапка Component: width < 1060) ---------- */
@media (max-width: 1059.98px) {
  .mc-d1060 {
    display: none !important;
  }
}
@media (min-width: 1060px) {
  .mc-m1060,
  .mc-mpanel {
    display: none !important;
  }
}
.mc-nav.is-scrolled {
  border-bottom-color: #e3e7ee !important;
}
.mc-dd {
  display: none !important;
}
.mc-dd-wrap:hover .mc-dd,
.mc-dd-wrap:focus-within .mc-dd,
.mc-dd-wrap.is-open .mc-dd {
  display: grid !important;
}
.mc-dd-wrap.is-closed .mc-dd {
  display: none !important;
}
.mc-mpanel:not(.is-open) {
  display: none !important;
}
.mc-ic-close {
  display: none;
}
.mc-burger[aria-expanded="true"] .mc-ic-open {
  display: none;
}
.mc-burger[aria-expanded="true"] .mc-ic-close {
  display: block;
}

/* ---------- home: 6-step timeline + report list (Главная Component: width < 900) ---------- */
@media (max-width: 899.98px) {
  .mc-d900 {
    display: none !important;
  }
}
@media (min-width: 900px) {
  .mc-m900 {
    display: none !important;
  }
}
.mc-more {
  display: none !important;
}
@media (max-width: 899.98px) {
  .js .mc-rest-wrap:not(.is-expanded) .mc-rest {
    display: none !important;
  }
  .js .mc-rest-wrap:not(.is-expanded) .mc-more {
    display: inline-block !important;
  }
}

/* ---------- FAQ accordions (all answers are in the DOM; collapsed only when JS runs) ---------- */
.mc-faq-minus {
  display: none;
}
.mc-faq-item.is-open .mc-faq-minus {
  display: inline;
}
.mc-faq-item.is-open .mc-faq-plus {
  display: none;
}
.js .mc-faq-item:not(.is-open) .mc-faq-a {
  display: none;
}

/* ---------- pricing ---------- */
@media (max-width: 699.98px) {
  .mc-pro-card {
    order: 0 !important;
  }
}
.mc-cmp-row {
  grid-template-columns: minmax(0, 2.6fr) repeat(4, minmax(0, 1fr));
}
@media (max-width: 1099.98px) {
  .mc-cmp-row {
    grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  }
}
.mc-cmp-tabs {
  display: none !important;
}
.mc-cr {
  display: grid;
  border-top: 1px solid #eef1f5;
}
.mc-crh {
  padding: 12px 20px;
  display: grid;
  gap: 6px;
  align-content: center;
  min-width: 0;
}
.mc-crn {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
  line-height: 1.4;
  color: #0a0d14;
}
.mc-cc {
  padding: 12px 8px;
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: center;
  text-align: center;
  background: transparent;
  min-width: 0;
}
.mc-cmp-tint {
  background: #f5f7fa;
}
.mc-dash {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: #c9d0db;
}
.js .mc-cmp-g:not(.is-open) .mc-cmp-rows {
  display: none;
}
.js .mc-tip:not(.is-open) {
  display: none;
}
@media (max-width: 767.98px) {
  .js .mc-cmp-tabs {
    display: grid !important;
  }
  .js .mc-cmp .mc-cmp-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
  .js .mc-cmp[data-tab="0"] [data-col]:not([data-col="0"]),
  .js .mc-cmp[data-tab="1"] [data-col]:not([data-col="1"]),
  .js .mc-cmp[data-tab="2"] [data-col]:not([data-col="2"]),
  .js .mc-cmp[data-tab="3"] [data-col]:not([data-col="3"]) {
    display: none !important;
  }
  .js .mc-cmp .mc-cmp-tint {
    background: transparent;
  }
}

/* ---------- integrations: "Не нашли свою CRM" ---------- */
.mc-sent {
  display: none !important;
}
.mc-form-wrap.is-sent .mc-sent {
  display: flex !important;
}
.mc-form-wrap.is-sent form {
  display: none !important;
}

/* ---------- cookie banner ---------- */
.mc-cookie[hidden] {
  display: none !important;
}
.mc-cookie-ok:hover {
  background: #0a1836 !important;
}
.mc-cookie-min:hover {
  color: #0a1836 !important;
}

/* ---------- legal center (page-legal.php) ---------- */
.mc-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 40px) clamp(72px, 8vw, 120px);
  font-size: 17px;
  line-height: 1.7;
  color: #2a3140;
}
.mc-legal h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #0a0d14;
  text-wrap: balance;
}
.mc-legal h2 {
  margin: 56px 0 16px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #0a0d14;
  scroll-margin-top: 96px;
}
.mc-legal h3 {
  margin: 32px 0 12px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  color: #0a0d14;
  scroll-margin-top: 96px;
}
.mc-legal h2 .mc-anchor,
.mc-legal h3 .mc-anchor {
  margin-left: 8px;
  color: #c9d0db;
  font-weight: 500;
  opacity: 0;
  transition: opacity 150ms;
}
.mc-legal h2:hover .mc-anchor,
.mc-legal h3:hover .mc-anchor,
.mc-legal .mc-anchor:focus {
  opacity: 1;
}
.mc-legal p {
  margin: 0 0 16px;
}
.mc-legal ul,
.mc-legal ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.mc-legal li {
  margin: 6px 0;
}
.mc-legal a {
  color: #0f2147;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mc-legal strong {
  color: #0a0d14;
  font-weight: 600;
}
.mc-legal table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.5;
}
.mc-legal th,
.mc-legal td {
  border: 1px solid #e3e7ee;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.mc-legal th {
  background: #f5f7fa;
  color: #0a0d14;
  font-weight: 600;
}
.mc-legal hr {
  border: 0;
  border-top: 1px solid #e3e7ee;
  margin: 40px 0;
}
.mc-legal blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: #f5f7fa;
  border-radius: 16px;
}

/* ---------- hover / focus states (generated from prototype style-hover / style-focus) ---------- */
.mc-h0:hover {
  background: rgb(169, 226, 58) !important;
}
.mc-h1:focus {
  outline: rgb(15, 33, 71) solid 2px !important;
  outline-offset: 2px !important;
}
.mc-h2:hover {
  background: rgb(245, 247, 250) !important;
}
.mc-h3:hover {
  transform: translateY(-2px) !important;
  box-shadow: rgba(10, 13, 20, 0.06) 0px 8px 24px !important;
}
.mc-h4:hover {
  filter: brightness(0.94) !important;
}
.mc-h5:focus {
  outline: rgb(185, 242, 74) solid 2px !important;
  outline-offset: 2px !important;
}
.mc-h6:hover {
  background: rgb(10, 24, 54) !important;
}
.mc-h7:hover {
  color: rgb(10, 13, 20) !important;
}
.mc-h8:hover {
  color: rgb(255, 255, 255) !important;
}
.mc-h9:focus {
  outline: 2px solid #0f2147 !important;
  outline-offset: 2px !important;
}
.mc-h10:hover {
  color: rgb(10, 24, 54) !important;
}
.mc-h11:focus {
  border: 2px solid rgb(15, 33, 71) !important;
  padding: 0px 13px !important;
}
.mc-h12:hover {
  background: rgb(238, 242, 249) !important;
}
.mc-h13:hover {
  border-color: rgb(15, 33, 71) !important;
  color: rgb(15, 33, 71) !important;
}
.mc-h14:hover {
  background: #eef2f9 !important;
}
.mc-h15:hover {
  border-color: #0f2147 !important;
  color: #0f2147 !important;
}
.mc-h16:hover {
  color: #0a0d14 !important;
}
.mc-h17:hover {
  background: #f5f7fa !important;
}
.mc-h18:hover {
  background: #a9e23a !important;
}
