/* Верхнее меню: стеклянная линза перетекает к пункту под курсором или фокусом и в покое стоит на текущем разделе.
   Заменяет ягодное подчёркивание; мобильное меню-список остаётся без линзы. */
.oleland-desktop-nav { position: relative; }
.oleland-desktop-nav,
.oleland-desktop-nav ul {
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  border: 1px solid rgba(43, 51, 39, .18);
}
.oleland-desktop-nav:has(ul) { padding: 0; background: none; border: 0; }
.oleland-header .oleland-desktop-nav a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px 17px;
  border-radius: 999px;
  color: #2b3327;
  transition: color .2s ease;
}
.oleland-header .oleland-desktop-nav a::after { display: none; }
.oleland-header .oleland-desktop-nav a[aria-current="page"] { color: #1f261c; }
body.oleland-site .oleland-header .oleland-desktop-nav a:focus-visible { outline: 2px solid #914449 !important; outline-offset: 2px; color: #1f261c; }

.glass-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  /* Тот же материал, что у кнопки «Собрать свой букет»: матовое стекло с оливковой кромкой. */
  background: rgba(255, 255, 255, .3);
  border: 1px solid rgba(43, 51, 39, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 22px -14px rgba(28, 36, 25, .55);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  transition:
    transform .48s cubic-bezier(.3, 1.3, .45, 1),
    width .48s cubic-bezier(.3, 1.3, .45, 1),
    opacity .22s ease;
}
.glass-lens[data-visible] { opacity: 1; }
.glass-lens[data-instant] { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .glass-lens { transition: opacity .01s; }
}

/* Логотип: знак-сердечко бьётся при наведении и фокусе — двойной толчок и пауза, как пульс. Надпись неподвижна. */
.store-header .oleland-brand svg.oleland-logo,
.site-footer .footer-brand svg.oleland-logo { display: block; width: 150px; height: auto; overflow: visible; }
.oleland-logo .logo-heart { transform-box: fill-box; transform-origin: 50% 62%; }
/* Один ритм пульса у логотипа в шапке и в подвале. */
:is(.oleland-brand, .footer-brand):is(:hover, :focus-visible) .logo-heart { animation: oleland-heartbeat 1.725s cubic-bezier(.3, 0, .3, 1) infinite; }
@keyframes oleland-heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.2); }
  22% { transform: scale(1.02); }
  32% { transform: scale(1.13); }
  48% { transform: scale(1); }
}
@media (max-width: 760px) { .store-header .oleland-brand svg.oleland-logo { width: 140px; } }
@media (prefers-reduced-motion: reduce) {
  :is(.oleland-brand, .footer-brand):is(:hover, :focus-visible) .logo-heart { animation: none; }
}

/* Нижнее меню подвала: читаемый размер и удобная площадь нажатия (раньше 10–11px). */
body.oleland-site .site-footer .site-footer-docs { gap: 4px 28px; font-size: 14px; line-height: 1.5; }
body.oleland-site .site-footer .site-footer-docs a { display: inline-block; padding-block: 10px; }
@media (max-width: 760px) {
  body.oleland-site .site-footer .site-footer-docs { gap: 0 22px; font-size: 14px; }
}

