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

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}
#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top: 3px solid #ff4444;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

body {
  font-family: 'Unbounded', 'Montserrat', sans-serif;
  background: url('images/fon.png') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
}

.links-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 20px 0;
}
.links-section .container {
  position: relative;
  z-index: 2;
}
.tea-logo {
  width: 600px;
  height: 210px;
  background: url('images/rex.png') no-repeat center center;
  background-size: contain;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
}
.tea-subtitle {
  display: none;
}

.link-card {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border: 2px solid #ff4444;
  border-radius: 16px;
  padding: 24px 25px;
  text-align: center;
  height: 100%;
  min-height: 120px;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(255, 68, 68, 0.3);
}
.link-card .link-body {
  position: relative;
  z-index: 2;
}
.card-icon {
  margin-bottom: 8px;
}
.card-icon svg {
  width: 36px;
  height: 36px;
  fill: #ff4444;
}
.card-icon svg path { fill: #ff4444; }
.link-card h5 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.link-card h5 svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: #fff;
}
.link-card h5 svg path { fill: #fff; }

.btn-tea {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 2px solid #ff4444;
  border-radius: 0;
  background: transparent;
  color: #ff4444;
  transition: all .3s ease;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.btn-tea:hover {
  background: #ff4444;
  color: #fff;
  transform: scale(1.05);
}
.btn-tea:active {
  transform: scale(0.98);
}
.btn-tea svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.admin-link {
  display: inline-block;
  font-size: 20px;
  opacity: 0.15;
  transition: opacity .3s ease;
  text-decoration: none;
  filter: grayscale(1);
}
.admin-link:hover {
  opacity: 0.6;
  filter: grayscale(0);
}

@media (max-width: 768px) {
  .tea-logo { width: 400px; height: 140px; }
  .links-section { min-height: auto; padding: 40px 0; }
  .link-card { padding: 22px 14px 20px; }
  .link-card .link-icon { width: 50px; height: 50px; }
  .link-card .link-icon svg { width: 20px; height: 20px; }
  .link-card h5 { font-size: 14px; }
  .btn-tea { padding: 8px 26px; font-size: 13px; }
}
@media (max-width: 480px) {
  .tea-logo { width: 280px; height: 98px; }
  .links-section { min-height: auto; padding: 30px 0; }
  .link-card { padding: 18px 10px 16px; }
  .link-card .link-icon { width: 44px; height: 44px; }
  .link-card .link-icon svg { width: 18px; height: 18px; }
  .link-card h5 { font-size: 13px; }
  .btn-tea { padding: 6px 20px; font-size: 12px; }
}