/* Styles moved from body inline <style> blocks for HTML validity */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.is-open {
  display: flex;
}

.modal__underlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__dialog {
  position: relative;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 24px);
  margin: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(0) !important;
}

.modal__frame {
  max-height: 100%;
  overflow: auto;
  opacity: 1;
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 577px) {
  .modal {
    align-items: flex-start;
  }

  .modal__dialog {
    margin: 12px auto;
    max-height: calc(100dvh - 24px);
  }
}

.form_default,
.form__group,
.form__item,
.form__element {
  max-width: 100%;
}

.input.form__field,
.field.form__field,
textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.text__raspisanie {
  color: white;
  font-size: 12px;
}

.color__white {
  color: white;
  padding: 5px 15px;
  margin-right: 5px;
  height: 50px;
  display: flex;
  align-items: center;
}

.button::after {
  height: 100%;
}

.color__white > span {
  font-size: 12px;
}

.intro__download {
  position: relative;
  z-index: 10;
  padding: 0;
  margin-left: 120px;
  margin-right: 120px;
  overflow: hidden;
  width: 100%;
  max-width: 16.5rem;
}

@media (max-width: 1400px) {
  .intro__download {
    margin-left: 64px;
    margin-right: 64px;
    padding: 0;
  }
}

@media (max-width: 992px) {
  .intro__download {
    margin-left: 40px;
    margin-right: 40px;
    padding: 0;
  }
}

@media (max-width: 577px) {
  .intro__download {
    margin-left: 16px;
    margin-right: 16px;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .intro__download {
    max-width: 100%;
  }
}

.intro__button-download {
  position: static !important;
  background-color: white;
  color: black;
  display: inline-flex;
  max-width: 16.5rem;
  padding: 0;
  width: 100% !important;
  display: flex;
  align-items: center;
}

.intro__button-download:hover {
  color: white;
}

.intro__button-download .button__text {
  text-align: center;
  z-index: 1;
  display: inline;
  height: fit-content;
}

@media (max-width: 1280px) {
  .color__white {
    display: none;
  }

  .text__raspisanie {
    display: none;
  }
}

@media (min-width: 1280px) {
  .header__list > li:last-child {
    display: none;
  }

  .header__list > li:nth-child(5) {
    display: none;
  }
}

.header__link {
  font-size: 14px;
  line-height: 120%;
}

.header__phone {
  font-size: 18px;
  line-height: 120%;
}

.floating-widget {
  position: fixed;
  right: 20px;
  bottom: 60px;
  z-index: 9999;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.fw-toggle,
.fw-action {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: #ff4f28;
  color: #fff;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  box-shadow: var(--fw-shadow);
  transition: all 0.3s;
}

.fw-toggle:hover,
.fw-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 79, 40, 0.4);
}

.fw-action {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
}

.floating-widget.is-open .fw-action {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-widget.is-open .fw-toggle {
  background: #fff;
  color: #ff4f28;
}

.fw-icon-close {
  display: none;
}

.floating-widget.is-open .fw-icon-message {
  display: none;
}

.floating-widget.is-open .fw-icon-close {
  display: inline;
}

.fw-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 577px) {
  .cookie-container p,
  .cookie-container .cookes__wrapper p,
  .cookie-container .cookes__wrapper {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }
}
