:root {
  --bg: #F9F7F3;
  --text: #2D2D2D;
  --text-light: #5A5A5A;
  --accent: #C75B39;
  --white: #FFFFFF;
  --border: #E6E2DC;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 { font-family: 'Lora', serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { color: var(--text-light); margin-bottom: 1.2rem; }
.label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}

.container { width: 90%; max-width: 1280px; margin: 0 auto; }
.page-wrapper { overflow: hidden; }

/* Шапка */
.sticky-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(249,247,243,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.header {
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 1.3rem; font-family: 'Lora', serif; }
.brand-sub { font-size: 0.8rem; color: var(--text-light); }
.nav-menu { display: flex; gap: 2rem; }
.nav-link {
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  position: relative; padding: 0.2rem 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

/* Hero с векторным фоном */
.hero {
  position: relative;
  padding: 10rem 5% 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, #F9F7F3 0%, #EFEAE3 100%);
}
.hero-background {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.vector-graphic {
  width: 100%; height: 100%;
  opacity: 0.7;
}
.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.03;
  animation: float 20s infinite alternate ease-in-out;
}
.shape-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: -50px; right: -50px; animation-duration: 25s; }
.shape-3 { width: 150px; height: 150px; top: 20%; right: 10%; background: var(--text); opacity: 0.02; animation-duration: 15s; }
.shape-4 { width: 200px; height: 200px; bottom: 10%; left: 20%; background: #B6A28E; opacity: 0.03; animation-duration: 18s; }

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(50px, 30px) rotate(10deg); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-title { margin-bottom: 1.5rem; color: var(--text); }
.hero-subtitle { font-size: 1.2rem; max-width: 480px; }
.hero-links { display: flex; gap: 1.5rem; margin-top: 2rem; }
.hero-link {
  font-weight: 500; color: var(--accent); border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.hero-link:hover { border-color: var(--accent); }
.portrait {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* ===== About ===== */
.about { padding: 6rem 0; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.about-intro h2 { margin-bottom: 1.5rem; }
.about-list { list-style: none; }
.about-list li {
  display: flex; gap: 1rem; margin-bottom: 1rem;
  align-items: baseline;
}
.bullet {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; flex-shrink: 0; margin-top: 0.6rem;
}

/* ===== Логотипы ===== */
.logos { padding: 3rem 0; overflow: hidden; }
.logo-track {
  display: flex; gap: 4rem; width: max-content;
  animation: scroll 30s linear infinite;
}
.logo-track img {
  height: auto;
  width: 8rem;
  max-width: 120px;
  opacity: 0.8;
  transition: opacity var(--transition);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Проекты ===== */
.projects { padding: 6rem 0; }
.project-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem; margin-top: 3rem;
}
.project-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.project-image img { width: 100%; height: 250px; object-fit: cover; }
.project-content { padding: 1.8rem; }
.project-content h3 { margin-bottom: 0.8rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.project-tags span {
  background: var(--bg); padding: 0.3rem 0.8rem;
  border-radius: 20px; font-size: 0.75rem; font-weight: 500;
}
.project-link {
  display: inline-block; margin-top: 0.8rem;
  font-weight: 600; color: var(--accent); transition: color var(--transition);
}
.project-link:hover { color: var(--text); }

/* ===== Подвал ===== */
.footer {
  text-align: center; padding: 3rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-light);
}
.heart-icon { width: 30px; margin: 0.5rem auto 0; }

/* ===== Адаптив ===== */
@media (max-width: 768px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 8rem; }
  .project-grid { grid-template-columns: 1fr; }
}

/* Скрываем системный курсор */
body {
  cursor: none;
}

/* Кастомный курсор */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;                     /* стало заметнее */
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, opacity 0.25s, background 0.25s;
}

/* При наведении на ссылки и кнопки */
.cursor.hover {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid var(--accent);
  opacity: 1;
}

/* Canvas для сетки */
#hero-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Секции */
.section-block {
  padding: 6rem 0;
}
.section-block:nth-child(even) {
  background: #fff;
}

/* Сетки */
.thinking-grid,
.areas-grid,
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: transform var(--transition);
}
.card:hover {
  transform: translateY(-4px);
}
.card h3 {
  margin-bottom: 0.8rem;
}

/* Работы */
.work-list {
  margin-top: 3rem;
}
.work-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.work-item:last-child {
  border-bottom: none;
}
.work-item h3 {
  margin-bottom: 0.5rem;
}

/* Мета-информация */
.meta {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 2rem;
}