// Стилизация БЭМ-блока page.
// Общие стили тегов.
// Подключение шрифтов.
// Типографика.

// stylelint-disable plugin/selector-bem-pattern

// Сделаем viewport великим снова! (привет, IE10) http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
@at-root {
  @-ms-viewport {
    // stylelint-disable-line
    width: device-width;
  }
}

/* stylelint-disable */
// @font-face {
//   font-family: 'FONTNAME';
//   src: url('../fonts/FONTNAME.woff2') format('woff2'),
//        url('../fonts/FONTNAME.woff') format('woff');
//   font-weight: 400;
//   font-style: normal;
//   font-display: swap;
// }
/* stylelint-enable */

@import "../../scss/font-face.scss";

:root {
  --container-width: calc(320px - var(--container-horizontal-padding) * 2);
  --container-margin: auto;
  --container-horizontal-padding: 15px;

  @media (min-width: $screen-xxl) {
    --container-width: calc(1470px - var(--container-horizontal-padding) * 2);
  }

  @media (min-width: $screen-xl) {
    --container-width: calc(1390px - var(--container-horizontal-padding) * 2);
  }

  @media (min-width: $screen-lg) {
    --container-width: calc(766px - var(--container-horizontal-padding) * 2);
  }
}

.container {
  margin: var(--container-margin);
  padding: 0 var(--container-horizontal-padding);
  width: var(--container-width);
}

.page {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-text-size-adjust: 100%; // stylelint-disable-line
  min-width: 320px;
  min-height: 100%;

  &__inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  &__content {
    flex-grow: 1;
    background-color: #f7f8fb;
  }

  &__footer-wrapper {
    flex-shrink: 0;
  }
}

*:before,
*:after {
  box-sizing: inherit;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex; // Исправляем баг в IE для min-height and flexbox (flex-direction:column)
  flex-direction: column; // и прижимаем footer в IE 10-11
  min-height: 100%;
  margin: 0;
  word-break: break-word;
  font-family: $font-family;
  font-size: $font-size;
  line-height: $line-h;
  letter-spacing: 0.03em;
  text-align: left;
  color: $text-color;
  background-color: $body-bg;

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

[tabindex="-1"]:focus {
  outline: none !important; // stylelint-disable-line
}

// Коррекция для кликабельных элементов с указанной ролью в iOS
[role="button"] {
  cursor: pointer;
}

// Мы любим Сафари (на самом деле, нет).
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none; // stylelint-disable-line
}

// area,
// summary,
a,
button,
[role="button"],
input,
label,
select,
textarea {
  touch-action: manipulation; // Стилевая коррекция 300ms задержки (для поддерживающих браузеров)
  margin: 0; // Убираем margin в Firefox и Safari
}

button,
input {
  overflow: visible; // Покажем торчащее в Edge
  text-transform: none; // Уберём наследование text transform в Firefox
}

// Коррекция проблем стилизации для Safari
button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button; // stylelint-disable-line
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

// Коррекция для Mobile Safari (https://github.com/twbs/bootstrap/issues/11266)
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
  -webkit-appearance: listbox; // stylelint-disable-line
}

textarea {
  overflow: auto; // Удаление верт. скролла в IE.
  resize: vertical; // Правильное изменение размеров
}

svg {
  fill: currentColor;

  a &,
  button & {
    pointer-events: none; // Мы любим Edge, это браузер! (почти)
  }

  &:not(:root) {
    overflow: hidden; // Скрыть выступающее за границы в IE
  }
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: $link-color;
  background-color: transparent;
  transition: color 0.3s;

  &:hover,
  &:focus {
    color: $link-color--hover;
  }

  // &:visited {
  //   color: $link-color--hover;
  // }

  &[href^="tel:"] {
    text-decoration: inherit;
  }
}

hr {
  box-sizing: content-box; // Проблема Firefox
  height: 0; // Проблема Firefox
  margin-top: $typo-margin-vertical * 2;
  margin-bottom: $typo-margin-vertical * 2;
  border: 0;
  border-top: 1px solid $border-color;
  overflow: visible; // Проблема Edge и IE
}

.h3,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-family: $font-family-2;
  font-weight: 400;
  line-height: 110%;
  color: $color-d-blue;
}

h1 {
  font-size: 43px;

  @media (min-width: $screen-xl) {
    font-size: $font-size-h1;
  }
}
h2 {
  font-size: 33px;

  @media (min-width: $screen-xl) {
    font-size: $font-size-h2;
  }
}
.h3,
h3 {
  font-size: 27px;
  letter-spacing: 0.05em;

  @media (min-width: $screen-xl) {
    font-size: $font-size-h3;
  }
}
h4 {
  font-size: $font-size-h4;
}
h5 {
  font-size: $font-size-h5;
}
h6 {
  font-size: $font-size-h6;
}

h1,
h2 {
  letter-spacing: 0.02em;
}

p,
ul,
ol,
dl,
table,
blockquote,
pre,
address,
figure {
  margin-top: 0;
  margin-bottom: $typo-margin-vertical;
}

p {
  // http://clagnut.com/blog/2395
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  hyphenate-limit-lines: 2;
  hyphenate-limit-last: always;
  hyphenate-limit-zone: 8%;
}

address {
  font-style: normal;
}

ul,
ol {
  margin-bottom: $typo-margin-vertical;
  padding-left: 1.5em;

  ul,
  ol {
    margin-top: 0;
    margin-bottom: 0;
  }
}

li {
  line-height: inherit;
}

// dt {
//   font-weight: 700;
// }

// dd {
//   margin-left: 0;

//   @media (min-width: $screen-sm) {
//     margin-left: 1.5rem;
//   }

//   & + dt {
//     margin-top: ($line-height / 2);
//   }
// }

// .small,
small {
  font-size: $font-size-sm;
}

sub,
sup {
  font-size: $font-size-sm;
}

// .mark,
// mark {
//   background: rgba($color-warning, 0.3);
//   padding: 0.1em 0.3em;
// }

b,
strong {
  font-weight: bolder;
}

// abbr[title] {
//   text-decoration: underline dotted;
// }

