:root {
  --bg: #111211;
  --panel: #1a1c1a;
  --cream: #e9e2d5;
  --muted: #96958e;
  --orange: #f2c230;
  --line: rgba(233, 226, 213, .16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

.page {
  padding: 30px 6vw 90px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.logo {
  font-weight: 700;
  letter-spacing: -.04em;
  font-size: 18px;
}

.logo span {
  color: var(--orange);
}

.back {
  color: var(--orange);
  font-size: 13px;
  transition: opacity .3s;
}

.back:hover {
  opacity: .7;
}

.hero {
  padding: 100px 0 60px;
  max-width: 900px;
}

.eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11px;
  font-weight: bold;
}

.hero h1 {
  font-size: clamp(52px, 9vw, 125px);
  line-height: .86;
  letter-spacing: -.09em;
  margin: 24px 0;
}

.hero p {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 38px;
  border-bottom: 1px solid var(--line);
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  padding: 13px 18px;
  font-size: 12px;
  transition: all .3s;
}

.filter.active,
.filter:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--bg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 35px;
}

.card {
  background: var(--panel);
  border: 1px solid transparent;
  transition: transform .3s, border-color .3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
}

.card img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card h2 {
  font-size: 23px;
  letter-spacing: -.04em;
  margin: 0 0 12px 0;
}

.card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 20px 0;
}

.more {
  display: inline-block;
  color: var(--orange);
  font-size: 12px;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 5px;
  transition: opacity .3s;
}

.more:hover {
  opacity: .7;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, .8);
  padding: 25px;
  place-items: center;
}

.modal.open {
  display: grid;
}

.box {
  position: relative;
  width: min(900px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--panel);
}

.box img {
  width: 100%;
  height: min(52vh, 460px);
  object-fit: cover;
  display: block;
}

.content {
  padding: 28px;
}

.content h2 {
  font-size: clamp(35px, 6vw, 75px);
  line-height: .9;
  letter-spacing: -.08em;
  margin: 15px 0 20px;
}

.content p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 650px;
  font-size: 14px;
}

.close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, .65);
  color: white;
  border: 1px solid white;
  font-size: 24px;
  cursor: pointer;
  transition: background .3s;
}

.close:hover {
  background: rgba(0, 0, 0, .9);
}

.cta {
  display: inline-block;
  margin-top: 18px;
  padding: 15px 20px;
  border: 1px solid var(--orange);
  color: white;
  font-size: 13px;
  transition: all .3s;
}

.cta:hover {
  background: var(--orange);
  color: var(--bg);
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .page {
    padding: 20px 18px 60px;
  }
  
  .top {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .card img {
    height: 280px;
  }
  
  .hero {
    padding: 70px 0 40px;
  }
}

/* Галерея без подписей: карточки содержат только фотографии. */
.card { overflow: hidden; }
.card img { display: block; width: 100%; height: 100%; object-fit: cover; }
