/* edecorus.ru — единые стили (эталон: главная) */
/* Playfair: подключать в HTML — fonts.googleapis.com/css2?family=Playfair+Display&display=swap */

html,
body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: url(images/storer1.webp) no-repeat center;
  background-image: image-set(
    url('images/storer1.webp') type('image/webp'),
    url('images/storer1.jpg') type('image/jpeg')
  );
  min-width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
}

a {
  color: inherit;
}

/* ——— Макет страниц ——— */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrap .top-conteiner {
  flex: 1;
  min-height: 0;
}

body.page-home {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.page-home .navbar,
body.page-site .navbar {
  flex-shrink: 0;
}

body.page-home .top-conteiner {
  flex: 1;
  min-height: 0;
}

body.page-home .site-footer,
body.page-home footer,
body.page-site .site-footer,
body.page-site footer {
  flex-shrink: 0;
}

body.page-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page-site .page-wrap {
  flex: 1 0 auto;
}

/* ——— Навигация ——— */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: #000000d4;
}

.navbar-brand {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.3125rem 0;
}

.navbar-toggler {
  display: none;
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.25rem;
  color: #fff;
  cursor: pointer;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background: no-repeat center center;
  background-size: 100% 100%;
  background-image: 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(255,255,255,0.9)' 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;
  align-items: center;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    justify-content: flex-end;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
    margin-left: auto;
  }
}

@media (max-width: 991px) {
  .navbar-toggler {
    display: inline-block;
  }

  .navbar-collapse:not(.show) {
    display: none;
  }

  body.page-home {
    overflow-y: auto;
    min-height: 100vh;
  }

  .navbar {
    position: relative;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .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;
  }

  .navbar-collapse .nav-link {
    text-align: right;
    padding: 0.6rem 1rem;
  }
}

/* ——— Основной блок контента ——— */
.top-conteiner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: clamp(1rem, 4vw, 2.5rem) clamp(0.75rem, 3vw, 1.5rem);
  background-color: #000000c7;
  box-sizing: border-box;
}

.top-conteiner--wide {
  align-items: flex-start;
}

