html, body {
  height: 100%;
  margin: 0;
  background-color: #f5f3ef;
  font-family: Inter, sans-serif;
  color: #222;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  padding-bottom: 20px;
  box-sizing: border-box;
}

.container{
  width: calc(100% - 200px);
  margin: 0 auto;
}

main.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-self: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  cursor: default;
}

.lightbox-arrow,
.lightbox-close {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.lightbox-arrow:hover,
.lightbox-close:hover {
  opacity: 1;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  font-weight: 100;
}

.lightbox-arrow:hover {
  opacity: 1;
}

.lightbox-arrow.disabled {
  opacity: 0.2;
  pointer-events: none;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 32px;
  font-weight: 300;
}

/* Шапка */
.header{
  margin-bottom: 20px;
}

.header-inner{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.logo {
  display: flex;
  align-items: flex-end;
}

.logo img{
  height: 100px;
  display: block;
}

.menu {
  align-self: flex-start;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 100px;
}

.menu a{
  font-family: 'Golos Text', sans-serif;
  font-size: 15px;
  font-weight: 400; /* Regular */
  text-transform: uppercase;
  letter-spacing: 0.08em;

  text-decoration: none;
  color: #333;
}

.menu a:hover{
  opacity:0.6;
}

/* Галерея */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.photo {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.photo img{
  width: 100%;
  display: block;
  transition: filter 0.3s ease;
  border-radius: 4px;
}

/* мягкое затемнение */
.photo:hover img {
  filter: brightness(0.9);
}

.photo:hover::after {
  background: rgba(0, 0, 0, 0.05);
}

/* PAGINATION */

.pagination{
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination a {
  text-decoration: none;
  color: #000;
}

.pages{
  display: flex;
  gap: 12px;
  margin-left: 20px;
}

.pages a {
  text-decoration: none;
  color: #000;
}

.pages a.active{
  font-weight: bold;
}

/* ADAPTIVE */

@media (max-width:1200px){

.gallery{
  grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width:900px){

.container {
  width: calc(100% - 80px);
}

.menu {
  gap: 40px;
}

.gallery{
  grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 600px) {
.container {
  width: calc(100% - 32px);
}

.header-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.menu {
  display: flex;  
  flex-wrap: wrap;
  gap: 12px 20px;
}

.gallery {
  grid-template-columns: 1fr;
}
.logo img {
  height: 72px;
}

.pagination {
  flex-wrap: wrap;
}

.pages {
  margin-left: 0;
}
}

.equipment-item img {
  width: 300px;
  height: auto;
}