/* Мобильное меню в том же материале: панель матового стекла, текущий раздел и наведение — та же стеклянная капсула. */
body.oleland-site .store-header nav.store-menu {
  gap: 2px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(244, 241, 234, .88);
  border: 1px solid rgba(43, 51, 39, .18);
  box-shadow: 0 24px 48px -28px rgba(28, 36, 25, .55);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
}
body.oleland-site .store-header nav.store-menu:not([hidden]) { animation: oleland-menu-in .24s cubic-bezier(.16, 1, .3, 1); }
/* Вложенный backdrop-filter размывает только область родителя: пока меню открыто, шапка отдаёт стекло панели. */
body.oleland-site .store-header:has(nav.store-menu:not([hidden])) {
  background: rgba(232, 226, 217, .92);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.oleland-site .store-header nav.store-menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #2b3327;
  font-size: 17px;
  font-weight: 500;
}
.oleland-header .store-menu a::after { display: none; }
body.oleland-site .store-header nav.store-menu a:is(:focus-visible, [aria-current="page"]) {
  background: rgba(255, 255, 255, .3);
  border-color: rgba(43, 51, 39, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 10px 22px -14px rgba(28, 36, 25, .55);
  color: #1f261c;
}
/* На тач-экране :hover залипает после касания — вторую подсветку даём только устройствам с курсором. */
@media (hover: hover) {
  body.oleland-site .store-header nav.store-menu a:hover {
    background: rgba(255, 255, 255, .3);
    border-color: rgba(43, 51, 39, .3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 10px 22px -14px rgba(28, 36, 25, .55);
    color: #1f261c;
  }
}
@keyframes oleland-menu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.oleland-site .store-header nav.store-menu:not([hidden]) { animation: none; } }

/* Кнопки шапки на всех страницах — тот же материал, что панель меню: стеклянный круг корзины и таблетка «Меню». */
body.oleland-site .header-cart,
body.oleland-site .store-header #store-menu-button {
  border: 1px solid rgba(43, 51, 39, .18);
  background: rgba(255, 255, 255, .34);
  color: #2b3327;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
body.oleland-site .header-cart { width: 48px; height: 48px; border-radius: 50%; }
body.oleland-site .store-header #store-menu-button { min-height: 48px; padding-inline: 20px; border-radius: 999px; font-weight: 500; }
body.oleland-site :is(.header-cart, .store-header #store-menu-button):hover { background: rgba(255, 255, 255, .55); border-color: rgba(43, 51, 39, .32); }
body.oleland-site :is(.header-cart, .store-header #store-menu-button):focus-visible { outline: 2px solid #914449 !important; outline-offset: 3px; }

/* Телефон в шапке: стеклянная таблетка с трубкой и номером; когда места мало — круг 48px с трубкой. */
body.oleland-site .header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 15px;
  border: 1px solid rgba(43, 51, 39, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  color: #2b3327;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
body.oleland-site .header-phone svg { flex: none; }
body.oleland-site .header-phone:hover { background: rgba(255, 255, 255, .55); border-color: rgba(43, 51, 39, .32); }
body.oleland-site .header-phone:focus-visible { outline: 2px solid #914449 !important; outline-offset: 3px; }
@media (max-width: 1340px) {
  body.oleland-site .header-phone { justify-content: center; width: 48px; padding: 0; }
  body.oleland-site .header-phone__number { display: none; }
}

/* Узкие телефоны (iPhone с увеличенным масштабом экрана, SE — 320–375px): логотип, телефон, корзина и «Меню»
   помещаются в строку без наложения — логотип и кнопки чуть меньше, промежутки уже. */
@media (max-width: 400px) {
  body.oleland-site .store-header { gap: 8px; }
  body.oleland-site .store-header .header-actions { gap: 6px; margin-left: auto; }
  body.oleland-site .store-header .oleland-brand { width: 120px; flex: 0 1 120px; min-width: 96px; }
  body.oleland-site .store-header .oleland-brand svg.oleland-logo { width: 100%; height: auto; }
  body.oleland-site :is(.header-phone, .header-cart) { width: 44px; height: 44px; min-height: 44px; }
  body.oleland-site .store-header #store-menu-button { min-height: 44px; padding-inline: 16px; }
}
@media (max-width: 350px) {
  body.oleland-site .store-header .oleland-brand { width: 100px; flex-basis: 100px; min-width: 88px; }
  body.oleland-site :is(.header-phone, .header-cart) { width: 40px; height: 40px; min-height: 40px; }
  body.oleland-site .store-header #store-menu-button { min-height: 40px; padding-inline: 12px; font-size: 14px; }
}

/* Мобильное меню — «изогнутая стеклянная пластина» (по мотивам curved glass sidebar, в мире «От окна к стене»):
   толстое молочное стекло со световой кромкой и розовым отсветом по краю, пункты с иконками в стеклянных плитках,
   текущий раздел — приподнятая молочная плитка с ягодной меткой; внизу — тёмная карточка «Собрать свой букет»
   с розой (как самоцвет на пластине) и телефон. Перекрывает прежнее оформление панели. */
body.oleland-site .store-header nav.store-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 16px;
  left: auto;
  z-index: 40;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: min(320px, calc(100vw - 32px));
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 34px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .66) 0%, rgba(246, 242, 236, .5) 45%, rgba(236, 231, 222, .62) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(1.45) brightness(1.04);
  backdrop-filter: blur(26px) saturate(1.45) brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 1px 0 0 rgba(255, 255, 255, .5),
    inset -1px 0 0 rgba(145, 68, 73, .12),
    inset 0 -1px 0 rgba(43, 51, 39, .12),
    0 36px 70px -28px rgba(28, 36, 25, .55),
    0 10px 24px -16px rgba(28, 36, 25, .35);
  transform-origin: calc(100% - 40px) -10px;
}
/* Световая кромка с розовым отсветом — тонкое переливание по краю пластины. */
body.oleland-site .store-header nav.store-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(240, 201, 203, .55) 38%, rgba(255, 255, 255, .2) 62%, rgba(240, 201, 203, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
body.oleland-site .store-header nav.store-menu:not([hidden]) { display: flex; animation: oleland-slab-in .38s cubic-bezier(.16, 1, .3, 1); }
@keyframes oleland-slab-in { from { opacity: 0; transform: translateY(-10px) scale(.94); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

body.oleland-site .store-header nav.store-menu > a:not(.store-menu__feature) {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 14px 6px 6px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: none;
  box-shadow: none;
  color: #2b3327;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
body.oleland-site .store-header nav.store-menu .menu-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 14px;
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 14px -10px rgba(28, 36, 25, .45);
  color: #2b3327;
}
/* Текущий раздел — приподнятая плитка: молочное стекло с фаской, тень снизу, ягодная метка слева. */
body.oleland-site .store-header nav.store-menu > a[aria-current="page"] {
  border-color: rgba(255, 255, 255, .9);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(246, 242, 236, .8));
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(43, 51, 39, .08), 0 14px 26px -16px rgba(28, 36, 25, .55);
  color: #1f261c;
}
body.oleland-site .store-header nav.store-menu > a[aria-current="page"]::before { content: ""; position: absolute; left: -7px; top: 50%; width: 3px; height: 22px; border-radius: 999px; background: #914449; transform: translateY(-50%); }
body.oleland-site .store-header nav.store-menu > a[aria-current="page"] .menu-ico { border-color: transparent; background: #2b3327; color: #f2efe8; box-shadow: 0 8px 16px -10px rgba(28, 36, 25, .7); }
@media (hover: hover) {
  body.oleland-site .store-header nav.store-menu > a:not(.store-menu__feature):not([aria-current="page"]):hover { background: rgba(255, 255, 255, .4); border-color: rgba(255, 255, 255, .7); }
}

/* Карточка «Собрать свой букет» — тёмный «самоцвет» на пластине: роза выходит за край. */
body.oleland-site .store-header nav.store-menu > a.store-menu__feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 112px;
  margin: 10px 0 4px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 24px;
  background: radial-gradient(120% 90% at 85% 10%, #4b5a45 0%, #2b3327 60%, #1f261c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 18px 34px -20px rgba(28, 36, 25, .8);
  color: #f2efe8;
  text-decoration: none;
}
body.oleland-site .store-header nav.store-menu > a.store-menu__feature img { position: absolute; right: -14px; top: -18px; width: 108px; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); pointer-events: none; }
body.oleland-site .store-header nav.store-menu > a.store-menu__feature span { position: relative; display: flex; flex-direction: column; gap: 2px; max-width: 64%; }
body.oleland-site .store-header nav.store-menu > a.store-menu__feature strong { font: 600 1.05rem/1.2 Lora, Georgia, serif; }
body.oleland-site .store-header nav.store-menu > a.store-menu__feature small { color: rgba(242, 239, 232, .75); font-size: 12.5px; line-height: 1.35; }
body.oleland-site .store-header nav.store-menu > a.store-menu__feature[aria-current="page"]::before { display: none; }

/* Телефон — нижняя строка пластины, отделена тонкой линией. */
body.oleland-site .store-header nav.store-menu > a.store-menu__phone { margin-top: 2px; padding-top: 8px; border-top: 1px solid rgba(43, 51, 39, .1); border-radius: 0 0 22px 22px; font-variant-numeric: tabular-nums; font-weight: 600; }
body.oleland-site .store-header nav.store-menu > a.store-menu__phone .menu-ico { background: #f2efe8; }
@media (prefers-reduced-motion: reduce) { body.oleland-site .store-header nav.store-menu:not([hidden]) { animation: none; } }

/* Верхнее меню на десктопе — тот же материал пластины: световая кромка сверху и слева, мягкая тень, линза текущего
   раздела — приподнятая молочная плитка с фаской. */
body.oleland-site .oleland-desktop-nav:not(:has(ul)) {
  border-color: rgba(255, 255, 255, .7);
  background: linear-gradient(170deg, rgba(255, 255, 255, .6), rgba(246, 242, 236, .42));
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(43, 51, 39, .1), 0 18px 36px -24px rgba(28, 36, 25, .5);
}
body.oleland-site .glass-lens {
  border-color: rgba(255, 255, 255, .95);
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(246, 242, 236, .82));
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(43, 51, 39, .08), 0 10px 20px -12px rgba(28, 36, 25, .5);
}
