* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
    height: 100%;
	line-height: 1.5;
	text-rendering: optimizeLegibility; 
	-webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

 .wrapper {
    width: 100%;
    min-height: 100vh;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
}

/* Шапка */
.header {
    background: #16a34a;
    color: #fff;
    padding: 16px 24px;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-tagline {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

.header-title a {
    color: inherit;
    text-decoration: none;
}

.header-title a:hover {
    text-decoration: underline;
}

.header-nav {
    display: flex;
    gap: 16px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.header-nav a:hover {
    text-decoration: underline;
}

.header-auth {
    display: flex;
    gap: 12px;
}

.header-auth a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.header-auth a:last-child {
    font-weight: 600;
}

.header-auth a:hover {
    text-decoration: underline;
}

/* Меню навигации (только для мобильных, на десктопе скрыто) */
.menu {
    background: #166534;
    color: #fff;
    padding: 15px;
    display: none;
    gap: 20px;
}
.menu a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.menu a:hover {
    text-decoration: underline;
}
.menu .material-symbols-outlined {
    font-size: 20px;
}

/* Основной контент — одноколоночный макет */
.main {
    flex: 1;
    display: block;
}

.content {
    background: #f3f4f6;
}

.content-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}

.footer {
    background: #212121;
    color: #fff;
    padding: 20px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    font-size: 14px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .wrapper {
        width: 100%;
        margin: 0;
	}

    /* В мобильной версии авторизация/профиль только в нижней панели */
    .header-auth {
        display: none;
    }

    .content-inner {
        width: 100%;
        padding: 16px;
    }

    /* Отступ под фиксированное нижнее меню */
    .main::after {
        content: '';
        display: block;
        height: 80px;
	}

    /* Нижнее плавающее меню */
    .menu {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        background: #166534;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        border-radius: 40px;
        gap: 0;
	}

    .menu a {
        margin: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 11px;
        padding: 4px 0;
        border: none;
        gap: 2px;
        color: #fff;
        text-decoration: none;
	}

    .menu .material-symbols-outlined {
        font-size: 22px;
	}
}