/* Переменные */

:root {
    --color-white: #fff;
    --color-blue: #2176bc;
    --color-text: #7a7a7a;
    --color-gray: #e0dddd70;
    --color-light-gray: #e9e9e9;
    --color-text-black: #262626;

    --color-gray-opacity: #e0dddd70;

    --background-black-opacity: rgb(0, 0, 0, .6);
    --background-light-black-opacity: rgb(0, 0, 0, .5);
    --background-grey: rgb(225, 225, 225, .3);

    --box-shadow-color: 0 0 10px rgb(0 0 0 / 0.3);
 
 
}


html {
  scroll-behavior: smooth;
}

/* Общие  стили */

a.link {
  color: var(--color-blue);
  text-decoration: none;
  transition: opacity .025s ease;
}

a.link:hover {
  opacity: 70%;
}

.block-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bold {
  font-weight: 700;
  color: var(--color-text-black);
}

.block {
  display: block;
}

.second-title {
position: relative;
font-size: 28px;
text-align: center;


}

.second-title::after {

  --inderline-width: 60px;

  content: "";
  display: inline-block;
  width: var(--inderline-width);
  height: 2px;
  
  position: absolute;
  bottom: -7px;
  left: calc(50% - var(--inderline-width) /2);

  background: var(--color-blue);
}

.section-discription {
  margin-bottom: 40px;
  font-size: 18px;
  text-align: center;
  color: var(--color-text-black);
}

.section-grey {
  background-color: var(--background-grey)
}

.active {
  color: var(--color-blue);
}

/* Слайдер изображения*/

.slider {
  position: relative;
  display: flex;
  max-width: 100%;
  overflow: hidden;
}

.slider__wrapper {
  flex: 1 1 100%;
  display: flex;
  justify-content: space-between;
  min-width: 100%;

  transition: all .10s ease;
}

.slider__link {
  flex: 1 1 33%;
}

.slider__image {
  width: 100%;
  max-width: 300px;
}

.slider_input {
  display: none;
}

.slider_controls {
  position: absolute;
  bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}



/* Header стили */

.header {   
    position: relative;
    bottom: 80px;
    height: 95vh;
    clip-path: polygon(100% 0, 100% 88%, 50% 100%, 0 88%, 0 0);


}

.header__background {
  position: absolute;
  height: inherit;
  width: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(70%);
 


}

.header__background-wrapper {  
  position: absolute;
  height: inherit;
  width: 100%;

  background:  rgba(223, 19, 19, 0);

  z-index: 2;
}                              

.header-top {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  color: #000;
  height: 80px;
  background-color: var(--color-gray-opacity);

  z-index: 1;
}

.header-top  a.link { 
  color: #000;
 }

.logo {
  width: 450px;
  font-size: 35px;
}

.menu-element {
  margin-right: 25px;   
  font-size: 22px;
  font-style: italic;
}

.menu-element:last-child {
  margin-right: 0;
}

.menu-element a.link.active, .menu-element a.link:hover {
  color: var(--color-blue);
}
.menu-element__link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-element__link.home svg{
  display: inline-block;
  width: 24px;
  height: 24px;

}


.phone-Info{
display: flex;
align-items: center;
flex-direction: column-reverse;
font-size: 22px;
font-style: italic;
}


.header-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 80px);  /* Расчет высоты */
  
  color: var(--color-text-black);
  z-index: 1;
}

.header-center__wrapper {
  width: 100%;
  padding: 20px 50px;
  text-align: left; 
}

