*
{
    box-sizing: border-box;
}

/* Cookie popup */
#cookie-popup {
    display: none;
    opacity: 0;
    transition: opacity 150ms ease;
}
#cookie-popup:not(.cookie-hidden) {
    opacity: 1;
}

html{
    overflow-y: scroll;
}

body {
  margin: 0;

  font-family: 'Onest', arial, sans-serif;
  background: rgba(245, 247, 250, 1);
}

[v-cloak] {
  opacity: 0;
}

.container
{
    /* margin: 0 5px; */
}

h1
{
    font-size: 20px;
    text-align: center;
}

.base-block
{
    background: white;
    border-radius: 10px;
    padding: 5px;
}

.catalog-panel {
    display: grid;
  grid-template-columns: 256px 1fr;
  grid-template-rows: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.loader
{
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f1832a;
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
}
@keyframes loader-spin
{
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


@media (max-width: 767px) {

     .hide-mobile
    {
        display: none;
    }

    .left-column {
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        z-index: 1001;
        background: white;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-bottom: 20px;
    }

    .filter-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f5f5f5;
        padding: 15px;
        border-bottom: 1px solid #e0e0e0;
    }

    .filter-header h3 {
        margin: 0;
        font-size: 20px;
        color: #333;
    }

    .close-panel {
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
        color: #666;
        padding: 10px;
        transition: color 0.2s;
    }

    .close-panel:hover {
        color: #333;
    }
    .left-column.active {
        left: 0;
    }
    .catalog-panel {
        grid-template-columns: 1fr;
    }
}

/* Mobile Top Header */
.mobile-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.list-complete
{
    position: static !important;
}

.mobile-header-search .list-complete .listing {
    position: absolute !important;
    width: 100vw;
    left: 0;
    z-index: 11111;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    padding-top: 10px;
}

.mobile-logo
{
    display:flex;
    align-items:center;
        padding: 8px 0 0 0;
}

.popup-mobile-header
{
    padding: 10px 10px;
}

.mobile-logo img {
    height: 20px;
}

.mobile-burger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 0 0 0;
}

.mobile-burger:active {
    background: #f5f5f5;
    border-radius: 4px;
}

.mobile-burger .burger-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    position: relative;
}

.mobile-burger .burger-icon span {
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    background-color: currentColor;
    transition: transform 0.3s ease, top 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
}

.mobile-burger .burger-icon span:nth-child(1) {
    top: 2px;
}

.mobile-burger .burger-icon span:nth-child(2) {
    top: 10px;
}

.mobile-burger .burger-icon span:nth-child(3) {
    top: 18px;
}

.mobile-burger.active .burger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
    margin-top: -1px;
}

.mobile-burger.active .burger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-burger.active .burger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 50%;
    margin-top: -1px;
}

/* Mobile Header Search */
.mobile-header-search {
    flex: 1;
    min-width: 0;
    margin: 0 10px;
}

.mobile-header-search .search-complete {
    width: 100%;
}

.mobile-header-search .search-complete form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.mobile-header-search .search-complete input[type="text"] {
    flex: 1;
    padding: 6px 12px 6px 32px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    min-width: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5A6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5S14 7.01 14 9.5S11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 10px center;
}

.mobile-header-search .search-complete input[type="text"]:focus {
    border-color: #f7811b;
}

.mobile-header-search .search-complete .button-send {
    display: none;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1500;
    display: none;
    align-items: flex-start;
    overflow-y: auto;
}

.mobile-menu-panel.open {
    display: flex;
    flex-direction: column;
}

.mobile-close-btn {
    /* position: absolute; */
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: #666;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.mobile-close-btn:hover {
    color: #000;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
}

.mobile-menu-logo img {
    height: 30px;
}

