/* ===== CAFFITALY LEGACY STYLES ===== */
/* Этот файл содержит стили для совместимости со старыми страницами */
/* Новые страницы должны использовать base.css и components.css */

/* Импорт базовых стилей */
@import url("base.48ceb5aebc5f.css");
@import url("components.20f97db6ac03.css");

/* ===== LEGACY HERO BANNER ===== */
.hero-banner .hero-image {
    background-size: cover;
    background-position: center;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-banner .hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-banner .hero-content {
    color: white;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-banner .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* ===== LEGACY SITE HEADER ===== */
.site-header {
    box-shadow: var(--shadow-sm);
}

.navbar-brand img {
    max-height: 40px;
}

/* ===== MAIN FOOTER STYLES ===== */
.footer,
.footer-mobile {
  background: #886c63;
  color: var(--white);
  padding: 120px 0;
  width: 100%;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Grid layout for footer menu */
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  position: relative;
  margin: 0 auto;
}

/* Responsive gap adjustments */
@media (min-width: 1200px) {
  .footer-menu {
    gap: 60px;
    max-width: 1400px;
  }
}

@media (min-width: 1400px) {
  .footer-menu {
    gap: 80px;
    max-width: 1600px;
  }
}

@media (min-width: 1600px) {
  .footer-menu {
    gap: 80px;
    max-width: 1800px;
  }
}

/* Universal footer menu section */
.footer-menu-section {
  padding: 0 5px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  width: auto;
  min-width: 100px;
  max-width: 140px;
}

/* Wider sections for technology and other longer content */
.footer-menu-section:nth-child(4) {
  min-width: 180px;
}

/* Universal footer menu title */
.footer-menu-title, .footer-menu-title-large, .footer-menu-title-contacts {
    color: var(--white);
    text-align: left;
    font-family: var(--font-family-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    height: auto;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Universal submenu container */
.footer-submenu-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-start;
  width: 170px;
  position: relative;
}

.footer-menu-section:nth-child(4) .footer-submenu-container {
  width: 180px;
}

@media (max-width: 768px) {
  .footer-submenu-container {
    width: 350px;
  }
  .footer-menu-section:nth-child(4) .footer-submenu-container {
    width: 350px;
  }
}

/* Wider submenu for technology section */


/* Universal footer menu link */
.footer-menu-link {
  color: var(--white);
  text-align: left;
  font-family: var(--font-family-primary);
  font-size: 15px;
  font-weight: 400;
  position: relative;
  width: 100%;
  min-height: 25px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Special styling for multi-line links */
.footer-menu-link:has(br),
.footer-menu-link[data-multiline="true"] {
  height: 46px;
  align-items: flex-start;
  padding-top: 4px;
}

/* Auto-detect long text and apply multi-line styling */
.footer-menu-link a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

/* Footer link styles */
.footer-menu-link a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-family-primary), sans-serif !important;
  font-size: 15px;
  font-weight: 400;
  transition: color var(--transition-fast);
  margin-bottom: 8px;
  display: block;
}

.footer-menu-link a:hover {
  color: var(--brown-primary);
  text-decoration: underline;
}

/* ===== MOBILE FOOTER STYLES ===== */
.footer-mobile {
  display: none;
}

.footer-mobile .footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

.footer-mobile .footer-menu-section {
  position: relative;
}

.footer-mobile .footer-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
  position: relative;
}

.footer-mobile .footer-menu-section.has-submenu .footer-section-header {
  padding-right: 40px;
}

.footer-mobile .footer-title,
.footer-mobile .footer-title-link {
  color: var(--white);
  text-align: left;
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0;
  text-decoration: none;
}

.footer-mobile .footer-title-link:hover {
  text-decoration: underline;
}

.footer-mobile .footer-submenu-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-mobile .footer-arrow {
  transition: transform 0.3s ease;
  color: var(--white);
}

.footer-mobile .footer-menu-section.submenu-open .footer-arrow {
  transform: rotate(180deg);
}

.footer-mobile .footer-submenu-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #886c63;
}

.footer-mobile .footer-menu-section.submenu-open .footer-submenu-container {
  max-height: 500px;
  padding-bottom: 0;
}

.footer-mobile .footer-menu-link {
  display: block;
  padding: 5px 20px;
  color: var(--white);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 400;
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
  margin: 0;
}

.footer-mobile .footer-menu-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--white);
}

.footer-mobile .footer-menu-link a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 400;
  display: block;
}

