body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #111; line-height: 1.6; }
header { padding: 80px 24px; background: #FFD600FF; color: #fff; border-radius: 10px; }
.header-container { margin-left: 10% }
section { padding: 72px 24px; max-width: 1100px; margin: 0 auto; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 48px; margin-bottom: 16px; }
h2 { font-size: 36px; margin-bottom: 24px; }
h3 { font-size: 22px; margin-bottom: 12px; }
p { margin-bottom: 16px; }
.muted { color: #555; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { padding: 24px; border-radius: 16px; background: #f8fafc; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.portfolio { background: #FFD600FF; color: #fff; border-radius: 10px; }
.portfolio .card { background: #FFD600FF; border: 1px solid #EDCD0AFF; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.photo { background: #1e293b; border-radius: 12px; height: 180px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 14px; }
footer { padding: 48px 24px; background: #FFD600FF; color: #94a3b8; text-align: center; border-radius: 10px; }

/* Новые стили для горизонтальной галереи */
.horizontal-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 24px;
}
.horizontal-gallery::-webkit-scrollbar {
  height: 8px;
}
.horizontal-gallery::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}
.horizontal-gallery::-webkit-scrollbar-track {
  background: #222;
  border-radius: 4px;
}
.horizontal-gallery .photo {
  flex: 0 0 auto;
  width: 100px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
}
.horizontal-gallery .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Стили для главного фото: адаптивная ширина, сохранение пропорций, максимальная высота */
.current-photo {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  /*border: 1px solid #ccc;*/
  margin-bottom: 10px;
}

/* Стили для раздела контактов */
section.contacts {
  background: #FFD600FF;
  color: #fff;
  padding: 48px 24px;
  max-width: 1100px;
  margin: 0 auto 40px auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
section.contacts h2 {
  font-size: 36px;
  margin-bottom: 24px;
  color: #f8fafc;
}
section.contacts p {
  font-size: 18px;
  margin-bottom: 12px;
}
section.contacts a {
  color: #3b82f6;
  text-decoration: none;
}
section.contacts a:hover {
  text-decoration: underline;
}

/* Подсветка карточек */
.card.highlight {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

/* Анимация заголовков */
.fade-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* CTA кнопка */
.cta-btn {
  margin-top: 24px;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  background: #3b82f6;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.cta-btn:hover {
  background: #2563eb;
}

/* Модальное окно */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-content {
  max-width: 420px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.modal input {
  width: 95%;
  padding: 12px;
  margin: 16px 0;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
}