blockquote {
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

// samp,
code,
kbd,
pre {
  font-family: $font-family--monospace;
}

code {
  padding: 0.06em 0.3em;
  color: $text-color;
  background-color: rgba(#000, 0.08);
  border-radius: $border-radius;
}

kbd {
  padding: 0.06em 0.3em;
  color: $text-color;
  background-color: $gray-lightest;
  border-radius: $border-radius;

  kbd {
    padding: 0;
  }
}

pre {
  display: block;
  width: 100%;
  margin-bottom: $typo-margin-vertical;
  overflow-x: auto;
  tab-size: 2;
  background-color: rgba(#000, 0.08);

  code {
    background: transparent;
  }
}

/* ----- .text-flow ----- */

.text-flow {
  $block-name: &;

  font-size: 12px;
  line-height: 150%;
  letter-spacing: 0.05em;

  @media (min-width: $screen-xxl) {
  }

  @media (min-width: $screen-xl) {
    font-size: 14px;
  }

  @media (min-width: $screen-lg) {
  }

  *:not(li):not(a):not(tr):not(th):not(td) {
    margin-top: 20px;
    margin-bottom: 20px;

    @media (min-width: $screen-xxl) {
    }

    @media (min-width: $screen-xl) {
      margin-top: 32px;
      margin-bottom: 32px;
    }

    @media (min-width: $screen-lg) {
      margin-top: 24px;
      margin-bottom: 24px;
    }
  }

  > :first-child {
    margin-top: 0 !important;
  }

  > :last-child {
    margin-bottom: 0 !important;
  }

  > br {
    display: none;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 40px 0 24px !important;

    @media (min-width: $screen-xl) {
      margin: 48px 0 32px !important;
    }

    @media (min-width: $screen-lg) {
      // margin: 30px 0 20px !important;
    }

    & + * {
      margin-top: 0 !important;
    }
  }

  h4 {
    font-size: 20px;
  }

  h5 {
    font-size: 18px;
  }

  h6 {
    font-size: 16px;
  }

  h6 {
    margin-bottom: 15px !important;

    & + ul,
    & + ol {
      margin-top: 0 !important;
    }
  }

  img {
    display: block;
  }

  b {
    font-weight: 500;
  }

  ul,
  ol {
    padding-left: 0;
    list-style: none;

    li {
      position: relative;
      padding-left: 26px;

      &:before {
        content: "";
        position: absolute;
        left: 0;
        top: 1px;
        width: 16px;
        height: 16px;
        background: url("../img/done.svg") center/contain no-repeat;

        @media (min-width: $screen-xl) {
          top: 2px;
        }
      }
    }

    li + li {
      margin-top: 7.5px;

      @media (min-width: $screen-xl) {
        margin-top: 15px;
      }
    }
  }

  ol {
    counter-reset: ol-number 0;

    li {
      padding-left: 29px;

      &::before {
        counter-increment: ol-number;
        content: counter(ol-number);
        display: flex;
        justify-content: center;
        align-items: center;
        top: -3px;
        border: 2px solid $color-cyan;
        width: 19px;
        height: 19px;
        border-radius: 4px;
        background: inherit;
        font-weight: 500;
        color: $color-cyan;

        @media (min-width: $screen-xl) {
          top: -1px;
        }
      }
    }
  }
}

/* ----- .feedback ----- */

.feedback {
  $block-name: &;

  &__list {
    display: flex;
    flex-direction: column;
    gap: 2px 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  &__list-item {
  }

  &__content {
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    color: $link-color;
    @include field-focus;
    border-radius: 4px;
    transition: color $transition-time, outline-color $transition-time;

    @media (min-width: $screen-xl) {
      font-size: 18px;
    }

    &:not(span):focus {
      outline-color: $color-cyan;
      color: $color-d-blue;
    }

    &:not(span):hover {
      color: $color-cyan;
    }
  }

  &--type-1 {
    line-height: 100%;

    #{$block-name}__list {
      flex-direction: row;
      gap: 5px 14px;
      flex-wrap: wrap;

      @media (min-width: $screen-xl) {
        gap: 48px;
      }

      @media (min-width: $screen-lg) {
        gap: 41px;
      }
    }

    #{$block-name}__content {
      font-size: 11px;

      @media (min-width: $screen-xl) {
        font-size: 13px;
      }

      @media (max-width: ($screen-xl - 1)) {
        line-height: inherit;
      }
    }
  }

  &--type-2 {
    line-height: 100%;

    #{$block-name}__list-item + #{$block-name}__list-item {
      margin-top: 8px;

      @media (min-width: $screen-xl) {
        margin-top: 14px;
      }
    }

    #{$block-name}__content {
      font-size: 12px;

      @media (min-width: $screen-xl) {
        font-size: 14px;
      }
    }
  }
}

/* ----- .ico ----- */

.ico {
  $block-name: &;

  padding: 2px 0 2px 22px;
  background: 0 center no-repeat;

  @media (min-width: $screen-lg) {
    padding-left: 24px;
  }

  &--address {
    background-image: url(../img/address.svg);

    @media (min-width: $screen-xl) {
      background-position: 0 1px;
    }
  }

  &--mail {
    background-image: url(../img/email.svg);
  }

  &--phone {
    background-image: url(../img/phone.svg);
  }

  &--address-w {
    background-image: url(../img/address-w.svg);
    background-position: 0 1px;
  }

  &--mail-w {
    background-image: url(../img/email-w.svg);
  }

  &--phone-w {
    background-image: url(../img/phone-w.svg);
  }

  &--download {
    background-image: url(../img/download.svg);
  }
}

/* ----- .search ----- */

