@import url("https://fonts.googleapis.com/css?family=Lato:regular,700&display=swap");
body {
	font-family: "Lato", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	overflow-x: hidden;
}
.wrapper {
	overflow: clip;
	min-height: 100%;
	max-width: 980px;
	display: flex;
	flex-direction: column;
	row-gap: 30px;
	margin: 0 auto;

	padding: 3rem 1rem 1rem;
	position: relative;
}
/* -----------------------search---- */
.search-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;

	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}
.search-input {
	width: 100%;
	padding: 10px 40px 10px 15px;
	border: 1px solid rgba(49, 51, 63, 0.2);
	border-radius: 10px;
	font-size: 16px;
	outline: none;
	transition: border-color 0.3s ease;
}
.search-input:focus {
	border-color: #e51a4b;
	box-shadow: 0 0 5px rgba(229, 26, 75, 0.35);
}
.search-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	max-height: 350px;
	width: 100%;
	background: #fff;
	border: 1px solid rgba(49, 51, 63, 0.2);
	border-radius: 10px;
	margin-top: 10px;
	padding: 0;

	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	z-index: 10;
	display: none;
	overflow-y: auto;
    overflow-x: hidden; /* Запрещаем горизонтальную прокрутку */
    border-radius: 10px; /* Оставляем закругленные углы */
    clip-path: inset(0); /* Ограничиваем видимость содержимого внутри границ */
}

.search-suggestions li {
	padding: 10px;
	font-size: 16px;
	cursor: pointer;
	border-radius: 10px;
	transition: background-color 0.3s ease;
}
.search-suggestions li:hover {
	background-color: rgb(240, 242, 246);
}
.search-container:focus-within .search-suggestions {
	display: block;
}
.search-container button {
	background-color: #e51a4b;
	color: white;
	padding: 10px 15px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s ease;
}
.search-container button:hover {
	background-color: rgb(240, 242, 246);
	color: #e51a4b;
	box-shadow: 0 0 5px #e51a4b;
}
/* ----------------------- */
.audio {
	width: 100%;
	display: block;
}
.audio-container audio.disabled {
	pointer-events: none;
}
/* ----------------------- */
.navigation {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 25px;
}
.navigation form {
	flex: 1;
	display: flex;
}
.nav-button {
	/*font-size: 18px;*/
	font-weight: 700;
	position: relative;
	background-color: rgb(240, 242, 246);
	color: black;
	border-radius: 20px;
	border: 1px solid rgba(49, 51, 63, 0.2);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px;
	flex: 1;
	transition: background-color 0.3s ease;
	text-align: center;
	cursor: pointer;
}
#check-btn {
	flex-grow: 0;
}

/* -------------------------- */
.nav-button:hover {
	border-color: #e51a4b;
	box-shadow: 0 0 5px rgba(229, 26, 75, 0.35);
}
.nav-button:first-child {
	margin-right: auto;
}
.nav-button:last-child {
	margin-left: auto;
}
.counter {
	border-radius: 10px;
	border: 1px solid rgba(49, 51, 63, 0.2);
	padding: 8px;
	color: #333;
	min-width: 50px;
	text-align: center;
}
/* -------------------------- */
.word {
	border-radius: 10px;
	padding: 10px;
	background-color: Seashell;
	border: 1px solid rgba(49, 51, 63, 0.2);
}
.word span,
.help-section span {
	font-weight: 700;
	color: MediumBlue;
}
.exercise {
	border-radius: 10px;
	padding: 10px;
	background-color: rgb(240, 242, 246);
	border: 1px solid rgba(49, 51, 63, 0.2);
}
.exercise span {
	font-weight: 700;
	color: black;
}
/* --------------------- */
.declination,
.translation,
.examples,
.exercises,
.choose-exercises,
.help-section {
	border-radius: 10px;
	padding: 10px;
	border: 1px solid rgba(49, 51, 63, 0.2);
}
.declination span {
	color: MediumBlue;
}
.declination li:not(:last-child) {
	margin-bottom: 8px;
}
.declination li::before {
	content: "";
	border-radius: 50%;
	width: 5px;
	height: 5px;
	font-size: 25px;
	background-color: #000;
	vertical-align: middle;
	display: inline-block;
	margin-right: 12px;
}
.declination li {
  white-space: nowrap;
}
.declination__wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 10%;
	row-gap: 20px;
}
/* --------------------- */
.translation,
.choose-exercises {
	background-color: Seashell;
}
.text {
	display: flex;
	flex-direction: column;
}
.translation li {
	display: flex;
	align-items: center;
	overflow: visible;
	gap: 5px;
}
.translation span {
	font-weight: 700;
	color: MediumBlue;
}
.translation b {
	font-weight: 700;
	color: #45956d;
}
.translation ul li::before {
	content: "•";
	width: 5px;
	height: 5px;
	font-size: 0;
	background-color: black;
	display: inline-block;
	border-radius: 50%;
	align-self: center;
	margin-right: 10px;
	flex-shrink: 0;
}
.translation li:not(:last-child) {
	margin-bottom: 12px;
}

