/**
 * Квиз-калькулятор корпоративного сайта — стиль Serenity (MuseoSansCyrl, тёмная карточка).
 */

.sa-site-calc-section {
  position: relative;
  z-index: 2;
}

.sa-site-calc-section__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 72px;
  box-sizing: border-box;
}

.page-constructor__section.korporativnyj-packages-dies + .page-constructor__section.sa-site-calc-section .sa-site-calc-section__container {
  padding-top: var(--home-between, 112px);
}

@media screen and (max-width: 800px) {
  .page-constructor__section.korporativnyj-packages-dies + .page-constructor__section.sa-site-calc-section .sa-site-calc-section__container {
    padding-top: var(--home-between, 97px);
  }
}

@media screen and (max-width: 425px) {
  .page-constructor__section.korporativnyj-packages-dies + .page-constructor__section.sa-site-calc-section .sa-site-calc-section__container {
    padding-top: var(--home-between, 60px);
  }
}

#korporativnyj-site-calc-root.sa-site-calc {
  width: 100%;
  box-sizing: border-box;
  font-family:
    MuseoSansCyrl,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Ubuntu,
    Cantarell,
    "Noto Sans",
    sans-serif;
  -webkit-font-smoothing: subpixel-antialiased;
}

.sa-site-calc__card {
  background: rgb(29, 29, 31);
  border-radius: 30px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  padding: clamp(40px, 5vw, 72px) clamp(28px, 5vw, 72px);
  box-sizing: border-box;
}

.sa-site-calc__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.sa-site-calc__tag::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.sa-site-calc__title {
  margin: 0 0 8px !important;
  color: #fff !important;
  line-height: 1.08 !important;
}

.sa-site-calc__sub {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 28px;
}

.sa-site-calc__progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.sa-site-calc__progress-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.sa-site-calc__progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sa-site-calc__progress-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  font-weight: 500;
  min-width: 52px;
  text-align: right;
}

.sa-site-calc__content {
  opacity: 1;
  transform: translateX(0);
}

.sa-site-calc__step-num {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  margin-bottom: 10px;
}

.sa-site-calc__step-num em {
  color: #fff;
  font-style: normal;
}

.sa-site-calc__step-q {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #fff;
}

.sa-site-calc__step-hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 22px;
  min-height: 16px;
  line-height: 1.5;
}

.sa-site-calc__timeline-hint {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.55);
}

.sa-site-calc__timeline-hint strong {
  color: #fff;
  font-weight: 500;
}

.sa-site-calc__options {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.sa-site-calc__options--cols-2 {
  grid-template-columns: 1fr 1fr;
}

.sa-site-calc__options--cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.sa-site-calc__opt {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 14px 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sa-site-calc__opt:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.sa-site-calc__opt.is-selected {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
}

.sa-site-calc__opt-check {
  position: absolute;
  top: 13px;
  right: 12px;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: transparent;
  transition: all 0.18s ease;
}

.sa-site-calc__opt.is-selected .sa-site-calc__opt-check {
  background: #fff;
  border-color: #fff;
  color: rgb(29, 29, 31);
}

.sa-site-calc__opt-label {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  padding-right: 22px;
  margin-bottom: 4px;
  color: #fff;
}

.sa-site-calc__opt-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  margin-bottom: 8px;
}

.sa-site-calc__opt-pain {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
}

.sa-site-calc__opt.is-selected .sa-site-calc__opt-pain {
  color: rgba(255, 255, 255, 0.6);
}

.sa-site-calc__toggle-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.sa-site-calc__tgroup {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
}

.sa-site-calc__tgroup.is-answered {
  border-color: rgba(255, 255, 255, 0.18);
}

.sa-site-calc__tgroup-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  margin-bottom: 11px;
}

