/* ============================================================
   XS Custome Calkulator — v2 layout
   BEM: xs-custome-calkulator
   ============================================================ */

.xs-custome-calkulator,
.xs-custome-calkulator * {
  box-sizing: border-box;
}

/* ---- Base ---- */
.xs-custome-calkulator {
  --xs-calc-bg: #fff;
  --xs-calc-text: #1a1a1a;
  --xs-calc-muted: #888;
  --xs-calc-border: #ddd;
  --xs-calc-orange: #f5a800;
  --xs-calc-orange-dark: #e09500;
  --xs-calc-orange-grad: linear-gradient(90deg, #f5a800 0%, #f5c000 100%);
  --xs-calc-red: #e53935;
  --xs-calc-blue: #3355aa;
  --xs-calc-error: #c93626;
  --xs-calc-success: #268b52;
  width: 100%;
  max-width: 1100px;
  color: var(--xs-calc-text);
  font-family: inherit;
  margin-top: 50px;
}

/* ---- Card (two-column) ---- */
.xs-custome-calkulator__card {
  background: var(--xs-calc-bg);
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 28px 32px;
  display: flex;
  gap: 32px;
}

/* ---- Left column ---- */
.xs-custome-calkulator__left {
  flex: 1;
  min-width: 0;
}

/* ---- Right column ---- */
.xs-custome-calkulator__right {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- Hidden states ---- */
.xs-custome-calkulator__step[hidden],
.xs-custome-calkulator__panel[hidden],
.xs-custome-calkulator__success[hidden],
.xs-custome-calkulator__modal[hidden] {
  display: none !important;
}

.xs-custome-calkulator__step {
  animation: xsCalcStepIn .18s ease-out;
}

/* ---- Tabs ---- */
.xs-custome-calkulator__tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
}

.xs-custome-calkulator__tab {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  background: #b0b0b0;
  color: #fff;
}

.xs-custome-calkulator__tab.is-active {
  background: var(--xs-calc-orange);
}

/* ---- Title ---- */
.xs-custome-calkulator__title {
  font-size: 33px;
  font-weight: 400;
  color: var(--xs-calc-text);
  margin: 0 0 20px;
  line-height: 1.2;
}

.xs-custome-calkulator__title strong {
  font-weight: 700;
}

/* ---- Form columns ---- */
.xs-custome-calkulator__form-columns {
  display: flex;
  gap: 40px;
  margin-bottom: 24px;
}

.xs-custome-calkulator__form-col {
  flex: 1;
}

.xs-custome-calkulator__section-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--xs-calc-text);
  margin-bottom: 14px;
}

/* ---- Field groups ---- */
.xs-custome-calkulator__field-group {
  margin-bottom: 14px;
}

.xs-custome-calkulator__field-label {
  display: block;
  font-size: 14px;
  color: #444;
  margin-bottom: 5px;
}

/* ---- Selects ---- */
.xs-custome-calkulator__select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 9px 36px 9px 12px;
  border: 1.5px solid var(--xs-calc-border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color .2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.xs-custome-calkulator__select:focus {
  border-color: var(--xs-calc-orange);
}

/* ---- Checkboxes ---- */
.xs-custome-calkulator__checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
}

.xs-custome-calkulator__checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--xs-calc-muted);
  cursor: pointer;
}

.xs-custome-calkulator__checkbox-item.is-active {
  color: var(--xs-calc-text);
  font-weight: 600;
}

.xs-custome-calkulator__checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  accent-color: var(--xs-calc-orange);
  cursor: pointer;
  flex-shrink: 0;
}

/* ---- Slider ---- */
.xs-custome-calkulator__slider-section {
  margin-bottom: 24px;
}

