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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e0e0e0;
  padding: 20px;
}

/* ===== Карточка ===== */
.card {
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 16px;
  width: 520px;
  max-width: 95vw;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(100, 100, 255, 0.1);
}

/* ===== Шапка ===== */
.card-header {
  background: linear-gradient(135deg, #16213e, #0f3460);
  padding: 40px 30px;
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 3px solid #a0a0ff;
  object-fit: cover;
}

.card-header h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
}

.role {
  color: #a0a0ff;
  font-size: 1.1rem;
  font-weight: 300;
}

.degree {
  color: #888;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ===== Секции ===== */
.card-section {
  padding: 24px 30px;
  border-top: 1px solid #2a2a3e;
}

.card-section h2 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 16px;
}

/* ===== About me ===== */
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.5;
}

.link {
  color: #a0a0ff;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ===== Технологии ===== */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #16213e;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #2a2a3e;
  transition: border-color 0.2s, transform 0.2s;
}

.tech-item:hover {
  border-color: #a0a0ff;
  transform: translateY(-2px);
}

.tech-item i {
  font-size: 1.4rem;
}

.tech-item span {
  font-size: 0.85rem;
  color: #ccc;
}

.tech-icon {
  width: 22px;
  height: 22px;
}

.tech-icon[alt="ClickHouse"] {
  filter: brightness(0) invert(0.8);
}

.tech-icon.claude-icon {
  filter: none;
}

/* ===== Dropdown ===== */
.dropdown {
  position: relative;
  margin-bottom: 20px;
}

.dropdown-btn {
  width: 100%;
  padding: 12px 16px;
  background: #16213e;
  color: #e0e0e0;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s;
}

.dropdown-btn:hover {
  border-color: #a0a0ff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #16213e;
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 10;
  padding: 8px 0;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-menu label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.95rem;
}

.dropdown-menu label:hover {
  background: #1a2744;
}

.dropdown-menu input[type="checkbox"] {
  accent-color: #a0a0ff;
  width: 16px;
  height: 16px;
}

/* ===== Форма ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="text"] {
  padding: 12px 16px;
  background: #0f0f1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: #a0a0ff;
}

input[type="text"]::placeholder {
  color: #555;
}

.submit-btn {
  padding: 14px;
  background: linear-gradient(135deg, #0f3460, #533483);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.85;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Статус ===== */
.status {
  text-align: center;
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 24px;
}

.status.success {
  color: #4caf50;
}

.status.error {
  color: #f44336;
}

/* ===== Футер с ракетой ===== */
.card-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #2a2a3e;
}

.footer-gif {
  width: 80px;
  border-radius: 8px;
}
