:root {
  --hc-logo-accent: #efc095;
}

.hc-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100000000000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 16px;
  border: 1px solid rgba(37, 211, 102, .86);
  border-radius: 999px;
  background: rgba(6, 16, 10, .46);
  color: #25d366 !important;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .26), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hc-whatsapp-float:hover,
.hc-whatsapp-float:focus {
  background: #1ebe5d;
  color: #fff !important;
  border-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .42);
  outline: none;
}

.hc-whatsapp-float:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .9);
  outline-offset: 3px;
}

.hc-whatsapp-float__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: block;
  color: currentColor;
}

.hc-whatsapp-float__text {
  white-space: nowrap;
}

#contacts .socs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 14px auto 10px;
}

#contacts .socs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(239, 192, 149, .82);
  border-radius: 50%;
  background: rgba(10, 8, 7, .24);
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

#contacts .socs a:hover,
#contacts .socs a:focus {
  border-color: #efc095;
  background: rgba(239, 192, 149, .1);
  transform: translateY(-1px);
}

#contacts .socs a img {
  display: none;
}

#contacts .socs a::before {
  content: "";
  width: 25px;
  height: 25px;
  background: var(--hc-logo-accent);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: transform .18s ease;
}

#contacts .socs a[href*="twitter.com"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M22 5.9c-.7.3-1.5.5-2.3.6.8-.5 1.4-1.2 1.7-2.2-.8.5-1.7.8-2.6 1A4.1 4.1 0 0 0 11.7 8c0 .3 0 .6.1.9A11.6 11.6 0 0 1 3.4 4.6a4.1 4.1 0 0 0 1.3 5.5c-.7 0-1.3-.2-1.9-.5v.1c0 2 1.4 3.6 3.2 4-.4.1-.8.2-1.2.2-.3 0-.6 0-.8-.1.6 1.7 2.1 2.9 3.9 2.9A8.3 8.3 0 0 1 2 18.3 11.7 11.7 0 0 0 8.3 20c7.6 0 11.8-6.3 11.8-11.8v-.5c.8-.5 1.4-1.2 1.9-1.8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M22 5.9c-.7.3-1.5.5-2.3.6.8-.5 1.4-1.2 1.7-2.2-.8.5-1.7.8-2.6 1A4.1 4.1 0 0 0 11.7 8c0 .3 0 .6.1.9A11.6 11.6 0 0 1 3.4 4.6a4.1 4.1 0 0 0 1.3 5.5c-.7 0-1.3-.2-1.9-.5v.1c0 2 1.4 3.6 3.2 4-.4.1-.8.2-1.2.2-.3 0-.6 0-.8-.1.6 1.7 2.1 2.9 3.9 2.9A8.3 8.3 0 0 1 2 18.3 11.7 11.7 0 0 0 8.3 20c7.6 0 11.8-6.3 11.8-11.8v-.5c.8-.5 1.4-1.2 1.9-1.8z'/%3E%3C/svg%3E");
}

#contacts .socs a[href*="instagram.com"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='4' y='4' width='16' height='16' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/g%3E%3Ccircle cx='17.5' cy='6.5' r='1.5' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='4' y='4' width='16' height='16' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/g%3E%3Ccircle cx='17.5' cy='6.5' r='1.5' fill='black'/%3E%3C/svg%3E");
}

#contacts .socs a[href*="facebook.com"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14.7 8.2V6.6c0-.8.5-1 1-1h2.2V2.1L14.8 2C11.4 2 10 4.1 10 6v2.2H7.4V12H10v10h4.1V12h3.1l.5-3.8h-3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14.7 8.2V6.6c0-.8.5-1 1-1h2.2V2.1L14.8 2C11.4 2 10 4.1 10 6v2.2H7.4V12H10v10h4.1V12h3.1l.5-3.8h-3z'/%3E%3C/svg%3E");
}

#contacts .socs a[href*="vk.com"]::before {
  width: 27px;
  height: 27px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill='black' d='M15.7 20.2h-1.5C8.9 20.2 5.9 16.6 5.8 10.5h2.7c.1 4.5 2.1 6.4 3.6 6.8v-6.8h2.6v3.9c1.5-.2 3-1.9 3.5-3.9h2.6c-.4 2.4-2.2 4.2-3.5 4.9 1.3.6 3.4 2.2 4.2 4.8h-2.9c-.6-1.9-1.9-3.3-3.4-3.5v3.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill='black' d='M15.7 20.2h-1.5C8.9 20.2 5.9 16.6 5.8 10.5h2.7c.1 4.5 2.1 6.4 3.6 6.8v-6.8h2.6v3.9c1.5-.2 3-1.9 3.5-3.9h2.6c-.4 2.4-2.2 4.2-3.5 4.9 1.3.6 3.4 2.2 4.2 4.8h-2.9c-.6-1.9-1.9-3.3-3.4-3.5v3.5z'/%3E%3C/svg%3E");
}

