/* Общий стиль */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f1f8e9;
    color: #2e7d32;
    margin: 0;
    padding: 20px;
}

table img {
    width: 150px;     /* Задайте нужную ширину */
    height: 100px;    /* Задайте нужную высоту */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* Заголовки */
h1, h2 {
    text-align: center;
    color: #388e3c;
    margin-bottom: 20px;
}

/* Таблица */
table {
    width: 95%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #e8f5e9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #c8e6c9;
    text-align: center;
}

th {
    background-color: #66bb6a;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
}

tr:hover {
    background-color: #f1f8e9;
}

/* Формы */
form {
    background: #e8f5e9;
    max-width: 500px;
    margin: 40px auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

form h2 {
    color: #388e3c;
    margin-bottom: 15px;
}

label {
    display: block;
    margin: 12px 0 5px;
    font-weight: 600;
    color: #2e7d32;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    background: #f1f8e9;
    transition: 0.3s border-color;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #66bb6a;
    outline: none;
}

input[type="submit"] {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background-color: #66bb6a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s background-color;
}

input[type="submit"]:hover {
    background-color: #388e3c;
}

/* Комментарии */
.kommentaaririda {
    margin: 15px auto;
    padding: 15px 20px;
    background-color: #f1f8e9;
    border: 1px solid #c8e6c9;
    border-left: 6px solid #66bb6a;
    border-radius: 8px;
    max-width: 700px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Текст комментария */
.kommentaaririda p {
    margin: 0;
    line-height: 1.5;
}

/* Кнопка удаления */
.kommentaaririda .kustuta {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #c62828;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.kommentaaririda .kustuta:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* Форма комментария */
#commform {
    display: flex;
    gap: 10px;
    margin: 20px auto;
    max-width: 700px;
    flex-wrap: wrap;
}

#commform input[type="text"] {
    flex-grow: 1;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #a5d6a7;
    background-color: #f9fbe7;
}

#commform input[type="submit"] {
    padding: 10px 20px;
    background-color: #66bb6a;
    color: white;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

#commform input[type="submit"]:hover {
    background-color: #43a047;
}

/* Ссылки */
a[href*="lisa1punkt"] {
    color: #2e7d32;
    font-weight: bold;
    margin-left: 5px;
}

a[href*="emalda1punkt"] {
    color: #c62828;
    font-weight: bold;
    margin-left: 5px;
}

/* Контейнер */
.container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

/* Меню */
#menyykiht {
    background-color: #f9fbe7;
    padding: 20px;
    border-radius: 10px;
    width: 220px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

#menyykiht h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #558b2f;
}

#menyykiht ul {
    list-style: none;
    padding: 0;
}

#menyykiht li {
    margin-bottom: 8px;
}

#menyykiht a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: 500;
}

#menyykiht a:hover {
    text-decoration: underline;
}

/* Содержимое */
#sisukiht {
    flex-grow: 1;
    background-color: #f1f8e9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.04);
}

#sisukiht img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}

#sisukiht p {
    margin-bottom: 15px;
    line-height: 1.6;
}

#sisukiht strong {
    color: #2e7d32;
}

/* Хедер */
header {
    background-color: #c5e1a5;
    padding: 1.5rem 2rem;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    color: #33691e;
}

/* Навигация */
nav {
    background-color: #aed581;
    padding: 0.8rem 2rem;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    color: #33691e;
    transition: border-bottom 0.3s;
}

nav a:hover {
    border-bottom: 2px solid currentColor;
}

/* Футер */
#jalusekiht {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: #558b2f;
    clear: both;
}
