@charset "UTF-8";
* {
  padding: 0px;
  margin: 0px;
  border: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Предотвращение увеличения размера шрифта */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Установка значений по умолчанию для body */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Links */
a, a:link, a:visited {
  text-decoration: none;
  color: currentColor;
}

a:hover {
  text-decoration: none;
}

/* Common */
aside, nav, footer, header, section, main {
  display: block;
}

h1, h2, h3, h4, h5, h6, p {
  font-size: inherit;
  font-weight: inherit;
}

ul, ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

img, svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

/* Form */
/* Наследование шрифтов для input и button */
input, textarea, button, select {
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
}

input::-ms-clear {
  display: none;
}

button, input[type=submit] {
  display: inline-block;
  box-shadow: none;
  background-color: transparent;
  background: none;
  border: none;
  cursor: pointer;
}

input:focus, input:active,
button:focus, button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

input[type=file] {
  max-width: 100%;
}

/* Убедитесь, что textarea без атрибута rows не будут маленькими */
textarea:not([rows]) {
  min-height: 10em;
}

/* Все, к чему были привязаны якоря, должно иметь дополнительные поля прокрутки */
:target {
  scroll-margin-block: 5ex;
}

/* 1. Объявляем переменные для светлой темы */
:root {
  --accent-color:#ff4500;
  --body-bg: #FCFCFC;
  --body-bg-ax: #242424;
  --text-color: #121212;
  --text-color1: #5B5B5B;
  --text-color2: #373737;
  --text-color3: #F5F5F5;
  --bg-alt-color: #A4A4A4;
  --bg-block-color:#fff;
  --text-alt-color: #FCFCFC;
  --shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.25);
  --filter: none;
}

/* 2. ПЕРЕОПРЕДЕЛЯЕМ эти же переменные для темной темы */
[data-theme=dark] {
  --accent-color:#ff4500;
  --body-bg: #161617;
  --body-bg-ax:#2A2729;
  --text-color: #C9CCCF;
  --text-color1: #A4A4A4;
  --text-color2: #b8adad;
  --text-color3: #2c2e30;
  --bg-alt-color: #A4A4A4;
  --bg-block-color:#2A2729;
  --text-alt-color: #FCFCFC;
  --shadow: 0px 0px 2px 0px #A4A4A4;
  --filter: invert(82%) sepia(5%) saturate(191%) hue-rotate(314deg) brightness(89%) contrast(85%);
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  background-color: var(--body-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 30px;
}

.wrapper__main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}
.wrapper__main-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.header {
  display: flex;
  height: 4.75rem;
  background-color: var(--body-bg-ax);
}
.header__row {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__search {
  width: 29.125rem;
  height: 2.25rem;
  border-radius: 3.125rem;
  color: var(--text-color2);
  background-color: var(--bg-block-color);
  box-shadow: var(--shadow);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__search input {
  width: 100%;
  margin-right: 10px;
}
.header__search input::-moz-placeholder {
  color: var(--text-color1);
}
.header__search input::placeholder {
  color: var(--text-color1);
}
.header__search .search-img {
  vertical-align: bottom;
  margin-bottom: 3px;
  filter: var(--filter);
}

.aside-left {
  color: var(--text-color2);
  min-width: 10rem;
  font-size: 0.75rem;
}
.aside-left__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.aside-left__item {
  display: flex;
  align-items: center;
}
.aside-left__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.aside-left__icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
  filter: var(--filter);
}
.aside-left__link p:hover {
  border-radius: 4px;
  background-color: var(--text-color3);
}
.aside-left__link:hover .aside-left__icon {
  transform: scale(1.2);
}

.main {
  width: 100%;
}
.main__row {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 2rem;
  margin: 0 2rem;
  background-color: var(--bg-block-color);
  border-radius: 0.625rem;
  box-shadow: var(--shadow);
}
.main .list-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: start;
}
.main__bullet {
  display: flex;
  font-size: 1rem;
  border-radius: 3.125rem;
  padding: 0.375rem 1.25rem;
  box-shadow: var(--shadow);
  color: var(--text-color1);
  background-color: var(--bg-block-color);
}
.main__bullet span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.main__bullet span::before {
  content: "";
  display: block;
  background-color: var(--bg-alt-color);
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}
.main__bullet:has(a):hover {
  background-color: var(--text-color3);
}

