.popup {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    z-index: 1000;
}

.popup-bg {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    filter: blur(55px);
    background-color: var(--accent-color);
    opacity: 0.99;
}

.popup-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.popup-content {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.popup-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.popup-header p {
    margin: 0 0 20px;
    font-size: 16px;
    color: #b3b3b3;
}

.popup-buttons {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.continue-btn {
    padding: 10px 20px;
    cursor: pointer;
}

.leave-site {
    margin-top: 10px;
    font-size: 14px;
    text-decoration: none;
}

.leave-site:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}



.home-header__text {
    color: var(--light-color);
    line-height: 120%;
}
.banner-advertise {
    margin-top: 60px;
    position: relative;
    padding-top: 8%;
    display: block;
    cursor: pointer;
}
.banner-advertise img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-content {
    padding: 60px 0;
}



        


.page-content a {
    color: var(--accent-color);
}
.page-content a:hover {
    text-decoration: underline;
}
.homepage-wrapper {
    display: flex;
    margin-top: 60px;
    margin-bottom: 60px;
}
.homepage-wrapper__left {
    padding-right: 30px;
}
.homepage-wrapper__right {
    flex: 1 1 auto;
}

.sidebar {
    position: sticky;
    top: 50px;
}
.sidebar__inner {
    overflow: auto;
    height: calc(100vh - 50px);
}
.sidebar-nav {
    display: none;
}
.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.sidebar-nav ul li svg{
    width: 20px;
    height: 20px;
    display: block;
    margin-right: 7px;
}
.sidebar-nav ul li svg path{
    transition-duration: 0.3s;
}
.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-left: 3px solid var(--accent-color);
    color: var(--light-color);
    background-color: var(--accent-dark-color);
    transition-duration: 0.3s;
}
.sidebar-nav ul li a:hover {
    color: var(--accent-dark-color);
    background-color: var(--accent-color);
}
.sidebar-nav ul li a:hover svg path{
    fill: var(--accent-dark-color);
}

.filters {
}
.filters__close {
    display: none;
}
.filters .filters__title {
    font-size: var(--text-bigger-size);
    margin-bottom: 15px;
}
.filters__item {
    margin-bottom: 15px;
}
.filters__item::last-child {
    margin-bottom: 0px;
}
.filters label {
    font-size: var(--paragraph-size);
    color: var(--light-color)77;
    margin-bottom: 5px;
    display: block;
    
}
.filters .range-inputs {
    display: flex;
    gap: 5px;
}
.filters input {
    background-color: var(--accent-dark-color);
    padding: 10px 10px;
    color: var(--light-color);
    width: 100px;
}
.filters input::placeholder {
    color: var(--accent-color);
}
.filters select {
    background-color: var(--accent-dark-color);
    padding: 10px 10px;
    color: var(--accent-color);
    width: 100%;
}
.filters__butons {
    display: flex;
    gap: 5px;
}
.filters__butons button {
    flex: 0 1 50%;
    padding: 10px 10px;
}