.text-top-conteiner {
  padding: clamp(1rem, 3vh, 2rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}

body.page-home .text-top-conteiner {
  padding: 0.5vh 0;
  max-height: 100%;
}

.text-top-conteiner > h5,
.top-conteiner > h5 {
  margin: 0 0 0.75rem;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.text-top-conteiner hr,
.top-conteiner hr {
  margin: 1rem auto 1.25rem;
  border: 0;
  height: 1px;
  background-color: rgba(159, 159, 159, 0.5);
  max-width: 200px;
  width: 100%;
}

.th {
  margin: 0 0 0.5vh;
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', Georgia, serif;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.64);
}

h1 {
  margin: 0 0 0.5rem;
}

h2,
h3,
h4 {
  margin-bottom: 0;
}

p {
  margin: 0 0 0.75em;
}

.text-top-conteiner p,
.top-conteiner p {
  margin-bottom: 0.25em;
}

.text-top-conteiner p:last-child,
.top-conteiner p:last-child {
  margin-bottom: 0;
}

/* ——— Главная: логотип ——— */
.yodyear {
  line-height: 1.4;
  padding-bottom: 20px;
}

.yodyear h1 {
  margin: 0 0 0.5rem;
}

body.page-home .yodyear {
  padding-bottom: 1vh;
}

.yodyear .logo-main,
.yodyear img {
  max-width: min(18rem, 25vw);
  height: auto;
  margin-top: 0.5rem !important;
}

@media (max-width: 576px) {
  .yodyear .logo-main,
  .yodyear img {
    max-width: min(18rem, 75vw);
  }
}

.yodyear p {
  margin: 0.5rem 0 !important;
  font-size: clamp(0.75rem, 2vw, 1rem);
}

body.page-home .yodyear p:first-of-type {
  margin-top: 1vh !important;
}

/* ——— Контакты ——— */
.text-top-conteiner .hotline,
.text-top-conteiner .emails,
.text-top-conteiner .sales,
.text-top-conteiner .vacancy,
.text-top-conteiner .contact,
.top-conteiner .hotline,
.top-conteiner .emails,
.top-conteiner .sales,
.top-conteiner .vacancy,
.top-conteiner .contact {
  margin-bottom: 1.5rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.hotline {
  margin: 0 auto;
  line-height: 1.5;
}

.hotline br + a,
.hotline .btn {
  margin-top: 0.5rem;
  display: inline-block;
}

.emails {
  line-height: 1.55;
  text-align: center;
}

.emails a {
  display: inline-block;
  margin-top: 0.15em;
  text-decoration: none;
}

.emails a:hover {
  text-decoration: underline;
}

.sales {
  margin: 0 0 1rem;
  padding: 0;
}

.sales br {
  line-height: 1.6;
}

.emails .sales + .sales {
  margin-top: 1.25rem;
}

.contact {
  margin-top: 0.5rem;
  line-height: 1.5;
}

.contact svg {
  margin-bottom: 0.35rem;
  vertical-align: middle;
}

.contact iframe {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  border-radius: 8px;
  border: 0;
}

.contact hr {
  margin: 1.5rem auto;
}

.social {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}

.social a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
}

.social a:hover {
  opacity: 0.9;
}

.social-label {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.social-logo {
  width: 3rem;
  height: 3rem;
  display: block;
  flex-shrink: 0;
}

.social-logo-max {
  border-radius: 0.65rem;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social a:hover .social-logo-max {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* ——— Вакансии ——— */
.vacancy {
  margin: 0 0 1rem;
  line-height: 1.55;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.top-conteiner > a[href^="mailto"],
.text-top-conteiner > a[href^="mailto"] {
  margin-top: 0.5rem;
  display: inline-block;
}

.vacancy-cta {
  margin: 0.75rem 0 0.5rem !important;
  line-height: 1.5;
  opacity: 0.95;
}

/* ——— Внутренние страницы (QR, не SEO) ——— */
.page-internal__content {
  max-width: 48rem;
}

.page-internal__content h2 {
  margin-top: 0;
}

.page-internal__content h3 {
  margin: 1.25rem 0 1.75rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  font-family: inherit;
  text-shadow: none;
}

.page-internal__content h4 {
  margin: 1rem 0;
  font-size: 1rem;
  font-family: inherit;
  text-shadow: none;
}

.page-internal__section + .page-internal__section {
  margin-top: 1.5rem;
}

.catalog-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

.catalog-photo-stack {
  display: inline-block;
  max-width: min(35rem, 100%);
}

/* ——— 404 ——— */
.page-404 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.page-404__inner {
  text-align: center;
}

.page-404 .h3 {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.64);
}

.page-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ——— Футер ——— */
.site-footer,
footer.site-footer {
  text-align: center;
  color: #fff;
  width: 100%;
  flex-shrink: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.72) 45%,
    rgba(0, 0, 0, 0.35) 75%,
    transparent 100%
  );
  padding: 2rem 0 1.25rem;
  margin-top: auto;
}

.site-footer__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-footer__legal {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.site-footer__rights {
  opacity: 0.88;
}

.site-footer__privacy {
  margin-bottom: 0;
  margin-top: 0.35rem;
}

.site-footer__link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer__link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

/* ——— Кнопки ——— */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0069d9;
  border-color: #0062cc;
  color: #fff;
}

.btn-secondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
}

.btn-outline-light:hover {
  color: #212529;
  background-color: #fff;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-rekvizity {
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-width: 2px;
  transition: all 0.2s ease;
}

.btn-rekvizity:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.btn-copy-req {
  min-width: 140px;
}

/* ——— Модалки ——— */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  overflow: auto;
  background: rgba(0, 0, 0, 0.55);
}

.modal.show {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.75rem 1rem;
}

.modal__dialog {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.modal__dialog--centered {
  margin-top: auto;
  margin-bottom: auto;
}

.modal__dialog--scrollable .modal__body {
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

.modal__content {
  background: #fff;
  color: #212529;
  border-radius: 0.3rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
}

.modal__header,
.modal__body,
.modal__footer {
  padding: 1rem 1.25rem;
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #dee2e6;
}

.modal__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  padding-right: 1.5rem;
  font-family: inherit;
  text-shadow: none;
  color: #212529;
}

.modal__body p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #212529;
  text-shadow: none;
}

.modal__body p:last-child {
  margin-bottom: 0;
}

.modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  border-top: 1px solid #dee2e6;
}

.modal__footer--stack {
  flex-direction: column;
}

.modal__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

body.modal-open {
  overflow: hidden;
}

.req-modal .modal__body {
  font-size: 0.95rem;
  color: #333;
}

.req-modal .req-line {
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ——— Утилиты ——— */
.text-left { text-align: left; }
.text-center { text-align: center; }
.small { font-size: 0.875rem; }
.pl-3 { padding-left: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.icon-inline {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}
