@font-face {
	font-family: 'OpenSans'; 
	src: local('Font Name'),
		url(./fonts/OpenSans-VariableFont_wdth\,wght.ttf); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
  }

  section {
    padding: 80px 0;  
    margin-bottom: 0;  
  }
  
section + section {
    margin-top: 0;  
}
/* ---------------------------------HEADER-------------------------------- */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}
  
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.contact-phone, 
.contact-email {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.contact-phone:hover, 
.contact-email:hover {
  color: red;
}

.contact-phone::before {
  content: "📞";
  margin-right: 8px;
  font-size: 14px;
}

.contact-email::before {
  content: "✉️";
  margin-right: 8px;
  font-size: 14px;
}
  
.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}
  
.logo:hover img {
    opacity: 0.9;
}
  
.main-nav {
    display: flex;
}
  
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}
  
.nav-list li a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}
  
.nav-list li a:hover {
    color: red;
}
  
.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: red;
    transition: width 0.3s ease;
}
  
.nav-list li a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
  .main-header {
    padding: 10px 0;
  }

  .header-container {
    flex-wrap: wrap; 
    justify-content: center;
    gap: 10px;
  }

  .logo img {
    height: 35px; 
  }

  .main-nav {
    width: 100%;
    order: 3; 
    justify-content: center;
  }

  .nav-list {
    gap: 15px; 
  }

  .nav-list li a {
    font-size: 14px;
  }

  .header-contacts {
    align-items: center;
    flex-direction: row;
    gap: 15px;
  }

  .contact-phone, 
  .contact-email {
    font-size: 14px;
  }

  @media (max-width: 480px) {
    .contact-email {
      display: none;
    }
    .nav-list {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
  }
}

/* ---------------------------------END_HEADER-------------------------------- */

/* ---------------------------------FIRST_SECTION-------------------------------- */
.welcome-info {
    position: relative;
    width: 100%;
    height: 95vh;
    min-height: 600px;
    overflow: hidden;
    padding: 40px; /* Отступ от краёв */
    color: white;
    display: flex;
}

.cat {
    background: url('./roll-image/original_cat_redact1.png') no-repeat center;
    background-size: 100% 100%;    
}

.cat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: left;
    margin-top: 5%;
    margin-left: 5%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.sub{
    margin-bottom: 2rem;
    font-size: 1.4rem;
    line-height: 1.6;
}

.fire::before {
  content: url(./icons/fire.png);
  width: 32px;
  height: 32px;
  background-size: contain;
  margin-right: 10px;
  vertical-align: middle;
}

.electro::before {
  content: url(./icons/electro.png);
  width: 32px;
  height: 32px;
  background-size: contain;
  margin-right: 10px;
  vertical-align: middle;
}

.safety::before {
  content: url(./icons/safety.png);
  width: 32px;
  height: 32px;
  background-size: contain;
  margin-right: 10px;
  vertical-align: middle;
}

.lab::before {
  content: url(./icons/lab.png);
  width: 32px;
  height: 32px;
  background-size: contain;
  margin-right: 10px;
  vertical-align: middle;
}

.modern::before {
  content: url(/icons/technology.png);
  width: 24px;
  height: 24px;
  background-size: contain;
  margin-right: 10px;
  vertical-align: middle;
}

