/* ==============================================
   # АДАПТИВНОСТЬ
   ============================================== */
@media (max-width: 1241px) {
	.site-header {
    position: static;
    padding: 6px 0;
  }
}
@media (max-width: 768px) {
  /* Базовые стили */
  .logo {
    display: none;
  }
  
  .search-inline-wrapper {
    display: none;
  }
  
  /* Шапка */
  .site-header {
    position: static;
    padding: 6px 0;
  }
  
  .header-inner {
    padding: 0 12px;
  }
  
  .logo img {
    height: 28px;
    width: auto;
  }
  
  .branding {
    gap: 8px;
  }
  
  .site-title {
    font-size: 1.5em;
	  color:#6D4D36;
  }
  
  .site-description {
    font-size: 14px;
	color: #545454;
  }
  
  /* Контент */
  .content-sidebar-wrapper {
    flex-direction: column;
  }
  
  .main-content {
    max-width: 100%;
    padding: 20px;
  }
  
  .sidebar {
    width: 100%;
    margin-top: 40px;
  }
  
  .container {
    padding: 0 15px;
    margin: 20px auto;
  }
  
  /* Комментарии */
  .comments-area,
  .comment-respond {
    padding: 20px 15px;
    margin: 20px -10px;
  }
  
  .comment-author img {
    width: 50px;
    height: 50px;
  }
  
  /* Рецепты */
  .recipe-block {
    padding: 20px 15px;
    margin: 20px -15px;
    border-radius: 0;
  }
  
  /* Сравнение корицы */
  .cinnamon-compare {
    grid-template-columns: 1fr;
  }
  
  .cinnamon-compare .header {
    background-color: #eee;
    text-align: left;
  }
  
  /* Скрытие элементов */
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: inline-block;
  }
  
  /* Мобильное меню */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transition: right 0.3s ease;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .mobile-menu.open {
    right: 0;
  }
  
  .mobile-menu .menu {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-menu .menu li {
    margin-bottom: 1rem;
  }
  
  /* Адаптация блоков статей */
  .article-content,
  .article-cat-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .article-content img,
  .article-cat-content img {
    width: 100%;
    max-width: 400px;
  }
  
  .article-text h3,
  .article-cat-text h3 {
    font-size: 1.2rem;
  }
  
  /* Адаптация категорий */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .sidebar-cat-content img {
    width: 100%;
  }
  
  /* Адаптация гороскопов */
  .horoscope-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Адаптация зодиакального круга */
  .zodiac-asset {
    background: #fff;
    height: 310px;
  }
  
  .zodiac-circle {
    width: 300px;
    height: 300px;
  }
  
  .zodiac-sign img {
    width: 80px;
    height: 80px;
  }
  
  .zodiac-sign {
    transform: rotate(calc(30deg * var(--i))) translate(120px) rotate(calc(-30deg * var(--i)));
  }
}
@media (max-width: 700px) {
	.horoscope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .search-sidebar {
    width: 100%;
  }
  
  /* Адаптация категорий */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Адаптация гороскопов */
  .horoscope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Адаптация заголовков страниц */
  .page-header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .page-thumbnail img {
    max-width: 100%;
  }
  
  .page-title {
    font-size: 1.6em;
    margin-top: 10px;
  }
}
@media (max-width: 500px){
	.horoscope-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  /* Адаптация категорий */
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  /* Адаптация гороскопов */
  .horoscope-grid {
    grid-template-columns: 1fr;
  }
  
  /* Адаптация рекомендаций автора */
  .article-note.note-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .author-note-icon img {
    width: 80px;
    height: 80px;
  }
  
  .author-note-text {
    margin-top: 12px;
  }
}

