.cboostp,
.cboostp * {
  box-sizing: border-box;
}

.cboostp {
  --cboost-bg: #050505;
  --cboost-close-top: 82px;
  --cboost-panel: #0c0c0c;
  --cboost-panel-2: #111111;
  --cboost-border: #262626;
  --cboost-muted: #8b8b8b;
  --cboost-accent: #e3ff04;
  --cboost-white: #ffffff;
  font-family: inherit;
  color: var(--cboost-white);
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.cboostp-lock,
.cboostp-lock body {
  overflow: hidden;
}

.cboostp__header {
  margin-bottom: 30px;
}

.cboostp__line-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.cboostp__line {
  width: 52px;
  height: 6px;
  border-radius: 20px;
  background: var(--cboost-accent);
}

.cboostp__eyebrow {
  color: var(--cboost-accent);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.cboostp__title {
  margin: 0;
  font-size: clamp(40px, 8vw, 104px);
  line-height: .84;
  font-weight: 900;
  letter-spacing: -.05em;
  text-transform: uppercase;
  white-space: pre-line;
}

.cboostp__subtitle {
  margin-top: 12px;
  color: var(--cboost-muted);
  font-size: 16px;
}

.cboostp__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 34px;
}

.cboostp__filter {
  border: 2px solid var(--cboost-border);
  background: rgba(17,17,17,.65);
  color: #c8c8c8;
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: .25s ease;
}

.cboostp__filter:hover,
.cboostp__filter.is-active {
  background: var(--cboost-accent);
  border-color: var(--cboost-accent);
  color: #000;
}

.cboostp__grid {
  column-count: 3;
  column-gap: 24px;
}

.cboostp__card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--cboost-border);
  background: #090909;
  box-shadow: 0 22px 60px rgba(0,0,0,.38);
  cursor: pointer;
  break-inside: avoid;
}

.cboostp__card-media {
  position: relative;
  overflow: hidden;
}

.cboostp__card--small .cboostp__card-media { min-height: 280px; }
.cboostp__card--medium .cboostp__card-media { min-height: 360px; }
.cboostp__card--tall .cboostp__card-media { min-height: 500px; }

.cboostp__card-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform .8s ease, filter .5s ease, opacity .4s ease;
}

.cboostp__card:hover .cboostp__card-image {
  transform: scale(1.05);
  filter: grayscale(0);
}

.cboostp__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.32) 56%, rgba(0,0,0,.08) 100%);
  pointer-events: none;
}

.cboostp__card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  z-index: 2;
}

.cboostp__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--cboost-accent);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cboostp__card-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: .98;
  font-weight: 900;
  text-transform: uppercase;
}

.cboostp__card-description {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.45;
}

.cboostp__dots {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.cboostp__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  transition: .25s ease;
}

.cboostp__dot.is-active {
  width: 24px;
  background: var(--cboost-accent);
}

.cboostp__modal,
.cboostp__lead,
.cboostp__lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.cboostp__modal-backdrop,
.cboostp__lead-backdrop,
.cboostp__lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(14px);
}

.cboostp__modal-dialog {
  position: relative;
  width: min(1240px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  border-radius: 40px;
  overflow: auto;
  background: var(--cboost-panel);
  border: 1px solid var(--cboost-border);
}

.cboostp__close,
.cboostp__lightbox-close,
.cboostp__lead-close {
  appearance: none;
  border: 0;
  background: rgba(0,0,0,.56);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  cursor: pointer;
}

.cboostp__close {
  position: absolute;
  top: var(--cboost-close-top);
  right: 20px;
  z-index: 10;
}

.cboostp__modal-hero {
  position: relative;
  min-height: 48vh;
}

.cboostp__modal-image {
  display: block;
  width: 100%;
  height: 48vh;
  min-height: 420px;
  object-fit: cover;
  cursor: zoom-in;
}

.cboostp__modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0c0c0c 0%, rgba(12,12,12,.28) 48%, rgba(12,12,12,.04) 100%);
}

.cboostp__modal-title-wrap {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 24px;
}

.cboostp__modal-title {
  font-size: clamp(30px, 5vw, 74px);
  line-height: .92;
  font-weight: 900;
  text-transform: uppercase;
}

.cboostp__modal-body {
  padding: 34px;
}

.cboostp__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.cboostp__stat {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--cboost-border);
  border-radius: 26px;
  padding: 24px;
}

.cboostp__stat-label {
  color: var(--cboost-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 8px;
  font-weight: 700;
}

.cboostp__stat-value {
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.cboostp__content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 32px;
}

.cboostp__content-main {
  display: grid;
  gap: 30px;
}

.cboostp__section h4 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.cboostp__task,
.cboostp__solution {
  margin: 0;
  color: #d1d1d1;
  font-size: 18px;
  line-height: 1.65;
  padding-left: 20px;
  border-left: 4px solid var(--cboost-accent);
}

.cboostp__step-list {
  display: grid;
  gap: 12px;
}

.cboostp__step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--cboost-border);
}

.cboostp__step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--cboost-accent);
  color: #000;
  font-weight: 900;
}

.cboostp__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cboostp__gallery-item {
  border: 1px solid var(--cboost-border);
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.cboostp__gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .6s ease;
}

.cboostp__gallery-item:hover img {
  transform: scale(1.08);
}

