.area {
    background-image: url(../img/footer-background.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    width: 100%;
    margin-top: 85px;
    padding: 130px 0;
    color: #fff;

    display: flex;
    justify-content: center;
    align-items: center;
}
.area .container {
    width: 70%;
    margin: auto;
}
.area h1 {
    font-size: clamp(40px, 6vw, 60px);
    font-weight: 500;
}
.area p {
    font-size: clamp(12px, 6vw, 20px);
    font-weight: 600;
    margin-top: 10px;
}






.quotation {
    width: 100%;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: scaleUp 1.5s ease;
}

.quotation h5 {
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 600;
    letter-spacing: 3px;
    color: #0d6c68;
}
.quotation h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    margin: 10px 0 45px;

}


.quotation-form {
    min-width: 70%;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.input-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.input-container input {
    width: calc(50%);
    height: 50px;
    border: none;
    background-color: #f3f3f3;
    padding: 6px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
}
.input-container input:focus {
    outline: none;
}

.quotation-form textarea {
    width: 1005;
    min-height: 150px;
    background-color: #f3f3f3;
    border: none;
    border-radius: 5px;
    padding: 15px 0 0 20px;
    font-size: 16px;
    font-weight: 500;
}
.quotation-form textarea:focus {
    outline: none;
}


.quotation-form button {
    border: 2px solid #0d6c68;
    height: 50px;
    border-radius: 5px;
    background-color: #0d6c68;
    color: #fff;
    font-size: 18px;
    font-weight: 600;

    position: relative;
    cursor: pointer;
    z-index: 1;
}

.quotation-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 1, 101% 0%, 100% 100%);
    background-color: #232323;
    transform-origin: bottom left;
    pointer-events: none;
    z-index: -1;
    transform: scale(0);
    transition: 1s;
}
.quotation-form button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 1, 0% 100%, 101% 100%);
    background-color: #232323;
    transform-origin: top right;
    pointer-events: none;
    z-index: -1;
    transform: scale(0);
    transition: 1s;
} 

.quotation-form button:hover::before,
.quotation-form button:hover::after {
    opacity: 1;
    transform: scale(1);
}

@media screen and (max-width: 968px) {
    .input-container {
        flex-direction: column;
    }
    .input-container input {
        width: 100%;
    }
}


.map {
    width: 100%;
}



/* Portfolio Details */

.portfolio-information {
    width: 100%;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    -webkit-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.1);
    -moz-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.1);
    box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.1);
}
.portfolio-information-container {
    min-width: 70%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;


    -webkit-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.1);
    -moz-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.1);
    box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.1);
}

.portfolio-information-image {
    width: 48%;
    object-fit: cover;
    opacity: 0;
}
.portfolio-information-image.show-animation {
    animation: flipInX 3s;
    opacity: 1;
}

.portfolio-information-text {
    width: 48%;
    transform: scale(0.8);
    opacity: 0;
    transition: 2s;
}
.portfolio-information-text.show-animation {
    transform: scale(1);
    opacity: 1;
}


.portfolio-information-text h2 {
    font-size: clamp(26px, 2vw, 32px);
    font-weight: 600;
}


