/* COMMON START */
  :root {
    --c-l_beige: #F9F9EA;
    --c-d_beige: #E8E8D6;
    --c-d_green: #646A54;
    --c-beige: #ECEDC5;
    --c-green: #353535;
    --c-orange: #EE6531;
    --c-dark: #1F2B20;
    --c-grey: #CDD1C3;
  }

  @font-face {
    font-family: "Oranienbaum";
    src: url("../fonts/Oranienbaum/Oranienbaum-Regular.eot");
    src: url("../fonts/Oranienbaum/Oranienbaum-Regular.eot?#iefix") format("embedded-opentype"), url("../fonts/Oranienbaum/Oranienbaum-Regular.woff2") format("woff2"), url("../fonts/Oranienbaum/Oranienbaum-Regular.woff") format("woff"), url("../fonts/Oranienbaum/Oranienbaum-Regular.ttf") format("truetype"), url("../fonts/Oranienbaum/Oranienbaum-Regular.svg#DrukWideCyWeb/Oranienbaum-Regular") format("svg");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
  }

  .mob { display: none !important; }

  .team__slide .slide-text::first-letter { text-transform: uppercase; }

  .txt_1,
  .txt_2,
  .txt_3,
  .txt_4 {
    font-weight: 400;
    font-family: "Manrope", Arial, sans-serif;
  }

  .txt_1 {
    font-size: 1.375rem;
    line-height: 1.4;
  }
  .txt_2 {
    font-size: 1.125rem;
    line-height: 1.4;
  }
  .txt_3 {
    font-size: 1rem;
    line-height: 1.4;
  }
  .txt_4 {
    font-size: 0.875rem;
    line-height: 1.4;
  }
/* COMMON START */

/* BREND START */
  .brend {
    position: fixed;
    top: 8.375rem;
    right: 2.375rem;
    opacity: 0;
    z-index: 9;
    touch-action: pan-y;
    will-change: transform;
    transform: translateY(-100%);
    transition: 1s ease-in-out;
    transition-delay: 1s;
  }

  .brend.visible { transform: translateY(0%); opacity: 1; }

  .brend.scrolling { opacity: 1; }

  .brend.closed-brend { transform: translateX(170%); transition: transform 0.3s ease; }

  .brend__close {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 1.25rem;
    height: 1.25rem;
    background: url('../img/svg/close-light.svg') no-repeat 50%/contain;
    transform: translate(100%, -100%);
    cursor: pointer;
  }

  .brend__img { display: block; position: relative; overflow: hidden; }

  .brend__img::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -40%;
    width: 30%;
    height: 200%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0));
    transform: rotate(15deg);
    animation: shineMove 2.5s ease-in-out infinite;
  }

  @keyframes shineMove {
    0% { left: -40%; height: 135%; }
    100% { left: 140%; height: 157%; }
  }

  .brend__img img {
    display: block;
    width: 5rem;
    object-fit: contain;
    pointer-events: none;
  }


  .modal-brend .modal-dialog { max-width: 40rem; }
  .modal-brend .modal-body { max-width: 100%; }

  .modal-brend .modal-title {
    margin-bottom: 2rem;
    font-size: 3.5rem;
    text-align: left;
  }

  .modal-brend .txt_1 { margin-bottom: 2rem; }

  .modal-brend img {
    display: block;
    margin-bottom: 2rem;
    width: 100%;
    border-radius: 1rem;
  }

  .modal-brend small { display: block; margin-bottom: 2rem; font-size: 0.75rem; }

  .modal-brend .modal-body .txt_2 { margin-bottom: 1.5rem; }

  .modal-brend .modal-bdoy :last-child { margin-bottom: 0; }
/* BREND END */

