:root {
  --txt: #231f1f;
  --muted: rgba(61, 50, 48, .68);
  --glass-border: rgba(255,255,255,.68);
  --glass-edge: rgba(255,255,255,.92);
  --glass-shadow: rgba(38, 28, 26, .22);
  --cold: rgba(116, 221, 232, .36);
  --violet: rgba(161, 114, 255, .28);
  --blush: rgba(255, 150, 184, .30);
  --cream: rgba(255, 245, 237, .40);
  --dark: #2b2220;
}

html {
  background: #e7ddd8;
}

body {
  color: var(--txt) !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.82), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 82% 12%, rgba(119, 218, 230, .34), rgba(119, 218, 230, 0) 28%),
    radial-gradient(circle at 20% 62%, rgba(255, 152, 186, .34), rgba(255, 152, 186, 0) 34%),
    radial-gradient(circle at 86% 82%, rgba(156, 114, 255, .24), rgba(156, 114, 255, 0) 34%),
    linear-gradient(145deg, #f9f5f2 0%, #e8ddd8 43%, #cfc2bf 100%) !important;
}

/* Фактура под стеклом: без неё стекло не видно */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .76;
  background:
    linear-gradient(115deg, rgba(255,255,255,.42), rgba(255,255,255,0) 34%),
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.62), rgba(255,255,255,0) 42%),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.10) 0px,
      rgba(255,255,255,.10) 1px,
      rgba(120,95,90,.035) 2px,
      rgba(120,95,90,.035) 4px
    );
}

/* Большие мягкие пятна света, которые должны просвечивать через стекло */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .68;
  filter: blur(18px);
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.70), rgba(255,255,255,0) 22%),
    radial-gradient(circle at 78% 26%, rgba(83, 218, 232, .32), rgba(83, 218, 232, 0) 26%),
    radial-gradient(circle at 20% 78%, rgba(255, 140, 190, .25), rgba(255, 140, 190, 0) 30%),
    radial-gradient(circle at 90% 78%, rgba(150, 108, 255, .22), rgba(150, 108, 255, 0) 32%);
}

.page {
  width: min(100%, 468px) !important;
  padding: 20px 14px 38px !important;
}

/* Все стеклянные объекты */
.back,
.hero,
.card,
.tile,
.product-card,
.section-link,
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.58) !important;
  backdrop-filter: blur(42px) saturate(190%) contrast(108%);
  -webkit-backdrop-filter: blur(42px) saturate(190%) contrast(108%);
}

/* Матовая прозрачная панель: меньше белого, больше прозрачности */
.hero,
.card,
.tile,
.product-card,
.section-link,
.back {
  background:
    linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.055)) !important;
  box-shadow:
    0 36px 90px rgba(38, 28, 26, .18),
    inset 0 1px 0 rgba(255,255,255,.78),
    inset 0 -1px 0 rgba(34,25,24,.12),
    inset 1px 0 0 rgba(255,255,255,.30),
    inset -1px 0 0 rgba(34,25,24,.07) !important;
}

/* Затемнённая внутренняя дымка: даёт ощущение прозрачной поверхности, а не белой плашки */
.hero::before,
.card::before,
.tile::before,
.product-card::before,
.section-link::before,
.back::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 4%, rgba(255,255,255,.78), rgba(255,255,255,.12) 24%, rgba(255,255,255,0) 46%),
    radial-gradient(circle at 96% 10%, rgba(98, 226, 235, .20), rgba(98,226,235,0) 28%),
    radial-gradient(circle at 4% 96%, rgba(255, 141, 187, .18), rgba(255,141,187,0) 30%),
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(58,42,39,.045) 100%);
  mix-blend-mode: screen;
}