.portfolio-information-text ul {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.portfolio-information-text li span {
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 800;
    color: #7B7B7B;
}
.portfolio-information-text li {
    color: #5C5C5C;
    font-size: clamp(12px, 1vw, 15px);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


.information-text-social-media {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}
.information-text-social-media a {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #fff;
    background-color: #0d6c68;
    border: 1px solid #0d6c68;
    border-radius: 3px;
    transition: 0.5s;
}
.information-text-social-media a:hover {
    background-color: inherit;
    color: #0d6c68;
}


.portfolio-information-see {
    max-width: 70%;
}
.portfolio-information-see h2 {
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 700;
    margin: 50px 0 30px;
}
.portfolio-information-see p {
    max-width: 90%;
    color: #7B7B7B;
    font-size: clamp(12px, 2vw, 15px);
    font-weight: 400;
}


@media screen and (max-width: 968px) {
    .portfolio-information-container {
        max-width: 80%;
        flex-direction: column;
    }
    
    .portfolio-information-image {
        width: 100%;
    }
    .portfolio-information-text {
        width: 90%;
        margin-top: 35px;
    }

    .portfolio-information-text ul {
        gap: 14px
    }
    .portfolio-information-text li {
        gap: 8px;
    }
    .information-text-social-media {
        margin-top: 30px
    }


    .portfolio-information-see p {
        max-width: 100%;
    }
}



/* Portfolio Details */

.portfolio-details {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 70px 0;
}

.comment {
    min-width: 45%;
    border-radius: 5px;
    padding: 20px;

    opacity: 0;
    transform: scale(0.8);
    transition: all 1.5s ease;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.10);
}
.comment.show-animation {
    opacity: 1;
    transform: scale(1);
}

.comment h3 {
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 600;
}

.comment-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.comment-input {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.comment-input input {
    width: calc(50%);
    height: 50px;
    border: none;
    background-color: #f3f3f3;
    padding: 6px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
}
.comment-input input:focus {
    outline: none;
}

.comment-form textarea {
    width: 1005;
    min-height: 150px;
    background-color: #f3f3f3;
    border: none;
    border-radius: 5px;
    padding: 15px 0 0 20px;
    font-size: 16px;
    font-weight: 500;
}
.comment-form textarea:focus {
    outline: none;
}


.comment-form button {
    border: 2px solid #0d6c68;
    height: 50px;
    border-radius: 5px;
    background-color: #0d6c68;
    color: #fff;
    font-size: 18px;
    font-weight: 600;

    position: relative;
    cursor: pointer;
    z-index: 1;
}

.comment-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 1, 101% 0%, 100% 100%);
    background-color: #232323;
    transform-origin: bottom left;
    pointer-events: none;
    z-index: -1;
    transform: scale(0);
    transition: 1s;
}
.comment-form button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 1, 0% 100%, 101% 100%);
    background-color: #232323;
    transform-origin: top right;
    pointer-events: none;
    z-index: -1;
    transform: scale(0);
    transition: 1s;
} 

.comment-form button:hover::before,
.comment-form button:hover::after {
    opacity: 1;
    transform: scale(1);
}

.categories {
    min-width: 25%;
    border-radius: 5px;
    padding: 20px;

    opacity: 0;
    transform: scale(0.8);
    transition: all 1.5s ease;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.10);
}
.categories.show-animation {
    opacity: 1;
    transform: scale(1);
}

.categories h2 {
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 700;
}
.categories ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.categories li {
    width: 100%;
}

.categories li a {
    width: 100%;
    border: 2px solid #CED3D9;
    border-radius: 4px;
    padding: 20px 15px;
    font-size: 16px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;

    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.categories li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #0d6c68;
    transition: all 0.5s ease;
    z-index: -1;
}

.categories li a:hover {
    color: #fff;
}
.categories li a:hover::before {
    left: 0;
}

@media screen and (max-width: 968px) {
    .portfolio-details {
        flex-direction: column;
    }
    .comment {
        min-width: 70%;
    }
    .categories {
        min-width: 70%;
    }

    .comment-input {
        flex-direction: column;
    }
    .comment-input input {
        width: 100%;
    }
}


/* Blog List */

.blog-list {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 30px;
    padding: 90px 0;
}

.blog-list-cards {
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}
.blog-list-card {
    width: calc(50% - 10px);
    background-color: #F3F3F3;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 35px;

    position: relative;
    overflow: hidden;
    z-index: 1;

    opacity: 0;
    transform: scale(0.8);
    transition: all 1.4s ease;
}
.blog-list-card.show-animation {
    opacity: 1;
    transform: scale(1);
}
.blog-list-card:nth-child(1), .blog-list-card:nth-child(4) {
    transition-delay: 0.5s;
}
.blog-list-card:nth-child(2), .blog-list-card:nth-child(5) {
    transition-delay: 1s;
}
.blog-list-card:nth-child(3), .blog-list-card:nth-child(6) {
    transition-delay: 1.5s;
}


.blog-list-card h5 {
    font-size: 14px;
    color: #0d6c68;
    letter-spacing: 3px;
    margin-top: 25px;
}
.blog-list-card h2 {
    font-size: 22px;
    margin-top: 10px;
}