.footer-mobile .footer-menu-link a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE FOOTER DISPLAY ===== */
@media (max-width: 768px) {
  .footer {
    display: none;
  }
  
  .footer-mobile {
    display: block;
    padding: 30px 20px;
  }
  
  .footer-mobile .footer-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (min-width: 769px) {
  .footer-mobile {
    display: none;
  }
}

/* ===== LEGACY HEADER MENU STYLES ===== */
.header-container {
  background: var(--white);
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide-max-width);
  margin: 0 auto;
}

.logo-menu-container {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-container {
  padding: 15px 15px 15px 0;
  display: flex;
  align-items: center;
}

.logo {
  width: 120px;
  height: 57px;
  object-fit: cover;
}

.menu-container {
  padding-left: var(--spacing-sm);
}

.menu-item {
  display: inline-block;
  position: relative;
}

.menu-link, .menu-link span.menu-text {
  color: var(--black);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: color var(--transition-fast);
}

.menu-link:hover, .menu-link:hover span.menu-text {
  color: var(--brown-primary);
}

.menu-item--active .menu-link,
.menu-item--active .menu-link span.menu-text {
  color: var(--brown-primary);
}

.menu-item--active .menu-link:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--brown-primary);
}

.menu-arrow {
  width: 7px;
  height: 4.2px;
  transition: transform var(--transition-fast);
}

.menu-item.has-submenu:hover > .menu-link,
.menu-item.has-submenu:hover > .menu-link span.menu-text {
  color: var(--brown-primary);
}

.menu-item.has-submenu:hover .menu-arrow {
  transform: rotate(180deg);
}

.menu-submenu-list {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-sm);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.menu-item.has-submenu:hover .menu-submenu-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-submenu-link {
  display: block;
  padding: 12px 20px;
  color: var(--black);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background-color var(--transition-fast);
}

.menu-submenu-link:hover {
  background-color: var(--beige-light);
  color: var(--brown-primary);
}

/* ===== LEGACY MOBILE MENU ===== */
@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }
  .logo-menu-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .menu-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 1000;
    overflow-y: auto;
    padding-top: 80px;
    flex-direction: column;
    align-items: flex-start;
  }
  .menu-container.active {
    display: flex;
  }
  .menu-item {
    width: 100%;
    border-bottom: 1px solid var(--gray-200);
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1100;
  }
}

/* ===== LEGACY DROPDOWN STYLES ===== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-sm);
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.menu-item.has-submenu:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-item {
  border-bottom: 1px solid #eee;
}

.dropdown-item--active {
  background-color: var(--beige-light);
}

.dropdown-link {
  display: block;
  padding: 15px 20px;
  color: var(--black);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: 400;
  text-decoration: none;
  text-transform: none;
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--beige-light);
  color: var(--brown-primary);
  text-decoration: none;
}

.dropdown-header-arrow {
  float: right;
  margin-top: 2px;
}

/* ===== LEGACY RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .hero-banner .hero-image {
    height: 400px;
  }
  
  .hero-banner h1 {
    font-size: 2rem;
  }
  
  .hero-banner .lead {
    font-size: 1.2rem;
  }
}

/* ===== LEGACY FORM STYLES ===== */
.contact-form {
  margin-top: 2rem;
}

.contact-form label {
  font-weight: 500;
}

.contact-form .btn-primary {
  background-color: var(--brown-primary);
  border-color: var(--brown-primary);
}

.contact-form .btn-primary:hover {
  background-color: var(--brown-secondary);
  border-color: var(--brown-secondary);
}

/* ===== LEGACY DISTRIBUTOR STYLES ===== */
.distributor-item {
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.distributor-item:hover {
  background-color: var(--light-gray);
  transform: translateY(-2px);
}

/* ===== GLOBAL RICH TEXT STYLES ===== */
/* Жирный текст в rich text полях автоматически становится коричневым */
.rich-text strong,
.rich-text b,
.smart-system-text strong,
.smart-system-text b,
.parameters-description strong,
.parameters-description b,
.milk-coffee-description strong,
.milk-coffee-description b,
.drinks-description strong,
.drinks-description b {
    color: #70554e !important;
    font-weight: bold !important;
}

/* Применяем к другим страницам сайта */
.txt strong,
.txt b,
.mission-container strong,
.mission-container b,
p strong,
p b {
    color: #70554e !important;
    font-weight: bold !important;
}