.search {
  $block-name: &;

  &__inner {
  }

  &__form {
    display: flex;
    align-items: center;
    position: relative;

    &:focus-within {
      #{$block-name}__form-btn {
        svg {
          fill: $color-cyan;
        }
      }
    }

    .field-text {
      margin-bottom: 0;
      width: 440px;
    }

    .field-text__input {
      padding-right: 48px;
    }
  }

  &__form-field {
  }

  &__form-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    width: 48px;
    height: 100%;
    border: none;
    background-color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    @include field-focus;
    outline-offset: -8px;
    border-radius: 14px;
    transition: outline-color $transition-time;

    &:focus {
      outline-color: $color-cyan;
    }

    &:hover {
      svg {
        fill: $color-cyan;
      }
    }

    svg {
      color: $color-d-blue;
      transition: fill $transition-time;
    }
  }

  &--black {
    .field-text__input {
      border-color: #505174;
      background-color: #434465;
      color: #fff;

      &::placeholder {
        color: #fff;
      }
    }

    .search__form-btn {
      svg {
        fill: #fff;
      }
    }
  }

  &--type-1 {
    #{$block-name}__form-btn {
      top: inherit;
      bottom: 0;
      transform: none;
      height: 49px;
    }
  }

  &--type-2 {
    #{$block-name}__form {
      .field-text {
        width: 255px;

        @media (min-width: $screen-xl) {
          width: 790px;
        }

        @media (min-width: $screen-lg) {
          width: 700px;
        }
      }
    }
  }
}

/* ----- .link ----- */

.link {
  $block-name: &;

  padding: 0;
  border: none;
  border-bottom: 1px dashed $color-d-blue;
  background-color: transparent;
  font-weight: 300;
  font-size: 11px;
  color: $color-d-blue;
  cursor: pointer;
  @include field-focus;
  border-radius: 0;
  text-decoration: none;
  transition: color $transition-time, border-color $transition-time,
    outline-color $transition-time, border-radius $transition-time;

  @media (min-width: $screen-xl) {
    font-size: 13px;
  }

  &:focus {
    border-radius: 4px;
    outline-color: $color-cyan;
    color: $color-d-blue;
  }

  &:hover {
    color: $color-cyan;
    border-color: $color-cyan;
  }

  &:active {
    color: #2ea296;
    border-color: #2ea296;
  }

  &--simple {
    border: none;
  }
}

/* ----- .swiper  ----- */

.swiper-fade {
  overflow: visible !important;
}

.swiper-fade .swiper-slide {
  opacity: 0 !important;
}

.swiper-fade .swiper-slide.swiper-slide-active {
  opacity: 1 !important;
}

.def-arr {
  .swiper-button-prev,
  .swiper-button-next {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: $color-d-blue;
    font-size: 0;
    line-height: 0;
    color: transparent;
    transition: background-color $transition-time,
      outline-color $transition-time;

    svg {
      fill: #fff;
    }

    &:not(.swiper-button-disabled) {
      @include field-focus;
      cursor: pointer;

      &:focus {
        outline-color: $color-cyan;
      }

      &:hover {
        background-color: $color-cyan;
      }
    }
  }
}

/* ----- .top-slider  ----- */

.top-slider {
  $block-name: &;

  display: none;

  @media (min-width: $screen-xl) {
    background: linear-gradient(90deg, #f7f8fb 77%, #d6dae5 77%);
  }

  @media (min-width: $screen-lg) {
    display: block;
    padding: 32px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f8fb 77%, #d6dae5 77%);
  }

  .swiper-slide {
    display: flex;

    @media (max-width: ($screen-xl - 1)) {
      flex-direction: column;
      height: auto;
    }
  }

  .swiper-button-prev,
  .swiper-button-next {
    @media (max-width: ($screen-xl - 1)) {
      top: inherit;
      bottom: calc(466px / 2 - 56px / 2);
      transform: none;
    }
  }

  .swiper-button-prev {
    @media (min-width: $screen-xl) {
      left: 630px;
    }

    @media (min-width: $screen-lg) {
      left: 0;
    }
  }

  .swiper-button-next {
    @media (min-width: 1830px) {
      right: -176px;
    }

    @media (min-width: $screen-lg) {
      right: 0;
    }
  }

  &__inner {
    @media (min-width: $screen-xl) {
      position: relative;

      &::before,
      &::after {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 50vw;
      }

      &::before {
        left: calc((50vw + 67px) * -1);
        height: 100%;
        background-color: #d6dae6;
      }

      &::after {
        left: calc((50vw + 67px + 36px) * -1);
        height: calc(100% + 32px * 2);
        background-color: #363755;
      }
    }
  }

  &__slide-left {
    color: $color-d-blue;

    @media (min-width: $screen-xl) {
      box-sizing: border-box;
      margin-bottom: 0;
      padding-top: 62px;
      padding-right: 84px;
      width: 575px;
    }

    @media (min-width: $screen-lg) {
      margin-bottom: 24px;
    }

    .btn {
      @media (min-width: $screen-xl) {
        margin-top: 40px;
      }

      @media (min-width: $screen-lg) {
        margin-top: 32px;
      }
    }
  }

  &__slide-title {
    @media (min-width: $screen-xl) {
      margin-bottom: 40px;
      font-size: 44px;
    }

    @media (min-width: $screen-lg) {
      margin-bottom: 32px;
      font: 400 37px/110% $font-family-2;
      letter-spacing: 0.02em;
    }
  }

  &__slide-text {
    @media (min-width: $screen-xl) {
      font-size: 16px;
    }

    @media (min-width: $screen-lg) {
      font: 400 13px/150% $font-family;
    }

    > * {
      @media (min-width: $screen-xl) {
        margin-top: 25px;
        margin-bottom: 25px;
      }

      @media (min-width: $screen-lg) {
        margin: 15px 0;
      }
    }

    ul {
      @media (min-width: $screen-lg) {
        margin-bottom: 0;
        padding-left: 0;
        list-style: none;
      }

      li {
        @media (min-width: $screen-xl) {
          padding-left: 32px;
        }

        @media (min-width: $screen-lg) {
          position: relative;
          padding-left: 24px;
          line-height: 120%;
        }

        &::before {
          @media (min-width: $screen-xl) {
            top: 8px;
          }

          @media (min-width: $screen-lg) {
            content: "";
            position: absolute;
            left: 0;
            top: 7px;
            width: 16px;
            height: 2px;
            background-color: $color-cyan;
          }
        }
      }

      li + li {
        @media (min-width: $screen-xl) {
          margin-top: 24px;
        }

        @media (min-width: $screen-lg) {
          margin-top: 15px;
        }
      }
    }

    p {
      margin-bottom: 0;
    }
  }

  &__slide-right {
    @media (min-width: $screen-xl) {
      margin-top: 0;
      width: calc(100% - 575px);
      height: 520px;
    }

    @media (min-width: $screen-lg) {
      position: relative;
      margin-top: auto;
      height: 466px;
    }
  }

  &__slide-photo {
    @media (min-width: $screen-xl) {
      left: 0;
      transform: none;
      width: 57.5vw;
    }

    @media (min-width: $screen-lg) {
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
      width: 100vw;
      height: 100%;
    }

    img {
      @media (min-width: $screen-lg) {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
      }
    }
  }
}

/* ----- .def-block ----- */

.def-block {
  $block-name: &;

  padding: 72px 0;

  @media (min-width: $screen-xl) {
    padding: 80px 0;
  }

  &__inner {
    position: relative;

    @media (min-width: 1900px) {
      &[data-title] {
        &::before {
          content: "/" attr(data-title);
          position: absolute;
          left: -177px;
          top: 0;
          writing-mode: tb-rl;
          transform: scale(-1);
          font: 400 64px/100% $font-family-2;
          letter-spacing: 0.05em;
          text-transform: uppercase;
          color: #d6dae5;
          white-space: nowrap;
        }

        &.title-right {
          &::before {
            left: inherit;
            right: -177px;
          }
        }
      }
    }
  }

  &__first {
  }

  &__title,
  &__subtitle {
    letter-spacing: 0.02em;
  }

  &__title {
    margin-bottom: 8px;
    font: 400 17px/100% $font-family-2;
    color: #a7a8c7;

    @media (min-width: $screen-xl) {
      margin-bottom: 17px;
      font-size: 20px;
    }
  }

  &__subtitle {
    margin-bottom: 0;
    font: 400 33px/110% $font-family-2;
    color: $color-d-blue;

    @media (min-width: $screen-xl) {
      font-size: 40px;
    }

    br {
      @media (max-width: ($screen-xl - 1)) {
        display: none;
      }
    }
  }

  &__second,
  &__third {
    margin-top: 40px;

    @media (min-width: $screen-xl) {
      margin-top: 48px;
    }

    > :first-child {
      margin-top: 0;
    }

    > :last-child {
      margin-bottom: 0;
    }
  }

  &__second {
  }

  &__third {
  }

  &--type-1 {
    #{$block-name}__inner {
      @media (min-width: $screen-xl) {
        display: flex;
      }
    }

    #{$block-name}__first {
      @media (min-width: $screen-xl) {
        box-sizing: border-box;
        padding-right: 40px;
        width: 494px;
      }
    }

    #{$block-name}__second {
      @media (min-width: $screen-xl) {
        margin-top: 0;
        padding-top: 48px;
        width: calc(100% - 494px);
      }
    }
  }

  &--type-2 {
    padding-top: 40px;
    padding-bottom: 72px;

    @media (min-width: $screen-xl) {
      padding-top: 56px;
      padding-bottom: 80px;
    }

    @media (min-width: $screen-lg) {
      padding-top: 40px;
      padding-bottom: 72px;
    }

    #{$block-name}__second,
    #{$block-name}__third {
      margin-top: 40px;

      @media (min-width: $screen-xl) {
        margin-top: 56px;
      }

      @media (min-width: $screen-lg) {
        margin-top: 48px;
      }
    }
  }
}