.xs-custome-calkulator__slider-label {
  display: block;
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.xs-custome-calkulator__slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xs-custome-calkulator__slider-wrapper {
  flex: 1;
}

/* Range input */
.xs-custome-calkulator__range {
  --xs-calc-range-progress: 0%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    #888 0%,
    #888 var(--xs-calc-range-progress),
    #e0e0e0 var(--xs-calc-range-progress),
    #e0e0e0 100%
  );
  outline: none;
  cursor: pointer;
}

.xs-custome-calkulator__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.xs-custome-calkulator__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.xs-custome-calkulator__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
}

.xs-custome-calkulator__slider-value {
  min-width: 52px;
  padding: 6px 10px;
  border: 1.5px solid var(--xs-calc-border);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* ---- CTA Button ---- */
.xs-custome-calkulator__cta-btn {
  width: 100%;
  padding: 18px;
  background: var(--xs-calc-orange-grad);
  border: none;
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
  box-shadow: 0 3px 12px rgba(245, 168, 0, 0.35);
}

.xs-custome-calkulator__cta-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.xs-custome-calkulator__cta-btn:active {
  transform: translateY(0);
}

.xs-custome-calkulator__cta-btn:disabled,
.xs-custome-calkulator__cta-btn.is-loading {
  opacity: .72;
  cursor: wait;
  transform: none;
  filter: grayscale(.1);
}

/* ---- Photo block (right side) ---- */
.xs-custome-calkulator__photo-block {
  border-radius: 14px;
  overflow: hidden;
  flex: 1;
  min-height: 280px;
  position: relative;
}

.xs-custome-calkulator__photo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Bottom row (right side) ---- */
.xs-custome-calkulator__bottom-row {
  display: flex;
  gap: 12px;
}

/* Video card */
.xs-custome-calkulator__video-card {
  flex: 1;
  background: rgba(207, 207, 207, 1);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background .15s ease;
}

.xs-custome-calkulator__video-card:hover {
  background: #e8e8e8;
}

.xs-custome-calkulator__video-card-text {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

.xs-custome-calkulator__play-btn {
  border-radius: 50%;
  background: var(--xs-calc-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .15s ease;
}

.xs-custome-calkulator__play-btn:hover {
  background: #c62828;
}

.xs-custome-calkulator__play-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  margin-left: 2px;
}

/* Yandex card */
.xs-custome-calkulator__yandex-card {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 90px;
}

.xs-custome-calkulator__yandex-logo {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.xs-custome-calkulator__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 22px;
  font-weight: 700;
  color: var(--xs-calc-text);
}

.xs-custome-calkulator__star-icon {
  color: var(--xs-calc-orange);
  font-size: 20px;
}

/* ---- Upload (with-layout mode) ---- */
.xs-custome-calkulator__upload {
  margin-bottom: 0;
  text-align: center;
  border: 1.5px solid var(--xs-calc-border);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}

.xs-custome-calkulator__upload-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.xs-custome-calkulator__upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  margin: 8px 0 10px;
  border-radius: 999px;
  background: var(--xs-calc-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
  position: relative;
}

.xs-custome-calkulator__upload-btn:hover {
  filter: brightness(.93);
}

.xs-custome-calkulator__upload-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.xs-custome-calkulator__upload-note,
.xs-custome-calkulator__file-list {
  color: var(--xs-calc-muted);
  font-size: 13px;
  line-height: 1.45;
}

.xs-custome-calkulator__file-list {
  max-width: 520px;
  margin: 10px auto 0;
  text-align: left;
}

.xs-custome-calkulator__file-item {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xs-custome-calkulator__file-warning {
  color: var(--xs-calc-error);
  font-weight: 700;
}

/* ---- Contact step ---- */
.xs-custome-calkulator__contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.xs-custome-calkulator__contact-field {
  display: block;
}

.xs-custome-calkulator__input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--xs-calc-border);
  border-radius: 8px;
  background-color: #fff;
  color: var(--xs-calc-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color .2s ease;
}

.xs-custome-calkulator__input:focus {
  border-color: var(--xs-calc-orange);
}

.xs-custome-calkulator__back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.xs-custome-calkulator__back:hover {
  color: var(--xs-calc-orange);
}

.xs-custome-calkulator__agree {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--xs-calc-muted);
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.xs-custome-calkulator__agree input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--xs-calc-orange);
}

