@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  opacity: 1;
  transition: opacity 2s ease;
}

.modal-content {
  text-align: center;
  position: relative;
  z-index: 10;
  transition: opacity 2s ease;
}

.modal-content.fade-out {
  opacity: 0;
}

.intro-logo {
  max-width: 270px;
  transition: opacity 2s ease;
  margin-right: 2rem;
}

@media (max-width: 600px) {
  .intro-logo {
    max-width: 220px;
  }
}

.intro-text {
  font-family: 'Pacifico', cursive;
  font-size: 40px;
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  color: black;
  transition: opacity 2s ease;
}

.letter {
  display: inline-block;
  font-size: 42px;
  transition: transform 0.3s, color 0.3s;
  width: 2rem;
}
.letter:first-child {
  width: 3rem;
}

/* Шатание и цвет */
@keyframes shakeAndColor {
  0% { transform: translate(0, 0) rotate(0deg); color: black; }
  25% { transform: translate(-2px, 1px) rotate(-2deg); color: #4a2f1f; }
  50% { transform: translate(2px, -2px) rotate(2deg); color: #000; }
  75% { transform: translate(-1px, 2px) rotate(-1deg); color: #4a2f1f; }
  100% { transform: translate(1px, -1px) rotate(1deg); color: black; }
}

/* Разлет букв */
@keyframes explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(720deg) scale(0.1);
    opacity: 0;
  }
}

/* Вспышка */
.flash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00ff00 0%, transparent 80%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0.5;
  pointer-events: none;
  z-index: 20;
  transition: transform 0.4s ease-out, opacity 1s;
}

.flash.show {
  transform: translate(-50%, -50%) scale(2.2);
  opacity: 0;
}






  .skiptranslate {
    display: none !important;
  }
  .VIpgJd-ZVi9od-ORHb-OEVmcd{
    display: none !important;
  }

  /* Полностью скрываем фрейм Google Translate */
  .goog-te-banner-frame.skiptranslate {
    display: none !important;
  }

  /* Убираем отступ сверху, который появляется из-за баннера */
  body {
    top: 0px !important;
  }

  /* Убираем панель вверху страницы */
  .goog-te-gadget {
    display: none !important;
  }

  #goog-gt-tt, .goog-te-balloon-frame, .goog-text-highlight {
    display: none !important;
  }

  .goog-tooltip {
    display: none !important;
  }

  .goog-tooltip:hover {
    display: none !important;
  }

  iframe[style*="z-index: 999999"] {
    display: none !important;
  }


    .eng-log-block{
        display: flex;
        align-items: center;
    }


    body {
      margin: 0;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: #fbf8f5;
    }

    .logo img {
      width: 160px; /* Задайте ширину логотипа */
      height: auto; /* Автоматическая высота для сохранения пропорций */
      margin-right: 1rem;
    }

    header {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row;
}
#google_translate_element {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

    .logo {
      font-size: 24px;
      font-weight: bold;
      color: #ffffff;
      letter-spacing: 1px;
    }


    .language-selector {
  position: relative;
  margin-left: 20px;
}

.lang-btn {
  background-color: #fdf7f1;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  height: 56px;
  width: 176px;
  border-radius: 6px;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 6px;
  margin-right: 1rem;
}

.lang-btn .arrow {
  font-size: 12px;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 55px;
  left: 9px;
  background-color: #fdf7f1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 5px 0;
  z-index: 1000;
  width: 160px;
}

.lang-menu button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 20px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: background 0.3s;
}

