@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Black.woff2') format('woff2'),
        url('../fonts/Roboto-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.woff2') format('woff2'),
        url('fonts/Roboto-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-BlackItalic.woff2') format('woff2'),
        url('fonts/Roboto-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-BoldItalic.woff2') format('woff2'),
        url('fonts/Roboto-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-ExtraLight.woff2') format('woff2'),
        url('fonts/Roboto-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Italic.woff2') format('woff2'),
        url('fonts/Roboto-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-ExtraLightItalic.woff2') format('woff2'),
        url('fonts/Roboto-ExtraLightItalic.woff') format('woff');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Light.woff2') format('woff2'),
        url('fonts/Roboto-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Medium.woff2') format('woff2'),
        url('fonts/Roboto-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-LightItalic.woff2') format('woff2'),
        url('fonts/Roboto-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-MediumItalic.woff2') format('woff2'),
        url('fonts/Roboto-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
        url('../fonts/Roboto-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-SemiBoldItalic.woff2') format('woff2'),
        url('fonts/Roboto-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-SemiBold.woff2') format('woff2'),
        url('fonts/Roboto-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-ThinItalic.woff2') format('woff2'),
        url('fonts/Roboto-ThinItalic.woff') format('woff');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Thin.woff2') format('woff2'),
        url('fonts/Roboto-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #f8f5eb; /* Легкий бежевый цвет с герба */
    color: #228B22;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-left: 10%;
}

.logoimg {
    max-height: 50px; /* Высота логотипа */
    width: auto;
}

.user-menu {
    margin-right: 10%;
}

.user-menu a {
    color: #000; /* Черный цвет для ссылок */
    margin-left: 15px;
    text-decoration: none;
    font-size: 16px; /* Добавил размер шрифта для consistency, если нужно */
    transition: color 0.2s ease, text-decoration 0.2s ease; /* Плавный переход для hover */
}

.user-menu a:hover {
    color: #333; /* Темнее при наведении */
    text-decoration: underline; /* Подчеркивание для визуального отклика */
}

/* Стили для иконок (чтобы они были одного размера с текстом) */
.user-menu i {
    font-size: 20px; /* Размер иконок */
    vertical-align: middle; /* Выравнивание по центру */
}

.main-menu {
    background-color: #90EE90; /* Светло-зеленый */
    padding: 10px;
    text-align: center;
}

.main-menu a {
    color: #228B22;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 20px;
    text-align: center;
}

h1 {
    color: #333;
}

.profile, .listings, .object-details, .objects-list, .admin-panel, .admin-objects, .admin-users {
    max-width: 800px;
    margin: 0 auto;
}

.shares-list, .listings-list, .objects-list, .users-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-item, .listing-item, .object-item, .user-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

.object-image, .listing-image, .share-image {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

input[type="number"], input[type="text"], input[type="email"], input[type="password"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

textarea {
    height: 100px;
}

button {
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

button.delete {
    background-color: #dc3545;
}

button.delete:hover {
    background-color: #c82333;
}

.news-grid, .object-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.news-tile, .object-tile {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.object-tile a {
    display: inline-block;
    margin-top: 10px;
    color: #228B22;
    text-decoration: none;
    font-weight: bold;
}

.object-details {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.object-details p {
    margin: 10px 0;
}

.buy-shares {
    margin-top: 20px;
}

.buy-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.buy-form label {
    font-weight: bold;
}

.buy-form input[type="number"], .auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"] {
    padding: 8px;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.buy-form button, .auth-form button {
    background-color: #228B22;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.buy-form button:hover, .auth-form button:hover {
    background-color: #1a6b1a;
}

.buy-form button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.auth-form {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.auth-form .error {
    color: red;
    margin-bottom: 10px;
}

.profile {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile p {
    margin: 10px 0;
}

.shares-list {
    margin-top: 20px;
}

.share-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.share-item p {
    margin: 5px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #007bff;
    margin: 10px 0;
}

.success {
    color: green;
    margin-bottom: 10px;
}

.error {
    color: red;
    font-weight: bold;
}

footer {
    background-color: #228B22;
    color: white;
    padding: 10px;
    text-align: center;
    margin-top: 20px;
}

.footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.footer-info p {
    margin: 5px 0;
}

.copyright {
    font-size: 12px;
    margin-top: 10px;
}