/* Загальний стиль */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9; /* Світлий фон */
    color: #333333;
}

h1, h2 {
    color: #0056b3; /* Яскравий синій */
    margin: 16px 0;
}

h1 {
    text-align: center;
    font-size: 36px;
}

h2 {
    font-size: 28px;
    text-align: left;
    margin-bottom: 16px;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

h3 {
    font-size: 30px;
    margin-bottom: 16px;
    color: #0056b3;
    text-align: center;
}


.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    margin-top: 5%;
}

.logo {
    height: 85px;
    margin-right: 15px;
}

.site-name {
    font-size: 24px;
    font-weight: bold;
    color: #0056b3;
}


/* Навігація */
nav {
    background-color: #333333; /* Темно-сірий фон */
    color: white;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Легка тінь */
    position: sticky;
    top: 0;
    z-index: 10;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007BFF; /* Зміна кольору при наведенні */
}

#calculator{

}

#form{
	padding: 60px 20px;
    text-align: center;	
    background-color: white;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Секції */
.section {
    padding: 60px 20px;
    text-align: center;
    background-color: white;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#top {
    padding: 0px 0px;
    background-color: unset;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
    margin-bottom: 24px;
    border-radius: 16px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#about {
    padding: 0px 0px;
    text-align: center;
    background-color: unset;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.about-us.block {
	margin-bottom: 40px;
    padding: 0px 8%;
    border-radius: 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.0);
    background-color: unset;
}

.section:nth-child(even) {
    /* background-color: #f5f5f5; */
}

/* Сітка послуг */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
    justify-content: space-evenly;
}

.grid-item {
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
	width: 77%;
}

.grid-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.grid-item p {
    font-size: 14px;
    color: #555555;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Контакти */
.contact ul {
    list-style: none;
    padding: 0;
}

.contact li {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Мобільна адаптивність */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    .section {
        padding: 40px 16px;
    }
}


/* Форма консультації */
.consultation-form {
    padding: 40px 20px;
    background-color: #f4f4f4;
    text-align: center;
    border-radius: 12px;
}

#consultationForm {
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 0px 10%;
}


#agreeTerms2 {
	width:15px;
}

#agreeTerms1 {
	width:15px;
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea, .modal-content input,
.modal-content select,
.modal-content textarea {
    width: 45%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

@media (max-width: 768px) {
	#consultationForm {
		display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        margin: 0px 0%;
	}
	.consultation-form input,
.consultation-form select,
.consultation-form textarea {
    width: 90%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}
#consultationForm1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
}


.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

.consultation-form button {
    padding: 12px 20px;
    background: #007bff;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.consultation-form button:hover {
    background: #0056b3;
}

/* Повідомлення */
.success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    font-size: 16px;
    display: inline-block;
    width: auto;
}

.error-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    font-size: 16px;
    display: inline-block;
    width: auto;
}

/* Стилі для банерів */
.banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    transition: all 1s ease-in-out;
    padding: 5% 0%;
}

.banner-slide.active {
    left: 0;
}

.banner-slide.previous {
    left: -100%;
}

.banner-text {
    color: white;
    text-align: left;
    background: rgb(0 0 0 / 0%);
    padding: 0px 3% 1% 2%;
    border-radius: 0px;
    max-width: 80%;
    box-shadow: 0 10px 0px rgba(0, 0, 0, 0.3);
}

.banner-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner-text p {
    font-size: 18px;
    margin: 0;
}

/* Модальне вікно */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ddd;
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.close-button {
    color: black;
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.close-button:hover {
    color: red;
}

/* Контейнер меню */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Базові стилі для навігації */
nav {
    background-color: #0056b3;
    color: white;
}

/* Мобільне меню */
.mobile-nav {
    display: none;
}

.mobile-nav .menu {
    display: none;
    flex-direction: column;
    background-color: #333;
    width: 100%;
    padding: 10px 0;
}

.mobile-nav .menu.active {
    display: flex;
}

.mobile-nav .menu li {
    text-align: center;
    padding: 10px 0;
}

.mobile-nav .menu li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}



.menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 24px;
    color: white;
    background-color: #333;
    padding: 10px;
}

/* Десктопне меню */
.desktop-nav {
    display: flex;
    justify-content: center;
}

.desktop-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    width: 100%;
}

.desktop-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
}

.desktop-nav ul li a:hover {
    color: #032245;
}

/* Медійні запити */
@media (max-width: 768px) {
    .mobile-nav {
        display: block;
    }

    .desktop-nav {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }

    .desktop-nav {
        display: flex;
    }
}

/* Галерея фото */
.photo-gallery {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.photo-gallery h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333333;
}

