* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", serif;
  font-size: 14px;
}

html {
  min-height: 100vh;
}

body {
  min-height: 100%;
  background-image: url("/__proxy__/img/wave.png");
  background-size: cover;
  background-position: fixed;
  background-repeat: no-repeat;
  overflow: hidden;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

header img {
  width: 40px;
  height: 40px;
}

.main-header {
  height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #00a6df;
  padding: 15px 0px 15px 0px;
}

/*  For Testing */
.main-header .number {
  font-size: 20px;
  color: #fff;
  margin-left: 5px;
  margin-right: 15px;
}

.main-header .counts span:last-child {
  margin-left: 3px;
  margin-right: 10px;
}

/* FOR TESTING */
.main-header .counts {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.main-header .counts .text img {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
  width: 25px;
  margin-left: 4px;
  padding-top: 6px;
  opacity: 0.8;
}

.main-header .logo {
  margin-left: 15px;
  cursor: pointer;
}

.main-header .logo-text {
  margin-right: auto;
  font-weight: 700;
  font-size: 21px;
  cursor: pointer;
  color: #fff;
  margin-left: 10px;
}

.main-header .logo-text span {
  opacity: 0.6;
}

.clients.text {
  display: inline-block;
  border: 2px solid #fff;
  border-radius: 5px;
  padding: 7px;
  text-align: center;
  line-height: 1.5;
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  text-decoration: none;
  color: #fff;
  margin-left: 10px;
}

.clients.icon {
  background: transparent;
  border: 2px solid #fff;
  padding: 5px 15px;
  border-radius: 5px;
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  text-decoration: none;
  color: #fff;
}

.clients.text:hover {
  background-color: #fff;
  color: #00a6df;
}

.clients.icon:hover {
  background: #fff;
}

.clients.icon:hover i.fa-user {
  color: #00a6df !important;
  transition: all 0.5s ease-in-out;
}

.location-names {
  background: #fff;
  padding: 5px 0px 5px 0px;
  margin-bottom: 10px;
  box-shadow: 0px 2px 2px rgb(0 0 0 / 5%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.location-names .socials {
  display: flex;
}

.location-names .socials i {
  color: #29a9e0;
  font-size: 20px;
}

.location-names .fa-bars {
  display: none;
}

.location-names .city {
  display: block;
  background: #fff;
}

.city.psou {
  position: relative;
  right: 6px;
}

.location-names ul {
  list-style: none;
}

.items {
  display: flex;
  flex-direction: row;
}

.items p {
  text-align: center;
}

.items li:first-child {
  margin-left: 20px;
}

.items li {
  text-align: center;
  cursor: pointer;
}

.items li:nth-child(2) .city:nth-child(2) {
  text-align: left;
}

.location-names img {
  width: 30px;
  height: 30px;
}

.location-names .city {
  font-weight: 500;
}

.main-footer {
  height: 50px;
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #00a6df;
  position: fixed;
  bottom: 0;
}

.main-footer {
  color: #fff;
}

.main-footer .number {
  font-size: 35px;
}

.main-footer .text {
  display: inline-block;
  align-items: center;
  font-size: 12px;
  color: #f8f9fa;
  opacity: 0.8;
}

.counts .text:nth-child(2) {
  margin-right: 40px;
}

.main-footer .btn {
  border: 2px solid #fff;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  line-height: 1.5;
  transition: all 0.5s ease-in-out;
  cursor: pointer;
  margin-left: 20px;
  text-decoration: none;
}

.main-footer .btn:hover {
  background: #fff;
  color: #007bff;
}

.socials {
  margin-right: 20px;
}

.socials a {
  margin-right: 20px;
  text-decoration: none;
}

.socials img {
  width: 25px;
  height: 25px;
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
}

.cameras {
  list-style: none;
  display: flex;
  flex: 50%;
  flex-wrap: wrap;
  overflow-y: scroll;
  max-height: calc(100vh - 130px);
  width: calc(50vw + 50px);
  margin-top: 10px;
  padding: 0px 0px 30px 0px;
}

/* Scroll-Bar */
.cameras::-webkit-scrollbar {
  width: 7px;
}

.cameras::-webkit-scrollbar-thumb {
  background: darkgrey;
  border-radius: 10px;
  height: 5px;
}

.cameras::-webkit-scrollbar-button {
  height: 4px;
}

.camera-descript::-webkit-scrollbar {
  width: 5px;
}

.camera-descript::-webkit-scrollbar-thumb {
  background: darkgrey;
  border-radius: 10px;
  height: 4px;
}

.camera-descript::-webkit-scrollbar-button {
  height: 4px;
}

main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.show-camera {
  padding-right: 24px;
  padding-left: 25px;
  width: 45%;
}

.show-camera .camera-title {
  box-shadow: 0px 2px 2px 0px #a3a3a3;
  background: #fff;
  width: 100%;
  display: flex;
  align-items: center;
}

.show-camera .camera-title .camera-name {
  padding-left: 5px;
  flex-grow: 1;
  font-size: 14px;
}

.show-camera .camera-title .viewers-num {
  display: block;
  font-size: 12px;
  color: #333333;
  font-weight: bold;
}

.show-camera .camera-title .user {
  width: 20px;
  margin-left: 5px;
}

.show-camera .camera-title .viewers {
  /* background: rgb(196, 196, 196); */
  padding: 12px 5px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  display: flex;
  height: 40px;
}

.show-camera .camera-title .download-img {
  margin-right: 10px;
}

.camera-actions ul {
  display: flex;
}

.camera-actions li {
  display: inline-flex;
  padding: 4px 20px;
  color: #c2c6c7;
  cursor: pointer;
  text-transform: lowercase;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid transparent;
  border-bottom: none;
  transition: all 0.4s ease;
}

.camera-actions li.active {
  border: 1px solid #29a9e0;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  color: #29a9e0;
  background: #fff;
}

.camera-actions li:hover {
  color: #29a9e0;
  background: #fff;
  opacity: 0.8;
}

/* .camera-frame,.live-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
} */

.camera-framee,
.live-frame,
.timelapse-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;           /* соотношение 16:9 */
  transition: all 0.5s;
  z-index: 1;
}

.camera-framee iframe,
.live-frame iframe,
.timelapse-frame iframe
 {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.camera-framee video, 
.live-frame video,
.timelapse-frame video {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  object-fit: cover;
}

.camera-description {
  font-size: 14px;
  position: relative;
  cursor: pointer;
  width: calc(50vw / 3);
  height: calc(50vw * 3 / 16);
  margin-bottom: 10px;
  margin-right: 10px;
}

.camera-description .preview {
  width: 100%;
  height: 100%;
}

.camera-description .users {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
  width: 25px;
  padding-left: 5px;
}

.fa-download {
  width: 15px;
  height: 15px;
}

.camera-description .street {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  bottom: 0px;
  padding: 5px;
  font-weight: 400;
  font-size: 15px;
  color: #fff;
}

.camera-description .number-of-viewers {
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  position: absolute;
  background: rgba(12, 167, 223, 0.5);
  text-align: center;
  padding: 5px;
  top: 0px;
  right: 0px;
}

.active-frame {
  display: none;
}
/* .active-frame {
  display: block !important;
  z-index: 2;
} */


.caramel-timelaps {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.timelapse-play-btn {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 60px;
  line-height: 1;
  z-index: 20;                    /* Очень важно! Выше рекламы */
  pointer-events: auto;           /* Чтобы клики работали */
  transition: opacity 0.2s;
}

#timelapse-frame {
  display: none;
}

#live-frame {
  display: block;
}

.fas {
  color: #29a9e0;
}

.cam-title {
  padding-left: 5px;
  display: block;
}

.cam-title .title {
  cursor: pointer;
}

.cams-count {
  padding-left: 10px;
  color: #aaaeb3;
  cursor: pointer;
}

.cams-number {
  color: #aaaeb3;
  cursor: pointer;
}

.camera-descript {
  font-size: 14px;
  /* padding: 8px 10px 10px 10px; */
  overflow-y: scroll;
  width: 100%;
  /* height: 15vh; */
  height: auto;
  background: #fff;
  /* box-shadow: 0px 4px 8px rgb(0 0 0 / 30%); */
}

.camera-descript h4 {
  color: #29a9e0;
}

.camera-info {
  width: 100%;
}

.modal-container {
  display: none;
  width: 100%;
  height: 100%;
  z-index: 4;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  animation-name: animatetop;
  animation-duration: 0.4s;
  top: 0;
  left: 0;
}

.modal-container .modal-window {
  background-color: #fff;
  margin: 5% auto;
  width: 60%;
}

.modal-header .modal-title {
  color: #fff;
  margin-left: 15px;
  font-size: 1.25rem;
}

.modal-header .close {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 10px;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.modal-header .close:hover {
  opacity: 0.8;
}

.modal-window .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  background: #29a9e0;
}

.modal-window .modal-content {
  width: 100%;
  background: #fff;
  text-align: justify;
  padding: 1rem;
}

.modal-window .modal-content a {
  text-decoration: none;
  color: #29a9e0;
}

.fa-user {
  color: #fff;
}

.closer {
  visibility: hidden;
  float: right;
  margin-right: 30px;
  cursor: pointer;
}

.burger-menu {
  display: none;
  width: 30%;
  height: auto;
  background: #fff;
  position: absolute;
  right: 0;
  top: 85px;
  padding: 10px 0px 20px 0px;
  transition: all 0.5s;
  z-index: 3;
}

.burger-menu li {
  padding: 0px 0px 10px 7px;
}

.burger-menu li:nth-child(2) {
  padding-left: 15px;
}

.burger-menu ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.burger-menu img {
  width: 40px;
  height: 40px;
}

.my-items .city {
  margin-left: 5px;
  font-size: 20px;
}

.camera-section {
  width: 55%;
  z-index: 3;
  padding-left: 24px;
}

@keyframes animatetop {
  from {
    top: 0px;
    opacity: 0;
  }

  to {
    bottom: 50px;
    opacity: 1;
  }
}

.forecast {
  display: flex;
  width: 120px;
  height: 40px;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.forecast img {
  width: 35px;
}

.forecast .temp {
  font-size: 18px;
  color: #636363;
  font-weight: 400;
  margin-right: 10px;
}

.weather {
  display: none;
  flex-flow: wrap;
  background: white;
  box-shadow: 0px 4px 8px rgb(0 0 0 / 30%);
}

.weather-active {
  display: flex;
}

.description-active {
  display: none;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid #29a9e0;
  width: 100%;
  padding: 0px 5px 0px 5px;
}

.date {
  font-family: Roboto, sans-serif;
  /* Поменяю на SegoeUI */
  font-style: normal;
  font-weight: bold;
  font-size: 17px;
  line-height: 24px;
  color: #5e5e5e;
}

.yandex-logo {
  height: 26px;
}

.weather table {
  width: 100%;
}

.weather th {
  font-style: normal;
  font-weight: normal;
  font-size: 15px;
  line-height: 16px;
  color: #838383;
  text-align: left;
  padding: 0px 25px;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  width: 100%;
}

.weather tr {
  display: flex;
}

.weather td:first-child {
  white-space: nowrap;
}

.weather td:nth-child(2) {
  font-weight: 400;
  padding-left: 55px;
}

.weather td {
  font-style: normal;
  font-weight: bold;
  font-size: 15px;
  line-height: 16px;
  text-align: left;
  padding: 0px 25px 5px;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  width: 20%;
}

.weather td img {
  width: 40px;
}

.camera-framee, .live-frame {
  transition: all 0.5s;
}

table td img {
  cursor: pointer;
}

/* Responsive */

@media screen and (max-width: 1024px) {
  .weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    border-bottom: 4px solid #29a9e0;
    width: 100%;
  }

  .main-header .counts {
    display: none;
  }

  .location-names {
    display: block;
  }

  .location-names .socials {
    display: none;
  }

  .date {
    font-size: 21px;
  }

  .yandex-logo {
    height: 25px;
  }

  .weather table {
    width: 100%;
  }

  .weather th {
    padding: 0px 15px;
    width: 20%;
  }

  .weather tr {
    display: flex;
  }

  .weather td:first-child {
    white-space: nowrap;
  }

  .weather td:nth-child(2) {
    padding-left: 10px;
  }

  .weather td {
    padding: 0px 5px 5px;

    width: 100%;
  }

  .weather td img {
    width: 40px;
  }

  .weather {
    margin-top: 5px;
  }

  body {
    overflow: scroll;
  }

  .main-footer {
    display: flex;
    z-index: 5;
  }
}

@media screen and (min-width: 765px) {
  .clients.icon {
    display: none;
  }

  .clients {
    display: inline-block;
  }
}

@media screen and (max-width: 990px) {
  .items {
    display: none;
  }

  .items li {
    margin-left: 0px;
  }

  .items {
    margin-left: 0;
    flex: 2;
    align-items: center;
    justify-content: space-around;
  }

  .location-names .fa-bars {
    display: block;
    font-size: 20px;
    text-align: right;
    margin-right: 20px;
  }
}

@media screen and (max-width: 767px) {
  .items {
    display: none;
  }

  .items li {
    margin-left: 0px;
  }

  .items {
    margin-left: 0;
    flex: 2;
    align-items: center;
    justify-content: space-around;
  }

  .location-names .fa-bars {
    display: block;
    font-size: 20px;
    text-align: right;
    margin-right: 20px;
  }
}

@media screen and (max-width: 991px) {
  .camera-section,
  .cam-title {
    display: none;
  }

  .camera-descript {
    width: 100%;
    height: auto;
  }

  .show-camera {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 80px;
  }

  .camera-info {
    width: 100%;
  }

  .closer {
    visibility: visible;
  }

  .camera-framee, .live-frame {
    width: 100%;
    height: calc(9 / 16 * (80vw - 100px));
  }

  .camera-description {
    font-size: 14px;
    position: relative;
    cursor: pointer;
    width: 100%;
    height: 24%;
    margin-bottom: 10px;
  }

  .camera-description:last-child {
    margin-bottom: 0;
  }

  .show-camera .camera-title {
    width: 100%;
    /* height: 40px; */
  }

  .right-side {
    width: 50%;
    height: 100%;
    position: relative;
    display: block;
    float: left;
    padding-right: 30px;
    padding-left: 20px;
  }

  .cam-title {
    padding: 20px 0px 0px 30px;
    display: block;
  }

  .cams-count {
    display: none;
  }

  .active-right {
    display: block;
    position: absolute;
    right: 0;
    width: 60%;
    overflow: hidden;
    padding-bottom: 20px;
    height: 75% !important;
    background: #fff;
    transition: all 0.2s;
    box-shadow: 0px 2px 4px 1px rgb(0 0 0 / 20%);
  }

  .cameras {
    overflow-y: overlay;
    max-height: 640px;
    width: 100%;
    height: 88%;
  }
}

@media screen and (max-width: 764px) {
  .clients.icon {
    display: inline-block;
  }

  .clients.text {
    display: none;
  }
}

@media screen and (max-width: 760px) {
  .main-footer .btn {
    display: none;
  }

  .main-footer .counts {
    margin-left: 30px;
  }

  .counts .text:nth-child(2) {
    margin-right: 20px;
  }

  .socials a {
    margin-right: 40px;
  }

  .socials a:last-child {
    margin-right: 30px;
    padding-right: 0;
  }

  .camera-info {
    width: 100%;
  }

  body {
    overflow: scroll;
  }
}

@media screen and (min-width: 706px) {
  .items {
    justify-content: flex-start;
    align-items: center;
  }

  .items li {
    margin-left: 20px;
  }
}

@media screen and (max-width: 705px) {
  .items {
    margin: 0;
    width: calc(100% - 10px);
  }
}

@media screen and (max-width: 499px) {
  .location-names img {
    width: 25px;
    height: 25px;
  }

  .camera-framee, .live-frame {
    /* width: 85vw; */
    height: calc(5 * 85vw / 10);
  }

  .counts .text:nth-child(2) {
    margin-right: 10px;
  }

  .socials a {
    margin-right: 20px;
  }

  .socials a:last-child {
    margin-right: 10px;
    padding-right: 0;
  }

  .main-footer .number {
    font-size: 25px;
    text-align: center;
  }

  .main-footer .text {
    font-size: 8px;
  }

  .socials img {
    width: 18px;
    height: 18px;
  }

  .main-footer .counts {
    position: relative;
    top: -3px;
  }
}

@media screen and (max-width: 320px) {
  .my-items .city {
    margin-left: 5px;
    font-size: 15px;
  }

  .my-items img {
    width: 30px;
    height: 30px;
  }
}

@media screen and (max-width: 580px) {
  .burger-menu {
    max-width: 300px;
    min-width: 190px;
  }
}

@media screen and (max-width: 480px) {
  .yandex-logo {
    height: 20px;
  }

  .date {
    font-size: 20px;
  }

  .weather th {
    padding: 0px 7px;
    width: 30%;
  }

  .weather tr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .weather td:first-child {
    white-space: inherit;
  }

  .weather td:nth-child(3) {
    margin-right: 15px;
  }

  .weather-header {
    width: 100%;
    margin-bottom: 5px;
  }

  .weather td {
    font-size: 11px;
    line-height: 16px;
    padding: 5px 1px 0px;
    width: 15%;
  }

  .weather td img {
    width: 35px;
  }

  .weather td:nth-child(2) {
    font-weight: 400;
    padding-left: 0px;
  }

  .weather {
    margin-top: 5px;
  }
}

@media screen and (max-width: 414px) {
  header img {
    width: 30px;
    height: 30px;
  }

  .socials {
    margin-right: 10px;
  }

  .main-footer .counts {
    margin-left: 10px;
  }

  .main-header .logo-text {
    font-size: 15px;
  }

  .clients.icon {
    padding: 3px 10px;
  }

  .camera-actions li.active {
    border-radius: 5px 5px 0 0;
  }

  .camera-actions li {
    padding: 5px 8px;
    font-size: 9px;
  }

  .show-camera {
    width: 100%;

    padding-right: 10px;
    padding-left: 10px;
  }

  .show-camera .camera-title {
    font-size: 12px;
  }

  .camera-section {
    min-width: 260px;
    max-width: 170px;
  }
}

@media screen and (max-width: 360px) {
  .weather th:last-child {
    margin-left: 8px;
    margin-right: 10px;
  }
}

@media screen and (max-width: 320px) {
  .camera-descript {
    width: 100%;
    height: auto;
    margin-bottom: 50px;
  }

  .yandex-logo {
    height: 16px;
  }

  .weather th:last-child {
    margin-right: 10px;
    margin-left: 17px;
  }

  .date {
    font-size: 16px;
  }

  .forecast img {
    width: 30px;
  }

  .forecast .temp {
    font-size: 15px;
  }

  .show-camera .camera-title .camera-name {
    font-size: 12px;
  }

  .show-camera .camera-title .user {
    width: 15px;
  }

  .show-camera .camera-title .viewers-num {
    font-size: 10px;
    /* font-family: "Roboto", sans-serif; */
  }

  .camera-descript p {
    font-size: 12px;
  }

  .weather th {
    width: 20%;
    font-size: 12px;
    padding: 0px 6px;
  }

  .weather tr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .weather td:first-child {
    white-space: inherit;
  }

  .weather td:nth-child(3) {
    margin-right: 15px;
  }

  .weather-header {
    width: 100%;
    margin-bottom: 5px;
  }

  .weather td {
    font-size: 11px;
    line-height: 16px;
    padding: 5px 1px 0px;
    width: 15%;
  }

  .weather td img {
    width: 30px;
  }

  .weather td:nth-child(2) {
    font-weight: 400;
    padding-left: 0px;
  }
}

@media screen and (max-width: 280px) {
  .main-footer .number {
    font-size: 20px;
    text-align: center;
  }

  .main-footer .text {
    font-size: 6px;
  }

  .socials img {
    width: 18px;
    height: 18px;
  }

  .show-camera {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .camera-section {
    min-width: 230px;
    max-width: 170px;
  }

  .cam-title {
    font-size: 13px;
  }

  .weather th {
    width: 25%;
    font-size: 12px;
    padding: 0px 2px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fadeIn {
  animation-name: fadeIn;
  animation-duration: 2.5s;
}

.search-box {
  width: fit-content;
  height: fit-content;
}

.input-search {
  width: 50px;
  border-style: none;
  padding: 0px 0px 0px 3px;
  font-size: 20px;
  letter-spacing: 2px;
  outline: none;
  border-bottom: 1px solid transparent;
  transition: all 0.5s ease-in-out;
  padding-right: 50px;
  color: rgba(92, 64, 64, 0.5);
}

.input-search::placeholder {
  color: rgba(92, 64, 64, 0.5);
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 100;
}

.btn-search {
  border-style: none;
  font-size: 20px;
  font-weight: bold;
  outline: none;
  cursor: pointer;
  background-color: transparent;
  pointer-events: painted;
}

.btn-search:focus ~ .input-search {
  width: 250px;
  border-radius: 0px;
  background-color: transparent;
  border-bottom: 1px solid rgba(41, 169, 224, 0.5);
  transition: all 500ms cubic-bezier(0, 0.11, 0.35, 2);
}

.input-search:focus {
  width: 250px;
  border-radius: 0px;
  background-color: transparent;
  border-bottom: 1px solid rgba(41, 169, 224, 0.5);
  transition: all 500ms cubic-bezier(0, 0.11, 0.35, 2);
}




/* ==================== ОСНОВНОЙ БЛОК ==================== */
/* .promo-header-btn {
  display: inline-block;
  width: fit-content;
  border: 2px solid #fff;
  border-radius: 5px;
  padding: 7px;
  text-align: center;
  line-height: 1.5;
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  text-decoration: none;
  color: #fff;
  background: transparent;
} */


.promo-header-btn {
  background: transparent;
  color: white;
  border: none;
  padding: 7px;
  border: 2px solid #fff;
  border-radius: 5px;
  line-height: 1.5;
  margin-right: 10px;
  white-space: nowrap;           /* ← важно: текст не переносится */
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  flex-shrink: 0;                /* не сжимается */

}

.promo-header-btn:hover {
  background-color: #fff;
  color: #00a6df;
}


.feature-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  pointer-events: none;

  /* Важно для iPhone: учитываем безопасные области */
  padding-bottom: env(safe-area-inset-bottom);
  max-height: calc(100dvh - 40px);   /* предотвращает выход за экран */
}

.feature-box.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Контент */
.feature-content {
  position: relative;
}

.feature-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Кнопка закрытия */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #eee;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #ffffff;
  transform: scale(1.08);
}

.close-btn span {
  font-size: 22px;
  color: #666;
  line-height: 1;
}

/* Текстовая часть */
.feature-body {
  padding: 24px 28px 32px;
  text-align: center;
}

.feature-body p {
  color: #555;
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 6px;
}

.feature-body .highlight {
  /* font-size: 19.5px; */
  color: #222;
  margin: 10px 0 24px 0;
}

.feature-body strong {
  color: #29a9e0;
  font-weight: 700;
  font-size: 17px;
}

/* Кнопка действия */
.action-btn {
  display: inline-block;
  background: #00a6df;
  color: white;
  padding: 15px 36px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.action-btn:hover {
  transform: translateY(-2px);
}

/* ==================== АДАПТИВНОСТЬ ==================== */


@media (max-width: 768px) {
  .promo-header-btn {
    padding: 7px 14px;
    font-size: 14px;
  }
}


@media (max-width: 480px) {
  .promo-header-btn {
    margin-left: 6px;
    padding: 6px 12px;
    font-size: 13.5px;
  }
}

/* Для экранов 375px и меньше (iPhone 6–16, SE и большинство Android) */
@media (max-width: 375px) {
  

  .feature-box {
    width: 92%;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 4%;
    border-radius: 14px;
  }

  .feature-body {
    padding: 20px 22px 28px;
  }

  .feature-body p {
    font-size: 16.2px;
  }

  .feature-body .highlight {
    font-size: 18.2px;
    margin: 8px 0 22px 0;
  }

  .action-btn {
    padding: 14px 30px;
    font-size: 16px;
    /* width: 100%; */
    max-width: 280px;
    border-radius: 9px;
  }

  .close-btn {
    width: 34px;
    height: 34px;
  }

  .close-btn span {
    font-size: 22px;
  }
}

/* Для очень маленьких экранов (ниже 360px) */
@media (max-width: 360px) {
  .feature-box {
    width: 94%;
    bottom: 14px;
  }

  .feature-body {
    padding: 18px 20px 26px;
  }

  .feature-body p {
    font-size: 15.8px;
  }

  .feature-body .highlight {
    font-size: 17.8px;
  }
}






.insert-block {


  margin-bottom: 10px;
  margin-right: 10px;

  background: #fff;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-wrap {
  width: 100%;
  height: 100%;
}


/* ==================== VIDEO ADS ==================== */

.under-video-ad {
    width: 100%;
    margin: 20px auto;
    padding: 10px;
    display: flex;
    gap: 12px;
    align-items: stretch;
}


/* видео + яндекс */
.custom-ad,
.yandex-ad {
    overflow: hidden;
    position: relative;
}


/* два твоих видео */
.custom-ad {
    flex: 1;
    aspect-ratio: 5 / 4;
    max-width: 320px;
}


/* видео */
.custom-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}





/* ==================== ПОЛНОШИРИННАЯ РЕКЛАМА ==================== */
.caramel-ad-fullwidth {
  width: 100%;
  margin: -5px 0 5px 0;
  
}

.caramel-ad-fullwidth.hidden {
  display: none !important;
}



/* Контейнер для Caramel */
.caramel-ad-fullwidth div[caramel-id] {
  width: 728px;
}


/* ==================== МОБИЛЬНАЯ РЕКЛАМА СНИЗУ ==================== */
.mobile-bottom-ad {
  display: none;
}

.mobile-only-ad {
  display: none;
}

/* На мобильных показываем мобильный блок и прячем десктопный */
@media screen and (max-width: 991px) {
  .under-video-ad > div[caramel-id="01kvwt8yqzampf2nz0cbn51bxx"] {
    display: none !important;
  }

  .mobile-only-ad {
    display: block !important;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    z-index: 1;
  }
}

@media screen and (max-width: 1024px) {
  .mobile-bottom-ad {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 50px; /* высота .main-footer, чтобы реклама была над ней */
    z-index: 1;
    width: 100%;
    text-align: center;
    background: #fff;
  }

  /* Освобождаем место под фикс-рекламу, чтобы она не перекрывала контент */
  .show-camera {
    padding-bottom: 130px;
  }
}









/* ====================== ОПИСАНИЕ ВНУТРИ ЗАГОЛОВКА ====================== */
.camera-name-wrapper {
  flex-grow: 1;
  /* padding: 0 10px; */
  min-width: 0; /* важно для переноса */
}

.camera-descript {
  /* margin-top: 6px; */
  font-size: 14px;
}

.camera-descript .toggle-descript {
  background: none;
  border: none;
  color: #29a9e0;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.camera-descript .toggle-descript:hover {
  background: #f0f7ff;
}

.camera-descript .arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.descript-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
  overflow: hidden;
}


.descript-body p {
  overflow: hidden;
}


.descript-body.expanded {
  grid-template-rows: 1fr;
  padding-top: 8px;
}

/* Стили для camera-title */
.camera-title {
  position: relative;
  display: flex;
  align-items: flex-start;
  background: #fff;
  box-shadow: 0px 2px 2px 0px #a3a3a3;
  padding: 10px 12px;
  gap: 10px;
}

.camera-title-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Адаптив */
@media screen and (max-width: 991px) {

  .camera-title {
    display: block;
    padding: 10px;
  }

  .camera-name-wrapper {
    width: 100%;
  }

  .camera-title-right {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
  }

  .camera-descript {
    width: 100%;
  }

}









/* ===== Мобильный поиск в списке камер ===== */
.cameras-search-box {
  display: none;
  padding: 8px 12px 10px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.input-search-cameras {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  outline: none;
  background: #f8f9fa;
  color: #333;
  transition: border-color 0.2s, background 0.2s;
}

.input-search-cameras:focus {
  border-color: #29a9e0;
  background: #fff;
}

.input-search-cameras::placeholder {
  color: #999;
  font-size: 14px;
}

/* Кнопка «← Локации» */
.cam-title .closer {
  float: right;
  margin-right: 12px;
  cursor: pointer;
  color: #29a9e0;
  font-weight: 600;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.cam-title .closer:hover {
  background: #e8f6fc;
}

/* Показываем поиск только на мобильных, когда открыт список камер */
@media screen and (max-width: 991px) {
  .cameras-search-box {
    display: block;
  }

  .cam-title .closer {
    visibility: visible;
  }

  /* Немного места под поиск */
  .cameras {
    max-height: calc(100% - 90px);
  }
}