
/*  для 2 табов  */
.ttabs {
	max-width: auto;
	margin: 0 0 0px;
}
.ttabs__caption {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	    -ms-flex-wrap: wrap;
	        flex-wrap: wrap;
	list-style: none;
	position: relative;
	margin: 0px 0 0 15px;
	text-align: center;
	width:auto;
}
.ttabs__caption li:last-child:before {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: -2px;
	z-index: -1;
	height: 5px;
	background: #7DCA86;
}
.ttabs__caption a:last-child:before {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: -2px;
	z-index: -1;
	height: 4px;
	background: #7DCA86;
}
.ttabs__caption:after {
	content: '';
	display: table;
	clear: both;
}
.ttabs__caption li {
	padding: 9px 15px;
	margin: 1px 0 0 1px;
	background: #61AF6A;
	color: #FFF;
	position: relative;
	border: solid #E4E4E4;
	border-width: 2px 2px 0;
	border-radius: 5px 5px 0 0;
	text-align: center;
}
.ttabs__caption li:not(.active) {
	cursor: pointer;
}
.ttabs__caption li:not(.active):hover {
	background: #7DCA86;
	border-color: #7DCA86;
}
.ttabs__caption a {
	padding: 5px 16%; /* ширина табов */
	margin: 0px 0 0 0px;
	background: #F4F4F4;
	color: #B0AEAE;
	position: relative;
	border: solid #E4E4E4;
	border-width: 1px 1px 0;
	border-radius: 5px 5px 0 0;
	text-align: center;
	
}
.ttabs__caption a:not(.active) {
	cursor: pointer;
}
.ttabs__caption a:not(.active):hover {
	background: #DFDDDD;
	border-color: #7DCA86;
}
.ttabs__caption .active {
	background: #FFF;
	color: #B0AEAE;
	border-color: #E4E4E4;
}
.ttabs__caption .active:after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: 0;
	height: 5px;
	background: #FFF;
}
.ttabs__content {
	display: none;
	background: #FFF;
	/*border: 2px solid #7DCA86;*/
	border-radius: 0 5px 5px 5px;
	padding: 7px 15px;
}
.ttabs__content.active {
	display: block;
}

.vertical .ttabs__caption {
	float: left;
	display: block;
}
.vertical .ttabs__caption li {
	float: none;
	border-width: 2px 0 2px 2px;
	border-radius: 5px 0 0 5px;
}
.vertical .ttabs__caption li:last-child:before {
	display: none;
}
.vertical .ttabs__caption .active:after {
	left: auto;
	top: 0;
	right: -2px;
	bottom: 0;
	width: 2px;
	height: auto;
}
.vertical .ttabs__content {
	overflow: hidden;
}

@media screen and (max-width: 650px) {

	.ttabs__caption li {
		-webkit-flex: 1 0 auto;
		    -ms-flex: 1 0 auto;
		        flex: 1 0 auto;
	}
	.vertical .ttabs__caption {
		float: none;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
	}
	.vertical .ttabs__caption li {
		border-width: 2px 2px 0;
		border-radius: 5px 5px 0 0;
	}
	.vertical .ttabs__caption li:last-child:before {
		display: block;
	}
	.vertical .ttabs__caption .active:after {
		top: auto;
		bottom: -5px;
		left: 0;
		right: 0;
		width: auto;
		height: 5px;
		background: #FFF;
	}

}


/*  для 3 табов  */
.tttabs__caption {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	    -ms-flex-wrap: wrap;
	        flex-wrap: wrap;
	list-style: none;
	position: relative;
	margin: 0px 0 0 15px;
	text-align: center;
	width:auto;
}
.tttabs__caption li:last-child:before {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: -2px;
	z-index: -1;
	height: 5px;
	background: #7DCA86;
}
.tttabs__caption a:last-child:before {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: -2px;
	z-index: -1;
	height: 4px;
	background: #7DCA86;
}
.tttabs__caption:after {
	content: '';
	display: table;
	clear: both;
}
.tttabs__caption li {
	padding: 9px 15px;
	margin: 1px 0 0 1px;
	background: #61AF6A;
	color: #FFF;
	position: relative;
	border: solid #E4E4E4;
	border-width: 2px 2px 0;
	border-radius: 5px 5px 0 0;
	text-align: center;
}
.tttabs__caption li:not(.active) {
	cursor: pointer;
}
.tttabs__caption li:not(.active):hover {
	background: #7DCA86;
	border-color: #7DCA86;
}
.tttabs__caption a {
	padding: 5px 10%; /* ширина табов */
	margin: 0px 0 0 0px;
	background: #F4F4F4;
	color: #B0AEAE;
	position: relative;
	border: solid #E4E4E4;
	border-width: 1px 1px 0;
	border-radius: 5px 5px 0 0;
	text-align: center;
	
}
.tttabs__caption a:not(.active) {
	cursor: pointer;
}
.tttabs__caption a:not(.active):hover {
	background: #DFDDDD;
	border-color: #7DCA86;
}
.tttabs__caption .active {
	background: #FFF;
	color: #B0AEAE;
	border-color: #E4E4E4;
}
.tttabs__caption .active:after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: 0;
	height: 5px;
	background: #FFF;
}



