@font-face {
  font-family: 'Manrope'; 
  src: url('../fonts/manrope.eot'); 
  src: url('../fonts/manrope.eot?#iefix') format('embedded-opentype'), 
    url('../fonts/manrope.ttf') format('truetype'), 
    url('../fonts/manrope.svg#manrope') format('svg');
}
:root {
  --nav-padding: 2rem;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray: #808080;
  --color-gray-light: #e0e0e0;
  --color-gray-dark: #333333;
  --color-green-dark: #c95410fb;
  --color-green: #cc6d13;
  --header-bg: rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(68, 68, 68, 0.75);
  --preloader-animation-duration: 1s; 
  font-family: 'Manrope'; 
  --side-padding: 8.2%; 
  --max-width: 3440;
}


body {
  font-family: var(--font-main); 
  background-color: var(--color-gray-light);
  color: var(--color-black);
  line-height: 1.6;
  min-height: 100vh;
  position: relative; 

}

/* Сброс стандартных отступов и box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  position: relative;
  height: 25vh;
  max-height: 450px;
  min-height: 200px;
  width: 100%;
  background-image: url('../images/orig.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: hidden;
  transition: background-position 0.3s ease;
}



.header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* Всё содержимое .header будет поверх затемнения */
.header > * {
  position: relative;
  z-index: 1;
}

.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--header-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--color-gray-dark);
  padding: 2rem 0;
  box-sizing: border-box;
  width: 100%;
  gap: 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.header-nav .logo, .header-logo {
  position: absolute !important;
  left: 1rem !important; 
  top: 50% !important; 
  transform: translateY(-50%) !important;
  animation: none !important; 
  transition: none !important; 
  width: 180px !important; 
  height: auto !important;
  max-width: 100% !important;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--color-white);
  font-weight: bold;
  padding-bottom: 5px;
  transition: all 0.3s ease;
  font-family: var(--font-main);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  display: inline-block;
}


/* Яркая подсветка при наведении (заменяем ваш :hover) */
.nav-link:hover {
  color: var(--color-green-dark); 
}

.nav-link:hover::after {
  width: 100%;
}

.header h1 {
  font-family: var(--font-main);
  font-size: 30px; 
  font-weight: 600; 
  letter-spacing: 0.5px;
  color: var(--color-green);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
  margin: 7rem 0 2rem var(--side-padding); 
  line-height: 1.3;
  transition: transform 0.3s ease;
  width: calc(100% - var(--side-padding)); 
  font-style: italic;
  transform: skewX(-5deg);
}

.header-title {
  position: absolute !important;
  top: 7rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important; 
  margin: 0 !important;
  font-size: 2rem !important; /* Теперь такой же размер как у header-text */
  color: var(--color-white) !important;
  text-align: center !important;
  width: auto !important;
}

.header-text {
  position: absolute !important;
  bottom: 2rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  font-size: 2rem !important;
  color: var(--color-white) !important;
  text-align: center !important;
  line-height: 1.3 !important;
  width: auto !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.header-text a {
  text-decoration: underline !important;
  color: var(--color-white) !important;
  transition: color 0.3s ease !important;
}

.header-text a:hover {
  color: var(--color-green-dark) !important;
}

.header-text:first-of-type {
  bottom: 4rem !important;
  font-size: 2rem !important;
}

.header-text:nth-of-type(2) {
  bottom: 2rem !important;
  font-size: 2rem !important;
}


.container {
  position: relative;
  padding: 0 var(--side-padding);
  background-color: var(--color-gray-light);
  margin: 0 auto 2rem 0;
  max-width: var(--max-width);
  box-sizing: border-box;
  overflow: visible;
  background-image: 
    linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), 
    url('../images/logo.svg');
  background-repeat: repeat; 
  background-size: 250px auto; 
  background-position: 0 0, 250px 250px, 500px 0, 750px 250px, 0 500px, 250px 750px, 500px 500px;
  background-attachment: local;
  background-origin: content-box;
}














.telegram-message {
  max-width: 1200px;
  width: 80%;
  margin: 2rem auto 1rem;
  padding: 0;
}

.message-bubble {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-light);
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.message-bubble:before {
  content: '';
  position: absolute;
  left: -8px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--color-white);
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px; /* Уменьшили расстояние между элементами */
  margin-bottom: 0.8rem;
}

.message-avatar {
  width: 25px; /* Ещё меньше лого */
  height: 25px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  flex-shrink: 0;
}

.avatar-image {
  width: 7%;
  height: 7%;
  object-fit: contain;
  border-radius: 50%;
}

.message-sender {
  font-weight: 600;
  color: var(--color-green-dark);
  font-size: 1.4rem;
  flex: 1; /* Занимает всё доступное пространство */
  border-bottom: 1px solid var(--color-gray-light);
}

.message-time {
  color: var(--color-gray);
  font-size: 11px;
  flex-shrink: 0;
}

.message-title {
  color: var(--color-green-dark);
  font-size: 1.0rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-align: left;
}

.message-text {
  color: var(--color-gray-dark);
  line-height: 1.4;
  font-size: 15px;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}

.message-status {
  text-align: right;
  color: var(--color-green);
  font-size: 11px;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-gray-light);
}

