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

@font-face {
  font-family: 'ChinaCyr';
  src: url('chinacyr.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a1a0a 0%, #2d2d15 30%, #1a2d1a 70%, #0a1a0a 100%);
  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(0,0,0,0.1);
  border-top: 3px solid #FFD700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

body {
  font-family: 'ChinaCyr', 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #1a1a0a 0%, #2d2d15 30%, #1a2d1a 70%, #0a1a0a 100%);
  color: #e0dcc8;
  min-height: 100vh;
}

.links-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 20px 0;
}
.links-section .container {
  position: relative;
  z-index: 2;
  margin-top: -60px;
}
.links-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/fon.jpeg') no-repeat center center;
  background-size: cover;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.links-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(144, 238, 144, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 215, 0, 0.04) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.links-section .container {
  position: relative;
  z-index: 2;
}
.tea-logo {
  width: 600px;
  height: 210px;
  background: url('images/tea_guru.png') no-repeat center center;
  background-size: contain;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 20px rgba(144, 238, 144, 0.3)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.15));
}
.tea-subtitle {
  display: none;
}

.link-card {
  background: transparent url('images/bundle.png') no-repeat center center;
  background-size: 100% 100%;
  border: none;
  border-radius: 0;
  padding: 60px 25px 50px;
  text-align: center;
  height: 100%;
  min-height: 220px;
  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);
  filter: brightness(1.15);
}
.link-card .link-body {
  position: relative;
  z-index: 2;
}
.link-card h5 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #4a2c0a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.link-card h5 svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: #4a2c0a;
}
.link-card h5 svg path { fill: #4a2c0a; }

.btn-tea {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 38px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid #4a2c0a;
  border-radius: 0;
  background: transparent;
  color: #4a2c0a;
  transition: all .3s ease;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.btn-tea:hover {
  background: #4a2c0a;
  color: #fff;
  transform: scale(1.05);
  border-color: #4a2c0a;
}
.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) {
  .links-section { align-items: flex-start; padding: 60px 0 20px; min-height: auto; }
  .tea-logo { width: 400px; height: 140px; }
  .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) {
  .links-section { align-items: flex-start; padding: 60px 0 20px; min-height: auto; }
  .tea-logo { width: 280px; height: 98px; }
  .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; }
}