/* Загальні стилі */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 40px;
}

header, footer {
    background-color: #f8f8f8;
    padding: 20px;
    text-align: center;
}


/* Заголовки та абзац */
h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

h2 {
    font-size: 48px;
    margin-bottom: 20px;
	line-height: 1.4; /* Збільшити значення для більшого інтервалу */
}
p {
    font-size: 20px;
    margin-bottom: 10px;
	margin-top: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	line-height: 1.4; /* Збільшити значення для більшого інтервалу */
}

/* Список */
ul {
    list-style: disc;
    padding-left: 20px;
	font-size: 20px;
	line-height: 1.4;
}
li {
	padding-bottom: 5px;
}

/* Контактна форма */
form {
    max-width: 400px;
    margin: 0 auto;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

input[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Посилання */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
/* Соціальні медіа іконки */
.social-icons {
    margin-top: 10px;
}

.social-icon {
    display: inline-block;
    font-size: 24px;
    color: #333; /* Колір іконок */
    margin-right: 10px;
}

.social-icon:hover {
    color: #007bff; /* Колір іконок при наведенні */
}
/* Секції */

section {
    position: relative;
    padding: 0; /* Змінили відступи для кращого оформлення */
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.image-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Прозорість тла */
    color: #fff;
    padding: 40px; /* Відступи для тексту */
    box-sizing: border-box; /* Враховувати відступи у розмірі елементу */
}

.content-overlay h2, .content-overlay p {
    margin: 0; /* Виправити відступи для заголовка і абзацу */
}


/* Стилі для адаптивних блоків */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
	padding-top: 20px;
}

.feature {
    flex: 1;
    padding: 20px;
    background-color: rgba(248, 248, 248, 0.5); /* Фон з напівпрозорістю */
    border: 1px solid #e0e0e0;
    border-radius: 5px;
	color: #000;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature h3 {
    transition: font-size 0.3s ease;
}
.feature:hover {
    transform: scale(1.05); /* Збільшення блоку */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тінь при наведенні */
	background-color: rgba(248, 248, 248, 0.8)
}

.feature:hover h3 {
    font-size: 140%; /* Збільшення розміру заголовку */
}	

/* Стилі для секції "Наша команда" */
#team {
    text-align: center;
    padding: 40px;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.team-member {
    flex: 1; /* Рівне розподілення блоків в одному ряду */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo {
    width: 280px; /* Фіксований розмір фото */
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Зберігає пропорції зображення */
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-content {
    padding: 20px;
    color: #fff;
    text-align: center;
    transition: opacity 0.3s ease;
}

.team-member:hover .overlay {
    opacity: 1;
}

.team-member:hover .overlay-content {
    opacity: 1;
}

/* Стилі для різних медіа */
@media (max-width: 768px) {
    .team-member {
        flex-basis: calc(50% - 20px); /* Два фото в ряд */
    }
}

@media (max-width: 480px) {
    .team-member {
        flex-basis: 100%; /* Один фото на повну ширину */
    }
}

/* Медіа-запити для адаптації заголовків */
@media (max-width: 992px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }
}

/* Стилі для секції "Контакти" */
#contacts {
    text-align: center;
    padding: 40px;
    background-color: #f7f7f7;
}

.contact-blocks {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-block {
    flex: 1; /* Рівне розподілення блоків в одному ряду */
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Стилі для різних медіа */
@media (max-width: 768px) {
    .contact-block {
        flex-basis: calc(50% - 20px); /* Два блоки в ряд */
    }
}

@media (max-width: 480px) {
    .contact-block {
        flex-basis: 100%; /* Один блок на повну ширину */
    }
}
/* Секція "Порядок дій" */
#steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
    position: relative;
}

.step {
    flex: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    cursor: pointer;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.step.active {
    opacity: 1;
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.step h3 {
    font-size: 1.5rem;
    margin-top: 10px;
}

.step p {
    margin-top: 10px;
}

.arrow {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #007bff;
    clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
    top: 50%;
    right: -10px;
    transform: translateY(-50%) rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

.step:nth-child(1):hover ~ .arrow,
.step.active:nth-child(2) ~ .arrow {
    transform: translateX(50%) rotate(0deg) scale(1.5); /* Розвернута стрілка зі збільшенням розміру */
}

.step:nth-child(2):hover ~ .arrow,
.step.active:nth-child(3) ~ .arrow {
    transform: translateX(100%) rotate(180deg) scale(1.5); /* Розвернута стрілка зі збільшенням розміру */
}

.step:nth-child(3):hover ~ .arrow,
.step.active:nth-child(4) ~ .arrow {
    transform: translateX(150%) rotate(0deg) scale(1.5); /* Розвернута стрілка зі збільшенням розміру */
}