@media(max-width: 1024px) {
    .homepage-wrapper {
        margin-top: 20px;
        flex-wrap: wrap;
    }
    .homepage-wrapper__left {
        flex: 1 1 100%;
        padding-right: 0;
        display: block;
        display: none;
    }
    .sidebar {
        position: static;
    }
    .sidebar-nav {
        display: block;
    }
    .sidebar__inner {
        height: auto;
    }
    .homepage-wrapper__right {
        flex: 1 1 100%;
        margin-top: 0px;
    }
    
    .filters {
        position: fixed;
        z-index: 9999;
        top: 0;
        left: 110%;
        width: 100vw;
        height: 100vh;
        padding: 60px 10px;
        overflow: auto;
        background-image: url(/wp-content/uploads/2024/11/bg.png);
        background-position: left top;
        background-size: auto;
        background-repeat: repeat;
        background-attachment: fixed;
        background-color: #222222;
        transition-duration: 0.3s;
    }
    .filters.shown {
        left: 0;
    }
    .filters__close {
        display: block;
        position: absolute;
        top: 50px;
        right: 15px;
        width: 30px;
        height: 30px;
    }
    .filters__close::before, .filters__close::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        height: 1px;
        width: 100%;
        background-color: var(--light-color);
    }
    .filters__close::before {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    .filters__close::after {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .filters .filters__title {
        font-size: var(--title-h2);
        color: var(--light-color);
    }
    .filters input {
        padding: 20px 15px;
        width: 100%;
    }
    .filters select {
        padding: 20px 15px;
    }
    .filters button {
        padding: 20px 15px;
    }
    .filters button.btn-border {
        padding: 20px 15px;
        color: var(--light-color);
    }
}



.agency .agency-wrapper {
    display: flex;
}
.agency-wrapper__left {
    flex: 0 1 20%;
    padding-right: 30px;
}
.agency__name {
    font-size: var(--title-h2);
}
.agency-wrapper__right {
    flex: 0 1 80%;
}
.girls-cards-agency {
    margin-top: 30px;
}
.girls-cards-agency h2 {
    font-size: var(--paragraph-size);
}
.agency__header .girl-card__description-contacts {
    justify-content: flex-start;
    gap: 30px;
}
.agency .girl-card__description__phone a {
    color: var(--accent-color);
}
.agency .girl-card__description__phone svg path {
    fill: var(--accent-color);
}
.agency__image {
    margin-top: 30px;
    width: 100%;
    height: auto;
    position: relative;
}
.agency__image .agency-card-premium {
    top: -15px;
    left: -15px;
}
.agency__image img {
    width: 100%;
    height: 100%;
}
.agency__contacts {
    margin-top: 40px;
}
.agency__contacts-title {
    font-size: var(--title-h3);
}
.agency__contacts .girl-card__description-contacts {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}
.agency__website {
    margin-top: 20px;
}
.agency__website div {
    font-size: var(--title-h4);
}
.agency__website a {
    display: inline-block;
    margin-top: 5px;
    color: var(--accent-color);
    transition-duration: 0.3s;
}
.agency__website a:hover {
    opacity: 0.7;
}
@media(max-width: 768px) {
    .agency-wrapper {
        flex-wrap: wrap;
    }
    .agency-wrapper__left {
        flex: 1 1 100%;
        padding: 0;
    }
    .agency-wrapper__right {
        flex: 1 1 100%;
        margin-top: 30px;
    }
}


.agencies__inner {
    display: flex;
    flex-direction: column;
}
.agencies__inner .agencies-top {
    order: -1;
}
.girls-cards-silver.agencies-top .girls-cards-row article {
    flex: 0 1 33.333%;
}

.girls-cards-agencies {
    margin-top: 30px;
}
.top-agencies .girls-cards-agencies {
    margin-top: 30px;
}
.top-agencies .girls-cards-agencies {
    margin-top: 30px;
}
.girls-cards.agencies-top .gallery-plural .gallery-top {
    padding-top: 125%;
}
.agencies .agency-card__short-description {
    display: none;
}

.girls-cards.girls-cards-silver.girls-cards-agencies article.agency-card .post-info-wrapper-plural .girl-card__description::before {
    background-color: var(--accent-dark-color);
    opacity: 0.5;
}
.girls-cards-row article.agency-card {
    position: relative;
    padding: 5px;
}
.agency-card-premium {
    position: absolute;
    top: -5px;
    left: -6px;
    width: 60px;
    height: 70px;
    transform: rotate(-90deg);
    z-index: 9;
}
.agency-card-premium img {
    width: 100%;
    height: 100%;
}
.agency-card .gallery-plural {
}
.agency-card .gallery-top img {
    transition-duration: 0.3s;
}
.agency-card .gallery-top:hover img {
    transform: scale(1.1);
}
.agency-card-amount {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-color);
    color: var(--accent-dark-color);
    padding: 3px 7px;
}
.agency-card__short-description {
    max-height: 60px;
    overflow: hidden;
}
.girls-cards-agencies .agency-card__short-description p {
    font-size: var(--text-smaller-size);
}
.agency-card .girl-card__description-header h2 a {
    font-size: var(--title-h3);
}
.agency-card .girl-card__description-contacts--media a{
    width: 30px;
    height: 30px;
}
@media(max-width: 768px) {
    .agency-card-premium {
        top: -8px;
        left: -5px;
    }
    .girls-cards-silver.agencies-top .girls-cards-row article {
        flex: 0 1 50%;
        padding: 0 2px;
    }
    .girls-cards.girls-cards-free.girls-cards-agencies article.agency-card {
        flex: 0 1 33.333%;
        padding: 0 2px;
    }
    .agencies__inner .agencies-top .agency-card {
        flex: 0 1 100%;
    }
    .agencies__inner .agencies-top .agency-card .agency-card__short-description {
        font-size: var(--title-h3);
        max-height: 100px;
    }
    .agencies__inner .agencies-top .agency-card .girl-card__description-contacts--media {
        gap: 12px;
    }
    .agencies__inner .agencies-top .agency-card .girl-card__description__phone a {
        font-size: var(--paragraph-size);
    }
    .girls-cards-free.girls-cards-agencies .agency-card__short-description {
        display: none;
    }
}



