@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=BBH+Bogle&family=Oswald:wght@200..700&display=swap');

/* ---------- COLORS ---------- */
:root {
    --dark-green: #0f2f1f;
    --green: #1f6b4a;
    --light-green: #4caf84;
    --bg-light: #e6e6e6;
    --text-light: #f0f0f0;
    --card-bg: #ffffff;
}

/* ---------- GLOBAL ---------- */
body {
    margin: 0;
    padding: 0;
    font-family: "PT Serif", serif;
    background-image: url(/images/background2.jpg);
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- HEADER ---------- */
header {
    background: linear-gradient(90deg, var(--dark-green), var(--green));
    height: 90px;
    display: flex;
    align-items: center;
    padding: 0 4vw;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    gap: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 65px;
}

.logo-name p {
    margin: 0;
    font-size: 24px;
    color: var(--text-light);
    font-family: "Oswald", sans-serif;
}

.list {
    margin-left: auto;
}

.list ul {
    list-style: none;
    display: flex;
    gap: 55px;
    padding: 0;
    margin: 0;
    font-size: 20px;
}

.list a {
    color: var(--text-light);
    text-decoration: none;
    transition: 0.3s;
}

.list a:hover {
    color: var(--light-green);
}

.basket img {
    width: 36px;
    margin-left: 35px;
    filter: brightness(0) invert(1);
}

/* ------ Hello section ------ */
.hello-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hello{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: large;
    margin: 1rem;
    
    background: linear-gradient(to right, #1a1a1a, #1f6b4a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.text{
    height: auto;
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
    font-size: large;
    gap: 0.5rem;
    color: rgb(43, 43, 43);
}

.hello-section h3{
    margin: 0;
}

.separator{
    border: none;
    border-top: 1px solid #3b3b3b; 
    margin: 10px 0 10px 0;
    width: 65%; 
    
    opacity: 0.5;
}

/* ---------- MAIN ---------- */
main {
    width: 100%;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
}

.cards {
    width: 95%;
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
}

/* ---------- CARD (BIGGER) ---------- */
.card {
    background-color: #92929263;
    width: 22rem;
    height: 520px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* КРАСИВАЯ ТЕНЬ */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;

}

.card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.18),
        0 30px 60px rgba(0, 0, 0, 0.12);
}

.card-img {
    height: 80%;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.card-img img:hover {
    transform: scale(1.1);
}

.buy-info {
    height: 35%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.02)
    );
}

.buy-info p {
    margin: 0;
    font-size: 22px;
    text-align: center;
    color: #1f1f1f;
    font-family: "Oswald", sans-serif;
}


/* ---------- BUTTON ---------- */
.button-buy {
    background: linear-gradient(90deg, var(--green), var(--light-green));
    color: white;
    height: 50px;
    border-radius: 30px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.button-buy:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ---------- FOOTER (OLD STYLE) ---------- */
footer {
    background-color: #0f2f1f;
    width: 100%;
    padding: 20px 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    height: 9rem;
    gap: 15px;
}

.contacts {
    color: rgb(240, 240, 240);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    font-size: 14.5px;
    gap: 5px;
}

.contacts p {
    margin: 0;
    padding: 0;
}

.listInFooter {
    position: relative;
}

.listInFooter ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.listInFooter a {
    color: rgb(240, 240, 240);
    text-decoration: none;
    transition: 0.3s;
}

.listInFooter a:hover {
    color: var(--light-green);
}

/* ---------- ADAPTIVE ---------- */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        height: auto;
        gap: 15px;
        padding: 20px;
    }

    .logo-name, .basket {
        display: none;
    }

    .list {
        width: 100%; 
        display: flex;
        justify-content: center;
    }

    .list ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .separator {
        width: 90%;
    }

    .cards {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .card {
        width: 95%;
        height: auto;
    }

    footer {
        flex-direction: column;
        gap: 15px;
    }

    .contacts,
    .listInFooter {
        left: 0;
        width: 100%;
        text-align: center;
    }
}