@media (max-width: 768px) {
  .article-note {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .article-note .note-title {
    justify-content: center;
    font-size: 1.3rem;
  }

  .article-note .author-note-icon,
  .article-note .note-icon {
    margin-bottom: 12px;
  }

  .article-note .author-note-text,
  .article-note .note-text {
    width: 100%;
  }
}

/* ========== СТИЛИ ДЛЯ КНОПКИ-ГАМБУРГЕРА ========== */
.hamburger {
  display: none; /* По умолчанию скрываем на десктопе */
  padding: 15px;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  margin: 0;
  z-index: 1000; /* Чтобы кнопка была поверх других элементов */
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
  width: 30px;
  height: 4px;
  background-color: #734c2f; /* Цвет полосок */
  border-radius: 4px;
  position: absolute;
  transition: transform 0.2s ease; /* Анимация */
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
  width: 30px;
  height: 4px;
  background-color: #734c2f; /* Цвет полосок */
  border-radius: 4px;
  position: absolute;
  transition: transform 0.2s ease; /* Анимация */
}

.hamburger-inner::before {
  top: -10px;
}
.hamburger-inner::after {
  bottom: -10px;
}
.header-menu {
	margin: 10px auto; 
	max-width: 1100px;}

/* Состояние "активно" (когда меню открыто) */
.hamburger--collapse.is-active .hamburger-inner {
  transform: rotate(45deg);
}
.hamburger--collapse.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}
.hamburger--collapse.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

/* ========== СТИЛИ ДЛЯ МЕНЮ НА МОБИЛЬНЫХ ========== */
@media (max-width: 768px) { /* Укажи нужный тебе брейкпоинт */

  /* Показываем кнопку гамбургера на мобильных */
  .hamburger {
    display: block;
  }

  /* Стили для меню в мобильной версии */
  .main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%; /* Ширина выезжающего меню */
    height: 100vh; /* На всю высоту экрана */
    background: #fff;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px 20px;
    transform: translateX(100%); /* Прячем меню за правой границей экрана */
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    overflow-y: auto; /* На случай, если меню длинное */
  }

  /* Класс, который будет добавляться JS при открытии */
  .main-navigation.is-active {
    transform: translateX(0); /* Сдвигаем меню на экран */
  }

  /* Стилизуем список меню */
  .main-navigation__list {
    flex-direction: column;
    gap: 15px;
  }

  .main-navigation__list li {
    width: 100%;
  }
}

/* ========== ДОПОЛНЕНИЯ ДЛЯ СВАЙПА ========== */
/* Состояние "перетаскивания" для меню */
.main-navigation.is-dragging {
  transition: none; /* Убираем анимацию во время драга */
}

/* Оверлей для фона */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998; /* Под меню, но над контентом */
}

.menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Улучшаем визуал во время свайпа */
@media (max-width: 768px) {
  .main-navigation {
    touch-action: pan-y; /* Разрешаем вертикальный скролл внутри меню */
  }
  
  /* Небольшая тень для лучшего визуального эффекта при свайпе */
  .main-navigation {
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
  }
}

