body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}
nav {
    background: #333;
    padding: 10px;
}

.navbar-custom {
    padding-right: 50px;
}


@media (max-width: 640px) {
    .navbar-custom {
        padding-left: 0;
    }
}
nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

.menu-header__item {
    height: 26px;
    margin: 0 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link {
    font-size: 14px;
    line-height: 128.5714285714%;
    color: darkslategray;
    padding: 0 4px;
    position: relative;
    text-decoration: none;
}

.menu-header__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0); /* Start with no width */
    transform-origin: left; /* Animation starts from the left */
    transition: transform 0.3s ease-in-out; /* Animate the scale */
}

.menu-header__item:hover::after {
    transform: scaleX(1);
}
.list-unstyled {
    padding: 0;
    margin: 0;
}
.list-unstyled li {
    list-style: none;
}
.contact {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
}
.contact:hover {
    color: #7cb7f8;
}
.ico {
    vertical-align: middle;
    margin-right: 8px;
}
.services_item {
    margin: 15px;
}
.services_card {
    position: relative;
}
.image-wrapper {
    position: relative;
    overflow: hidden;
}
.services_desc {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 13px;
    background-color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    letter-spacing: 0.03em;
    line-height: 1.5;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    margin: 0;
}
.services_item:hover .services_desc {
    transform: translateY(0);
}

.services_info {
    background-color: rgb(255, 255, 252);
    padding: 20px;
    padding-bottom: 25px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2);
    border-radius: 0px 0px 4px 4px;
}

.services_item:hover {
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.12), 0px 4px 4px rgba(0, 0, 0, 0.06), 1px 4px 6px rgba(0, 0, 0, 0.16);
}

.social-list__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    fill: white;
}
.social-list__link:hover,
.social-list__link:focus {
    background-color: blue;
    fill: white;
}
footer {
    margin-top: 20px;
    background: #333;
    color: white;
    padding: 10px;
}
.social-link-footer {
    fill: white;
    background-color: rgba(255, 255, 255, 0.1);
}
.ico-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
}

form {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.form-field {
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    padding-left: 30px !important;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.services_style {
    display: flex;
    justify-content: center;
    max-width: 100%;
    padding-bottom: 60px;
}

@media (max-width: 640px) {
    .services_style {
        display: block;
        margin: 30px;
    }
}

.services_info {
    background-color: rgb(255, 255, 255);
    padding: 20px 20px 25px 20px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12),
    0px 1px 1px rgba(0, 0, 0, 0.14),
    0px 2px 1px rgba(0, 0, 0, 0.2);
    border-radius: 0px 0px 4px 4px;
    text-align: center;
}

.services_item {
    max-width: 370px;
    margin: 15px;
    flex-shrink: 0;
}

.services_info img {
    transition: transform 0.3s ease;
    display: block;
}

@media (min-width: 640px) {
.services_info img:hover {
    transform: scale(2);
    z-index: 1;
}
}

@media (max-width: 640px) {
    .hideElement640 {
        display: none;
    }
}

@media (min-width: 640px) {
    .maxWidth50 {
        max-width: 50%;
    }
}

.pHeader {
    padding-right: 0;
}

@media (min-width: 640px) {
    .pHeader {
        padding-right: 40px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Планшети в портретному та ландшафтному режимах */
    .pHeader {
        padding-right: 350px;
    }
}

@media (min-width: 1024px) {
    .pHeader {
        padding-right: 200px;
    }
}

@media (max-width: 640px) {
    .dBlock {
        flex-direction: column;
    }
}

.contact-list {
    display: flex;
    gap: 1rem;
}

@media (max-width: 1200px) {
    .contact-list {
        display: block;
        padding-left: 50px;
    }
}

.old-price s {
    text-decoration: line-through;
    color: #888; /* Туманний колір для старої ціни */
    font-size: 16px;
}

.new-price {
    font-weight: bold;
    color: #28a745; /* Зелений для нової вигідної ціни */
    font-size: 18px;
}

.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-top: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}