.blog-list-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #0d6c68;
    opacity: 0;
    transform: translateX(-100%);
    transition: 0.5s;
    z-index: -1;
}
.blog-list-card:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.blog-list-card:hover h5, .blog-list-card:hover h2 {
    color: #fff;
}




.blog-right {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-search {
    padding: 45px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1.5s ease;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.10);
}
.blog-search.show-animation {
    opacity: 1;
    transform: scale(1);
}

.blog-search input {
    width: 100%;
    padding: 15px 9px ;
    border: 1px solid #0d6c68;
    border-radius: 8px 0 0 8px;
}
.blog-search input:focus {
    outline: none;
}
.blog-search button {
    background-color: #0d6c68;
    color: #fff;
    border: none;
    border: 1px solid #0d6c68;
    border-radius: 0 8px 8px 0;
    padding: 15px 20px;
    cursor: pointer;
}


.blog-about {
    padding: 30px 35px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1.5s ease;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.10);
}
.blog-about.show-animation {
    opacity: 1;
    transform: scale(1);
}

.blog-about h3 {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 600;
}
.blog-author-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    text-align: center;
}
.blog-author-container h4 {
    margin-top: 12px;
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 600;
}
.blog-author-container p {
    font-size: clamp(10px, 3vw, 14px);
    color: #7B7B7B;
    line-height: 1.6;
    margin-top: 5px;
}

.author-social-media {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.author-social-media a {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #0d6c68;
    border-radius: 100%;
    color: #0d6c68;
    transition: all 0.5s ease;
}
.author-social-media a:hover {
    background-color: #0d6c68;
    color: #fff;
}



/* Blog Details */

.blog-left {
    width: 50%;
}

.creation-history {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.10);
    margin-bottom: 40px;
}
.creation-history-image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    opacity: 0;
}
.creation-history-image.show-animation {
    animation: flipInX 3s;
    opacity: 1;
}

.creation-history-text {
    width: 100%;
    padding: 25px;

    opacity: 0;
    transform: scale(0.8);
    transition: 1.5s;
}
.creation-history-text.show-animation {
    opacity: 1;
    transform: scale(1);
}

.creation-info {
    display: flex;
    gap: 40px;
    font-weight: 400;
    font-size: clamp(12px, 2vw, 14px);
}
.creation-history-text h3 {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 600;
    margin: 30px 0;
}

.creation-history-text p {
    margin-bottom: 15px;
    font-size: clamp(12px, 2vw, 14px);
    line-height: 1.6;
    color: #7B7B7B;
} 


.creation-social-media {
    display: flex;
    gap: 20px;
}
.creation-social-media a {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    border: 1px solid #0d6c68;
    color: #0d6c68;
    margin: 15px 0 0 10px;
    transition: 0.5s;
}

.creation-social-media a:hover {
    background-color: #0d6c68;
    color: #fff;
} 

@media screen and (max-width: 968px) {
    .blog-list {
        flex-direction: column;
        align-items: center;
    }

    .blog-list-cards {
        width: 90%;
    }
    .blog-list-card {
        width: 100%;
    }

    .blog-left {
        width: 90%;
    }

    .blog-right {
        width: 90%;
        margin-top: 20px;
    }
}


/* Animation */

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}





/* Статья блога: заголовки разделов и ссылки */
.creation-history-text h2 {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 600;
    margin: 30px 0 20px;
}

.creation-history-text h3 {
    font-size: clamp(16px, 2.2vw, 22px);
    margin: 25px 0 10px;
}

.creation-history-text p a {
    color: inherit;
    text-decoration: underline;
}

.blog-list-card h2 a {
    color: inherit;
    text-decoration: none;
}


/* ===== Формы заявок: сообщения, ошибки ===== */

/* Скрытое поле-ловушка для ботов */
.form-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-message {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.form-message--success {
    background-color: #e6f4f3;
    color: #0d6c68;
}

.form-message--error {
    background-color: #fdecec;
    color: #b3261e;
}

.field-error {
    outline: 2px solid #b3261e !important;
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: wait;
}