.allday::before {
  content: url(/icons/24-7.png);
  width: 24px;
  height: 24px;
  background-size: contain;
  margin-right: 10px;
  vertical-align: middle;
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title, .hero-subtitle {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
  animation-delay: 0.3s;
}

@media (max-width: 768px) {
  .welcome-info {
    height: auto; 
    min-height: 100vh; 
    padding: 20px; 
    align-items: center;
  }

  .cat {
    background-size: cover;
  }

  .hero-content {
    margin: 0;
    text-align: center;
    width: 100%;
  }

  .hero-title {
    font-size: 2rem;
    margin-top: 20px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .sub {
    font-size: 1rem; 
    text-align: left; 
    display: inline-block; 
  }

  .fire::before, .electro::before, .safety::before, 
  .lab::before, .modern::before, .allday::before {
    transform: scale(0.8);
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ---------------------------------FIRST_SECTION-------------------------------- */




/* ---------------------------------SERVICE_SECTION-------------------------------- */
/* Основные стили секции */
.services-section {
  padding: 80px 0;
  background: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}



.container_services {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

.subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: red;
  margin-bottom: 40px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.subtitle:hover {
  text-decoration: underline;
}

/* Стили слайдера */
.services-slider {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
  width: 100%;
}

.services-wrapper {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  gap: 30px;
  padding: 20px 0;
  width: 100%;
}

.service-card {
  min-width: 300px;
  padding: 30px 10px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 80px;
  width: 80px;
  background-size: cover;
  background-position: center;
  margin: 0 auto;
}

.service-info {
  padding: 20px;
}

.service-title {
  text-align: center;
  margin-bottom: 20px;
  transition: color 0.2s ease, font-size 0.3s ease;
  cursor: pointer;
}

.service-title:hover {
  color: red; 
  transform: scale(1.001);
}

.service-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: red;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
}

.service-btn:hover {
  background: #990303;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 1;
}

.left-arrow {
  left: -20px;
}

.right-arrow {
  right: -20px;
}

.modal-content {
  background: white;
  margin: 5% auto;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  max-height:800px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  color: #aaa;
  cursor: pointer;
  z-index: 4000;
  padding: 10px;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

.modal-container {
  display: flex;
  min-height: 800px;
  width: 1200px;
}

/* Левая часть - фильтры */
.filter-menu {
  width: 250px;
  background: #f5f5f5;
  padding: 30px 20px;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-item {
  padding: 12px 15px;
  margin-bottom: 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
}

.filter-item:hover {
  background: red;
  color: white;
}

.filter-item.active {
  background: red;
  color: white;
}

/* Правая часть - список услуг */
.services-list {
  flex: 1;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  height: 100%;
  overflow-y: auto;
  max-height: 800px;
}

.service-modal-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-modal-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
}

.service-modal-category {
  display: inline-block;
  padding: 3px 8px;
  background: red;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: white;
}

.service-modal-description {
  color: #666;
  font-size: 0.9rem;
}

/*Слайдер*/
.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: red;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .services-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services-wrapper {
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 30px;
  }

  .service-card {
    min-width: 260px; 
    padding: 20px 10px;
  }

  .slider-arrow {
    display: none;
  }

  .modal-container {
    flex-direction: column; 
    width: 100%;
    min-height: auto;
  }

  .modal-content {
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-height: 100vh;
    overflow-y: auto;
  }

  .filter-menu {
    width: 100%;
    padding: 15px;
    display: flex;
    overflow-x: auto; 
    white-space: nowrap;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .filter-list {
    display: flex;
    gap: 10px;
  }

  .filter-item {
    padding: 8px 15px;
    margin-bottom: 0;
    font-size: 0.9rem;
  }

  .services-list {
    padding: 15px;
    grid-template-columns: 1fr;
    max-height: none;
  }

  .close-btn {
    top: 5px;
    right: 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
  }
}

/* ---------------------------------END_SERVICE_SECTION-------------------------------- */


/* ---------------------------------CONTACT-US_SECTION-------------------------------- */
.contact-us {
    position: relative;
    width: 100%;
    height: 95vh; 
    min-height: 600px; 
    overflow: hidden;
    padding: 40px; 
    color: white;
    display: flex;
}

.mail {
    background: url('./roll-image/call-center-5.jpg') no-repeat center center;
    background-size: cover;     
}

.mail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.contact-section {
  position: relative;
  width: 100%;
  height: 95vh; 
  min-height: 600px; 
  overflow: hidden;
  padding: 40px; 
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  max-width: 500px;
  width: 100%;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.section-title {
  text-align: center;
  margin: 30px 0 30px 0;
  color: #333;
  font-size: 2rem;
}

/* Стили формы */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 1px solid #e95159;
  border-radius: 5px;
  font-size: 16px;
  transition: border 0.3s;
}

.form-group input:focus {
  border-color: #b51b33;
  outline: none;
}

.submit-btn {
  background: red;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #dc143c;
}

@media (max-width: 768px) {
  .contact-us, 
  .contact-section {
    height: auto; 
    min-height: 100vh;
    padding: 40px 15px; 
  }

  .contact-container {
    padding: 25px 20px; 
    margin: 0 auto;
    width: 100%;
    max-width: 100%; 
  }

  .section-title {
    font-size: 1.6rem; 
    margin: 10px 0 20px 0;
  }

  .contact-form {
    gap: 15px;
  }

  .form-group input {
    padding: 12px; 
    font-size: 16px; 
  }

  .submit-btn {
    padding: 14px;
    font-size: 18px; 
  }
}

@media (max-width: 480px) {
  .contact-container {
    background: rgba(255, 255, 255, 0.95); 
    border-radius: 8px;
  }
}

/* ---------------------------------END CONTACT-US_SECTION-------------------------------- */

/* Секция партнёры */
.container_partners {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Секция партнёры */

/* ---------------------------------LICENSE_SECTION-------------------------------- */
.gallery-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: #333;
}

.content-wrapper {
  display: flex;
  gap: 30px;
}

.award {
  margin-bottom: 5px;
}

.text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
}

.text-block p {
  font-size: 1.2rem;
  color: #444;
  margin: 0;
  padding: 10px 0;
  position: relative;
}

.text-block p::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: red;
}

.gallery-block {
  flex: 1;
  position: relative;
}

.thumbnail-container {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.thumbnail {
  width: 150px;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s;
}

.thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 40px 15px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .text-block {
    padding: 20px;
    order: 1;
  }

  .text-block p {
    font-size: 1.1rem;
    text-align: center;
  }

  .gallery-block {
    order: 2;
  }

  .thumbnail-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .thumbnail-container {
    grid-template-columns: 1fr;
  }

  .thumbnail {
    height: 200px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* ---------------------------------LICENSE_SECTION-------------------------------- */



/* ---------------------------------CONTACT & MAP_SECTION-------------------------------- */
.contacts-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.contacts-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.contacts-info {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 24px;
  text-align: center;
  color: #0066cc;
  margin-right: 15px;
  font-size: 1.2rem;
}

.contact-link, .contact-text {
  font-size: 1.1rem;
  color: #444;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-link:hover {
  color: red;
}

.work-hours {
  margin: 40px auto ;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.work-hours .contact-text {
  margin-bottom: 20px;
}

.hours-title {
  text-align: center;
  font-size: 1.8rem;
  margin: 30px 0;
  color: #333;
}

.hours-text {
  margin: 5px 0;
  color: #666;
}

.contacts-map {
  flex: 1;
  min-width: 300px;
  min-height: 400px;
  background: #eee;
}

@media (max-width: 768px) {
  .contacts-section {
    padding: 40px 0;
  }

  .contacts-container {
    flex-direction: column;
  }

  .contacts-info {
    min-width: 100%;
    padding: 20px;
  }

  .section-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .contact-item {
    justify-content: center;
  }

  .contact-link, .contact-text {
    font-size: 1rem;
  }

  .work-hours {
    margin: 30px 0;
    align-items: center;
  }

  .hours-title {
    font-size: 1.4rem;
    margin: 20px 0;
  }

  .contacts-map {
    min-width: 100%;
    min-height: 300px;
    order: 2;
  }
}

@media (max-width: 480px) {
  .contact-item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .contact-icon {
    margin-right: 0;
  }
}

/* ---------------------------------CONTACT & MAP_SECTION-------------------------------- */