* {
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    text-rendering: optimizelegibility;
}
  


body {
  font-family: "Old Standard TT", serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

h1 {
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 50px;
}

header {
    background: #005a9c;
    color: white;
    padding: 1em;
    text-align: center;
}
main {
    margin: auto;
    width: 1368px;
}

.list {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    margin-top: 10px;
    width: 1368px;
    gap: 34px; /* Optional spacing between components */
    margin-bottom: 20px;
}

.component {
    position: relative;
    width: 667px;
    height: 519px;
    background: #F3F3F1;
    overflow: hidden;
}

.component::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.component-blue::after {
    background-color: #007BFF; /* blue */
}

.component-red::after {
    background-color: #FF4136; /* red */
}

.component-green::after {
    background-color: #2ECC40; /* green */
}

.component-yellow::after {
    background-color: #FFDC00; /* yellow */
}

.component-purple::after {
    background-color: #B10DC9; /* purple */
}

.component-orange::after {
    background-color: #fb5607; /* purple */
}

.component-blue2::after {
    background-color: #6096ba; /* purple */
}

.component-pink::after {
    background-color: #e3658b; /* purple */
}

.component-dark-red::after {
    background-color: #c1121f; /* purple */
}

.component-dark-red2::after {
    background-color: #780000; /* purple */
}


.component:hover::after {
    transform: translateY(0);
}


.content-section {
    margin: 57px 54px;
}

h2 {
}

p {
    color: rgb(112, 112, 112);
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.link-span-img {
    height: 15px;
    width: auto;
}

.section-contacts {
    position: relative;
    width: 100%;
    height: 359px;
    background: #F3F3F1;
    overflow: hidden;
    margin-bottom: 20px;
}

.holder-contacts {
    margin: 57px 54px;
}

.name-item {
    font-size: 40px;
    color: #000;
}

.soc-link {
    font-size: 20px;
}

@media screen and (max-width: 1368px) {
    main {
        width: 70%;
    }

    .list {
        display: flex;
        flex-wrap: wrap;
        margin: auto;
        margin-top: 10px;
        width: 100%;
        gap: 24px; /* Optional spacing between components */
        margin-bottom: 20px;
    }
    
    .component {
        position: relative;
        width: 440px;
        height: 459px;
        background: #F3F3F1;
        overflow: hidden;
    }

    .content-section {
        margin: 37px 34px;
    }
}


@media screen and (max-width: 440px) {
    .component::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    h1 {
        font-size: 30px;
    }

    .component {
        height: auto;
    }

    .content-section {
        padding-bottom: 20px;
    }
}