.services__wrapper {
    width: 100%;
}

.services__wrapper ul {
    padding-top: 0px;
}

.services__wrapper li {
    position: relative;
    padding-left: 10px;
}

.services__wrapper ul li {
    list-style: none;
}

.services__wrapper h2 {
    margin-bottom: 20px;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
}

.section_pt30 {
    padding-top: 30px;
}
.page-title {
    font-size: 48px;
    line-height: 48px;
}

.page-nav > li {
    display: inline;
}

.page-nav {
    display: block;
}
.page-nav__link {
    font-size: 14px;
}
main img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

.services__wrapper > ul > li {
    position: relative;
    padding-left: 20px;
    line-height: 1.25;
}


.services__wrapper > ul > li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #000000;
}
@media screen and (max-width: 992px) {
    .page-title_middle {
        font-size: 25px;
        line-height: 30px;
    }
}

.services__wrapper {
    font-size: 18px;
    line-height: 1.3;
}

.menu-top__link {
	font-weight: 500;
	font-family: 'Roboto', sans-serif;
}
.product__img picture {
    align-items: center;
    justify-content: center;
}

.product__descr {
    align-items: center;
    justify-content: center;
}

.section_pt100 {
padding-top: 100px;
}

.table {
	width: 100%;
	margin-bottom: 20px;
	border: 1px solid #dddddd;
	border-collapse: collapse; 
}
.table th {
	font-weight: bold;
	padding: 5px;
	background: #efefef;
	border: 1px solid #dddddd;
}
.table td {
	border: 1px solid #dddddd;
	padding: 5px;
}

.header__body_mb45 {
    margin-bottom: 45px;
}



.price-adds {
    text-align: right;
}
.price-adds a {
    color: #5b5b5b;
    text-decoration: none;
}
.price-adds a:hover {
    color: #a5cd39;
    text-decoration: none;
}
.price-print {
    margin-right: 20px;
}

.medicationw__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
    width: 100%;
    font-size: 18px;
    line-height: 1.3;
    color: var(--gray-200);
    width:100%;
    padding-top: 40px;
    gap: 35px;
}

.science_link {
    color:#a5cd39;
}
.science_link:hover {
    color:#b7d763;
}
.announce_link {
    color:#595959;
}
.announce_link:hover {
    color:#295b18;
}

.search-container {
    position: relative;
    z-index: 1000;
}


.search-icon {
    vertical-align: middle;
    fill: #2c3e50;
}

/* Затемнение контента */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 998;
}

/* Панель поиска */
.search-panel {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 999;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--light-green);
}

.search-input {
    flex: 1;
    border: none;
    font-size: 18px;
    padding: 12px;
    outline: none;
    background: transparent;
}

.search-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.search-close:hover {
    color: #e74c3c;
}

/* Результаты поиска */
.search-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .search-results {
        max-height: 80vh;
        -webkit-overflow-scrolling: touch; /* Включаем плавный скролл на iOS */
    }
}

.result-item {
    padding: 12px 15px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.result-item:hover {
    background: #f1f2f6;
}

/* Активное состояние */
.search-active .search-overlay {
    opacity: 1;
    visibility: visible;
}

.search-active .search-panel {
    top: 0;
}

.search-active body {
    overflow: hidden;
}
.product-item {
    background: #f8fff8;
    border-left: 4px solid #4CAF50;
    order: -1; /* Для flex/grid контейнера */
}

.product-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 10px;
    vertical-align: middle;
}

/* Общие стили результатов */
.result-item {
    display: block;
    padding: 12px 15px;
    margin: 5px 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.2s;
    color: #333;
    text-decoration: none;
}

.result-item:hover {
    background: #f5f5f5;

}

.result-title {
    vertical-align: middle;
}

/* Состояния */
.loading {
    color: #666;
    font-style: italic;
}

.error {
    color: #e74c3c;
}

.no-results {
    color: #666;
    border: none;
}