.article {
  margin: 2rem 0 4rem 0;
  color: var(--text-color);
}
.article__title {
  font-size: clamp(1.25rem, 2.1126760563vw, 1.875rem);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.article__describe {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color1);
}
.article__date {
  font-size: 0.75rem;
}
.article__text {
  font-size: 1.25rem;
}
.article__text a {
  color: #ff4500;
}

.aside-right {
  color: var(--text-color2);
  min-width: 18.75rem;
  padding: 2rem;
  background-color: var(--bg-block-color);
  border-radius: 0.625rem;
  box-shadow: var(--shadow);
}
.aside-right__list {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}
.aside-right__item :hover {
  text-decoration: underline;
}
.aside-right .offer {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 0.75rem;
  color: #ff4500;
  font-weight: 600;
}
.aside-right .offer::after {
  content: "";
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #ff4500;
}
.aside-right__item.is-active {
  text-decoration: underline;
  pointer-events: none; /* Отключаем клик по уже открытой странице */
}

.pagination {
  width: 21.25rem;
  height: auto;
  border-radius: 3.125rem;
  margin: 2rem 0 4rem 0;
  background-color: var(--bg-block-color);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
}
.pagination .nav-links {
  display: flex;
  gap: 1.6875rem;
  padding: 0.625rem;
}
.pagination .page-numbers.current {
  background: var(--bg-alt-color);
  font-weight: 600;
}

.footer {
  background-color: var(--body-bg-ax);
  color: var(--text-alt-color);
}
.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer__content {
  margin-top: 6rem;
  margin-bottom: 4rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer__text {
  font-size: 0.75rem;
  max-width: 37.5rem;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: start;
  color: var(--text-color2);
}
.form__title {
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2.75rem;
}
.form__input-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.form__input {
  height: 2.25rem;
  border-radius: 3.125rem;
  background-color: var(--bg-block-color);
  box-shadow: var(--shadow);
  padding: 0 20px;
}
.form__input input {
  width: 100%;
  margin-right: 10px;
}
.form__input input::-moz-placeholder {
  color: var(--text-color1);
}
.form__input input::placeholder {
  color: var(--text-color1);
}
.form__area {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.form__area-block {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.form__area-text {
  border-radius: 0.625rem;
  background-color: var(--bg-block-color);
  box-shadow: var(--shadow);
  border: none;
  outline: none;
  padding: 0.75rem;
  color: var(--text-color2);
}
.form__btn {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.form__btn button {
  padding: 0.625rem 1.875rem;
  background-color: #ff4500;
  border-radius: 3.125rem;
  color: #fff;
}

.checkbox__inp {
  display: none;
}
.checkbox__text {
  position: relative;
  display: inline-block;
  padding-left: 2.1875rem;
  font-size: 1rem;
}
.checkbox__text::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--bg-block-color);
  border-radius: 4px;
  border: 1px solid rgb(92, 92, 92);
  position: absolute;
  top: 5px;
  left: 0px;
  transform: translate(0, -3px);
}
.checkbox__text::after {
  content: "";
  position: absolute;
  display: block;
  top: 5px;
  left: 0px;
  transform: translate(0, -3px);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  background-image: url("../img/yes.svg");
  background-repeat: no-repeat;
  background-size: 80%;
  background-position: center;
  opacity: 0;
  transition: 0.2s;
}

.checkbox__inp:checked + .checkbox__text::after {
  opacity: 1;
}

.star {
  color: #ff4500;
}

.theme-btn {
  position: absolute;
  top: 12px;
  right: 32px;
  padding: 6px 14px;
  cursor: pointer;
  background-color: var(--body-bg); /* Используем вашу переменную */
  color: #000000;
  box-shadow: var(--shadow);
  border: none;
  border-radius: 50px;
  font-size: 12px;
  transition: background 0.3s ease;
}

/* Стили для темной темы, если нужно изменить саму кнопку */
[data-theme=dark] .theme-btn {
  background-color: #444;
  color: #eee;
}

.post-img-custom-class {
  width: 120px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* Базовые стили для 404 */
.main-404 {
  padding: 100px 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.error-404__title {
  font-size: clamp(80px, 15vw, 150px);
  line-height: 1;
  margin-bottom: 20px;
  color: var(--text-color);
}

.error-404__subtitle {
  font-size: 24px;
  margin-bottom: 30px;
}

.error-404____content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px auto;
  max-width: 400px;
}

.error-404__actions {
  margin-top: 30px;
}

.btn--primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent-color, #0073aa);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.3s;
}

.btn--primary:hover {
  opacity: 0.8;
}/*# sourceMappingURL=style.css.map */