html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-primary), sans-serif;
  color: #333;
  line-height: 1.6;
}

.template-companyproductionpage .div, .template-companyproductionpage .div * {
  box-sizing: border-box;
}

.template-companyproductionpage .div {
  background: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.template-companyproductionpage .div2 {
  color: #000;
  text-align: left;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
}

.vector, .vector2, .vector3, .vector4, .vector5 {
  flex-shrink: 0;
  width: 7px;
  height: 4.2px;
  position: relative;
  overflow: visible;
}

/* Баннер */
.banner {
  padding: 183px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 560px;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.txt {
  background: rgba(214, 194, 176, 0.86);
  border-radius: 0 0 0 30px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 60vw;
  max-width: 920px;
  min-width: 280px;
  position: relative;
}

.caffitaly {
  color: #876c63;
  text-align: left;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 30px;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  align-self: stretch;
  min-height: 36px;
}

.caffitaly-caffitaly {
  color: #000;
  text-align: left;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 16px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  min-height: 60px;
}

.template-companyproductionpage .div3 {
  color: #000;
  text-align: left;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 30px;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  align-self: stretch;
  min-height: 48px;
}

.numbers {
  width: 100%;
  max-width: 1920px;
  min-height: 600px;
  margin: 0 auto;
  position: relative;
}

.bg {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.rectangle-7 {
  background: #f4f2f0;
  flex-shrink: 0;
  width: 50vw;
  min-width: 200px;
  height: 100%;
  min-height: 400px;
  position: relative;
}

.rectangle-8 {
  background: #d8c3ac;
  flex-shrink: 0;
  width: 50vw;
  min-width: 200px;
  height: 100%;
  min-height: 400px;
  position: relative;
}

.numbers2 {
  padding: 50px 0;
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.left, .right {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  min-width: 200px;
  max-width: 320px;
}

.head {
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}

.template-companyproductionpage .caffitaly, .template-companyproductionpage .div6 {
  color: #876c63;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 30px;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  width: 100%;
}

.template-companyproductionpage .div6 {
  text-align: right;
}

._1, ._2, ._3, ._4, ._5, ._6 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 100%;
  max-width: 246px;
  position: relative;
}

._1-7, ._158, ._33-300-2, ._90, ._66, ._93, ._52, ._22, ._7, ._5-9, ._420 {
  color: #876c63;
  text-align: left;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 48px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  min-height: 58px;
}

.template-companyproductionpage .div4, .template-companyproductionpage ._2020, .template-companyproductionpage .div5, .template-companyproductionpage ._696, .template-companyproductionpage ._156, .template-companyproductionpage ._99, .template-companyproductionpage .div7, .template-companyproductionpage .div8 {
  color: #876c63;
  text-align: left;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 12px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  min-height: 14px;
}

.icon {
  padding: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 198px;
  height: 198px;
  position: relative;
}

.immagine-centrale-footer-1 {
  flex-shrink: 0;
  width: 198px;
  height: 198px;
  object-fit: cover;
  aspect-ratio: 1;
}

.factory {
  background: #f1f0ef;
  width: 100%;
  max-width: 1920px;
  min-height: 800px;
  margin: 0 auto;
  position: relative;
}

.head-shape {
  background: #e3dfdf;
  padding: 30px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  width: 90vw;
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
}

.template-companyproductionpage .div9 {
  color: #000;
  text-align: center;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 30px;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  align-self: stretch;
  min-height: 40px;
}

.caffitaly-tres-coracoes {
  text-align: center;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 16px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  min-height: 80px;
}

.caffitaly-tres-coracoes-span {
  color: #000;
  font-family: var(--font-family-primary), sans-serif;
}

.caffitaly-tres-coracoes-span2 {
  color: #70554e;
  font-family: var(--font-family-primary), sans-serif;
  font-weight: 700;
}

.factory2 {
  padding: 0 0 50px 0;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  top: 24px;
}

.capriate, .gaggio {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  max-width: 460px;
  min-width: 260px;
}

.capriate-en-1 {
  flex-shrink: 0;
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: cover;
  aspect-ratio: 460/300;
}

.template-companyproductionpage .div10, .template-companyproductionpage .caffitaly2, .template-companyproductionpage ._2014-caffitaly-system-tres-coracoes-3-caffi {
  color: #000;
  text-align: justify;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 16px;
  font-weight: 400;
  position: relative;
  width: 100%;
  min-height: 60px;
}

.img {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.template-companyproductionpage .div11 {
  color: #fff;
  text-align: center;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  position: absolute;
  left: 0;
  top: 70%;
  width: 100%;
  min-height: 40px;
  background: rgba(0,0,0,0.3);
}

/* Общие стили страницы */
.production-page {
  background-color: #fff;
  min-height: 100vh;
}

/* ===== СЕКЦИЯ С ЦИФРАМИ (ДЕСКТОПНАЯ ВЕРСИЯ) ===== */
.numbers-section {
  background-color: #fff;
  padding: 60px 0;
  position: relative;
  width: 100%;
  min-height: 500px;
}

.numbers-background {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}

.numbers-bg-left {
  background: #f4f2f0;
  flex-shrink: 0;
  width: 50%;
  height: 100%;
  position: relative;
}

.numbers-bg-right {
  background: #d8c3ac;
  flex-shrink: 0;
  width: 50%;
  height: 100%;
  position: relative;
}

.numbers-content {
  padding: 50px 0;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.numbers-column {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  width: 350px;
  max-width: 350px;
}

.numbers-column:last-child {
  align-items: flex-end;
}

.numbers-column-title {
  color: #000000;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-align: left;
  line-height: 1.4;
  min-height: auto;
  display: block;
}

.numbers-column:last-child .numbers-column-title {
  text-align: right;
}

.number-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 100%;
  position: relative;
}

.numbers-column:last-child .number-item {
  align-items: flex-end;
  text-align: right;
}

.number-value {
  color: #183526;
  font-family: "Mulish-Bold", sans-serif;
  font-size: 30px;
  font-weight: 700;
  width: 100%;
  min-height: auto;
  line-height: 1.1;
  margin-bottom: 0;
}

.number-description {
  color: #000000;
  font-family: "Mulish-Regular", sans-serif;
  font-size: 14px;
  font-weight: 400;
  width: 100%;
  line-height: 1.5;
  margin-top: 0;
}

.numbers-center-icon {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  position: relative;
  margin: 0 30px;
  align-self: center;
}

.numbers-center-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* ===== УЛУЧШЕННАЯ СЕКЦИЯ С ЗАВОДАМИ ===== */
.factory-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  overflow: hidden;
}

.factory-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.factory-title {
  font-family: var(--font-family-primary), sans-serif;
  font-weight: 700;
  font-size: 38px;
  text-transform: uppercase;
  margin-bottom: 25px;
  color: #000000;
  letter-spacing: 1px;
}

.factory-description {
  font-family: var(--font-family-primary), sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
}

.factory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.factory-item {
  background: none;
  box-shadow: none;
  border-radius: 0;
  min-height: auto;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 30px;
  align-items: center;
}

.factory-item:hover {
  transform: none;
  box-shadow: none;
}

.factory-image-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: #000; /* Черный фон на случай, если видео не загрузится */
}

.factory-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-overlay {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.factory-subtitle {
  font-family: var(--font-family-primary), sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.factory-video-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  margin-top: 8px;
}

.factory-video-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(5px);
}

.factory-video-link .play-icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

.factory-content {
  display: none !important;
}

.factory-title-h3 {
  font-family: var(--font-family-primary), sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 15px 0;
  color: #183526;
  line-height: 1.3;
}

.factory-description-text {
  font-family: var(--font-family-primary), sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  flex-grow: 1;
}

.factory-description-text p {
  margin: 0 0 12px 0;
}

.factory-description-text p:last-child {
  margin-bottom: 0;
}

.factory-description-text ul {
  padding-left: 20px;
  margin: 12px 0;
}

.factory-description-text li {
  margin-bottom: 8px;
}

/* ===== RESPONSIVE DESIGN ДЛЯ ЗАВОДОВ ===== */
@media (max-width: 1200px) {
  .factory-grid {
    max-width: 1100px;
    gap: 35px;
  }
  
  .factory-title {
    font-size: 34px;
  }
  
  .factory-item {
    min-height: 450px;
  }
}

@media (max-width: 900px) {
  .factory-section {
    padding: 60px 0;
    background: none;
  }
  
  .factory-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 600px;
  }
  
  .factory-item {
    min-height: 420px;
  }
  
  .factory-image-container {
    height: 280px;
  }
  
  .factory-title {
    font-size: 28px;
  }
  
  .factory-subtitle {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .factory-section {
    padding: 40px 0;
  }
  
  .factory-header {
    margin-bottom: 40px;
    padding: 0 15px;
  }
  
  .factory-grid {
    gap: 25px;
    padding: 0 15px;
  }
  
  .factory-item {
    min-height: 380px;
  }
  
  .factory-image-container {
    height: 240px;
  }
  
  .factory-content {
    padding: 25px 20px;
    min-height: 120px;
  }
  
  .factory-title {
    font-size: 24px;
  }
  
  .factory-subtitle {
    font-size: 20px;
  }
  
  .factory-title-h3 {
    font-size: 20px;
  }
  
  .factory-description-text {
    font-size: 14px;
  }
  
  .factory-overlay {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .factory-image-container {
    height: 200px;
  }
  
  .factory-item {
    min-height: 340px;
  }
  
  .factory-content {
    padding: 20px 15px;
    min-height: 100px;
  }
}

/* Медиа-запросы для адаптивности (обновленная версия) */
@media (max-width: 1200px) {
  .template-companyproductionpage .banner .txt {
    width: 70%;
  }
  
  .factory-grid {
    max-width: 1100px;
    gap: 35px;
  }
  
  .factory-title {
    font-size: 34px;
  }
  
  .factory-item {
    min-height: 450px;
  }
  
  .numbers-content {
    max-width: 1000px;
  }
  
  .numbers-column {
    min-width: 200px;
    max-width: 280px;
  }
}

@media (max-width: 900px) {
  .template-companyproductionpage .banner .txt {
    width: 80%;
    padding: 15px;
  }
  
  .factory-section {
    padding: 60px 0;
  }
  
  .factory-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 600px;
  }
  
  .factory-item {
    min-height: 420px;
  }
  
  .factory-image-container {
    height: 280px;
  }
  
  .factory-title {
    font-size: 28px;
  }
  
  .factory-subtitle {
    font-size: 24px;
  }
  
  .numbers-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .numbers-column {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }
  
  .numbers-column:last-child .numbers-column-title,
  .numbers-column:last-child .number-item {
    text-align: center;
    align-items: center;
  }
}

/* ===== COMPANY PRODUCTION PAGE STYLES ===== */

.template-companyproductionpage {
    background: var(--white);
    min-height: 100vh;
}

/* ===== BANNER SECTION ===== */
.template-companyproductionpage .banner {
    padding: 183px 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 560px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.template-companyproductionpage .banner .txt {
    background: rgba(214, 194, 176, 0.86);
    border-radius: 0 0 0 var(--border-radius-xl);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
    width: 60vw;
    max-width: 920px;
    min-width: 280px;
    position: relative;
}

.template-companyproductionpage .banner .caffitaly {
    color: #000;
    text-align: left;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-2xl);
    font-weight: 400;
    text-transform: uppercase;
    position: relative;
    align-self: stretch;
    min-height: 36px;
}

.template-companyproductionpage .banner .caffitaly-caffitaly {
    color: #000;
    text-align: left;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: 400;
    position: relative;
    align-self: stretch;
    min-height: 60px;
    line-height: 1.5;
}

.template-companyproductionpage .banner .div3 {
    color: #000;
    text-align: left;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-2xl);
    font-weight: 400;
    text-transform: uppercase;
    position: relative;
    align-self: stretch;
    min-height: 48px;
    line-height: 1.3;
}

/* ===== NUMBERS SECTION (using components) ===== */
.template-companyproductionpage .numbers {
    /* Uses .numbers-section from components.css */
}

.template-companyproductionpage .numbers .bg {
    /* Uses .numbers-background from components.css */
}

.template-companyproductionpage .numbers .rectangle-7 {
    /* Uses .numbers-bg-left from components.css */
}

.template-companyproductionpage .numbers .rectangle-8 {
    /* Uses .numbers-bg-right from components.css */
}

.template-companyproductionpage .numbers2 {
    /* Uses .numbers-content from components.css */
}

.template-companyproductionpage .left,
.template-companyproductionpage .right {
    /* Uses .numbers-column from components.css */
}

.template-companyproductionpage .head {
    padding: var(--spacing-md) 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    position: relative;
}

.template-companyproductionpage .caffitaly,
.template-companyproductionpage .div6 {
    /* Uses .numbers-column-title from components.css */
    text-align: left;
}

.template-companyproductionpage .div6 {
    text-align: right;
}

.template-companyproductionpage ._1,
.template-companyproductionpage ._2,
.template-companyproductionpage ._3,
.template-companyproductionpage ._4,
.template-companyproductionpage ._5,
.template-companyproductionpage ._6 {
    /* Uses .number-item from components.css */
}

.template-companyproductionpage ._1-7,
.template-companyproductionpage ._158,
.template-companyproductionpage ._33-300-2,
.template-companyproductionpage ._90,
.template-companyproductionpage ._66,
.template-companyproductionpage ._93,
.template-companyproductionpage ._52,
.template-companyproductionpage ._22,
.template-companyproductionpage ._7,
.template-companyproductionpage ._5-9,
.template-companyproductionpage ._420 {
    /* Uses .number-value from components.css */
}

.template-companyproductionpage .div4,
.template-companyproductionpage ._2020,
.template-companyproductionpage .div5,
.template-companyproductionpage ._696,
.template-companyproductionpage ._156,
.template-companyproductionpage ._99,
.template-companyproductionpage .div7,
.template-companyproductionpage .div8 {
    /* Uses .number-description from components.css */
}

.template-companyproductionpage .icon {
    /* Uses .numbers-center-icon from components.css */
}

.template-companyproductionpage .immagine-centrale-footer-1 {
    /* Uses .numbers-center-icon img from components.css */
}

/* ===== FACTORY SECTION (using components) ===== */
.template-companyproductionpage .factory {
    /* Uses .factory-section from components.css */
}

.template-companyproductionpage .head-shape {
    /* Uses .factory-header from components.css */
}

.template-companyproductionpage .div9 {
    /* Uses .factory-title from components.css */
}

.template-companyproductionpage .caffitaly-tres-coracoes {
    /* Uses .factory-description from components.css */
}

.template-companyproductionpage .factory2 {
    /* Uses .factory-grid from components.css */
}

.template-companyproductionpage .capriate,
.template-companyproductionpage .gaggio {
    /* Uses .factory-item from components.css */
}

.template-companyproductionpage .capriate-en-1 {
    /* Uses .factory-image-container img from components.css */
}

.template-companyproductionpage .div10,
.template-companyproductionpage .caffitaly2,
.template-companyproductionpage ._2014-caffitaly-system-tres-coracoes-3-caffi {
    /* Uses .factory-content from components.css */
}

.template-companyproductionpage .img {
    /* Uses .factory-image-container from components.css */
}

.template-companyproductionpage .div11 {
    /* Uses .factory-overlay and .factory-subtitle from components.css */
}

/* ===== SPECIFIC OVERRIDES ===== */
.template-companyproductionpage .caffitaly-tres-coracoes-span {
    color: var(--black);
    font-family: var(--font-family-primary);
}

.template-companyproductionpage .caffitaly-tres-coracoes-span2 {
    color: var(--brown-secondary);
    font-family: var(--font-family-primary);
    font-weight: 700;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .template-companyproductionpage .banner .txt {
        width: 70%;
    }
}

@media (max-width: 900px) {
    .template-companyproductionpage .banner .txt {
        width: 80%;
        padding: var(--spacing-sm);
    }
}

@media (max-width: 600px) {
    .template-companyproductionpage .banner {
        padding: var(--spacing-2xl) 0;
        min-height: 400px;
    }
    
    .template-companyproductionpage .banner .txt {
        width: 90%;
        padding: var(--spacing-sm);
        border-radius: var(--border-radius-md);
    }
    
    .template-companyproductionpage .banner .caffitaly {
        font-size: var(--font-size-xl);
    }
    
    .template-companyproductionpage .banner .caffitaly-caffitaly {
    font-size: 14px;
    }
}

@media (max-width: 480px) {
    .template-companyproductionpage .banner {
        padding: var(--spacing-lg) 0;
        min-height: 300px;
    }
    
    .template-companyproductionpage .banner .div3 {
        font-size: var(--font-size-lg);
    }
}

/* ===== MOBILE FIRST REDESIGN (по принципу главной страницы) ===== */
@media (max-width: 768px) {
    /* Показываем мобильные блоки на мобильных устройствах */
    .template-companyproductionpage .mobile-banner-text,
    .template-companyproductionpage .mobile-factory-image,
    .template-companyproductionpage .mobile-factory-text,
    .template-companyproductionpage .mobile-numbers-text {
        display: flex !important;
    }

    /* БАННЕР - только изображение */
    .template-companyproductionpage .banner {
        padding: 0;
        height: 170px;
        align-items: stretch;
        background-position: center;
        background-size: cover;
        order: 1;
        margin-bottom: 0;
    }
    
    .template-companyproductionpage .banner .txt {
        display: none !important; /* Скрываем текст из баннера на мобильных */
    }

    /* ТЕКСТОВЫЙ БЛОК БАННЕРА - отдельно после изображения */
    .template-companyproductionpage .mobile-banner-text {
        background: #f1f0ef;
        padding: 30px 20px 50px 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        justify-content: flex-start;
    width: 100%;
        text-align: center;
        order: 2;
        margin-bottom: 40px;
    }

    .template-companyproductionpage .mobile-banner-text .mobile-caffitaly {
        color: #000000;
        font-family: var(--font-family-primary), sans-serif;
        font-size: 30px;
        font-weight: 700;
        text-transform: uppercase;
        max-width: 295px;
        line-height: 1.3;
    }

    .template-companyproductionpage .mobile-banner-text .mobile-caffitaly2 {
        color: #000;
        font-family: var(--font-family-primary), sans-serif;
        font-size: 16px;
        font-weight: 400;
        max-width: 295px;
        line-height: 1.4;
    }

    /* СЕКЦИЯ ЗАВОДОВ - адаптация */
    .template-companyproductionpage .factory-section {
        padding: 0px 0;
        order: 3;
        margin: 10px;
    }

    .template-companyproductionpage .factory-header {
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .template-companyproductionpage .factory-title {
        font-size: 30px;
        color: #000000;
        text-align: center;
        margin-bottom: 20px;
    }

    .template-companyproductionpage .factory-description {
        font-size: 15px;
        max-width: 295px;
        margin: 0 auto;
        text-align: center;
        color: #000;
    }

    .template-companyproductionpage .factory-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        max-width: 100%;
    }

    .template-companyproductionpage .factory-item {
        background: none;
        box-shadow: none;
    border-radius: 0;
        min-height: auto;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
    }

    .template-companyproductionpage .factory-item:hover {
        transform: none;
        box-shadow: none;
    }

    /* Скрываем десктопные элементы заводов на мобильных */
    .template-companyproductionpage .factory-image-container,
    .template-companyproductionpage .factory-content {
        display: none !important;
    }

    /* МОБИЛЬНЫЕ ИЗОБРАЖЕНИЯ ЗАВОДОВ */
    .template-companyproductionpage .mobile-factory-image {
        width: 100%;
        max-width: 455px;
        height: auto;
        aspect-ratio: 355/232;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
        order: 1;
        margin-bottom: 0;
    }

    .template-companyproductionpage .mobile-factory-image img,
    .template-companyproductionpage .mobile-factory-image .factory-video-wrapper,
    .template-companyproductionpage .mobile-factory-image iframe {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .template-companyproductionpage .mobile-factory-overlay {
        display: none;
    }

    .template-companyproductionpage .mobile-factory-video-link {
        display: none;
    }

    /* МОБИЛЬНЫЕ ТЕКСТОВЫЕ БЛОКИ ЗАВОДОВ */
    .template-companyproductionpage .mobile-factory-text {
        background: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        max-width: 335px;
        text-align: center;
        order: 2;
    }

    .template-companyproductionpage .mobile-factory-title {
        color: #000000;
        font-family: "Mulish-Bold", sans-serif;
        font-size: 20px;
        font-weight: 700;
        text-transform: uppercase;
        max-width: 100%;
        line-height: 1.3;
        margin: 0;
    }

    .template-companyproductionpage .mobile-factory-description,
    .template-companyproductionpage .mobile-factory-description p {
        color: #000000;
        text-align: justify;
        font-family: "Mulish-Regular", sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.3;
        margin: 0;
    }

    .template-companyproductionpage .mobile-factory-subtitle {
        display: none;
    }

    /* СЕКЦИЯ С ЦИФРАМИ - адаптация */
    .template-companyproductionpage .numbers-section {
        padding: 0;
        order: 4;
        background: none;
    }

    /* Скрываем десктопные элементы цифр на мобильных */
    .template-companyproductionpage .numbers-background,
    .template-companyproductionpage .numbers-content {
        display: none !important;
    }

    /* КОНТЕЙНЕР ДЛЯ МОБИЛЬНОГО БЛОКА */
    .template-companyproductionpage .mobile-numbers-container {
        position: relative;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        order: 2;
    }

    /* ВЕРХНИЙ СВЕТЛЫЙ БЛОК */
    .template-companyproductionpage .mobile-numbers-top-block {
        background: #f4f2f0;
        padding: 50px 20px 40px 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        position: relative;
    }

    /* ЦЕНТРАЛЬНЫЙ РАЗДЕЛИТЕЛЬ С ИЗОБРАЖЕНИЕМ */
    .template-companyproductionpage .mobile-numbers-center {
        width: 100%;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, #f4f2f0 0%, #f4f2f0 50%, #d8c3ac 50%, #d8c3ac 100%);
    }

    /* НИЖНИЙ КОРИЧНЕВЫЙ БЛОК */
    .template-companyproductionpage .mobile-numbers-bottom-block {
        background: #d8c3ac;
        padding: 30px 20px 50px 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        position: relative;
    }

    .template-companyproductionpage .mobile-numbers-title {
        color: #000000;
        font-family: var(--font-family-primary), sans-serif;
        font-size: 22px;
        font-weight: 700;
        text-transform: uppercase;
        max-width: 280px;
        line-height: 1.2;
        margin: 0;
        text-align: center;
        letter-spacing: 0.5px;
    }

    /* МОБИЛЬНЫЕ СТОЛБЦЫ ЦИФР */
    .template-companyproductionpage .mobile-numbers-column {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
        max-width: 320px;
    }

    .template-companyproductionpage .mobile-numbers-column-title {
        color: #000000;
        font-family: var(--font-family-primary), sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        text-align: center;
        line-height: 1.2;
        margin: 0;
        max-width: 280px;
        font-size: 22px;
    }



    .template-companyproductionpage .mobile-numbers-items {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
    }

    .template-companyproductionpage .mobile-number-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        width: 100%;
        max-width: 280px;
    }

    .template-companyproductionpage .mobile-number-value {
        color: #000000;
        font-family: var(--font-family-primary), sans-serif;
        font-size: 24px;
        font-weight: 700;
        margin: 0;
        line-height: 1;
        text-align: center;
    }



    .template-companyproductionpage .mobile-number-description {
        color: #000000;
        font-family: var(--font-family-primary), sans-serif;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.2;
        text-align: center;
        max-width: 240px;
    }





    .template-companyproductionpage .mobile-numbers-center img,
    .template-companyproductionpage .mobile-numbers-center svg {
        vertical-align: middle;
        height: 200px !important;
        width: 200px !important;
    }

    .template-companyproductionpage .mobile-numbers-center {
        height: 200px;
    }
}

/* Скрываем мобильные блоки на десктопе */
@media (min-width: 769px) {
    .template-companyproductionpage .mobile-banner-text,
    .template-companyproductionpage .mobile-factory-image,
    .template-companyproductionpage .mobile-factory-text,
    .template-companyproductionpage .mobile-numbers-container {
        display: none !important;
    }
    
    /* Убеждаемся, что десктопные блоки показываются правильно */
    .template-companyproductionpage .banner .txt,
    .template-companyproductionpage .factory-image-container,
    .template-companyproductionpage .factory-content,
    .template-companyproductionpage .numbers-background,
    .template-companyproductionpage .numbers-content {
        display: flex !important;
    }
}

/* Дополнительные мобильные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .template-companyproductionpage .mobile-banner-text .mobile-caffitaly,
    .template-companyproductionpage .mobile-numbers-title {
    font-size: 20px;
  }
    
    .template-companyproductionpage .factory-title {
        font-size: 22px;
    }
    
    .template-companyproductionpage .mobile-factory-title {
        font-size: 18px;
    }
    
    .template-companyproductionpage .mobile-number-value {
        font-size: 22px;
    }
    
    .template-companyproductionpage .mobile-number-description {
        font-size: 13px;
        max-width: 200px;
    }



    .template-companyproductionpage .mobile-numbers-top-block {
        padding: 35px 15px 40px 15px;
    }

    .template-companyproductionpage .mobile-numbers-bottom-block {
        padding: 40px 15px 35px 15px;
    }

    .template-companyproductionpage .mobile-numbers-top-block .mobile-numbers-center {
        width: 180px;
        height: 180px;
        bottom: -90px; /* половина высоты изображения (180px / 2) */
    }

    .template-companyproductionpage .mobile-numbers-center img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ===== БЛОК ОПИСАНИЯ ЗАВОДОВ (В СТИЛЕ СТРАНИЦЫ ВИДЕНИЕ) ===== */
.factory-description-block {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0;
}

.factory-description-txt {
    border-radius: 0px 20px 0px 20px;
    border-style: solid;
    border-color: #d6c2b0;
    border-width: 1px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: flex-start;
    justify-content: center;
    width: 960px;
    max-width: 90%;
    position: relative;
}

.factory-description-txt2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}

.factory-description-title {
    color: #000000;
    text-align: center;
    font-family: "Mulish-SemiBold", sans-serif;
    font-size: 30px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    width: 100%;
}

.factory-description-content {
    text-align: center;
    font-family: "Mulish-Regular", sans-serif;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    width: 100%;
    color: #000000;
}

@media (max-width: 768px) {
    .factory-description-block {
        padding: 30px 0;
    }
    .factory-description-txt {
        padding: 15px;
        border: none;
    }
    .factory-description-title {
        font-size: 24px;
    }
}

.numbers-column:last-child .number-item {
  align-items: flex-end;
  text-align: right;
}

.numbers-column:last-child .number-value {
  text-align: right;
}

.numbers-column:last-child .number-description {
  text-align: right;
}

.factory-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.factory-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
} 