/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-start: #0a0a1a;
  --bg-end: #1a1035;
  --accent: #7c5cfc;
  --accent-light: #a78bfa;
  --glass-bg: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.12);
  --text: #f0f0f5;
  --text-muted: rgba(255,255,255,0.6);
  --radius: 16px;
  --max-w: 560px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 50%, #0d1f3c 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(124,92,252,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== LAYOUT ===== */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px 100px;
}

/* ===== HEADER / PROFILE ===== */
.profile {
  text-align: center;
  padding: 16px 0 24px;
  animation: fadeInDown 0.6s ease-out;
}

.profile__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(124,92,252,0.3);
}

.profile__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.profile__url {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.profile__url:hover { color: var(--accent-light); }

.profile__desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.profile__desc--lg {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  max-width: 420px;
}

/* ===== CONTACTS ROW ===== */
.contacts {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0 28px;
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  text-decoration: none;
  overflow: hidden;
}

.contact-btn img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.contact-btn__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.contact-btn__label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124,92,252,0.25);
}
.contact-btn:hover img { transform: scale(1.1); }

.contact-btn--tg:hover { background: rgba(38,166,227,0.2); border-color: #26a6e3; box-shadow: 0 8px 24px rgba(38,166,227,0.25); }
.contact-btn--max:hover { background: rgba(22,138,205,0.2); border-color: #168ACD; box-shadow: 0 8px 24px rgba(22,138,205,0.25); }
.contact-btn--email:hover { background: rgba(234,88,12,0.2); border-color: #ea580c; box-shadow: 0 8px 24px rgba(234,88,12,0.25); }

.contacts__label {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

/* ===== LINK CARDS ===== */
.links { display: flex; flex-direction: column; gap: 12px; }

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  animation: fadeInUp 0.5s ease-out both;
}
.link-card:nth-child(1) { animation-delay: 0.2s; }
.link-card:nth-child(2) { animation-delay: 0.3s; }
.links--secondary .link-card { animation-delay: 0.4s; }

.link-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,92,252,0.15);
}

.link-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.link-card__text {
  font-size: 15px;
  font-weight: 600;
}

.link-card__arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 18px;
  transition: transform 0.25s;
}
.link-card:hover .link-card__arrow { transform: translateX(3px); color: var(--accent-light); }

/* ===== SECONDARY LINKS (warranty separated) ===== */
.links--secondary {
  margin-top: 20px;
}

.links--secondary .link-card {
  background: rgba(124,92,252,0.08);
  border-color: rgba(124,92,252,0.2);
}

.links--secondary .link-card:hover {
  background: rgba(124,92,252,0.15);
  border-color: var(--accent);
}

/* ===== WARRANTY PAGE ===== */
.section-label {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin: 32px 0 16px;
  font-weight: 600;
}

.warranty-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px 20px;
  margin-bottom: 16px;
  animation: fadeInUp 0.5s ease-out both;
}
.warranty-card:nth-of-type(1) { animation-delay: 0.2s; }
.warranty-card:nth-of-type(2) { animation-delay: 0.35s; }

.warranty-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.warranty-card__title svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.warranty-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.warranty-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
}

.warranty-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.warranty-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== SUPPORT CTA (bottom of warranty) ===== */
.support-cta {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(124,92,252,0.15), rgba(56,189,248,0.1));
  border: 1px solid rgba(124,92,252,0.2);
  border-radius: var(--radius);
  margin: 24px 0;
  animation: fadeInUp 0.5s ease-out 0.5s both;
}

.support-cta__text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.support-cta .contacts {
  margin: 0;
  animation: none;
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent-light); }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 24px 0 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: var(--accent-light); }

/* ===== STICKY MOBILE CONTACTS ===== */
.sticky-contacts {
  display: none;
}

@media (max-width: 600px) {
  .sticky-contacts {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(10,10,26,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
  }

  .sticky-contacts .contact-btn {
    width: 42px;
    height: 42px;
  }
  .sticky-contacts .contact-btn img {
    width: 42px;
    height: 42px;
  }

  .sticky-contacts__label {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 2px;
    white-space: nowrap;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== DESKTOP TWEAKS ===== */
@media (min-width: 601px) {
  .wrapper { padding: 40px 20px 60px; }
  .profile { padding: 28px 0 32px; }
  .profile__avatar { width: 130px; height: 130px; }
  .profile__name { font-size: 28px; }
  .link-card { padding: 18px 24px; }
  .link-card__text { font-size: 17px; }
  .warranty-card { padding: 28px 28px; }
  .warranty-list li { font-size: 15px; }
}
