/* ============================================================
   MЁDWEED — Ultra Honey Glass Landing
   ============================================================ */

:root {
  --bg-void:        #0e0804;
  --bg-deep:        #160e06;
  --bg-warm:        #1f1408;
  --bg-card:        rgba(28, 18, 8, 0.78);

  --honey-cream:    #FFF8E0;
  --honey-light:    #FFE08A;
  --gold-100:       #FFF3C4;
  --gold-300:       #F5C518;
  --gold-400:       #E8AD0A;
  --gold-500:       #C9920A;
  --gold-600:       #9A6B08;
  --gold-glow:      rgba(255, 184, 40, 0.35);

  --glass-border:   rgba(255, 200, 60, 0.16);
  --glass-border-hover: rgba(255, 215, 0, 0.42);
  --glass-shine:    rgba(255, 248, 220, 0.14);
  --glass-blur:     blur(20px);

  --text:           #FBF0DC;
  --text-soft:      rgba(251, 240, 220, 0.68);
  --text-faint:     rgba(251, 240, 220, 0.42);

  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;

  --radius-sm:      16px;
  --radius-md:      22px;
  --radius-lg:      30px;
  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
  --ease-honey:     cubic-bezier(0.34, 1.2, 0.48, 1);
  --shadow-gold:    0 24px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(201, 146, 10, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-void);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Тёплый медовый градиент */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(255, 180, 50, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 55%, rgba(201, 146, 10, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 5% 75%, rgba(255, 140, 20, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(90, 50, 10, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-deep) 45%, var(--bg-void) 100%);
  z-index: -5;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: -4;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

.icon { display: block; flex-shrink: 0; }

.svg-sprite, .svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.text-gold {
  background: linear-gradient(120deg, var(--honey-cream) 0%, var(--gold-300) 40%, var(--gold-500) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldFlow 6s ease-in-out infinite;
}

@keyframes goldFlow {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* Honey gooey overlay */
#honey-container {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  filter: url(#gooey);
  opacity: 0.4;
  mix-blend-mode: screen;
  contain: strict;
}

#honeyCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Соты на фоне */
.honey-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23F5C518' stroke-width='0.6'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z'/%3E%3Cpath d='M28 34 L56 50 L56 84 L28 100 L0 84 L0 50 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 100px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 75%);
}

/* Стекающие полосы по краям */
.honey-curtain {
  position: fixed;
  top: 0;
  width: 6px;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
}

.honey-curtain--left {
  left: max(0px, calc(50% - 560px));
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 200, 60, 0.5) 8%,
    rgba(201, 146, 10, 0.35) 15%,
    transparent 22%,
    transparent 45%,
    rgba(255, 180, 40, 0.25) 52%,
    transparent 60%);
  animation: curtainDrip 8s ease-in-out infinite;
}

.honey-curtain--right {
  right: max(0px, calc(50% - 560px));
  background: linear-gradient(180deg,
    transparent 5%,
    rgba(255, 200, 60, 0.35) 12%,
    transparent 20%,
    transparent 55%,
    rgba(201, 146, 10, 0.3) 62%,
    transparent 72%);
  animation: curtainDrip 10s ease-in-out infinite reverse;
}

@keyframes curtainDrip {
  0%, 100% { filter: brightness(1); transform: scaleY(1); }
  50%      { filter: brightness(1.3); transform: scaleY(1.02); }
}

/* Ambient glow */
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -2;
}

.ambient--top {
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 170, 30, 0.14);
  animation: ambientDrift 12s ease-in-out infinite;
}

.ambient--bottom {
  width: 420px;
  height: 420px;
  bottom: -12%;
  right: -10%;
  background: rgba(201, 120, 10, 0.1);
  animation: ambientDrift 15s ease-in-out infinite reverse;
}

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(20px, -15px); }
}

.ambient--top { animation-name: ambientDriftTop; }
@keyframes ambientDriftTop {
  0%, 100% { transform: translateX(-50%); }
  50%      { transform: translateX(calc(-50% + 30px)); }
}

