body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'SF Pro Display', 'SF Pro Text', 'San Francisco', 'Segoe UI', 'Arial', sans-serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 32px 40px;
}

.page-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 32px 0;
  z-index: 2;
  gap: 14px;
}

.page-title {
  font-size: 18px;
  color: #666;
  font-weight: normal;
  margin: 0;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
}

.name {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.4;
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.about-text li {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Фото-сетка */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
  margin-top: 2rem;
}

.photo-item {
  position: relative;
  overflow: hidden;
  height: 850px;
}

.photo-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.096);
  transition: background 0.6s ease;
}

.photo-item:hover::after {
  background: rgba(0, 0, 0, 0.3);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Стили для кнопки "Назад" */
.flip-link {
  position: relative;
  color: #111;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.flip-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: #111;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.flip-link:hover {
  color: #3a5aff;
}

.flip-link:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

@media (max-width: 1200px) {
  .container {
    padding: 0 16px 20px;
  }
  
  .page-header {
    padding: 16px 0;
  }
  
  .name {
    font-size: 1.5rem;
  }
  
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-item {
    height: 600px;
  }
}


@media (max-width: 650px) {
  .container {
    padding: 0 12px 16px;
  }
  
  .name {
    font-size: 1.25rem;
  }
  
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-item {
    height: 400px;
  }
} 
