* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
nav ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
q:before,
blockquote:after,
q:after {
  content: '';
  content: none;
}
a {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}
ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}
del {
  text-decoration: line-through;
}
abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
input,
select {
  vertical-align: middle;
}
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
  max-width: 100%;
}
body {
  box-sizing: border-box;
}
/* ========== ПЕРЕМЕННЫЕ ========== */
/* ========== ЛОКАЛЬНЫЕ ШРИФТЫ ========== */
@font-face {
  font-family: Montserrat;
  src: local('Montserrat Thin'), local('Montserrat-Thin'), url('../fonts/montserrat/Montserrat-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: local('Montserrat ExtraLight'), local('Montserrat-ExtraLight'), url('../fonts/montserrat/Montserrat-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: local('Montserrat Light'), local('Montserrat-Light'), url('../fonts/montserrat/Montserrat-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url('../fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: local('Montserrat Medium'), local('Montserrat-Medium'), url('../fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'), url('../fonts/montserrat/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: local('Montserrat Bold'), local('Montserrat-Bold'), url('../fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: local('Montserrat ExtraBold'), local('Montserrat-ExtraBold'), url('../fonts/montserrat/Montserrat-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: local('Montserrat Black'), local('Montserrat-Black'), url('../fonts/montserrat/Montserrat-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  color: #ffffff;
  line-height: 1.6;
  background: #201D1D;
  overflow-x: hidden;
}
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 30px;
}
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
}
@media (max-width: 767px) {
  .container {
    padding: 0 15px;
  }
}
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 1000;
}
.toast {
  min-width: 240px;
  max-width: 320px;
  background-color: rgba(50, 50, 50, 0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.error {
  background-color: #E74C3C;
}
.toast.success {
  background-color: #27AE60;
}
.toast.warning {
  background-color: #F39C12;
}
.toast.info {
  background-color: #2980B9;
}
.toast .close-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  cursor: pointer;
}
.toast .close-btn:hover {
  color: #fff;
}
/* ========== БАЗОВЫЕ СТИЛИ КНОПКИ ========== */
.btn-card {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  width: auto;
  padding: 6px 20px 6px 6px;
  gap: 8px;
  border-radius: 100px;
  color: #FFF;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.3s ease;
  /* ========== МОДИФИКАТОР ЦВЕТА ========== */
  /* ========== СТИЛИ ДЛЯ ИКОНКИ ========== */
  /* ========== АДАПТИВНЫЕ СТИЛИ ========== */
}
.btn-card--orange {
  background: #FF7A00;
}
.btn-card--orange:hover,
.btn-card--orange:active {
  background: #BF5C05;
}
.btn-card--blue {
  background: #2A5BCC;
}
.btn-card--blue:hover,
.btn-card--blue:active {
  background: #1E4EB5;
}
.btn-card img {
  border-radius: 61px;
  background: #FFF;
  padding: 12px 18px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: block;
  width: auto;
  height: auto;
}
@media (max-width: 767px) {
  .btn-card {
    font-size: 16px;
    padding: 5px 16px 5px 5px;
  }
  .btn-card img {
    padding: 10px 15px;
  }
}
/* === СОРТИРОВОЧКА === */
.sort-button-icon {
  display: inline-flex;
  padding: 0;
  width: 57.11px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 61px;
  border: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.sort-button-icon svg {
  display: block;
  width: auto;
  height: auto;
}
.sort-button-icon:hover,
.sort-button-icon:active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.sort-button-full {
  display: none;
}
.sort-button-full img {
  padding: 0 !important;
}
.sort-dropdown__item svg {
  display: inline-block;
  margin-top: -2px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  fill: currentColor;
}
@media (min-width: 1024px) {
  .sort-button-icon {
    display: none;
  }
  .sort-button-full {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}
.sort-form {
  position: relative;
  display: inline-block;
}
.sort-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.hidden {
  display: none !important;
}
.sort-dropdown__item {
  background: transparent;
  border: none;
  padding: 10px 16px;
  text-align: left;
  font-size: 16px;
  color: #333333;
  cursor: pointer;
  transition: background 0.2s ease;
  overflow: hidden;
}
.sort-dropdown__item:hover {
  background: #f5f5f5;
}
.sort-dropdown__item--active {
  background: #fff0e6;
  font-weight: bold;
}
.sort-dropdown__item--blue--active {
  background: #e6f0ff;
  font-weight: bold;
}
/* pagination */
.pagination {
  margin-top: 24px;
  text-align: center;
}
.pagination-numbers {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border-radius: 50%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #FF7A00;
  cursor: default;
  user-select: none;
}
.page-current--blue {
  color: #2A5BCC !important;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 50%;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  color: #FF7A00;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.page-link--blue {
  color: #2A5BCC !important;
}
.page-link:hover {
  background: #f0f8ff;
}
.pagination-ellipsis {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  color: #FF7A00;
  cursor: default;
  user-select: none;
}
.pagination-ellipsis--blue {
  color: #2A5BCC !important;
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #433F3B;
}
.card-img-block {
  padding: 20px 20px 0 20px;
  position: relative;
}
.card-img-block button {
  position: absolute;
  top: 30px;
  right: 30px;
  border-radius: 100px;
  padding: 5px;
  width: 45px;
  height: 45px;
  background: white url("/img/Iconly-like.svg") no-repeat center center;
  background-size: contain;
  cursor: pointer;
}
.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 30px;
}
.card-content .btn-card {
  margin-top: auto;
  align-self: flex-start;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.card-tag-link {
  border-radius: 100px;
  border: 1px solid #FFF;
  padding: 4px 12px;
  color: #FFF;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
}
.card-title {
  color: #FFF;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
}
.card-descr {
  color: #FFF;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  margin-bottom: 30px;
}
.header {
  position: relative;
  margin: 30px 0 50px;
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__mobile {
  display: none;
}
@media (max-width: 1024px) {
  .header__mobile {
    display: block;
  }
}
.header__burger {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 1024px) {
  .header__burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}
.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}
.header__mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80vw;
  max-width: calc(100vw - 70px);
  height: 100vh;
  background: #fff;
  z-index: 1000;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
}
.header__mobile-menu.active {
  left: 0;
}
.header__mobile-items {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
}
.header__mobile-item {
  margin-bottom: 20px;
}
.header__mobile-link {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease;
}
.header__mobile-link:hover {
  color: #CF711F;
}
.header__mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}
.header__mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}
.header__mobile-btn--reg {
  background: #CF711F;
  color: white;
}
.header__mobile-btn--login {
  border: 1px solid #CF711F;
  color: #CF711F;
  background: white;
}
@media (max-width: 1024px) {
  .header__menu,
  .header__btn-block {
    display: none;
  }
}
.header__menu ul {
  display: flex;
  gap: 24px;
}
.header__menu-item-link {
  color: #FFF;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}
.header__menu-item-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #CF711F;
  transition: width 0.3s ease;
}
.header__menu-item-link:hover {
  color: #CF711F;
}
.header__menu-item-link:hover::after {
  width: 100%;
}
.header__btn-block {
  display: flex;
  gap: 22px;
}
@media (max-width: 1024px) {
  .header__btn-block {
    display: none;
  }
}
.header__btn-left,
.header__btn-right {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 24px;
  color: #FFF;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  border-radius: 22px;
  transition: 0.3s linear;
}
.header__btn-left {
  border: 1px solid #FFF;
}
.header__btn-left:hover {
  border-radius: 22px;
  border: 1px solid #000;
  background: #FFF;
  color: #000;
}
.header__btn-right {
  background: #2A5BCC;
}
.header__btn-right:hover {
  border-radius: 22px;
  background: #1E4EB5;
}
.footer {
  color: white;
  font-size: 14px;
}
.footer__content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
.footer__group {
  display: flex;
  flex-direction: row;
  gap: 50px;
}
.footer__col h4 {
  font-size: 16px;
  margin-bottom: 10px;
}
.footer__col ul {
  list-style: none;
  padding: 0;
}
.footer__col ul li {
  margin-bottom: 8px;
}
.footer__col ul li a {
  color: white;
  text-decoration: none;
}
.footer__col ul li a:hover {
  text-decoration: underline;
}
.footer__col--logo {
  max-width: 250px;
}
.footer__col--logo p {
  margin: 5px 0;
  font-size: 15px;
}
.footer__logo {
  margin-bottom: 10px;
  max-width: 150px;
}
.footer__socials {
  margin-top: 10px;
}
.footer__socials a {
  display: inline-block;
  margin-right: 10px;
}
.footer__socials a img {
  width: 24px;
  height: 24px;
}
.footer__contacts span {
  color: #ff8a00;
  margin-right: 6px;
}
.footer__bottom {
  background: #0f0f0f;
  text-align: center;
  padding: 15px 0;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 30px;
}
@media (max-width: 1024px) {
  .footer__container {
    flex-wrap: wrap;
    gap: 30px;
    /*
      .footer__col {
        flex: 1 1 45%; // 2 колонки в строку
      }
      */
  }
}
@media (max-width: 767px) {
  .footer__container {
    flex-direction: column;
    gap: 20px;
    /*
      .footer__col {
        flex: 1 1 100%;
      }
      */
  }
  .footer__bottom {
    font-size: 12px;
  }
}
.hero-block {
  text-align: center;
  margin-bottom: 60px;
}
.hero-block__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-block__title {
  max-width: 1050px;
  color: #FFF;
  text-align: center;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 500;
  line-height: 120%;
  margin-bottom: 16px;
}
.hero-block__description {
  max-width: 1050px;
  color: #FF7A00;
  text-align: center;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 150%;
  margin-bottom: 50px;
}
.hero-block__btn {
  margin-bottom: 30px;
}
.hero-block__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(1, 1fr);
  grid-template-areas: "item1 item2 item3";
  gap: 20px;
  text-align: left;
}
.hero-block__cards img {
  width: 100%;
}
.hero-block__cards .hero-block__card-link img {
  width: auto;
}
.hero-block__cards .item1 {
  grid-area: item1;
}
.hero-block__cards .item2 {
  grid-area: item2;
}
.hero-block__cards .item3 {
  grid-area: item3;
}
@media (max-width: 1024px) {
  .hero-block__cards {
    grid-template-columns: repeat(1, 1fr);
    grid-template-areas: "item1" "item2" "item3";
  }
}
.latest-news__catalog_header,
.blog-list__catalog_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}
.latest-news {
  margin-bottom: 60px;
}
.latest-news__title {
  color: #FFF;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 500;
  margin-bottom: 30px;
}
.latest-news__cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.latest-news__cards .item1 {
  grid-column: span 3;
}
.latest-news__cards .item2 {
  grid-column: span 3;
}
.latest-news__cards .item3,
.latest-news__cards .item4,
.latest-news__cards .item5 {
  grid-column: span 2;
}
@media (max-width: 1024px) {
  .latest-news__cards {
    grid-template-columns: repeat(6, 1fr);
  }
  .latest-news__cards .item1 {
    grid-column: span 6;
  }
  .latest-news__cards .item2,
  .latest-news__cards .item3,
  .latest-news__cards .item4,
  .latest-news__cards .item5 {
    grid-column: span 3;
  }
}
@media (max-width: 767px) {
  .latest-news__cards {
    grid-template-columns: 1fr;
  }
  .latest-news__cards .item1,
  .latest-news__cards .item2,
  .latest-news__cards .item3,
  .latest-news__cards .item4,
  .latest-news__cards .item5 {
    grid-column: span 1;
  }
}
.latest-news__card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 25px;
}
.promo-banner {
  margin-bottom: 60px;
}
.promo-banner__image {
  width: 100%;
}
.popular-articles {
  padding: 40px 20px;
}
.popular-articles__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.popular-articles__title {
  font-size: 32px;
  color: white;
}
.popular-articles__link {
  color: #ff8a00;
  text-decoration: none;
  font-weight: bold;
}
.popular-articles__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 10px;
}
.popular-articles__cards .popular-articles__card {
  flex: 0 1 calc((100% - 40px) / 3);
}
.popular-articles__card .card-img {
  width: 100%;
  object-fit: cover;
  border-radius: 25px;
}
@media (max-width: 1100px) {
  .popular-articles__cards .popular-articles__card {
    flex: 0 1 calc((100% - 20px) / 2);
  }
  .popular-articles__cards .popular-articles__card:nth-child(3) {
    flex: 0 0 100%;
  }
}
@media (max-width: 767px) {
  .popular-articles__cards {
    flex-direction: column;
  }
  .popular-articles__cards .popular-articles__card {
    flex: 1 1 100%;
  }
}
.ad-banner {
  width: 100%;
}
.ad-banner__link {
  display: block;
}
.ad-banner__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  cursor: pointer;
}
.news-detail article {
  color: #FFF;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-style: normal;
}
.news-detail article .news-title {
  font-size: 68px;
  font-weight: 500;
  margin-bottom: 30px;
}
.news-detail article .news-subtitle {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 30px;
}
.blog-post-detail__article {
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: #FFFFFF;
  font-style: normal;
}
.blog-post-title {
  width: 100%;
  font-weight: 500;
  font-size: 68px;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0;
  padding: 0;
}
.blog-post-subtitle {
  width: 100%;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  margin: 0;
  padding: 0;
}
.blog-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
}
.blog-post-meta-label {
  margin-right: 4px;
}
.blog-post-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #FFFFFF;
  border-radius: 16px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  text-decoration: none;
  gap: 4px;
}
.blog-post-tag:hover {
  background: rgba(255, 255, 255, 0.1);
}
.blog-post-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
}
.blog-post-date svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.blog-post-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
}
.blog-post-author svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.blog-post-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 400px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}
.blog-post-body {
  color: #FFFFFF;
  padding: 20px 50px;
}
@media (max-width: 1024px) {
  .blog-post-body {
    padding-left: 10px;
    padding-right: 10px;
  }
  .blog-post-title {
    font-size: 48px;
  }
}
@media (max-width: 767px) {
  .blog-post-title {
    font-size: 32px;
  }
}
.blog-post-body h1 {
  font-weight: 500;
  font-size: 40px;
  line-height: 1.2;
  color: inherit;
  margin-top: 30px;
  margin-bottom: 30px;
}
.blog-post-body p,
.blog-post-body ul,
.blog-post-body ol,
.blog-post-body dl,
.blog-post-body blockquote,
.blog-post-body pre,
.blog-post-body code,
.blog-post-body span,
.blog-post-body a,
.blog-post-body li {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: inherit;
}
.blog-post-body p {
  margin-top: 0;
}
.blog-post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 25px;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}
.blog-post-body figure {
  margin: 30px 0;
  text-align: center;
}
.blog-post-body figure img {
  margin: 0 auto;
}
.blog-post-body a {
  color: #2A5BCC;
  font-weight: bold;
}
.blog-post-body a:hover {
  color: #1E4EB5;
  text-decoration: underline;
}
.blog-post-body h2 {
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
  color: inherit;
  margin-top: 30px;
  margin-bottom: 30px;
}
.blog-post-body h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: inherit;
  margin-top: 30px;
  margin-bottom: 30px;
}
.blog-post-body ul,
.blog-post-body ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
.blog-post-body blockquote {
  border-left: 3px solid #555;
  padding-left: 12px;
  color: #DDD;
  margin: 30px 0;
}
.news-comments h3 {
  font-weight: 500;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #FFFFFF;
  margin-top: 20px;
  margin-bottom: 20px;
}
#comment-form-block {
  width: 100%;
  background: #433F3B;
  border-radius: 25px;
  padding: 30px;
  box-sizing: border-box;
  margin-bottom: 30px;
}
#comment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#comment-form textarea {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  background: transparent;
  border: none;
  resize: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 64px;
}
#comment-form textarea::placeholder {
  color: #B0B0B0;
}
#comment-form textarea:focus {
  outline: none;
}
#comment-form button,
.post-other-btn {
  align-self: center;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: #FFFFFF;
  background: #2A5BCC;
  border: none;
  border-radius: 100px;
  padding: 6px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}
