/* ==========================================================================
   Даниил Решетников — Минималистичное портфолио
   Шрифты: Manrope + Golos Text + JetBrains Mono
   ========================================================================== */

:root {
  --bg: #0c0c0e;
  --bg-card: #141417;
  --text-main: #f4f4f6;
  --text-muted: #94949e;
  --text-sub: #5c5c68;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Golos Text', sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Grotesk', monospace, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-main);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 14, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 0.2rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.brand-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-item:hover {
  color: var(--text-main);
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* Intro */
.intro {
  padding: 8rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.intro-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 1040px;
  margin-bottom: 3.5rem;
  color: var(--text-main);
}

.intro-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.intro-disciplines {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sep {
  color: var(--text-sub);
}

/* Section Shared */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  display: block;
}

/* Works */
.works {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.works-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

.works-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.project-item {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.project-item:nth-child(even) {
  grid-template-columns: 1fr 1.35fr;
}

.project-item:nth-child(even) .project-media {
  order: 2;
}

.project-media {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  position: relative;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(12%) contrast(104%);
}

.project-item:hover .project-media img {
  transform: scale(1.025);
  filter: grayscale(0%) contrast(100%);
}

.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.project-summary {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.project-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-roles span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

/* About */
.about {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
}

.about-heading {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
  color: var(--text-main);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.about-columns h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.about-columns ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-columns li {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact */
.contact {
  padding: 8rem 0;
}

.contact-headline {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  max-width: 800px;
  margin: 1.5rem 0 4rem;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}

.channel-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.channel-value:hover {
  color: #fff;
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-sub);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 900px) {
  .intro-headline { font-size: 2.25rem; }
  .project-item, .project-item:nth-child(even) { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-item:nth-child(even) .project-media { order: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-headline { font-size: 2rem; }
  .contact-links { grid-template-columns: 1fr; }
  .nav { display: none; }
  .about-columns { grid-template-columns: 1fr; gap: 2rem; }
}
