:root {
  --cfm-red: #d63d43;
  --cfm-red-dark: #b82f35;
  --cfm-ink: #17191c;
  --cfm-muted: #60646b;
  --cfm-line: #dedfe1;
  --cfm-soft: #f4f4f2;
  --cfm-white: #fff;
}

.page-id-245 .content__row > .content__col_big,
.page-id-273 .content__row > .content__col_big {
  flex: 0 0 100%;
  max-width: 100%;
}

.page-id-245 .content__row > .content__col:not(.content__col_big),
.page-id-273 .content__row > .content__col:not(.content__col_big) {
  display: none;
}

.page-id-245 .section-post__editor,
.page-id-273 .section-post__editor {
  max-width: none;
  color: var(--cfm-ink);
}

.page-id-245 .section-post__about,
.page-id-273 .section-post__about {
  margin-bottom: 24px;
}

.page-id-245 .section-post__about .title,
.page-id-273 .section-post__about .title {
  max-width: 980px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

.cfm-landing,
.cfm-landing * {
  box-sizing: border-box;
}

.cfm-landing {
  --cfm-gap: clamp(20px, 3vw, 36px);
  width: 100%;
  margin: 0;
  color: var(--cfm-ink);
  font-family: "Montserrat", "Trebuchet MS", sans-serif;
}

.cfm-landing h2,
.cfm-landing h3,
.cfm-landing p,
.cfm-landing figure,
.cfm-landing dl,
.cfm-landing dd {
  margin-top: 0;
}

.cfm-landing h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.25vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.cfm-landing h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.cfm-landing p,
.cfm-landing li,
.cfm-landing dd {
  font-size: 16px;
  line-height: 1.65;
}

.cfm-eyebrow {
  margin-bottom: 12px;
  color: var(--cfm-red);
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1.3 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cfm-lead {
  max-width: 720px;
  margin-bottom: 26px;
  color: #3f4248;
  font-size: clamp(17px, 1.4vw, 20px) !important;
  line-height: 1.6 !important;
}

.cfm-note {
  margin: 18px 0 0;
  color: var(--cfm-muted);
  font-size: 13px !important;
}

.cfm-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 0;
  overflow: hidden;
  min-height: 540px;
  margin-bottom: 24px;
  border: 1px solid var(--cfm-line);
  border-radius: 18px;
  background: var(--cfm-soft);
}

.cfm-hero::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--cfm-red);
  content: "";
}

.cfm-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(38px, 5vw, 72px);
}

.cfm-hero__media {
  min-height: 420px;
  margin: 0;
  background: #242629;
}

.cfm-hero__media img,
.cfm-section__media img,
.cfm-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.cfm-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cfm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid var(--cfm-red);
  border-radius: 8px;
  background: var(--cfm-red);
  color: var(--cfm-white) !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.cfm-button:hover,
.cfm-button:focus-visible {
  border-color: var(--cfm-red-dark);
  background: var(--cfm-red-dark);
  color: var(--cfm-white) !important;
  transform: translateY(-1px);
}

.cfm-button:focus-visible,
.cfm-phone:focus-visible,
.cfm-faq summary:focus-visible {
  outline: 3px solid rgba(214, 61, 67, 0.32);
  outline-offset: 3px;
}

.cfm-button--secondary {
  border-color: #b9bbbf;
  background: transparent;
  color: var(--cfm-ink) !important;
}

.cfm-button--secondary:hover,
.cfm-button--secondary:focus-visible {
  border-color: var(--cfm-ink);
  background: var(--cfm-ink);
  color: var(--cfm-white) !important;
}

.cfm-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: clamp(64px, 8vw, 100px);
  border: 1px solid var(--cfm-line);
  border-radius: 14px;
  background: var(--cfm-white);
}

.cfm-fact {
  min-height: 126px;
  padding: 28px;
  border-right: 1px solid var(--cfm-line);
}

.cfm-fact:last-child {
  border-right: 0;
}

.cfm-fact strong,
.cfm-fact span {
  display: block;
}

.cfm-fact strong {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.3;
}

