/* ============================================
   Перенесено из inline <style> в index.html
   ============================================ */

/* Скрываем сообщения об успехе и ошибке по умолчанию */
.success-mess,
.error-mess {
  display: none;
}

/* --- Radio / Input value (html-embed) --- */
.lesson-radio__row > input {
  border-radius: 50%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #005fb7;
  transition: 0.2s all linear;
  position: relative;
}

input:checked {
  border: 1px solid #005fb7;
  background: #005fb7;
}

.input-value {
  border: 1px solid #005fb7;
  border-radius: 13.88888888888889rem;
  height: 100%;
  text-align: center;
}

@media screen and (max-width: 479px) {
  .input-value {
    border-radius: 13.88888888888889rem;
    border: 1px solid #005fb7;
    padding-top: 11.2rem;
    padding-bottom: 11.2rem;
    width: 100%;
    text-align: center;
  }
}

/* --- General (custom-css) --- */
html {
  font-size: 1vw;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  outline: none !important;
}

:focus {
  outline: 0 !important;
}

/* --- Webflow / JS States --- */
@media (min-width: 992px) {
  html.w-mod-js:not(.w-mod-ix)
    [data-w-id="7e1804d1-fbbf-0530-e972-6d02d873b265"] {
    opacity: 0;
  }

  html.w-mod-js:not(.w-mod-ix)
    [data-w-id="5826b134-2751-84c7-6be4-f34e2708a6f1"] {
    opacity: 0;
  }
}

@media (max-width: 479px) {
  html.w-mod-js:not(.w-mod-ix)
    [data-w-id="0cd03457-09b1-94cf-d49a-a31420781c98"] {
    opacity: 0;
  }

  html.w-mod-js:not(.w-mod-ix)
    [data-w-id="0cd03457-09b1-94cf-d49a-a31420781c81"] {
    display: none;
  }
}

@media only screen and (max-width: 991px) {
  a {
    cursor: default !important;
  }

  input {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    box-shadow: none;
    outline: none;
  }

  :focus {
    outline: 0 !important;
  }
}

::selection {
  background: #000;
  color: white;
}

::-moz-selection {
  background: #000;
}

/* --- Form --- */
input:focus::placeholder {
  color: transparent;
}

.textarea:focus::placeholder {
  color: transparent;
}

textarea {
  resize: none;
}

.field:invalid {
  border-color: #ff8181;
}

.field:placeholder-shown {
  border-color: #005fb7;
}

input:invalid {
  border-color: red;
}

input:placeholder-shown {
  border-color: #005fb7;
}

/* --- Custom CSS --- */
img {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
  mask-image: radial-gradient(circle, white 100%, black 100%);
}

@media screen and (min-width: 480px) {
  .people-list__item:nth-child(4n) {
    border-right: 1px solid #005fb7;
  }
}

.revenue::after,
.net-income::after,
.price-lesson::after,
.body-text.count-lesson::after {
  position: static;
  content: " ₽";
}

.lesson-radio__label,
.absolute-text {
  pointer-events: none;
}

input[type="radio"]:checked + .hack43-radio-label {
  color: white !important;
}

label.error {
  font-size: 1rem;
  position: absolute;
  left: 0%;
  top: auto;
  right: 0%;
  bottom: -2rem;
  color: #ff8181;
  font-weight: 500;
}

.field-label.large {
  top: -1.5rem;
  font-size: 1rem;
}

/* --- Intl-Tel-Input --- */
.iti {
  display: block;
  width: 100%;
  height: 100%;
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type="tel"],
.iti--allow-dropdown input[type="text"],
.iti--separate-dial-code input,
.iti--separate-dial-code input[type="tel"],
.iti--separate-dial-code input[type="text"] {
  padding-bottom: 1.3888888888888888rem !important;
}

.iti--separate-dial-code .iti__selected-flag {
  background: none !important;
}

.iti__selected-flag {
  padding-bottom: 1.3888888888888888rem !important;
}

@media screen and (max-width: 479px) {
  .iti__selected-flag {
    padding-bottom: 5.333333333333333rem !important;
  }

  .iti--allow-dropdown input,
  .iti--allow-dropdown input[type="tel"],
  .iti--allow-dropdown input[type="text"],
  .iti--separate-dial-code input,
  .iti--separate-dial-code input[type="tel"],
  .iti--separate-dial-code input[type="text"] {
    padding-bottom: 5.333333333333333rem !important;
  }
}

@media screen and (max-width: 470px) {
  .field-label.large {
    top: -3.5rem;
    font-size: 3rem;
  }

  label.error {
    font-size: 3rem;
    position: absolute;
    left: 0%;
    top: auto;
    right: 0%;
    bottom: -6rem;
    color: #ff8181;
    font-weight: 500;
  }
}

.popup,
.new-popup,
.privilege__popup,
.popup-update {
  display: none;
  opacity: 0;
  transition: all 0.8ms ease;
}

.popup.active,
.new-popup.active,
.privilege__popup.active,
.popup-update.active {
  display: block;
  opacity: 1;
}

.field-label {
  pointer-events: none;
}

.number-row:last-child {
  border-right: none;
}

img {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
  mask-image: radial-gradient(circle, white 100%, black 100%);
}

.input-value:focus + .absolute-text {
  opacity: 0;
}

.numbers-container::-webkit-scrollbar {
  display: none;
}

.numbers-container {
  overflow-y: hidden;
}

.disable,
.cursor-row {
  pointer-events: none;
}

