*,
*::before,
*::after {
	padding: 0;
	margin: 0;
	border: 0;
	box-sizing: border-box;
}
a {
	text-decoration: none;
}
ul,
ol,
li {
	list-style: none;
}
img {
	vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: inherit;
	font-size: inherit;
}
html,
body {
	height: 100%;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1;
	color: #111;
	background: #f5f5f5;
}

.page {
	max-width: 550px;
	min-width: 230px;
	height: 100%;
	margin: 0 auto;
}

.page__title {
	margin: 20px auto;
	font-size: 80px;
	font-weight: 200;
	text-align: center;
	color: #b83f45;
}

.todo {
	position: relative;
	max-width: 550px;
	background-color: #fff;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .2), 0 25px 50px 0 rgba(0, 0, 0, .1);
}

.todo__all-btn{
	position: absolute;
	display: none;
}

.todo__all-btn::before {
	content: "❯";
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	font-size: 24px;
	color: #949494;
	cursor: pointer;
	-webkit-transform: rotate(90deg);
	transform: rotate(90deg)
}

._all.todo__all-btn::before {
	color: #484848;
}

.todo__main-input {
	width: 100%;
	height: 65px;
	padding: 16px 16px 16px 60px;
	font-size: 24px;
	background-color: rgba(0, 0, 0, .003);
	box-shadow: inset 0 -2px 1px rgba(0, 0, 0, .03);
	outline: none;
}

.todo__main-input:focus {
	box-shadow: 0 0 2px 2px #cf7d7d;
}

.todo__main-input::placeholder {
	font-style: italic;
	color: #afafaf;
}

.todo__list {
	margin-top: 2px;
	font-size: 24px;
}

.todo__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 13px;
	width: 100%;
	padding: 10px;
	background-color: #fff;
	border-bottom: 1px solid #ddd;
}

.todo__item._completed .todo__text {
	text-decoration: line-through;
	color: #949494;
}

.todo__item .todo__text {
	flex-grow: 1;
	cursor: pointer;
}

.todo__checkbox {
	position: absolute;
	z-index: 2;
	width: 30px;
	height: 30px;
	margin-left: 5px;
	opacity: 0;
	cursor: pointer;
}


.todo__icon {
	width: 40px;
	height: 40px;
	cursor: pointer;
	user-select: none;
}

.todo__icon::before {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-3%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23949494%22%20stroke-width%3D%223%22/%3E%3C/svg%3E'); /* SVG для обычного состояния */
	background-size: cover;
}

.todo__checkbox:checked+.todo__icon::before {
	background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-3%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%2359A193%22%20stroke-width%3D%223%22/%3E%3Cpath%20fill%3D%22%233EA390%22%20d%3D%22M72%2025L42%2071%2027%2056l-4%204%2020%2020%2034-52z%22/%3E%3C/svg%3E'); /* SVG для checked состояния */
	background-size: cover;
}

.todo__text {
	max-width: 89%;
	word-break: break-all;
}

.todo__del-item {
	position: absolute;
	right: 20px;
	display: none;
	padding: 8px 10px;
	font-size: 18px;
	color: #949494;
	cursor: pointer;
}

.todo__del-item:hover {
	color: #c18585;
}

.todo__del-item:active {
	box-shadow: 0 0 2px 2px #cf7d7d;
}

.todo__item:hover .todo__del-item {
	display: inline;
}

.todo__input {
	position: absolute;
	right: 1px;
	z-index: 2;
	width: 99.5%;
	padding: 15px 15px 15px 60px;
	font-size: 24px;
	outline: invert;
}
.todo__input:focus {
	box-shadow: 0 0 2px 2px #cf7d7d;
	outline: none;
}

.todo__footer {
	display: none;
	justify-content: space-between;
	align-items: center;
	min-height: 45px;
	padding: 10px 15px;
	font-size: 15px;
	border-top: 1px solid #e6e6e6;
}

.todo__footer:before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 50px;
	box-shadow: 0 1px 1px rgba(0,0,0,.2),0 8px 0 -3px #f6f6f6,0 9px 1px -3px rgba(0,0,0,.2),0 16px 0 -6px #f6f6f6,0 17px 2px -6px rgba(0,0,0,.2);
	overflow: hidden;
}

.footer__main {
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 70%;
}

.todo__count {
	margin-right: 5px;
	cursor: default;
}

.todo__filter-btn {
	margin-right: 5px;
	padding: 5px 7px;
	font-size: 15px;
	background-color: transparent;
	border: 1px solid transparent;
	border-radius: 3px;
	cursor: pointer;
	outline: none;
}

.todo__filter-btn:not(:last-child) {
	margin-right: 5px;
}

.todo__filter-btn:hover {
	border: 1px solid #cf7d7d;
}
.todo__filter-btn:focus {
	box-shadow: 0 0 2px 2px #cf7d7d;
}

.todo__filters ._active-filter {
	border: 1px solid #ce4646;
}

.todo__clear {
	z-index: 1;
	padding: 2px 1px;
	font-size: 15px;
	background-color: transparent;
	border: 1px solid transparent;
	cursor: pointer;
	outline: none;
}

.todo__clear:hover {
	text-decoration: underline;
}

.todo__clear:focus {
	box-shadow: 0 0 2px 2px #cf7d7d;
}

@media (max-width: 480px) {
	.todo__main-input {
		height: 50px;
		font-size: 18px;
	}
	.todo__all-btn::before {
		top: 6px;
		left: 13px;
		width: 38px;
		height: 38px;
	}
	.todo__item {
		padding: 5px 10px;
	}
	.todo__list {
		font-size: 18px;
	}
	.todo__input {
		padding: 16px 16px 16px 51px;
		font-size: 18px;
	}
	.todo__footer {
		padding: 10px 5px;
		font-size: 12px;
	}
	.todo__filter-btn {
		margin-right: 2px;
		padding: 5px 4px;
		font-size: 12px;
	}
	.todo__clear {
		font-size: 12px;
	}
}