/* Page */
.page-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  animation: pageIn 1.2s var(--ease) 0.1s both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Scroll reveal — медовое стекание */
.drip-reveal {
  opacity: 0;
  transform: translateY(24px) scaleY(0.96);
  filter: blur(5px);
  transform-origin: top center;
}

.drip-reveal.is-visible {
  animation: honeyReveal 0.9s var(--ease-honey) forwards;
}

@keyframes honeyReveal {
  0%   { opacity: 0; transform: translateY(24px) scaleY(0.96); filter: blur(5px); }
  60%  { opacity: 0.9; transform: translateY(-3px) scaleY(1.02); filter: blur(1px); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); }
}

.drip-reveal[data-drip-delay="0"].is-visible { animation-delay: 0s; }
.drip-reveal[data-drip-delay="1"].is-visible { animation-delay: 0.08s; }
.drip-reveal[data-drip-delay="2"].is-visible { animation-delay: 0.16s; }
.drip-reveal[data-drip-delay="3"].is-visible { animation-delay: 0.24s; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  position: relative;
}

.header::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin: 1.5rem auto 0;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, var(--gold-300), transparent);
  opacity: 0.5;
  animation: headerDrip 3s ease-in-out infinite;
}

@keyframes headerDrip {
  0%, 100% { height: 3px; opacity: 0.4; }
  50%      { height: 14px; opacity: 0.7; }
}

.header__badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey-light);
  border: 1px solid rgba(255, 200, 60, 0.25);
  background: linear-gradient(135deg, rgba(255, 200, 60, 0.12), rgba(201, 146, 10, 0.06));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 24px rgba(255, 180, 40, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 0 30px rgba(255, 180, 40, 0.2));
}

.logo__mark {
  font-size: 1.75rem;
  line-height: 1;
  animation: markFloat 3s ease-in-out infinite;
}

@keyframes markFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-4px) rotate(3deg); }
}

.logo__text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  background: linear-gradient(135deg, var(--honey-cream), var(--gold-300) 35%, var(--gold-500) 70%, var(--gold-300));
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

.slogan {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 24rem;
  margin: 0 auto;
}

.slogan__emoji { font-style: normal; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 0.5rem 0 2.5rem; }

.hero__stage {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__stage {
    grid-template-columns: 1fr minmax(260px, 340px);
    gap: 2rem;
    align-items: stretch;
  }
}

.hero__panel {
  position: relative;
  padding: 2.5rem 1.85rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(255, 200, 60, 0.2);
  background:
    linear-gradient(165deg,
      rgba(255, 200, 60, 0.14) 0%,
      rgba(255, 160, 30, 0.05) 25%,
      rgba(20, 12, 6, 0.88) 55%,
      rgba(10, 6, 3, 0.95) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero__panel { text-align: left; align-items: flex-start; }
}

.hero__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 230, 120, 0.45), transparent 35%, rgba(255, 180, 40, 0.15) 70%, rgba(255, 230, 100, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Капля мёда сверху hero-панели */
.hero__honey-cap {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 35% 30%, var(--honey-cream), var(--gold-400));
  box-shadow: 0 0 20px rgba(255, 180, 40, 0.5);
  animation: capDrip 2.5s ease-in-out infinite;
}

.hero__honey-cap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  border-radius: 0 0 50% 50%;
  animation: capStream 2.5s ease-in-out infinite;
}

@keyframes capDrip {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.15); }
}

@keyframes capStream {
  0%, 30%  { height: 0; opacity: 0; }
  50%      { height: 22px; opacity: 0.85; }
  100%     { height: 32px; opacity: 0; }
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 180, 40, 0.3);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6.5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin-bottom: 1.85rem;
}

/* ============================================================
   BEAR SHOWCASE
   ============================================================ */
.bear-showcase {
  --mx: 0;
  --my: 0;
  --scroll: 0;
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 1.75rem auto 0;
}

@media (min-width: 900px) {
  .bear-showcase {
    max-width: none;
    margin: 2.5rem 0 0;
    align-self: center;
  }
}