/* --- Mapbox / Map Controls --- */
.newMap-popup {
  font-family: Tthoves, sans-serif;
  width: 100%;
  max-width: 171px !important;
  transform: translate(-50%, -50%) !important;
  left: 50%;
  top: 50%;
}

.newMap-popup .mapboxgl-popup-tip {
  opacity: 0;
}

.newMap-popup .mapboxgl-popup-content {
  border-radius: 20px;
  padding: 16px;
  width: 100%;
}

.newMap-popup .newMap-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newMap-popup .newMap-title {
  color: #255dca;
  font-size: 16px;
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: 0.2px;
}

.newMap-popup .newMap-desc {
  color: #255dca;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.newMap-popup .newMap-contacts {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
  gap: 2px;
}

.newMap-popup .newMap-contacts__title {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.1px;
  margin-bottom: 5px;
}

.newMap-popup .newMap-contacts a {
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.24px;
}

.newMap-popup .newMap-socials {
  display: flex;
  align-items: center;
  gap: 4px;
}

.newMap-popup .newMap-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin: 7px 0;
  background-image: url(images/vk-icon.svg);
  background-size: contain;
  background-position: center;
}

.newMap-popup .newMap-btn {
  background-color: #255dca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Tthoves, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  height: 24px;
  width: 100%;
  border-radius: 50px;
  border: 0;
  padding: 0;
  margin-top: 6px;
}

.newMap-popup .newMap-btn:hover,
.newMap-popup .newMap-btn:focus,
.newMap-popup .newMap-btn:active {
  background-color: #255dca;
  color: #ffffff;
  opacity: 0.8;
  outline: 0;
}

@media (min-width: 992px) {
  .newMap-popup {
    max-width: 324px !important;
  }

  .newMap-popup .mapboxgl-popup-content {
    border-radius: 32px;
    padding: 30px;
  }

  .newMap-popup .newMap-content {
    gap: 16px;
  }

  .newMap-popup .newMap-title {
    font-size: 24px;
    letter-spacing: 0.48px;
  }

  .newMap-popup .newMap-desc {
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: 0.32px;
  }

  .newMap-popup .newMap-btn {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.24px;
    height: 50px;
    margin-top: 20px;
  }

  .newMap-popup .newMap-contacts {
    gap: 4px;
  }

  .newMap-popup .newMap-contacts__title {
    font-size: 16px;
    letter-spacing: -0.16px;
    margin-bottom: 0;
  }

  .newMap-popup .newMap-contacts a {
    font-size: 16px;
    letter-spacing: 0.32px;
  }

  .newMap-popup .newMap-socials {
    gap: 15px;
    margin-top: 11px;
    margin-bottom: 24px;
  }

  .newMap-popup .newMap-socials a {
    width: 42px;
    height: 42px;
  }
}

.mapboxgl-canvas {
  border-radius: 1.3888888888888888rem;
}

.newmap-control {
  z-index: 20;
}

.newmap-btn {
  line-height: 1.2 !important;
}

.w--open .citiesdropdown-btn__icon {
  rotate: 180deg;
}

/* --- Calculator Range Input --- */
input[type="range"] {
  margin: auto;
  outline: none;
  padding: 0;
  width: 100%;
  height: 0.4861111111111111rem;
  background: linear-gradient(90deg, #005fb7 0%, #005fb7 75%);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  border-radius: 0.7vw;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  box-shadow: none;
  border: none;
  background: transparent;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  height: 2.0833333333333335rem;
  width: 2.0833333333333335rem;
  border: 0;
  background: #005fb7;
  border: 1px solid #005fb7;
  border-radius: 50%;
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.2);
  -webkit-appearance: none;
}

@media screen and (max-width: 480px) {
  input[type="range"]::-webkit-slider-thumb {
    height: 3.889rem !important;
    width: 3.889rem !important;
    border-radius: 50%;
  }

  input[type="range"] {
    height: 1.444rem !important;
    border-radius: 24.154589371980677rem;
  }
}

@media screen and (max-width: 480px) {
  #input-total-cost[type="range"]::-webkit-slider-thumb {
    height: 9.66183574879227rem;
    width: 9.66183574879227rem;
  }

  #input-total-cost[type="range"] {
    height: 2.4154589371980677rem;
  }
}

/* --- Privileges Slider --- */
.privileges__list::before,
.privileges__list::after {
  position: absolute;
  top: 0;
  content: "";
  width: 1px;
  height: 100%;
  z-index: 3;
}

.privileges__list::before {
  border-left: 1px solid #255dca;
  left: 2.777rem;
}

.privileges__list::after {
  border-right: 1px solid #255dca;
  right: 2.777rem;
}

.swiper.privileges__slider {
  z-index: 4;
}

.privileges__item .privileges__short {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.privileges__item.active {
  background: var(--royal-blue);
  color: #ffffff;
}

.privileges__item.active .privileges__more {
  border-color: #ffffff;
}

.privilege-highlight {
  display: none;
}

.privileges__item.privileges__item--highlight {
  color: white;
  background-color: var(--royal-blue);
}

.privileges__item.privileges__item--highlight .privileges__more {
  border-color: var(--white);
}

.privileges__item.privileges__item--highlight .privileges__more:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--royal-blue);
}

@media (max-width: 479px) {
  .privileges__list::before,
  .privileges__list::after {
    display: none;
  }

  .privileges__item .privileges__short {
    -webkit-line-clamp: 6;
    line-clamp: 6;
  }
}
