/* === ПОИСКОВЫЕ БЛОКИ === */
.search-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    background: #000;
    border-radius: 12px;
    margin-bottom: 32px;
    box-sizing: border-box;
    overflow: hidden;
    gap: 0;
    padding-left: 0 !important;
}
.search-block-left {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    width: auto;
    margin-right: 16px;
    padding-top: 0;
}
.search-btn {
    align-items: center;
    appearance: none;
    background-color: rgb(57, 61, 70);
    background-image: none;
    border-bottom-color: rgb(233, 234, 236);
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    border-bottom-style: none;
    border-bottom-width: 0px;
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-image-slice: 100%;
    border-image-source: none;
    border-image-width: 1;
    border-left-color: rgb(233, 234, 236);
    border-left-style: none;
    border-left-width: 0px;
    border-right-color: rgb(233, 234, 236);
    border-right-style: none;
    border-right-width: 0px;
    border-top-color: rgb(233, 234, 236);
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    border-top-style: none;
    border-top-width: 0px;
    box-sizing: border-box;
    color: rgb(233, 234, 236);
    color-scheme: light dark;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-kerning: auto;
    font-optical-sizing: auto;
    font-size: 14px;
    font-size-adjust: none;
    font-style: normal;
    font-variant-alternates: normal;
    font-variant-caps: normal;
    font-variant-east-asian: normal;
    font-variant-ligatures: normal;
    font-variant-numeric: normal;
    font-variant-position: normal;
    font-variation-settings: normal;
    font-weight: 700;
    font-width: 100%;
    height: 42px;
    letter-spacing: normal;
    line-height: 24px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    overflow-wrap: break-word;
    padding-block-end: 0px;
    padding-block-start: 0px;
    padding-bottom: 0px;
    padding-inline-end: 16px;
    padding-inline-start: 16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 0px;
    tab-size: 4;
    text-align: center;
    text-indent: 0px;
    text-shadow: none;
    text-transform: none;
    transition-behavior: normal;
    transition-delay: 0s;
    transition-duration: 0.15s;
    transition-property: background-color;
    transition-timing-function: ease;
    width: 144.359375px;
    word-spacing: 0px;
    -webkit-font-smoothing: antialiased;
}
.search-btn:hover {
    background: #2e2f36;
}
.search-btn .search-btn-icon {
    display: flex;
    align-items: center;
    margin-right: 0;
    font-size: 20px;
}
.search-btn .search-btn-arrow {
    display: flex;
    align-items: center;
    margin-left: 0;
    font-size: 16px;
}
.search-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    color: #bfc3c9;
}
.search-block-right {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 8px 8px 0;
    box-sizing: border-box;
    height: 100%;
    padding-left: 0 !important;
    max-width: 100%;
    overflow: hidden;
}
.search-input-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}
.search-input {
    appearance: textfield;
    background-attachment: scroll;
    background-clip: border-box;
    background-color: rgba(0, 0, 0, 0);
    background-image: none;
    background-origin: padding-box;
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
    border-bottom-color: rgb(57, 61, 70);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-image-slice: 100%;
    border-image-source: none;
    border-image-width: 1;
    border-left-color: rgb(57, 61, 70);
    border-left-style: solid;
    border-left-width: 1px;
    border-right-color: rgb(57, 61, 70);
    border-right-style: solid;
    border-right-width: 1px;
    border-top-color: rgb(57, 61, 70);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-top-style: solid;
    border-top-width: 1px;
    box-sizing: border-box;
    color: rgb(233, 234, 236);
    color-scheme: light dark;
    cursor: auto;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-kerning: auto;
    font-optical-sizing: auto;
    font-size: 16px;
    font-size-adjust: none;
    font-style: normal;
    font-variant-alternates: normal;
    font-variant-caps: normal;
    font-variant-east-asian: normal;
    font-variant-ligatures: normal;
    font-variant-numeric: normal;
    font-variant-position: normal;
    font-variation-settings: normal;
    font-weight: 400;
    height: 42px;
    letter-spacing: normal;
    line-height: 18.4px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    outline-offset: -2px;
    overflow-wrap: break-word;
    padding-bottom: 12px;
    padding-left: 12px;
    padding-right: 42px;
    padding-top: 12px;
    tab-size: 4;
    text-align: start;
    text-indent: 0px;
    text-shadow: none;
    text-transform: none;
    width: 100% !important;
    min-width: 0 !important;
    word-spacing: 0px;
    -webkit-font-smoothing: antialiased;
    -webkit-rtl-ordering: logical;
    -webkit-user-select: text;
}
.search-input:focus {
    border-color: inherit;
    box-shadow: none;
    outline: none;
}
.search-submit-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    color: #fff;
    font-size: 24px;
    transition: color 0.2s;
}
.search-submit-btn svg {
    display: block;
    width: 24px;
    height: 24px;
    color: inherit;
}
.search-submit-btn:hover,
.search-submit-btn:focus {
    color: var(--color-secondary);
}
.search-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    border-bottom-color: rgb(233, 234, 236);
    border-bottom-style: solid;
    border-bottom-width: 0px;
    border-left-color: rgb(233, 234, 236);
    border-left-style: solid;
    border-left-width: 0px;
    border-right-color: rgb(233, 234, 236);
    border-right-style: solid;
    border-right-width: 0px;
    border-top-color: rgb(233, 234, 236);
    border-top-style: solid;
    border-top-width: 0px;
    box-sizing: border-box;
    color: rgb(233, 234, 236);
    color-scheme: light dark;
    display: inline-flex;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
    height: 48px;
    line-height: 24px;
    overflow-wrap: break-word;
    padding-bottom: 12px;
    padding-left: 6px;
    padding-right: 0px;
    padding-top: 12px;
    tab-size: 4;
    gap: 16px;
    /* text-wrap-mode: nowrap; */
    /* white-space-collapse: collapse; */
    width: 3938.671875px;
    -webkit-font-smoothing: antialiased;
    background: #000 !important; /* чёрный фон под элементами */
    margin-left: 0 !important; /* убираем отступ слева */
    border-radius: 0 0 12px 12px; /* скругление только снизу, если нужно */
    width: 100% !important; /* растягиваем на всю ширину */
    min-width: 0 !important;
    box-sizing: border-box;
    padding-left: 0 !important;
    justify-content: flex-start !important;
}
.search-list::-webkit-scrollbar {
    display: none;
}
.search-list:focus {
    box-shadow: none;
    outline: none;
}
.search-list-item {
    display: block;
    border-bottom-color: rgb(176, 179, 186);
    border-bottom-style: solid;
    border-bottom-width: 0px;
    border-left-color: rgb(176, 179, 186);
    border-left-style: solid;
    border-left-width: 0px;
    border-right-color: rgb(176, 179, 186);
    border-right-style: solid;
    border-right-width: 0px;
    border-top-color: rgb(176, 179, 186);
    border-top-style: solid;
    border-top-width: 0px;
    box-sizing: border-box;
    color: rgb(176, 179, 186);
    color-scheme: light dark;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-size: 14px;
    font-variation-settings: normal;
    height: 24px;
    line-height: 24px;
    margin-right: 0;
    overflow-wrap: break-word;
    tab-size: 4;
    /* text-wrap-mode: nowrap; */
    /* white-space-collapse: collapse; */
    white-space: nowrap;
    width: 49.21875px;
    -webkit-font-smoothing: antialiased;
    min-width: unset;
    width: auto;
    background: transparent !important;
    margin-left: 0 !important;
    min-width: fit-content;
    flex-shrink: 0;
    cursor: pointer;
}
.search-list-item:focus {
    outline: none;
    box-shadow: none;
}
.search-list-item:hover,
.search-list-item.active {
    border-bottom: none;
    color: inherit;
    background: none;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* --- Фиксированный поисковый блок--- */
.search-block-fixed {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1500;
    margin: 0 auto;
    width: 100vw;
    max-width: 100vw;
    border-radius: 0 0 12px 12px;
    background: #000;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
    /* Для мобильных устройств */
}
@media (max-width: 700px) {
  .search-block-fixed {
    padding-left: 6px;
    padding-right: 6px;
  }
}
.search-block-fixed.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* === МОДАЛЬНОЕ ОКНО ПОИСКА === */
.search-modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 65px;
    width: 100%;
    right: 0;
    height: 100px;
    background: transparent;
    will-change: opacity, transform, background;
    transition:
        background 0.4s cubic-bezier(.4,0,.2,1),
        transform 0.4s cubic-bezier(.4,0,.2,1);
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
    opacity: 0;
}
.search-modal-overlay.active {
    display: flex;
    pointer-events: auto;
    background: transparent;
    opacity: 1;
    visibility: visible;
    animation: modalSlideDown 0.4s cubic-bezier(.4,0,.2,1) forwards;
}
.search-modal-overlay.hiding {
    pointer-events: none;
    background: transparent;
    transition:
        background 0.4s cubic-bezier(.4,0,.2,1),
        transform 0.4s cubic-bezier(.4,0,.2,1);
    animation: modalSlideUp 0.7s cubic-bezier(.4,0,.2,1) forwards;
    animation-delay: 0s;
}
.search-modal-overlay:not(.active):not(.hiding) {
    display: none !important;
}
.search-modal {
    margin-top: 0;
    width: 100vw;
    max-width: 100vw;
    background: #000;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    will-change: transform, opacity;
    opacity: 1;
    transition: none;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}
