/* Имперская цветовая палитра XVIII века */
:root {
    --imperial-gold: #C9A86A;
    --dark-bronze: #6B4E2E;
    --paper-cream: #F3E6D0;
    --ink-brown: #3B2A1B;
    --wine-red: #7A2E2E;
    --steel-gray: #8A8F9E;
    --old-paper: #F8F1E4;
    --dark-wood: #4D3320;
    --gold-text: #D9BB7A;
    --seal-red: #7A2E2E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: var(--old-paper);
    background-image: 
        /* Декоративные элементы сражений */
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.03'%3E%3Cpath d='M50 50 L150 50 L150 150 L50 150 Z' fill='none' stroke='%236B4E2E' stroke-width='2'/%3E%3Cpath d='M70 70 L130 70 L130 130 L70 130 Z' fill='none' stroke='%236B4E2E' stroke-width='1'/%3E%3Cline x1='100' y1='50' x2='100' y2='150' stroke='%236B4E2E' stroke-width='1'/%3E%3Cline x1='50' y1='100' x2='150' y2='100' stroke='%236B4E2E' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='150' height='150' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.02'%3E%3Cpath d='M75 20 L85 60 L125 70 L85 80 L75 120 L65 80 L25 70 L65 60 Z' fill='%237A2E2E'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(107, 78, 46, 0.02) 2px, rgba(107, 78, 46, 0.02) 4px);
    background-size: 200px 200px, 150px 150px, 100px 100px, auto;
    background-position: 0 0, 100px 100px, 0 0, 0 0;
    color: var(--ink-brown);
    min-height: 100vh;
    padding-bottom: 40px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.015'%3E%3Cpath d='M150 50 Q200 100 150 150 Q100 100 150 50' fill='%236B4E2E'/%3E%3Cpath d='M50 150 Q100 200 150 150 Q100 100 50 150' fill='%236B4E2E'/%3E%3Cpath d='M250 150 Q200 200 150 150 Q200 100 250 150' fill='%236B4E2E'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 300px 300px;
    background-position: 50% 50%;
    pointer-events: none;
    z-index: 0;
}

/* Декоративные боковые элементы для больших экранов */
@media (min-width: 1600px) {
    body::after {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        width: 200px;
        height: 100%;
        background-image: 
            url("data:image/svg+xml,%3Csvg width='100' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.02'%3E%3Cpath d='M50 20 L60 60 L100 70 L60 80 L50 120 L40 80 L0 70 L40 60 Z' fill='%236B4E2E'/%3E%3Cpath d='M50 100 L55 120 L75 125 L55 130 L50 150 L45 130 L25 125 L45 120 Z' fill='%237A2E2E'/%3E%3C/g%3E%3C/svg%3E");
        background-size: 100px 200px;
        background-repeat: repeat-y;
        pointer-events: none;
        z-index: 0;
    }
}

/* Декоративные орнаменты сверху и снизу */
.ornament-top, .ornament-bottom {
    height: 50px;
    background: linear-gradient(to bottom, var(--dark-wood), #3A2518);
    border-bottom: 2px solid var(--imperial-gold);
    position: relative;
    overflow: hidden;
}

.ornament-top::before, .ornament-top::after,
.ornament-bottom::before, .ornament-bottom::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, 
            transparent 0px, 
            transparent 15px, 
            rgba(217, 187, 122, 0.15) 15px, 
            rgba(217, 187, 122, 0.15) 18px);
}

/* Шапка в стиле тёмного дерева */
.main-header {
    background: linear-gradient(135deg, var(--dark-wood) 0%, #3A2518 100%);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.1'%3E%3Cpath d='M30 10 L35 25 L50 30 L35 35 L30 50 L25 35 L10 30 L25 25 Z' fill='%23C9A86A'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    border-bottom: 3px solid var(--imperial-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--imperial-gold) 20%, 
        var(--imperial-gold) 80%, 
        transparent 100%);
    opacity: 0.5;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--gold-text);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6), 0 0 10px rgba(217, 187, 122, 0.3);
    letter-spacing: 3px;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--gold-text) !important;
    text-decoration: none;
    font-size: 17px;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s;
    border: 2px solid transparent;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    display: inline-block;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    background: rgba(77, 51, 32, 0.2);
}