.bear-showcase__aura {
  position: absolute;
  inset: -18% -12% -8%;
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, rgba(255, 170, 40, calc(0.3 + var(--scroll) * 0.4)) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 25% 85%, rgba(100, 140, 60, 0.15) 0%, transparent 60%);
  filter: blur(32px);
  pointer-events: none;
  animation: auraPulse 3.5s ease-in-out infinite;
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}

.bear-showcase__frame {
  position: relative;
  padding: 4px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: linear-gradient(145deg, #FFE566, #C9920A 30%, #FFF0A8 50%, #8B5A00 100%);
  background-size: 220% 220%;
  animation: borderFlow 5s ease infinite;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 calc(40px + var(--scroll) * 50px) rgba(255, 160, 30, calc(0.2 + var(--scroll) * 0.3));
  transform:
    perspective(900px)
    rotateY(calc(var(--mx) * 5deg))
    rotateX(calc(var(--my) * -4deg))
    translateY(calc(var(--scroll) * -12px));
  will-change: transform;
}

@keyframes borderFlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.bear-showcase__border-glow {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 240, 150, 0.55), transparent 45%);
  pointer-events: none;
  opacity: calc(0.55 + var(--scroll) * 0.45);
}

.bear-showcase__inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #120a04;
  aspect-ratio: 2 / 3;
}

.bear-showcase__gif {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(calc(1.05 + var(--scroll) * 0.04));
  filter:
    brightness(calc(0.9 + var(--scroll) * 0.1))
    saturate(calc(1 + var(--scroll) * 0.2));
}

.bear-showcase__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-void) 0%, transparent 30%),
    linear-gradient(to bottom, rgba(14, 8, 4, 0.55) 0%, transparent 18%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.bear-showcase__shine-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,0.08) 45%, rgba(255, 220, 100, 0.18) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: shineSweep 4.5s var(--ease) infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%, 65%  { transform: translateX(-120%); }
  100%     { transform: translateX(120%); }
}

.bear-showcase__honey-stream {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  pointer-events: none;
}

.bear-showcase__honey-stream span {
  display: block;
  width: 5px;
  height: 0;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  opacity: 0;
  animation: honeyDrip 2.4s ease-in-out infinite;
}

.bear-showcase__honey-stream span:nth-child(1) { animation-delay: 0s; }
.bear-showcase__honey-stream span:nth-child(2) { animation-delay: 0.7s; width: 4px; }
.bear-showcase__honey-stream span:nth-child(3) { animation-delay: 1.4s; width: 6px; }

@keyframes honeyDrip {
  0%   { height: 0; opacity: 0; }
  20%  { opacity: 0.95; }
  75%  { height: 32px; opacity: 0.75; }
  100% { height: 40px; opacity: 0; transform: translateY(10px); }
}

.bear-showcase.is-scrolling .bear-showcase__honey-stream span { animation-duration: 1.4s; }

.bear-showcase__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0 0.25rem;
}

.bear-showcase__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.bear-showcase__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 10px rgba(255, 200, 60, 0.7);
  animation: livePulse 1.4s ease infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px rgba(255, 200, 60, 0.7); }
  50%      { opacity: 0.5; transform: scale(0.8); box-shadow: 0 0 4px rgba(255, 200, 60, 0.3); }
}

.bear-showcase__tag {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-style: italic;
}

.bear-showcase.is-visible .bear-showcase__inner {
  animation: portalReveal 1.1s var(--ease-honey) forwards;
}

@keyframes portalReveal {
  from { opacity: 0; filter: blur(10px); transform: scale(0.92); }
  to   { opacity: 1; filter: blur(0); transform: scale(1); }
}

@media (max-width: 899px) {
  .bear-showcase { order: -1; margin-top: 1rem; margin-bottom: 0.5rem; }
}

