:root {
  --text-dark: #333333;
  --card-bg: rgba(255, 235, 59, 0.9);
  --card-border: rgba(255, 215, 0, 0.5);
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --button-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: Montserrat, Roboto, sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
}

a {
  color: inherit;
}

img {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-image: url("./assets/background.webp");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.site-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.profile-column,
.content-column {
  width: 100%;
}

.profile-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  padding: 20px;
}

.profile-actions {
  position: absolute;
  top: 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  color: #333;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: inherit;
}

.icon-button svg,
.social-links svg,
.card-share svg,
.action-link svg {
  width: 24px;
  height: 24px;
}

.avatar-frame {
  margin-top: 30px;
  margin-bottom: 15px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #333;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background-color: #333;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-header h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #333;
  margin: 10px 0;
  text-align: center;
  letter-spacing: 1px;
}

.top-links {
  width: 100%;
  margin-bottom: 10px;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  margin-bottom: 8px;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--button-shadow);
  transition: transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.action-link:hover {
  transform: translateY(-2px);
}

.action-link span {
  display: inline-block;
}

.action-link svg {
  margin-right: 10px;
}

.action-link--telegram {
  background: linear-gradient(to right, #42a5f5, #2196f3);
}

.action-link--message {
  background: linear-gradient(to right, #ef5350, #d32f2f);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
  margin-bottom: 18px;
}

.social-links a {
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links svg {
  width: 32px;
  height: 32px;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.link-card {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--card-border);
}

.link-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-logo {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background-color: #ffffff;
  flex-shrink: 0;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.card-title {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.card-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 2px;
  line-height: 1.2;
}

.card-promo {
  font-size: 0.7rem;
  font-weight: 700;
  color: #e65100;
}

.card-share {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.site-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f2937;
}

.animate-bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }

  50% {
    opacity: 1;
    transform: scale(1.05) translateY(-5px);
  }

  70% {
    transform: scale(0.9) translateY(2px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (min-width: 768px) {
  .site-shell {
    padding: 0;
  }

  .site-layout {
    max-width: 72rem;
    flex-direction: row;
    padding-top: 5vh;
  }

  .profile-column {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    position: sticky;
    top: 2.5rem;
  }

  .content-column {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .profile-header {
    align-items: flex-start;
  }

  .profile-header h1 {
    text-align: left;
  }
}
