/* Главная (index): без Bootstrap / Playfair / Метрики — один лёгкий файл */
html,
body {
  margin: 0;
  padding: 0;
}
html {
  background-color: #000;
}
body.page-home {
  background-color: #000;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url(images/storer1-1280.webp);
  min-width: 100%;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 1281px) {
  body.page-home {
    background-image: url(images/storer1.webp);
  }
}
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  body.page-home {
    background-image: image-set(
      url(images/storer1-1280.webp) type("image/webp"),
      url(images/storer1.jpg) type("image/jpeg")
    );
  }
  @media (min-width: 1281px) {
    body.page-home {
      background-image: image-set(
        url(images/storer1.webp) type("image/webp"),
        url(images/storer1.jpg) type("image/jpeg")
      );
    }
  }
}
@media (max-width: 991px) {
  body.page-home {
    background-attachment: scroll;
    overflow-y: auto;
    min-height: 100vh;
  }
}

/* Navbar (замена Bootstrap) */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: #000000d4;
  flex-shrink: 0;
}
.navbar-brand {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}
.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.25rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background: center / 100% 100% no-repeat url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
}
.navbar-collapse:not(.show) {
  display: none;
}
.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.ml-auto {
  margin-left: auto !important;
}
.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
}
.nav-item {
  list-style: none;
}
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
}
@media (max-width: 991px) {
  body.page-home .navbar {
    position: relative;
    flex-wrap: nowrap;
    overflow: visible;
  }
  body.page-home .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background: rgba(0, 0, 0, 0.96);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0 1rem;
  }
  body.page-home .navbar-collapse .nav-link {
    padding: 0.6rem 1rem;
    text-align: right;
  }
}

body.page-home .top-conteiner {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1rem, 4vw, 2.5rem) clamp(0.75rem, 3vw, 1.5rem);
  background-color: #000000c7;
  box-sizing: border-box;
}
.text-top-conteiner {
  padding: 0.5vh 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 42rem;
  max-height: 100%;
  margin: 0 auto;
}
.th {
  margin: 0 0 0.5vh 0;
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.yodyear {
  line-height: 1.4;
  padding-bottom: 1vh;
}
.yodyear h1 {
  margin: 0 0 0.5rem 0;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 0 20px #ffffffa3;
}
.yodyear .logo-main,
.yodyear img {
  max-width: min(18rem, 25vw);
  height: auto;
  margin-top: 0.5rem !important;
}
@media (max-width: 576px) {
  .th {
    font-size: 1rem;
  }
  .yodyear .logo-main,
  .yodyear img {
    max-width: min(18rem, 75vw);
  }
}
body.page-home .yodyear p {
  margin: 0.35rem 0 !important;
  font-size: clamp(0.75rem, 2vw, 1rem);
}
body.page-home .yodyear p:first-of-type {
  margin-top: 0.5rem !important;
}

/* Футер */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}
.site-footer,
footer.site-footer {
  flex-shrink: 0;
  text-align: center;
  color: #fff;
  width: 100%;
  background: rgba(0, 0, 0, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.65rem 0 0.55rem;
}
.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}
.site-footer__privacy {
  margin-top: 0.22rem;
}
.site-footer__link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
}
.site-footer__link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

/* Модалка политики (lite) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none !important;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal.show {
  display: block !important;
  visibility: visible;
  pointer-events: auto;
}
.modal-open {
  overflow: hidden;
}
.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem;
  max-width: 500px;
  pointer-events: none;
}
.modal-dialog-scrollable {
  max-height: calc(100% - 3.5rem);
}
.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 3.5rem);
  overflow: hidden;
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}
@media (min-width: 576px) {
  .modal-dialog {
    margin: 1.75rem auto;
  }
}
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  color: #212529;
  border-radius: 0.3rem;
  outline: 0;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}
.modal-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  padding-right: 1.5rem;
}
.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}
.modal-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}
.modal-body p:last-child {
  margin-bottom: 0;
}
.close {
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: #000;
  opacity: 0.5;
  cursor: pointer;
}
.modal-backdrop,
.modal-backdrop--lite {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background-color: #000;
  opacity: 0.5;
}