/* ----- .dec-border ----- */

.dec-border {
  $block-name: &;

  display: none;

  @media (min-width: 1610px) {
    display: block;
    position: absolute;
    top: -80px;
    width: 2px;
    height: calc(100% + 80px * 2);
    background-color: #d6dae6;

    &--left {
      left: -69px;
    }

    &--right {
      right: -69px;
    }
  }
}

/* ----- .def-list ----- */

.def-list {
  $block-name: &;

  margin: 32px 0;

  @media (min-width: $screen-xl) {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  &__list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;

    @media (min-width: $screen-xl) {
      gap: 40px;
    }
  }

  &__l-item {
    @media (min-width: $screen-xl) {
      width: calc(100% / 4 - (40px * 3 / 4));
    }

    @media (min-width: $screen-lg) {
      width: calc(100% / 4 - (20px * 3 / 4));
    }
  }

  &__l-item-first {
  }

  &__l-item-ico {
    margin-right: 8px;
  }

  &__l-item-title {
    font: 400 33px/130% $font-family;
    color: $color-cyan;

    @media (min-width: $screen-xl) {
      font-size: 40px;
    }
  }

  &__l-item-second {
    margin-top: 9px;
    font-size: 12px;
    line-height: 150%;

    @media (min-width: $screen-xl) {
      font-size: 14px;
    }

    p {
      margin: 0;
    }

    p + p {
      margin-top: 10px;
    }
  }

  &__l-item-photo {
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid #eef0f7;
    width: 140px;
    height: 140px;
    border-radius: 4px;
    background-color: #fff;

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }
  }

  &--type-1 {
    #{$block-name}__list {
      gap: 32px 10px;

      @media (min-width: $screen-xxl) {
        gap: 40px 120px;
      }

      @media (min-width: $screen-xl) {
        gap: 40px 105px;
      }
    }

    #{$block-name}__l-item {
      width: calc(100% / 2 - (10px * 1 / 2));

      @media (min-width: $screen-xxl) {
        width: calc(100% / 6 - (120px * 5 / 6));
      }

      @media (min-width: $screen-xl) {
        width: calc(100% / 6 - (105px * 5 / 6));
      }

      @media (min-width: $screen-lg) {
        width: calc(100% / 5 - (10px * 4 / 5));
      }
    }
  }
}

/* ----- .news-list ----- */