.xs-custome-calkulator__error {
  min-height: 20px;
  margin-bottom: 12px;
  color: var(--xs-calc-error);
  font-size: 13px;
  font-weight: 700;
}

.xs-custome-calkulator__success-title {
  margin-bottom: 10px;
  color: var(--xs-calc-success);
  font-size: 28px;
  font-weight: 900;
}

.xs-custome-calkulator__success p {
  margin: 0 0 20px;
  color: var(--xs-calc-text);
  line-height: 1.45;
}

/* ---- Video modal ---- */
.xs-custome-calkulator__modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xs-custome-calkulator__modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.xs-custome-calkulator__modal-content {
  position: relative;
  width: min(90vw, 800px);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.xs-custome-calkulator__modal-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.xs-custome-calkulator__modal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.xs-custome-calkulator__modal-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Animation ---- */
@keyframes xsCalcStepIn {
  from {
    opacity: .25;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}






.xs-custome-calkulator__title
{
  font-size: 34px;
}


.xs-custome-calkulator__tab 
{
  width: 183px;
  height: 41px;
  background: rgba(130, 130, 130, 1);

}


.xs-custome-calkulator__section-label
{
  font-family: 'MuseoBold';
}



.xs-custome-calkulator__field-label
{
  font-family: 'MuseoRegular';
  margin-bottom: 0;
}


.xs-custome-calkulator__slider-label
{
  font-family: 'MuseoRegular';
  margin-bottom: 0;
}


.xs-custome-calkulator__cta-btn
{
  box-shadow: 0px 0px 26px 0px rgba(255, 255, 255, 0.46) inset;
}


.xs-custome-calkulator__checkbox-list
{
  gap: 0;
}



.xs-custome-calkulator__slider-section {
    margin-bottom: 0;
}



.xs-custome-calkulator__photo-block > img
{
  min-height: 380px;
}


.xs-custome-calkulator__video-card-text
{
  font-size: 14px;
  font-family: 'MuseoRegular';
}









/* ==================== RESPONSIVE ==================== */

@media (max-width: 992px) {
  .xs-custome-calkulator__card {
    flex-direction: column;
    padding: 20px;
    border-radius: 14px;
  }

  .xs-custome-calkulator__right {
    width: 100%;
    flex-direction: row;
    gap: 12px;
  }

  .xs-custome-calkulator__photo-block {
    flex: 1;
    min-height: 200px;
  }

  .xs-custome-calkulator__bottom-row {
    flex-direction: column;
    width: 180px;
    flex-shrink: 0;
  }

  .xs-custome-calkulator__video-card 
  {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .xs-custome-calkulator__video-card-text
  {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .xs-custome-calkulator {
    margin-top: 30px;
  }

  .xs-custome-calkulator__card {
    padding: 16px;
    border-radius: 12px;
  }

  .xs-custome-calkulator__tabs {
    width: 100%;
  }

  .xs-custome-calkulator__tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 12px;
    font-size: 13px;
    text-align: center;
  }

  .xs-custome-calkulator__title {
    font-size: 22px;
  }

  .xs-custome-calkulator__form-columns {
    flex-direction: column;
    gap: 18px;
  }

  .xs-custome-calkulator__contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .xs-custome-calkulator__right {
    flex-direction: column;
  }

  .xs-custome-calkulator__bottom-row {
    width: 100%;
    flex-direction: row;
  }

  .xs-custome-calkulator__video-card-text {
    font-size: 12px;
  }

  .xs-custome-calkulator__range-labels {
    font-size: 10px;
  }

  .xs-custome-calkulator__photo-block > img
  {
    min-height: auto;
  }
}