body {
    margin: 5;
    font-family: Arial, sans-serif;
    background-color: #f0fff0; 
    display:flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 5; 
}

.header {
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 20px;
    background-color: green;
    color: white;
    position: relative;
}


.header .logo {
    width: 175px;
    height: 50px;
    position: absolute; 
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
}


.header h1 {
    margin: 0;
    font-size: 28px;
    text-align: center;
    flex: 1; 
}


.navbar {
    display: flex;
    justify-content: right;
    gap: 30px;
    background-color: #add8e6; 
    padding: 10px 0;
}

.navbar a {
    color: green; 
    text-decoration: none;
    font-weight: bold;
    margin: 0 15px;
    padding: 5px 10px;
    border-radius: 3px;
}

.navbar a:hover,
.navbar a.active {
    background-color: green;
    color: white;
    text-decoration: underline;
}


.content {
    display: grid;
    grid-template-columns: 200px 1fr; 
    gap: 20px;
    padding: 15px;
    flex: 1;
    background-color: white;
}


.sidebar {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 8px;
}

.aside {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 19px rgba(0,0,0,0.1);
}


.card-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.card {
    flex: 1;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card img {
    max-width: 50%;
    border-radius: 8px;
}

.card button {
    margin-top: 5px;
    padding: 8px 12px;
    border: none;
    background: green; 
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.card button:hover {
    background: darkgreen;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* сетка в которм можно колуму тд создать*/
    gap: 10px;
    padding: 20px 0;
}

.gallery img {
    width: 100%;     /* 70%*/
    height: 200px;     /* ubrat*/
    border-radius: 8px;
    object-fit: cover;  /*ubr*/
    transition: transform 0.3s; 
}

.gallery img:hover {
    transform: scale(1.05); /* жузеге асатын уакыты*/
}



.footer {
    background-color: green; 
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
}
