body {
    margin: 0;
    padding: 0;
    background: url('../images/background.svg') no-repeat center top;
    background-size: cover;
    background-color: #514d4d;
    font-family: 'Roboto Slab', serif;
}
@media (max-width: 768px) {
    body {
        background: none;
        background-color: #514d4d;
    }
}
@media (max-width: 768px) {
    .logo-container {
        justify-content: center;
        width: 100%;
        display: flex;
    }
}

.hover-text:hover {
    color:#f5c02e !important;
}
.bg-orange-color {
    background-color: #f5c02e;
}
.bg-orange-color:hover {
   color: #262321;
}
.hover-bg:hover {
    background-color: #f5c02e;
}
.active_button {
    background-color: #f5c02e;
    color: white;
}
.textColorActive {
    color:#f5c02e !important;
}
.bg-orange-my {
  background-color: #f5c02e;
  color: #FFFFFF;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
  display: block;
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.25);
}
.imagesWidthSlider {
   object-fit:contain;
   border-radius: 20px;
}

.textBlock {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    margin-top: 70px;
    font-size: 20px;
}
.bg-custom-262321 {
    background-color: #262321;
    opacity: 0.9;
}

.work-cost div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.tarif-img {
    max-width: 90%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    border-radius: inherit;
    max-height: 15rem;
}
.choose img {
    width: 60%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.about-text {
    text-align: unset;
}
@media (max-width: 768px) {
    .choose {
        margin-top: 15px;
    }
    .choose img {
        width: 90%;
    }
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.gallery a {
    display: block;
    width: 30%;
    max-height: 30%;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.custom-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.custom-gallery a {
    display: block;
    width: 20rem;
    height:20rem;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.custom-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.custom-gallery img:hover {
    transform: scale(1.05);
}
.inner-slider {
    width: 80%;
    margin: 0 auto;
}
.inner-slider img {
    width: 100%;
    height: auto;
}

@media (max-width: 415px) {
    .icons-mob {
        margin-left: 20px;

    }
    .tel-mob {
        font-size: 13px;
    }
}
@media (max-width: 860px) {
    .text-menu   {
        font-size: 0.8rem;

    }

}

@media (max-width: 800px) {
.service-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
}

.buttonPortfolioSee {
    background-color: #FF9800;
    color: #FFFFFF;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
    display: block;
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 20rem;
    height: 55px;
    align-content: center;
}
.FAQ {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    margin-top: 40px;
    font-size: 20px;
}
.nameBlock {
    font-family: 'Roboto', serif;
    font-weight: bold;
}
.marginBlock {
    margin-top: 2rem;
}


.questions-container {
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    width: 90%;
    margin: 20px auto;
    font-family: 'Roboto Slab', serif;
    font-size: 1em;
    display: flex;
    flex-direction: column;
}
.question {
    background-color: #333;
    padding: 15px;
    margin-top: 10px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.answer {
    display: none;
    background-color: #f8f6f6;
    padding: 15px;
    border-radius: 10px;
    color: black;
}
.arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
    color:  #f5c02e;
}
.arrow.up {
    transform: rotate(180deg);
}
.imgRew {
    margin-top: 10px;
    height: 10rem;
}
.modal-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    background-color: transparent;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px; /* Максимальна ширина модального вікна */
    width: 100%; /* Для адаптації під мобільні пристрої */

}

.modal-center-thank {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    background-color: transparent;
    border-radius: 0.5rem;
   
    max-width: 500px; /* Максимальна ширина модального вікна */
    width: 100%; /* Для адаптації під мобільні пристрої */


}
.vidgyku {
   /*  width: 80%; */
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.arrow-slide-left {
    left: 20%;

}
.arrow-slide-right {
    right: 20%;
}
.review-card {
    background-color: #262321;
    opacity: 0.9;
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 560px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    flex: 0 0 100%; /* Один елемент за замовчуванням */
    transition: transform 0.5s ease-in-out;
}
.review-card img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.review-card h5 {
    color: #f5c02e;
}

.bg-blog_1 {
    background-image: url('../images/remont_kvartir/blog/1.PNG');
    background-size: cover;
    background-position: center;
}

.footer {
 background-color: #333;
    color: #fff;
    padding: 20px 0;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.footer-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f5c02e;
    font-family: 'Roboto Slab', serif;
}

.footer-left span {
    margin: 0 5px; /* Додаємо відступи між елементами */
    display: block;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-right a {
    margin-left: 10px;
}

.promo-block {
    overflow: hidden;
    background-color: #942617;
    color: #FFFAF8;
    width: 100%;
    position: relative;
    z-index: 1;
    font-family: 'Roboto Slab', serif;
    font-size: 18px;
    white-space: nowrap;
    margin-top: 10px;
    height: 55px;
    display: flex;
    align-items: center;
}

.marquee {
    white-space: nowrap;
    display: inline-block;
    position: absolute;
    will-change: transform;
    left: 100%;
}

.offer-img{
    display: inline;
    vertical-align: middle;
}

.marquee strong {
    font-weight: bold;
}

.myArrow {
    color:#f5c02e;
    z-index: 60;
}
.textCard {
    background-color: #262321;
    opacity: 0.9;
    text-align: center;
    width: 100%;
    height: 30px;
}

.block-main-center {
    background: url('../images//slider/10.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    width: 100%;

}
.imgPerevagu {
    margin-left: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}
.blockPerevagu {
    width: 100%;
    max-width: 70rem;
    margin: auto;
    margin-top: 70px;
}
.about-container {
    /* background-color: #2B2827;*/
     padding: 20px;
     border-radius: 10px;
     color: #fff;
     width: 90%;
     margin: 20px auto;
     font-family: 'Roboto Slab', serif;
     font-weight: bold;
     font-size: 1em;
     display: flex;
     justify-content: space-between;
     text-align: justify;
 }
 @media (max-width: 1000px) {
     .about-container {
         padding: 20px;
         border-radius: 10px;
         color: #fff;
         width: 90%;
         margin: 20px auto;
         font-family: 'Roboto Slab', serif;
         font-weight: bold;
         font-size: 1em;
         display: flex;
         flex-direction: column;
         align-items: center;
         text-align: justify;
     }

     .about-container img {
         margin-top: 20px;
         height: auto;
         max-width: 400px;
         border-radius: 10px;
         object-fit: cover;

     }

     .about-container p {
         margin-bottom: 15px;
     }
 }
 .about-container img {
    max-width: 400px;
    margin-left: 10px;
}
.portfolioWidth {
    width: 100%;
    max-width: 50rem;
}
.AdminportfolioWidth {
    width: 100%;
    max-width: 50rem;
}
.description p {
    margin-top: 0.5m; /* Відстань між параграфами */
    margin-bottom: 0; /* Відстань між параграфом і наступним елементом */
}



.nav-tabs-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 20px;
    justify-items: center;
    margin-left: 5%;
    margin-right: 5%;
}

.nav-tab {
    padding: 10px 15px;
    color: #FFFAF8;
    text-align: center;
    border: 2px solid transparent;
    border-bottom: none;
    cursor: pointer;
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    font-size: 20px;
}

.nav-tab.active {
    color: #f5c02e;
}
.br {
    display: none;
}
@media (min-width: 769px) {
  .menuMobile {
      margin-top: -25px;
  }
}


@media (min-width: 769px) and (max-width: 927px) {
    .br {
        display: inherit;
    }
}
@media (max-width: 768px) {
    .nav-tabs-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-left: 2%;
        margin-right: 2%;
    }
    .nav-tab {
        font-size: 16px;
        padding: 8px 10px;
        white-space: normal;
        word-wrap: break-word;
    }
    .nav-tab:nth-child(1),
    .nav-tab:nth-child(2) {
        align-self: start;
    }
    .nav-tab:nth-child(3),
    .nav-tab:nth-child(4) {
        align-self: end;
    }
    .br {
        display: inherit;
    }
}

.perevagu-remonty {
    width: 100%;
    /* height: 800px;  */
    background: url('../images/remont_kvartir/header.png') no-repeat center top;
    background-size: cover;
    padding-bottom: 50px;

}
.perevagu-design {
    width: 100%;
    background: url('../images/design/first1.jpg') no-repeat center top;
    background-size: cover;
    padding-bottom: 50px;
}
.perevagu-houses {
    width: 100%;
    background: url('../images/houses/header.jpg') no-repeat center top;
    background-size: cover;
    padding-bottom: 50px;
}
.perevagu-commer {
    width: 100%;
    background: url('../images/commer/header1.jpg') no-repeat center top;
    background-size: cover;
    padding-bottom: 50px;
}
@keyframes fadeInWithShadow {
    0% {
        opacity: 0;
        transform: translateY(-20px);

    }
    100% {
        opacity: 1;
        transform: translateY(0);

    }
}
.block-one {
    display: flex;
    justify-content: center;
    text-align: center;
    animation: fadeInWithShadow 3s ease-in-out forwards;
}
.shadowText {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}
.slogan {
    padding-top: 10%;
    color:#f5c02e;
    font-size: 45px;

}
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
.bg-custom-perevagu {
    background-color: rgba(38, 35, 33, 0.5);
    border-radius: 5%;
    animation: slideInFromLeft 3s ease-in-out forwards;
}

.name-block-header-container {
    display: flex;
    align-items: center;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 50px;
}

.name-block-header {
    font-size: 30px;
    color: #FFFAF8;
    margin-right: 50px;
    font-family: 'Roboto Slab', serif;
}

.divider-line {
    flex-grow: 1;
    border-top: 1px solid #D4D0CE;
}

.diamond {
    width: 10px;
    height: 10px;
    background-color: #f5c02e;
    transform: rotate(45deg);
    margin-right: 10px;
}
.textServices {
    font-size: 20px;
    color: white;
}
.work-cost strong {
    color: #f5c02e;
    font-size: 16px;
    font-family: 'Roboto Slab', serif;

}

.work-cost {
    margin-top: 20px;
    font-size: 16px;
    color: #FFFAF8;
    padding-left: 10px;
    padding-right: 10px;
}

.work-cost div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.work-cost-value {
    text-align: right;
    font-size: 12px;
    font-family: 'Roboto Slab', serif;
}
.work-cost-dop {
    padding: 0;
    margin-top: -10px;
    font-size: 0.7em;
    font-family: 'Roboto Slab', serif;
}
.more-area {
    margin-top: 20px;
    text-align: center;
    color: #FFFAF8;
    background: #595245;
    border-radius: 5px;
    font-size: 12px;
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    width: 95%;
}


.contact-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    color: #FFFAF8;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Roboto Slab', serif;
    margin: 20px auto;
    width: 90%;
}
.map-form {
    height: 30vh;
}

.map-form iframe  {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.contact-info {
    margin-left: 20px;
}

.contact-info h3 {
    color: #f5c02e;
    margin-bottom: 10px;
    font-size: 2rem;
}

.contact-info p {
    margin-bottom: 5px;
    font-size: 16px;
    display: flex;
}

.social-icons {
    margin-top: 10px;
    display: flex;
}

.social-icons a {
    color: #FFFAF8;
    margin-right: 10px;
    font-size: 24px;
    text-decoration: none;
}

.feedback-form {
    margin-left: 20px;
}

.feedback-form h3 {
    color: #FFFAF8;
    margin-bottom: 10px;
}

.feedback-form form {
    display: flex;
    flex-direction: column;
}
.feedback-form input {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;

}

.feedback-form button {
    padding: 10px;
    border: none;
    background-color: #f5c02e;
    color: #FFFAF8;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.25);
    width: 150px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.feedback-form button:hover {
    background-color: #E68900;
}
@media (max-width: 1000px) {
    .contact-section {
        grid-template-columns: repeat(1, 1fr);
        justify-content: center;
    }
    .map-form {
        display: flex;
        justify-content: center;
        margin-bottom: 50px;
        height: 30vh;

    }
    .br-form {
        display: none;
    }
}
/* Адаптивні стилі */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        align-items: center;
    }
    .contact-info,
    .feedback-form {
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
    }
    .map-container iframe {
        width: 100%;
    }
}



.table-container {
    background-color: #2B2827;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    width: 90%;
    margin: 20px auto;
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}
.services-table {
    width: 15%;
    border-collapse: collapse;
    background-color: #333;
    margin-bottom: 20px;
    height: fit-content;
    border-left: 10px;
}
.table-container th, .table-container td {
    padding: 10px;
    text-align: center;
}
.table-container th {
    background-color: #f5c02e;
    color: #FFFAF8;
    font-size: 0.8em;
}

.table-container td:nth-child(odd) {
    background-color: #2B2827;
}
.table-container td:nth-child(even) {
    background-color: #2B2827;
}
.highlight {
    color: #f5c02e;
}
.selected {
    color: #f5c02e;
}
.service-name {
    cursor: pointer;
}
.service-row {
    display: none;
}
.details-table {
    width: 85% !important;
    height: fit-content;
}
.service-select {
    display: none;
}
.table-container td:first-child {
    text-align: left !important;
}
.service-select {
    width: 90%;
    margin-top: 10px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.service-select:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.service-select option {
    padding: 0.5rem;
}
@media (max-width: 1070px) {
    .services-table {
        display: none;
    }
    .service-select {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .details-table {
        width: auto !important;
        display: block;
        margin-right: auto;
        margin-left: auto;
    }
    .table-container {
        width: fit-content;
    }
    .table-container th {
        background-color: #f5c02e;
        color: #FFFAF8;
        font-size: 0.8em;
    }
    .table-container td {
        padding: 0px !important;

        font-size: 0.8em;
    }

    .table-container th, .table-container td {
        padding: 0px !important;
        text-align: center;
    }
}

.content img {
    display: block;
    margin: 0 auto;
    width: 30%;

}

.contact-form-section {
    color: #FFFAF8;
    text-align: center;
    font-family: 'Roboto Slab', serif;
}

.contact-form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form input {
    margin-bottom: 10px;
    padding: 15px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    color: black;
}

.contact-form button {
    padding: 10px 20px;
    border: none;
    background-color: #f5c02e;
    color: #FFFAF8;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.25);
}

.contact-form button:hover {
    background-color: #E68900;
}
@media (min-width: 769px) and (max-width: 927px) {
    .modal-content {
        margin-top: 20%;
    }
}
@media (max-width: 768px) {
    .modal-content {
        margin-top: 40%;
    }
    .buttomIMG {
        height: 50px;
    }
}

.modal {

 display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #2B2827;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #FFFAF8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #f5c02e;
    text-decoration: none;
    cursor: pointer;
}
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    z-index: 9000;
}

.floating-button {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
    font-size: 24px;
    transform: scale(0.8);
}

.floating-button.up {
    background-color: #ffffff;
    color: #333333;
}

.floating-button.phone {
    background-color: #f5c02e;
}

.floating-button.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #514d4d;
    display: flex;
    justify-content: center;
    align-items: center;
}
.preloader .loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #f5c02e; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.before_after {
    width: 100%;
    max-width: 50rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.pagination-wrapper {
    background-color: #262321;
    opacity: 0.9;
    color:  #f5c02e;
    border: none;
}
/* Встановлюємо висоту для контейнера слайдера */
.beer-slider {
    position: relative;
    width: 100%;
    max-width: 50rem; /* Максимальна ширина слайдера */
    height: 600px; /* Фіксована висота для зображень */
    overflow: hidden; /* Забезпечує, що зображення не виходять за межі слайдера */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Стилі для обох зображень */
.beer-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Контейнер для зображення "Після" */
.beer-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}


@media (max-width: 768px) {
    .beer-slider {
        height: 400px;
    }
}