/* Внутренняя грань, как толщина стекла */
.hero::after,
.card::after,
.tile::after,
.product-card::after,
.section-link::after,
.back::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.48);
  border-top-color: rgba(255,255,255,.86);
  border-left-color: rgba(255,255,255,.62);
  border-bottom-color: rgba(37,27,25,.10);
  border-right-color: rgba(37,27,25,.07);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.54),
    inset 0 -1px 0 rgba(37,27,25,.08),
    0 0 22px rgba(255,255,255,.16);
  background:
    linear-gradient(116deg, rgba(255,255,255,.34), rgba(255,255,255,0) 35%),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 56%);
}

.hero > *,
.card > *,
.tile > *,
.product-card > *,
.section-link > *,
.back > * {
  position: relative;
  z-index: 2;
}

/* Главная панель — стеклянная пластина */
.hero {
  border-radius: 42px !important;
  background:
    radial-gradient(circle at 86% 12%, rgba(94,222,232,.16), rgba(94,222,232,0) 28%),
    radial-gradient(circle at 12% 88%, rgba(255,145,188,.17), rgba(255,145,188,0) 34%),
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.045)) !important;
}

.brand {
  color: rgba(58, 48, 46, .66) !important;
  letter-spacing: .145em !important;
}

h1 {
  color: var(--txt) !important;
  letter-spacing: -.025em;
}

.subtitle,
.card p,
.tile p,
.product-body p,
.note {
  color: var(--muted) !important;
}

/* Главное меню: не белая кнопка, а прозрачная матовая линза */
.btn,
.btn.primary {
  min-height: 58px;
  border-radius: 25px !important;
  color: var(--txt) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(255,255,255,.72), rgba(255,255,255,.16) 25%, rgba(255,255,255,0) 48%),
    radial-gradient(circle at 96% 16%, rgba(108,224,232,.18), rgba(108,224,232,0) 30%),
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.035)) !important;
  border: 1px solid rgba(255,255,255,.62) !important;
  box-shadow:
    0 24px 46px rgba(38,28,26,.16),
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 -2px 0 rgba(38,28,26,.12),
    inset 1px 0 0 rgba(255,255,255,.38),
    inset -1px 0 0 rgba(38,28,26,.08) !important;
  backdrop-filter: blur(46px) saturate(210%) contrast(112%);
  -webkit-backdrop-filter: blur(46px) saturate(210%) contrast(112%);
}

/* Реальный глянцевый верхний блик */
.btn::before,
.btn.primary::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 5px;
  height: 44%;
  z-index: 1;
  pointer-events: none;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.20) 58%, rgba(255,255,255,0));
  filter: blur(.2px);
  opacity: .85;
}

/* Внутренняя рамка + диагональное преломление */
.btn::after,
.btn.primary::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 1;
  pointer-events: none;
  border-radius: 21px;
  border: 1px solid rgba(255,255,255,.46);
  border-top-color: rgba(255,255,255,.76);
  border-left-color: rgba(255,255,255,.62);
  border-bottom-color: rgba(38,28,26,.11);
  border-right-color: rgba(38,28,26,.07);
  background:
    linear-gradient(118deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.12) 22%, rgba(255,255,255,0) 48%),
    radial-gradient(circle at 98% 12%, rgba(255,255,255,.48), rgba(255,255,255,0) 16%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.56),
    inset 0 -1px 0 rgba(38,28,26,.08),
    0 0 18px rgba(255,255,255,.16);
}

.btn > *,
.btn.primary > * {
  position: relative;
  z-index: 2;
}

.btn span:last-child {
  color: rgba(35,31,31,.52) !important;
}

/* Быстрый выбор */
.tile {
  background:
    radial-gradient(circle at 90% 8%, rgba(108,224,232,.10), rgba(108,224,232,0) 28%),
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.045)) !important;
}

/* Карточки товаров: чуть стекляннее, но фото остаются чистыми */
.product-grid {
  gap: 18px !important;
}

.product-card {
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(108,224,232,.10), rgba(108,224,232,0) 30%),
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.045)) !important;
}

.product-image {
  padding: 9px 9px 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035)) !important;
}

.product-image img {
  border-radius: 23px 23px 12px 12px;
  box-shadow: 0 12px 34px rgba(38,28,26,.12);
}