.cfm-fact span {
  color: var(--cfm-muted);
  font-size: 13px;
  line-height: 1.55;
}

.cfm-section {
  margin: 0 0 clamp(64px, 8vw, 104px);
}

.cfm-section__heading {
  max-width: 860px;
  margin-bottom: 32px;
}

.cfm-section__heading > p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--cfm-muted);
}

.cfm-grid {
  display: grid;
  gap: 18px;
}

.cfm-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cfm-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cfm-card,
.cfm-case {
  min-height: 225px;
  padding: 30px;
  border: 1px solid var(--cfm-line);
  border-radius: 12px;
  background: var(--cfm-white);
  box-shadow: 0 14px 36px rgba(18, 21, 24, 0.06);
}

.cfm-card::before,
.cfm-case::before {
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 24px;
  background: var(--cfm-red);
  content: "";
}

.cfm-card p,
.cfm-case p {
  margin-bottom: 0;
  color: var(--cfm-muted);
  font-size: 14px;
}

.cfm-card--compact {
  min-height: 200px;
  padding: 26px;
}

.cfm-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cfm-compare__item {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--cfm-line);
  border-radius: 14px;
  background: var(--cfm-soft);
}

.cfm-compare__item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--cfm-red);
  content: "";
}

.cfm-compare__label,
.cfm-case__type {
  margin-bottom: 10px;
  color: var(--cfm-red) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cfm-compare__item h3 {
  margin-bottom: 26px;
  font-size: clamp(28px, 3vw, 40px);
}

.cfm-compare__item dl {
  margin-bottom: 0;
}

.cfm-compare__item dl > div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid #d5d6d8;
}

.cfm-compare__item dt {
  font-size: 13px;
  font-weight: 800;
}

.cfm-compare__item dd {
  margin: 0;
  color: var(--cfm-muted);
  font-size: 14px;
}

.cfm-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 28px 30px;
  border: 1px solid var(--cfm-line);
  border-radius: 12px;
}

.cfm-inline-cta h3,
.cfm-inline-cta p {
  margin-bottom: 4px;
}

.cfm-inline-cta p {
  color: var(--cfm-muted);
  font-size: 14px;
}

.cfm-section--media,
.cfm-section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.cfm-section__media {
  overflow: hidden;
  min-height: 600px;
  margin: 0;
  border-radius: 14px;
  background: #242629;
}

.cfm-steps,
.cfm-process {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cfm-steps li,
.cfm-process li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--cfm-line);
}

.cfm-steps li > span,
.cfm-process li > span {
  color: var(--cfm-red);
  font-size: 13px;
  font-weight: 900;
}

.cfm-steps h3,
.cfm-process h3,
.cfm-steps p,
.cfm-process p {
  margin-bottom: 4px;
}

.cfm-steps p,
.cfm-process p {
  color: var(--cfm-muted);
  font-size: 14px;
}

.cfm-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 12px;
  height: 430px;
  margin: 0 0 clamp(64px, 8vw, 104px);
}

.cfm-gallery figure {
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
  background: #242629;
}

.cfm-section--tinted {
  padding: clamp(36px, 5vw, 64px);
  border-radius: 16px;
  background: var(--cfm-soft);
}

.cfm-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.cfm-process li {
  display: block;
  padding: 28px;
  border-top: 3px solid var(--cfm-red);
  border-right: 1px solid var(--cfm-line);
}

.cfm-process li:last-child {
  border-right: 0;
}

.cfm-process li > span {
  display: block;
  margin-bottom: 24px;
}

.cfm-section--split {
  align-items: stretch;
}

.cfm-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cfm-list li {
  padding: 18px 0;
  border-top: 1px solid var(--cfm-line);
}

.cfm-list strong,
.cfm-list span {
  display: block;
}

.cfm-list strong {
  margin-bottom: 5px;
}

.cfm-list span {
  color: var(--cfm-muted);
  font-size: 14px;
}

.cfm-calculation {
  padding: clamp(34px, 5vw, 58px);
  border-radius: 14px;
  background: var(--cfm-ink);
  color: var(--cfm-white);
}