.news-list {
  $block-name: &;

  &__content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 15px;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;

    @media (min-width: $screen-xl) {
      gap: 40px;
    }
  }

  &__c-item {
    @media (min-width: $screen-xl) {
      width: calc(100% / 4 - (40px * 3 / 4));
    }

    @media (min-width: $screen-lg) {
      width: calc(100% / 2 - (15px * 1 / 2));
    }
  }

  &__c-item-link {
    display: flex;
    flex-direction: column;
    letter-spacing: 0.05em;
    text-decoration: none;
    @include field-focus;
    outline-offset: 8px;
    border-radius: 4px;
    transition: outline-color $transition-time;

    &:focus {
      outline-color: $color-cyan;
      color: $color-d-grey;
    }

    &:hover {
      color: $color-d-grey;

      #{$block-name}__c-item-title {
        color: $color-cyan;
      }
    }

    &:active {
      #{$block-name}__c-item-title {
        color: #2ea296;
      }
    }
  }

  &__c-item-title {
    order: 3;
    margin-bottom: 8px;
    font: 500 15px/110% $font-family;
    color: $color-d-blue;
    transition: color $transition-time;

    @media (min-width: $screen-xl) {
      margin-bottom: 16px;
      font-size: 18px;
    }
  }

  &__c-item-text {
    order: 4;
    font: 400 12px/150% $font-family;
    margin-bottom: 8px;

    @media (min-width: $screen-xl) {
      margin-bottom: 16px;
      font-size: 14px;
    }
  }

  &__c-item-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 5px 10px;
    order: 2;
    margin-bottom: 8px;

    @media (min-width: $screen-xl) {
      margin-bottom: 16px;
    }
  }

  &__c-item-date {
    font: 400 11px/130% $font-family;

    @media (min-width: $screen-xl) {
      font-size: 13px;
    }
  }

  &__c-item-tag {
    padding: 4px 8px;
    border: 1px solid #eef0f7;
    border-radius: 4px;
    background-color: #f7f8fb;
    font: 400 10px/130% $font-family;

    @media (min-width: $screen-xl) {
      font-size: 12px;
    }
  }

  &__c-item-photo {
    order: 1;
    margin-bottom: 16px;
    aspect-ratio: 16/9;
    overflow: hidden;

    @media (min-width: $screen-xl) {
      margin-bottom: 24px;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
  }

  &__c-item-more {
    order: 5;
  }

  &--type-1 {
    #{$block-name}__content {
      gap: 24px;

      @media (min-width: $screen-xxl) {
      }

      @media (min-width: $screen-xl) {
        gap: 24px;
      }

      @media (min-width: $screen-lg) {
      }
    }

    #{$block-name}__c-item {
      box-sizing: border-box;
      padding: 16px;
      border: 1px solid #eef0f7;
      border-radius: 4px;
      background-color: #fff;

      @media (min-width: $screen-xxl) {
      }

      @media (min-width: $screen-xl) {
        width: calc(100% / 4 - (24px * 3 / 4));
      }

      @media (min-width: $screen-lg) {
        width: calc(100% / 2 - (24px * 1 / 2));
      }
    }

    #{$block-name}__c-item-title,
    #{$block-name}__c-item-text,
    #{$block-name}__c-item-block,
    #{$block-name}__c-item-more {
      padding-left: 8px;
      padding-right: 8px;
    }
  }
}

/* ----- .white-block ----- */

.white-block {
  $block-name: &;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px;
  border: 1px solid #eef0f7;
  border-radius: 4px;
  background-color: #fff;

  @media (min-width: $screen-xl) {
    padding: 24px 32px;
  }

  .field-text {
    @media (max-width: ($screen-lg - 1)) {
      width: 160px;
    }
  }

  .field-text__input {
    border-color: #eef0f7;

    &:focus {
      border-color: #a7a8c7;
    }
  }

  .field-select {
    margin-bottom: 0;
  }

  &__first {
  }

  &__second {
  }

  &--form {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 15px;
    max-width: 700px;

    @media (min-width: $screen-xxl) {
    }

    @media (min-width: $screen-xl) {
      padding: 48px;
    }

    @media (min-width: $screen-lg) {
      padding: 40px;
    }

    .field-text {
      @media (max-width: ($screen-lg - 1)) {
        width: 100%;
      }
    }

    .contacts__form-first {
      margin-bottom: 40px;
      text-align: center;

      @media (min-width: $screen-xxl) {
      }

      @media (min-width: $screen-xl) {
        margin-bottom: 48px;
      }

      @media (min-width: $screen-lg) {
      }
    }

    .contacts__form-second {
      @media (min-width: $screen-lg) {
        margin-left: auto;
        margin-right: auto;
        max-width: 280px;
      }
    }
  }
}

.arr-link {
  display: inline-flex;
  align-items: center;
  font: 300 12px/130% $font-family;

  @media (min-width: $screen-xl) {
    font-size: 14px;
  }

  svg {
    margin-right: 8px;
  }
}

/* ----- .docs ----- */

