/* Оформление в палитре остальных проектов: тёплый кремовый фон,
   амбра и тёмно-коричневый текст (взято из Самогона и Сито). */

:root {
  --pc-bg: #fffaf4;
  --pc-surface: #f7efe5;
  --pc-surface-2: #f2e5d4;
  --pc-line: #e7d7c3;
  --pc-ink: #211d19;
  --pc-muted: #725f50;
  --pc-accent: #e0a15d;
  --pc-accent-strong: #9d571f;
  --pc-accent-soft: #ffe6ae;
  --pc-danger: #b3402f;
}

* { box-sizing: border-box; }

body {
  background: var(--pc-bg);
  color: var(--pc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 1080px; padding-top: 4rem; padding-bottom: 3rem; }

/* --- шапка ---------------------------------------------------------- */

.hero { max-width: 46rem; margin-bottom: 3.5rem; }

.hero-kicker {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pc-accent-strong);
  margin-bottom: .6rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--pc-muted);
  margin-bottom: 1.8rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn-accent,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .7rem 1.4rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-accent { background: var(--pc-ink); color: var(--pc-accent-soft); }
.btn-accent:hover { background: var(--pc-accent-strong); color: #fff; }

.btn-ghost {
  border: 1px solid var(--pc-line);
  color: var(--pc-ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--pc-accent); color: var(--pc-accent-strong); }

.icon { width: 1.05rem; height: 1.05rem; }

/* --- карточки проектов ---------------------------------------------- */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 1px 2px rgba(33, 29, 25, .04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.project:hover {
  transform: translateY(-3px);
  border-color: var(--pc-accent);
  box-shadow: 0 10px 24px rgba(33, 29, 25, .09);
}

.project-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent-strong);
  margin-bottom: 1.1rem;
}
.project-icon svg { width: 1.55rem; height: 1.55rem; }

.project-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 .6rem; }
.project-title a { color: var(--pc-ink); text-decoration: none; }
.project-title a:hover { color: var(--pc-accent-strong); }

.project-text {
  color: var(--pc-muted);
  line-height: 1.6;
  font-size: .96rem;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: 0 0 1.2rem;
}
.chips li {
  background: var(--pc-surface-2);
  color: var(--pc-muted);
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .78rem;
}

.project-link {
  color: var(--pc-accent-strong);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}
.project-link:hover { color: var(--pc-danger); }

/* --- подвал ---------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--pc-line);
  color: var(--pc-muted);
  font-size: .86rem;
}
.footer a { color: var(--pc-accent-strong); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-stack { opacity: .8; }

@media (max-width: 575.98px) {
  .page { padding-top: 2.5rem; }
  .hero { margin-bottom: 2.5rem; }
}