/* MODAL-BOOTSTRAP START */
  .modal-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: #000;
      transition: opacity 0.15s linear;
      z-index: 99999;
  }
  .modal-backdrop.fade {
      opacity: 0;
  }
  .modal-backdrop.show {
      opacity: 0.5;
  }

  /* Само модальное окно — всегда display: block */
  .modal {
      position: fixed;
      top: 0;
      left: 0;
      display: block;
      width: 100%;
      height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      outline: 0;
      visibility: hidden;
      opacity: 0;
      transition: visibility 0.3s, opacity 0.3s ease;
      pointer-events: none;
      z-index: 999999;
  }

  /*.modal::-webkit-scrollbar {
    width: 0;
  }*/

  .modal * { color: var(--c-dark); }

  .modal.show {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
  }

  .modal-dialog {
      position: relative;
      width: auto;
      margin: 1.75rem auto;
      max-width: 500px;
      pointer-events: none;
      transform: translate(0, -30px); /* начальное положение — выше */
      transition: transform 0.3s ease-out;
  }
  .modal.show .modal-dialog {
      transform: translate(0, 0); /* финальное положение */
  }
  .modal-dialog-centered {
      display: flex;
      align-items: center;
      min-height: calc(100% - 3.5rem);
  }

  /* Контент модалки */
  .modal-content {
      position: relative;
      display: flex;
      flex-direction: column;
      width: 100%;
      pointer-events: auto;
      background-color: #fff;
      background-clip: padding-box;
      border: 1px solid rgba(0,0,0,.2);
      border-radius: 0.5rem;
      outline: 0;
  }

  /* Блокировка скролла body */
  body.modal-open {
      overflow: hidden;
      padding-right: 17px;
  }
/* MODAL-BOOTSTRAP END */

/* MODAL START */
  .modal-backdrop {
    background: #000;
  }
  .modal-backdrop.show {
    opacity: 0.6;
  }
  .modal-dialog {
    max-width: 67.25rem;
  }
  .modal-small .modal-dialog {
    max-width: 24.75rem;
  }
  .modal-medium .modal-dialog {
    max-width: 28.125rem;
  }
  .modal-content {
    flex-direction: row;
    background: var(--c-l_beige);
    border: 0;
    border-radius: 1rem;
    box-shadow: none;
  }
  .modal-close {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: -1rem;
    background: rgba(0, 0, 0, 0);
    border: 0;
    outline: 0;
    transform: translate(100%, 0);
    z-index: 1;
    cursor: pointer;
  }
  .modal-close::before {
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(0, 0, 0, 0) url('../img/svg/close-light.svg') no-repeat 50%/contain;
    border: 0;
    border-radius: 50%;
  }
  .modal-close p {
    margin: 0;
    color: #fff;
  }
  .modal-body {
    padding: 2rem;
    max-width: 34.125rem;
  }
  .modal-title {
    margin-bottom: 2rem;
    color: var(--c-dark);
    font-weight: 400;
    font-family: "Oranienbaum", Arial, sans-serif;
    text-transform: uppercase;
    font-size: 1.875rem;
    line-height: 1.2;
    text-align: center;
  }
  .modal-small-title {
    margin-bottom: 1rem;
    font-weight: 600;
  }
  .modal-text {
    margin-bottom: 2rem;
  }
  .modal .address-list {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  .modal .address-list li:not(:last-child) {
    margin-bottom: 1rem;
  }
  .modal .address-list .link.active {
    color: var(--c-orange);
  }
  .modal .address-list .link::after {
    background: var(--c-dark);
  }
  .modal .address-list .link.active::after {
    background: var(--c-orange);
  }
  .modal .h1-title {
    margin-bottom: 1rem;
  }
  .modal-smal-title {
    margin-bottom: 1rem;
    font-weight: 600;
  }
  .modal-text {
    margin-bottom: 1rem;
  }
  .modal-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .modal-btns .link-address {
    margin-top: 1.5rem;
  }
  .modal-btns .link-address::after {
    background: var(--c-dark);
  }
  .modal-picture picture {
    flex-shrink: 0;
    display: block;
    width: 33.125rem;
    max-width: 100%;
    height: 100%;
  }
  .modal-picture picture img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 1rem 0 0 1rem;
    object-fit: cover;
  }
  .modal-system {
    text-align: center;
  }
  .modal-system .modal-body {
    padding: 2.5rem 1.875rem;
  }
  .modal-system .h1-title {
    margin-bottom: 0.5rem;
    color: var(--c-orange);
  }
  .modal-system h3 {
    margin-bottom: 0.5rem;
  }
  .modal-system :last-child {
    margin-bottom: 0;
  }
  .modal-scores {
    padding: 2rem;
  }
  .modal-scores h2 {
    margin-bottom: 0.5rem;
  }
  .modal-scores .txt_3 {
    margin-bottom: 1.5rem;
  }
  .modal-scores .txt_3:last-child {
    margin-bottom: 0;
  }
  .modal-scores .text {
    margin-bottom: 1.5rem;
  }
  .modal-scores .text > * {
    margin-bottom: 0.5rem;
  }
  .modal-scores .text :last-child {
    margin-bottom: 0;
  }
  .modal-scores .desriptor {
    color: var(--c-orange);
  }
