.ras-tots-logo-block {
  position: relative;
  z-index: 2;
  max-width: 1920px;
  padding: 20px;
}


.ras-tots-header {
  position: relative;
  width: 100%;
  min-height: 900px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 1920px;
  margin: 0 auto;
}

.ras-tots-header-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.ras-tots-header-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ras-tots-header-content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: calc(100% - 50px);
  padding: 20px;
  display: flex;
}

.ras-tots-header-content-wrapper-inner {
  border: 5px solid white;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: 15px;
}

.ras-tots-header-content {
  width: 100%;
  max-width: 600px;
  padding: 15px 15px 25px 15px;
  height: 45%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ras-tots-header h1 {
  font-size: clamp(70px, 12vw, 230px);
  margin-bottom: 10px;
  font-weight: bold;
  font-family: 'Helvetica Now Condensed', sans-serif;
  line-height: 0.9;
  color: white;
}

.ras-tots-header p {
  font-size: 20px;
  font-weight: medium;
  color: white;
}

.ras-tots-header-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background-color: white;
  color: black;
  padding: 7.5px 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s;
  border-radius: 15px;
  align-self: flex-start;
  letter-spacing: 0.05em;
}

.ras-tots-header-link:hover {
  background-color: #E55400;
  color: white;
}

/* Mobile specific styles */
@media (max-width: 640px) {
  .ras-tots-logo-block {
    padding: 15px 20px;
  }
  
  .ras-tots-header {
    min-height: 500px;
    padding-bottom: 177.78%;
  }
  
  .ras-tots-header-video-container {
    display: flex;
    justify-content: center;
  }
  
  .ras-tots-header-content-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
  }
}

/* Small mobile and up */
@media (min-width: 480px) {
  .ras-tots-header-content {
    height: 50%;
  }

  .ras-tots-header-content {
    height: 45%;
  }
}

/* Mobile typography */
@media (min-width: 540px) {
  .ras-tots-header h1 {
    max-width: 300px;
  }
}

/* Tablet and up */
@media (min-width: 640px) {
  .ras-tots-logo-block {
    padding: 30px 0 0 40px ;
  }

  .ras-tots-header-video-container .desktop-video {
    display: block;
  }

  .ras-tots-header-content-wrapper-inner {
    border: 8px solid white;
  }
  
  .ras-tots-header {
    flex-direction: row;
  }

  .ras-tots-header-content {
    height: 100%;
    max-width: 70%;
    justify-content: flex-end;
    gap: 20px;
  }
  
  .ras-tots-header-content-wrapper {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 40px;
  }

  .ras-tots-header h1 {
    max-width: none;
  }

  .ras-tots-header p {
    font-size: 28px;
  }

  .ras-tots-header-link {
    position: absolute;
    right: 80px;
  }
}

/* Medium screens */
@media (min-width: 800px) {
  .ras-tots-header p {
    font-size: 35px;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .ras-tots-header-content-wrapper-inner {
    border: 15px solid white;
  }
}

@media (min-width: 1200px) {
  .ras-tots-header {
    max-height: 800px;
  }
  
  .ras-tots-header-video-container video {
    max-width: 1920px;
    margin: 0 auto;
  }
}

@media (min-width: 1500px) {
  .ras-tots-header h1 {
    margin-top: 70px;
  }
}

/* Video aspect ratio maintenance */
@media (max-width: 1920px) and (min-width: 640px) {
  .ras-tots-header {
    height: 90vh;
    min-height: 90vh;
  }
}

@media (max-width: 1200px) and (min-width: 640px) {
  .ras-tots-header {
    min-height: 500px;
  }
}