.nav-link:hover {
    background: rgba(217, 187, 122, 0.3) !important;
    border-color: var(--imperial-gold);
    color: var(--gold-text) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.language-switcher {
    display: flex;
    gap: 5px;
    background: rgba(77, 51, 32, 0.4);
    padding: 6px;
    border-radius: 8px;
    border: 2px solid rgba(217, 187, 122, 0.3);
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: var(--paper-cream);
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.lang-btn:hover {
    background: rgba(217, 187, 122, 0.2);
    border-color: rgba(217, 187, 122, 0.5);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--imperial-gold), #D4B87A);
    color: var(--ink-brown);
    border-color: var(--imperial-gold);
    box-shadow: 0 2px 8px rgba(201, 168, 106, 0.5);
    font-weight: 700;
}

.search-box {
    max-width: 300px;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid var(--dark-bronze);
    border-radius: 6px;
    background: var(--paper-cream);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--ink-brown);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: var(--imperial-gold);
    box-shadow: 0 0 12px rgba(201, 168, 106, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1600px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr 200px;
    gap: 25px;
    position: relative;
    z-index: 1;
}

/* Декоративные элементы по бокам контейнера на больших экранах */
@media (min-width: 1600px) {
    .container::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 200px;
        height: 100%;
        background-image: 
            url("data:image/svg+xml,%3Csvg width='100' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.02'%3E%3Cpath d='M50 20 L60 60 L100 70 L60 80 L50 120 L40 80 L0 70 L40 60 Z' fill='%236B4E2E'/%3E%3Cpath d='M50 100 L55 120 L75 125 L55 130 L50 150 L45 130 L25 125 L45 120 Z' fill='%237A2E2E'/%3E%3C/g%3E%3C/svg%3E");
        background-size: 100px 200px;
        background-repeat: repeat-y;
        pointer-events: none;
        z-index: 0;
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Рамки с эффектом старой бумаги */
.ornate-frame {
    background: var(--paper-cream);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='0.4'/%3E%3C/svg%3E");
    border: 3px solid var(--dark-bronze);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(107, 78, 46, 0.2);
    position: relative;
    z-index: 1;
}

.ornate-frame::before {
    content: '❋';
    position: absolute;
    top: -18px;
    left: 25px;
    background: var(--paper-cream);
    padding: 0 12px;
    color: var(--dark-bronze);
    font-size: 22px;
    font-weight: bold;
}

.ornate-frame::after {
    content: '❋';
    position: absolute;
    top: -18px;
    right: 25px;
    background: var(--paper-cream);
    padding: 0 12px;
    color: var(--dark-bronze);
    font-size: 22px;
    font-weight: bold;
}

.profile-card {
    text-align: center;
}

.profile-avatar {
    margin-bottom: 18px;
}

/* Аватар как восковая печать */
.avatar-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #8B3A3A, var(--seal-red));
    border: 5px solid var(--seal-red);
    border-style: double;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #FFF;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 
        0 6px 15px rgba(122, 46, 46, 0.4),
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 -2px 8px rgba(255, 255, 255, 0.2);
    font-family: 'Cinzel', serif;
    position: relative;
}

.avatar-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%);
    pointer-events: none;
}

.profile-name {
    font-family: 'Cinzel', serif;
    font-size: 25px;
    color: var(--ink-brown);
    margin-bottom: 6px;
    font-weight: 700;
}

.profile-title {
    font-size: 16px;
    color: var(--dark-bronze);
    font-style: italic;
    margin-bottom: 18px;
    font-weight: 500;
}

.profile-description {
    margin: 18px 0;
    padding: 18px;
    background: rgba(107, 78, 46, 0.08);
    border-radius: 8px;
    border-left: 4px solid var(--dark-bronze);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-bio {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-brown);
    font-style: italic;
    text-align: left;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid var(--dark-bronze);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-bronze);
}

.stat-label {
    font-size: 13px;
    color: var(--dark-bronze);
    font-weight: 500;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: var(--ink-brown);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
    font-weight: 500;
}

.menu-item:hover {
    background: rgba(107, 78, 46, 0.12);
    border-color: var(--dark-bronze);
    transform: translateX(5px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.menu-icon {
    font-size: 20px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    z-index: 1;
}


.post-composer {
    margin-bottom: 10px;
}

.composer-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 21px;
    color: var(--ink-brown);
    margin-bottom: 18px;
    font-weight: 600;
}

.composer-textarea {
    width: 100%;
    min-height: 110px;
    padding: 16px;
    border: 2px solid var(--dark-bronze);
    border-radius: 8px;
    background: #FFF;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--ink-brown);
    resize: vertical;
    margin-bottom: 18px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.composer-textarea:focus {
    outline: none;
    border-color: var(--imperial-gold);
    box-shadow: 0 0 12px rgba(201, 168, 106, 0.3), inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.composer-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Кнопки в стиле бронзовых рамок */
.btn-ornate {
    padding: 11px 22px;
    border: 2px solid var(--dark-bronze);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--paper-cream), #E8D9C0);
    color: var(--ink-brown);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-ornate:hover {
    background: linear-gradient(135deg, #E8D9C0, #DCC9A8);
    transform: translateY(-2px);
    box-shadow: 
        0 5px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: var(--imperial-gold);
}

.btn-primary {
    background: linear-gradient(135deg, var(--dark-bronze), #5A3E26);
    color: var(--gold-text);
    font-weight: 700;
    border-color: var(--imperial-gold);
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(217, 187, 122, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5A3E26, #4A2E1A);
    box-shadow: 
        0 5px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(217, 187, 122, 0.4);
}

.post {
    margin-bottom: 22px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

/* Аватары в постах как маленькие печати */
.post-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #8B3A3A, var(--seal-red));
    border: 3px solid var(--seal-red);
    border-style: double;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #FFF;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 
        0 4px 10px rgba(122, 46, 46, 0.3),
        inset 0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 -2px 6px rgba(255, 255, 255, 0.2);
    font-family: 'Cinzel', serif;
    position: relative;
}

.post-avatar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%);
    pointer-events: none;
}

.post-author h4 {
    font-family: 'Cinzel', serif;
    font-size: 21px;
    color: var(--ink-brown);
    margin-bottom: 4px;
    font-weight: 600;
}

.post-time {
    font-size: 14px;
    color: var(--dark-bronze);
    font-style: italic;
}

.post-content {
    margin-bottom: 18px;
}

.post-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink-brown);
    margin-bottom: 12px;
}

.post-image {
    margin-top: 18px;
    border-radius: 8px;
    overflow: hidden;
}

.image-placeholder {
    background: linear-gradient(135deg, #E8D9C0, #DCC9A8);
    padding: 70px;
    text-align: center;
    font-size: 24px;
    border: 2px dashed var(--dark-bronze);
    color: var(--dark-bronze);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.post-actions {
    display: flex;
    gap: 15px;
    padding-top: 18px;
    border-top: 2px solid var(--dark-bronze);
}

/* Комментарии */
.post-comments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--dark-bronze);
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(107, 78, 46, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--dark-bronze);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #8B3A3A, var(--seal-red));
    border: 2px solid var(--seal-red);
    border-style: double;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #FFF;
    font-weight: bold;
    flex-shrink: 0;
    font-family: 'Cinzel', serif;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-brown);
    margin-bottom: 4px;
}

.comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-brown);
    font-style: italic;
}