#contacts .socs a:hover::before,
#contacts .socs a:focus::before {
  transform: scale(1.06);
}

#contacts .socs a:hover img,
#contacts .socs a:focus img {
  transform: none;
}

#contacts #form3 input[type="text"],
#contacts #form3 textarea {
  border: 1px solid rgba(239, 192, 149, .58);
  border-radius: 12px;
  background: rgba(10, 9, 8, .64);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14) inset;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#contacts #form3 input[type="text"]::placeholder,
#contacts #form3 textarea::placeholder {
  color: rgba(255, 255, 255, .66);
}

#contacts #form3 input[type="text"]:focus,
#contacts #form3 textarea:focus {
  border-color: #efc095;
  background: rgba(10, 9, 8, .78);
  box-shadow: 0 0 0 3px rgba(239, 192, 149, .16), 0 8px 20px rgba(0, 0, 0, .16) inset;
}

#contacts #form3 input[type="submit"] {
  border: 1px solid rgba(239, 192, 149, .78);
  border-radius: 999px;
  background: rgba(16, 12, 10, .58);
  color: #efc095;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

#contacts #form3 input[type="submit"]:hover,
#contacts #form3 input[type="submit"]:focus {
  background: #efc095;
  color: #15100d;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .26);
}

@media screen and (max-width: 500px) {
  #slidercont,
  #slidercont .vertcont {
    height: auto !important;
    min-height: 0 !important;
  }

  .owl-carousel,
  .owl-carousel .owl-stage-outer,
  .owl-carousel .owl-stage {
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
  }

  .owl-carousel.hc-carousel-arrow-only,
  .owl-carousel.hc-carousel-arrow-only .owl-stage-outer,
  .owl-carousel.hc-carousel-arrow-only .owl-stage {
    touch-action: pan-y;
    -ms-touch-action: pan-y;
  }

  .owl-carousel .owl-stage {
    width: 100% !important;
  }

  .owl-carousel .owl-item {
    display: none !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .owl-carousel .owl-item.active {
    display: block !important;
  }

  .owl-carousel .owl-item.cloned:not(.active) {
    display: none !important;
  }

  .owl-carousel .owl-dots {
    display: none !important;
  }

  .owl-carousel .owl-nav {
    display: block !important;
    pointer-events: none;
  }

  .owl-carousel .owl-nav.disabled {
    display: none !important;
  }

  .owl-carousel .owl-prev,
  .owl-carousel .owl-next {
    top: 50% !important;
    width: 30px !important;
    height: 40px !important;
    opacity: .32 !important;
    z-index: 20;
    pointer-events: auto;
    filter: none;
  }

  .owl-carousel .owl-prev {
    left: -4px !important;
    transform: translateY(-50%) rotate(180deg) !important;
  }

  .owl-carousel .owl-next {
    right: -4px !important;
    transform: translateY(-50%) !important;
  }

  .owl-carousel .content-box {
    width: 100% !important;
  }

  .fon .shad {
    min-height: 0 !important;
  }

  #services .shad,
  #tools .shad {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hc-whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 54px;
    width: 54px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .hc-whatsapp-float__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media screen and (max-width: 750px) and (min-width: 500px) and (max-height: 450px) {
  #slidercont,
  #slidercont .vertcont,
  .owl-carousel,
  .owl-carousel .owl-stage-outer,
  .owl-carousel .owl-stage {
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
  }

  .owl-carousel .owl-stage {
    width: 100% !important;
  }

  .owl-carousel.hc-carousel-arrow-only,
  .owl-carousel.hc-carousel-arrow-only .owl-stage-outer,
  .owl-carousel.hc-carousel-arrow-only .owl-stage {
    touch-action: pan-y;
    -ms-touch-action: pan-y;
  }

  .owl-carousel .owl-item {
    display: none !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .owl-carousel .owl-item.active {
    display: block !important;
  }

  .owl-carousel .owl-item.cloned:not(.active),
  .owl-carousel .owl-dots {
    display: none !important;
  }

  .owl-carousel .owl-nav {
    display: block !important;
    pointer-events: none;
  }

  .owl-carousel .owl-nav.disabled {
    display: none !important;
  }

  .owl-carousel .owl-prev,
  .owl-carousel .owl-next {
    top: 50% !important;
    width: 30px !important;
    height: 40px !important;
    opacity: .32 !important;
    z-index: 20;
    pointer-events: auto;
    filter: none;
  }

  .owl-carousel .owl-prev {
    left: -4px !important;
    transform: translateY(-50%) rotate(180deg) !important;
  }

  .owl-carousel .owl-next {
    right: -4px !important;
    transform: translateY(-50%) !important;
  }
}

@media screen and (max-width: 500px) {
  #header {
    min-height: 214px;
    padding: 16px;
  }

  #header #logo {
    width: 192px;
    max-width: calc(100% - 74px);
  }

  #header .conts {
    position: absolute !important;
    left: 16px;
    right: 16px;
    top: 82px;
    width: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 0;
  }

  #header .conts p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    width: 100%;
    margin: 0 !important;
    padding: 0 12px;
    border: 1px solid rgba(239, 192, 149, .68);
    border-radius: 999px;
    background: rgba(9, 8, 7, .34);
    color: #efc095;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  #header .conts p img {
    width: 18px;
    top: 0;
    margin-right: 7px;
  }

  #header .conts p:hover,
  #header .conts p:focus {
    background: rgba(239, 192, 149, .14);
    outline: none;
  }

  #header .askme {
    position: absolute !important;
    top: 164px !important;
    left: 16px !important;
    right: 16px !important;
    width: auto;
    margin: 0 !important;
  }

  #header .askme .modal-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    border-width: 1px;
    border-radius: 999px;
    background: rgba(9, 8, 7, .34);
    color: #efc095;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  #header .askme .modal-trigger:hover,
  #header .askme .modal-trigger:focus {
    background: rgba(239, 192, 149, .14);
  }

  #header .conts p:focus-visible,
  #header .askme .modal-trigger:focus-visible {
    outline: 2px solid rgba(239, 192, 149, .9);
    outline-offset: 3px;
  }

  .main.onepage-wrapper {
    margin-top: -214px;
  }

  #homepage,
  #homepage .shad {
    min-height: 100svh !important;
  }

  #homepage .shad {
    display: flex;
    align-items: center;
    padding: 228px 20px 84px !important;
  }

  #homepage .shad .content-box {
    max-width: 100%;
    margin: 0 auto;
  }

  #homepage .shad .content-box .title {
    margin-bottom: 26px;
    font-size: 22px;
    line-height: 1.28;
    letter-spacing: .02em;
  }

  #homepage .shad .content-box p {
    max-width: 34rem;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
  }

  .fon .shad {
    padding: 46px 20px 54px !important;
  }

  .fon .shad .content-box .title {
    margin-bottom: 24px;
  }

  .fon .shad .content-box p,
  .fon .shad .content-box ul {
    line-height: 1.65;
  }

  .hc-whatsapp-float {
    background: rgba(6, 16, 10, .34);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  }

  #katalog {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #katalog .shad {
    height: auto !important;
    min-height: 0 !important;
    padding: 76px 16px 56px !important;
    overflow: visible !important;
  }

  #katalog .content-box {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 24px !important;
  }

  #katalog .content-box .title {
    margin: 0 !important;
    font-size: 21px !important;
    line-height: 1.25 !important;
    letter-spacing: .02em !important;
    text-align: center;
  }

  #katalog #arrows,
  #katalog #scrolling {
    display: none !important;
  }

  #katalog .leftscroll {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    transform: none !important;
    transition: none !important;
  }

  #katalog .leftscroll .kartochka,
  #katalog .leftscroll .kartochka:first-of-type {
    position: relative !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1.18;
    overflow: hidden;
  }

  #katalog .leftscroll .kartochka img {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    object-fit: cover;
    transform: none !important;
  }

  #katalog .leftscroll .kartochka a.kart p:first-of-type {
    top: 18% !important;
    padding: 0 8px;
    font-size: 15px !important;
    line-height: 1.18 !important;
  }

  #katalog .leftscroll .kartochka a.kart svg {
    top: 45% !important;
    width: 58px !important;
    height: 58px !important;
  }

  #katalog .leftscroll .kartochka a.kart svg path {
    fill: #efc095 !important;
  }

  #katalog .leftscroll .kartochka a.kart p:last-of-type {
    top: 78% !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
  }
}

@media screen and (max-width: 350px) {
  #katalog .leftscroll {
    grid-template-columns: 1fr;
  }

  #katalog .leftscroll .kartochka,
  #katalog .leftscroll .kartochka:first-of-type {
    aspect-ratio: 1 / .78;
  }
}