.name {
  font-size: 120px; 
  line-height: 74px; 
  font-style: oblique;
  color: lightskyblue;
  filter: drop-shadow(10px 10px 10px #000);
}

.description {
  display: inline-block;
  width: 100%;
  font-style: oblique;
  color: lightpink;

  font-size: 62px;
  line-height: 2.5em;
  white-space: nowrap;

  overflow: hidden;

  animation: print-text 3s steps(100); 
  filter: drop-shadow(10px 10px 10px #000);
}

@keyframes print-text {
  from {
    width: 0;
  }
}

/* Секция О компании*/

.about_company {
  padding: 100px 0 40px;
  display: flex;
  align-items: center;
  padding-bottom:  60px;
}

.about_company .left {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;

}

.about_company .right {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: stretch;
  padding: 50px;

}

.about_company__image {
  width: 600px;
  margin: 0 auto;
  border-radius: 20px;
  filter: drop-shadow(10px 10px 10px #000);
}

.about_company__title {
  font-size: 32px;
  flex-direction: column;
  margin-block-end: 40px;
 
}


.about_company__description {
  font-size: 26px;
  color: var(--color-text);
  margin-bottom: 15px;
  padding-right: 90px;

}

ul.about_company__extra {
  color: var(--color-text);
  font-size: 20px;
  margin-top: 20px;
}


.about_company__extra-element {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.about_company__extra-element:last-of-type {
  margin-bottom: 0;
}

.about_company__extra-icon {
  width: 24px;
  height: 24px;
  margin-right: 5px; 
}


.about_company__extra-icon svg {
  color: var(--color-green);
}

.about_company__extra-title {
  margin-right: 5px;
}

/* Достижения */

.achievements {
  flex-direction: column;
  position: relative;
  padding: 40px 0;
}

.achievements::before, .achievements::after {
  content: "";
  position: absolute;
  border: 80px solid transparent; 

}

.achievements::before {
  border-top: 30px solid  #fff;
  top: 0;
}

.achievements::after {
  border-top: 30px solid  var(--background-grey);
  bottom: -110px;
}

.achievements-list__view:first-of-type {
  animation: autoplay 20s infinite;
}

@keyframes autoplay {
  0% {
    margin-left: 0;   
  }

  10% {
    margin-left: 0;   
  }

  20% {
    margin-left: -100%;
  }

  40% {
    margin-left: -100%;
  }

  60% {
    margin-left: -200%;   
  }

  80% {
    margin-left: -200%;
  }

  100% {
    margin-left: 0%;
  }

}
/* Партнеры*/

.partners {
  padding: 80px 0 40px;
}

.partners-wrapper {
  padding-top: 40px;
}


.partners-list__row {
  display: flex;
  justify-content: space-around;

  padding-left: 40px;
  padding-right: 40px;
}

.partners-list_elements {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;

  width: 22%;
  margin-bottom: 30px;
  border-radius: 5px;
  padding: 20px 10px;
 
  

  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
}

.partners-image {
  max-width: 200px;
  margin-bottom: 20px;
  display: flex;
  vertical-align: middle;
}

.partners-title {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--color-text-black);
    justify-content: flex-end;
    align-items: flex-end;

}


/* Продукты */

.products {
  padding: 80px 20px;

}

.products__list {
  padding: 40px;
  display: flex;
  flex-wrap: wrap;

  justify-content: space-around;
}

.products-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;

  width: 32%;
  margin-bottom: 30px;
  border-radius: 5px;
  padding: 40px 10px;

  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
}


.products-image {
  width: 150px;
  margin-bottom: 20px;
}

.products-title {
  margin-bottom: 15px;
  font-size: 24px;

  color: var(--color-text-black);
}

.products-text {
  color: var(--color-text);
  margin-bottom: 10px;
}

.products-text:last-of-type {
  margin-bottom: 0;
}


.button-container {
  display: flex;
  justify-content: center;
}

.catalog-btn {

    display: inline-block;          
    background-color: var(--color-blue);      
    color: white;                   
    padding: 12px 24px;             
    text-decoration: none;          
    border-radius: 5px;             
    font-size: 35px;                
    font-weight: 500;               
    text-align: center;             
    border: none;                   
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2); 
    cursor: pointer;                
    transition: all 0.3s ease;      
    line-height: 1.5;               
}


/* Контакты */

.contact_section {
  padding: 80px 0;
}

.container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.contacts {
    flex: 1 1 300px;
    padding: 20px;
  
    margin-bottom: 50px;
    font-size: 30px;
    color: var(--color-text);
}

.map__container {
  flex: 1 1 300px;
}


.map {
    flex: 1 1 300px;
    width: 886px;
    height: 579px;
    padding: 20px;
    width: 100%; 
    margin: 0 auto;
    height: 500px;
} 



@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
}

/* Подвал сайта */
.footer {
  background-color: var(--color-gray);
  padding: 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

/* Левый блок */

.footer-left {
  flex: 1;
  min-width: 150px;
  padding-left: 100px;
}

.logo_footer {
  height: 50px;
}

.rights {
  margin-top: 10px;
  font-size: 14px;
}

/* Центральный блок */
.footer-center {
  flex: 2;
  min-width: 200px;
  text-align: center;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #000;
}

/* Правый блок */
.footer-right {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.contact {
  margin: 0;
  font-size: 18px;
}



/*Политика в области качества */

.policies {

  display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 40px;

}

.t3-content {
    padding-top: 17px;
    padding-bottom: 17px;
  display: flex;
}

.item-page {
  padding: 20px 40px;
}

.certificates-list__row {
    display: flex;
    justify-content: space-evenly;
}

.certificate-image {
  max-width: 80%;
  display: block;
}

/*Каталог*/

.row mb-4 {
  display: flex;

}

.card {
    max-width: 100%;
    margin: 0 auto; 
}


.card-img-top {
    max-width: 300px;
    height: auto;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
}

.card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--color-text-black);
}



.card-title a {
    color: var(--color-text-black) !important;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--color-blue) !important;
    text-decoration: none;
}

.card-text {
    font-size: 1.2em;
    color: var(--color-text);
}