.apartament {
  height: 800px;
  background: url(../img/bg-obyect.png);
  padding-top: 50px;
}

.accordion-tabs li.tab-head-cont section {
  margin-top: 30px;   
}

.apartament-main {
  margin-top: 50px;
  position: relative;
  width: 500px;
  height: 263px;
  border:  2px solid #000;
  box-shadow: 0px 22px 32px 2.5px rgba(0, 0, 0, 0.28);
  margin-bottom: 50px;
}

.apartament-main__img {
    position: absolute;
    right: -610px;
    top: -2px;
    background: #fff;
    padding: 6px 20px 0 20px;
    border: 2px solid #000;
    box-shadow: 0px 22px 32px 2.5px rgba(0, 0, 0, 0.28);
}
.apartament-main__img p {
    margin-bottom: 0;
}
.apartament-main__img img {
    width: 420px;
}

.apartament-under {
  position: absolute;
  left: 0;
  width: 250px;
}

.apartament-under__item {
  position: relative;
  height: 65px;
  display: flex;
  align-items: center;
  font-size: 16px;
  text-transform: uppercase;
  font-family: 'Exo 2', sans-serif;
  font-weight: bold;
  margin-left: 20px;
}

.apartament-under__item::before {
    content: "";
    position: absolute;
    left: -20px;
    bottom: -2px;
    height: 5px;
    width: 245px;
    background: #e3c139;
}

.apartament-under__item p {
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

.apartament-under__title {

}

.apartament-under__title p {
    font-family: 'Exo 2', sans-serif;
    color: #212529;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    height: 43px;
    width: 245px;
    background: #FFE7B8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 2px 0 4px 0;
}

.apartament-under__title p:nth-child(2) {
  margin: 5px 0 0 0;
}

.apartament-under__title p:nth-child(3) {
  margin: 5px 0;
}

.apartament-main main {
  position: absolute;
  right: 0;
  min-width: 220px;
  max-width: 500px;
  width: 250px;
  margin: 0 auto;
  background: #fff;
}

.apartament-main main:before {
  content: "";
  position: absolute;
  height: 60px;
  width: 250px;
  background: grey;
  z-index: -1;
}

section.content {
  display: none;
  padding: 14px 0 0 0;
  height: 160px;
}

.apartament-main input {
  display: none;
}

.undertab {
  position: absolute;
  left: 0;
  margin-left: 20%;
  top: 10px;
}

.apartament-main main label {
  display: inline-block;
  margin: 0 0 -1px;
  width: 40px;
  height: 40px;
  font-weight: 600;
  text-align: center;
  color: #321e01;
  font-size: 24px;
}

.apartament-main main label:nth-child(2) {
  margin-left: 8%;
  margin-top: 10px;
}

.apartament-main main label:before {
  font-family: fontawesome;
  font-weight: normal;
  margin-right: 10px;
}

/* Иконки*/

/*label[for*='1']:before {
  content: '\f1cb';
}

label[for*='2']:before {
  content: '\f17d';
}

label[for*='3']:before {
  content: '\f16b';
}

label[for*='4']:before {
  content: '\f1a9';
}*/

.apartament-main main label:hover {
  color: grey;
  cursor: pointer;
}

.apartament-main main input:checked + label {
  color: #fff;
  background:  #321e01;
  font-size: 24px;
}

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4,
#tab5:checked ~ #content5,
#tab6:checked ~ #content6 {
  display: block;
}


.content {
  position: relative;
}

.content-home {
  position: absolute;
  top: -80px;
  right: -600px;
}

.content-home p {
  text-align: center;
  margin: 0;
  font-weight: 500;
}

.content-home img {
  width: 500px;
  height: auto;
}

.tabs,
.tabs2 {
    display:inline-block;
    position: relative;
}
.tabs > div,
.tabs2 > div {
    padding-top:10px;
}
.tabs ul,
.tabs2 ul{
    margin:0px;
    padding:0px;
}

.tabs ul li,
.tabs2 ul li {
    margin: 4px 2px;
    padding: 3px;
    cursor: pointer;
    display: block;
    text-align: center;
    float: left;
    width: 46px;
    height: 42px;
    background: #aeaeae;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
}
.tabs ul li.active, .tabs ul li.active:hover,
.tabs2 ul li.active, .tabs2 ul li.active:hover{
    background:#fff;
    color:#000;
    border:  4px solid #fade06;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tabs ul li:hover,
.tabs2 ul li:hover{
    background:grey;
    
}

.obyect-home {
  position: relative;
}

.obyect-home div img {
  position: absolute;
  top: 230px;
  right: -650px;
}


/* выбрано */

.apartament-result {
  position: relative;
  top: 340px;
  width: 710px;
  border:  2px solid #5e2c03;
  box-shadow: 0px 22px 32px 2.5px rgb(0 0 0 / 28%);
}

.apartament-result__home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 45px;
  padding: 0 50px;
}

.apartament-result__home-item h2 {
  font-size: 30px;
  font-weight: bold;
  font-family: 'Exo 2', sans-serif;
}

.apartament-result__home-title {
  display: flex;
}

.apartament-result__home-title p {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  font-family: 'Exo 2', sans-serif;
  margin-left: 50px;
}