/* ------------------------ */
.examples li {
	display: flex;
	align-items: center;
	overflow: visible;
}
.examples li::before {
	content: "";
	border-radius: 50%;
	width: 5px;
	height: 5px;
	font-size: 25px;
	background-color: #000;
	vertical-align: top;
	display: inline-block;
	margin-right: 10px;
	flex-shrink: 0;
}
.examples li:not(:last-child) {
	margin-bottom: 8px;
}

.examples-btn{
    display:flex;
	justify-content:center;
	align-items:center;

}
#more-examples-btn {
    font-size: 16px;
	font-weight: 400;
	max-width:200px;
    margin-top: 16px;
}
/* ---------------------------- */
.burger {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	width: 40px;
	height: 30px;
	cursor: pointer;
	position: relative;
	z-index: 10;
}
.burger span {
	display: block;
	height: 4px;
	width: 100%;
	background-color: #e51a4b;
	transition: all 0.3s ease;
	border-radius: 4px;
	align-self: flex-end;
}
.burger span:nth-child(1) {
	width: 25px;
}
.burger span:nth-child(2) {
	width: 30px;
}

.burger span:nth-child(3) {
	width: 40px;
}
.burger.open-btn span:nth-child(1) {
	transform: rotate(45deg);
	position: absolute;
	top: 50%;
	width: 40px;
	margin-top: -2px;
}
.burger.open-btn span:nth-child(2) {
	opacity: 0;
}
.burger.open-btn span:nth-child(3) {
	transform: rotate(-45deg);
	position: absolute;
	top: 50%;
	width: 40px;
	margin-top: -2px;
}

/* ---------------------------- */
.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.header__logo img {
	cursor: pointer;
	width: 280px;
	height: auto;
	object-fit: contain;
}
@media (max-width: 480px) {
	.header__logo img {
		width: 250px;
		height: 42px;
	}
}
/* ---------------------------- */
.sidebar {
	position: fixed;
	top: 0;
	left: -300px;
	width: 300px;
	height: 100%;
	background-color: #fff;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
	transition: left 0.3s ease;
	z-index: 100;
	padding: 20px 10px;
	overflow-y: auto;
	overflow-x: hidden;
}
.sidebar.open {
	left: 0;
}
.sidebar-button {
	display: block;
	width: 100%;
	padding: 10px 15px;
	margin: 10px 0;
	border-radius: 10px;
	background-color: rgb(240, 242, 246);
	cursor: pointer;
	text-align: center;
	transition: border-color 0.3s ease;
	border: 1px solid rgba(49, 51, 63, 0.2);
}
.sidebar-button:hover {
	border-color: #e51a4b;
	box-shadow: 0 0 5px rgba(229, 26, 75, 0.35);
}
.sidebar-button.active {
	background-color: rgba(229, 26, 75, 0.9);
	color: white;
}
.output {
	margin: 20px;
	font-size: 18px;
}
/* ---------------------------------- */
.frameworks {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
}
.frameworks__img img {
	max-width: 100%;
	height: auto;
}
/* ----------------------------------- */
.exercises__title {
	font-weight: 700;
	text-align: center;
	margin-bottom: 25px;
}
.exercises__btn {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 25px;
	margin-bottom: 25px;
}
.exercises__btn .nav-button {
	font-size: 16px;
	white-space: nowrap;
}
/* -------------------------------- */
table {
	width: 50%;
	border-collapse: collapse;
	margin: 10px auto;
	text-align: center;
}
th,
td {
	border: 1px solid rgba(49, 51, 63, 0.2);
	padding: 8px;
}