.cfm-calculation h3 {
  font-size: clamp(26px, 3vw, 36px);
}

.cfm-calculation > p:not(.cfm-eyebrow) {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
}

.cfm-case {
  min-height: 280px;
}

.cfm-faq {
  border-top: 1px solid var(--cfm-line);
}

.cfm-faq details {
  border-bottom: 1px solid var(--cfm-line);
}

.cfm-faq summary {
  padding: 24px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.cfm-faq details p {
  max-width: 860px;
  margin: -4px 0 24px;
  color: var(--cfm-muted);
}

.cfm-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  margin: 0 0 36px;
  padding: clamp(38px, 6vw, 72px);
  border-radius: 16px;
  background: var(--cfm-ink);
  color: var(--cfm-white);
}

.cfm-final-cta h2 {
  max-width: 780px;
  margin-bottom: 12px;
}

.cfm-final-cta > div > p:not(.cfm-eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.cfm-button--light {
  border-color: var(--cfm-white);
  background: var(--cfm-white);
  color: var(--cfm-ink) !important;
}

.cfm-button--light:hover,
.cfm-button--light:focus-visible {
  border-color: #efefef;
  background: #efefef;
  color: var(--cfm-ink) !important;
}

.cfm-phone {
  color: var(--cfm-white) !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .cfm-hero {
    grid-template-columns: 1fr;
  }

  .cfm-hero__media {
    min-height: 380px;
    max-height: 520px;
  }

  .cfm-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cfm-fact:nth-child(2) {
    border-right: 0;
  }

  .cfm-fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--cfm-line);
  }

  .cfm-grid--4,
  .cfm-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cfm-process li:nth-child(2) {
    border-right: 0;
  }

  .cfm-process li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--cfm-line);
  }

  .cfm-section--media,
  .cfm-section--split {
    grid-template-columns: 1fr;
  }

  .cfm-section__media {
    min-height: 460px;
  }
}

@media (max-width: 767px) {
  .page-id-245 .call-modals-buttons,
  .page-id-273 .call-modals-buttons {
    display: none !important;
  }

  .page-id-245 .section-post__about,
  .page-id-273 .section-post__about {
    margin-bottom: 18px;
  }

  .page-id-245 .section-post__about .title,
  .page-id-273 .section-post__about .title {
    font-size: 32px;
  }

  .cfm-landing h2 {
    font-size: 28px;
    letter-spacing: -0.025em;
  }

  .cfm-landing h3 {
    font-size: 19px;
  }

  .cfm-hero {
    min-height: 0;
    border-radius: 12px;
  }

  .cfm-hero__content {
    padding: 32px 24px;
  }

  .cfm-hero__media {
    min-height: 240px;
  }

  .cfm-actions,
  .cfm-button {
    width: 100%;
  }

  .cfm-facts,
  .cfm-grid--3,
  .cfm-grid--4,
  .cfm-compare,
  .cfm-process,
  .cfm-final-cta {
    grid-template-columns: 1fr;
  }

  .cfm-fact {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--cfm-line);
  }

  .cfm-fact:last-child {
    border-bottom: 0;
  }

  .cfm-card,
  .cfm-card--compact,
  .cfm-case {
    min-height: 0;
    padding: 24px;
  }

  .cfm-compare__item {
    padding: 30px 24px;
  }

  .cfm-compare__item dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .cfm-inline-cta {
    display: block;
    padding: 24px;
  }

  .cfm-inline-cta .cfm-button {
    margin-top: 18px;
  }

  .cfm-section__media {
    min-height: 340px;
  }

  .cfm-gallery {
    grid-template-columns: 1fr 1fr;
    height: 470px;
  }

  .cfm-gallery figure:first-child {
    grid-column: 1 / -1;
  }

  .cfm-section--tinted {
    padding: 30px 24px;
  }

  .cfm-process li,
  .cfm-process li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--cfm-line);
  }

  .cfm-process li:last-child {
    border-bottom: 0;
  }

  .cfm-final-cta {
    gap: 26px;
    padding: 34px 24px;
  }

  .cfm-final-cta .cfm-actions {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfm-button {
    transition: none;
  }
}