/*  для 1 таба  */
.ttabs1 {
	max-width: auto;
	margin: 0 0 0px;
}
.ttabs1__caption {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	    -ms-flex-wrap: wrap;
	        flex-wrap: wrap;
	list-style: none;
	position: relative;
	margin: 0px 0 0 15px;
	text-align: center;
	width:auto;
}
.ttabs1__caption li:last-child:before {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: -2px;
	z-index: -1;
	height: 5px;
	background: #7DCA86;
}
.ttabs1__caption a:last-child:before {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: -2px;
	z-index: -1;
	height: 4px;
	background: #7DCA86;
}
.ttabs1__caption:after {
	content: '';
	display: table;
	clear: both;
}
.ttabs1__caption li {
	padding: 9px 15px;
	margin: 1px 0 0 1px;
	background: #61AF6A;
	color: #FFF;
	position: relative;
	border: solid #E4E4E4;
	border-width: 2px 2px 0;
	border-radius: 5px 5px 0 0;
	text-align: center;
}
.ttabs1__caption li:not(.active) {
	cursor: pointer;
}
.ttabs1__caption li:not(.active):hover {
	background: #7DCA86;
	border-color: #7DCA86;
}
.ttabs1__caption a {
	padding: 5px 39%; /* ширина табов */
	margin: 0px 0 0 0px;
	background: #F4F4F4;
	color: #B0AEAE;
	position: relative;
	border: solid #E4E4E4;
	border-width: 1px 1px 0;
	border-radius: 5px 5px 0 0;
	text-align: center;
	
}
.ttabs1__caption a:not(.active) {
	cursor: pointer;
}
.ttabs1__caption a:not(.active):hover {
	background: #DFDDDD;
	border-color: #7DCA86;
}
.ttabs1__caption .active {
	background: #FFF;
	color: #B0AEAE;
	border-color: #E4E4E4;
}
.ttabs1__caption .active:after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: 0;
	height: 5px;
	background: #FFF;
}
.ttabs1__content {
	display: none;
	background: #FFF;
	/*border: 2px solid #7DCA86;*/
	border-radius: 0 5px 5px 5px;
	padding: 7px 15px;
}
.ttabs1__content.active {
	display: block;
}

.vertical .ttabs1__caption {
	float: left;
	display: block;
}
.vertical .ttabs1__caption li {
	float: none;
	border-width: 2px 0 2px 2px;
	border-radius: 5px 0 0 5px;
}
.vertical .ttabs1__caption li:last-child:before {
	display: none;
}
.vertical .ttabs1__caption .active:after {
	left: auto;
	top: 0;
	right: -2px;
	bottom: 0;
	width: 2px;
	height: auto;
}
.vertical .ttabs1__content {
	overflow: hidden;
}

@media screen and (max-width: 650px) {

	.ttabs1__caption li {
		-webkit-flex: 1 0 auto;
		    -ms-flex: 1 0 auto;
		        flex: 1 0 auto;
	}
	.vertical .ttabs1__caption {
		float: none;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
	}
	.vertical .ttabs1__caption li {
		border-width: 2px 2px 0;
		border-radius: 5px 5px 0 0;
	}
	.vertical .ttabs1__caption li:last-child:before {
		display: block;
	}
	.vertical .ttabs1__caption .active:after {
		top: auto;
		bottom: -5px;
		left: 0;
		right: 0;
		width: auto;
		height: 5px;
		background: #FFF;
	}

}

/* свойства модального окна по умолчанию */
.modal {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: .3s;
  transition: .3s;
  top: -1000px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  overflow-y: scroll;
  padding: 60px 15px;
}

.modal_active {
  position: fixed;
  top: 0;
  visibility: visible;
  opacity: 1;
  -webkit-transition: .3s;
  transition: .3s;
}

.modal__content {
  width: 100%;
  max-width: 500px;
  padding: 50px;
  background: #f9f9f9;
  -webkit-box-shadow: 0 5px 15px black;
          box-shadow: 0 5px 15px black;
  border-radius: 3px;
  position: relative;
}

.modal__close-button {
  background: #ff0000;
  height: 30px;
  width: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border: none;
  position: absolute;
  right: 0;
  top: 0;
  background: none;
  cursor: pointer;
  -webkit-transition: .3s;
  transition: .3s;
  outline: none;
}

.modal__close-button:hover {
  -webkit-transition: .3s;
  transition: .3s;
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.modal__title {
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: 0 0 15px;
}

.modal__description {
  font-size: 1.125rem;
}