.mobile-menu-content {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.mobile-catalog,
.mobile-pages {
    /* border-bottom: 1px solid #e0e0e0; */
    padding-bottom: 20px;
}

.mobile-phone {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    margin-top: auto;
}

.mobile-phone a {
    text-decoration: none;
    color: #005bff;
    font-weight: 500;
}

/* Mobile Top Menu Styling */
@media (max-width: 767px) {
    .top-menu {
        padding: 10px 0;
    }

    .top-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .top-menu li {
        border-bottom: 1px solid #f0f0f0;
    }

    .top-menu li:last-child {
        border-bottom: none;
    }

    .top-menu a {
        color: #333;
        text-decoration: none;
        font-size: 16px;
        padding: 12px 15px;
        display: block;
        transition: background-color 0.2s ease;
    }

    .top-menu a:hover,
    .top-menu a.selected {
        background-color: #f5f7fa;
        color: #f7811b;
        font-weight: 500;
    }

    /* Sub-menu button styling */
    .but-sub {
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 10px;
    }

    .but-sub:hover {
        background-color: #f5f7fa;
    }

    .sub-menu {
        margin-top: 5px;
    }

    .sub-menu li {
        border-bottom: 1px solid #f5f5f5;
    }

    .sub-menu a {
        font-size: 14px;
        padding: 10px 15px 10px 30px;
        color: #666;
    }

    .sub-menu a:hover {
        background-color: #f9f9f9;
        color: #f7811b;
    }
}

/* Fix nav-head z-index */
.nav-head {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 10px;
       position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1111;
    background: white;
    padding: 7px;
    left: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-link {
    color: inherit;
    text-decoration: none;
    height: 24px;
}

.icon-link:hover {
    color: #f7811b;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f7811b;
    color: white;
    border-radius: 10px;
    padding: 1px 5px;
    font-size: 11px;
    min-width: 16px;
    text-align: center;
}

.label {
    font-size: 11px;
    margin-top: 2px;
    text-align: center;
    white-space: nowrap;
}



.modal-header-sticky h3 {
    margin: 0;
}

/* Catalog link burger icon */
.catalog-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1f1f1f;
    font-weight: 500;
}

.catalog-link:hover {
    color: #005bff;
}

.burger-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    position: relative;
}

.burger-icon span {
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.3s, top 0.3s ease, margin-top 0.3s ease;
    transform-origin: center;
}

.burger-icon span:nth-child(1) {
    top: 2px;
}

.burger-icon span:nth-child(2) {
    top: 10px;
}

.burger-icon span:nth-child(3) {
    top: 18px;
}

.catalog-link.active .burger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
    margin-top: -1.5px;
}

.catalog-link.active .burger-icon span:nth-child(2) {
    opacity: 0;
}

.catalog-link.active .burger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 50%;
    margin-top: -1.5px;
}

.call-phone a
{
    font-size: 18px;
    font-weight: 700;
    color: black;
    text-decoration: none;
}
footer{
    margin-top: 20px;
}

/* Footer base styles */
.footer-content {
    /* background: #f8f9fa;
    border-top: 1px solid #e9ecef; */
}

.footer-menu,
.footer-copyright-switch {
    margin: 0;
}

.footer-copyright-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    /* background: #f8f9fa; */
    border-top: 1px solid #e9ecef;
}

.footer-copyright-text {
    text-align: center;
}

.footer-copyright-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Адаптивное поведение: мобильная/десктоп версии */
.footer-mobile-view,
.footer-desktop-view {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: -9999px;
    transition: all 0.2s ease;
}

