/* Общие стили */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}

.smart-video--short::-webkit-media-controls {
  display: none !important;
}

.smart-video--short::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Critical: prevent browser hover overlays (PiP, etc.) on short loop videos */
.image-block .smart-video--short {
  pointer-events: none;
}

/* Fonts (needed for index page overlays / hamburger results) */
@font-face {
  font-family: "HelveticaNeueCyr Bold";
  src: url("../fonts/HelveticaNeueCyr-Bold.woff2") format("woff2"),
    url("../fonts/HelveticaNeueCyr-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FuturaPTBook";
  src: url("../fonts/FuturaPTBook.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FuturaPTHeavy";
  src: url("../fonts/FuturaPTHeavy.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: #333333;
  z-index: -2;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

.header {
  height: 90px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 0 30px;
}

.logo {
  display: flex;
  margin: 0;
  padding: 0;
  height: 30px;
  cursor: pointer;
}

.logo img {
  transition: transform 0.75s ease-in-out;
}

.logo img:hover {
  transform: scale(1.1);
}

.navbar {
  display: flex;
  justify-content: center;
  color: #cccccc;
  padding: 15px;
  justify-self: center;
}

/* Wide screens (3 tiles layout): navbar pinned to page center */
@media (min-width: 1025px) {
  .navbar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-self: auto;
  }
}

.button {
  margin: 0px 20px;
  text-align: center;
  font-family: "FuturaPTBook", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.75s ease-in-out;
  text-decoration: none;
  color: #cccccc;
}

.button:hover {
  transform: scale(1.25);
  font-family: "FuturaPTHeavy", sans-serif;
  font-weight: 700;
}

/* Стили для меню */
.menu img {
  filter: invert(80%) sepia(10%) saturate(0%) hue-rotate(180deg) brightness(95%);
  height: 14px;
  margin-right: 0;
  cursor: pointer;
  transition: transform 0.75s ease-in-out;
}

.menu img:hover {
  transform: scale(1.25);
}

.menu {
  justify-self: end;
  display: flex;
  align-items: center;
}

.pic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
}

.pic img {
  object-fit: contain;
  width: auto;
  height: calc(100vh - 390px); /* Высота с учётом отступов */
  max-width: 100%;
  max-height: calc(100vh - 390px);
}

.fade-in {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.fade-out {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.left,
.right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.left {
  left: 30px;
}

.right {
  right: 30px;
}

.left img,
.right img {
  height: 30px;
  filter: invert(80%) sepia(10%) saturate(0%) hue-rotate(180deg) brightness(95%);
  opacity: 0.5;
  transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}

.left img:hover,
.right img:hover {
  opacity: 1;
  transform: scale(1.2);
}

.footer {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer a {
  margin: 0 8px;
}

.footer img {
  width: 20px;
  filter: invert(80%) sepia(10%) saturate(0%) hue-rotate(180deg) brightness(95%);
  opacity: 0.25;
  transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}

.footer img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.indicators {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #cccccc;
  margin: 0 8px;
  opacity: 0.25;
  cursor: pointer;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.dot.active {
  opacity: 0.5;
}

.dot:hover {
  opacity: 0.75;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .navbar {
    padding: 0;
  }

  .header {
    padding: 0 20px;
  }
}

/* === Hamburger panel (global) === */

.hamburger-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: transparent;
  display: none;
}

.hamburger-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 2000;
  display: none;
  background: rgba(51, 51, 51, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

body.hamburger-open .hamburger-backdrop,
body.hamburger-open .hamburger-panel {
  display: block;
}

body.hamburger-open .menu {
  visibility: hidden; /* keeps layout, hides icon */
}

.hamburger-panel__header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 30px;
  box-sizing: border-box;
}

.hamburger-search {
  position: relative;
  height: 20px;
  flex: 1 1 auto;
  max-width: 100%;
}

.hamburger-search__input {
  width: 100%;
  height: 20px;
  border: none;
  outline: none;
  box-sizing: border-box;
  border-radius: 10px;
  background: rgba(51, 51, 51, 0.15);
  padding: 0 28px 0 10px; /* room for icon on right */
  font-family: "FuturaPTBook", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: rgba(51, 51, 51, 0.9);
}

.hamburger-search__input::placeholder {
  color: rgba(51, 51, 51, 0.5);
}

.hamburger-search__icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  opacity: 0.75;
  filter: invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(81%);
  pointer-events: none;
}

.hamburger-close {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  cursor: pointer;
  opacity: 0.75;
  transition: transform 0.25s ease;
  filter: invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(81%);
}

.hamburger-close:hover {
  transform: scale(1.2);
}

.hamburger-panel__content {
  box-sizing: border-box;
  padding: 0 30px 40px;
  max-height: calc(100vh - 90px);
  overflow: auto;
}

.hamburger-links {
  margin-top: 0; /* aligned to header bottom (panel content starts right after header) */
  display: none;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hamburger-links a {
  font-family: "FuturaPTBook", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(51, 51, 51, 0.9);
  transition: transform 0.75s ease-in-out;
  display: inline-block;
  width: fit-content;
  transform-origin: left center;
  font-weight: 400;
}

.hamburger-links a:hover {
  transform: scale(1.25);
  font-family: "FuturaPTHeavy", sans-serif;
  font-weight: 700;
}

.hamburger-results {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hamburger-result {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hamburger-result__image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.hamburger-result__title {
  margin-top: 10px;
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #333333;
}

/* Index page (dark background): invert hamburger panel palette */
body.page--dark .hamburger-panel {
  background: rgba(217, 217, 217, 0.2);
}

body.page--dark .hamburger-search__input {
  background: rgba(217, 217, 217, 0.15);
  color: rgba(217, 217, 217, 0.9);
}

body.page--dark .hamburger-search__input::placeholder {
  color: rgba(217, 217, 217, 0.6);
}

body.page--dark .hamburger-search__icon,
body.page--dark .hamburger-close {
  filter: invert(90%) sepia(10%) saturate(0%) hue-rotate(180deg) brightness(95%);
}

body.page--dark .hamburger-links a {
  color: rgba(217, 217, 217, 0.9);
}

body.page--dark .hamburger-result__title {
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-weight: 700;
  color: rgba(217, 217, 217, 0.95);
}
