:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --accent: #a78bfa;
  --accent-hover: #8b5cf6;
  --border: #e5e5e5;
  --shadow: rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #a78bfa;
  --accent-hover: #8b5cf6;
  --border: #404040;
  --shadow: rgba(0, 0, 0, 0.3);
  --card-bg: #2d2d2d;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);

  transition: background 0.3s ease, color 0.3s ease;
}

.controls {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 16px;
  z-index: 1;
}

.btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fas {
  height: 20px;
  aspect-ratio: 1;
  padding: 2px;
  font-size: 1rem;
  text-align: center;
}

.btn .fi {
  font-size: 1rem;
  border-radius: 2px;
}

.btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeIn 0.8s ease;
}

.logo {
  height: 150px;
}

.avatar {
  margin-top: 10px;
  width: min-content;
  display: flex;
  flex-flow: column;
  align-items: center;
}

.avatar img {
  background: var(--bg-secondary);
  width: 150px;
  height: 150px;
  object-fit: cover;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  animation: slideUp 0.8s ease;
}

.section h2 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.section p {
  color: var(--text-secondary);
  margin-top: 5px;
  margin-bottom: 5px;
}

.section li {
  color: var(--text-secondary);
  margin-left: 20px;
}

/* Контактные карточки */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.contact-card {
  display: flex;
  align-items: flex-center;
  gap: 16px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow);
  border-color: var(--accent);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent);
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-info {
  flex: 1;
}

.contact-name {
  font-weight: 600;
  font-size: 1.1rem;

  color: var(--text-primary);
}

.contact-note {
  display: flex;
  align-items: start;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-note i {
  color: var(--accent);
}

/* Cookie баннер */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 2px solid var(--accent);
  padding: 20px;
  box-shadow: 0 -4px 20px var(--shadow);
  z-index: 1000;
  animation: slideInUp 0.5s ease;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  color: var(--text-primary);
  margin: 0;
  font-size: 1rem;
}

.cookie-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

footer {
  text-align: center;
  padding: 20px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Адаптив */
@media (max-width: 768px) {
  .section {
    padding: 8px 16px;
  }

  .section h2 {
    font-size: 1.2rem;
  }

  .controls {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .btn {
    padding: 8px 8px;
    font-size: 12px;
  }
  .contact-card {
    padding: 8px 8px;
    gap: 8px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-btn {
    width: 100%;
  }
}