/* Аватары для турецких и французских комментаторов */
.comment-avatar[style*="background: radial-gradient"] {
    background: radial-gradient(circle at 30% 30%, #5A3E26, #4D3320) !important;
    border: 2px solid #4D3320;
}

.comment-avatar[style*="#8A8F9E"] {
    background: radial-gradient(circle at 30% 30%, #8A8F9E, #6B6D7A) !important;
    border: 2px solid #6B6D7A;
}

.action-btn {
    padding: 9px 18px;
    border: 2px solid var(--dark-bronze);
    border-radius: 6px;
    background: transparent;
    color: var(--ink-brown);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: rgba(107, 78, 46, 0.12);
    border-color: var(--imperial-gold);
    color: var(--dark-bronze);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.friends-widget h3,
.ads-widget h3 {
    font-family: 'Cinzel', serif;
    font-size: 21px;
    color: var(--ink-brown);
    margin-bottom: 18px;
    text-align: center;
    font-weight: 600;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.friend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    transition: transform 0.3s;
}

.friend-item:hover {
    transform: scale(1.12);
}

.friend-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #8B3A3A, var(--seal-red));
    border: 3px solid var(--seal-red);
    border-style: double;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #FFF;
    font-weight: bold;
    box-shadow: 
        0 3px 8px rgba(122, 46, 46, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        inset 0 -2px 5px rgba(255, 255, 255, 0.2);
    font-family: 'Cinzel', serif;
    position: relative;
}

.friend-avatar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%);
    pointer-events: none;
}

.friend-name {
    font-size: 12px;
    color: var(--ink-brown);
    text-align: center;
    font-weight: 500;
}

.ad-item {
    padding: 18px;
    background: rgba(107, 78, 46, 0.08);
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--dark-bronze);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ad-item h4 {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    color: var(--ink-brown);
    margin-bottom: 6px;
    font-weight: 600;
}

.ad-item p {
    font-size: 14px;
    color: var(--dark-bronze);
    font-style: italic;
    line-height: 1.5;
}

/* Адаптивность для больших экранов (проекторы, широкие мониторы) */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
        grid-template-columns: 280px 1fr 250px;
        gap: 35px;
    }
    
    .ornate-frame {
        padding: 28px;
    }
    
    .post-content p {
        font-size: 20px;
    }
    
    .composer-textarea {
        font-size: 20px;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 2200px;
        grid-template-columns: 320px 1fr 300px;
        gap: 40px;
    }
    
    .logo {
        font-size: 40px;
    }
    
    .nav-link {
        font-size: 20px;
        padding: 12px 22px;
    }
}

/* Планшеты и ноутбуки */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 220px 1fr 180px;
        gap: 20px;
    }
    
    .ornate-frame {
        padding: 18px;
    }
}

/* Мобильные устройства */
@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar,
    .right-sidebar {
        order: 2;
    }
    
    .content {
        order: 1;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 8px 14px;
        color: var(--paper-cream) !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .search-box {
        max-width: 100%;
        width: 100%;
    }
    
    .friends-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .post-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .action-btn {
        font-size: 14px;
        padding: 8px 14px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }
    
    .ornate-frame {
        padding: 15px;
    }
    
    .friends-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .composer-actions {
        flex-direction: column;
    }
    
    .btn-ornate {
        width: 100%;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 15px;
    }
}
