.section.calc-wca {
  background: #fff;
}

/* Больше воздуха между формой (callback) и калькулятором */
.callback.callback--main:has(+ .section.calc-wca) {
  padding-bottom: clamp(32px, 4vw, 56px);
}

.callback.callback--main + .section.calc-wca {
  padding-block-start: clamp(52px, 6.5vw, 80px);
}

.calc-wca {
  padding-top: 0;
}

.calc-wca .container {
  max-width: 1270px;
}

.window-calc-page {
  max-width: 1270px;
  margin: 0 auto 40px;
}

.window-calc-page__title {
  margin: 0 0 4px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: #1a1a1a;
}

.window-calc-page__subtitle {
  margin: 0 0 28px;
  color: #888;
  font-size: 14px;
}

.wcp-slider {
  position: relative;
}

.wcp-slider .swiper {
  overflow: hidden;
}

.wcp-slider .swiper-slide {
  width: auto;
  height: auto;
}

.wcp-slider .swiper-wrapper {
  display: flex;
}

.wcp-categories {
  margin-bottom: 28px;
  padding: 4px 0;
}

.wcp-categories .swiper-slide {
  width: auto;
  display: flex;
  box-sizing: border-box;
}

.wcp-category {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  border: 1.5px solid #e0e4ea;
  border-radius: 10px;
  background: #fff;
  color: #555;
  padding: 14px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  width: 100%;
  transition: all 0.18s;
}

.wcp-category--active {
  background: #2196f3;
  border-color: #2196f3;
  color: #fff;
}