.docs {
  $block-name: &;

  display: flex;
  flex-direction: column;
  gap: 24px 0;
  padding-left: 0;
  list-style: none;

  &__item {
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #eef0f7;
    width: 100%;
    background-color: #fff;

    @media (min-width: $screen-xl) {
      padding: 24px 32px;
    }
  }

  &__i-first {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d6dae6;

    @media (min-width: $screen-xl) {
      margin-bottom: 16px;
      padding-bottom: 16px;
    }
  }

  &__i-name a,
  &__i-download {
    @include field-focus;
    border-radius: 4px;
    transition: color $transition-time, outline-color $transition-time;

    &:focus {
      outline-color: $color-cyan;
      color: $color-d-blue;
    }
  }

  &__i-name {
    a {
      display: inline-block;
      font: 400 12px/150% $font-family;
      letter-spacing: 0.05em;
      color: $color-d-blue;
      text-decoration: none;

      @media (min-width: $screen-xl) {
        font-size: 14px;
      }

      &:hover {
        color: $color-cyan;
      }
    }
  }

  &__i-second {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    @media (min-width: $screen-lg) {
      gap: 15px 48px;
    }
  }

  &__i-second-first {
  }

  &__i-info {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    padding-left: 0;
    list-style: none;
  }

  &__i-info-item {
    font-size: 11px;
    line-height: 155%;
    color: #a7a8c7;
    letter-spacing: 0.05em;

    @media (min-width: $screen-xl) {
      font-size: 13px;
    }
  }

  &__i-info-name {
    margin-right: 2px;
  }

  &__i-info-value {
  }

  &__i-second-second {
    line-height: 0;
  }

  &__i-download {
    font: 400 12px/150% $font-family;
    color: $color-d-blue;
    text-decoration: none;

    @media (min-width: $screen-xl) {
      font-size: 14px;
    }

    &:hover {
      color: $color-cyan;
    }
  }

  &--type-1 {
    gap: 0;

    #{$block-name}__item {
      padding: 0 !important;
      border: none;
      background-color: inherit;

      @media (min-width: $screen-xxl) {
      }

      @media (min-width: $screen-xl) {
      }

      @media (min-width: $screen-lg) {
      }
    }

    #{$block-name}__item + #{$block-name}__item {
      margin-top: 16px;
      padding-top: 16px !important;
      border-top: 1px solid #d6dae6;

      @media (min-width: $screen-xxl) {
      }

      @media (min-width: $screen-xl) {
        margin-top: 24px;
        padding-top: 24px !important;
      }

      @media (min-width: $screen-lg) {
      }
    }

    #{$block-name}__i-first {
      padding-bottom: 0 !important;
      border-bottom: none !important;
    }

    #{$block-name}__i-name {
      margin-bottom: 8px;
      font-size: 14px;
      font-family: $font-family;
      letter-spacing: 0.05em;
      color: $color-d-blue;

      @media (min-width: $screen-xxl) {
      }

      @media (min-width: $screen-xl) {
        margin-bottom: 16px;
        font-size: 16px;
      }

      @media (min-width: $screen-lg) {
      }
    }

    #{$block-name}__i-desc {
      margin-bottom: 0;
      font-size: 12px;
      line-height: 150%;
      letter-spacing: 0.05em;

      @media (min-width: $screen-xxl) {
      }

      @media (min-width: $screen-xl) {
        font-size: 14px;
      }

      @media (min-width: $screen-lg) {
      }

      b {
        font-weight: 500;
        color: $color-d-blue;
      }
    }

    #{$block-name}__i-info {
      gap: 5px 15px;

      @media (min-width: $screen-xxl) {
      }

      @media (min-width: $screen-xl) {
        gap: 5px 40px;
      }

      @media (min-width: $screen-lg) {
      }
    }

    #{$block-name}__i-info-item {
      display: flex;
      align-items: center;

      .breadcrumbs {
        margin-bottom: 0;
        line-height: 155%;

        @media (min-width: $screen-xxl) {
        }

        @media (min-width: $screen-xl) {
          font-size: 13px;
        }

        .breadcrumbs__item {
          margin-right: 0.3em;
        }

        .breadcrumbs__item:not(:last-child):after {
          margin-left: 0.3em;
        }
      }
    }

    #{$block-name}__i-info-name {
      margin-right: 6px;
    }
  }
}

/* ----- .search ----- */

.search {
  $block-name: &;

  &__title {
    margin-bottom: 32px;

    @media (min-width: $screen-xl) {
      margin-bottom: 40px;
    }
  }
}

.main-title {
  color: $color-d-blue;
  font: 400 43px/110% $font-family-2;

  @media (min-width: $screen-xl) {
    font-size: 52px;
  }
}

/* ----- .event-detailname ----- */

.event-detail {
  $block-name: &;

  &__first {
    @media (min-width: $screen-xl) {
      display: flex;
    }
  }

  &__f-first {
    @media (min-width: $screen-xl) {
      box-sizing: border-box;
      padding-top: 66px;
      padding-right: 40px;
      width: 60%;
    }
  }

  &__category {
    margin-bottom: 16px;
    font: 500 15px/110% $font-family;
    color: $color-d-blue;

    @media (min-width: $screen-xl) {
      margin-bottom: 24px;
      font-size: 18px;
    }
  }

  &__title {
    font-size: 33px;
    color: $color-d-blue;

    @media (min-width: $screen-xl) {
      font-size: 40px;
    }
  }

  &__date {
    margin-top: 32px;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0.05em;

    @media (min-width: $screen-xl) {
      margin-top: 40px;
      font-size: 14px;
    }
  }

  &__f-second {
    @media (min-width: $screen-xl) {
      width: 40%;
    }

    @media (max-width: ($screen-xl - 1)) {
      margin-top: 32px;
    }
  }

  &__photo {
    aspect-ratio: 16/9;
    line-height: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
  }

  &__second,
  &__third {
    margin-top: 32px;

    @media (min-width: $screen-xl) {
      margin-top: 40px;
    }
  }

  &__second {
    max-width: 825px;
  }

  &__third {
  }
}

/* ----- .contacts ----- */

.contacts {
  $block-name: &;

  border: 1px solid #eef0f7;
  border-radius: 4px;
  overflow: hidden;

  @media (min-width: $screen-xl) {
    display: flex;
  }

  &__first {
    box-sizing: border-box;
    padding: 40px 15px;
    background-color: #fff;

    @media (min-width: $screen-xxl) {
      padding-left: 83px;
      padding-right: 124px;
    }

    @media (min-width: $screen-xl) {
      padding: 48px 116px 48px 77px;
      border-right: 1px solid #eef0f7;
      width: 66%;
    }

    @media (min-width: $screen-lg) {
      display: flex;
      padding-left: 55px;
      padding-right: 55px;
    }
  }

  &__f-first {
    @media (min-width: $screen-xl) {
      padding-right: 50px;
    }

    @media (min-width: $screen-lg) {
      box-sizing: border-box;
      padding-right: 30px;
      width: 50%;
    }
  }

  &__list,
  &__l-item-content {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
  }

  &__list {
  }

  &__l-item {
    & + & {
      margin-top: 40px;

      @media (min-width: $screen-xl) {
        margin-top: 48px;
      }
    }
  }

  &__l-item-title {
    margin-bottom: 16px;

    @media (min-width: $screen-xl) {
      margin-bottom: 24px;
    }
  }

  &__l-item-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
  }

  &__l-item-c-item {
    width: 100%;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0.05em;

    span,
    a {
      color: $color-d-grey;
    }

    span {
    }

    a {
      text-decoration: none;
      @include field-focus;
      border-radius: 4px;
      transition: color $transition-time, outline-color $transition-time;

      &:focus {
        outline-color: $color-cyan;
      }

      &:hover {
        color: $color-cyan;
      }

      &:active {
        color: #2ea296;
      }
    }
  }

  &__f-second {
    @media (min-width: $screen-xxl) {
    }

    @media (min-width: $screen-xl) {
    }

    @media (min-width: $screen-lg) {
      width: 50%;
    }

    @media (max-width: ($screen-lg - 1)) {
      margin-top: 40px;
    }
  }

  &__form {
  }

  &__form-first {
    margin-bottom: 24px;
  }

  &__form-tilte {
  }

  &__form-second {
    .btn {
      @media (max-width: ($screen-xl - 1)) {
        width: 100%;
      }
    }
  }

  &__second {
    width: 100%;
    height: 200px;

    @media (min-width: $screen-xxl) {
    }

    @media (min-width: $screen-xl) {
      width: 34%;
      height: auto;
    }

    @media (min-width: $screen-lg) {
      height: 500px;
    }
  }

  &__map {
    width: 100%;
    height: 100%;
  }
}

