/* ===== Переменные ===== */
:root {
  --bg:        #f5f0e8;
  --bg-alt:    #ebe4d6;
  --card-bg:   #fffdf8;
  --border:    #d6ccb8;
  --text:      #3b3226;
  --text-soft: #6b5e4e;
  --accent:    #b8860b;
  --accent-light: #e6c875;
  --radius:    14px;
  --shadow:    0 2px 12px rgba(80, 60, 30, .08);
  --transition: .25s ease;
}

/* ===== Сброс и база ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }

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

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.nav { display: flex; gap: 24px; }
.nav a {
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: var(--accent); }

/* ===== Герой ===== */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  margin: 0 auto 18px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
}

.subtitle {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin-top: 6px;
}

/* ===== Секции ===== */
.section {
  margin: 48px 0;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
  display: inline-block;
}

/* ===== Сетка карточек ===== */
.grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Карточка-клетка ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-soft);
  font-size: .93rem;
}

.card-full {
  grid-column: span 1;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.card-header-row h3 { margin-bottom: 0; }

.badge {
  font-size: .78rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
}

.card-company {
  color: var(--accent);
  font-weight: 500;
  font-size: .9rem;
  margin-bottom: 8px;
}

.card-list {
  list-style: none;
  margin-top: 8px;
}
.card-list li {
  position: relative;
  padding-left: 18px;
  font-size: .9rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.card-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== Теги навыков ===== */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tag {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: .82rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ===== Карточки-ссылки ===== */
.card-link {
  display: block;
  text-align: center;
  cursor: pointer;
}
.card-link:hover {
  background: var(--bg-alt);
}
.card-link p { color: var(--accent); font-weight: 500; }

/* ===== Подвал ===== */
.footer {
  text-align: center;
  padding: 32px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .88rem;
}

/* ===== Адаптив ===== */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav a { font-size: .82rem; }
  .hero h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .header-inner { flex-direction: column; height: auto; padding: 10px 0; gap: 8px; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .section-title { font-size: 1.15rem; }
}