.wcp-card {
  background: #fff;
  border: 1.5px solid #e5e9f0;
  border-radius: 14px;
  padding: 28px 32px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.wcp-steps {
  margin-bottom: 20px;
  padding: 4px 0;
}

.wcp-steps .swiper-slide {
  width: auto;
  display: flex;
  box-sizing: border-box;
}

.wcp-step {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(56, 56, 56, 0.1);
  border-radius: 8px;
  background: #f8f8f8;
  color: #aaa;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.wcp-step__num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
  background: rgba(17, 24, 39, 0.06);
}

.wcp-step--active {
  color: #fff;
  background: #2196f3;
  border-color: #2196f3;
}

.wcp-step--active .wcp-step__num {
  background: rgba(255, 255, 255, 0.28);
}

.wcp-step--done {
  color: #2196f3;
  background: #f8f8f8;
}

.wcp-step--done .wcp-step__num {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='6.75' stroke='%234caf50' stroke-width='1.5'/%3E%3Cpath d='M4.5 8.5 7 11 11.5 5.5' stroke='%234caf50' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  box-shadow: none;
}

.wcp-step--done .wcp-step__num span {
  display: none;
}

.wcp-step-panel {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.wcp-step-panel--active {
  display: flex;
  flex: 1;
  flex-direction: column;
  opacity: 1;
  pointer-events: auto;
}

.wcp-step-panel--enter-forward {
  animation: wcpPanelEnterForward 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wcp-step-panel--enter-backward {
  animation: wcpPanelEnterBackward 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wcp-step-panel--leave-forward {
  animation: wcpPanelLeaveForward 0.24s ease both;
}

.wcp-step-panel--leave-backward {
  animation: wcpPanelLeaveBackward 0.24s ease both;
}

@keyframes wcpPanelEnterForward {
  from {
    opacity: 0;
    transform: translateX(42px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes wcpPanelEnterBackward {
  from {
    opacity: 0;
    transform: translateX(-42px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes wcpPanelLeaveForward {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(-24px) scale(0.985);
  }
}

@keyframes wcpPanelLeaveBackward {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(24px) scale(0.985);
  }
}

.wcp-body {
  display: flex;
  gap: 32px;
  flex: 1;
  align-items: stretch;
}

.wcp-body__left {
  flex: 1;
  min-width: 0;
  max-width: 590px;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
}

.wcp-body__left--result {
  max-width: none;
  padding-bottom: 100px;
}

.wcp-body__right {
  width: calc(50% - 30px);
  max-width: 590px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 58px;
}

.wcp-img-placeholder {
  width: 100%;
  min-height: 220px;
}

.wcp-img-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.wcp-section-title {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #1a1a1a;
}

.wcp-step-note {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.wcp-size-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.wcp-size-sep {
  padding-top: 36px;
  font-size: 18px;
  color: #9ca3af;
}

.wcp-field {
  flex: 1;
}

.wcp-field label {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 12px;
}

.wcp-field__input-wrap {
  position: relative;
}

.wcp-field input {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #dbe1ea;
  padding: 0 36px 0 12px;
  font-size: 15px;
}

.wcp-field input:focus {
  border-color: #2196f3;
}

.wcp-field__unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 12px;
}

.wcp-field__error {
  opacity: 0;
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

.wcp-field--invalid input {
  border-color: #dc2626;
  background: #fef2f2;
}

.wcp-field--invalid .wcp-field__error {
  opacity: 1;
}

.wcp-qty {
  margin-top: 14px;
}

.wcp-qty label {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 12px;
}

.wcp-qty__control {
  width: 100%;
  display: flex;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  overflow: hidden;
}

.wcp-qty__btn {
  width: 42px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.wcp-qty__val {
  flex: 1;
  text-align: center;
  line-height: 42px;
  border-left: 1px solid #dbe1ea;
  border-right: 1px solid #dbe1ea;
}

.wcp-area-hint {
  margin: 8px 0 18px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: #000;
}

.wcp-area-total {
  font-size: 1.1em;
  font-weight: 700;
}

.wcp-hint {
  margin-bottom: 20px;
  border-radius: 8px;
  background: #f5f7fa;
  padding: 14px 16px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.wcp-hint__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.wcp-hint__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2196f3;
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.wcp-scaffold {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 10px;
}

/* Чекбоксы: сброс глобального input { appearance:none; border:0 } из темы tinting */
.window-calc-page input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border: 1.5px solid #c5cdd8;
  border-radius: 4px;
  background-color: #fff;
  background-image: none;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 12px 12px;
  box-shadow: none;
  filter: none;
  cursor: pointer;
  vertical-align: middle;
}

.window-calc-page input[type="checkbox"]:checked {
  border-color: #2196f3;
  background-color: #2196f3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11.5 12 5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
}

.window-calc-page input[type="checkbox"]:focus {
  outline: none;
}

.window-calc-page input[type="checkbox"]:focus-visible {
  outline: 1px solid rgba(33, 150, 243, 0.45);
  outline-offset: 1px;
  box-shadow: none;
}

.window-calc-page input[type="checkbox"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wcp-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #555;
  cursor: pointer;
}

.wcp-check input[type="checkbox"] {
  margin-top: 1px;
}

.wcp-check--sub {
  opacity: 0.98;
}

.wcp-privacy__label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  cursor: pointer;
}

.wcp-privacy__label input[type="checkbox"] {
  margin-top: 1px;
}

.wcp-privacy__label a {
  color: #2196f3;
  text-decoration: underline;
}

.wcp-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.wcp-option {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1.5px solid #dde1ea;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  background: #fff;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.3s ease;
}

.wcp-option:hover {
  border-color: #2196f3;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.wcp-option__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.wcp-option__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wcp-option__name {
  font-size: 14px;
  font-weight: 600;
}

.wcp-option__price {
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  margin-top: 2px;
}

.wcp-option--selected {
  background: #2196f3;
  border-color: #2196f3;
  color: #fff;
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 30px rgba(33, 150, 243, 0.24);
}

.wcp-option--selected .wcp-option__icon {
  background: rgba(255, 255, 255, 0.3);
}

.wcp-option--selected .wcp-option__price {
  color: rgba(255, 255, 255, 0.7);
}

.wcp-result-table,
.wcp-services {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.wcp-result-table__section-head,
.wcp-services__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
}

.wcp-service-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid #f0f2f7;
  color: #444;
}

.wcp-service-row:last-child {
  border-bottom: none;
}

.wcp-service-row__label {
  flex: 1;
  font-size: 13px;
}

.wcp-service-row__label small {
  color: #9ca3af;
}

.wcp-service-row__price {
  color: #6b7280;
  font-size: 12px;
}

.wcp-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  margin-bottom: 12px;
}

.wcp-total__label {
  color: #6b7280;
  font-size: 13px;
}

.wcp-total__old {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 14px;
}

.wcp-total__price {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.wcp-total__price span {
  font-size: 20px;
}

.wcp-total__gift {
  color: #2196f3;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.wcp-phone-wrap label {
  display: block;
  margin-bottom: 5px;
  color: #6b7280;
  font-size: 12px;
}

.wcp-phone-wrap input {
  width: 100%;
  height: 44px;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
}

.wcp-privacy {
  margin: 12px 0 10px;
}

/* Последний шаг: чуть больше воздуха в форме заявки */
.wcp-body__left--result .wcp-phone-wrap {
  margin-top: 4px;
}

.wcp-body__left--result .wcp-privacy {
  margin: 16px 0 14px;
}

.wcp-body__left--result .wcp-submit.wcp-btn--full {
  margin-top: 2px;
  margin-bottom: 12px;
}

.wcp-body__left--result .wcp-btn__call-hint {
  margin-top: 2px;
  margin-bottom: 18px;
}

.wcp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wcp-btn:hover {
  transform: none;
}

.ico-arrow-right::after {
  content: "→";
}

.ico-arrow-left::after {
  content: "←";
}

.wcp-btn--primary {
  background: #2196f3;
  color: #fff;
}

.wcp-btn--secondary {
  background: #eff6ff;
  color: #2196f3;
}

.wcp-btn--full {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 15px;
  border-radius: 9px;
  margin-bottom: 8px;
}

.wcp-btn--primary:hover {
  background: #1976d2;
}

.wcp-btn__call-hint {
  margin: 0 0 16px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
  line-height: 1.4;
}

.wcp-message {
  margin-top: 10px;
  font-size: 13px;
  min-height: 18px;
}

.wcp-message--success {
  color: #15803d;
}

.wcp-message--error {
  color: #dc2626;
}

.wcp-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -72px;
  max-width: 560px;
  width: 50%;
  gap: 16px;
  padding-top: 0;
  position: relative;
  z-index: 1;
}

.wcp-footer__note {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
}

.wcp-footer__note a {
  color: #2196f3;
  text-decoration: none;
}

.wcp-footer__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  align-items: center;
}

@media (max-width: 920px) {
  .wcp-body {
    flex-direction: column;
    gap: 16px;
  }

  .wcp-body__right {
    width: 100%;
    max-width: 420px;
    padding-top: 0;
  }

  .wcp-footer {
    width: 100%;
    max-width: none;
    margin-top: 24px;
  }

  .wcp-scaffold {
    margin-bottom: 20px;
  }

  .wcp-body__left--result {
    padding-bottom: 24px;
  }

  .wcp-card {
    overflow-x: visible;
  }

  .wcp-slider--categories {
    margin-bottom: 20px;
  }

  .calc-wca .wcp-categories:not(.swiper-initialized),
  .calc-wca .wcp-steps:not(.swiper-initialized) {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .calc-wca .wcp-categories:not(.swiper-initialized)::-webkit-scrollbar,
  .calc-wca .wcp-steps:not(.swiper-initialized)::-webkit-scrollbar {
    display: none;
  }

  .wcp-slider--categories .swiper,
  .wcp-slider--steps .swiper {
    overflow: hidden;
    touch-action: pan-x pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }

  .wcp-categories .swiper-wrapper {
    width: max-content !important;
    gap: 12px;
  }

  .wcp-steps .swiper-wrapper {
    width: max-content !important;
    gap: 10px;
  }

  .wcp-categories .swiper-slide,
  .wcp-steps .swiper-slide {
    width: auto !important;
    flex-shrink: 0;
    height: auto;
  }

  .calc-wca .wcp-category {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none;
  }

  .calc-wca .wcp-step {
    width: auto !important;
    max-width: none;
  }

  .window-calc-page > .wcp-slider--categories {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .wcp-card > .wcp-slider--steps {
    margin-inline: -4px;
    padding-inline: 4px;
  }

  .window-calc-page > .wcp-card > .wcp-footer {
    margin-top: 32px;
  }

  .wcp-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .wcp-footer__actions {
    width: 100%;
  }

  .wcp-footer__actions .wcp-btn {
    flex: 1 1 auto;
  }

  .wcp-total {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .wcp-body__right {
    display: none;
  }

  .wcp-body__left {
    padding-bottom: 12px;
  }

  .wcp-scaffold {
    margin-bottom: 36px;
  }

  .window-calc-page > .wcp-card > .wcp-footer {
    width: 100%;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(56, 56, 56, 0.1);
    gap: 14px;
  }

  .wcp-footer__note {
    margin-bottom: 4px;
  }

  .wcp-body__left--result {
    padding-bottom: 72px;
  }

  .wcp-footer__actions {
    width: 100%;
  }

  .wcp-footer__actions .wcp-btn {
    width: 100%;
  }
}

@media (min-width: 921px) {
  .wcp-categories .swiper-wrapper,
  .wcp-steps .swiper-wrapper {
    display: grid !important;
    width: 100% !important;
    transform: none !important;
  }

  .wcp-categories .swiper-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
  }

  .wcp-steps .swiper-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 20px;
  }

  .wcp-categories .swiper-slide,
  .wcp-steps .swiper-slide {
    width: auto !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 640px) {
  .window-calc-page__title {
    font-size: 24px;
  }

  .wcp-card {
    padding: 16px;
    overflow: visible;
  }

  .window-calc-page > .wcp-slider--categories {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .wcp-card > .wcp-slider--steps {
    margin-inline: -8px;
    padding-inline: 8px;
  }

  .wcp-category {
    padding: 12px 18px;
    font-size: 14px;
  }

  .wcp-step {
    padding: 8px 14px;
    font-size: 13px;
  }

  .wcp-size-row {
    flex-direction: column;
  }

  .wcp-size-sep {
    display: none;
  }

  .wcp-qty__control {
    width: 100%;
  }

  .wcp-area-hint {
    font-size: 18px;
  }
}
