* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

a {
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.clients1 p{
  text-align: center;
  font-size: 38px;
  font-family: sans-serif;
  margin-bottom: 3svh;
  margin-top: 3svh;
}

.header {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
}

.container {
  display: flex;
  align-items: stretch;
}

/* Навигация активной вкладки */
.nav-item.active {
  background-color: #ef3f3f;
  color: white;
}

.logo {
  height: 100%;
  max-height: 90px;
}

.header-right {
  display: flex;
  flex-direction: column;
  justify-content: lef;
  flex-grow: 1;
  width: 80%;
}
.header-left {
  display: flex;
  align-items: center;
  justify-content: right;

}
.top-row {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 27px;
  padding: 5px;
}

.bottom-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  height: 50%;
  padding: 5px;
  width: 90%;
}

.phone {
  text-decoration: underline;
  color: #000;
}

.phone .code {
  text-decoration: underline;
  color: #aaa;
  font-weight: normal;
}

.nav-item {
  padding: 8px;
  background-color: #f3f3f3;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 2px;
  font-size: 14px;

}
.main1-text{
  font-size: 42px;
  text-align: center;
  font-weight: bold;
  line-height: normal;
  color: #000;
}
.main1-text2{
  font-size: 42px;
  text-align: center;
  line-height: normal;
  color: white;
}

  .main1{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70svh;
  background-image: url('images/27512c0cbb2b4033a1732640da816432.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding-top: 7svh;
  padding-bottom: 0; 
}

.main2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70svh;
  background-image: url('images/9b7d7ca9c0ee438593339839601a8d12.avif');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding-top: 7svh;
  padding-bottom: 0;
}
 .main3{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70svh;

  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
  url('images/f20859b1bfc0466c83972a811ac3f569.avif') center/cover no-repeat;

  padding-top: 7svh;
  padding-bottom: 0; 
  background-color: #000;
 }

  .main4{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70svh;
  background-image: url('images/Cam_com_1.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding-top: 7svh;
  padding-bottom: 0;
 }
.grey {
  background-color: rgba(221, 221, 221, 0.8);
  padding: 4svh;
}

.black {
  background-color: rgba(85, 85, 85, 0.8);
  padding: 3svh;
  text-align: center;
}

.konsultation {
  margin-top: 20px;
  text-align: center;
}

.consultation-form input {
  padding: 10px;
  margin: 5px;
  border-radius: 5px;
  border: black;
  width: 30%;
}

.consultation-form input {
  border: 4px solid #FFFFFF;

}

.consultation-form button {
    padding: 10px;
  margin: 5px;
  border: black;
  width: 17%;

  background: red;
  color: white;
  cursor: pointer;
  font-size: 20px;
}

.consultation-form button:hover {
  opacity: 0.9;
  
}

main.content {
  position: relative;
  min-height: 100%;
}

.home-bottom{
  display: flex;
   justify-content: center;
   gap: 10svh; 
   text-align: left;
   padding-top: 5svh;
}

.smalltext{
  font-size: 18px;
}
.centertext{
  text-align: left;
  padding-top: 5svh;

}
.center{
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;

  max-width: 105svh;
  margin-left: auto;
  margin-right: auto;
  
  }
.align-right {
  align-self: flex-end;

}
.home-h1{
  font-size: 38px;
  text-align: center;
  padding-top: 5svh;
}
.smallbtn{
  padding: 10px;
  margin: 5px;
  border: black;
  width: 17%;
  background: red;
  color: white;
  cursor: pointer;
  font-size: 20px;
}
.center button{
  margin-top: 5svh;
}
.img-main{
  width: 23svh;
  height: auto;
}

.content-section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.content-section.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.segment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 колонки */
  grid-auto-rows: auto;
  gap: 60px 80px; /* расстояние между блоками: по вертикали и горизонтали */
  justify-content: center;
  align-items: start;
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.segment {
  margin: 0 auto;
}

.segment-icon {
  width: 90px;
  height: 90px;
  border: 2px solid #c0a850;
  border-radius: 50%;
  padding: 10px;
  margin-bottom: 10px;
}

.segment .h {
  font-size: 25px;
  margin-bottom: 10px;
}

.segment p {
  font-size: 18px;
  color: #222;
  line-height: 1.5;
}

.segment-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.segment-btn {
  background: red;
  color: white;
  font-size: 16px;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
}

.hero {
  background: url('images/27512c0cbb2b4033a1732640da816432.jpg') no-repeat center;
  color: #fff;
  padding: 120px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  background: #007BFF;
  color: #fff;
  padding: 12px 25px;
  border-radius: 4px;
}

.features {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.feature {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
  margin-top: 60px;
}

.stat {
  flex: 1 1 150px;
  margin: 20px;
}

.stat span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.services article {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 6px;
}

.services-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
}

.services-title {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.3;
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.img-services{
  width: 35svh;
  height: auto;
}

.service-card {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
  width: 320px;
  text-align: left;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.card-heading {
  position: absolute;
  bottom: -20px;
  left: 0;
  background-color: #fff;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: bold;
  color: #577083;
  z-index: 1;
  max-width: 90%;
}

.service-content {
  padding: 40px 20px 20px; /* добавляем верхний отступ, чтобы не перекрыть текст */
  font-size: 14px;
  color: #555;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.price strong {
  color: #e53935;
  font-size: 18px;
  font-weight: bold;
}

.btn-red {
  background-color: #ff3e3e;
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s;
}

.btn-red:hover {
  background-color: #d63333;
}


.best-price {
  font-size: 14px;
  color: #ff3e3e;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.4;}
  
  .main-request{
  max-width: 115svh;
  margin: 0 auto;
  gap: 40px;
  display: flex;
  align-items: center;
  }
.description{
  font-size: 45px;
  max-width: 30%;
  line-height: normal;
}
.quality-content {
  max-width: 115svh;
  margin: 0 auto;
  gap: 40px;
}

.quality-section {
  background-color: rgb(242, 240, 240);
  padding: 30px 10px;
}

.quality-content {
  max-width: 115svh;
  margin: 0 auto;
  gap: 40px;
}
.quality-main{
    display: flex;
  align-items: center;
  justify-content: space-between;
}

.quality-text {
  flex: 1;
}

.quality-title {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 500;
}

.quality-description {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  max-width: 500px;
}

.quality-image {
  flex: 0 0 200px;
}

.clients {
  margin-bottom: 60px;
  text-align: center;
  max-width: 115svh;
    display: flex;
  align-items: center;
  justify-content: space-between;

}

.clients__logos {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.clients__logos .img1 {
width: 11svh;
height: auto;
}
.clients__logos .img2 {
width: 20svh;
height: auto;
}

.contact {
  background: #f9f9f9;
  padding: 40px 20px;
  border-radius: 6px 6px 0 0;
  margin-bottom: 40px;
}

.stats-section {
  background-color: rgb(228, 228, 228);
  padding: 60px;
  text-align: center;
  margin-top: 5svh;
}

.stats-title {
  font-size: 38px;
  margin-bottom: 10svh;
  font-weight: normal;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  position: relative; /* нужно для ::after */
  padding-top: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgb(66, 66, 66);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-item.border-divider::after {
  content: "";
  position: absolute;
  top: -7svh; 
  bottom: 0svh; 
  right: 0;
  width: 1px;
  background-color: rgb(66, 66, 66);
}
.stat-item.border-divider2::after {
  content: "";
  position: absolute;
  top: -3svh; 
  bottom: 11svh; 
  right: 0;
  width: 1px;
  background-color: rgb(66, 66, 66);
}
.stat-item.border-divider3::after {
  content: "";
  position: absolute;
  top: -3svh; 
  bottom: -7svh; 
  right: 0;
  width: 1px;
  background-color: rgb(66, 66, 66);
}

.stat-item img {
  width: 6svh;
  height: auto;
  margin-bottom: 15px;
}

.stat-number {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #333;
}

/* Удаляем правую границу у каждого 4-го элемента */
.stat-item:nth-child(4n) {
  border-right: none;
}

/* Удаляем нижнюю границу у последних 4-х элементов */
.stat-item:nth-last-child(-n+4) {
  border-bottom: none;
}

/* Удаляем верхнюю границу у первых 4 элементов (первый ряд) */
.stat-item:nth-child(-n+4) {
  border-top: none;
}

/* Удаляем левую границу у каждого 1-го элемента в строке */
.stat-item:nth-child(4n + 1) {
  border-left: none;
}


.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr; /* 25% + 25% + 50% */
  grid-template-rows: auto auto;
  gap: 20px 0px; /* между строками 20px, между колонками 5px */
  max-width: 90svh;
}

.form-layout input,
.form-layout textarea {
  background-color: transparent;
  border: none;
  border-bottom: 3px solid #ffffff;
  color: white;
  padding: 10px 5px;
  font-size: 16px;
  outline: none;
  width: 100%;
}

.form-layout input::placeholder,
.form-layout textarea::placeholder {
  color: white;
  opacity: 0.7;
}

.form-layout .message {
  grid-row: 1 / span 2; 
  grid-column: 3 / 4;
  resize: none;
  min-height: 77%;
  padding-left: 20px;
    font-family: 'Open Sans', sans-serif;
    margin-left: 5%;

}

.form-layout .half {
  width: 80%;
    padding-left: 20px;

}
.consultation-form3 button:hover{
opacity: 0.9;}

  .container2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    max-width: 180svh;
  }

  .container1 {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(242, 240, 240);
  }

  .left {
    font-size: 5svh;
    color: #000;
    line-height: 1.4;
  }

  .arrow {
    font-size: 7svh;
    margin-left: 30svh;
    margin-right: 15svh;
  }

  .form {
    display: flex;
    flex-direction: column;
    width: 300px;
  }

  .form input {
    font-size: 16px;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-bottom: 2px solid #000;
    background: transparent;
    outline: none;
  }

  .form button {
    background-color: #ff4343;
    color: white;
    font-size: 16px;
    border: none;
    padding: 12px 0;
    cursor: pointer;
  }

  .form button:hover {
    background-color: #e03e3e;
  }

.flip-on-scroll {
  opacity: 0;
  transform: rotateX(90deg);
  transition: all 0.8s ease-out;
  transform-origin: center;
}

.flip-on-scroll.visible {
  opacity: 1;
  transform: rotateX(0);
}

.slide-on-scroll {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease-out;
}

.slide-on-scroll.visible {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 768px) {

  .container {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  
  .header-left,
  .header-right {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .header-right {
    align-items: center;
  }

  .top-row {
    flex-direction: column;
    font-size: 20px;
  }

  .bottom-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
  }

  .nav-item {
    width: 90%;
    text-align: center;
    font-size: 16px;
  }

  .logo {
    max-height: 70px;
    margin-bottom: 10px;
  }

  .phone {
    font-size: 20px;
  }

  .clients p {
    font-size: 24px;
    margin: 20px 0;
  }
    .consultation-form input {
    width: 80%;
    font-size: 16px;
  }

  .consultation-form button {
    width: 60%;
    font-size: 18px;
  }

    .container2 {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    gap: 30px;
  }

  .left {
    font-size: 26px;
    text-align: center;
    line-height: 1.5;
  }

  .arrow {
    margin: 0;
    font-size: 40px;
  }

  .form {
    width: 100%;
    max-width: 320px;
  }

  .form input,
  .form button {
    font-size: 16px;
    width: 100%;
  }
   .quality-main {
    flex-direction: column;
    gap: 20px;
  }

  .quality-title {
    font-size: 28px;
    text-align: center;
  }

  .quality-description {
    font-size: 15px;
    text-align: center;
    max-width: 100%;
    padding: 0 10px;
  }

  .quality-image {
    flex: none;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .quality-image img {
    max-width: 15svh;
    height: auto;
  }

  .quality-text {
    width: 100%;
  }
    .stats-section {
    padding: 30px 20px;
  }

  .stats-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr; /* 2 колонки на мобильных */
    gap: 20px;
  }

  .stat-item {
    border: none;
    padding: 20px 10px;
  }

  .stat-item::after {
    display: none !important; /* отключаем псевдо-границы */
  }

  .stat-number {
    font-size: 22px;
  }

  .stat-label {
    font-size: 13px;
  }

  .stat-item img {
    width: 40px;
    margin-bottom: 10px;
  }
    .clients1 p {
    font-size: 24px;
    margin: 20px 0;
  }

  .clients__logos .img1,
  .clients__logos .img2 {
    margin-top: 5svh;  }
  .clients__logos .img1{
    width: 15svh;
height: auto;
  }
    .clients__logos .img2 {
      width: 20svh;
      height: auto;
    }
  .clients__logos {
    gap: 20px;
  }
  .home-h1 {
    font-size: 24px;
    padding: 30px 10px 10px;
  }

  .home-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
  }

  .smalltext {
    font-size: 16px;
    text-align: center;
  }

  .centertext {
    text-align: center;
    padding: 20px 15px;
  }

  .smallbtn {
    width: 80%;
    font-size: 18px;
    padding: 12px;
  }

  .align-right {
    align-self: center;
  }
        .contact-top {
        flex-direction: column;
      }

      .contact-columns {
        flex-direction: column;
      }

      .contact-column {
        margin-bottom: 30px;
        margin-right: 0;
      }

      .contact-heading {
        margin-bottom: 30px;
      }
}

    .contact-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 60px 20px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .contact-top {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      margin-bottom: 40px;
    }

    .contact-heading {
      font-size: 48px;
      font-weight: normal;
      line-height: 1.1;
      margin-right: 40px;
    }

    .contact-columns {
      display: flex;
      flex: 1;
      justify-content: space-between;
      flex-wrap: wrap;
    }

    .contact-column {
      flex: 1;
      min-width: 250px;
      margin-right: 30px;
    }

    .contact-column:last-child {
      margin-right: 0;
    }

    .contact-column h3 {
      font-size: 18px;
      color: #444;
      margin-bottom: 15px;
    }

    .contact-column p {
      margin: 6px 0;
      font-size: 16px;
      color: #000;
    }

    .contact-column a {
      color: #000;
      text-decoration: underline;
    }

    .contact-map {
      width: 100%;
      height: 400px;
      border: none;
    }

    .policytext{
      font-size: 14px;
      max-width: 105svh;
    }
    .centered{
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .policytext .p1{
      padding-bottom: 2svh;
      padding-top: 2svh;
    }
    .policytext h1{
      font-weight: normal;
      font-size: 38px;
      text-align: center;
      margin-top: 4svh;
      margin-bottom: 3svh;
    }