/* Mobile Layout */
@media (max-width: 767px) {

    .title-carousel
    {
        margin: 15px 10px;
    }

    /* Отступ для фиксированного нижнего меню nav-head на мобильных */
    .footer-content {
        padding-bottom: 60px;
    }

    .footer-mobile-view {
        opacity: 1;
        pointer-events: auto;
        position: static;
        transition: all 0.2s ease;
    }

    .footer-desktop-view {
        opacity: 0;
        pointer-events: none;
        position: absolute;
        transition: all 0.2s ease;
    }

    /* Accordion styles для мобильной версии */
    .footer-accordion {
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 0;
    }

    .footer-accordion-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8f9fa;
        border: none;
        padding: 16px 15px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .footer-accordion-toggle:hover,
    .footer-accordion-toggle:focus {
        background: #e9ecef;
    }

    .footer-accordion-title {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .footer-accordion-icon {
        font-size: 20px;
        color: #666;
        transition: transform 0.2s ease;
        margin-left: 10px;
        font-weight: bold;
    }

    .footer-menu-list {
        background: white;
        list-style: none;
        margin: 0;
        padding: 0;
        animation: slideDown 0.2s ease-out;
    }

    .footer-menu-list li {
        border-bottom: 1px solid #f1f3f4;
    }

    .footer-menu-list li:last-child {
        border-bottom: none;
    }

    .footer-menu-list a {
        display: block;
        padding: 12px 20px 12px 30px;
        color: #555;
        text-decoration: none;
        font-size: 14px;
        line-height: 1.4;
        transition: background-color 0.2s ease, color 0.2s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-menu-list a:hover {
        background: #f8f9fa;
        color: #f7811b;
    }

    /* Для мобильных контактов - просто адреса без заголовка */
    .footer-mobile-view .footer-section {
        padding: 20px 0;
    }

    .footer-mobile-view .footer-addresses {
        font-size: 14px;
        color: #666;
        line-height: 1.5;
        text-align: center;
    }

    .footer-mobile-view .footer-addresses p {
        margin: 8px 0;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 767px) {
    /* Mobile specific adjustments for search complete */

    .catalog-menu-mobile
    {
        margin-top: 15px;
    }
  
}

/* Search Complete Mobile Styles */
.search-complete {
    width: 100%;
    /* margin-bottom: 20px; */
}

.search-complete form {
    display: flex;
    flex-direction: column;
}

.search-complete input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
  
}

.search-complete input[type="text"]:focus {
    border-color: #f7811b;
}

.search-complete .button-send {
    background: #f7811b;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 48px; /* для удобства касания */
}

.search-complete .button-send:hover {
    background: #e56b06;
}

/* Cookie Popup - pro-medic design */
#cookie-popup {
    text-align: center;
    position: fixed;
    bottom: 90px;
    right: 15px;
    width: 560px;
    padding: 24px;
    font-size: 16px;
    line-height: 24px;
    box-shadow: 0 30px 88px 8px rgba(0, 0, 0, .17);
    border-radius: 16px;
    background: #fff;
    z-index: 10000;
    font-family: 'Onest', arial, sans-serif;
}

.ckp-actions {
    display: flex;
    gap: 10px;
}

.ckp-actions button {
    padding: 15px 15px;
    font-size: 14px;
    color: #fff !important;
    width: 50%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #f1832a;
    transition: background 0.2s ease;
}

.ckp-actions button:hover {
    background: #e56b06;
}

.ckp-actions button#ckp-accept-essential {
    background: transparent;
    border: 2px solid #f1832a;
    color: #f1832a !important;
}

.ckp-actions button#ckp-accept-essential:hover {
    background: rgba(241, 131, 42, 0.1);
    color: #e56b06 !important;
    border-color: #e56b06;
}

#cookie-popup a {
    text-decoration: underline;
}

/* Text Page Styles */
.text-page {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.text-page h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.text-page h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

.text-page p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.text-page ul, .text-page ol {
    margin: 15px 0;
    padding-left: 25px;
}

.text-page li {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 8px;
}

.text-page a {
    color: #f7811b;
    text-decoration: underline;
}

.text-page a:hover {
    color: #e56b06;
}

.text-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.text-page th, .text-page td {
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.text-page th {
    background: #f8f9fa;
    font-weight: 600;
}

.text-page tr:hover {
    background: #f8f9fa;
}

/* Mobile Text Page */
@media (max-width: 767px) {
    .text-page {
        padding: 20px;
        margin: 10px;
        border-radius: 8px;
    }

    .text-page h2 {
        font-size: 18px;
    }
}
/* Mobile Cookie Popup */
@media (max-width: 768px) {
    #cookie-popup {
        bottom: 0;
        right: auto;
        left: 0;
        width: 100%;
        max-width: 100vw;
        padding: 15px;
        font-size: 12px;
        border-radius: 16px 16px 0 0;
    }

    .ckp-actions button {
        font-size: 12px;
        width: 50%;
    }
}

