/* Restoration polish layer: fixes missing archived assets and plugin breakage. */
html {
  background: #f4f4f4;
  scroll-padding-top: 84px;
}

body {
  opacity: 1 !important;
  background: #f4f4f4;
}

.cr-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cr-topbar__inner {
  max-width: 1240px;
  height: 72px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 14px;
}

.cr-topbar__meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.cr-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-topbar__item i {
  font-size: 28px;
  width: 22px;
  text-align: center;
  opacity: 0.95;
}

.cr-topbar__phone {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  justify-content: flex-start;
}

.cr-topbar__address {
  justify-content: center;
}

.cr-topbar__hours {
  justify-content: flex-end;
}

.cr-topbar__phone:hover {
  color: #fff;
}

/* Move logo + hamburger into modern topbar */
#logo.cr-logo {
  position: static;
  top: auto;
  left: auto;
  width: 48px;
  height: 48px;
  font-size: 19px;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: none;
}

#menu-button {
  position: static;
  top: auto !important;
  right: auto !important;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#menu-button:hover {
  background: transparent !important;
}

#menu-button .hamburger-box {
  position: relative !important;
  width: 30px !important;
  height: 22px !important;
}

#menu-button .hamburger-inner,
#menu-button .hamburger-inner::before,
#menu-button .hamburger-inner::after {
  width: 30px !important;
  height: 3px !important;
  border-radius: 3px !important;
}

/* Hard-center the icon inside the button */
#menu-button .hamburger-inner {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  margin-top: 0 !important;
  transform: translate(-50%, -50%) !important;
}

#menu-button .hamburger-inner::before {
  top: -9px !important;
}

#menu-button .hamburger-inner::after {
  top: 9px !important;
}

#menu-button.hamburger {
  padding: 0 !important;
}

#menu-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
}

/* Disable legacy header strip styles (topbar replaces it) */
#header-information,
#header-information-bg {
  display: none !important;
}

/* Ensure content clears fixed topbar */
body.ishome .header-flex,
body.ishome .site-header .header-flex {
  padding-top: 132px !important;
}

.site-header {
  position: relative;
  min-height: 680px;
  background-position: center;
  background-size: cover;
  background-color: #111;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

#logo.cr-logo {
  position: fixed;
  top: 8px;
  left: 18px;
  z-index: 12;
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

#logo.cr-logo span {
  transform: translateX(1px);
}

#menu-button {
  position: fixed;
  top: 8px !important;
  right: 18px !important;
  z-index: 30;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.78);
}

#menu-button.hamburger {
  padding: 0 !important;
}

#menu-button .hamburger-box {
  display: block;
  width: 34px;
  height: 24px;
  margin: 0 !important;
}

#menu-button .hamburger-inner,
#menu-button .hamburger-inner::before,
#menu-button .hamburger-inner::after {
  width: 34px;
  height: 4px;
  border-radius: 4px;
}

#menu-button .hamburger-inner {
  top: 50% !important;
  margin-top: -2px !important;
}

.slide-menu {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 25 !important;
  width: min(360px, 86vw) !important;
  padding: 96px 34px 34px !important;
  background: rgba(8, 8, 8, 0.96) !important;
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.42);
  transform: translateX(105%);
  transition: transform 0.22s ease;
}

.slide-menu.is-open {
  transform: translateX(0);
}

.slide-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slide-menu li {
  margin: 0 0 14px;
}

.slide-menu li ul {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.slide-menu a {
  display: inline-block;
  color: #fff !important;
  font-size: 18px;
  line-height: 1.35;
  text-decoration: none;
}

.slide-menu a:hover {
  color: #d7a12b !important;
}

#header-information {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 72px;
  min-height: 72px;
  padding: 0 96px 0 90px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

#header-information::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

#header-information > .container {
  position: relative;
  z-index: 1;
}

#header-information .container,
#header-information .row {
  width: 100%;
  max-width: none;
  height: 72px;
}

#header-information .row {
  display: grid;
  grid-template-columns: 245px minmax(320px, 1fr) 250px;
  align-items: center;
  height: 72px;
  gap: 24px;
  margin: 0 auto;
}

#header-information [class*="col-"],
#header-information #block-clock {
  width: auto !important;
  flex: none !important;
  flex-basis: auto !important;
  max-width: none;
  min-height: 0;
  padding: 0;
}

#header-information #block-phone {
  grid-column: 1;
}

#header-information #block-adress {
  display: block !important;
  grid-column: 2;
  min-width: 0;
}

#header-information #block-clock {
  grid-column: 3;
}

#header-information .inf-wrapper,
#header-information .inf-wapper {
  display: flex;
  min-height: auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

#header-information #block-adress .inf-wrapper {
  gap: 6px;
}

#header-information #block-phone .inf-wrapper {
  justify-content: flex-start;
}

#header-information #block-clock,
#header-information #block-clock .inf-wapper {
  justify-content: flex-end;
}

#header-information p {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
  transform: translateY(1px);
}

#header-information i {
  flex: 0 0 20px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  opacity: 0.9;
  text-align: center;
}

#header-information .phone,
#header-information #block-clock p,
#header-information #block-adress p {
  white-space: nowrap;
}

#header-information-bg {
  display: none !important;
}

.header-flex {
  min-height: 680px;
  padding-top: 90px;
}

/* Ensure hero content clears fixed top bar */
body.ishome .header-flex,
body.ishome .site-header .header-flex {
  padding-top: 132px !important;
}

.color-wrapper-black-header {
  min-height: 680px;
  background: transparent !important;
}

.offer {
  max-width: 600px;
  padding: 46px 0 80px;
}