.cboostp__sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.cboostp__result-box {
  padding: 28px;
  border-radius: 34px;
  background: var(--cboost-accent);
  color: #000;
}

.cboostp__result-title {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.cboostp__result {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
}

.cboostp__consult-btn,
.cboostp__lead-form button {
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 18px;
  background: #000;
  color: #fff;
  padding: 18px 20px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.cboostp__contact-box {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--cboost-border);
  border-radius: 30px;
  padding: 24px 28px;
  display: grid;
  gap: 14px;
}

.cboostp__contact-link,
.cboostp__contact-text {
  color: #f0f0f0;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
}

.cboostp__lead-dialog {
  position: relative;
  width: min(520px, calc(100vw - 24px));
  margin: max(12vh, 42px) auto 0;
  padding: 30px;
  border-radius: 34px;
  background: #fff;
  color: #000;
}

.cboostp__lead-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,.08);
  color: #000;
}

.cboostp__lead-title {
  margin-bottom: 8px;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.cboostp__lead-project {
  margin-bottom: 16px;
  color: #4b4b4b;
  font-size: 14px;
  font-weight: 700;
}

.cboostp__lead-contacts {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px;
  border-left: 4px solid var(--cboost-accent);
  background: #f5f5f5;
  border-radius: 16px;
}

.cboostp__lead-contacts a {
  color: #000;
  text-decoration: none;
  font-weight: 800;
}

.cboostp__lead-form {
  display: grid;
  gap: 12px;
}

.cboostp__lead-form input,
.cboostp__lead-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 18px;
  background: #fafafa;
  padding: 16px 18px;
  color: #000;
  font-size: 16px;
  line-height: 1.4;
}

.cboostp__form-status {
  min-height: 22px;
  color: #333;
  font-size: 14px;
}

.cboostp__lightbox {
  display: grid;
  place-items: center;
}

.cboostp__lightbox-image {
  position: relative;
  max-width: calc(100vw - 30px);
  max-height: calc(100vh - 30px);
  border-radius: 24px;
  z-index: 2;
  object-fit: contain;
}

.cboostp__lightbox-close {
  position: absolute;
  top: var(--cboost-close-top);
  right: 18px;
  z-index: 3;
}

@media (max-width: 1100px) {
  .cboostp__grid {
    column-count: 2;
  }

  .cboostp__content-grid {
    grid-template-columns: 1fr;
  }

  .cboostp__sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .cboostp {
    --cboost-close-top: 74px;
    padding: 24px 0 50px;
  }

  .cboostp__grid {
    column-count: 1;
    column-gap: 0;
  }

  .cboostp__filters {
    gap: 8px;
  }

  .cboostp__filter {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .cboostp__card-content {
    padding: 20px;
  }

  .cboostp__card-title {
    font-size: 22px;
  }

  .cboostp__modal-dialog {
    width: calc(100vw - 10px);
    max-height: calc(100vh - 10px);
    margin: 5px auto;
    border-radius: 26px;
  }

  .cboostp__modal-image {
    min-height: 280px;
    height: 36vh;
  }

  .cboostp__modal-body,
  .cboostp__lead-dialog {
    padding: 18px;
  }

  .cboostp__modal-title-wrap {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .cboostp__stats {
    grid-template-columns: 1fr;
  }

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

  .cboostp__close,
  .cboostp__lightbox-close,
  .cboostp__lead-close {
    width: 46px;
    height: 46px;
    font-size: 30px;
    border-radius: 14px;
  }
}

/* DIVI contrast fix: keep portfolio text readable on dark backgrounds. */
.cboostp,
.cboostp__modal-dialog,
.cboostp__card-content,
.cboostp__contact-box,
.cboostp__stat,
.cboostp__step {
  color: #ffffff !important;
}

.cboostp :where(h1, h2, h3, h4, h5, h6, p, span, div, strong, em, li),
.cboostp__modal-dialog :where(h1, h2, h3, h4, h5, h6, p, span, div, strong, em, li),
.cboostp__card-content :where(h1, h2, h3, h4, h5, h6, p, span, div, strong, em, li),
.cboostp__contact-box :where(h1, h2, h3, h4, h5, h6, p, span, div, strong, em, li) {
  color: inherit !important;
}

.cboostp__title,
.cboostp__subtitle,
.cboostp__card-title,
.cboostp__card-description,
.cboostp__modal-title,
.cboostp__section h4,
.cboostp__task,
.cboostp__solution,
.cboostp__stat-label,
.cboostp__stat-value,
.cboostp__step strong,
.cboostp__contact-link,
.cboostp__contact-text {
  color: #ffffff !important;
}

.cboostp__eyebrow,
.cboostp__dot.is-active {
  color: var(--cboost-accent) !important;
}

.cboostp__badge,
.cboostp__result-box,
.cboostp__result-title,
.cboostp__result,
.cboostp__result-box *,
.cboostp__step span,
.cboostp__filter:hover,
.cboostp__filter.is-active {
  color: #000000 !important;
}

.cboostp__consult-btn,
.cboostp__lead-form button,
.cboostp__close,
.cboostp__lightbox-close {
  color: #ffffff !important;
}

.cboostp__lead-dialog,
.cboostp__lead-dialog *,
.cboostp__lead-close,
.cboostp__lead-form input,
.cboostp__lead-form textarea,
.cboostp__form-status {
  color: #000000 !important;
}