@media (max-width: 640px) {
  #honey-container { opacity: 0.28; }
  .honey-curtain { display: none; }

  .glass-card,
  .glass-btn,
  .hero__panel,
  .honey-panel {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ============================================================
   GLASS BUTTON
   ============================================================ */
.glass-btn {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 200, 60, 0.35);
  background: linear-gradient(135deg, rgba(255, 200, 60, 0.22), rgba(201, 120, 10, 0.12) 50%, rgba(255, 180, 40, 0.08));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 var(--glass-shine),
    inset 0 -1px 0 rgba(100, 60, 0, 0.2),
    0 14px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 160, 30, 0.15);
  color: var(--honey-cream);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  overflow: hidden;
  transition: transform 0.35s var(--ease-honey), box-shadow 0.35s ease, border-color 0.35s ease;
}

.glass-btn__shine {
  position: absolute;
  inset: -50%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.1) 47%, rgba(255,220,100,0.25) 50%, transparent 55%);
  transform: translateX(-100%) rotate(20deg);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}

.glass-btn__content {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.glass-btn__arrow {
  position: relative;
  z-index: 1;
  opacity: 0.75;
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
}

.glass-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 230, 120, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 45px rgba(255, 180, 40, 0.25);
}

.glass-btn:hover .glass-btn__shine { transform: translateX(100%) rotate(20deg); }
.glass-btn:hover .glass-btn__arrow { transform: translateX(4px); opacity: 1; }
.glass-btn:active { transform: scale(0.97); }

/* ============================================================
   LINKS — honey panel
   ============================================================ */
.links-section {
  padding: 1rem 0 0;
}

.honey-panel {
  position: relative;
  margin-top: 1rem;
  padding: 2rem 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 180, 40, 0.12);
  background: linear-gradient(180deg, rgba(255, 160, 30, 0.06) 0%, rgba(14, 8, 4, 0.5) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.honey-panel__cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 200, 60, 0.6) 20%,
    rgba(255, 230, 120, 0.9) 50%,
    rgba(255, 200, 60, 0.6) 80%,
    transparent);
  animation: panelCapShimmer 4s ease-in-out infinite;
}

@keyframes panelCapShimmer {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head__line {
  display: block;
  width: 60px;
  height: 2px;
  margin: 0 auto 1rem;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), var(--gold-300), var(--gold-400), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--honey-cream);
  margin-bottom: 0.45rem;
  text-shadow: 0 0 30px rgba(255, 180, 40, 0.15);
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-faint);
}

.links-group { margin-bottom: 1.85rem; }

.links-group__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.7rem;
  padding-left: 0.25rem;
}

.links-group__label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle at 30% 30%, var(--honey-cream), var(--gold-500));
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.links-grid {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 540px) {
  .links-grid:not(.links-grid--featured) {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   GLASS CARDS
   ============================================================ */
.glass-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  contain: layout style;
}

/* Медовый блик под курсором */
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 80px at var(--mouse-x) var(--mouse-y), rgba(255, 200, 60, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.glass-card:hover::after { opacity: 1; }

.glass-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 100px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 220, 100, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.glass-btn:hover::after { opacity: 1; }

.glass-card__shine {
  position: absolute;
  inset: -50%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 47%, rgba(255,200,60,0.15) 50%, transparent 56%);
  transform: translateX(-100%) rotate(15deg);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}

.glass-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
  color: var(--gold-300);
  background: linear-gradient(145deg, rgba(255, 200, 60, 0.15), rgba(201, 120, 10, 0.08));
  border: 1px solid rgba(255, 200, 60, 0.18);
  position: relative;
  z-index: 1;
}

.glass-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  position: relative;
  z-index: 1;
}

.glass-card__label {
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text);
}

.glass-card__handle {
  font-size: 0.78rem;
  color: var(--gold-400);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glass-card__arrow {
  color: var(--gold-300);
  opacity: 0;
  transform: translateX(-6px);
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hover);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 10px 32px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(255, 160, 30, 0.12);
}

.glass-card:hover .glass-card__shine { transform: translateX(100%) rotate(15deg); }
.glass-card:hover .glass-card__arrow { opacity: 1; transform: translateX(0); }

