 
.work-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
}

 
.sidebar-area {
    width: 20%; 
    padding-right: 20px;
    box-sizing: border-box;
}

  
.work-single {
    width: 100%;
    /* padding: 3em 2em 5em; */
    display: flex;
    text-align: center;
    flex-direction: column;
}
.work-single p{
  font-size: clamp(18px, 2vw, 20px);
  /* margin: 0; */
}
.work-single h1 {
  padding: 0;
  margin: 1.6em 0 1em;
  color: #2a2e36;
}
.work-single .right-column h1 {
  padding: 0;
  margin: 0 ;
  color: #2a2e36;
}
.work-single h2 {
    font-size: 2.3vh;
    padding: 0;
   
    margin: 0;
}
.right-column
 h2 {
       font-size: clamp(22px, 3vw, 28px);
       padding: 0;
       color: #193549;
       /* text-transform: uppercase; */
       margin: 0 0 20px;
}

 
.top-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    /* border: 1px solid #92929240; */
    padding: 2%;
    align-content: center;
    align-items: flex-start;
    background: #fff;
    border-radius: 6px;
    /* box-shadow: 0px 0px 3px rgb(0 0 0 / 13%); */
}

 
.work-gallery {
    display: flex;
    width: 40%;
   
    align-content: space-around;
    flex-direction: column-reverse;
}

.main-image {
    flex: 1;
    width: 100%;
   
    position: relative;
 
}

.main-image img {
    width: 100%;
    height: 50vh;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

 
.work-container .gallery-thumbnails {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    justify-content: flex-start;
}

.work-container .gallery-thumbnail {
    cursor: pointer;
    width: 10vh;
    height: 10vh;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.work-container .gallery-thumbnail:hover {
    border-color: #333;
}

 
.work-container .right-column {
    flex: 1;
    padding-left: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 350px;
    gap: 10px;
}

.right-column .works-catalog {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* padding: 2%; */
}
 
.work-container .bottom-section {
    width: 100%;
    border-radius: 6px;
    /* box-shadow: 0px 0px 3px rgb(0 0 0 / 13%); */
    padding: 2%;
    background: #fff;
}

 
.work-container.work-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

 
.work-characteristics {
    display: flex;
    justify-content: space-between;
    margin: 0;
}

.characteristics-column {
    flex: 1;
    margin-right: 20px;
}

.characteristics-column:last-child {
    margin-right: 0;
}

.characteristics-column p {
    margin: 10px 0; 
}

 
.work-container .price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f8fdff;
    border-radius: 6px;
    box-shadow: 0px 0px 30px rgb(135 76 76 / 8%);
    margin-top: 10px;
    /* border: 1px solid #f0f0f0; */
}

.price-description p {
    font-size: 2.2vh;
    font-weight: bold;
    color: #161616;
    margin: 0;
}

.work-container .price-info {
    text-align: right;
}

.price-value {
    font-size: 3vh!important;
    font-weight: bold;
    margin: 0;
}

.btn-call-master {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
      background: rgb(216,69,224);
    font-size: 1.8vh;
    color: #fff;
   border-radius: 50px;
}
    text-decoration: none;
}

.btn-call-master:hover {
    background: rgb(187 69 224);
    color: #fff;
}
 
@media (max-width: 768px) {
    .work-container {
        flex-direction: column;
          padding: 2%;
    }
.top-section, .bottom-section  {
   
    padding: 4%;
 
}
    .work-single {
        width: 100%;
    }

    .work-container .sidebar-area {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .top-section {
        flex-direction: column;
    }

    .work-gallery {
        width: 100%;
        margin-bottom: 20px;
    }

  .work-container  .main-image {
        margin-left: 0;
        height: 400px;   }

  .work-container  .right-column {
        padding-left: 0;
    }

    .work-characteristics {
        /* flex-direction: column; */
    }

    .characteristics-column {
        margin-right: 0;
    }

    .price-container {
        flex-direction: column;
        text-align: center;
    }

    .price-info {
        margin-top: 15px;
    }

    .price-value {
        font-size: 20px;
    }
}
.work-characteristics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
}

