* {
  padding: 0;
  margin: 0;
  list-style: none;
  outline: none;
  font-family: "Open Sans", sans-serif;
  box-sizing: border-box;
  font-size: 18px;
  font-weight: 400;
  line-height: 130%;
  color: var(--dark);
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  cursor: pointer;
}

ul li {
  list-style: none;
}

button {
  border: none;
}

img {
  display: block;
  -webkit-backface-visibility: hidden; 
  -ms-transform: translateZ(0); /* IE 9 */
  -webkit-transform: translateZ(0); /* Chrome, Safari, Opera */
  transform: translateZ(0);
}
svg {
  display: block;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
html.scroll-hidden {
  overflow: hidden;
}
html.scroll-hidden body {
  overflow-y: hidden !important;
  touch-action: none;
  -ms-touch-action: none;
  -webkit-overflow-scrolling: none;
  overscroll-behavior: none;
}
::-webkit-scrollbar {
  height: 5px;
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background: var(--white);
}
body {
  width: 100%;
  color: var(--black-main);
  /*background-color: #FDFDFD;*/
  overflow: hidden;
}
main {
  overflow-y: visible;
}
.container {
  width: 1440px;
  margin: 0 auto;
}

h1 {
  font-size: 52px;
  line-height: 110%;
  font-weight: 600;
}
h2 {
  font-size: 40px;
  line-height: 100%;
  font-weight: 600;
}
h3 {
  font-size: 36px;
  line-height: 120%;
}
h4 {
  font-size: 24px;
  line-height: 120%;
  font-weight: 600;
}

.mt-16 {
	margin-top: 16px;
}
.mt-32 {
    margin-top: 32px;
}
.mt-40 {
    margin-top: 40px;
}
.mt-48 {
    margin-top: 48px;
}


/* SWIPER */
.swiper-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%) translateX(-30px);
    width: calc(100% + 60px);
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
    z-index: 3;
    pointer-events: none;
}

.custom-prev, .custom-next {
    width: 60px;
    height: 60px;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0px 1.67px 3.3299999237060547px 0px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.8);
    pointer-events: all;
    background-image: url('/local/assets/eltex-doma/img/doma-new/swiper-arrow-blue.svg');
    background-repeat: no-repeat;
    background-position: center;
}
.custom-prev {
  transform: rotate(180deg);
}
.custom-prev::before, .custom-next::before {
    border-radius: 50% !important;
}

.swiper-button-disabled {
  opacity: .1;
  cursor: auto;
}
/* */


/* MAIN */
main {
  position: relative;
}

.welcome {
  position: relative;
  padding: 240px 0 136px;
}
.welcome .container {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.welcome picture img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: bottom;
  z-index: -1;
}
.welcome h1 {
  position: relative;
  z-index: 3 ;
  color: var(--white);
  padding-left: 24px;
}
.welcome_cards {
  margin-top: 100px;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  color: #fff;
}
.welcome_cards-item {
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  min-height: 300px;
}
.welcome_cards-item-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
}
.welcome_cards-item .button {
  margin-top: 32px;
}
.welcome_cards-item .substract {
  position: absolute;
  top: 24px;
  right: 24px;
}
.welcome_cards-item .substract img {
  width: 32px;
  height: 32px;
}

/* CONTROL */
.control {
}
.control_cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.control_cards-item {
  height: 575px;
  padding: 32px;
  border-radius: 20px;
  background: var(--background);
  position: relative;
  overflow: hidden;
}
.control_cards-item::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 350px;
  height: 350px;
  transform: translateX(-50%);
  background: var(--accent);
  filter: blur(80px);
  opacity: .8;
}
.control_cards-item-content {
  max-width: 550px;
}
.control_cards-item-content p {
  margin-top: 16px;
}
.control_cards-item .control_cards-item-bg {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
}
.control_cards-item .home-icon {
  width: 75px;
  height: 75px;
  position: absolute;
  bottom: 32px;
  left: 32px;
}
.control_cards-item:first-of-type .control_cards-item-bg {
  max-width: 315px;
}
.control_cards-item:last-of-type .control_cards-item-bg {
  bottom: 14%;
  max-width: calc(100% - 110px);
}

/* DEVICES */
.devices {
  margin-top: 100px;
  overflow: visible !important;
}
.devices_cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* gap: 24px; */
}
.devices_cards-item {
  position: relative;
  display: flex !important;
  flex-direction: column;
  height: auto !important;
}
.devices_cards-item .labels-accent {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  gap: 8px;
  top: 24px;
  right: 24px;
}
.devices_cards-item .label {
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  padding: 8px 16px;
  width: fit-content;
  z-index: 2;
  border-radius: 10px;
}
.devices_cards-item .label.-soon {
  color: var(--white);
  position: absolute;
  top: 24px;
  left: 24px;
  background: #FFFFFF3E;
}
.devices_cards-item .label.-accent {
  color: var(--accent);
  background: var(--white);
}
.devices_cards-item img {
  width: 100%;
  border-radius: 20px;
}
.devices_cards-item .substract {
  position: absolute;
  top: 24px;
  right: 24px;
}
.devices_cards-item .substract img {
  width: 32px;
  height: 32px;
}
.devices_cards-item-content {
  margin-top: 16px;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}