.offer-title {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.offer-description {
  max-width: 560px;
}

.s-service {
  position: relative;
  z-index: 2;
}

.service-block {
  min-height: 320px;
  background-position: center !important;
  background-size: cover !important;
}

.service-block .color-wrapper {
  display: flex;
  min-height: 320px;
  align-items: stretch;
}

.service-center {
  display: flex;
  width: 100%;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 24px 28px;
  text-align: center;
}

.service-center .h2 {
  min-height: 64px;
  margin: 0 0 14px;
  font-size: 27px;
  line-height: 1.15;
}

.service-center p {
  min-height: 116px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.service-center br {
  display: none;
}

.service-center .button-wrapper {
  margin-top: 18px;
}

.service-center .button,
.button.button-white {
  min-width: 150px;
  padding: 13px 20px 12px !important;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.s-works {
  background-position: center top;
  background-size: cover;
}

.s-works .color-wrapper-white {
  background: rgba(246, 246, 246, 0.94) !important;
  padding: 58px 0 64px;
}

#gallery,
#gallery.coolrool-gallery {
  display: grid !important;
  width: 100% !important;
  height: auto !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 34px auto 0;
  padding: 0;
}

#gallery > img,
#gallery .cr-gallery-item {
  display: block !important;
  width: 100% !important;
  height: 168px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px;
  background: #ddd;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  object-fit: cover;
  opacity: 1 !important;
  filter: none !important;
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#gallery > img:hover,
#gallery .cr-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.ug-gallery-wrapper,
.ug-theme-tiles,
.ug-tile,
.ug-thumb-wrapper,
.ug-thumb-overlay,
.ug-tile-icon {
  background: transparent !important;
}

.cr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.9);
}

.cr-lightbox.is-open {
  display: flex;
}

.cr-lightbox img {
  max-width: min(1120px, 94vw);
  max-height: 86vh;
  border-radius: 12px;
  background: #222;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.cr-lightbox__close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 34px;
  line-height: 38px;
  cursor: pointer;
}

.s-price {
  background-position: center;
  background-size: cover;
}

.price-constriction .color-wrapper-black {
  padding: 64px 0 70px;
  background: rgba(0, 0, 0, 0.72) !important;
}

.price-constriction .price-card-row {
  display: block;
  width: 100%;
  margin: 0;
}

.price-constriction .price-card-grid {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 15px;
}

.price-card {
  min-height: 210px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.74);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  color: #fff;
}

.price-card--compact {
  min-height: 150px;
}

.price-card .h5 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.price-card .value {
  margin: 0 0 12px;
  color: #d7a12b;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
}

.price-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.45;
}

.price-constriction .text-section h5,
.price-constriction .text-section p {
  text-align: left;
}

.s-discount,
footer {
  position: relative;
  z-index: 1;
}

footer#contacts {
  padding: 70px 0 0;
  background: #101010;
  color: rgba(255, 255, 255, 0.78);
}

footer#contacts .footer-content > .row {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1fr) minmax(320px, 1fr);
  grid-template-areas: "brand contacts map";
  gap: 42px;
  align-items: start;
}

footer#contacts [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0;
  order: initial !important;
}

footer#contacts .footer-socials {
  grid-area: brand;
}

footer#contacts .footer-contacts {
  grid-area: contacts;
}

footer#contacts .footer-contacts-wrapper {
  max-width: 360px;
}

footer#contacts .map {
  grid-area: map;
  align-self: start;
}

footer#contacts .footer-name {
  margin: 0 0 12px;
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
}

footer#contacts .footer-disk {
  max-width: 280px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.55;
}

footer#contacts .law-modal {
  display: none !important;
}

footer#contacts .law .trigger {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer#contacts .nav-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

footer#contacts .nav-social a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

footer#contacts .footer-contacts-wrapper .h5 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

footer#contacts .inf-wrapper {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

footer#contacts .inf-wrapper i {
  color: #d7a12b;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}

footer#contacts .inf-wrapper p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.45;
}

footer#contacts .inf-wrapper a {
  color: rgba(255, 255, 255, 0.86) !important;
}

footer#contacts .map iframe {
  width: 100%;
  max-width: none;
  height: 300px;
  border: 0;
  border-radius: 18px;
  filter: grayscale(0.15);
}

footer#contacts .copyright {
  margin-top: 54px;
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 991px) {
  .site-header,
  .header-flex,
  .color-wrapper-black-header {
    min-height: 620px;
  }

  #header-information {
    padding: 104px 22px 18px;
  }

  #header-information .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #header-information .inf-wrapper,
  #header-information .inf-wapper {
    justify-content: center;
  }

  #block-adress {
    display: block !important;
  }

  .header-flex {
    padding-top: 210px;
  }

  .offer {
    padding-top: 12px;
    text-align: center;
  }

  .price-constriction .price-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer#contacts .footer-content > .row {
    grid-template-columns: 1fr 1fr;
  }

  footer#contacts .map {
    grid-column: 1 / -1;
  }

  footer#contacts .map iframe {
    max-width: none;
  }
}

@media (max-width: 575px) {
  #logo.cr-logo {
    top: 18px;
    left: 18px;
    width: 54px;
    height: 54px;
    font-size: 21px;
  }

  #menu-button {
    top: 15px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  #gallery,
  #gallery.coolrool-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #gallery > img,
  #gallery .cr-gallery-item {
    height: 126px !important;
    border-radius: 10px;
  }

  .price-constriction .price-card-grid {
    grid-template-columns: 1fr;
  }

  .price-card,
  .price-card--compact {
    min-height: auto;
    padding: 22px 20px;
  }

  footer#contacts {
    padding-top: 52px;
  }

  footer#contacts .footer-content > .row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