.apartament-result__room {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  background: #454545;
}

.apartament-result__room p {
  margin: 0;
  text-align: center;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Exo 2', sans-serif;
  color:  #fff;
  width: 25%;
}

.apartament-result__numbers {
  height: 50px;
}

.apartament-result__total {
  position: relative;
  display: flex;
  align-items: center;
  height: 58px;
  border-top: 10px solid #5e2c03;
}

.apartament-result__total:before {
  position: absolute;
  content: "";
  left: 80px;
  top: 0;
  height: 48px;
  width: 200px;
  background: #FFE7B8;
  transform: skew(-28deg);
}

.apartament-result__total-square {
  position: relative;
  width: 115px;
  text-align: center;
  background: #FFE7B8;
  border-bottom: 0px solid #000;
}

.apartament-result__total-square:before {
  position: absolute;
  content:  "";
  top: -4px;
  left: 120px;
  width: 4px;
  height: 56px;
  background: #5e2c03;
  transform: rotate(-28deg);
}

.apartament-result__total-square:after {
  position: absolute;
  content:  "";
  top: -4px;
  left: 280px;
  width: 4px;
  height: 56px;
  background: #5e2c03;
  transform: rotate(28deg);
}

.apartament-result__total-square p {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Exo 2', sans-serif;
}

.apartament-result__total-price {
  margin-left: 190px;
  position: relative;
}

.apartament-result__total-price:before {
  position: absolute;
  content: "";
  width: 200px;
  height: 48px;
  background: #FFE7B8;
  top: -6px;
  right: -274px;
}

.apartament-result__total-price:after {
  position: absolute;
  content: "";
  width: 100px;
  height: 48px;
  background: #FFE7B8;
  top: -6px;
  right: -120px;
  transform: skew(28deg);
}

.apartament-result__total-price p {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  font-family: 'Exo 2', sans-serif;
}


/* числа */

.result-entrance,
.result-floor,
.result-flatnumber,
.area-room,
.area-kitchen,
.area-bathroom,
.area-balcony,
.obyect-totalarea,
.obyect-thecost {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  font-family: 'Exo 2', sans-serif;
  padding: 0;
  margin: 0;
  position: absolute;
}

.result-entrance {
  position: absolute;
  bottom: -315px;
  left: 115px;
}

.result-floor {
  position: absolute;
  bottom: -315px;
  left: 215px;
}

.result-flatnumber {
  position: absolute;
  bottom: -315px;
  left: 410px;
}

.area-room {
  bottom: -400px;
  left: -180px;
}

.area-kitchen {
  bottom: -400px;
  left: 0px;
}

.area-bathroom {
  bottom: -400px;
  left: 175px;
}

.area-balcony {
  bottom: -400px;
  left: 355px;
}

.obyect-totalarea {
  bottom: -460px;
  left: -60px;
}

.obyect-thecost {
  bottom: -460px;
  left: 270px;
  width: 150px;
  z-index: 5;
}




/*************/


/* Стиль вкладки */
.tabblock {
    overflow: hidden;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}

/* Стиль кнопок, которые используются для открытия содержимого вкладки */
.tabblock button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    width: 44px;
    height: 42.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #868686;
    margin: 3px 3px;
    color: #fff;
    font-weight: bold;
    font-size: 20px
}

.tabblock button.off {
    background: #fff;
}
.tabblock button.off:hover {
    background: #fff;
}

/* Изменение цвета фона кнопок при наведении курсора */
.tabblock button:hover {
  background-color: #acacac;
}

/* Создание активного/текущего класса связи вкладки */
.tabblock button.active {
    background-color: #fff;
    color: #000;
    border: 4px solid #e3c139;
    outline: none;
}

/* Стиль содержимого вкладки */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
} 

/* Стили ****************************/

.apartamentip {
    
}

.apartamentip-block {
    position: relative;
}

.apartamentip-result,
.apartamentip-home,
.apartamentip-general {
    position: absolute;
    display: flex;
    z-index: 999;
}

.apartamentip-result p,
.apartamentip-home p,
.apartamentip-general p {
    font-size: 24px;
    font-weight: 600;
}

.apartamentip-result {
    top: 90px;
    left: 130px;
}
.apartamentip-result p:nth-child(2) {
    margin-left: 80px;
}
.apartamentip-result p:nth-child(3) {
    margin-left: 190px;
}

.apartamentip-home {
    top: 175px;
    left: -232px;
    width: 690px;
    justify-content: space-between;
}

.apartamentip-home p {
    width: 200px;
    display: flex;
    justify-content: center;
}

.apartamentip-general {
    top: 235px;
    left: -85px;
}

.apartamentip-general p:nth-child(2) {
    margin-left: 235px;
    width: 200px;
}

.apartamentip-img {
    position: relative;
    left: 640px;
    top: 10px;
}

.apartamentip-img img:nth-child(1) {
    position: absolute;
    top: 50px;
    width: 190px;
}

.apartamentip-img img:nth-child(2) {
    position: absolute;
    width: 490px;
    top: -302px;
    right: 100px;
}

.tabDisabled {
    cursor: default !important;
    background: #ef6767 !important;
}