.devices_cards-item-content p {
  margin-top: 12px;
}
.devices_cards-item-actions {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}
.button-markets {
  position: relative;
}
.button-markets_asside .root {
  display: none;
  width: 175px;
  height: 20px;
  position: absolute;
  left: 0;
  bottom: -15px;
}
.button-markets_asside .list {
  width: 175px;
  height: 0;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity .2s ease;
}
.button-markets_asside.active .root {
  display: block;
}
.button-markets_asside.active .list {
  opacity: 1;
  height: auto;
}
.button-markets_asside.active li {
  display: block;
}
.button-markets_asside .list a {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  transition: all .2s ease;
}
.button-markets_asside .list a img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
@media (hover: hover) {
	.custom-prev:hover, .custom-next:hover {
		background: rgba(255, 255, 255, 1);
		background-image: url('/local/assets/eltex-doma/img/doma-new/swiper-arrow-blue.svg');
		background-repeat: no-repeat;
		background-position: center;
	}
  .button-markets_asside .list a:hover {
    background: var(--extra-blue);
    color: var(--accent);
  }
}

@media screen and (max-width: 1500px) {
  .container {
    width: 1200px;
  }
  .devices_cards-item .substract {
    padding: 15px;
  }
}
@media screen and (max-width: 1240px) {
  .container {
    width: 992px;
  }
  .welcome {
    /* min-height: calc(100dvh + 48px); */
    height: 100%;
  }
  .control_cards-item {
    height: 464px;
  }
  .control_cards-item-content h4, .control_cards-item-content p {
    position: relative;
    z-index: 2;
  }
  .control_cards-item:first-of-type .control_cards-item-bg {
    max-width: 240px;
  }
  .devices_cards-item .substract {
    padding: 13px;
    border-radius: 11px;
  }
  .devices_cards-item .substract img {
    width: 25px;
    height: 25px;
  }
  .devices_cards-item-actions {
    flex-direction: column;
  }
  .devices_cards-item-actions > * {
    width: 100% !important;
    display: flex;
    justify-content: center !important;
  }
}

@media (max-width: 992px) {
  .container {
    width: 100%;
    padding: 0 40px;
  }
  .welcome {
    position: relative;
  }
  .welcome picture img {
    /* height: calc(100% + 32px); */
    top: 0;
    object-position: top;
  }
  .welcome_cards {
    grid-template-columns: 1fr;
  }
  .control_cards {
    grid-template-columns: 1fr;
  }
  .control_cards-item:last-of-type .control_cards-item-bg {
    bottom: 10%;
    max-width: initial;
    max-height: 50%;
  }
  .devices {
    overflow: visible !important;
  }
  .devices_cards-item .substract {
    display: none;
  }
}
@media (max-width: 768px) {
	.swiper-nav {
		display: none;
	}
  .devices-thumbs {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
  }
  .devices-thumbs_elem {
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0px 1.54px 3.07px 0px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  .devices-thumbs_elem.active:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1px;
    border-radius: 12px;
    background: linear-gradient(180deg, #001B8666, #001B8629, #001B86A3);
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  .button-markets_asside.active .root,
  .button-markets_asside.active .list {
    width: 100%;
  }
}
@media (max-width: 520px) {

  .welcome {
    padding: 102px 0 72px;
  }
  .welcome h1 {
    padding-left: 0;
  }
  .welcome_cards {
    margin-top: 48px;
  }
  .welcome_cards-item {
    padding: 16px;
    border-radius: 10px;
    min-height: initial;
  }
	.devices_cards-item {
		max-width: 240px;
	}
	.devices_cards-item .label {
		font-size: 10px;
		line-height: 12px;
		padding: 4px 8px;
		border-radius: 8px;
	}
	.devices_cards-item .label.-soon {
		left: 16px;
		top: 16px;
	}
	.devices_cards-item .labels-accent {
		top: 16px;
		right: 16px;
		gap: 4px;
	}
	.devices_cards-item img {
		border-radius: 16px;
	}
  .welcome_cards-item-content {
    gap: 8px;
  }
	.welcome_cards-item h3 {
  		font-size: 20px;
		max-width: calc(100% - 32px);
	}
  .welcome_cards-item p {
    font-size: 14px;
    line-height: 120%;
    max-width: 93%;
    min-height: 84px;
  }
  .welcome_cards-item .button {
    margin-top: 24px;
  }
  .welcome_cards-item .substract {
    top: 16px;
    right: 16px;
  }
  .welcome_cards-item .substract img {
    width: 20px;
    height: 20px;
  }
  .welcome_cards-item.-glass-border::before {
    border-radius: 10px;
  }

  .control_cards {
    margin-top: 32px;
    gap: 16px;
  }
  .control_cards-item {
    padding: 16px;
    border-radius: 16px;
    height: 360px;
  }
  .control_cards-item-content p {
    margin-top: 8px;
  }
  .control_cards-item-content p br {
    display: none;
  }
  .control_cards-item:first-of-type .control_cards-item-bg {
    max-width: 180px;
  }
  .control_cards-item .home-icon {
    width: 46px;
    height: 46px;
    bottom: 16px;
    left: 16px;
  }
  .control_cards-item::before {
    width: 250px;
    height: 250px;
  }

  .devices {
    margin-top: 64px;
  }
  .devices_cards {
    margin-top: 16px;
  }
  .devices_cards-item-content {
    margin-top: 8px;
  }
  .devices_cards-item-content p {
    margin-top: 8px;
  }
  .devices_cards-item-actions {
    margin-top: 16px;
  }
  .devices_modal {
    align-items: flex-end;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;    
  }
  .devices_modal.active {
    display: flex !important;
  }
  .devices_modal .bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #00052166;
  }
  .devices_modal-list {
    width: 100%;
    height: fit-content;
    background: var(--white);
    border-radius: 12px 12px 0 0;
    padding: 16px 20px;
    z-index: 2;
    position: relative;
  }
  .devices_modal-list h5 {
    font-size: 16px;
    font-weight: 600;
  }
  .devices_modal-list .markets {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .devices_modal-list .markets a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
  }
  .devices_modal-list .markets a img {
    width: 40px;
    height: 40px;
  }
  .devices_modal-list .close {
    position: absolute;
    top: 16px;
    right: 16px;
  }
}