.category-site {
  overflow: hidden;
}

.category-page {
  --category-footer-image: url("./assets/design/common-footer.webp");
}

.category-page[data-category="bathhouse"] {
  --category-hero-image: url("./assets/design/group-87-hero.webp");
}

.category-page[data-category="grill_house"] {
  --category-hero-image: url("./assets/design/group-89-hero.webp");
}

.category-page[data-category="banquet_hall"] {
  --category-hero-image: url("./assets/design/group-92-hero.webp");
}

.category-hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  padding-bottom: 84px;
  color: #fff;
  background: #36403d;
  background-image: linear-gradient(rgba(41, 40, 40, 0.6), rgba(41, 40, 40, 0.6)), var(--category-hero-image, none);
  background-position: center;
  background-size: cover;
}

.category-hero__copy {
  padding-top: 55px;
}

.category-hero h1 {
  max-width: 1100px;
  font-size: clamp(40px, 9vw, 72px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.005em;
}

.category-hero__lead {
  max-width: 510px;
  margin-top: 25px;
  font-size: 19px;
  line-height: 1.2;
}

.category-hero__action {
  margin-top: 28px;
}

.category-hero__copy > * {
  animation: category-enter 600ms both;
}

.category-hero__lead {
  animation-delay: 80ms;
}

.category-hero__action {
  animation-delay: 150ms;
}

.category-gallery {
  position: relative;
  margin-top: 45px;
}

.category-gallery[hidden] {
  display: none;
}

.category-gallery__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.category-gallery__track::-webkit-scrollbar {
  display: none;
}

.category-gallery__photo {
  position: relative;
  flex: 0 0 min(65vw, 273px);
  height: 260px;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
  scroll-snap-align: start;
}

.category-gallery__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.category-gallery__photo:hover img {
  transform: scale(1.035);
}

.category-gallery__photo:focus-visible,
.category-gallery__arrow:focus-visible,
.category-lightbox__close:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 4px;
}

.category-gallery__arrow {
  display: none;
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  font-size: 25px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease;
}

.category-gallery__arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.category-gallery__arrow--previous {
  left: 0;
}

.category-gallery__arrow--next {
  right: 0;
}

.category-results {
  position: relative;
  z-index: 2;
  margin-top: -32px;
  padding-block: 58px 72px;
  border-radius: 32px 32px 0 0;
  background: #fff;
}

.category-results h2 {
  margin-bottom: 44px;
  font-size: clamp(30px, 5.8vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
}

.category-results__list {
  display: grid;
  gap: 24px;
}

.category-card {
  overflow: hidden;
  border: 1px solid #777;
  border-radius: 24px;
  background: #fff;
}

.category-card__media {
  position: relative;
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 23px;
  background: #eeefeb;
}

.category-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__placeholder {
  max-width: 240px;
  padding: 28px;
  color: #5a6258;
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
}

.category-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
}

.category-card h3 {
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.category-card__title:hover {
  color: var(--green);
}

.category-card__title:focus-visible,
.category-card__media:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -4px;
}

.category-card__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.category-card__amenities li {
  padding: 11px 23px;
  border: 1px solid #666;
  border-radius: 24px;
  font-size: 17px;
  line-height: 1.25;
}

.category-card__summary {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 18px;
  color: #4b524a;
  font-size: 17px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-top: 28px;
}

.category-card__price {
  font-size: 18px;
  white-space: nowrap;
}

