/* Staff Archive Page */
/* Сетка сотрудников */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.staff-member {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 20px;
    border: 1px solid #eee;
}

.staff-member:hover {
    transform: translateY(-5px);
}

.staff-thumbnail {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.staff-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-name {
    margin: 1rem;
    font-size: 1.25rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
    margin-left: 0;
}

.staff-position {
    margin: 0 1rem 1rem;
    color: #666;
}

/* Single Staff Page */




.staff-services {
    margin-top: 40px !important;
    padding: 40px;
    background: var(--gray--100);
    border-radius: 4px;
}

.staff-services h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}






/* Карточка услуги */
.service-item {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 30px;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.service-item .service-title{
    padding: 10px;
    background: #222;
    color: #fff;
}

.service-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}
.service-item h4 {
    margin: 0;
    font-size: 18px;
    flex: 1;
}

.service-item h4 a {
    text-decoration: none;
}

.service-item h4 a:hover {
    color: #135e96;
}

.service-price {
    font-weight: bold;
    color: #2271b1;
    white-space: nowrap;
    margin-left: 15px;
}

.service-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 10px;
}



.entry-staff-title {
    font-size: 24px;
    margin-bottom: 6px;
    line-height: 1.5;
}

@media only screen and (max-width: 768px) {
    
   .entry-staff-title {
    font-size: 18px;
}
    
}



.staff-single {
    margin-bottom: 50px;
}

.staff-featured-image {
    margin-bottom: 0;
    width: 50%;
    min-width: 280px;
}

.staff-featured-image img {
    border-radius: 0;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.staff-position {
    font-size: 1.25rem;
    color: #222;
    margin-bottom: 1rem;
    opacity: 0.6;
    font-weight: normal;
    margin: 0;
}

.staff-experience,
.staff-address,
.staff-position,
.staff-education,
.staff-specialization,
.staff-working_hours,
.staff-phone,
.staff-email {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4rem;
}

.staff-description {
    line-height: 1.6;
    color: #333;
    padding-top: 2.5625rem;
}

/* Custom Staff Fields */
.staff-email a,
.staff-phone a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.staff-email a:hover,
.staff-phone a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Staff Categories Widget */
.staff-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.staff-categories-list li {
    margin-bottom: 0.5rem;
}

.staff-categories-list a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.staff-categories-list a:hover {
    color: #0073aa;
}


.staff-featured-wrap {
    display: flex;
    background: var(--gray--100);
}



.staff-featured-info {
       padding: 40px;
}


.staff-entry-content {
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 5px;
    padding-bottom: 25px;
}


@media only screen and (max-width: 768px) {

.staff-entry-content {
    padding: 20px;
}
    
    
   .staff-description  ul, .staff-description ol {
    padding: 0 0 0 1.5em;
}
    
    
   .staff-entry-content  .comment-list article {
    padding-bottom: 1.5em;
}
    
    
    
}



/* Стили для отображения рейтинга */
.star-rating {
    display: inline-block;
    margin: 10px 0;
}

.star-rating-wrap {
    display: flex;
    align-items: center;
}

.star {
    color: #ddd;
    font-size: 20px;
    padding: 0 1px;
}

.star.filled {
    color: #ffd700;
}

.star.half {
    position: relative;
    color: #ddd;
}

.star.half:before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    color: #ffd700;
    overflow: hidden;
}

.rating-number {
    margin-left: 5px;
    color: #666;
    font-size: 16px;
}

/* Стили для формы рейтинга */



.staff-comments-area .comment-respond .comment-reply-title {
    margin-bottom: 20px;
    margin-top: 45px;
    padding-left: 0;
    border: 0;
}


.comment-form-rating {
    margin: 0 0 20px 0;
    background: #f9f9f9;
    border-radius: 5px;
    padding: 0px !important;
    margin-bottom: 30px !important;
}

.comment-form-rating label {
display: block;
    margin-bottom: 10px;
    font-weight: normal;
    color: #333;
}


.comment-form-cookies-consent {
    display: flex;
    gap: 5px;
    flex-direction: row;
    align-items: flex-start;
}

