/*
Theme Name: Reboot Child
Template: reboot
Version: 1.0.0
*/

#masthead {
    padding: 0;
}

/* Черная полоска с контактами */
.header-contact-bar {
    background-color: #2b2b2b;
    padding: 12px 0;
    width: 100%;
}

.header-contact-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.contact-icon-clock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a90e2'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.5-13H11v6l5.2 3.2.8-1.3-4.5-2.7V7z'/%3E%3C/svg%3E");
}

.contact-icon-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a90e2'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.contact-icon-email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a90e2'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.contact-text {
    white-space: nowrap;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .header-contact-bar-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item {
        font-size: 13px;
    }
}
.site-header {
    position: relative;
    background-color: transparent;
}

/* Синий фон только для верхней части */
.site-header-inner {
    background-color: #436284; /* ваш синий цвет */
    position: relative;
    z-index: 100;
}
/* Убираем overflow со всех элементов header */
.site-header,
.site-header *,
.site-header-inner,
header,
#masthead {
    overflow: visible !important;
}

/* Выпадающее меню должно быть поверх всего */
.menu-item-has-children,
.menu-item-has-children > .sub-menu {
    position: relative;
}

.sub-menu,
.dropdown-menu,
ul.sub-menu {
    position: absolute !important;
    z-index: 99999 !important;
    overflow: visible !important;
}

/* Если меню в nav */
nav,
.navigation,
.site-navigation {
    overflow: visible !important;
    position: static !important;
}

.product-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1040px;
  margin: 30px auto;
}

.product-link {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 145px;
  padding: 22px;
  box-sizing: border-box;
  color: #333;
  background: #fff;
  border: 1px solid #e7e7e7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-link:hover {
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.product-link__image {
  width: 95px;
  height: 95px;
  flex: 0 0 95px;
  object-fit: contain;
}

.product-link__content {
  min-width: 0;
}

.product-link__title {
  display: block;
  margin: 0 0 14px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: underline;
}

.product-link__description {
  margin: 0;
  color: #777;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .product-links {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    margin: 20px 0;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .product-link {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 110px;
    padding: 15px;
    box-sizing: border-box;
  }

  .product-link__image {
    width: 80px;
    height: 80px;
    object-fit: contain;
  }

  .product-link__content {
    min-width: 0;
  }

  .product-link__title {
    margin-bottom: 7px;
    font-size: 16px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .product-link__description {
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 400px) {
  .product-links {
    padding: 0 8px;
  }

  .product-link {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  .product-link__image {
    width: 65px;
    height: 65px;
  }

  .product-link__title {
    font-size: 15px;
  }

  .product-link__description {
    font-size: 12px;
  }
}