body{ background: linear-gradient(111deg, #fcfcfc 0%,#f2e6d2 40%,#d4fbd1 69%,#888888 100%);  min-height: 100%; padding: 0; margin: 0; font-family:Verdana, sans-serif; font-size: 11pt;
line-height: 1.6;}
h1, h2, h3, h4, h5, h6 {
    font-family: "Times New Roman", serif;
}



    /* --- 3. Шапка (Header) --- */
.head {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.head a { color: #374151; margin-right: 8px; text-decoration: none; font-size: 14pt; }
.head a:hover { color: var(--color-accent-red); text-decoration: none; fill: var(--color-accent-red); }
.lefttopmenu { order: 1; padding: 20px 0 20px 20px; flex-basis: 40%; }
.logo { order: 2; text-align: center; padding-top: 10px; }
.logo img { max-height: 50px; }
.righttopmenu { order: 3; padding: 20px 20px 20px 0; flex-basis: 40%; text-align: right; }
.icon { width: 1em; height: 1em; vertical-align: -0.2em; margin-right: 5px; }
  	.container {
  		  justify-content: center; padding: 10px;
  		
  		
  	}
  
footer {
    background-color: #222;
    color: white;
    padding: 20px 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

footer .city a {color: rgba(30, 160, 36, 0.6); padding: 2px 10px; display: inline-block; text-decoration: none;}
footer .city a:hover  {color: rgba(30, 160, 36, 1);}
footer .city a sup {color: rgba(255, 255, 255, 0.8); padding-left: 4px;}
footer .city a.active {  font-weight: bold; color: #eee; }
 

.footer-column {
    flex: 1;
    min-width: 100%;
    margin: 10px;
}

.footer-column h3 {
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-list {
    list-style: none;
    padding: 0;
}

  

.footer-list li {
    margin-bottom: 10px;   display: inline-block;  border: 1px solid #444; padding: 0 10px; line-height: 200%;  
}
.footer-list li:hover {
     border: 1px solid #ccc; background-color: #333; 

}

.footer-list li a {color: #999; text-decoration: none;}
.footer-list li a:hover {color: #fff;} 
.footer-list li a.active {font-weight: bold; color: #eee;}
/* Стили для нижней части футера */
.footer-bottom {
    text-align: center; background-color: #444;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
}

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

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
     
}

.footer-links li {
    margin: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}


.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовки */
h1, h2, h3 {
    color: #2a7fa4;
    font-weight: 700;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}



/* Стилевые правила для экранов с шириной от 960px до 1200px */
@media (min-width: 100px) and (max-width: 1200px) {
    .lefttopmenu a span {display: none;}
 .leftblok {min-width: 20%; }
 
  .checkboxes label { width: 50%; }
 
}

/* Стилевые правила для экранов с шириной от 1200px и выше */
@media (min-width: 1201px) {
 .leftblok {min-width: 15%; }
 
     .checkboxes label { width: 30%; }
 
}


/* --- Стили для публичной страницы пользователя --- */
.profile-page-container {
    max-width: 880px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Важно для скругления углов у картинки */
}

.profile-header {
    position: relative;
    height: 280px;
    background-color: #2C3E50; /* Фоновый цвет, если фото нет */
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение будет красиво заполнять блок */
    display: block;
}

.profile-info {
    padding: 20px;
    text-align: center;
    position: relative;
    margin-top: -80px; /* Сдвигаем блок с информацией наверх, на фото */
}

.profile-info-avatar-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin: 0 auto 15px auto;
    overflow: hidden;
}

.profile-info-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    margin: 0;
    color: #2C3E50;
    font-size: 2em;
}

.profile-meta {
    color: #777;
    margin-top: 5px;
    font-size: 0.9em;
}

.profile-actions {
    margin-top: 40px;
}

.profile-actions .write-message-btn {
    background-color: #2a7fa4;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.profile-actions .write-message-btn:hover {
    background-color: #1d5f7a;
    transform: translateY(-2px);
}
.profile-actions p {
    color: #aaa; padding-top: 20px;
}


.activity-feed {
    padding: 20px;
    border-top: 1px solid #eee;
}

.activity-feed h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.activity-item {
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #fcfcfc;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}

.activity-type {
    font-weight: bold;
    color: #555;
}

.activity-title a {
    font-size: 1.1em;
    font-weight: bold;
    color: #2a7fa4;
    text-decoration: none;
}
.activity-title a:hover {
    text-decoration: underline;
}

.activity-snippet {
    color: #444;
}


/* --- Стили для страницы профиля пользователя v2 --- */

/* Блок "О себе" */
.profile-about-me {
    text-align: center;
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-secondary, #6b7280);
    font-size: 1.05em;
    line-height: 1.6;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

/* Форма для новой записи на стене */
.wall-post-form {
    background-color: var(--color-surface, #ffffff);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.wall-post-form h3 {
    text-align: left;
    margin-top: 0;
    color: #111827;
}
.wall-post-form textarea {
    width: 100%;
    min-height: 80px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px;
    font-size: 1rem;
    resize: vertical;
}
.wall-post-form .form-group {
    margin-top: 1rem;
}
.wall-post-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}
.wall-post-form input[type="file"],
.wall-post-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
}
.wall-post-form button {
    margin-top: 1.5rem;
    background-color: var(--color-accent-blue, #2563eb);
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    color: white;
    cursor: pointer;
}
.wall-post-form button:hover {
    background-color: var(--color-accent-blue-hover, #1d4ed8);
}

/* Стили для элемента на стене */
.wall-item {
    background-color: var(--color-surface, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--color-border, #e5e7eb);
    margin-bottom: 1.5rem;
}
.wall-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.wall-item-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.wall-item-header .author-info {
    font-weight: 600;
}
.wall-item-header .author-info a {
    color: var(--color-text-primary, #1f2937);
    text-decoration: none;
}
.wall-item-header .author-info a:hover {
    text-decoration: underline;
}
.wall-item-header .post-meta {
    font-size: 0.85rem;
    color: var(--color-text-secondary, #6b7280);
}

.wall-item-content {
    padding: 1.25rem;
    line-height: 1.7;
    word-wrap: break-word;
}
.wall-item-content p {
    margin: 0;
}

.wall-item-photo {
    margin-top: 1rem;
}
.wall-item-photo img {
    max-width: 100%;
    border-radius: 8px;
}
.wall-item-photo-caption {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #6b7280);
    margin-top: 0.5rem;
    padding: 0 0.25rem;
}

/* Стили для отзыва, встроенного в стену */
.wall-item-review-link {
    display: block;
    background-color: #f9fafb;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--color-border, #e5e7eb);
    transition: background-color 0.2s ease;
}
.wall-item-review-link:hover {
    background-color: #f3f4f6;
}
.review-link-title {
    display: block;
    font-weight: 600;
    color: var(--color-text-primary, #1f2937);
}
.review-link-type {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-secondary, #6b7280);
}

.wall-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
    font-size: 0.9rem;
    color: var(--color-text-secondary, #6b7280);
}
.wall-actions button.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary, #6b7280);
    font-weight: 500;
    border-radius: 6px;
}
.wall-actions button.like-btn:hover {
    background-color: #f3f4f6;
}
.wall-actions button.like-btn.liked {
    color: var(--color-accent-red, #ef0021);
}
.wall-actions button.like-btn .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: all 0.2s ease;
}
.wall-actions button.like-btn.liked .icon {
    transform: scale(1.1);
}




/* Адаптивность */
@media (max-width: 768px) {
    .profile-info {
        margin-top: -60px;
    }
    .profile-info-avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    .profile-header {
        height: 200px;
    }
    .container {
        width: 95%;
        padding: 10px;
    }
}