.work-characteristics-table th,
.work-characteristics-table td {
    padding: 10px;
    border: 1px solid #d4d4d4;
    text-align: left;
}

.work-characteristics-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

 
.work-characteristics {
    display: flex;
}

.work-characteristics-table {
    display: none;
}

 
@media (max-width: 768px) {
    .work-characteristics {
        /* display: none; */
    }
     .right-column .works-catalog {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    /* padding: 2%; */
}
  .price-info {
        text-align: center;
        margin-top: 5px;
    }
.work-gallery {
    display: flex;
    /* max-height: 40vh; */
    /* height: 400px; */
    align-content: space-around;
    flex-direction: column-reverse;
    /* overflow: hidden; */
}
   
.work-container .gallery-thumbnails {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    height: auto;
    justify-content: flex-start;
}
    .price-value, .thickness {
     
        margin: 0 auto;
        text-align:center;
    }
    .work-characteristics-table {
        display: table;
        
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        font-size: 16px;
    }
    .work-characteristics-table tr {
    border-bottom: 1px solid #d4d4d4;  
}

    .work-characteristics-table th,
    .work-characteristics-table td {
        padding: 10px;
            border: none; /* Ð£Ð±Ð¸Ñ€Ð°ÐµÐ¼ Ð²ÑÐµ Ð±Ð¾Ñ€Ð´ÐµÑ€Ñ‹ */
        text-align: left;
    }

    .work-characteristics-table th {
        background-color: #f5f5f5;
        font-weight: bold;
    }
}
.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden; 
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;  
    scroll-behavior: smooth;
    width: 100%;  
    padding: 5px 0;
}

 
.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

 
.gallery-arrow {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    /* background-color: #416CFF; */
    color: #416CFF;
    font-size: 34px;
    font-weight: 400;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1;
    transform: translateY(-50%);
    user-select: none;
}

 
.left-arrow {
    left: 0;  
}

 
.right-arrow {
    right: 0; 
}

 
.gallery-thumbnails img {
    width: 60px;
    height: auto;
    cursor: pointer;
    border-radius: 5px;
    flex-shrink: 0;  
}
/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð¼Ð¾Ð´Ð°Ð»ÑŒÐ½Ð¾Ð³Ð¾ Ð¾ÐºÐ½Ð° */
/* ÐœÐ¾Ð´Ð°Ð»ÑŒÐ½Ð¾Ðµ Ð¾ÐºÐ½Ð¾ */
/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð¼Ð¾Ð´Ð°Ð»ÑŒÐ½Ð¾Ð³Ð¾ Ð¾ÐºÐ½Ð° */
.modal {
    display: none;
    position: fixed;
    z-index: 11000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* ÐšÐ¾Ð½Ñ‚ÐµÐ¹Ð½ÐµÑ€ Ð´Ð»Ñ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ */
.modal-content {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

/* ÐšÐ½Ð¾Ð¿ÐºÐ° Ð·Ð°ÐºÑ€Ñ‹Ñ‚Ð¸Ñ */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Ð¡Ñ‚Ñ€ÐµÐ»ÐºÐ¸ Ð´Ð»Ñ Ð»Ð¸ÑÑ‚Ð°Ð½Ð¸Ñ */
.modal-arrow {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}
.certificate-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fdff;
  padding: 20px;
  text-align: left;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  /* max-width: 700px; */
  margin: 20px auto;
  gap: 60px;
  align-content: flex-start;
}

.certificate-image-wrapper {
  flex: 0 0 30%;
}

.certificate-image {
  width: 100%;
  border-radius: 10px;
  transform: rotateX(50deg) rotateZ(-40deg); /* Наклон назад по оси X и поворот по оси Z */
  box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}


.certificate-content {
  flex: 1;
  /* text-align: left; */
}

.certificate-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #333;
}

.certificate-text {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
}

.certificate-btn {
  display: inline-block;
  background-color: #1399fc;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;

  transition: background-color 0.3s ease;
}

.certificate-btn:hover {
  background-color: #1d89d9;
      color: #fff;
}