.photo-gallery p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555555;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: 20px;
    justify-items: center;
}

.photo-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    align-content: space-between;
}

.photo-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.photo-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333333;
}

.photo-item p {
    font-size: 16px;
    color: #666666;
    line-height: 1.5;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Кнопка "Замовити консультацію" */
.btn-consultation {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-consultation:hover {
    background-color: #0056b3;
}

/* Модальне вікно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#consultationModal1 .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close-modal:hover {
    color: red;
}

/* Розділ "Про нас" */
.about-us {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.about-us h2 {
	font-size: 32px;
    color: #ffffff;
    font-weight: bold;
    background-color: #0056b3;
    padding: 1% 9%;
    margin: 3% -10%;
}

.about-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.about-item.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1 1 45%;
    font-size: 18px;
    line-height: 1.8;
    color: #555555;
    text-align: justify;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1 1 45%;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-item {
        flex-direction: column;
    }

    .about-item.reverse {
        flex-direction: column;
    }

    .about-text, .about-image {
        flex: 1 1 100%;
    }
}



/* Розділ "Контакти" */
.contact {
    padding: 60px 20px;
    background-color: #f4f4f4;
    text-align: center;
    border-radius: 12px;
    margin-top: 20px;
}

#contact h2 {
    font-size: 32px;
    color: #ffffff;
    font-weight: bold;
    background-color: #0056b3;
    padding: 1% 9%;
    margin: 3% -4%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.contact h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #0056b3;
}

.contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact li {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333333;
}

.contact li strong {
    color: #0056b3;
}

/* Адаптація розділів */
.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: #0056b3;
}

.section-paragraph {
    font-size: 18px;
    color: #666666;
    line-height: 1.8;
    margin: 0 auto 20px auto;
    max-width: 800px;
}

/* Форма зворотного зв'язку */
.feedback-form {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.feedback-form textarea {
    resize: vertical;
    height: 100px;
}

.feedback-form button {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.feedback-form button:hover {
    background-color: #0056b3;
}

/* Відгуки */
.testimonials {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.testimonials h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #0056b3;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-item p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 10px;
}

.testimonial-item strong {
    font-size: 16px;
    color: #333333;
}

/* Кнопки */
.button-primary {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-primary:hover {
    background-color: #0056b3;
}

.button-secondary {
    background-color: #f4f4f4;
    color: #333333;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-secondary:hover {
    background-color: #e6e6e6;
    color: #007bff;
}

/* Адаптивність для відгуків */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
	
	.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    margin-top: 25%;
	}
}

/* Додатковий стиль для блоків */
.block,  {
    margin-bottom: 40px;
    padding: 0px 0%;
    border-radius: 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.0);
    background-color: unset;
}

/* Адаптація для кнопок */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

#gallery {
    padding: 0px 0px;
    text-align: center;
    background-color: unset;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}


#services {
    padding: 25px 20px;
    text-align: center;
    background-color: white;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#services h2 {
	font-size: 32px;
    color: #ffffff;
    font-weight: bold;
    background-color: #0056b3;
    padding: 1% 9%;
    margin: 3% -4%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#gallery h2 {
    font-size: 32px;
    color: #ffffff;
    font-weight: bold;
    background-color: #0056b3;
    padding: 1% 9%;
    margin: 3% -4%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#form h2 {
	font-size: 55px;
    text-align: center;
    margin-bottom: 30px;
    font-variant: all-petite-caps;
}

#offerModal1 .modal-content, #form .modal-content{
	background-color:white;
}

#offerModal1 .modal-content h2, #form .modal-content h2{
	font-size: 25px;
    text-align: center;
    margin-bottom: 30px;
	color: #0056b3;
    font-weight: bold;
    background-color: #0056b3;
    padding: 0px;
    margin: 25px 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0);
	background-color: unset;
}

#offerModal1 #offerText1, #form .modal-content #offerText2{
	font-size: 10px;
    margin: 50px;
}

#testimonials .section {
	padding: 15px 20px;
    text-align: center;
    background-color: white;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Модальне вікно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: transparent;
    padding: 0;
    max-width: 90%;
    max-height: 90%;
}

.modal-image-container {
    position: relative;
}

#modalImage {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

#watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    pointer-events: none;
    max-width: 80%;
    max-height: 80%;
}

/* Закриття модального вікна */
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.close-modal:hover {
    color: #ff0000;
}

/* Додаткові стилі */
.hidden {
    display: none;
}

.btn-show-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-show-more:hover {
    background-color: #0056b3;
}


#footer {
    padding: 0px 0px;
    text-align: center;
    background-color: unset;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#consultationForm1 button {
    padding: 12px 20px;
    background: #007bff;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