/* ----- .block-404 ----- */

.block-404 {
  $block-name: &;

  text-align: center;

  &__first {
    svg {
      max-width: 100%;
      height: auto;
    }
  }

  &__second {
    margin-top: 26px;

    @media (min-width: $screen-xl) {
      margin-top: 56px;
    }

    @media (min-width: $screen-lg) {
      margin-top: 46px;
    }
  }
}

/* ----- .lr-block ----- */

.lr-block {
  $block-name: &;

  @media (min-width: $screen-xl) {
    display: flex;
  }

  :first-child {
    margin-top: 0;
  }

  :last-child {
    margin-bottom: 0;
  }

  &__left {
    @media (min-width: $screen-xl) {
      width: 280px;
    }
  }

  &__right {
    @media (min-width: $screen-xl) {
      box-sizing: border-box;
      padding-left: 83px;
      width: calc(100% - 280px);
    }

    @media (max-width: ($screen-xl - 1)) {
      margin-top: 48px;
    }
  }

  &__title {
    margin-bottom: 22px;

    @media (min-width: $screen-xl) {
      margin-bottom: 32px;
    }
  }

  &--type-1 {
    #{$block-name}__right {
      @media (min-width: $screen-xl) {
        padding-left: 0;
        width: 100%;
      }
    }
  }
}

/* ----- .fitler  ----- */

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: $color-cyan;
  border-color: $color-cyan;
}

.fitler {
  $block-name: &;

  padding: 24px 15px;
  border: 1px solid #eef0f7;
  border-radius: 4px;
  background-color: #fff;

  @media (min-width: $screen-xl) {
    padding: 32px;
  }

  &__inner {
  }

  &__form {
  }

  &__form-item {
    @media (min-width: $screen-lg) and (max-width: ($screen-xl - 1)) {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 30px;
    }

    > div {
      margin-bottom: 8px;

      @media (min-width: $screen-xl) {
        margin-bottom: 16px;
      }

      @media (min-width: $screen-lg) {
        margin-bottom: 0;
      }

      &:not(.fitler__form-i-title) {
        @media (min-width: $screen-lg) and (max-width: ($screen-xl - 1)) {
          width: calc(100% / 3 - (30px * 2 / 3));
        }
      }
    }

    :first-child {
      margin-top: 0;
    }

    :last-child {
      margin-bottom: 0;
    }

    & + & {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid #d6dae6;

      @media (min-width: $screen-xl) {
        margin-top: 24px;
        padding-top: 24px;
      }
    }

    &--last {
      margin-top: 24px !important;
      padding-top: 0 !important;
      border-top: none !important;

      @media (min-width: $screen-xl) {
        margin-top: 32px !important;
      }

      .btn {
        @media (max-width: ($screen-lg - 1)) {
          width: 100%;
        }
      }
    }

    &--type-1 {
      > div {
        &:not(.fitler__form-i-title) {
          @media (max-width: ($screen-xl - 1)) {
            width: auto;
          }
        }
      }
    }
  }

  &__form-i-title {
    margin-bottom: 16px;
    font: 500 13px/110% $font-family;

    @media (min-width: $screen-xl) {
      margin-bottom: 24px;
      font-size: 16px;
    }

    @media (min-width: $screen-lg) {
      margin-bottom: 8px;
    }

    @media (max-width: ($screen-xl - 1)) {
      width: 100%;
    }
  }

  &__form-date {
    @media (min-width: $screen-lg) and (max-width: ($screen-xl - 1)) {
      display: flex;
      align-items: center;
      width: 100% !important;
    }
  }

  &__form-date-item {
    display: flex;
    align-items: center;

    & + & {
      margin-top: 8px;

      @media (min-width: $screen-lg) and (max-width: ($screen-xl - 1)) {
        margin-top: 0;
        margin-left: 24px;
      }
    }

    > span {
      margin-right: 10px;
      min-width: 15px;
      font: 300 12px/120% $font-family;
      text-align: right;

      @media (min-width: $screen-xl) {
        margin-right: 16px;
        min-width: 20px;
        font-size: 13px;
      }
    }

    .field-text {
      margin-bottom: 0;
    }
  }
}

/* ----- .table-chart ----- */

.stages-wrapper {
  margin-top: 38px;

  @media (min-width: $screen-xl) {
    margin-top: 48px;
  }
}

