.d-flex {
	display: flex;
}
.grid {
	padding-right: 2rem;
}
.exercise,
#exercise {
	background: #f0e6d7;
}

.set-rows-count {
	position: relative;
	left: -15px;
	top: -5px;
	display: block;
	width: 70px;
	height: 60px;
	float: left;
	margin: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}
.set-rows-count--3 {
	margin-right: -5px;
	background-image: url(../images/a24/icon_3-riadky_inactive_2x.png);
}
.set-rows-count--3.is-active {
	background-image: url(../images/a24/icon_3-riadky_active_2x.png);
}
.set-rows-count--4 {
	background-image: url(../images/a24/icon_4-riadky_inactive_2x.png);
}
.set-rows-count--4.is-active {
	background-image: url(../images/a24/icon_4-riadky_active_2x.png);
}

.set-mode {
	position: relative;
	left: -10px;
	display: block;
	width: 80px;
	height: 60px;
	float: left;
	margin: 0 10px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}
.set-mode--1 {
	background-image: url(../images/a24/icon_piktograf-tabulka_inactive_2x.png);
}
.set-mode--1.is-active {
	background-image: url(../images/a24/icon_piktograf-tabulka_active_2x.png);
}
.set-mode--2 {
	background-image: url(../images/a24/icon_tabulka-piktograf_inactive_2x.png);
}
.set-mode--2.is-active {
	background-image: url(../images/a24/icon_tabulka-piktograf_active_2x.png);
}

.ex-wrap {
	justify-content: center;
}
.ex-do {
	justify-content: center;
	padding: 100px 50px;
}
.ex-do img {
	width: 80px;
	height: auto;
}
.ex-items,
.ex-table {
	flex-direction: column;
}
.ex-items {
	justify-content: space-between;
	padding-right: 30px;
}
.ex-table {
	min-width: 520px;
	border: 3px dashed #71717A;
	border-radius: 30px;
}
.table-items,
.table-count {
	align-items: center;
}
.table-items {
	flex: 1;
	justify-content: flex-start;
	min-height: 80px;
	padding: 0 15px;
}
.table-row {
	min-height: 80px;
	border-top: 3px dashed #71717A;
}
.table-row:first-child {
	border-top: 0;
}
.table-count {
	justify-content: center;
	min-width: 80px;
	border-left: 3px dashed #71717A;
	font-size: 28px;
	font-weight: 700;
	color: #0049a0;
}
.ex-def {
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .2px;
	color: #71717A;
}
.def-sign {
	padding: 0 15px 0 5px;
}

.task[data-rows="3"] .ex-items img:last-child,
.task[data-rows="3"] .table-row:last-child {
	display: none;
}

.task[data-mode="1"] .table-row {
	flex-direction: row-reverse;
}
.task[data-mode="1"] .table-count {
	border-left: 0;
	border-right: 3px dashed #71717A;
}
.task[data-mode="2"] .table-items {
	cursor: default;
}

@media all and (max-width: 1020px) {

	.ex-wrap {
		flex-direction: column-reverse;
	}
	.ex-def {
		padding-top: 50px;
	}
	.ex-do {
		padding: 25px;
	}

}