/* MODAL END */

@media (max-width: 991px) {
  .desk { display: none !important; }
  .mob { display: block !important; }

  /* BREND START */
    .brend {
      top: auto;
      bottom: 4.1025641026vw;
      right: 4.1025641026vw;
      opacity: 0;
      transform: translateY(0%);
      transition: 0.5s ease-in-out;
      transition-delay: 0s;
    }

    .brend.md-page-scrolled { opacity: 1; }

    .brend__close {
      right: auto;
      left: 0;
      transform: translate(-100%, -100%);
    }

    .brend__img img { width: 3.5rem; }

    .modal-brend .modal-dialog { max-width: 100%; }

    .modal-brend .modal-body { padding: 0 0.9375rem 2.5rem; }

    .modal-brend img {
      margin-bottom: 0.75rem;
      margin-left: -0.9375rem;
      width: 100vw;
      border-radius: 0;
    }

    .modal-brend small { margin-bottom: 2rem; font-size: 0.625rem; }

    .modal-brend .modal-title {
      margin-bottom: 2rem;
      font-size: 1.875rem;
      line-height: 1.2;
    }

    .modal-brend .txt_1 { margin-bottom: 2rem; }

    .modal-brend .modal-body .txt_2 { margin-bottom: 1.5rem; }
  /* BREND END */

  /* MODAL START */
    .modal-backdrop {
      background: #000;
    }
    .modal-backdrop.show {
      opacity: 0.6;
    }
    .modal-dialog {
      margin: auto auto;
      max-width: 100%;
    }
    .modal-small .modal-dialog {
      max-width: 24.75rem;
    }
    .modal-content {
      flex-direction: column;
      border-radius: 0;
    }
    .modal-close {
      top: 1.5rem;
      right: 1.5rem;
      transform: translate(0, 0);
    }
    .modal-close-2 {
      display: flex;
      align-items: center;
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      width: 1.5rem;
      height: 1.5rem;
      background: rgba(0, 0, 0, 0);
      border: 0;
      outline: 0;
      background: rgba(0, 0, 0, 0) url('../img/svg/close-light.svg') no-repeat 50%/contain;
      border-radius: 50%;
      z-index: 1;
      cursor: pointer;
    }
    .modal-c-2 {
      top: auto;
      right: auto;
      bottom: -1rem;
      padding: 0 0 1rem;
      left: 50%;
      transform: translate(-50%, 100%);
    }
    .modal-c-2::before {
      margin-right: 0.5rem;
    }
    .modal-body {
      padding: 1.875rem 1.25rem;
      max-width: 100%;
    }
    .modal-title {
      margin-bottom: 2rem;
      font-size: 1.875rem;
      line-height: 1.2;
      text-align: center;
    }
    .modal-small-title {
      margin-bottom: 1rem;
      font-weight: 600;
    }
    .modal-text {
      margin-bottom: 2rem;
    }
    .modal .address-list {
      margin-bottom: 1.5rem;
      text-align: center;
    }
    .modal .address-list li:not(:last-child) {
      margin-bottom: 1rem;
    }
    .modal .address-list .link.active {
      color: var(--c-orange);
    }
    .modal .address-list .link::after {
      background: var(--c-dark);
    }
    .modal .address-list .link.active::after {
      background: var(--c-orange);
    }
    .modal-btns {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .modal-btns .link-address {
      margin-top: 1.5rem;
    }
    .modal-btns .link-address::after {
      background: var(--c-dark);
    }
    .modal-picture picture {
      height: 13.75rem;
    }
    .modal-picture picture img {
      border-radius: 0;
      object-position: 50% 15%;
    }
    .modal-system .modal-body {
      padding: 1.5rem 1rem;
    }
    .modal-system h3 {
      margin-bottom: 1rem;
    }
    .modal .form-radios--1 .form-radio:first-child {
      width: 100%;
    }
  /* MODAL END */
}