
/* --- olegtix-category-post-card --- */
/* Компонент карточки поста категории */
.category-post-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 20px;
  background: var(--white);
  border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-post-card__image {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
}

.category-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-post-card:hover .category-post-card__image img {
  transform: scale(1.05);
}

.category-post-card__image .category-post-card__rating {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.category-post-card__rating .post-rating-score {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 100px;
  margin: 0;
  display: flex;
  gap: 5px;
  align-items: center;
  line-height: 1;
}

.category-post-card__rating .post-rating-score__rating {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #232323;
  display: flex;
  margin-top: 3px;
}

.category-post-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 20px 0;
}

.category-post-card__header {
  margin: 0;
}

.category-post-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.275;
  margin: 0;
  color: var(--text);
}

.category-post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.category-post-card__title a:hover {
  color: var(--primary);
}

.category-post-card__meta {
  margin: 0;
}

.category-post-card__excerpt {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.category-post-card__footer {
  margin-top: auto;
}

.category-post-card__button {
  width: fit-content;
  height: 50px;
  padding: 0 32px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.275;
}

/* Адаптивность */
@media (max-width: 768px) {
  .category-post-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .category-post-card__image {
    width: 100%;
    height: 192px;
  }

  .category-post-card__rating {
    top: 10px;
    right: 10px;
  }

  .category-post-card__content {
    padding: 0;
  }

  .category-post-card__title {
    font-size: 18px;
  }

  .category-post-card__excerpt {
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  .category-post-card__button {
    width: fit-content;
    height: 40px;
    font-size: 14px;
    padding: 0 17px;
  }
  .title--category {
    font-size: 28px;
  }
  .category-load-more-btn {
    font-size: 16px;
    padding: 14px;
    margin: 12px 0;
  }
}
@media (max-width: 500px) {
  .category-post-card__image {
    aspect-ratio: 1/1;
    height: initial;
  }
  .category-load-more-btn {
    font-size: 14px;
    padding: 12px;
  }
}


/* --- olegtix-header --- */
.header {
  position: relative;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
  margin-bottom: 24px;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  position: relative;
  gap: 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo img {
  max-height: 44px;
  width: auto;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

@media (hover: hover) and (pointer: fine) {
  .header__nav-item--has-mega:hover .header__mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .header__nav-item--has-mega:hover .header__nav-arrow {
    transform: rotate(180deg);
  }
}

.header__nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  min-height: 80px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.header__nav-link:hover, .current-menu-item .header__nav-link {
  color: var(--primary);
}
.header__nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.header__nav-link:hover::after, .current-menu-item .header__nav-link::after{
  opacity: 1;
}

.header__nav-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.header__mega-menu {
  position: absolute;
  top: 100%;
  left: 0%;
  transform: translateY(-10px);
  width: 100%;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-top: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}

.header__mega-content {
  display: flex;
  gap: 48px;
  padding: 5px 15px;
}

.header__mega-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header__mega-title {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  margin: 0 0 1px;
}

.header__mega-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.header__submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.header__mega-link {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header__mega-link:hover {
  color: var(--primary);
}

.header__mega-link,
.header__submenu-link,
.header__mega-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__nav-link-icon,
.header__mega-link-icon,
.header__submenu-link-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.header__submenu-link {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.3s ease;
}
.header__submenu-link:hover {
  color: var(--primary);
}

/* ===== КНОПКИ ===== */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header__login-icon {
  display: none;
}
.header__bonus-btn {
  gap: 5px;
  padding: 10px 15px 10px 15px;
  background: #fee7e7;
}

.header__bonus-btn:hover {
  background: #fdd5d5;
}

.header__bonus-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.header__login-btn {
  gap: 10px;
  padding: 10px 20px;
  background: var(--grey-light);
}

.header__login-btn:hover {
  background: #e8e8e8;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #232323;
  margin: 2px 0;
  transition: all 0.3s ease;
}

.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 850px) {
  .header__container {
    min-height: 60px;
  }
  .header__mega-menu {
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    transition: all 0.7s ease;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .header__mega-content {
    overflow: hidden;
    padding: 0;
    flex-direction: column;
    gap: 10px;
    transition: all 0.7s ease;
  }
  .header__nav-item--open .header__mega-menu {
    grid-template-rows: 1fr;
  }
  .header__nav-item--open .header__mega-content {
    padding: 10px 15px;
  }
  .header__nav-item--open .header__nav-arrow {
    transform: rotate(180deg);
  }
  .header__nav {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: none;
  }
  .header__nav-list {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: flex-start;
  }
  .header__nav-link {
    min-height: auto;
    width: 100%;
    border-bottom: 1px solid var(--grey-light);
    padding: 10px 15px;
    justify-content: space-between;
  }
  .header__nav-list li {
    width: 100%;
  }
  .header__burger {
    display: flex;
  }
  .header__actions {
    margin-left: auto;
  }
  .header__burger {
    order: 3;
  }

  .header__mega-title {
    font-size: 16px;
  }
  .header__submenu {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* ===== ФОКУС ===== */
@media (hover: hover) and (pointer: fine) {
  .header__nav-link:focus,
  .header__bonus-btn:focus,
  .header__login-btn:focus,
  .header__burger:focus {
    outline: 2px solid #9345d8;
    outline-offset: 2px;
  }
}

/* ===== АКТИВНОЕ СОСТОЯНИЕ МЕГА МЕНЮ ===== */
.header__nav-item--active .header__mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__nav-item--active .header__nav-arrow {
  transform: rotate(180deg);
}
@media (max-width: 450px) {
  .header__bonus-text,
  .header__login-text {
    display: none;
  }
  .header__bonus-btn,
  .header__login-btn {
    padding: 10px;
  }
  .header__login-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header__burger {
    background: var(--grey-light);
    border-radius: 10px;
    width: 40px;
    height: 40px;
  }
  .header__container {
    gap: 10px;
  }
  .header__burger {
    order: initial;
  }
}
.header__mobile-menu--open .header__nav {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}


/* --- olegtix-breadcrumbs --- */
.breadcrumbs__container {
  display: flex;
  align-items: center;
}

/* Стандартный формат хлебных крошек */
.breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  list-style: none;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.breadcrumbs {
  margin: 24px 0;
}
.breadcrumbs__link {
  font-size: 14px;
  line-height: 1.275;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.breadcrumbs__link:hover {
  opacity: 0.7;
}

.breadcrumbs__current {
  font-size: 14px;
  line-height: 1.275;
  color: var(--grey);
}

.breadcrumbs__separator {
  width: 16px;
  height: 16px;
  color: var(--grey);
  flex-shrink: 0;
}

.breadcrumbs__back-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.breadcrumbs__back-link:hover {
  opacity: 0.7;
}

.breadcrumbs__back-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.breadcrumbs__back-text {
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.275;
  color: var(--primary);
}

/* Адаптивность */
@media (max-width: 768px) {
  .breadcrumbs {
    margin-bottom: 16px;
  }

  .breadcrumbs__list {
    gap: 2px;
  }

  .breadcrumbs__item {
    gap: 2px;
  }

  .breadcrumbs__link,
  .breadcrumbs__current {
    font-size: 11px;
  }

  .breadcrumbs__separator {
    width: 14px;
    height: 14px;
  }

  .breadcrumbs__back-icon {
    width: 20px;
    height: 20px;
  }

  .breadcrumbs__back-text {
    font-size: 13px;
  }
}


/* --- olegtix-footer --- */
.footer {
  background-color: var(--white);
  margin-top: 48px;
  padding: 48px 0;
}
.footer__container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer__search {
  flex: 1;
}
.footer__desc {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer__main {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
}

.footer__logo {
  margin-right: auto;
}
.searchform {
  background-color: var(--grey-light);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.searchform__input {
  width: 100%;
  padding: 16px 20px;
  padding-right: 50px;
  cursor: pointer;
}
.searchform__btn {
  background: var(--primary);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  position: absolute;
  right: 0;
  top: 0;
  transition: background-color 0.3s ease;
}

.searchform__btn:hover {
  background: var(--primary-hover);
}

.footer__scroll-top {
  background: transparent;
  color: var(--text);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 16px;
}

.footer__scroll-top:hover {
  color: var(--primary);
}

.footer__scroll-top svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: -8px; /* Компенсация высоты шевронов для визуального выравнивания */
}

/* Анимация стрелок при наведении */
.footer__scroll-top path {
  transition: all 0.3s ease;
  opacity: 0.4;
}

.footer__scroll-top:hover path {
  opacity: 1;
  animation: arrowWave 1s infinite;
}

.footer__scroll-top:hover .arrow-bottom {
  animation-delay: 0s;
}

.footer__scroll-top:hover .arrow-middle {
  animation-delay: 0.15s;
}

.footer__scroll-top:hover .arrow-top {
  animation-delay: 0.3s;
}

@keyframes arrowWave {
  0% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
}

.footer__scroll-top-text {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: inherit;
  transition: color 0.3s ease;
  padding-top: 2px;
}

.footer__age {
  font-size: 16px;
  color: var(--grey);
  padding: 10px 20px;
  background: var(--grey-light);
  border-radius: 10px;
}
.footer__bottom {
  display: flex;
  gap: 48px;
  justify-content: space-between;
}
.footer__columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
}
.footer__column {
  font-size: 14px;
  color: var(--grey);
}
.footer__menu--column {
  gap: 6px;
}
.footer__text {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 750px;
  color: var(--grey);
}
.footer__menu a {
  font-size: 14px;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-menu-title a {
  color: #000;
  font-size: 16px;
}
.footer__menu a:hover {
  color: var(--primary);
}

.footer__menu {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer__badge-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}
.footer__badge-item {
  margin: 0;
  padding: 0;
}
.footer__badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: opacity 0.25s ease;
}
.footer__badge-link:hover {
  opacity: 0.85;
}
.footer__badge-img {
  display: block;
  max-height: 33px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.circle-links__label {
  color: var(--grey);
  font-size: 14px;
  display: flex;
  margin-bottom: 12px;
}
.circle-links__list {
  display: flex;
  gap: 12px;
}
.circle-links__link {
  background-color: var(--grey-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.circle-links__link:hover {
  opacity: 0.6;
}
.circle-links__link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
@media (max-width: 1270px) {
  .footer__bottom {
    gap: 15px;
  }
  .footer__columns {
    gap: 24px;
  }
  .footer__text {
    max-width: 500px;
  }
}
@media (max-width: 1000px) {
  .footer__bottom {
    flex-wrap: wrap;
  }
  .footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 20px;
  }
  .footer__text {
    flex: 1 0 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .footer__container {
    gap: 24px;
  }
  .footer {
    padding: 24px 0;
  }
}
@media (max-width: 480px) {
  .footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .footer__links {
    flex-direction: row;
  }
  .footer {
    padding: 12px 0 24px;
  }
}


/* --- olegtix-404 --- */
/* 404 Error Page Styles */
.error-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.error-404__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404__container {
  max-width: 1200px;
  width: 100%;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.error-404__text {
  text-align: center;
}

.error-404__title {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-404__subtitle {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 1rem 0;
}

.error-404__description {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

.error-404__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-404__search {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-404__search-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.error-404__search-form {
  display: flex;
  gap: 0.5rem;
  position: relative;
}

.error-404__search-label {
  position: absolute;
  left: -9999px;
}

.error-404__search-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: white;
}

.error-404__search-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.error-404__search-button {
  padding: 0.875rem 1.25rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404__search-button:hover {
  background-color: #2980b9;
}

.error-404__suggestions {
  background-color: #fff;
  padding: 3rem 0;
  margin-top: 2rem;
}

.error-404__suggestions-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 2rem 0;
  text-align: center;
}

.error-404__posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.error-404__post {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.error-404__post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-404__post-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.error-404__post-link {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.error-404__post-link:hover {
  color: #3498db;
}

.error-404__post-date {
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .error-404__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .error-404__title {
    font-size: 6rem;
  }

  .error-404__subtitle {
    font-size: 1.5rem;
  }

  .error-404__actions {
    flex-direction: column;
    align-items: center;
  }

  .error-404__button {
    width: 100%;
    max-width: 300px;
  }

  .error-404__search-form {
    flex-direction: column;
  }

  .error-404__posts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .error-404 {
    padding: 1rem 0;
  }

  .error-404__title {
    font-size: 4rem;
  }

  .error-404__subtitle {
    font-size: 1.25rem;
  }

  .error-404__search {
    padding: 1.5rem;
  }

  .error-404__post {
    padding: 1rem;
  }
}

/* Screen reader only text */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* --- olegtix-custom --- */
/****** modal ******/
#overlay {
  background-color: #00132b66;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: initial;
  z-index: 9998;
  display: none;
  backdrop-filter: blur(2px);
}

body.openoverlay {
  height: 100vh;
  overflow-y: hidden;
}

body.openoverlay #overlay {
  display: block;
}

.zmodal {
  width: 800px;
  max-width: 96%;
  min-height: 200px;
  overflow: hidden;
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  display: none;
}

.zmodal-inner,
.zpopup-ajax-response {
  max-height: 80vh;
  overflow: auto;
  display: flex;
  justify-content: center;
  width: 100%;
}
.popup-txt {
  margin-bottom: 20px;
}
.zmodal-body {
  overflow-y: auto;
  min-height: 0;
  width: 100%;
}

.zmodal.open {
  display: block;
}

.btn-zmodal-close {
  position: absolute;
  right: 0;
  top: 0;
  width: 42px;
  height: 42px;
  background: var(--grey-light);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-size: 20px;
}

.zmodal-toggle {
  cursor: pointer;
}

.popup-content-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 100px;
}

.popup-content-loading img {
  width: 50px;
}

.zmodal-title {
  font-size: 24px;
  font-weight: 700;
}

/**** popup **/

.popup-title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 16px;
  padding-right: 20px;
}

.popup-listing {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popup--no-padding {
  padding: 0;
  overflow: hidden;
}

.popup--no-padding .zmodal-body {
  padding: 0;
}

.zmodal--image-link {
  width: 400px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 20px;
  min-height: 0;
}

.zmodal--image-link .zpopup-ajax-response {
  overflow: visible;
}

.zmodal--image-link .zmodal-body {
  overflow: visible;
}

.zmodal--image-link .btn-zmodal-close {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 100%;
  width: 32px;
  height: 32px;
  top: 8px;
  right: 8px;
}

.popup--image-link .popup-image-link {
  display: block;
  width: 100%;
  line-height: 0;
}

.popup-image-link__image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0;
}

.broker-card-li {
  display: grid;
  align-items: center;
  grid-template-columns: 140px 1fr 175px;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #f1f1f1;
}

.broker-card-li__info {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
}

.broker-card-li__info .broker-card__detail {
  flex: none;
}
.broker-card-li .broker-card__btn-amount {
  display: none;
}
@media (max-width: 800px) {
  .zmodal {
    padding: 16px;
  }
  .zmodal--image-link {
    padding: 0;
    width: 300px;
  }

  .popup-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .broker-card-li__logo img {
    width: 135px;
  }
  .broker-card-li {
    display: grid;
    align-items: center;
    grid-template-columns: 150px 150px 1fr;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
  }

  .broker-card-li__info {
    gap: 10px;
  }
  .broker-card-li__info .broker-card__detail--mobile-hidden,
  .broker-card-li .broker-card__btn-text {
    display: none;
  }
  .broker-card-li .broker-card__btn-amount {
    display: flex;
  }
}
@media (max-width: 600px) {
  .broker-card-li {
    grid-template-columns: 110px 80px 1fr;
  }
}
@media (max-width: 510px) {
  .broker-card-li__logo img {
    width: 100px;
  }
}
@media (max-width: 440px) {
  .broker-card-li {
    grid-template-columns: 75px 80px 1fr;
    gap: 3px;
  }
  .broker-card-li .broker-card__btn--frebet {
    font-size: 12px;
    padding: 10px 8px;
  }
}
@media (max-width: 390px) {
  .broker-card__detail-label {
    display: none;
  }
  .broker-card__detail-content svg {
    width: 13px;
  }
  .broker-card__detail-content span {
    font-size: 12px;
  }
}
@media (max-width: 350px) {
  .broker-card-li {
    grid-template-columns: 72px 50px 1fr;
  }
}
/**** ai_generate *****/
.article__featured-image {
  position: relative;
}

.ai-info-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  cursor: help;
}

.ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #eee;
  color: #555;
  border-radius: 50%;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s;
}

.ai-info-badge:hover .ai-icon {
  background-color: #ddd;
}

.ai-tooltip {
  visibility: hidden;
  width: 250px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 11;
  bottom: 125%;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.ai-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 10px;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.ai-info-badge:hover .ai-tooltip {
  visibility: visible;
  opacity: 1;
}

.page__updated {
  margin: 6px 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
}

.page__title--updated-has {
  margin-bottom: 0;
}

.broker-header__title--updated-has {
  margin-bottom: 0;
}


/* --- olegtix-bonus-expiry --- */
.bonus-card__expiry {
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--grey-light);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* --- olegtix-search-modal --- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.search-modal--open {
  display: block;
}
.search-modal-lock {
  overflow: hidden;
}
.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 40, 0.55);
}
.search-modal__dialog {
  position: relative;
  max-width: 560px;
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-height: 80vh;
  overflow: auto;
}
.search-modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.search-modal__close {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #f5f2fb;
  cursor: pointer;
  color: #6b6b80;
  transition:
    transform 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}
.search-modal__close:hover {
  transform: rotate(90deg);
  color: #9345d8;
  background: #ece4fa;
}
.search-modal__form {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}
.search-modal__input {
  flex: 1;
  height: 44px;
  border: 1px solid #e3e0ec;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
}
.search-modal__input:focus {
  outline: none;
  border-color: #9345d8;
}
.search-modal__submit {
  width: 48px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #9345d8;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-modal__loader {
  position: relative;
  height: 3px;
  margin: 0 0 12px;
  border-radius: 3px;
  background: #f1eef8;
  overflow: hidden;
}
.search-modal__loader[hidden] {
  display: none;
}
.search-modal__loader-bar {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: #9345d8;
  animation: search-loader-slide 1.05s ease-in-out infinite;
}
@keyframes search-loader-slide {
  0% {
    left: -40%;
  }
  50% {
    left: 30%;
  }
  100% {
    left: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .search-modal__loader-bar {
    animation-duration: 2.4s;
  }
}
.search-modal__heading {
  font-weight: 700;
  margin: 16px 0 8px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8a869c;
}
.search-modal__more {
  display: block;
  width: 100%;
  margin: 10px 0 4px;
  padding: 11px;
  border: 1px solid #ece9f3;
  border-radius: 10px;
  background: #fff;
  color: #9345d8;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.search-modal__more:hover {
  background: #f7f3fd;
  border-color: #d9cef0;
}
.search-modal__more:disabled {
  opacity: 0.6;
  cursor: default;
}
.search-modal__hint,
.search-modal__empty {
  color: #8a869c;
  padding: 14px 0;
  text-align: center;
}
.search-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid #ece9f3;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.search-match:hover {
  border-color: #d9cef0;
  background: #faf8fd;
}
.search-match__teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.search-match__team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.search-match__logo {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1eef8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-match__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.search-match__logo-fallback {
  font-size: 12px;
  font-weight: 700;
  color: #9345d8;
  line-height: 1;
}
.search-match__team-name {
  font-weight: 600;
  font-size: 14px;
  color: #1d1b29;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-match__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 46%;
  text-align: right;
}
.search-match__sport {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: #f5f2fb;
  color: #6b4b9c;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.search-match__sport-icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.search-match__sport-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-match__league {
  font-size: 12px;
  line-height: 1.3;
  color: #8a869c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-match__datetime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #6b6b80;
  white-space: nowrap;
}
.search-match__calendar {
  flex: 0 0 auto;
  color: #9345d8;
}
.search-news {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.search-news:hover {
  background: #f7f3fd;
}
.search-news__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1eef8;
}
.search-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-news__body {
  min-width: 0;
}
.search-news__title {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.search-news__meta {
  display: flex;
  gap: 10px;
  color: #8a869c;
  font-size: 12px;
}
.search-plaque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #e3e0ec;
  border-radius: 10px;
  background: #fff;
  color: #8a869c;
  cursor: text;
  margin: 0 0 12px;
  font-size: 15px;
}
.search-plaque:hover {
  border-color: #9345d8;
}
.search-plaque__icon {
  color: #9345d8;
  display: inline-flex;
}
.footer__match-search {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 14px;
}


/* --- olegtix-bonus-count --- */
.bonus-count {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--grey, #9aa0a6);
  padding-top: 8px;
}

.block-bookmaker-bonuses__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.block-bookmaker-bonuses__title {
  margin-bottom: 0;
}


/* --- olegtix-matches-table --- */
.matches-table__header {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border-radius: 10px 10px 0 0;
  min-height: 40px;
}

.matches-table__info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  min-width: 0;
  font-size: 14px;
  color: #7d7d7d;
}

.matches-table__sport-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.matches-table__sport-link:hover .matches-table__sport-name {
  color: #232323;
}

.matches-table__sport-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #7d7d7d;
}

.matches-table__sport-icon svg {
  width: 16px;
  height: 16px;
}

.matches-table__flag {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 2px;
}

.matches-table__dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #7d7d7d;
  flex-shrink: 0;
}

.matches-table__odds-header {
  display: flex;
  flex-shrink: 0;
}

.matches-table__odds-label {
  width: 128px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #7d7d7d;
  background: #f4f4f4;
  border-left: 1px solid #fff;
}

.matches-table__odds-label:last-child {
  border-radius: 0 10px 0 0;
}

.matches-table__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.matches-table__row {
  display: flex;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid #f4f4f4;
}

.matches-table__row:last-child {
  border-bottom: none;
}

a.matches-table__match-link {
  text-decoration: none;
  color: inherit;
}

a.matches-table__match-link:hover {
  color: var(--primary);
}

.matches-table__match-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  min-width: 0;
}

.matches-table__time {
  width: 40px;
  flex-shrink: 0;
  font-size: 14px;
  color: #7d7d7d;
}

.matches-table__time--with-date {
  width: auto;
  min-width: 52px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.15;
}

.matches-table__time-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

a.matches-table__league--link,
a.matches-table__sport-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

a.matches-table__league--link:hover,
a.matches-table__sport-link:hover,
a.matches-table__sport-link:hover .matches-table__sport-name {
  color: var(--primary);
}

.matches-table__team-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.matches-table__team-slot--home {
  justify-content: flex-end;
}

.matches-table__team-slot--away {
  justify-content: flex-start;
}

.matches-table__filler {
  flex: 1;
  min-width: 0;
  align-self: stretch;
}

.matches-table__team {
  font-size: 14px;
  color: #232323;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  max-width: 100%;
}

.matches-table__team--home {
  text-align: right;
}

.matches-table__team--away {
  text-align: left;
}

a.matches-table__team--link {
  text-decoration: none;
  color: #232323;
  transition: color 0.15s ease;
}

a.matches-table__team--link:hover {
  color: var(--primary);
}

.matches-table__team-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
}

.matches-table__team-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.matches-table__separator {
  font-size: 16px;
  color: #232323;
  flex-shrink: 0;
  min-width: 20px;
  text-align: center;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.matches-table__separator {
  text-decoration: none;
}

.matches-table__odds {
  display: flex;
  flex-shrink: 0;
}

.matches-table__odd {
  width: 128px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #f4f4f4;
}
.matches-table__odd-inner {
  background: var(--grey-light);
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 7px 20px;
  justify-content: space-between;
}

.matches-table__odd-value {
  font-size: 14px;
  font-weight: 700;
  color: #232323;
}

.matches-table__odd-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matches-table__odd-link:hover .matches-table__odd-inner {
  background: #e8f0fe;
}

.matches-table__odd-bk {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.matches-table__bk-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  background: var(--grey-light);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.matches-table__bk-cta:hover {
  background: #e8f0fe;
}

.matches-table__bk-cta-logo {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

.matches-table__odd--changed {
  animation: mt-highlight 2s ease-out;
}

@keyframes mt-highlight {
  0% {
    background: #e8f5e9;
  }
  100% {
    background: transparent;
  }
}

.matches-table__row-header {
  display: none;
}

.matches-table__odd-label {
  display: none;
}

.matches-table__empty {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #7d7d7d;
}

.matches-table__empty + .matches-table__nearest {
  padding-top: 0;
}

.matches-table__nearest {
  padding: 16px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.matches-table__row[data-status="inprogress"] .matches-table__time {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.matches-table__row[data-status="inprogress"] .matches-table__time::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53935;
  flex-shrink: 0;
  animation: mt-pulse 1.5s ease-in-out infinite;
}

@keyframes mt-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .matches-table__header {
    display: none;
  }

  .matches-table__body {
    gap: 12px;
  }

  .matches-table__row {
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    gap: 0;
  }

  .matches-table__row:last-child {
    border-bottom: 1px solid #ebebeb;
  }

  .matches-table__row-header,
  a.matches-table__match-link.matches-table__row-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 12px;
    color: #7d7d7d;
    border-bottom: 1px solid #ebebeb;
  }

  .matches-table__row-header .matches-table__sport-icon svg {
    width: 14px;
    height: 14px;
  }

  .matches-table__match-info {
    padding: 8px 16px;
    justify-content: center;
  }

  .matches-table__time {
    display: none;
  }

  .matches-table__team {
    font-size: 12px;
  }

  .matches-table__filler {
    display: none;
  }

  .matches-table__team-slot {
    flex: 1;
    min-width: 0;
  }

  .matches-table__odds {
    padding: 0 8px 8px;
    border-top: none;
    gap: 10px;
  }

  .matches-table__odd {
    flex: 1;
    width: auto;
    height: auto;
    border-left: none;
  }

  .matches-table__odd-inner {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
    padding: 8px;
    border-radius: 10px;
  }

  .matches-table__odd-label {
    display: inline;
    font-size: 12px;
    font-weight: 400;
    color: #232323;
  }

  .matches-table__odd-bk {
    width: 20px;
    height: 20px;
  }

  .matches-table__bk-cta-logo {
    width: 20px;
    height: 20px;
  }
}


/* --- olegtix-sport-tabs --- */
.sport-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 16px 0;
}

.sport-tabs::-webkit-scrollbar {
  display: none;
}

.sport-tabs__tab {
  display: flex;
  gap: 7px;
  color: var(--text);
}

.sport-tabs__tab img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.sport-tabs__tab-text {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .sport-tabs__tab-text {
    display: none;
  }

  .sport-tabs__tab img {
    width: 24px;
    height: 24px;
  }
}

.sport-tabs--underline {
  gap: 24px;
}

.sport-tabs--underline .sport-tabs__tab {
  font-size: 24px;
  font-weight: 700;
  color: #7d7d7d;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 0 4px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}

.sport-tabs--underline .sport-tabs__tab:hover {
  color: #9345d8;
}

.sport-tabs--underline .sport-tabs__tab--active {
  color: #9345d8;
  border-bottom-color: #9345d8;
}

.sport-tabs--underline .sport-tabs__tab-text {
  display: inline;
}

@media (max-width: 768px) {
  .sport-tabs--underline {
    gap: 16px;
  }

  .sport-tabs--underline .sport-tabs__tab {
    font-size: 18px;
  }

  .sport-tabs--underline .sport-tabs__tab-text {
    display: inline;
  }
}


/* --- olegtix-prediction-card --- */
.prediction-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  padding: 4px;
}

.prediction-card__header {
  background: #f4f4f4;
  border-radius: 10px 10px 0 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.prediction-card__info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 14px;
  color: #7d7d7d;
}

.prediction-card__sport-icon {
  display: flex;
  align-items: center;
}

.prediction-card__sport-icon svg {
  width: 16px;
  height: 16px;
}

.prediction-card__flag {
  width: 16px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.prediction-card__dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #7d7d7d;
  flex-shrink: 0;
}

.prediction-card__header-time,
.prediction-card__header-time-dot {
  display: none;
}

.prediction-card__match {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  min-height: 50px;
  border-bottom: 1px solid #f4f4f4;
}

.prediction-card__time {
  width: 40px;
  flex-shrink: 0;
  font-size: 14px;
  color: #7d7d7d;
}

.prediction-card__team {
  font-size: 14px;
  color: #232323;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prediction-card__team--home {
  flex: 1;
  text-align: right;
}

.prediction-card__team--away {
  flex: 1;
  text-align: left;
}

a.prediction-card__team--link,
a.prediction-card__league--link,
a.prediction-card__sport-name--link {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

a.prediction-card__team--link:hover,
a.prediction-card__league--link:hover,
a.prediction-card__sport-name--link:hover {
  color: var(--primary);
}

a.prediction-card__sport-icon {
  text-decoration: none;
}

.prediction-card__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.prediction-card__separator {
  font-size: 16px;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.prediction-card__bet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grey-light);
  border-radius: 10px;
  padding: 7px 12px;
  flex-shrink: 0;
}

.prediction-card__bet-label {
  font-size: 12px;
  color: #7d7d7d;
}

.prediction-card__bet-value {
  font-size: 14px;
  font-weight: 700;
  color: #232323;
}

.prediction-card__bk-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.prediction-card__arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #7d7d7d;
  text-decoration: none;
  flex-shrink: 0;
}

.prediction-card__arrow:hover {
  color: var(--primary);
}

.prediction-card__expert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #ebf8ec;
  border-radius: 8px;
}

.prediction-card__expert-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

a.prediction-card__expert-left--link {
  color: inherit;
  text-decoration: none;
}

a.prediction-card__expert-left--link:hover .prediction-card__expert-name {
  color: var(--primary);
}

.prediction-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.prediction-card__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.prediction-card__expert-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prediction-card__expert-name {
  font-size: 14px;
  font-weight: 700;
  color: #232323;
}

.prediction-card__expert-position {
  font-size: 12px;
  color: #7d7d7d;
}

.prediction-card__profit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.prediction-card__profit-label {
  font-size: 12px;
  color: #7d7d7d;
}

.prediction-card__profit-value--positive {
  font-size: 16px;
  font-weight: 700;
  color: #4caf50;
}

.prediction-card__profit-value--negative {
  font-size: 16px;
  font-weight: 700;
  color: #e53935;
}

@media (max-width: 768px) {
  .prediction-card__info {
    flex-wrap: wrap;
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .prediction-card__sport-name {
    display: none;
  }

  .prediction-card__sport-name + .prediction-card__dot {
    display: none;
  }

  .prediction-card__header-time,
  .prediction-card__header-time-dot {
    display: inline;
  }

  .prediction-card__header-time-dot {
    display: block;
  }

  .prediction-card__time {
    display: none;
  }

  .prediction-card__match {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 12px;
    border-bottom: none;
  }

  .prediction-card__team {
    font-size: 12px;
  }

  .prediction-card__bet {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 8px 12px;
  }

  .prediction-card__arrow {
    display: none;
  }

  .prediction-card__expert {
    padding: 12px;
  }

  .prediction-card__avatar {
    width: 40px;
    height: 40px;
  }

}

.prediction-card__extras {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 12px 20px;
  background: #f4f4f4;
  border-radius: 8px;
}

.prediction-card__extra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.prediction-card__extra-label {
  color: #232323;
  font-size: 14px;
  font-weight: 400;
}

.prediction-card__extra-value {
  color: var(--primary, #9345d8);
  font-size: 18px;
  font-weight: 700;
}

