@import "../../assets/styles/theme.scss"; #react-page:has(> #mainpageheader) { margin-top: 0; #mainpageheader { position: relative; height: 100vh; padding: 0 10%; margin: 0; color: $text-secondary; background-image: url(/assets/images/car.jpeg); background-color: $bg-image; background-blend-mode: multiply; background-position: center; background-size: cover; .container { position: absolute; top: 40%; display: flex; flex-direction: column; // Телефонная версия @media (max-width: 768px) { top: 30%; padding: $navbar-padding-tb 5%; } h1 { font-size: 52px; // font-weight: 600; line-height: 63px; // margin: 0; margin-bottom: 24px; @media (max-width: 768px) { font-size: 32px; // Уменьшаем размер шрифта на мобильных устройствах line-height: 40px; // Уменьшаем межстрочное расстояние } } h2 { font-size: 24px; font-weight: 400; line-height: 36px; @media (max-width: 768px) { font-size: 24px; line-height: 28px; } } .btn { margin: 0; margin-top: 24px; } } } .block { h1 { font-family: Montserrat; font-size: 36px; font-weight: 600; margin-top: 1.5rem; margin-bottom: 1.5rem; @media (max-width: 768px) { font-size: 24px; // Уменьшаем размер заголовка на мобильных } } .heading { display: flex; justify-content: space-between; align-items: center; a { font-size: 20px; font-weight: 500; text-align: right; color: $text-primary; @media (max-width: 768px) { font-size: 16px; } } } } .block:not(:last-child) { margin-bottom: 32px; } @media (max-width: 768px) { #mainpageheader { padding: 0; // Уменьшаем padding на мобильных устройствах } } }