:root {
  --primary: #FFD300;
  --bg: #000000;
  --text: #ffffff;
  --grey: #b3b3b3;
  --card-bg: #111111;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
}

.logo {
  font-weight: bold;
  font-size: 1.8rem;
  color: var(--primary);
}

nav {
  text-align: right;
  margin-right: 24px;
}

nav a {
  color: var(--grey);
  text-decoration: none;
  margin-left: 12px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

.me {
  display: flex;
  gap: 60px;
  align-items: center;
}

#me {
  flex: 1 1 350px;
  padding: 0;
  border-top: none;
}

.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.hero-circle {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.hero-circle img {
  width: 100%;
  align-items: center;
  height: auto;
  border-radius: 50%;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
}

.tagline {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
}

.section {
  padding: 100px 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  display: inline-block;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 5px;
}

.section p {
  color: var(--grey);
  max-width: 600px;
  margin-bottom: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.project-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #222;
  transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
  border-color: var(--primary);
}

.project-icon {
  margin-bottom: 15px;
  width: 128px;
  object-fit: contain;
  height: 128px;
  border-radius: 12px;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-card p {
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.project-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.project-link:hover {
  color: var(--primary);
}

a.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
}

footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px 0;
  color: #555;
  font-size: 0.85rem;
  border-top: 1px solid #222;
}

.contacts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--primary);
}

.contact-icon {
  width: 24px;
  height: 24px;
  /* Превращает любые grayscale SVG в primary (#FFD700) */
  filter: brightness(0) saturate(100%) invert(86%) sepia(28%) saturate(664%) hue-rotate(360deg) brightness(106%) contrast(101%);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  .hero-circle {
    width: 200px; height: 200px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  nav a {
    margin-left: 20px;
  }
  .me {
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
  }
  #me {
    padding: 80px 0;
  }
}
