/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Manrope', sans-serif;
  color: #1a1a1a;
  overflow-x: hidden;
  position: relative;
}

/* --- Animated gradient --- */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(
    135deg,
    #0f0c29 0%,
    #302b63 25%,
    #24243e 50%,
    #302b63 75%,
    #0f0c29 100%
  );
  background-size: 400% 400%;
  background-position: 0% 50%;
  animation: gradientFlow 20s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 100%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

/* --- Layout --- */
.content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}
.content_narrow {
  min-height: auto;
  padding: 4rem 1.5rem;
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem 1.5rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.nav__link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* --- Hero --- */
.section_hero .title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn_primary {
  background: rgba(255,255,255,0.95);
  color: #1a1a2e;
}
.btn_primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.btn_ghost {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.4);
  margin: 0 0.5rem 0.5rem 0;
}
.btn_ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* --- Sections --- */
.section__title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: #f0f0f0;
  margin: 0 0 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.section__text {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 42ch;
}

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 480px;
  margin-top: 1rem;
}
@media (max-width: 380px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  cursor: default;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover,
.card:focus-visible {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  outline: none;
}
.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f0f0f0;
  margin: 0 0 0.5rem;
}
.card__text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.4;
}

/* --- Contact --- */
.contact-list {
  width: 100%;
  max-width: 320px;
  margin-bottom: 1.5rem;
}
.contact-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  overflow: hidden;
}
.contact-item__name {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #f0f0f0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.contact-item__name:hover {
  background: rgba(255,255,255,0.06);
}
.contact-item__info {
  padding: 0 1.25rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-item__info[hidden] {
  display: none;
}
.contact-item__tg {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}
.contact-item__tg a {
  color: #7eb8da;
  text-decoration: none;
}
.contact-item__tg a:hover {
  text-decoration: underline;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}
.footer__text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.footer__top {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.footer__top:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.08);
}