.glass-card--featured {
  padding: 1.2rem 1.15rem;
  border-color: rgba(255, 200, 60, 0.28);
  background: linear-gradient(135deg, rgba(255, 180, 40, 0.14) 0%, rgba(22, 14, 6, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 120, 0.15),
    0 0 35px rgba(255, 160, 30, 0.1);
}

.glass-card--featured .glass-card__icon-wrap {
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, rgba(255, 200, 60, 0.22), rgba(201, 100, 10, 0.12));
  box-shadow: 0 0 24px rgba(255, 160, 30, 0.2);
}

.glass-card--featured .glass-card__label {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--honey-cream);
}

.glass-card--featured .glass-card__arrow { opacity: 0.55; }

.links-grid--featured .glass-card--featured { grid-column: 1 / -1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 180, 40, 0.1);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 60, 0.5), transparent);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.22em;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.footer__policy {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
  transition: color 0.25s ease;
}

.footer__policy:hover { color: var(--gold-300); }

/* ============================================================
   Admin panel
   ============================================================ */
.is-hidden { display: none !important; }

body.admin-open { overflow: hidden; }

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 5, 2, 0.82);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-modal {
  width: min(720px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(212, 168, 83, 0.25);
  background: linear-gradient(145deg, rgba(28, 18, 8, 0.96), rgba(12, 8, 4, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 220, 150, 0.08);
}

.admin-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--gold-300);
  margin: 0 0 1.25rem;
}

.admin-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0;
}

.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-panel__head .admin-title { margin: 0; }

.admin-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(212, 168, 83, 0.12);
}

.admin-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}

.admin-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 83, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.admin-input:focus {
  outline: none;
  border-color: var(--gold-400);
}

.admin-btn {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-btn--primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: #1a1005;
  font-weight: 600;
}

.admin-btn--primary:hover {
  filter: brightness(1.08);
}

.admin-btn--ghost {
  background: transparent;
  border-color: rgba(212, 168, 83, 0.25);
  color: var(--gold-300);
}

.admin-btn--ghost:hover {
  border-color: var(--gold-400);
  color: var(--gold-200);
}

.admin-btn--danger {
  flex-shrink: 0;
  width: 2.25rem;
  padding: 0.45rem;
  background: rgba(180, 50, 50, 0.2);
  border-color: rgba(220, 80, 80, 0.35);
  color: #ffb4b4;
  font-size: 1.1rem;
  line-height: 1;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.admin-subsection {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 168, 83, 0.12);
}

.admin-badge {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 999px;
}

.admin-user-line {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0 0 0.5rem;
}

.admin-credentials {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 83, 0.3);
  background: rgba(212, 168, 83, 0.08);
}

.admin-credentials__title {
  margin: 0 0 0.5rem;
  color: var(--gold-300);
  font-size: 0.85rem;
}

.admin-credentials__row {
  margin: 0.25rem 0;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.admin-credentials__row code {
  color: var(--gold-200);
  word-break: break-all;
}

.admin-credentials__hint {
  margin: 0.5rem 0 0.65rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.admin-sub-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-sub-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 83, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.admin-sub-item__login {
  font-family: monospace;
  color: var(--gold-200);
  font-size: 0.88rem;
}

.admin-sub-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-empty {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0;
}

.admin-actions--footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 168, 83, 0.12);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-error {
  color: #ff8a8a;
  font-size: 0.82rem;
  min-height: 1.2em;
  margin: 0;
}

.admin-status {
  font-size: 0.82rem;
  color: var(--gold-300);
  min-height: 1.2em;
  margin: 0 0 0.5rem;
}

.admin-cat {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 168, 83, 0.15);
  background: rgba(0, 0, 0, 0.22);
}

.admin-cat__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.admin-cat__head .admin-cat__name {
  flex: 1 1 180px;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.admin-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.admin-link-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 0.45rem;
  align-items: center;
}

.admin-link-row--hero {
  grid-template-columns: 1fr 1.4fr;
}

@media (max-width: 640px) {
  .admin-link-row {
    grid-template-columns: 1fr;
  }

  .admin-link-row--hero {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .drip-reveal, .drip-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
  }

  #honey-container { display: none; }
}