/* ========== СТИЛИ ДЛЯ ДЕСКТОПА ========== */
@media (min-width: 769px) {
  /* Прячем гамбургер на десктопе */
  .hamburger {
    display: none;
  }
  
  /* Прячем оверлей на десктопе */
  .menu-overlay {
    display: none;
  }
  
  /* Меню для десктопа */
  .main-navigation {
    position: static; /* Убираем фиксированное позиционирование */
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    transform: none !important; /* Важно: переопределяем мобильные стили */
    transition: none;
    overflow: visible;
  }
  
  /* Список меню - горизонтальный */
  .main-navigation__list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px; /* Расстояние между пунктами */
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  /* Пункты меню */
  .main-navigation__list li {
    position: relative;
    width: auto;
    margin: 0;
  }
  
  /* Ссылки меню */
  .main-navigation__list a {
    display: block;
    padding: 10px 0;
    color: #333; /* Цвет текста */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }
  
  .main-navigation__list a:hover {
    color: #0073aa; /* Цвет при наведении */
  }
  
  /* Активный пункт меню */
  .main-navigation__list .current-menu-item > a,
  .main-navigation__list .current-page-ancestor > a {
    color: #734c2f;
    font-weight: 600;
  }
  
  /* ========== ВЫПАДАЮЩИЕ ПОДМЕНЮ ========== */
  .main-navigation__list .sub-menu,
  .main-navigation__list .children {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 4px;
  }
  
  .main-navigation__list .sub-menu .sub-menu {
    top: -15px;
    left: 100%;
  }
  
  .main-navigation__list li:hover > .sub-menu,
  .main-navigation__list li:hover > .children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .main-navigation__list .sub-menu li {
    width: 100%;
  }
  
  .main-navigation__list .sub-menu a {
    padding: 10px 20px;
    white-space: nowrap;
  }
  
  .main-navigation__list .sub-menu a:hover {
    background: #f5f5f5;
  }
  
  /* Стрелка для пунктов с подменю */
  .main-navigation__list .menu-item-has-children > a::after {
    content: "▼";
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
  }
  
  .main-navigation__list li:hover > a::after {
    transform: rotate(180deg);
  }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ========== */
/* Плавное появление/исчезновение для всех состояний */
.main-navigation__list a,
.main-navigation__list .sub-menu {
  transition: all 0.3s ease;
}

/* Микро-анимация для ссылок */
.main-navigation__list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #595959;
  transition: width 0.3s ease;
}

.main-navigation__list a:hover::after {
  width: 100%;
}

/* Для мобильных убираем подчеркивание */
@media (max-width: 768px) {
  .main-navigation__list a::after {
    display: none;
  }
}


/* ========== КРАСИВЫЙ ВИЗУАЛ ДЛЯ МЕНЮ ========== */

/* Мобильная версия */
@media (max-width: 768px) {
    .main-navigation__list {
        gap: 0 !important; /* Убираем стандартный gap */
    }

    .main-navigation__list li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        transition: background-color 0.3s ease;
    }

    .main-navigation__list li:last-child {
        border-bottom: none;
    }

    .main-navigation__list li:hover {
        background-color: #f8f9fa;
    }

    .main-navigation__list a {
        display: flex !important;
        align-items: center;
        padding: 18px 20px !important;
        color: #2c3e50 !important;
        text-decoration: none;
        font-weight: 500;
        font-size: 1.3em;
        transition: all 0.3s ease;
        position: relative;
        border-bottom: none !important;
    }

    .main-navigation__list a:hover {
        color: #e74c3c !important;
        background-color: #f8f9fa;
        padding-left: 25px !important;
    }

    /* Иконки для пунктов меню */
    .main-navigation__list a::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-right: 15px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

    /* Разные иконки для разных типов страниц */
    .main-navigation__list .menu-item-home > a::before {
    }

    .main-navigation__list .menu-item-object-page > a::before {
    }

    .main-navigation__list .menu-item-object-category > a::before {
    }
	#menu-item-1006 a::before{content:"🌰";}
	#menu-item-1007 a::before{content:"🍃"}
	#menu-item-1008 a::before{content:"🥕"}
	#menu-item-1009 a::before{content:"🌸"}
	#menu-item-1005 a::before{content:"🍋"}
	#menu-item-1010 a::before{content:"🌱"}
	#menu-item-1011 a::before{content:"🌳"}
	#menu-item-1012 a::before{content:"🧴"}

    .main-navigation__list a:hover::before {
        opacity: 1;
        transform: translateX(3px);
    }

    /* Активный пункт меню */
    .main-navigation__list .current-menu-item > a {
        color: #734c2f !important;
        background: linear-gradient(90deg, rgba(115, 76, 47, 0.1) 0%, transparent 100%);
        border-right: 3px solid #734c2f;
    }

    .main-navigation__list .current-menu-item > a::before {
        filter: invert(35%) sepia(90%) saturate(2000%) hue-rotate(30deg) brightness(90%) contrast(90%);
    }

    /* Анимация появления пунктов */
    .main-navigation.is-active .main-navigation__list li {
        animation: slideInRight 0.4s ease forwards;
        opacity: 0;
        transform: translateX(30px);
    }

    .main-navigation.is-active .main-navigation__list li:nth-child(1) { animation-delay: 0.1s; }
    .main-navigation.is-active .main-navigation__list li:nth-child(2) { animation-delay: 0.15s; }
    .main-navigation.is-active .main-navigation__list li:nth-child(3) { animation-delay: 0.2s; }
    .main-navigation.is-active .main-navigation__list li:nth-child(4) { animation-delay: 0.25s; }
    .main-navigation.is-active .main-navigation__list li:nth-child(5) { animation-delay: 0.3s; }
    .main-navigation.is-active .main-navigation__list li:nth-child(6) { animation-delay: 0.35s; }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Десктопная версия */
@media (min-width: 769px) {
    .main-navigation__list a {
        color: #595959!important;
        font-weight: 500;
        font-size: 1.1em;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }

    .main-navigation__list a:hover {
        color: #595959 !important;
        transform: translateY(-2px);
    }

    /* Активный пункт в десктопе */
    .main-navigation__list .current-menu-item > a,
    .main-navigation__list .current-page-ancestor > a {
        color: #734c2f !important;
        font-weight: 600;
    }

    .main-navigation__list .current-menu-item > a::after,
    .main-navigation__list .current-page-ancestor > a::after {
        width: 100% !important;
        background: #734c2f;
    }

    /* Выпадающие меню - красивый стиль */
    .main-navigation__list .sub-menu,
    .main-navigation__list .children {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid #eee;
        padding: 10px 0;
        min-width: 220px;
    }

    .main-navigation__list .sub-menu a {
        padding: 12px 25px !important;
        font-size: 14px;
        text-transform: none;
        color: #555 !important;
        transition: all 0.2s ease;
    }

    .main-navigation__list .sub-menu a:hover {
        color: #e74c3c !important;
        background-color: #f8f9fa;
        padding-left: 30px !important;
        transform: none;
    }

    .main-navigation__list .sub-menu .current-menu-item > a {
        color: #e74c3c !important;
        background-color: #fff4f2;
    }

    /* Стрелка для подменю */
    .main-navigation__list .menu-item-has-children > a::after {
        content: "▼";
        font-size: 10px;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .main-navigation__list li:hover > a::after {
        transform: rotate(180deg);
    }
}

/* Общие улучшения для всех устройств */
.main-navigation__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation__list a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Плавное открытие/закрытие меню */
.main-navigation {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Заголовок меню для мобильной версии (опционально) */
.menu-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 18px;
}

@media (min-width: 769px) {
  .site-header__nav {
    max-width: 1100px;      /* опционально, под твой контейнер */
    margin: 0 auto;         /* центрируем сам nav */
    display: flex;          
    justify-content: center;
    border-top: 1px dashed #E8C8A9;
  }

  .site-header__nav .main-navigation__list {
    display: flex;
    justify-content: center; /* центрируем элементы внутри ul */
    gap: 30px;               /* если нужно — расстояние между пунктами */
    margin: 0;
    padding: 0;
  }
}
/* 1) Карточка снова режет содержимое по краям */
.latest-posts-sidebar .astro-card { 
  overflow: hidden !important; 
  background: transparent;
}

/* 2) Сама ссылка тоже ограничивает всё внутри себя (радиус унаследуется) */
.astro-link{
  position: relative;
  display: block;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;      /* ← ключевое */
}

/* 3) Картинка */
.astro-thumb{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

/* 4) Звёзды: оставляем ТРИ слоя, но НИЧЕГО за рамки не выводим */
.astro-stars,
.astro-stars::before,
.astro-stars::after{
  position: absolute;
  inset: 0;             /* ← вместо -16px */
  z-index: 2;
  pointer-events: none;

  /* оставляем звёзды только ВНЕ круга (подгоняй проценты при необходимости) */
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 46%, #000 47%);
          mask: radial-gradient(circle at 50% 50%, transparent 46%, #000 47%);
}

/* Слой 1 — мелкие/частые */
.astro-stars{
  content: "";
  opacity: .8;
  background:
    radial-gradient(1.6px 1.6px at 6% 12%, #ffe9a6 98%, transparent),
    radial-gradient(1.4px 1.4px at 18% 20%, #fff0bc 98%, transparent),
    radial-gradient(1.8px 1.8px at 28% 32%, #ffd98a 98%, transparent),
    radial-gradient(1.5px 1.5px at 40% 10%, #ffe9a6 98%, transparent),
    radial-gradient(1.7px 1.7px at 55% 22%, #fff0bc 98%, transparent),
    radial-gradient(1.6px 1.6px at 70% 18%, #ffd98a 98%, transparent),
    radial-gradient(1.5px 1.5px at 84% 26%, #ffe9a6 98%, transparent),
    radial-gradient(1.6px 1.6px at 12% 68%, #fff0bc 98%, transparent),
    radial-gradient(1.4px 1.4px at 24% 78%, #ffd98a 98%, transparent),
    radial-gradient(1.8px 1.8px at 36% 86%, #ffe9a6 98%, transparent),
    radial-gradient(1.5px 1.5px at 62% 80%, #fff0bc 98%, transparent),
    radial-gradient(1.6px 1.6px at 76% 74%, #ffd98a 98%, transparent),
    radial-gradient(1.4px 1.4px at 90% 62%, #ffe9a6 98%, transparent),
    radial-gradient(1.6px 1.6px at 92% 48%, #fff0bc 98%, transparent),
    radial-gradient(1.7px 1.7px at 8% 48%,  #ffd98a 98%, transparent),
    radial-gradient(1.5px 1.5px at 50% 4%,  #ffe9a6 98%, transparent),
    radial-gradient(1.6px 1.6px at 50% 96%, #fff0bc 98%, transparent),
    radial-gradient(1.5px 1.5px at 4% 50%,  #ffd98a 98%, transparent),
    radial-gradient(1.4px 1.4px at 96% 50%, #ffe9a6 98%, transparent);
  filter: drop-shadow(0 0 5px #ffe9a6); /* чуть слабее */
  animation: astro-twinkle 2.2s ease-in-out infinite alternate;
}

/* Слой 2 — средние, другая фаза */
.astro-stars::before{
  content: "";
  opacity: .65;
  background:
    radial-gradient(2px 2px at 14% 10%, #ffe9a6 98%, transparent),
    radial-gradient(2px 2px at 32% 22%, #ffd98a 98%, transparent),
    radial-gradient(2px 2px at 60% 16%, #fff0bc 98%, transparent),
    radial-gradient(2px 2px at 82% 30%, #ffd98a 98%, transparent),
    radial-gradient(2px 2px at 20% 60%, #ffe9a6 98%, transparent),
    radial-gradient(2px 2px at 42% 78%, #fff0bc 98%, transparent),
    radial-gradient(2px 2px at 66% 86%, #ffd98a 98%, transparent),
    radial-gradient(2px 2px at 88% 70%, #ffe9a6 98%, transparent),
    radial-gradient(2px 2px at 10% 40%, #fff0bc 98%, transparent),
    radial-gradient(2px 2px at 90% 40%, #ffd98a 98%, transparent);
  filter: drop-shadow(0 0 7px #ffe9a6);
  animation: astro-twinkle 3s ease-in-out infinite alternate;
  animation-delay: .12s;
}

/* Слой 3 — крупнее, обратная фаза */
.astro-stars::after{
  content: "";
  opacity: .6;
  background:
    radial-gradient(2.6px 2.6px at 24% 8%,  #ffe9a6 98%, transparent),
    radial-gradient(2.8px 2.8px at 76% 14%, #fff0bc 98%, transparent),
    radial-gradient(2.6px 2.6px at 12% 84%, #ffd98a 98%, transparent),
    radial-gradient(2.8px 2.8px at 88% 86%, #ffe9a6 98%, transparent),
    radial-gradient(2.6px 2.6px at 50% 8%,  #fff0bc 98%, transparent),
    radial-gradient(2.8px 2.8px at 50% 92%, #ffd98a 98%, transparent);
  filter: drop-shadow(0 0 8px #ffe9a6);
  animation: astro-twinkle 3.8s ease-in-out infinite alternate-reverse;
  animation-delay: .2s;
}

/* Мерцание */
@keyframes astro-twinkle {
  0%   { opacity:.35; transform: scale(1); }
  50%  { opacity:1;   transform: scale(1.04); }
  100% { opacity:.55; transform: scale(1.01); }
}

/* Кнопка поиска рядом с бургером — только мобайл */
@media (max-width: 768px) {
  .header-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 40px;
    border: 0; border-radius: 30px;
    background: #fff;
    font-size: 20px;
    line-height: 1;
    color: #734c2f;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
	margin: 15px;
  }

  /* Выезжающая панель поиска сверху */
  .search-drawer {
    position: fixed;
    top: 0; left: 0; right: 0;
    transform: translateY(-100%);
    transition: transform .28s ease;
    background: #fff;
    z-index: 1001; /* выше меню и оверлея */
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: env(safe-area-inset-top) 12px 24px;
  }
  .search-drawer.is-open {
    transform: translateY(0);
  }

  .search-drawer-form {
    display: flex;
    gap: 8px;
    align-items: center; margin: 20px 0 0 0;
  }
  .search-drawer-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
  }
  .search-drawer-submit {
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    background: #734c2f;
    color: #fff;
    font-weight: 600;
  }
  .search-drawer-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    padding: 8px 6px;
    color: #734c2f;
  }

  /* Оверлей общий — используем уже существующий */
  .menu-overlay.is-active { opacity: 1; visibility: visible; }
}

/* На десктопе кнопку и панель не показываем */
@media (min-width: 769px) {
  .search-toggle, .search-drawer { display: none; }
}