.sa-site-calc__tgroup-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sa-site-calc__topt {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sa-site-calc__topt:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.sa-site-calc__topt.is-selected {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
}

.sa-site-calc__topt-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.sa-site-calc__topt.is-selected .sa-site-calc__topt-label {
  color: #fff;
}

.sa-site-calc__topt-pain {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
}

.sa-site-calc__topt.is-selected .sa-site-calc__topt-pain {
  color: rgba(255, 255, 255, 0.6);
}

.sa-site-calc__step-actions {
  display: flex;
  gap: 10px;
}

.sa-site-calc__step-actions .sa-site-calc__btn-next {
  flex: 1;
}

.sa-site-calc__btn-next {
  width: 100%;
  background: #fff;
  color: rgb(29, 29, 31);
  border: none;
  border-radius: 12px;
  padding: 15px 24px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.12s ease;
}

.sa-site-calc__btn-next:disabled {
  opacity: 0.28;
  cursor: default;
}

.sa-site-calc__btn-next:not(:disabled):hover {
  opacity: 0.88;
}

.sa-site-calc__btn-next:not(:disabled):active {
  transform: scale(0.99);
}

.sa-site-calc__btn-back {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 15px 18px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.sa-site-calc__btn-back:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.sa-site-calc__result-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6ee7a0;
  border: 1px solid rgba(110, 231, 160, 0.25);
  background: rgba(110, 231, 160, 0.08);
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.sa-site-calc__result-badge::before {
  content: "✓";
  font-size: 11px;
}

.sa-site-calc__result-params {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  line-height: 1.7;
}

.sa-site-calc__result-params strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.sa-site-calc__included-works {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.sa-site-calc__included-works-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.sa-site-calc__included-works-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sa-site-calc__included-works-list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  position: relative;
  padding-left: 18px;
}

.sa-site-calc__included-works-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6ee7a0;
}

.sa-site-calc__breakdown {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
}

.sa-site-calc__breakdown-head {
  padding: 12px 18px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.sa-site-calc__brow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.sa-site-calc__brow:last-child {
  border-bottom: none;
}

.sa-site-calc__brow-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.sa-site-calc__brow-val {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.sa-site-calc__total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 22px 0 14px;
}

.sa-site-calc__total-lbl {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  padding-bottom: 6px;
}

.sa-site-calc__total-num {
  font-size: clamp(36px, 5vw, 46px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.sa-site-calc__support-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 20px;
}

.sa-site-calc__support-chip strong {
  color: #fff;
}

.sa-site-calc__result-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin: 0 0 18px;
}

.sa-site-calc__cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.sa-site-calc__cta-card {
  border-radius: 16px;
  padding: 20px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.sa-site-calc__cta-card:hover {
  transform: translateY(-2px);
}

.sa-site-calc__cta-card--primary {
  background: #fff;
  border: 1.5px solid #fff;
}

.sa-site-calc__cta-card--outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.sa-site-calc__cta-card--outline:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.sa-site-calc__cta-free {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.sa-site-calc__cta-card--primary .sa-site-calc__cta-free {
  color: rgba(29, 29, 31, 0.45);
}

.sa-site-calc__cta-card--outline .sa-site-calc__cta-free {
  color: rgba(255, 255, 255, 0.4);
}

.sa-site-calc__cta-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.sa-site-calc__cta-card--primary .sa-site-calc__cta-title {
  color: rgb(29, 29, 31);
}

.sa-site-calc__cta-card--outline .sa-site-calc__cta-title {
  color: #fff;
}

.sa-site-calc__cta-desc {
  font-size: 12px;
  line-height: 1.55;
}

.sa-site-calc__cta-card--primary .sa-site-calc__cta-desc {
  color: rgba(29, 29, 31, 0.55);
}

.sa-site-calc__cta-card--outline .sa-site-calc__cta-desc {
  color: rgba(255, 255, 255, 0.45);
}

.sa-site-calc__reset-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
}

.sa-site-calc__reset-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

@keyframes saSiteCalcFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-constructor__section:has(> .dies.modern .prices) + .sa-site-calc-section {
  padding-top: 0;
}

.page-constructor__section.sa-site-calc-section + .sa-service-lead-section .sa-service-lead-section__container {
  padding-top: 0;
}

@media (max-width: 721px) {
  .sa-site-calc__options--cols-3,
  .sa-site-calc__options--cols-2,
  .sa-site-calc__cta-grid,
  .sa-site-calc__tgroup-opts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sa-site-calc__card {
    border-radius: 20px;
    padding: 32px 20px;
  }

  .sa-site-calc-section__container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