@media (max-width: 768px) {
  .telegram-message {
    width: 90%;
    margin: 1.5rem auto 0.8rem;
  }
  
  .message-bubble {
    padding: 0.8rem 1rem;
  }
  
  .message-avatar {
    width: 40px;
    height: 40px;
    padding: 0; /* Убери паддинг */
  }

  .avatar-image {
    width: 20%;
    height: 20%;
    object-fit: contain;
  }
  
  .message-sender {
    font-size: 14px; /* Немного увеличили шрифт для баланса */
  }
  
  .message-time {
    font-size: 10px;
  }
  
  .message-title {
    font-size: 15px;
    margin-bottom: 0.6rem;
  }
  
  .message-text {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .message-status {
    font-size: 10px;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
  }
}







.sanitation-list {
  font-family: var(--font-main);
  font-size: 20px;
  color: var(--color-black);
  line-height: 1.45;
  margin: 1rem 0 2rem 11%;
  padding-left: 1rem;
  list-style-type: disc;

  width: 60%;
  max-width: 900px; 
  box-sizing: border-box;
  
  /* Перенос длинных слов */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

footer {
  background-color: var(--color-green-dark);
  padding-top: 4rem; /* Увеличиваем отступ сверху */
  padding-bottom: 2rem; /* Оставляем существующий отступ снизу */
  color: var(--color-white);
  text-align: center;
  font-family: var(--font-main);
}


.onas-header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
  font-size: 32px;
  color: #333;
  line-height: 1.3;
  position: relative;
  padding: 0;
}



.recention-header h2 {
  font-family: var(--font-main);
  font-size: 52px;
  color: var(--color-black);
  margin-bottom: 1.2rem;
  text-align: justify;
  position: relative;
  z-index: 1;
}

.contact-info {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Manrope'; 
  font-weight: 300; 
}

.contact-info h2 {
  font-size: 20px;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 18px;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  font-size: 18px;
}

.contact-info li {
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--color-gray-dark); 
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.925);  
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; 
  transition: opacity 0.5s ease;
}

/* Спиннер */
.preloader__spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--color-gray-light); 
  border-top-color: var(--color-green-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10000;  
}

/* Скрытие прелоадера */
.preloader--hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



@media (max-width: 768px) {
  :root {
    --nav-padding: 1rem;
    --side-padding: 5%;
  }

  
  /* Общие стили для текста */
  body {
    text-align: center;
  }

  /* Шапка */
  .header {
    height: 25vh;
    position: relative; 
  }


  .header-nav {
    padding: 1.2rem;
    gap: 0.8rem;
    justify-content: center;
  }
  

  .header-nav a {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .header-title {
    position: absolute !important;
    bottom: 14vh !important; 
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 14px !important; /* Изменено с 1.2rem на 14px */
    width: 90% !important;
    white-space: normal !important;
    margin: 0 !important;
  }

  .header-text {
    position: absolute !important;
    bottom: 1rem !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 14px !important; /* Изменено с 1.2rem на 14px */
    width: 90% !important;
    white-space: normal !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .header-text:first-of-type {
    bottom: 2.5rem !important;
    font-size: 14px !important; /* Изменено с 1.2rem на 14px */
  }

  .header-text:nth-of-type(2) {
    bottom: 1rem !important;
    font-size: 14px !important; /* Изменено с 1.2rem на 14px */
  }

  .header h1 {
    font-size: 14px !important; /* Изменено с 1.0rem на 14px */
    margin: 4rem auto 1rem; 
    width: 90%;
    text-align: left;
  }

  /* Основной контент */
  .container {
    padding: 0 1rem; 
    margin: 0 auto 1rem 0; 
    background-size: 120px auto; 
    background-position: 0 0, 120px 120px, 240px 0, 360px 120px; 
    background-repeat: repeat;
    background-attachment: scroll; 
  }
  .sanitation-header h2 {
      font-size: 14px;  
      margin: 1.5rem auto 0.8rem; 
      padding: 0;
      line-height: 1.2;
      font-weight: 600;
      text-align: center;
      display: block;
      width: 100%;
  }

  .sanitation-description {
    font-size: 14px;  
    padding: 1.5rem 0.8rem;
    margin: 1.2rem auto; 
    width: 85%;
    line-height: 1.7;
    background-color: rgba(255,255,255,0.1); 
    border-radius: 4px;
    text-align: justify; /* Равномерное распределение текста */
    text-justify: inter-word; /* Лучшее выравнивание для слов */
    hyphens: auto; /* Перенос длинных слов */
    
  }

  .sanitation-list {
    font-size: 0.9rem;
    margin: 0.8rem auto;
    width: 85%;
    padding-left: 1rem;
    text-align: left;
  }

  /* Отзывы */
  .recention-header h2 {
    font-size: 1.3rem;
  }

  .contact-info h2 {
    font-size: 0.7rem;  
    margin-bottom: 0.4rem;
    line-height: 1.15;
    font-weight: 600; 
  }

  .contact-info p,
  .contact-info ul,
  .contact-info a {
      font-size: 0.7rem; 
      line-height: 1.25;
      margin: 0.25rem 0;
  }

  /* Футер */
  footer {
    padding-top: 1.5rem;
    font-size: 0.8rem;
  }

  /* О нас */
  .onas-header {
    font-size: 1.2rem;
    margin-top: 0.7rem;
  }

  /* Прелоадер */
  .preloader__spinner {
    width: 30px;
    height: 30px;
    border-width: 3px;
  }

  .header .logo {
      width: 65px !important;
      height: 65px !important;
      margin-left: -10px !important;
  }

  .nav-link:target {
    color: var(--color-green-dark);
  }

  .nav-link:target::after {
      width: 100%;
  }

  /* Альтернатива - стилизация при фокусе */
  .nav-link:focus {
      color: var(--color-green-dark);
      outline: none;
  }

  .nav-link:focus::after {
      width: 100%;
  }
}


@media (min-width: 768px) and (orientation: landscape) {
  .header {
    height: 70vh; 
  }
.cards-carousel {
    width: calc(100% - 15rem);
}
}