.table-chart {
  $block-name: &;

  padding: 40px 15px;
  border: 1px solid #eef0f7;
  border-radius: 4px;
  background-color: #fff;

  @media (min-width: $screen-xl) {
    padding: 48px 32px;
  }

  & + & {
    margin-top: 32px;
  }

  &__first {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 40px;
    margin-bottom: 16px;
  }

  &__id {
    font: 500 12px/165% $font-family;
    letter-spacing: 0.05em;

    @media (min-width: $screen-xl) {
      font-size: 14px;
    }

    span {
      margin-right: 8px;
      font-weight: 300;
    }
  }

  &__name {
    margin-bottom: 0;
    font: 500 15px/110% $font-family;
    letter-spacing: 0.05em;

    @media (min-width: $screen-xl) {
      font-size: 18px;
    }
  }

  &__second {
  }

  &__s-first {
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: $color-cyan #eef0f7;

    &::-webkit-scrollbar {
      height: 2px;
    }

    &::-webkit-scrollbar-track {
      background-color: #eef0f7;
    }

    &::-webkit-scrollbar-thumb {
      background-color: $color-cyan;
    }

    table {
      min-width: 750px;
    }
  }

  &__s-second {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;

    @media (min-width: $screen-xl) {
      margin-top: 24px;
    }
  }

  &__third {
    margin-top: 30px;

    @media (min-width: $screen-xl) {
      margin-top: 0;
    }
  }
}

/* ----- .accordion-container ----- */

.accordion-container {
  margin-top: 40px;

  @media (min-width: $screen-xl) {
    margin-top: 48px;
  }
}

.ac {
  --ac-pdg-hor: 15px;
  --ac-pdg-ver: 40px;

  padding: var(--ac-pdg-ver) 0;
  border-radius: 4px;
  border-color: #eef0f6;

  @media (min-width: $screen-xl) {
    --ac-pdg-hor: 32px;
    --ac-pdg-ver: 48px;

    padding-top: var(--ac-pdg-ver);
    padding-bottom: var(--ac-pdg-ver);
  }

  &.is-active {
    .ac-trigger {
      &::after {
        content: "" !important;
        background-image: url(../img/minus.svg);

        @media (min-width: $screen-lg) {
          content: "Скрыть" !important;
        }
      }
    }

    .ac-panel {
      opacity: 1;
    }
  }

  .ac-header {
  }

  .ac-trigger {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 40px;
    padding: 0 40px 0 var(--ac-pdg-hor);
    font-family: $font-family;

    &:focus {
      outline: 0;
      color: $color-d-blue;
    }

    @media (min-width: $screen-xl) {
      padding-right: 155px;
    }

    @media (min-width: $screen-lg) {
      padding-right: 110px;
    }

    &::after {
      content: "";
      right: var(--ac-pdg-hor);
      width: 16px;
      height: 16px;
      text-align: right;
      font-weight: 400;
      font-size: 14px;
      line-height: 150%;
      letter-spacing: 0.05em;
      color: $color-cyan;
      background: url(../img/plus.svg) right center/16px no-repeat;

      @media (min-width: $screen-xl) {
        font-size: 16px;
      }

      @media (min-width: $screen-lg) {
        content: "Показать";
        width: 100px;
        height: auto;
        padding-right: 24px;
      }
    }

    .table-id {
      transform: translateY(2px);
    }
  }

  .ac-panel {
    padding: 0 !important;
    opacity: 0;
    transition: opacity 0.6s, height 0.6s, visibility 0.6s;

    .edit {
      padding-bottom: 6px;
    }
  }

  .ac-text {
    padding: 8px var(--ac-pdg-hor) 0 !important;

    @media (min-width: $screen-xl) {
      padding-top: 16px !important;
    }
  }
}

.edit-table {
  [data-hide] {
    .hide-wrapper {
      opacity: 0;
      visibility: hidden;
      transition: opacity $transition-time, visibility $transition-time;
    }
  }

  &.editing {
    [data-hide] {
      .hide-wrapper {
        opacity: 1;
        visibility: visible;
      }
    }
  }
}

.btn-group {
  @media (min-width: $screen-lg) {
    display: flex;
    gap: 10px 15px;
  }

  @media (max-width: ($screen-lg - 1)) {
    width: 100%;

    .btn {
      width: 100%;
    }

    .btn + .btn {
      margin-top: 16px;
    }
  }

  &--right {
    @media (min-width: $screen-lg) {
      margin-left: auto;
    }
  }
}

.table-id {
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.05em;

  @media (min-width: $screen-xl) {
    font-size: 14px;
  }

  span {
    font-weight: 500;
  }
}

.table-name {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.05em;

  @media (min-width: $screen-xl) {
    font-size: 18px;
  }
}

/* ----- .edit ----- */

.edit {
  $block-name: &;

  margin-top: 24px;
  padding: 0 var(--ac-pdg-hor) 0;

  &__first {
    @media (min-width: $screen-lg) {
      display: flex;
      align-items: center;
    }
  }

  &__second {
    display: none;
    // display: flex;

    @media (min-width: $screen-lg) {
      justify-content: space-between;
      align-items: center;
    }
  }

  &__s-left {
  }

  &__s-right {
    @media (max-width: ($screen-lg - 1)) {
      margin-top: 16px;
    }
  }
}

.hide {
  display: none !important;
}

.show {
  display: block !important;

  @media (min-width: $screen-lg) {
    display: flex !important;
  }
}

.btn-ico {
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.response-wrapper,
.response-block {
  position: fixed;
  opacity: 0;
  visibility: hidden;
  transition: opacity $transition-time, visibility $transition-time;

  &.active {
    opacity: 1;
    visibility: visible;
  }
}

.response-wrapper {
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.response-block {
  z-index: 11;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 15px;
  border-right: 5px solid transparent;
  width: 450px;
  max-width: calc(100% - 30px);
  background-color: #fff;
  font: 16px/160% var(--ff);
  color: #333;

  &.error {
    border-color: red;
  }

  &.ok {
    border-color: limegreen;
  }
}

.b-wrapper {
  position: fixed;
  z-index: 9;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(54, 55, 85, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;

  &.active {
    opacity: 1;
    visibility: visible;
  }
}

.m-t-24 {
  margin-top: 16px !important;

  @media (min-width: $screen-xl) {
    margin-top: 24px !important;
  }
}

.m-b-24 {
  margin-bottom: 16px !important;

  @media (min-width: $screen-xl) {
    margin-bottom: 24px !important;
  }
}

.m-b-32 {
  margin-bottom: 24px !important;

  @media (min-width: $screen-xl) {
    margin-bottom: 32px !important;
  }
}

.of-h {
  overflow: hidden;
}

.bg-white {
  background-color: #fff;
}

.ta-c {
  text-align: center !important;
}