#comment-form button:hover,
.post-other-btn:hover {
  background: #1E4EB5;
}
#comment-form button:focus,
.post-other-btn:focus {
  outline: none;
}
.news-comments p a {
  color: #2A5BCC;
  text-decoration: none;
  font-weight: 500;
}
.news-comments p a:hover {
  text-decoration: underline;
}
#comments-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 30px;
}
.comment-item {
  background: transparent;
  border: 1px solid #FFFFFF;
  border-radius: 25px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.comment-item .comment-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  margin: 0;
}
.comment-item .comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.comment-meta {
  margin-top: 8px;
  margin-left: 8px;
}
.comment-item .comment-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
}
.comment-item .comment-date .icon-small {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}
.comment-item .comment-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
}
.comment-item .comment-author .icon-small {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}
.comment-delete-button {
  color: red;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 8px;
}
.auth-page {
  display: flex;
  height: 100vh;
}
.auth-page .auth-left {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 66px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)), url("../images/27ea5512f8be44ec9c53cacf3e47173d1bb086eb (1).jpg") center / cover no-repeat;
}
.auth-page .auth-left .bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.auth-page .auth-left .content-block {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 118px;
}
.auth-page .auth-left .content-block .logo {
  width: 240px;
}
.auth-page .auth-left .content-block .logo-link {
  margin-bottom: 30px;
}
.auth-page .auth-left .content-block h1 {
  color: #ffffff;
  text-align: center;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 68px;
  font-weight: 500;
}
.auth-page .auth-right {
  flex: 1;
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  gap: 153px;
  /* checkbox position fix: flex-row + fix checkbox input size */
  /* end checkbox */
}
.auth-page .auth-right .form-group.element-3 {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.auth-page .auth-right .form-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.auth-page .auth-right .form-group label {
  margin: 0;
  flex: 1 1 auto;
}
.auth-page .auth-right .reset-password-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-page .auth-right .back-link {
  position: relative;
  padding-left: 28px;
  margin-bottom: 20px;
  color: #ffffff;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}
.auth-page .auth-right .back-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url('../images/arrow_back_ios_24px.svg') no-repeat center;
  background-size: contain;
}
.auth-page .auth-right .back-link:hover {
  color: #dddddd;
}
.auth-page .auth-right .form-wrapper {
  display: flex;
  justify-content: center;
  height: 100%;
}
.auth-page .auth-right .form-separator {
  height: 1px;
  background: #F5F5F5;
  margin: 30px 0;
  width: 100%;
  border-radius: 1px;
}
.auth-page .auth-right h2 {
  color: #ffffff;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}
.auth-page .auth-right form {
  display: flex;
  flex-direction: column;
}
.auth-page .auth-right form:nth-of-type(4) {
  margin-bottom: 30px;
}
.auth-page .auth-right form .register {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  margin-bottom: 0 !important;
}
.auth-page .auth-right form .register span,
.auth-page .auth-right form .register a {
  display: inline;
}
.auth-page .auth-right form .register a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
  margin-left: 6px;
}
.auth-page .auth-right form label {
  color: #ffffff;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
}
.auth-page .auth-right form input {
  color: #ffffff;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #ffffff;
  border-radius: 25px;
  background: transparent;
  outline: none;
  width: 426px;
  padding: 24px 30px;
}
.auth-page .auth-right form input:focus {
  border-color: #347eff;
}
.auth-page .auth-right form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.auth-page .auth-right form .form-group:nth-of-type(1) {
  margin-bottom: 24px;
}
.auth-page .auth-right form .form-group:nth-of-type(2) {
  margin-bottom: 18px;
}
.auth-page .auth-right form .form-group.forgot-password {
  margin-bottom: 18px;
  align-self: flex-end;
  text-align: right;
  font-size: 0.9rem;
  font-style: italic;
}
.auth-page .auth-right form .form-group.forgot-password a {
  color: #ffffff;
  text-decoration: none;
  width: 100%;
  text-align: right;
}
.auth-page .auth-right form .form-group.forgot-password a:hover {
  text-decoration: underline;
}
.auth-page .auth-right form .form-group .password-wrapper {
  width: 100%;
  position: relative;
}
.auth-page .auth-right form .form-group .password-wrapper input {
  padding-right: 40px;
}
.auth-page .auth-right form .form-group .password-wrapper .toggle-visibility {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #999;
  user-select: none;
}
.auth-page .auth-right form .form-group .btn,
.auth-page .auth-right form .form-group button {
  height: 64px;
  padding: 6px 20px;
  border-radius: 25px;
  background: #ff7a00;
  color: #fff;
  text-align: center;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  width: 426px;
}
.auth-page .auth-right form .form-group .btn:hover,
.auth-page .auth-right form .form-group button:hover {
  opacity: 0.9;
}
.auth-page .auth-right form .form-group .redirect {
  text-align: center;
  font-size: 0.9rem;
}
.auth-page .auth-right form .form-group .redirect a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}
@media (max-width: 1150px) {
  .auth-page .auth-left .content-block {
    gap: 60px;
  }
  .auth-page .auth-left .content-block .logo {
    width: 240px;
  }
  .auth-page .auth-left .content-block h1 {
    font-size: 48px;
  }
}
@media (max-width: 1024px) {
  .auth-page {
    flex-direction: column;
  }
  .auth-page .auth-right {
    gap: 20px;
  }
  .auth-page .auth-right form .form-group {
    max-width: 426px;
  }
  .auth-page .auth-right .form-container {
    width: 100%;
  }
  .auth-page .auth-right .reset-password-header {
    gap: 20px;
  }
  .auth-page .auth-right .reset-password-header .step-info {
    display: inline-block;
    text-align: right;
  }
  .auth-page .auth-right .reset-password-header .step-info .step-count,
  .auth-page .auth-right .reset-password-header .step-info .step-title {
    display: block;
  }
  .auth-page .auth-right .reset-password-header .step-info .step-title {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }
  .auth-page .auth-left,
  .auth-page .auth-right {
    flex: none;
    width: 100%;
    padding: 40px 30px;
  }
  .auth-page .auth-left {
    padding-top: 30px;
  }
  .auth-page .auth-right .form-wrapper {
    justify-content: flex-start;
  }
  .auth-page .auth-right form {
    align-items: center;
  }
  .auth-page .auth-right form .form-group.forgot-password {
    align-self: center;
  }
}
@media (max-width: 768px) {
  .auth-page .auth-left .content-block h1 {
    font-size: 38px;
  }
  .auth-page .auth-left .content-block .logo {
    width: 200px;
  }
  .auth-page .auth-right {
    padding: 30px 20px;
  }
  .auth-page .auth-right h2 {
    font-size: 16px;
  }
  .auth-page .auth-right form input,
  .auth-page .auth-right form button {
    font-size: 14px;
    padding: 18px 24px;
  }
  .auth-page .auth-right form .form-group {
    margin-bottom: 20px;
  }
  .auth-page .auth-right form .form-group.forgot-password {
    font-size: 0.8rem;
  }
}
@media (max-width: 480px) {
  .auth-page .auth-right {
    gap: 10px;
  }
  .auth-page .auth-right .form-wrapper {
    padding: 0;
  }
  .auth-page .auth-right form {
    align-items: stretch;
  }
  .auth-page .auth-right form input,
  .auth-page .auth-right form button {
    width: 100%;
    font-size: 13px;
    padding: 16px 20px;
  }
  .auth-page .auth-right form .form-group {
    margin-bottom: 16px;
    max-width: unset;
  }
  .auth-page .auth-right form .form-group button {
    width: unset;
  }
  .auth-page .auth-right form .register {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .auth-page .auth-right form .register a {
    margin-left: 0;
  }
}
.dashboard-container {
  padding: 20px;
}
.dashboard-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 6px 12px;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 20px;
  line-height: 150%;
  cursor: pointer;
  transition: color 0.3s ease;
}
.dash-btn:focus {
  outline: none;
}
.dash-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.dash-nav-active {
  /* TODO: fix active tab when htmx-ing around */
}
.dash-btn:hover .dash-text {
  /* .dash-btn:not(.dash-nav-active):hover */
  color: #f2f2f2;
  text-decoration: underline;
}
.dash-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
  padding: 20px;
}
.dash-form {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dash-group .error {
  width: 100%;
  color: #FF6B6B;
  font-size: 14px;
  margin-top: 4px;
  text-align: center;
}
.form-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.dash-btn-submit {
  width: 100%;
  max-width: 426px;
  height: 64px;
  padding: 0;
}
.form-row {
  display: flex;
  gap: 40px;
  width: 100%;
  justify-content: center;
}
.form-row .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dash-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}
.dash-group label {
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  color: #FFFFFF;
  margin-bottom: -8px;
}
.dash-group input {
  box-sizing: border-box;
  width: 426px;
  height: 64px;
  border: 1px solid #FFFFFF;
  box-shadow: 0px 4px 10px 3px rgba(0, 0, 0, 0.11);
  border-radius: 25px;
  background: transparent;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  padding: 0 16px;
}
.help-text {
  font-size: 12px;
  color: #AAAAAA;
  text-align: center;
  margin-top: -12px;
  margin-bottom: 20px;
  width: 100%;
}
.btn-cancel-email {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  color: #FFFFFF;
  background: #808080;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-bottom: 20px;
}
.btn-cancel-email:hover {
  background: #666666;
}
.dash-group-settings {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.dash-group-settings input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.dash-group-settings label {
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  color: #FFFFFF;
  cursor: pointer;
}