th {
	background-color: rgb(240, 242, 246);
}
/* -------------------------------- */
.choose-exercises__title {
	font-weight: 700;
	margin-bottom: 25px;
}
.choose-exercises__form {
	display: flex;
	flex-direction: column;
	gap: 25px;
}
.exercise-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 25px;
}
.repeat-group,
.group {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.repeat-group {
	flex-wrap: nowrap;
}
.grouped-options {
	display: flex;
	flex-direction: column;
	gap: 25px;
	margin-bottom: 25px;
}
.repeat-group input[type="radio"],
.repeat-group label,
.group input[type="radio"],
.group label {
	cursor: pointer;
}
.repeat-group input[type="radio"],
.group input[type="radio"] {
	accent-color: #e51a4b;
}
#nrepeats {
	max-width: 80px;
	text-align: center;
	border: 1px solid rgba(49, 51, 63, 0.2);
	border-radius: 6px;
	padding: 2px;
	transition: all 0.3s ease;
}
#nrepeats:focus {
	border-color: #e51a4b;
	box-shadow: 0 0 5px rgba(229, 26, 75, 0.35);
	outline: none;
}
.choose-exercises__btn {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	white-space: nowrap;
	margin-bottom: 25px;
}
.choose-exercises__link label {
	margin-bottom: 15px;
	display: block;
}

#error-message{
    color: red;
    display: none;
    padding-top: 15px;
}
/* ----------------------------- */
.search label {
	margin-bottom: 15px;
	display: block;
}
.success-image {
	text-align: center;
}
/* ----------------------------- */
.help-section {
	overflow: hidden;
}
.help-section__title {
	font-weight: 700;
}
.help-section__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	position: relative;
}
.help-section__header .arrow::before {
	content: "";
	width: 16px;
	height: 16px;
	background-image: url("../images/arrow.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%) rotate(90deg);
	transition: transform 0.3s ease;
}
.help-section__content {
	max-height: 0;
	overflow: hidden;
	transition:
		max-height 0.5s ease,
		padding 0.5s ease;
}
.help-section__content h3:not(:last-child),
.help-section__content p:not(:last-child) {
	margin-bottom: 25px;
	line-height: 1.6;
}
.help-section__content b{
    color: #45956d;
}
.help-section.active .help-section__content {
	max-height: 2700px;
	padding-top: 25px;
}
.help-section.active .arrow::before {
	transform: translateY(-50%) rotate(-90deg);
}
@media (max-width: 480px) {
  .help-section__content p:not(:last-child) {
    margin-bottom: 15px;
  }
}
/* ----------------------------- */
.footer{
    text-align: center;
}.footer img {
    max-width: 250px;
    height: auto;
}
/* ----------------------------- */
.mistake {
  padding-top: 40px;
  text-align: center;
}
.mistake__title {
  font-size: 84px;
  font-weight: 700;
  color: #e51a4b;
  margin-bottom: 40px;
}
.mistake__link {
  display: inline-block;
  border-bottom: 2px solid #e51a4b;
  padding-bottom: 8px;
  transition: all 0.3s;
}
.mistake__link:hover {
  color: #e51a4b;
}