.lang-menu button:hover {
  background-color: #d6ffc6;
}




    nav {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }



    .contacts {
      display: flex;
      flex-direction: row;
      align-items: center;
      font-size: 15px;
      justify-content: flex-end;
      align-content: center;
      margin-left: 7rem;
    }

    .phone-number {
      text-decoration: none;
      font-size: 35px;
      font-weight: 600;
      margin-right: 15px;
    }

    .phone-number .prefix {
      color: #000000;
      font-weight: 600;
    }

    .phone-number .rest {
      color: #d6b9ab;
    }


    .contacts span {
      margin: 2px 0;
    }

    .stik-up {
      width: 1px;
      height: 50px;
      background-color: #d6b9ab75;
      margin: 0 10px;
    }
    .sheldaut-worker{
      margin-right: 20px;
    }



    .nav-jmc {
    background-color: #fdf7f1;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    }
    .nav-jmc a {
      color: #6d6d6b;
      text-decoration: none;
      font-size: 16px;
      transition: color 0.3s ease;
    }

    .nav-jmc a:hover {
      color: #13a500; /* красный акцент */
    }

    .appointment-button {
    line-height: 52px;
    border-radius: 5px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #50AB38;
    border: 1px solid #50AB38;
    text-decoration: none;
    transition: all .3s;
    margin: 0;
    padding: 0 35px;
    white-space: nowrap;
    box-sizing: border-box;
}

    .appointment-button:hover {
      background-color: #3d9624;
    }

    .content {
      padding: 40px;
    }

    .cirkul {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #826c63;
  border-radius: 50%;
  background-color: #fdf7f1;
  color: #826c63;
  margin-left: 5px;
}

.arrow-img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lang-btn.open .arrow-img {
  transform: rotate(180deg);
}


.search-container {
  position: relative;
  width: 300px;
}

#productSearch {
  width: 360px;
  padding: 15px 16px 15px 40px;
  font-size: 16px;
  border: 1px solid #a28b83;
  border-radius: 8px;
  color: #513e38;
  background: #fff url('/media/icons/serch.png') no-repeat 12px center;
  background-size: 24px 24px;
  background-size: 18px 18px;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
  margin-right: 1rem;
}

#productSearch::placeholder {
  color: #a28b83;
  opacity: 1;
  transition: color 0.3s ease;
}

#productSearch:focus {
  border-color: #50AB38;
  color: #50AB38;
  background: #ffffff url('/media/icons/serchGREN.png') no-repeat 12px center;
  background-size: 24px 24px;
  background-size: 18px 18px;
  box-shadow: 0 0 6px rgba(80, 171, 56, 0.2);
}

#productSearch:focus::placeholder {
  color: #50AB38;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 5px;
  width: 350px;
  top: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-results li {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  color: #333;
  transition: background 0.2s;
  
}

.search-results li:hover {
  background-color: #bdfaae;
}





.footer {
  background-color: #5d3c2e;
  color: #fdf7f1;
  padding: 40px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo-block {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 200px;
  margin-bottom: 20px;
}

.footer-phones .phone-number {
  display: flex;
  font-size: 34px;
  font-weight: bold;
  color: #e6c7bc;
}

.footer-phones .work-time {
  margin-top: 12px;
  font-size: 17px;
}

.footer-phones .copyright {
  margin-top: 12px;
  font-size: 15px;
  color: #b0a49f;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  flex: 3 1 700px;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 130px;
}

.footer-col h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #ffffff82;
    font-weight: 600;
}

.footer-col a {
  color: #fdf7f1;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #4cdf28ce;
}

.store-icon {
  width: 130px;
  margin: 6px 0;
  cursor: pointer;
}

.socials-label {
  margin-top: 15px;
  font-weight: bold;
}

.footer-socials {
  margin-top: 8px;
  display: flex;
  gap: 10px;
}
html, body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
}

.page-wrapper > *:not(footer) {
  flex: 1;
}

.footer {
  margin-top: auto; /* делает футер "прижатым" вниз */
}

.phone-block {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.mobile-nav-toggle {
  display: none;
  font-size: 20px;
  font-weight: 600;
  color: #50AB38;
  background-color: #fdf7f1;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 8px;
  margin: 10px auto;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.3s;
}
.mobile-nav-toggle:hover {
  background-color: #e5f7dd;
}





@media (min-width: 950px) and (max-width: 1700px) {

header {
  background-color: #ffffff;
  color: #000000;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
}
.logo img{
  width: 120px;
}
.phone-number {
  font-size: 28px;
  margin-right: 0;
}
.search-container{
  width: 200px;
}
#productSearch {
  width: 200px;
}
.search-results {
  width: 94%;
}

.appointment-button {
  
  padding: 0 5px;
  font-size: 12px;
}
.contacts{
  margin-left: 5px;
  margin-right: 2px;
}
.lang-btn {
  width: 150px;

}
.language-selector {
  margin-left: 0;
}
.lang-menu{
  left: 6px;
  width: 140px;
}

}