.popup-header div {
    font-size: var(--title-h2);
}




/* Общие стили для контейнера статей */
.articles-container {
    display: grid;
    grid-gap: 20px; /* Расстояние между элементами */
    margin-top: 30px;
}

/* Стили для отдельных статей */
.article-new {
    border: 1px solid #423b2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f9f7f1;
}

.article-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.articles-image {
    position: relative;
    padding-top: 60%;
    display: block;
}

.article-new img {
    width: 100%;
    height: 100%;
    display: block;
    border-bottom: 3px solid var(--accent-dark-color);
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

.article-new h2 {
    font-size: 1.25rem;
    margin: 10px 15px;
    color: #423b2a;
    transition: color 0.3s ease;
}

.article-new h2 a {
    text-decoration: none;
    color: inherit;
}

.article-new h2 a:hover {
    color: #f4b827;
}

.article-new p {
    font-size: 1rem;
    margin: 0 15px 15px;
    color: #423b2a;
}

/* Адаптивная сетка */
/* Для десктопов (3 колонки) */
@media (min-width: 1024px) {
    .articles-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Для планшетов (2 колонки) */
@media (min-width: 768px) and (max-width: 1023px) {
    .articles-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Для мобильных устройств (1 колонка) */
@media (max-width: 767px) {
    .articles-container {
        grid-template-columns: 1fr;
    }
}

/* Пагинация */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination ul {
    display: inline-block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination li {
    display: inline;
    margin: 0 5px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #423b2a;
    border-radius: 5px;
    color: #423b2a;
    text-decoration: none;
    background-color: #f9f7f1;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.pagination .current {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: bold;
    pointer-events: none;
    border-color: var(--accent-color);
}







/* Контейнер страницы */
.single-container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    background-color: #f9f7f1;
    border: 1px solid #423b2a;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Заголовок поста */
.single-title {
    color: #423b2a;
    margin-bottom: 10px;
    text-align: center; 
}

/* Метаинформация */
.single-meta {
    color: #777;
    text-align: center;
    margin-bottom: 20px;
}

/* Изображение поста */
.single-thumbnail {
    position: relative;
    padding-top: 60%;
    margin-bottom: 20px;
}
.single-thumbnail img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #f4b827;
}

/* Контент поста */
.single-content {
    color: #423b2a;
    margin-bottom: 20px;
}
.single-content h2, .single-content h3 {
    color: var(--dark-color);
}
.single-content a {
    color: var(--accent-dark-color);
    text-decoration: underline;
}
.single-content a:hover {
    text-decoration: none;
}

/* Навигация между постами */
.single-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.single-navigation a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #f4b827;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.single-navigation a:hover {
    background-color: var(--accent-color);
    color: #fff;
}



.independent-wrapper__girls-cards {
    margin-top:40px;
}



.scroll-to-top {
  position: fixed;
  z-index: 99;
  bottom: 20px;
  right: 20px;
  display: none; /* Кнопка скрыта по умолчанию */
  background-color: var(--accent-color);
  color: var(--accent-dark-color);
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.scroll-to-top:hover {
  background-color: transparent;
  color: var(--accent-color);
}





.bottom-section {
    padding: 0px 0 100px;
    text-align: center;
}
.bottom-section__advertise {
    margin-top: 100px;
}
.bottom-section__row {
    margin: 0 -7px;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
}
.bottom-section__item {
    flex: 0 1 33.333%;
    padding: 7px;
    display: flex;
    flex-direction: column;
}
.bottom-section__column {
    background-color: var(--accent-dark-color);
    color: var(--light-color);
    padding: 15px;
    flex: 1 1 auto;
}
.bottom-section__column a {
    color: var(--accent-color);
}
.bottom-section__column a:hover {
    text-decoration: underline;
}
.bottom-section__button {
    margin-top: 60px;
}
.bottom-section__button a {
    
}
@media(max-width: 1024px) {
    .bottom-section__item {
        flex: 0 1 100%;
    }
}

.top-of-the-week .girls-cards {
    margin-top: 30px;
    padding-bottom: 0;
}
.top-of-the-week .girl-card__description-text {
    display: none;
}
.girls-cards-silver .girl-card__description-text {
    display: none;
}
.girls-cards-free .girl-card__description-text {
    display: none;
}
.girls-cards-silver .girl-card__description-details {
    display: none;
}
.girls-cards-free .girl-card__description-details {
    display: none;
}
.girl-card__description-header h3 {
    text-transform: camelcase;
    font-size: var(--paragraph-size);
    text-align: left;
}
.top-of-the-week .girls-cards .girls-cards-row .girl-card {
    flex: 0 1 calc(100% / 6);
}
.top-of-the-week .girls-cards .girl-card__description-price span {
    display: none;
}
.top-of-the-week .girls-cards .girl-card__description-price span:first-child {
    display: block;
}
.top-of-the-week .girls-cards .girl-card__description-price span .girl-card__description-width {
    display: none;
}
.top-of-the-week .girl-card__description-details {
    display: none;
}
.top-of-the-week .girl-card__description__phone span {
    
}
.top-of-the-week .girls-cards.girls-cards-silver .post-info-wrapper-plural .girl-card__description::before {
    background-color: var(--accent-color);
    opacity: 0.7;
}
@media(max-width: 1024px) {
    .top-of-the-week .girls-cards .girls-cards-row .girl-card {
        flex: 0 1 calc(100% / 4);
    }
}
@media(max-width: 768px) {
    .top-of-the-week .girls-cards {
        padding-bottom: 0;
        margin-bottom: 0;
        margin-top: 10px;
    }
    .top-of-the-week .girls-cards .girls-cards-row .girl-card {
        flex: 0 1 calc(100% / 3);
    }
    .mobile-column-3 .girls-cards-row article.girl-card {
        flex: 0 1 calc(100% / 3);
    }
    .mobile-column-3 .girl-card__description-header h3 {
        font-size: var(--paragraph-size);
    }
    .mobile-column-3 .girl-card__description-details {
        display: none;
    }
    .girls-cards.mobile-column-3 .girl-card__description__phone a {
        font-size: var(--text-smaller-size);
    }
    .girls-cards.mobile-column-3 .girl-card__description-contacts--media a {
        width: 15px;
        height: 15px;
    }
    .girls-cards.mobile-column-3 .girl-card__description__phone svg {
        width: 10px;
        height: 10px;
    }
    
    
    .bottom-section__row {
        margin: 0;
        margin-top: 30px;
    }
}



.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}




/* Контейнер всех постов */
.posts-row-container {
    margin-top: 100px;
}
.posts-row-container h2 {
    text-align: center;
}
.posts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px -7px 0;
    justify-content: space-between;
}

/* Одиночный пост */
.post-item {
    flex: 1 1 calc(25% - 14px); /* 4 в ряд */
    box-sizing: border-box;
    padding: 15px;
    background: var(--light-color);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Изображение */
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.posts-row-container .post-thumbnail {
    position: relative;
    padding-top: 70%;
}
.posts-row-container .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Заголовок */
.post-title {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0 8px;
    color: var(--accent-color);
}

/* Краткое описание */
.post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    color: var(--accent-dark-color);
    max-height: 100px;
    overflow: hidden;
}

/* Адаптив */
@media (max-width: 1024px) {
    .posts-row {
        margin: 30px 0px 0;
    }
    .post-item {
        flex: 1 1 calc(50% - 20px); /* 2 в ряд на планшетах */
    }
}

@media (max-width: 600px) {
    .post-item {
        flex: 1 1 100%; /* 1 в ряд на мобилках */
    }
}



.breadcrumbs {
  font-size: var(--paragraph-size);
  margin-bottom: 15px;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "→";
  margin: 0 8px;
  color: var(--dark-color);
}

.breadcrumbs__link {
  color: var(--accent-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.breadcrumbs__link:hover {
  text-decoration: underline;
}

.breadcrumbs__current {
}

.breadcrumbs__icon {
  margin-right: 4px;
}





.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 20px;
    gap: 20px;
}
@media(max-width: 768px) {
    .post-navigation {
        flex-direction: column;
    }
}

.post-navigation a {
    display: block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: var(--accent-dark-color);
    transition: background-color 0.3s ease;
}

.post-navigation a:hover {
    background-color: var(--accent-color);
    color: var(--accent-dark-color);
    opacity: 1;
}

.back-to-posts a {
    font-size: 16px;
}

.arrows-navigation {
    display: flex;
}
.next-post a {
    margin-left: 20px;
}
.prev-post a,
.next-post a {
    font-size: 14px;
}