﻿/*Модальное окно begin*/
.sib-modal {
  display: none;
  background-color: #fff;
  box-shadow: 0 0 26px 0 rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 1rem;
  width: 450px;
  max-width: 80%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  overflow: hidden;
  z-index: 99999;
  -webkit-animation: bounce 0.4s ease forwards;
          animation: bounce 0.4s ease forwards;
}
.sib-modal * {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}


.sib-close-icon {
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 0.7rem;
  right: 0.7rem;
  transition: opacity 0.2s ease;
}
.sib-close-icon::before, .sib-close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: inherit;
  height: 2px;
  background-color: #999;
}
.sib-close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.sib-close-icon::after {
  transform: translate(-50%, -50%) rotate(135deg);
}

.sib-modal-title {
  margin-top: 0;
}

:target {
  display: block;
}

@-webkit-keyframes bounce {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0.7);
  }
  45% {
    transform: translate3d(-50%, -50%, 0) scale(1.05);
  }
  80% {
    transform: translate3d(-50%, -50%, 0) scale(0.95);
  }
  100% {
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

@keyframes bounce {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0.7);
  }
  45% {
    transform: translate3d(-50%, -50%, 0) scale(1.05);
  }
  80% {
    transform: translate3d(-50%, -50%, 0) scale(0.95);
  }
  100% {
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}
#sib-close {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}
/*Модальное окно end*/
/*Поля модального окна begin*/
.sib-input {
   width: 100%;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px #ddd;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.sib-textarea {
    width: 100%;
    height: 150px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    resize: none;
}
.sib-select {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 4px;
    background-color: #f8f8f8;
}
.sib-recaptcha {width: 60%;}
/* для элемента input c type="checkbox" */
    .custom-checkbox {
      position: absolute;
      z-index: -1;
      opacity: 0;
    }

    /* для элемента label, связанного с .custom-checkbox */
    .custom-checkbox+label {
      display: inline-flex;
      align-items: center;
      user-select: none;
    }

    /* создание в label псевдоэлемента before со следующими стилями */
    .custom-checkbox+label::before {
      content: '';
      display: inline-block;
      width: 1em;
      height: 1em;
      flex-shrink: 0;
      flex-grow: 0;
      border: 1px solid #adb5bd;
      border-radius: 0.25em;
      margin-right: 0.5em;
      background-repeat: no-repeat;
      background-position: center center;
      background-size: 50% 50%;
    }

    /* стили при наведении курсора на checkbox */
    .custom-checkbox:not(:disabled):not(:checked)+label:hover::before {
      border-color: #b3d7ff;
    }

    /* стили для активного чекбокса (при нажатии на него) */
    .custom-checkbox:not(:disabled):active+label::before {
      background-color: #b3d7ff;
      border-color: #b3d7ff;
    }

    /* стили для чекбокса, находящегося в фокусе */
    .custom-checkbox:focus+label::before {
      box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    /* стили для чекбокса, находящегося в фокусе и не находящегося в состоянии checked */
    .custom-checkbox:focus:not(:checked)+label::before {
      border-color: #80bdff;
    }

    /* стили для чекбокса, находящегося в состоянии checked */
    .custom-checkbox:checked+label::before {
      border-color: #0b76ef;
      background-color: #0b76ef;
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
    }

    /* стили для чекбокса, находящегося в состоянии disabled */
    .custom-checkbox:disabled+label::before {
      background-color: #e9ecef;
    }
/*Поля модального окна end*/

/* figure img css begin*/
.image.image_resized {
    display: block;
    box-sizing: border-box;
}

.image.image_resized img {
    width: 100%;
}

.image.image_resized > figcaption {
    display: block;
}/* figure img css end*/

/* ============================================================
   КУКИ-БАННЕР
   ============================================================ */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 800px;
    background: #1a2a3a;
    color: #eee;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s ease;
    border: 1px solid #2a3a4a;
}

#cookie-banner.cookie-banner--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#cookie-banner.cookie-banner--hide {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-banner__text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    min-width: 200px;
}

.cookie-banner__text strong {
    display: block;
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
}

.cookie-banner__text p {
    margin: 0;
    color: #bbb;
}

.cookie-banner__text a {
    color: #8ab4f8;
    text-decoration: underline;
}

.cookie-banner__text a:hover {
    color: #fff;
}

.cookie-banner__accept {
    background: #e30613;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.cookie-banner__accept:hover {
    background: #c0050f;
}

.cookie-banner__close {
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.3s;
}

.cookie-banner__close:hover {
    color: #fff;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    #cookie-banner {
        bottom: 10px;
        width: 95%;
        padding: 15px 18px;
    }
    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner__text {
        font-size: 13px;
    }
    .cookie-banner__accept {
        width: 100%;
        padding: 12px;
    }
}