/* 💻 Планшеты (1024px и меньше) */
@media (max-width: 945px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
  }

  .contacts {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    gap: 10px;
  }

  .language-selector,
  .search-container {
    width: 100%;
    margin-left: 0;
  }

  .search-container {
    margin-top: 10px;
  }

  .nav-jmc {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 10px;
  }

  .nav-jmc a {
    font-size: 18px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 30px;
  }

  .footer-col {
    min-width: unset;
    width: 100%;
  }
}

/* 📱 Телефоны (768px и меньше) */
@media (max-width: 768px) {
  .logo img {
    width: 120px;
  }
  
  .eng-log-block{
    display: flex;
    width: 100%;
    }

  .nav-jmc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-in-out;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    opacity: 0;
  }

  .nav-jmc.open {
    max-height: 1000px; /* или значение с запасом, например 1500px */
    opacity: 1;
  }

  .nav-jmc a {
    opacity: 0;
    transform: translateY(-10px);
    animation: none;
  }

  .nav-jmc.open a {
    animation: slideIn 0.4s ease forwards;
  }

  .nav-jmc.open a:nth-child(1) { animation-delay: 0.1s; }
  .nav-jmc.open a:nth-child(2) { animation-delay: 0.5s; }
  .nav-jmc.open a:nth-child(3) { animation-delay: 1.0s; }
  .nav-jmc.open a:nth-child(4) { animation-delay: 1.3s; }
  .nav-jmc.open a:nth-child(5) { animation-delay: 1.7s; }
  .nav-jmc.open a:nth-child(6) { animation-delay: 2.1s; }
  .nav-jmc.open a:nth-child(7) { animation-delay: 2.5s; }
  .nav-jmc.open a:nth-child(8) { animation-delay: 3.0s; }
  .nav-jmc.open a:nth-child(9) { animation-delay: 3.3s; }
  .nav-jmc.open a:nth-child(10) { animation-delay: 3.6s; }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }



  .mobile-nav-toggle {
    display: block;
    margin-top: 10px;
  }



  .phone-number {
    font-size: 20px;
  }

  .appointment-button {
    width: 100%;
    text-align: center;
    font-size: 18px;
  }

  #productSearch {
    width: 100%;
  }

  .search-results {
    width: 96%;
  }

  

  
  .footer-columns {
    display: none; /* Скрыть дополнительные колонки */
  }

  .footer-logo-block {
    align-items: center;
    text-align: center;
  }

  .footer-phones .phone-number {
    font-size: 20px;
  }

  .footer-phones .work-time,
  .footer-phones .copyright {
    font-size: 12px;
  }


  .footer-phones .phone-number {
        font-size: 26px;
        display: flex;
        justify-content: center;
        margin: 0;
  }

  .footer-phones .work-time,
  .footer-phones .copyright {
    font-size: 14px;
  }

  .footer-col a {
    font-size: 18px;
  }

  .footer {
    padding: 30px 20px;
  }
}

/* 📲 Маленькие устройства (480px и меньше) */
@media (max-width: 480px) {
  .lang-btn {
    width: 100%;
    justify-content: center;
  }

  .nav-jmc {
    padding: 15px;
  }

  .footer-logo {
    width: 160px;
  }

  .store-icon {
    width: 100px;
  }

  .product-preview {
    width: 90%;
  }

  .product-image,
  .product-video {
    width: 100% !important;
    height: auto !important;
  }

  .product-card {
    padding: 15px;
  }

  .product-header {
    flex-direction: column;
    gap: 20px;
  }

  .block-call-table {
    width: 100%;
  }

  .product-description {
    font-size: 15px;
  }
}


    @media (max-width: 768px) {
      header {
        flex-direction: column;
        align-items: flex-start;
      }

      .contacts {
        align-items: flex-start;
        margin-top: 10px;
      }
    }