.category-card__price strong {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.category-card__price small {
  font-size: 18px;
}

.category-card__capacity {
  border-left: 1px solid #555;
  padding-left: 22px;
  font-size: 18px;
  white-space: nowrap;
}

.category-card__capacity strong {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.category-card__select {
  min-width: 136px;
  margin-left: auto;
}

.category-results__more {
  display: flex;
  min-width: 270px;
  margin: 47px auto 0;
  cursor: pointer;
}

.category-results__more[hidden],
.category-results__state[hidden],
.category-results__empty[hidden] {
  display: none;
}

.category-results__state,
.category-results__empty {
  padding: 32px 0;
  color: #4b524a;
  font-size: 19px;
  line-height: 1.5;
  text-align: center;
}

.category-results__state .button {
  margin-top: 18px;
}

.category-results__sync {
  color: #60655f;
  font-size: 14px;
  line-height: 1.5;
}

.category-results__sync:not(:empty) {
  margin-bottom: 24px;
}

.category-map {
  position: relative;
  display: block;
  height: 320px;
  background: #b7b9b8;
}

.category-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-map img:not([src]) {
  visibility: hidden;
}

.category-map:focus-visible {
  outline: 4px solid var(--green);
  outline-offset: -4px;
}

.category-footer {
  background-image: linear-gradient(rgba(41, 40, 40, 0.6), rgba(41, 40, 40, 0.6)), var(--category-footer-image, url("./assets/media/78f9dffb99106b16.webp"));
  background-position: center;
  background-size: cover;
}

.category-lightbox {
  width: min(1100px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100svh - 40px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: #202723;
}

.category-lightbox::backdrop {
  background: rgba(12, 18, 14, 0.88);
}

.category-lightbox__photo {
  width: 100%;
  max-height: calc(100svh - 125px);
  object-fit: contain;
  border-radius: 16px 16px 0 0;
}

.category-lightbox__caption {
  padding: 15px 24px 19px;
  font-size: 16px;
  line-height: 1.4;
}

.category-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(30, 35, 31, 0.8);
  font-size: 29px;
  cursor: pointer;
}

@keyframes category-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .category-card {
    display: grid;
    grid-template-columns: 44.5% 55.5%;
    min-height: 298px;
  }

  .category-card__media {
    height: 100%;
  }

  .category-card__media:not(.category-card__media--empty)::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0.9));
    content: "";
    pointer-events: none;
  }

  .category-card__content {
    padding: 22px 26px 22px 30px;
  }

  .category-card__footer {
    padding-top: 20px;
    margin-top: auto;
  }

  .category-gallery__photo {
    height: 301px;
  }
}

@media (min-width: 1024px) {
  .category-page .site-header {
    grid-template-columns: 133px 1fr 152px;
  }

  .category-page .header-book {
    width: 152px;
    min-width: 152px;
    padding-inline: 0;
  }

  .category-gallery {
    padding-inline: 79px;
  }

  .category-gallery__track {
    gap: 10px;
  }

  .category-gallery__photo {
    flex-basis: calc((100% - 30px) / 4);
  }

  .category-gallery__arrow {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .category-hero {
    height: 851px;
    min-height: 0;
    padding-bottom: 0;
  }

  .category-hero .site-logo {
    width: 133px;
    height: 57px;
  }

  .category-page .site-menu {
    gap: clamp(30px, 3.1vw, 46px);
    margin-right: clamp(30px, 3.1vw, 46px);
  }

  .category-page .site-menu a {
    font-size: 20px;
  }

  .category-hero__copy {
    padding-top: 31px;
  }

  .category-hero h1 {
    font-size: 80px;
    line-height: 86px;
  }

  .category-page[data-category="grill_house"] .category-hero h1 {
    line-height: 83px;
  }

  .category-hero__lead {
    font-size: 25px;
    line-height: 26px;
  }

  .category-page[data-category="bathhouse"] .category-hero__action {
    width: 246px;
  }

  .category-page[data-category="grill_house"] .category-hero__action {
    width: 254px;
  }

  .category-page[data-category="banquet_hall"] .category-hero__action {
    width: 228px;
  }

  .category-gallery {
    position: absolute;
    top: 463px;
    left: 50%;
    width: min(100%, 1440px);
    margin: 0;
    padding-inline: 159px;
    transform: translateX(-50%);
  }

  .category-gallery__track {
    padding: 0;
  }

  .category-gallery__arrow--previous {
    left: 80px;
  }

  .category-gallery__arrow--next {
    right: 80px;
  }

  .category-results {
    margin-top: -52px;
    padding-block: 77px 82px;
  }

  .category-results h2 {
    height: 48px;
    margin-bottom: 51px;
    font-size: 44px;
    line-height: 48px;
  }

  .category-card {
    min-height: 299px;
  }

  .category-card h3 {
    font-size: 32px;
  }

  .category-card__content {
    padding: 16px 27px 16px 31px;
  }

  .category-card__amenities {
    gap: 7px;
    margin-top: 20px;
  }

  .category-card__amenities li {
    padding: 12px 29px;
    font-size: 18px;
  }

  .category-card__price strong,
  .category-card__capacity strong {
    font-size: 32px;
  }

  .category-card__capacity {
    min-height: 46px;
    padding-left: 25px;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .category-card__footer {
    gap: 20px;
  }

  .category-card__select {
    font-size: 18px;
  }

  .category-map {
    height: 463px;
  }

  .category-footer {
    min-height: 472px;
    padding-block: 76px 60px;
  }

  .category-footer .footer-nav {
    margin-left: clamp(40px, calc(53.75vw - 605px), 169px);
  }

  .category-footer address {
    grid-template-columns: max-content max-content max-content;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

@media (max-width: 767px) {
  .category-desktop-break {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-hero__copy > * {
    animation: none;
  }

  .category-gallery__track {
    scroll-behavior: auto;
  }
}