@media (max-width: 700px) {
  .search-modal {
    padding-left: 6px;
    padding-right: 6px;
  }
}
@keyframes modalSlideDown {
    from {
        opacity: 1;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes modalSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(-320px);
    }
}

/* Псевдоэлемент для анимации фона */
.search-modal-overlay::before {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
    z-index: 0;
}
.search-modal-overlay.active::before {
    opacity: 1;
}
.search-modal-overlay.hiding::before {
    opacity: 1;
}
@media (max-width: 900px) {
    .search-block {
        margin-bottom: 18px;
    }
}
@media (max-width: 600px) {
    .search-block {
        margin-bottom: 10px;
    }
}

/* Специально для страницы О Vegook уменьшаем отступ */
.about-page .search-block {
    margin-top: 10px !important;
    margin-bottom: 18px !important;
}
@media (max-width: 900px) {
    .about-page .search-block {
        margin-top: 6px !important;
        margin-bottom: 10px !important;
    }
}
@media (max-width: 950px) {
  .search-block {
    flex-direction: column;
    height: auto;
    min-height: unset;
    max-height: unset;
    padding: 8px 4px 8px 4px !important;
    gap: 8px;
  }
  .search-block-left {
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
    justify-content: stretch;
  }
  .search-block-right {
    width: 100%;
    padding: 0 !important;
  }
  .search-input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 15px;
    padding-left: 8px;
    padding-right: 38px;
  }
  .search-list {
    width: 100% !important;
    min-width: 0 !important;
    gap: 10px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
@media (max-width: 950px) {
  .search-block {
    max-width: 100vw !important;
    margin: 0 0 8px 0 !important;
  }
}
@media (max-width: 1200px) {
  .search-block {
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }
}

/* Исправление перекрытия search-block и выравнивание заголовков */
.search-block {
  width: 100%;
  max-width: 1200px;
  margin: 10px auto 5px auto;
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 5px;
  position: relative;
  z-index: 2;
}
@media (max-width: 600px) {
  .search-block {
    padding: 4px 2px 4px 2px !important;
    gap: 6px;
  }
  .search-input {
    font-size: 14px;
    padding-left: 6px;
    padding-right: 32px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
  }
  .search-btn {
    font-size: 13px;
    height: 36px;
    min-width: 80px;
    padding: 0 10px;
  }
  .search-list {
    gap: 6px;
    font-size: 13px;
  }
}