.product-body {
  background: rgba(255,255,255,.045) !important;
}

.product-body h2 {
  color: var(--txt) !important;
}

/* CTA покупки оставляем тёмной: это осознанный контраст */
.product-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(145deg, #342926 0%, #211a18 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow:
    0 14px 32px rgba(43,34,32,.22),
    inset 0 1px 0 rgba(255,255,255,.16) !important;
}

.product-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.20), rgba(255,255,255,0) 42%);
}

.product-link > * {
  position: relative;
  z-index: 2;
}

.section-link {
  color: var(--txt) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.035)) !important;
}

.product-link,
.section-link,
.btn,
.tile,
.back {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.product-link:active,
.section-link:active,
.btn:active,
.tile:active,
.back:active {
  transform: scale(.985);
}

.note {
  opacity: .82;
}

@media (min-width: 700px) {
  .page {
    width: min(100%, 620px) !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero,
  .card,
  .tile,
  .product-card,
  .section-link,
  .back,
  .btn {
    background: rgba(255,255,255,.62) !important;
  }
}


/* === NAV GLASS V6 START === */
/* Точечный hotfix:
   - убираем рельеф у меню-кнопок
   - делаем более скруглённые прозрачные glass-кнопки
   - НЕ трогаем product-link / товарные CTA
*/

.hero .btn,
.hero a.btn,
.btn,
a.btn,
.back-link,
a.back-link {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 30px !important;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.28) 0%,
      rgba(255,255,255,0.16) 52%,
      rgba(255,255,255,0.10) 100%) !important;
  border: 1px solid rgba(255,255,255,0.56) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%) !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
  box-shadow:
    0 8px 24px rgba(120,105,105,0.08),
    inset 0 1px 0 rgba(255,255,255,0.42) !important;
}

.hero .btn::before,
.hero .btn::after,
.hero a.btn::before,
.hero a.btn::after,
.btn::before,
.btn::after,
a.btn::before,
a.btn::after,
.back-link::before,
.back-link::after,
a.back-link::before,
a.back-link::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* лёгкий блик сверху, без рельефной рамки */
.hero .btn,
.hero a.btn,
.btn,
a.btn,
.back-link,
a.back-link {
  background-image:
    linear-gradient(180deg,
      rgba(255,255,255,0.34) 0%,
      rgba(255,255,255,0.18) 42%,
      rgba(255,255,255,0.10) 100%) !important;
}

/* текст и стрелки */
.hero .btn,
.hero a.btn,
.btn,
a.btn,
.back-link,
a.back-link {
  color: rgba(36, 31, 31, 0.92) !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
}

.hero .btn span,
.hero a.btn span,
.btn span,
a.btn span,
.back-link span,
a.back-link span {
  color: inherit !important;
}

/* более мягкая геометрия у самих навигационных кнопок */
.hero .btn,
.hero a.btn,
.btn,
a.btn {
  min-height: 64px !important;
  padding: 18px 24px !important;
}

/* кнопка назад чуть компактнее */
.back-link,
a.back-link {
  min-height: 50px !important;
  padding: 12px 20px !important;
  border-radius: 28px !important;
}

/* hover/active — минимальные, без затемнения */
.hero .btn:hover,
.hero a.btn:hover,
.btn:hover,
a.btn:hover,
.back-link:hover,
a.back-link:hover,
.hero .btn:active,
.hero a.btn:active,
.btn:active,
a.btn:active,
.back-link:active,
a.back-link:active {
  transform: none !important;
  filter: brightness(1.01) !important;
  box-shadow:
    0 10px 28px rgba(120,105,105,0.10),
    inset 0 1px 0 rgba(255,255,255,0.48) !important;
}

/* НЕ трогаем товарные кнопки */
.product-link,
a.product-link {
  all: unset;
}
/* Возвращаем их как есть, если в базовом CSS уже были заданы */
.product-link,
a.product-link {
  display: inline-flex;
}
/* === NAV GLASS V6 END === */

