:root {
  --bg-color: #0c0000;
  --bg-accent: #9b0000;
  --text: #f7f3f2;
  --muted: #c9b8b6;
  --card: rgba(8, 0, 0, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --primary: #ff4d4d;
  --shadow: 0 20px 60px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 50% 30%, rgba(155, 0, 0, 0.4), transparent),
              radial-gradient(900px 400px at 50% -10%, rgba(255,0,0,0.35), transparent),
              #0a0000;
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(800px 800px at 50% 40%, rgba(155,0,0,0.4), transparent),
              radial-gradient(1400px 700px at 50% 50%, rgba(255,0,0,0.25), transparent);
  filter: blur(40px) saturate(120%);
  z-index: -1;
  pointer-events: none;
}

.container {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 48px 16px;
}

.card {
  position: relative;
  width: min(1100px, 92vw);
  aspect-ratio: 16/9;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(115%) contrast(105%) brightness(88%);
  transition: transform 900ms ease, filter 900ms ease;
}

.card:hover .hero { transform: scale(1.08); filter: saturate(120%) contrast(110%) brightness(90%); }

.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 45% at 50% 35%, rgba(0,0,0,0.1), rgba(0,0,0,0.6)),
              linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,var(--overlay-bottom, 0.65)));
}

.brand {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 16px;
  text-align: center;
}

.logo { width: clamp(80px, 16vw, 140px); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.7)); }
.title { font-family: "Cinzel Decorative", serif; letter-spacing: 1px; font-weight: 700; margin: 8px 0 0; text-shadow: 0 2px 0 #000, 0 6px 30px rgba(255,0,0,0.35); }
.subtitle { color: var(--muted); font-weight: 400; margin: 0; }

.links {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.6vw, 18px);
  justify-content: center;
  flex-wrap: wrap;
  width: min(92%, 680px);
}

.link-btn {
  --size: clamp(46px, 6.2vw, 58px);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #1a0000;
  background: #ffb199;
  background: radial-gradient(circle at 35% 25%, #ffd1c7, #ff7a59 60%, #ff5a3a);
  box-shadow: 0 10px 24px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.3);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.link-btn:hover { transform: translateY(-3px) scale(1.04); filter: saturate(115%); box-shadow: 0 16px 36px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.35); }
.link-btn:active { transform: translateY(0) scale(0.98); }

.link-btn iconify-icon {
  font-size: clamp(22px, 3vw, 26px);
  color: #300; /* тёмный оттенок для контраста */
  transition: transform 200ms ease, filter 200ms ease;
}

/* Hover-анимация иконки */
@keyframes iconWobble {
  0% { transform: translateY(0) scale(1) rotate(0); }
  30% { transform: translateY(-2px) scale(1.15) rotate(-6deg); }
  60% { transform: translateY(-1px) scale(1.08) rotate(6deg); }
  100% { transform: translateY(0) scale(1.1) rotate(0); }
}
@keyframes iconPulseGlow {
  0% { filter: drop-shadow(0 0 0 rgba(255,120,80,0)); }
  50% { filter: drop-shadow(0 4px 10px rgba(255,120,80,0.55)); }
  100% { filter: drop-shadow(0 0 0 rgba(255,120,80,0)); }
}
.link-btn:hover iconify-icon { animation: iconWobble 380ms ease-out, iconPulseGlow 900ms ease-out; }

/* Фокус для клавиатуры */
.link-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.6), 0 10px 24px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.3); }

.footer {
  margin-top: 18px;
  color: #bfa9a7;
  font-size: 14px;
  opacity: 0.8;
}

.footer a {
  color: #ffd6cf;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 214, 207, 0.5);
  transition: color 160ms ease, border-color 160ms ease;
}
.footer a:hover { color: #fff; border-color: rgba(255,255,255,0.85); }

/* Простая анимация появления */
@keyframes floatIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

[data-animate="fade-up"] { animation: floatIn 600ms ease both; }
[data-animate-delay="1"] { animation-delay: 60ms; }
[data-animate-delay="2"] { animation-delay: 120ms; }
[data-animate-delay="3"] { animation-delay: 180ms; }
[data-animate-delay="4"] { animation-delay: 240ms; }
[data-animate-delay="5"] { animation-delay: 300ms; }

/* Адаптивность */
@media (max-width: 720px) {
  .brand { top: 9%; }
  .title { font-size: clamp(22px, 6vw, 28px); }
  .subtitle { font-size: clamp(12px, 3.8vw, 14px); }
  .links { bottom: 7%; gap: clamp(8px, 2.8vw, 14px); }
}

@media (max-width: 560px) {
  .link-btn { --size: 46px; }
  .links { width: 96%; padding: 0 12px; bottom: 7%; }
}

@media (max-width: 420px) {
  .link-btn { --size: 42px; }
  .links { bottom: 6%; gap: 10px; }
  .title { font-size: clamp(18px, 7vw, 24px); }
  .subtitle { font-size: clamp(11px, 4vw, 13px); }
}

@media (max-width: 340px) {
  .link-btn { --size: 38px; }
}

/* Предпочтение снижения анимаций */
@media (prefers-reduced-motion: reduce) {
  .hero, .link-btn { transition: none !important; }
  .link-btn:hover iconify-icon { animation: none !important; }
}


