.profile {
  color: #fff;
}

.profile-inner {
}

.profile-row {
  display: flex;
}

.profile-left {
  flex-basis: 50%;
  box-sizing: border-box;
  padding-right: 16px;
}

.profile-photo {
  margin-bottom: 16px;
}

.profile-photo img {
  max-width: 100%;
}

.profile-rating {
  box-sizing: border-box;
}

.profile-rating-title {
  font-size: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.profile-rating-item {
  display: flex;
  align-items: center;
}

.profile-rating-item:not(:last-child) {
  margin-bottom: 8px;
}

.profile-rating-label {
  flex-grow: 1;
}

.profile-rating-value {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
}

.profile-rating-item-win .profile-rating-value {
  background-color: #00A642;
  
}

.profile-rating-item-loss .profile-rating-value {
  background-color: #E00707;
}

.profile-rating-item-draw .profile-rating-value {
  background-color: #fff;
  color: #000;
}

.profile-right {
  flex-basis: 50%;
  padding-left: 16px;
  box-sizing: border-box;
}

.profile-line {
  font-size: 18px;
}

.profile-line:not(:last-child) {
  margin-bottom: 8px;
}

.profile-line.profile-name {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 16px;
}

.profile-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.profile-table table {
  background-color: #2b2b2b;
  border-radius: 6px;
  border-collapse: collapse;
  overflow: hidden;
}

.profile-table th {
  border-bottom: 1px solid #fff;
  padding: 6px;
}

.profile-table td {
  padding: 6px 16px;
}

.profile-table tr:nth-child(even) td {
  background-color: #373737;
}

.search-form {
  margin-bottom: 16px;
}

@media (max-width: 767.98px) {  

  
  .profile-photo {
    box-sizing: border-box;
  }
  .profile-rating {
    flex-grow: 1;
    font-size: 14px;
  }
  .profile-rating-title {
    font-size: 18px;
  }
  .profile-right {
    padding-left: 0;
  }
  .profile-line {
    font-size: 16px;
    line-height: 1.2;
  }

  .profile-line.profile-name {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
  }
}


@media (max-width: 560px) {
  .profile-row {
    display: block;
  }
  .profile-left {
    padding-right: 0;
    margin-bottom: 16px;
  }
  .profile-title {
    font-size: 20px;
  }

  .profile-table {
    overflow: auto;
    width: 100%;
  }

  .profile-table table {
    width: 500px;
  }

}  





/* === CTA «Подать заявку» в шапке === */
.main-navigation .menu li.menu-item.menu-button > a,
.mobile-menu-container .menu li.menu-item.menu-button > a {
  background: transparent;
  color: #006030 !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 8px;
  border: 2px solid #006030;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.main-navigation .menu li.menu-item.menu-button > a:hover,
.main-navigation .menu li.menu-item.menu-button > a:focus,
.mobile-menu-container .menu li.menu-item.menu-button > a:hover {
  background: #006030;
  color: #fff !important;
  border-color: #006030;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 96, 48, 0.28);
}

.main-navigation .menu li.menu-item.menu-button > a::after {
  content: " →";
  display: inline-block;
  transition: transform 0.18s ease;
  opacity: 0.85;
}

.main-navigation .menu li.menu-item.menu-button > a:hover::after {
  transform: translateX(4px);
}

/* убираем подчёркивание/линию-индикатор у CTA */
.main-navigation .menu li.menu-item.menu-button > a::before {
  display: none !important;
}

@media (max-width: 1024px) {
  .main-navigation .menu li.menu-item.menu-button > a {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* Софт-подсветка текущей страницы в шапке вместо яркого белого фона */
.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-parent > a,
.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-ancestor > a {
  background: transparent !important;
  color: #7bcb98 !important;
  box-shadow: inset 0 -2px 0 0 #7bcb98;
}

/* Hover тоже мягче — без сильного фона */
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover {
  background: transparent !important;
  color: #7bcb98 !important;
}

/* Активный пункт в выпадашке тоже */
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a {
  background: rgba(0,96,48,0.15) !important;
  color: #fff !important;
}
.header-navigation .header-menu-container ul ul li.menu-item > a:hover {
  background: rgba(0,96,48,0.20) !important;
}

/* Мобильное меню — активный */
.mobile-navigation ul li.current-menu-item > a,
.mobile-navigation ul li.current-menu-item.menu-item-has-children > .drawer-nav-drop-wrap {
  color: #7bcb98 !important;
}

/* === Фишки навигации в /galereya/ === */
.gallery-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  margin: 0 0 24px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #e4e4e4;
}
.gallery-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #006030;
  border-radius: 999px;
  color: #006030;
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.gallery-chip:hover {
  background: #006030;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,96,48,0.18);
}
/* плавный скролл к якорю */
html { scroll-behavior: smooth; }
/* отступ под sticky nav при якоре */
[id^="a-"] { scroll-margin-top: 96px; }

@media (max-width: 720px) {
  .gallery-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-chip { font-size: 13px; padding: 7px 12px; }
}

/* Латест-постс блок на тёмном фоне главной */
.wp-block-latest-posts__list .wp-block-latest-posts__post-title,
.wp-block-latest-posts__list .wp-block-latest-posts__post-title a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
}
.wp-block-latest-posts__list .wp-block-latest-posts__post-title:hover,
.wp-block-latest-posts__list .wp-block-latest-posts__post-title:hover a {
  color: #7bcb98 !important;
  text-decoration: underline;
}
.wp-block-latest-posts__list .wp-block-latest-posts__post-date {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px;
}
.wp-block-latest-posts__list > li {
  margin-bottom: 24px;
}