#wp-comment-cookies-consent {
    width: auto;
    position: relative;
    top: 5px;
}

.rating-stars {
    display: flex;
    background: #fff;
    padding: 10px 10px 10px 15px;
    flex-direction: row-reverse;
    justify-content: flex-end;
    width: fit-content;
    border-radius: 5px;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    color: #ddd;
    font-size: 30px;
    padding: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input[type="radio"]:checked ~ label {
    color: #ffd700;
    transform: scale(1.2);
}

.rating-stars:hover label {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Стили для отзывов */
.comment-list .star-rating {
    margin: 5px 0;
}

.average-rating {
    background: var(--gray--100);
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 25px;
    margin-top: 25px;
}

.average-rating-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.total-ratings {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}


.comment-author.vcard a {
    color: #222;
    font-size: 16px;
}


.staff-comments-area .comment-meta {
    display: flex;
    gap: 0;
    font-size: 14px;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.staff-comments-area .comment-content {
    padding: 25px;
    background: #fff;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
    margin-top: 15px;
}

.comment-content p {
    margin-bottom: 0;
    padding-bottom: 0;
}


.comment-reactions {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.reaction-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.reaction-buttons button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 0;
    background: #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2sease;
    color: #222;
}

.reaction-buttons button:hover {
    background: #e7e7e7;
}

.reaction-buttons .like-button:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.reaction-buttons .dislike-button:hover {
    border-color: #f44336;
    color: #f44336;
}

.reaction-buttons .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.likes-count,
.dislikes-count {
    font-size: 14px;
    font-weight: 500;
}


/* Стили сервисов */



.service-thumbnail {
    margin-bottom: 30px;
}

.service-thumbnail img {
    width: 100%;
    height: auto;
}

/* Стили для цен услуг */
.service-prices {
    margin: 40px 0;
    padding: 30px;
    background: #f7f7f7;
    border-radius: 8px;
}

.service-prices h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-name {
    display: flex;
    align-items: baseline;
    flex: 1;
    margin-right: 15px;
    font-size: 16px;
    color: #333;
}

.price-label {
    white-space: nowrap;
}

.price-dots {
    flex: 1;
    margin: 0 10px;
    border-bottom: 1px dotted #ccc;
    min-width: 20px;
}

.price-value {
    white-space: nowrap;
    font-weight: bold;
    font-size: 18px;
    color: var(--accent__Color);
}

@media (max-width: 768px) {
    .price-item {
        flex-direction: column;
        gap: 10px;
    }

    .price-name {
        margin-right: 0;
    }

    .price-dots {
        display: none;
    }

    .price-value {
        align-self: flex-start;
    }
}

.service-specialists {
    margin: 30px 0;
}

.specialists-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.specialist-item {
    text-align: center;
}

.specialist-item a {
    text-decoration: none;
    color: inherit;
}

.specialist-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.specialist-item h4 {
    margin: 10px 0 5px;
    font-size: 16px;
}

.specialist-position {
    color: #666;
    font-size: 14px;
    margin: 0;
}




.service-category-block {
    margin-bottom: 40px;
    padding: 30px;
    background: #F8F8F8;
    border-radius: 5px;
    margin-top: 40px;
}

.category-title {
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
    font-size: 24px;
    line-height: 1.7;
}

.category-description {
    display: block;
    margin-top: 5px;
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

.services-list {
    margin: 0;
    padding: 0;
}

.service-item {
    background: white;
    border-radius: 6px;
    margin-bottom: 0px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-header {
      margin-bottom: 0;
}

.service-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.service-title a {
    color: #2271b1;
    text-decoration: none;
}

.service-title a:hover {
    color: #135e96;
}

.service-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
    font-weight: normal;
}

.child-services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.child-service-row {
    border-bottom: 1px solid #eee;
}

.child-service-row:last-child {
    border-bottom: none;
}

.child-service-name {
    padding: 12px 0;
}

.child-service-name a {
    color: #444;
    text-decoration: none;
    font-size: 16px;
}

.child-service-name a:hover {
    color: #2271b1;
}

.child-service-price {
    padding: 12px 0;
    text-align: right;
    color: #2271b1;
    font-weight: 500;
    white-space: nowrap;
    font-size: 16px;
}

@media (max-width: 768px) {
    .service-item {
        padding: 15px;
    }

    .service-title {
        font-size: 20px;
    }

    .service-excerpt,
    .child-service-name a,
    .child-service-price {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .service-category-block {
        padding: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 20px;
    }

    .category-description {
        font-size: 14px;
    }
}

.service-prices {
    margin: 40px 0;
    padding: 40px;
    background: #f7f7f7;
    border-radius: 5px;
}

.service-prices h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px;
    background: white;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-name {
    display: flex;
    align-items: baseline;
    flex: 1;
    margin-right: 15px;
    font-size: 16px;
    color: #333;
}

.price-label {
    white-space: break-spaces;
}

.price-dots {
    flex: 1;
    margin: 0 10px;
    border-bottom: 1px dotted #ccc;
    min-width: 20px;
}

.price-value {
    white-space: nowrap;
    font-weight: 500;
    font-size: 18px;
    color: var(--accent__Color);
}

@media (max-width: 768px) {
    .price-item {
        flex-direction: column;
        gap: 10px;
    }

    .price-name {
        margin-right: 0;
    }

    .price-dots {
        display: none;
    }

    .price-value {
        align-self: flex-start;
    }
}



.category-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.services-table th,
.services-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.services-table th {
    background: #f7f7f7;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.service-price-header {
    text-align: right;
}

.service-name {
    color: #444;
    font-size: 16px;
}

.service-name a {
    color: inherit;
    text-decoration: none;
}

.service-name a:hover {
    color: #2271b1;
}

.service-price {
    text-align: right;
    color: var(--accent__Color);
    font-weight: 500;
    white-space: nowrap;
    font-size: 18px;
}

.price-on-request {
    color: #666;
    font-style: italic;
}

.service-row:last-child td {
    border-bottom: none;
}

.service-row:hover {
    background: #f9f9f9;
}



.category-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}


.staff-grid + .pagination{
    margin-bottom: 100px;
    padding-top: 50px;
}


.staff-grid a{
    text-decoration: none;
}

.staff-member {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.staff-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.staff-member-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.staff-thumbnail {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.staff-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}



.staff-name a {
    color: #2271b1;
    text-decoration: none;
}

.staff-name a:hover {
    color: #135e96;
}

.staff-position {
    margin: 0 0 10px;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}




.staff-services h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
    padding-bottom: 20px;
    padding-top: 20px;
}

.services-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.services-list li {
    margin: 5px 0;
    padding-left: 15px;
    position: relative;
}

.services-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2271b1;
}

.services-list a {
    color: #666;
    text-decoration: none;
    font-size: 20px;
    padding-bottom: 0;
}

.services-list a:hover {
    color: #2271b1;
}

.more-services {
    display: inline-block;
    margin-top: 10px;
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}

.more-services:hover {
    color: #135e96;
}

.staff-contacts {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}



.staff-link {
    margin-top: auto;
    display: inline-block;
    padding: 8px 20px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.staff-link:hover {
    background: #135e96;
    color: white;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }

    .staff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .staff-name {
        font-size: 18px;
    }

    .staff-position {
        font-size: 14px;
    }
}



 @media(max-width: 1040px) {
     
     
   .staff-featured-wrap {
    display: flex;
    flex-direction: column;
}  
     
     
.staff-featured-wrap .staff-featured-image {
    width: 100%;
}
     
     
.staff-entry-content  .staff-services {
    padding: 20px;
}
     
     
}


.staff-appointment-link {
    margin-top: 25px;
    margin-bottom: 0;
}



@media only screen and (max-width: 768px) {
    
.services-list {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
}
    
.staff-services .service-info {
    flex-direction: column;
}
    
.staff-services   .service-item h4 {
    width: 100%;
}
    
.staff-services  .service-price {
    text-align: left;
    font-size: 18px;
    margin: 0;
    padding-top: 10px;
}
    
    
    .service-prices {
    padding: 20px;
}
    
    
    
}


