/* ============================================ */
/* САДЫ НОВОТАЛИЦЫ - НОВЫЙ ДИЗАЙН (двухколонка) */
/* ============================================ */

/* ============================================ */
/* 1. ОБНУЛЕНИЕ И БАЗА                         */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F7F5EE;
    color: #2C3E2B;
    line-height: 1.5;
}

/* ============================================ */
/* 2. ПЕРЕМЕННЫЕ (ЦВЕТА, ТЕНИ)                  */
/* ============================================ */

:root {
    --green-primary: #3D6B3D;
    --green-light: #E6EFE2;
    --earth: #C4A27A;
    --terracotta: #D98C5F;
    --sand: #F0EAD6;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 32px -12px rgba(0,0,0,0.12);
}

/* ============================================ */
/* 3. КОНТЕЙНЕР                                */
/* ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================ */
/* 4. ШАПКА И МЕНЮ                             */
/* ============================================ */

.header {
    background: rgba(255, 255, 248, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* --- ЛОГОТИП --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text h1 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-primary);
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--earth);
}

/* --- КОНТЕЙНЕР МЕНЮ --- */
.nav-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.nav-list {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-list li a {
    text-decoration: none;
    font-weight: 500;
    color: #3A5338;
    transition: 0.2s;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--terracotta);
    border-bottom: 2px solid var(--terracotta);
    padding-bottom: 6px;
}

/* --- ВЫПАДАЮЩЕЕ МЕНЮ "ЕЩЁ" --- */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    font-weight: 500;
    color: #3A5338;
    cursor: pointer;
    padding: 2px 12px;
    font-size: 1rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dropdown-btn:hover {
    color: var(--terracotta);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 100;
    list-style: none;
    padding: 8px 0;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-content li a {
    display: block;
    padding: 10px;
    white-space: nowrap;
}

.dropdown-content li a:hover {
    background: var(--green-light);
    border-bottom: none;
}

.dropdown-divider {
    height: 1px;
    background: #EDE5D6;
    margin: 4px 12px;
}

/* --- СКРЫТЫЕ ПУНКТЫ МЕНЮ (для "Ещё") --- */
.hidden-menu-item {
    display: none;
}

/* ============================================ */
/* 5. БУРГЕР И МОБИЛЬНОЕ МЕНЮ                  */
/* ============================================ */

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--green-primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: 24px 20px 40px;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: calc(100vh - 80px);
    height: auto;
    width: 100%;
}

.mobile-menu.open {
    display: flex !important;
}

.mobile-menu a {
    text-decoration: none;
    font-weight: 500;
    color: #3A5338;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-menu a.active {
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.mobile-social-links a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--green-light);
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--green-primary);
    border-bottom: none;
}

.mobile-social-links a:hover {
    background: var(--green-primary);
    color: white;
}

/* ============================================ */
/* 6. ОСНОВНОЙ ФОН И ПОДЛОЖКА                  */
/* ============================================ */

.main-wrapper {
    position: relative;
    background-image: url('/images/zabor.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

.main-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 242, 235, 0.75);
    z-index: 1;
}

.main-wrapper > * {
    position: relative;
    z-index: 2;
}

.main-wrapper .container:first-child {
    padding-top: 40px;
}

/* ============================================ */
/* 7. ДВУХКОЛОНОЧНАЯ СЕТКА                     */
/* ============================================ */

.two-columns {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    margin: 0 0 60px;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ============================================ */
/* 8. КАРТОЧКА НОВОСТИ И HERO-БЛОК             */
/* ============================================ */

.news-card {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* --- HERO-БЛОК --- */
.news-card-hero {
    position: relative;
    width: 100%;
    height: 280px;
    background-image: url('/images/hero2.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.news-card-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
    z-index: 1;
}

.news-card-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.news-card-hero-title {
    position: relative;
    z-index: 2;
    color: white;
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin: 0;
    line-height: 1.3;
    max-width: 90%;
}

.news-card-hero-title a {
    color: white;
    text-decoration: none;
}

.news-card-hero-title a:hover {
    text-decoration: underline;
}

/* --- ВЕРХНЯЯ СТРОКА HERO-БЛОКА --- */
.hero-top-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 80px;
    padding-top: 50px;
}

.hero-title-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-nst-red {
    color: #e34d4d;
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-nst-white {
    color: white;
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-section-right {
    display: flex;
    align-items: baseline;
}

.hero-section-name {
    color: rgba(255,255,255,0.6);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- ТЕЛО КАРТОЧКИ --- */
.news-card-body {
    padding: 28px 32px;
}

.news-card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--terracotta);
    font-weight: 500;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-card-excerpt {
    color: #4A5E48;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 1rem;
}

.news-card-readmore {
    display: inline-block;
    background: var(--terracotta);
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
}

.news-card-readmore:hover {
    background: var(--green-primary);
    transform: translateX(4px);
}

.news-card-fulltext {
    line-height: 1.7;
    color: #2C3E2B;
    font-size: 1rem;
}

.news-card-fulltext img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.news-card-comments {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.news-card-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--earth), transparent);
    margin: 16px 0 32px 0;
}

/* ============================================ */
/* 9. ПРАВАЯ КОЛОНКА (САЙДБАР)                 */
/* ============================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

/* --- Карточки в сайдбаре --- */
.sidebar .news-card {
    margin-bottom: 20px;
    border-radius: 20px;
}

.sidebar .news-card-hero {
    height: 150px;
}

.sidebar .news-card-hero-title {
    font-size: 0.9rem;
    padding: 0 12px;
    line-height: 1.3;
}

.sidebar .news-card-body {
    padding: 12px 14px;
}

.sidebar .news-card-meta {
    gap: 8px;
    font-size: 0.72rem;
    margin-bottom: 8px;
}

.sidebar .news-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.sidebar .news-card-readmore {
    padding: 5px 12px;
    font-size: 0.7rem;
}

.sidebar .news-card-fulltext {
    font-size: 0.8rem;
}

.sidebar .news-card-fulltext img {
    margin: 12px 0;
    border-radius: 12px;
}

.sidebar .news-card-separator {
    margin: 12px 0 20px 0;
}

.sidebar .hero-top-row {
    margin-bottom: 16px;
}

.sidebar .hero-nst-red,
.sidebar .hero-nst-white {
    font-size: 0.6rem;
}

.sidebar .hero-section-name {
    font-size: 0.5rem;
    letter-spacing: 1px;
}

/* --- Виджеты --- */
.widget {
    background: rgba(255, 255, 248, 0.94);
    backdrop-filter: blur(2px);
    border-radius: 24px;
    padding: 18px 5px;
    box-shadow: var(--shadow-sm);
    margin: 0;
}

.widget-title {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-primary);
    border-left: 4px solid var(--terracotta);
    padding-left: 12px;
    margin-bottom: 16px;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #EDE5D6;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
}

.doc-link {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.calendar-demo {
    background: var(--green-light);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
}

.calendar-demo strong {
    font-size: 0.9rem;
}

/* --- Стили для форума в правой колонке --- */
.sidebar .forum-block {
    font-size: 0.8rem;
}

.sidebar .forum-item {
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.sidebar .forum-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar .forumIcon {
    width: 20px;
    height: 20px;
    background-size: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar .forum-item a {
    word-break: break-word;
    font-size: 0.85rem;
}

.sidebar .forum-item a:hover {
    color: var(--terracotta) !important;
}

/* ============================================ */
/* 10. ЗАГОЛОВКИ И КНОПКИ                      */
/* ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-primary);
    border-left: 4px solid var(--terracotta);
    padding-left: 12px;
    margin-bottom: 16px;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none;
    border: 0;
}

h2 {
    font-size: 1.5em;
    letter-spacing: 0.1em;
}

h3 {
    font-size: 1em;
    letter-spacing: 0.025em;
}

/* --- Заголовок раздела --- */
.section-title {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-primary);
    background: rgba(255, 255, 248, 0.6);
    backdrop-filter: blur(4px);
    padding: 12px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--terracotta);
    margin-bottom: 24px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.section-title .emoji {
    margin-right: 10px;
    font-size: 1.4rem;
}

/* --- Кнопка "Читать больше" --- */
.buttonMoreNew {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    background: rgba(255, 255, 248, 0.6);
    backdrop-filter: blur(4px);
    border: 2px solid var(--terracotta);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.buttonMoreNew a {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.buttonMoreNew a::before {
    content: '📖';
    font-size: 1.1rem;
}

.buttonMoreNew a::after {
    content: '→';
    transition: transform 0.3s ease;
}

.buttonMoreNew:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    box-shadow: 0 4px 16px rgba(217, 140, 95, 0.3);
    transform: translateY(-2px);
}

.buttonMoreNew:hover a {
    color: white;
}

.buttonMoreNew:hover a::after {
    transform: translateX(4px);
}

/* ============================================ */
/* 11. ПОДВАЛ                                  */
/* ============================================ */

.footer {
    background: #1F2E1D;
    color: #C4D4BE;
    border-radius: 32px 32px 0 0;
    padding: 48px 0 32px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer a {
    color: var(--terracotta);
    text-decoration: none;
}

/* --- Соцсети и счётчики в подвале --- */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #4A6A42;
    margin-top: 20px;
    gap: 15px;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-social-icons .social-links__item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-counters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4A6A42;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #C4D4BE;
}

.footer-copyright a {
    color: var(--terracotta);
    text-decoration: none;
}

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

/* ============================================ */
/* 12. ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ                  */
/* ============================================ */

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ============================================ */
/* 13. ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ                    */
/* ============================================ */

.profile-page .profile-container {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.profile-page .profile-sidebar {
    flex: 0 0 260px;
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    align-self: flex-start;
    position: sticky;
    top: 100px;
}

.profile-page .profile-sidebar .avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.profile-page .profile-sidebar .avatar-container .edit-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    background: var(--terracotta);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    border: 2px solid white;
}

.profile-page .profile-sidebar .user-name {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 4px;
}

.profile-page .profile-sidebar .user-id {
    font-size: 0.75rem;
    color: var(--earth);
    margin-bottom: 16px;
}

.profile-page .profile-sidebar .nav-item {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    color: #3A5338;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #F0EDE4;
}

.profile-page .profile-sidebar .nav-item:last-child {
    border-bottom: none;
}

.profile-page .profile-sidebar .nav-item:hover,
.profile-page .profile-sidebar .nav-item.active {
    background: var(--green-light);
    color: var(--green-primary);
}

.profile-page .profile-sidebar .nav-item .icon {
    margin-right: 10px;
}

.profile-page .profile-content {
    flex: 1;
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.profile-page .profile-content .tab-panel {
    display: none;
}

.profile-page .profile-content .tab-panel.active {
    display: block;
}

.profile-page .profile-content .panel-title {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-primary);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--green-light);
    margin-bottom: 24px;
}

.profile-page .form-group {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.profile-page .form-group label {
    width: 140px;
    font-weight: 500;
    color: #3A5338;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.profile-page .form-group .form-control {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid #EDE5D6;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: #FAF8F5;
}

.profile-page .form-group .form-control:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(217, 140, 95, 0.15);
}

.profile-page .form-group .form-control:disabled {
    background: #F0EDE4;
    color: #999;
}

.profile-page .btn-save {
    background: var(--terracotta);
    color: white;
    border: none;
    padding: 10px 32px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.profile-page .btn-save:hover {
    background: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 107, 61, 0.3);
}

.profile-page .btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.profile-page .btn-danger:hover {
    background: #c0392b;
}

.profile-page .session-item {
    background: #FAF8F5;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-left: 4px solid var(--green-light);
}

.profile-page .session-item .session-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #4A5E48;
}

.profile-page .session-item .session-row strong {
    color: #2C3E2B;
}

.profile-page .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #F0EDE4;
    font-size: 0.95rem;
}

.profile-page .stat-item:last-child {
    border-bottom: none;
}

.profile-page .stat-item .stat-label {
    color: #4A5E48;
}

.profile-page .stat-item .stat-value {
    font-weight: 600;
    color: var(--green-primary);
}

.profile-page #showProgressBarAva {
    display: none;
    margin: 12px auto;
    text-align: center;
}

.profile-page #showProgressBarAva progress {
    width: 100%;
    max-width: 300px;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #EDE5D6;
}

.profile-page #showProgressBarAva progress::-webkit-progress-bar {
    background: #EDE5D6;
    border-radius: 6px;
}

.profile-page #showProgressBarAva progress::-webkit-progress-value {
    background: var(--terracotta);
    border-radius: 6px;
}

.profile-page #showProgressBarAva #progressResultAva {
    font-size: 0.85rem;
    color: var(--earth);
    margin-top: 4px;
}

/* ============================================ */
/* 14. СТРАНИЦА ОБСУЖДЕНИЕ                     */
/* ============================================ */

.discussion-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.discussion-hero {
    background-image: url('/images/hero-discussion.jpg');
    background-size: cover;
    background-position: center;
}

.vk-hero {
    background-image: url('/images/hero-vk.jpg');
    background-size: cover;
    background-position: center;
}

.discussion-hero,
.vk-hero {
    height: 200px;
}

.discussion-page .comments_wrap {
    margin-top: 0;
}

.discussion-page .comments_head {
    background: var(--green-primary);
    color: white;
    border-radius: 12px 12px 0 0;
}

.discussion-page .comments_form {
    background: rgba(255, 255, 248, 0.6);
    border: 1px solid #EDE5D6;
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

#vk_comments {
    min-height: 300px;
    background: rgba(255, 255, 248, 0.3);
    border-radius: 12px;
    padding: 8px;
}

/* ============================================ */
/* 15. ФОРУМ                                   */
/* ============================================ */

.forum-page .section-title {
    margin-bottom: 32px;
}

.forum-card {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.forum-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.forum-card-body {
    padding: 24px 28px;
}

.forum-card-header {
    background: rgba(61, 107, 61, 0.05);
    padding: 16px 24px;
    border-bottom: 1px solid #EDE5D6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-card-header h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    color: var(--green-primary);
    margin: 0;
}

.forum-card-header .forum-toggle {
    cursor: pointer;
    font-weight: 700;
    color: var(--terracotta);
    padding: 4px 12px;
    border: 1px solid var(--terracotta);
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.forum-card-header .forum-toggle:hover {
    background: var(--terracotta);
    color: white;
}

.forum-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #F0EDE4;
    align-items: flex-start;
}

.forum-item:last-child {
    border-bottom: none;
}

.forum-item .forum-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.forum-item .forum-content {
    flex: 1;
    min-width: 0;
}

.forum-item .forum-title {
    font-weight: 600;
    color: var(--green-primary);
    text-decoration: none;
    font-size: 1.05rem;
}

.forum-item .forum-title:hover {
    color: var(--terracotta);
}

.forum-item .forum-desc {
    font-size: 0.85rem;
    color: #5A6E56;
    margin-top: 4px;
}

.forum-item .forum-stats {
    font-size: 0.75rem;
    color: var(--earth);
    margin-top: 6px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.forum-item .forum-last {
    font-size: 0.75rem;
    color: var(--earth);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.forum-item .forum-last .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.forum-message {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #F0EDE4;
}

.forum-message:last-child {
    border-bottom: none;
}

.forum-message .user-avatar {
    width: 80px;
    flex-shrink: 0;
}

.forum-message .user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.forum-message .user-name {
    font-weight: 600;
    color: var(--green-primary);
    cursor: pointer;
}

.forum-message .user-status {
    font-size: 0.7rem;
    color: var(--earth);
}

.forum-message .user-stats {
    font-size: 0.7rem;
    color: var(--earth);
    margin-top: 4px;
}

.forum-message .message-content {
    flex: 1;
    min-width: 0;
}

.forum-message .message-content .msg-text {
    line-height: 1.6;
    color: #2C3E2B;
}

.forum-message .message-content .msg-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.forum-message .message-footer {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--earth);
}

.new-theme-block {
    margin-top: 24px;
}

.new-theme-block .comments_head {
    background: var(--green-primary);
    color: white;
    padding: 14px 20px;
    border-radius: 16px 16px 0 0;
    cursor: pointer;
    font-weight: 600;
}

.new-theme-block .comments_form {
    background: rgba(255, 255, 248, 0.6);
    border: 1px solid #EDE5D6;
    border-top: 0;
    padding: 20px;
    border-radius: 0 0 16px 16px;
}

.forum-stats-block {
    background: rgba(255, 255, 248, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 16px 24px;
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--green-primary);
}

.forum-stats-block span {
    font-weight: 600;
}

.forum-stats-block a {
    color: var(--terracotta);
    text-decoration: none;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 8px 14px;
    background: var(--white);
    border-radius: 12px;
    text-decoration: none;
    color: var(--green-primary);
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
}

.pagination .current {
    background: var(--terracotta);
    color: white;
}

.pagination a:hover {
    background: var(--green-light);
    transform: translateY(-2px);
}

.forumsBlock {
    background: -webkit-linear-gradient(top, #545e7a, #797c85);
    background: -o-linear-gradient(top, #545e7a, #797c85);
    background: -moz-linear-gradient(top, #545e7a, #797c85);
    background: linear-gradient(to bottom, #545e7a, #797c85);
}

.forumIcon {
    height: 42px;
    width: 42px;
    display: inline-block;
}

/* ============================================ */
/* 16. АДАПТИВНОСТЬ (МЕДИА-ЗАПРОСЫ)           */
/* ============================================ */

/* ------ 1280px (узкий ноутбук) ------ */
@media (max-width: 1280px) {
    .two-columns {
        gap: 32px;
    }
}

/* ------ 1024px (планшет горизонтально) ------ */
@media (max-width: 1024px) {
    .two-columns {
        gap: 28px;
    }
    
    .news-card-hero {
        height: 220px;
    }
    
    .news-card-hero-title {
        font-size: 1.8rem;
    }
    
    .widget {
        padding: 18px;
    }
    
    .widget-title {
        font-size: 1rem;
    }
}

/* ------ 900px ------ */
@media (max-width: 900px) {
    .profile-page .profile-container {
        flex-direction: column;
    }
    
    .profile-page .profile-sidebar {
        flex: none;
        position: static;
        width: 100%;
    }
    
    .profile-page .profile-sidebar .nav-item {
        display: inline-block;
        border-bottom: none;
        padding: 8px 16px;
        margin-right: 4px;
    }
    
    .profile-page .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-page .form-group label {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .profile-page .form-group .form-control {
        width: 100%;
        min-width: auto;
    }
    
    .profile-page .profile-content {
        padding: 20px;
    }
}

/* ------ 780px (старый адаптив) ------ */
@media screen and (max-width: 780px) {
    .rightColumnBody {
        display: none;
    }
    .dialogList, .dialogUser, .leftColumnLS, .rightColumnLS, .rightProfileColumn {
        display: block;
        width: 100%;
    }
    .rightColumnLS, .rightProfileColumn {
        margin: 10px 0 0;
    }
    .dialogList, .dialogListFalseScroll, .leftColumnLS {
        height: 190px;
    }
}

/* ------ 768px (планшет вертикально и телефоны) ------ */
@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .main-wrapper .container:first-child {
        padding-top: 20px;
    }
    
    .nav-container {
        display: none;
    }
    
    .burger {
        display: block;
    }
    
    .logo-icon {
        display: none !important;
    }
    
    .news-card-hero {
        height: 160px;
    }
    
    .news-card-hero-title {
        font-size: 1.3rem;
        padding: 0 12px;
    }
    
    .hero-top-row {
        margin-bottom: 20px;
    }
    
    .hero-nst-red,
    .hero-nst-white {
        font-size: 0.7rem;
    }
    
    .hero-section-name {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    
    .news-card-body {
        padding: 20px;
    }
    
    .news-card-meta {
        gap: 12px;
        font-size: 0.75rem;
    }
    
    .news-card-readmore {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .sidebar {
        width: 100%;
        gap: 24px;
    }
    
    .widget {
        padding: 20px;
        border-radius: 20px;
    }
    
    .widget-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .doc-item {
        padding: 12px 0;
        font-size: 0.9rem;
    }
    
    .doc-link {
        font-size: 0.85rem;
    }
    
    .contact-item {
        gap: 12px;
        margin-bottom: 14px;
        font-size: 0.9rem;
    }
    
    .calendar-demo {
        padding: 14px;
        font-size: 0.9rem;
    }
    
    .footer {
        border-radius: 24px 24px 0 0;
    }
    
    .footer-social {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-counters {
        justify-content: center;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
    
    .discussion-hero,
    .vk-hero {
        height: 150px;
    }
    
    .forum-message {
        flex-direction: column;
        gap: 12px;
    }
    
    .forum-message .user-avatar {
        width: 100%;
        display: flex;
        gap: 16px;
        align-items: center;
    }
    
    .forum-message .user-avatar img {
        width: 48px;
        height: 48px;
    }
    
    .forum-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .forum-item .forum-icon {
        width: 40px;
        height: 40px;
    }
    
    .forum-card-body {
        padding: 16px 18px;
    }
    
    .forum-card-header {
        padding: 12px 16px;
    }
    
    .forum-card-header h3 {
        font-size: 1rem;
    }
}

/* ------ 480px (очень узкие телефоны) ------ */
@media (max-width: 480px) {
    .two-columns {
        gap: 24px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .news-card-hero {
        height: 130px;
    }
    
    .news-card-hero-title {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-nst-red,
    .hero-nst-white {
        font-size: 0.55rem;
    }
    
    .hero-section-name {
        font-size: 0.5rem;
    }
    
    .news-card-body {
        padding: 16px;
    }
    
    .news-card-meta {
        gap: 10px;
        font-size: 0.7rem;
    }
    
    .news-card-readmore {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .widget {
        padding: 14px;
        border-radius: 16px;
    }
    
    .widget-title {
        font-size: 1rem;
        margin-bottom: 12px;
        padding-left: 10px;
    }
    
    .doc-item {
        padding: 8px 0;
        font-size: 0.85rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .calendar-demo {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 32px 0 20px;
    }
    
    .footer-grid {
        gap: 24px;
    }
    
    .discussion-hero,
    .vk-hero {
        height: 120px;
    }
    
    .profile-page .profile-sidebar .nav-item {
        display: block;
        text-align: center;
    }
    
    .forum-stats-block {
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
    }
}

/* ============================================ */
/* 17. ПОПАПЫ, МОДАЛЬНЫЕ ОКНА И ПРОЧЕЕ         */
/* ============================================ */

.popup {
    margin-top: 60px;
    position: relative;
    max-width: 80%;
    min-width: 80%;
    padding: 20px;
    vertical-align: middle;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
    display: inline-block;
}

.popup__overlay, .popup__overlayFm {
    z-index: 9999;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, .8);
    text-align: center;
}

.popup__overlay:after, .popup__overlayFm:after {
    display: inline-block;
    height: 100%;
    width: 0;
    vertical-align: middle;
}

.popup__overlayFm {
    z-index: 10000;
}

.closeGalery, .popup__close, .popup__closeFm {
    display: block;
    position: fixed;
    z-index: 1;
    top: 65px;
    right: 20px;
    width: 35px;
    height: 35px;
    padding: 8px;
    border: 5px solid #CCC;
    border-radius: 50%;
    -webkit-box-shadow: inset 0 2px 2px 2px rgba(0,0,0,.4), 0 3px 3px rgba(0,0,0,.4);
    box-shadow: inset 0 2px 2px 2px rgba(0,0,0,.4), 0 3px 3px rgba(0,0,0,.4);
    cursor: pointer;
    background: #CCC;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    line-height: 8px;
    color: #444;
    text-decoration: none;
}

.popup__closeFm { z-index: 2; }

.closeGalery:hover, .popup__close:hover, .popup__closeFm:hover {
    background: #ddd;
}

.ViewInfo {
    z-index: 2;
    display: none;
    position: absolute;
    top: -60px;
    right: 10px;
    min-width: 150px;
    width: auto;
    height: auto;
    padding: 8px;
    COLOR: #FFFFFF;
    FONT-SIZE: 11px;
    FONT-FAMILY: Tahoma;
    background: rgba(0,0,0,.8);
    border-radius: 5px 5px;
}

.ViewInfo::after {
    content: '';
    position: absolute;
    right: 10px;
    bottom: -20px;
    border: 10px solid transparent;
    border-top: 10px solid #000;
    opacity: 0.8;
}

.s26 {
    COLOR: #FFFFFF;
    FONT-SIZE: 18px;
    FONT-FAMILY: Tahoma;
    padding-left: 7px;
    padding-right: 7px;
    background: #7F7F7F;
}

#okno {
    overflow-y: auto;
    text-align: left;
    max-height: 80%;
}

/* ============================================ */
/* 18. КОММЕНТАРИИ И БЛОКИ                     */
/* ============================================ */

.news_str {
    padding: 3px 10px 3px 10px;
    margin: 2px;
    border: 1px solid #999;
    text-decoration: none;
    text-align: left;
    width: 97%;
    color: #666;
    cursor: pointer;
}

.border {
    border-bottom: 1px dashed #999;
    margin-bottom: 10px;
}

.errorBlock {
    display: none;
    width: 100%;
    height: auto;
    background: rgba(0,0,0,.8);
    border-radius: 5px;
    padding: 5px;
}

.buttonEdit {
    display: inline-block;
    cursor: pointer;
    margin-left: 10px;
    height: 16px;
    background: url('/images/writeButton.png') 50% 0px no-repeat;
    width: 16px;
}

#topBorder {
    margin-bottom: 10px;
    border: dotted 1px rgba(0, 0, 0, 0.125);
}

.paginateBlock {
    width: auto%;
    padding-left: 20px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
    padding-top: 15px;
    padding-bottom: 15px;
}

.blockButton {
    width: 150px;
    margin-left: auto;
}

/* ---- Комментарии ---- */
.comments_head {
    background: #507299;
    position: relative;
    height: 32px;
    line-height: 30px;
    font-size: 13px;
    font-weight: 500;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    color: #d3dde7;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #fff;
    padding-left: 15px;
    border-radius: 3px 3px 0 0;
}

.comments_wrap {
    width: 1px;
    min-width: 100%;
}

.comments_form {
    background: #fafbfc;
    border: 1px solid #e1e4eb;
    border-top: 0;
    border-radius: 0 0 3px 3px;
    padding: 14px;
}

.inputCom {
    background: #fff !important;
    border: 1px solid #e1e4eb !important;
    outline: none !important;
    -moz-appearance: none !important;
    margin-top: 5px !important;
}

.comments_post_field {
    min-height: 81px;
    height: auto;
    padding: 10px 14px 12px;
    border-radius: 2px;
    line-height: 1.462;
    word-wrap: break-word;
    resize: none;
    padding-right: 36px;
    outline: none;
    -moz-appearance: none;
    background: #fff;
    border: 1px solid #e1e4eb;
}

.flatButton {
    padding: 7px 16px 8px;
    margin: 0;
    font-size: 12.5px;
    display: inline-block;
    zoom: 1;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, Roboto, Open Sans, Helvetica Neue, sans-serif;
    vertical-align: top;
    line-height: 15px;
    text-align: center;
    text-decoration: none;
    background: none;
    background-color: #5e81a8;
    color: #fff;
    border: 0;
    border-radius: 2px;
    box-sizing: border-box;
}

.flatButton:hover {
    background-color: #6888ad;
    text-decoration: none;
}

.flatButton:active {
    background-color: #5779a1;
    padding-top: 8px;
    padding-bottom: 7px;
}

.comments_posts_outer {
    width: inherit !important;
    position: relative;
}

.msgBox {
    border-bottom: 1px solid #e7e8ec;
    margin-top: 15px;
    width: 97%;
}

.msgUsername {
    line-height: 14px;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    -webkit-font-smoothing: subpixel-antialiased;
    margin-bottom: 5px;
}

.msgText, .msgAnswer, .msgQuoteInfo {
    line-height: 15px;
    font-size: 13.5px;
    word-wrap: break-word;
}

.msgQuoteInfo {
    margin-left: 15px;
    display: inline-block;
}

.msgdate, .msgQuote {
    display: inline-block;
    font-size: 10.5px;
    color: #939393;
    margin-top: 5px;
    margin-bottom: 3px;
}

.msgQuote {
    cursor: pointer;
    margin-left: 5px;
    font-size: 13.5px;
}

.msgQuote:hover {
    border-bottom: dotted 1px;
}

.msgQuoteInfoUsername {
    cursor: pointer;
    font-weight: 600;
}

.commentsBlock {
    width: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
    max-height: 500px;
    min-height: 100px;
}

.commentsBlockScroll {
    width: 103%;
    max-height: 500px;
    min-height: 100px;
    overflow-y: auto;
}

.msgAnswer {
    margin: 5px 5px 5px 45px;
    border-bottom: 1px dotted #e7e8ec;
}

.moreMsgButton {
    font-size: 12.5px;
    display: block;
    cursor: pointer;
    color: #55677d;
    background: #f0f2f5;
    line-height: 32px;
    border-radius: 2px;
    text-align: center;
}

#rssad {
    display: block;
    clear: both;
    overflow: hidden;
    margin: 10px 0 15px;
    padding: 8px 5px 8px 5px;
    border: 1px solid rgba(0,0,0,.1);
    -webkit-border-radius: 0 0 5px 5px;
    -moz-border-radius: 0 0 5px 5px;
    border-radius: 0 0 5px 5px;
    background: none repeat scroll 0 0 #ededed;
    -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.15);
    -moz-box-shadow: 0 1px 4px rgba(0,0,0,.15);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    text-align: left;
    font-size: 12px;
    color: #359cc6;
}

.infoStr {
    display: block;
    overflow: hidden;
    padding: 2px 5px 2px 5px;
    -webkit-border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0;
    background: none repeat scroll 0 0 #ededed;
    -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.15);
    -moz-box-shadow: 0 1px 4px rgba(0,0,0,.15);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    text-align: left;
    font-size: 13px;
    border-top: 1px solid rgba(195,182,182,.5);
    border-left: 1px solid rgba(195,182,182,.5);
    border-right: 1px solid rgba(195,182,182,.5);
    line-height: 16px;
    max-width: 360px;
}

.bordrerInfo {
    border-bottom: 1px dotted rgba(195,182,182,.9);
    margin-bottom: 3px;
}

.Newsview {
    font-size: 13px;
    color: #666;
    margin: 0 10px 0 0;
    background: url(/images/views.png) left 5px no-repeat;
    padding: 2px 0 2px 20px;
}

.Nb {
    padding: 15px;
    border-radius: 15px;
    transition: box-shadow 1.1s ease !important;
}

.Nb:hover {
    box-shadow: 0 7px 28px 0 rgba(0, 0, 0, .35);
    transition: all 1.1s;
}

a.buttonDownload {
    display: inline-block;
    text-shadow: 1px 1px #fff;
    text-decoration: none;
    padding: .3em 1em;
    border: 1px solid #aaa;
    border-radius: 100px;
    outline: none;
    background: #d6dbbf no-repeat;
    background-image: linear-gradient(to left, #aaa, #aaa),
                     linear-gradient(to left, #feffe8, #feffe8),
                     linear-gradient(#feffe8, #d6dbbf);
    background-position: calc(100% - 2.7em) 0, calc(100% - 2.7em + 1px) 0, 0 0;
    background-size: 1px 100%, 1px 100%, auto auto;
    overflow: hidden;
    margin-top: 10px;
}

a.buttonDownload:after {
    content: "\bb";
    position: relative;
    bottom: 0;
    display: inline-block;
    margin-left: 1.4em;
    vertical-align: middle;
    font-family: "Times","Times New Roman","serif","sans-serif","EmojiSymbols";
    font-weight: 700;
    font-size: 140%;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

a.buttonDownload:hover {
    background-color: #fdfd9f;
    background-image: linear-gradient(to left, #aaa, #aaa),
                     linear-gradient(to left, #feffe8, #feffe8),
                     linear-gradient(#fffce7, #fdfd9f);
}

a.buttonDownload:active:after {
    bottom: -1.2em;
    transition: .3s;
}

/* ============================================ */
/* 19. РЕГИСТРАЦИЯ И ПРОФИЛЬ (старое)          */
/* ============================================ */

.regInfo {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: top;
    margin-left: 5px;
}

.regInfoResTrue {
    background: url(../images/regInfoResTrue.png) no-repeat;
}

.regInfoResTrue:hover {
    background: url(../images/regInfoResTrue.png) 0 -20px no-repeat;
}

.regInfoResFalse {
    background: url(../images/regInfoResFalse.png) no-repeat;
}

.regInfoResFalse:hover {
    background: url(../images/regInfoResFalse.png) 0 -20px no-repeat;
}

.registerText {
    word-break: break-word;
    word-wrap: break-word;
    font-size: 24px;
    font-weight: 400;
    padding-top: 7px;
    border-bottom: 1px solid #d6d6d6;
    margin-bottom: 20px;
    text-align: center;
}

.registerForm {
    min-height: 400px;
    height: auto;
    text-align: center;
    border-radius: 2px;
    min-width: 200px;
    width: auto;
    padding: 10px;
}

.registerLogin, .selectForm {
    margin-bottom: 20px;
    border: 1px solid #d6d6d6;
    vertical-align: middle;
    outline: 0;
}

.registerLogin {
    background: url(/images/loginFormIcon.png) 7px 7px no-repeat #fafafa;
    border-radius: 2px;
    padding: 6px;
    box-shadow: inset 0 1px 0 0 #e8e8e8;
    padding-left: 34px !important;
    max-width: 300px;
}

.buttonRegister, .selectForm {
    background: #fafafa;
    box-shadow: inset 0 1px 0 0 #e8e8e8;
}

.selectForm {
    border-radius: 2px;
    padding: 6px;
    width: auto;
}

.buttonRegister {
    border: 1px solid #d6d6d6;
    border-radius: 2px;
    padding: 5px;
    width: 100px;
    display: inline-block;
}

.buttonRegister:hover {
    background: #d6d6d6;
}

.registerEmail {
    background: url(/images/emailForm.png) 7px 7px no-repeat #fafafa;
}

.registerPasswd {
    background: url(/images/emailForm.png) 7px -43px no-repeat #fafafa;
}

.inputTxt {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: rgba(189, 189, 189, 0.025);
    border-radius: 5px;
    border: none;
    border: solid 2px rgba(91, 107, 166, 0.125);
    color: inherit;
    display: block;
    outline: 0;
    padding: 0 1em;
    text-decoration: none;
    width: 100%;
    height: 2.75em;
}

.QuoteNotifMsg {
    z-index: 9999;
    display: none;
    margin: 10px auto 0;
    text-align: center;
    min-width: 200px;
    max-width: 500px;
    width: auto;
    min-height: 30px;
    height: auto;
    padding: 8px;
    COLOR: #FFF;
    FONT-SIZE: 13px;
    FONT-FAMILY: Tahoma;
    background: rgba(0, 0, 0, .8);
    border-radius: 3px;
    box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
}

.notifi {
    position: fixed;
    display: none;
    border-radius: 3px;
    FONT-FAMILY: Tahoma;
    z-index: 9999;
    left: 0;
    bottom: 10px;
    min-width: 200px;
    max-width: 350px;
    width: auto;
    min-height: 20px;
    height: auto;
    padding: 5px;
    margin: 5px;
    COLOR: #FFF;
    FONT-SIZE: 13px;
    background: rgba(0, 0, 0, .8);
    box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
}

.myDelButton {
    display: none;
    height: 16px;
    width: 16px;
    z-index: 10;
    background: #1d2022 url(/images/cross_delete.png) no-repeat 50%;
    border-radius: 0 3px 0 3px;
    opacity: 0.6;
    filter: alpha(opacity=60);
    cursor: pointer;
    transition: opacity 0.15s ease;
    position: absolute;
    top: 12px;
    right: 12px;
}

.myDelButton:hover {
    opacity: 0.85 !important;
    filter: alpha(opacity=85) !important;
}

/* ============================================ */
/* 20. ПРОЧИЕ УТИЛИТЫ                         */
/* ============================================ */

.leftColumnLS, .rightColumnLS {
    display: inline-block;
    vertical-align: top;
}

.contentMsgr, .leftColumnLS, .rightColumnLS {
    min-height: 277px;
    height: auto;
}

.contentMsgr {
    width: 100%;
}

.leftColumnLS {
    width: 220px;
    padding-top: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.rightColumnLS {
    width: calc(100% - 240px);
    margin-left: 5px;
}

.rightProfileColumn {
    display: inline-block;
    vertical-align: top;
    height: auto;
    background-color: #fff;
    min-height: 277px;
    margin-left: 5px;
    width: calc(100% - 240px);
}

.edit-btn {
    width: 35px;
    height: 35px;
    background: url(../images/edit-avatar-btn.png) center no-repeat;
    position: absolute;
    bottom: 10px;
    right: 65px;
    opacity: .5;
    cursor: pointer;
}

#showProgressBarAva {
    position: relative;
    width: 200px;
    display: none;
    margin: 0 auto;
    color: rgba(0, 0, 0, .6);
    text-shadow: 2px 8px 6px rgba(0, 0, 0, .2), 0 -5px 35px rgba(255, 255, 255, .3);
    font-size: 18px;
}

.item {
    position: relative;
    color: #1f1f1f;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    display: block;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 55px;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    text-decoration: none;
}

.item.active {
    background: #3498db;
    color: #fff;
    border-bottom: 1px solid #2688c9;
}

.notifications-panel {
    color: #fff;
    background: #3498db;
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 16px;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.avatarImg {
    height: auto;
    width: 90px;
}

label.edit-btn:before {
    display: none;
}

.infoBlock {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -160px;
    padding-top: 30px;
    z-index: 99999;
}

.BodyInfoBlock {
    z-index: 3;
    position: relative;
    padding: 3px;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    line-height: 15px;
    background: rgba(0, 0, 0, .8);
    border-radius: 3px;
    box-shadow: 1px 2px 7px rgba(0, 0, 0, .6);
    min-width: 280px;
    max-width: 290px;
    height: auto;
    overflow-y: auto;
    max-height: 570px;
    min-height: 120px;
}

.avatarLSdialog {
    position: relative;
    display: inline-block;
    width: 50px;
    overflow: hidden;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border-radius: 50%;
    background-size: cover;
}

.toolBar {
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 10000;
}

#usernameVote {
    display: none;
    width: auto;
    height: auto;
    text-align: center;
    padding: 5px;
    margin-top: 5px;
    background-color: #424242;
    border-radius: 5px;
}

.spoilerClose {
    text-align: center;
}

.spoiler {
    FONT-FAMILY: Trebuchet MS, Helvetica, sans-serif;
    font-size: 15px;
}

.spoilerContent {
    display: none;
    max-width: 690px;
    padding: 5px;
}

.spoiler {
    position: relative;
    margin-bottom: 5px;
    border: 1px solid #dcdcdf;
    border-radius: 5px;
    max-width: 690px;
}

.type {
    padding-left: 5px;
    padding-top: 3px;
    background-color: #d7e4f3;
    border-bottom: #dcdcdf;
    min-height: 20px;
    height: auto;
    cursor: pointer;
}

.closeSP, .openSP {
    height: 20px;
    width: 20px;
}

.spoilerTitle {
    vertical-align: top;
    padding-top: 3px;
    width: 90%;
}

.spoilerClose {
    background: #f0f2f5;
    color: #55677d;
    border: 1px dashed #55677d;
    cursor: pointer;
}

.openSP {
    background: url(../images/openSpoiler.png) 50% no-repeat;
}

.closeSP {
    background: url(../images/closeSpoiler.png) 50% no-repeat;
}

.BodyNewsStyle {
    position: relative;
    padding-top: 10px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
    padding-left: 5px;
    padding-right: 5px;
    text-align: left;
}

.buttonNavi {
    font-size: 14.5px;
    display: block;
    color: white;
    background: #35b1f0;
    line-height: 15px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    width: auto;
    padding: 10px;
}

.buttonNaviSelect {
    background: #2d5c8e;
}

.formArea {
    border-radius: 2px;
    padding: 6px;
    box-shadow: inset 0 1px 0 0 #e8e8e8;
    padding-left: 10px !important;
    max-width: 300px;
    margin-bottom: 20px;
    border: 1px solid #d6d6d6;
    vertical-align: middle;
    outline: 0;
}

.moreInfo {
    font-size: 14.5px;
    display: block;
    color: white;
    background: #35b1f0;
    line-height: 32px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    padding: 5px;
}

.aroundText {
    line-height: 32px;
    border-radius: 5px;
    text-align: center;
    width: auto;
    padding: 5px;
}

/* ============================================ */
/* 21. СТАТУСЫ ОПЛАТ                          */
/* ============================================ */

.redyPay, .pending, .waiting_for_capture, .succeeded, .work, .delivery, .end, .canceled {
    margin-right: 10px;
    border: 1px solid #ddd;
}

.redyPay { color: #f9f9f9; background: #dc5f59; }
.pending { color: #f9f9f9; background: #d361b8; }
.waiting_for_capture { color: #f9f9f9; background: #3a9fc9; }
.succeeded { color: #f9f9f9; background: #7abf24; }
.work { color: #f9f9f9; background: #86aa60; }
.delivery { color: #f9f9f9; background: #b384e2; }
.end { color: #f9f9f9; background: #249641; }
.canceled { color: #f9f9f9; background: #929594; }

/* ============================================ */
/* 22. ОПРОСЫ                                  */
/* ============================================ */

#pollAjaxs {
    border: 1px solid #666;
    padding: 8px;
}

.pollTitle {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

#resaltPoll {
    display: none;
}

#resaltshow, #pollshow {
    border: 1px solid #666;
    padding: 4px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

#resaltshow {
    width: 60px;
    margin: 8px auto;
}

.answer {
    height: 30px;
    margin: 5px 0;
}

.font {
    height: 10px;
    background: #eee url('/images/bg.png') repeat-x;
    margin: 3px 0;
    width: 0;
    border-radius: 2px;
}

.pollRed {
    color: #D80000;
}

.pollGreen {
    color: #00A331;
}

.pollRed span, .pollGreen span {
    color: #424242;
}

/* ============================================ */
/* 23. LABEL И RADIO                           */
/* ============================================ */

label {
    display: inline-block;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
    margin-right: 5px;
    font-size: 12px;
}

input[type=radio] {
    display: none;
}

label:hover:before {
    background-color: #444;
}

label:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    position: absolute;
    left: 0;
    bottom: 1px;
    background-color: #aaa;
    box-shadow: inset 0px 2px 3px 0px rgba(0, 0, 0, .3), 0px 1px 0px 0px rgba(255, 255, 255, .8);
}

.radio label:before {
    border-radius: 8px;
}

input[type=radio]:checked + label:before {
    content: "\2022";
    color: #f3f3f3;
    font-size: 30px;
    text-align: center;
    line-height: 18px;
}

#okno,
#okno *,
:before,
:after {
    box-sizing: content-box;
}

/* ===== РЕГИСТРАЦИЯ В НОВОМ ДИЗАЙНЕ ===== */
.registration-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.registration-page .register-card {
    background: var(--white);
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.registration-page .register-title {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green-primary);
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--green-light);
    margin-bottom: 24px;
}

.registration-page .form-group {
    margin-bottom: 16px;
}

.registration-page .form-group label {
    display: block;
    font-weight: 500;
    color: #3A5338;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.registration-page .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #EDE5D6;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #FAF8F5;
}

.registration-page .form-control:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(217, 140, 95, 0.15);
}

.registration-page .form-control:disabled {
    background: #F0EDE4;
    color: #999;
}

.registration-page .form-hint {
    font-size: 0.8rem;
    color: var(--earth);
    margin-top: 4px;
}

.registration-page .form-hint.error {
    color: #e74c3c;
}

.registration-page .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: var(--green-light);
    border-radius: 12px;
}

.registration-page .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--green-primary);
}

.registration-page .checkbox-group label {
    font-size: 0.9rem;
    color: #3A5338;
    line-height: 1.5;
}

.registration-page .btn-register {
    width: 100%;
    padding: 14px;
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
}

.registration-page .btn-register:hover {
    background: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(61, 107, 61, 0.3);
}

.registration-page .btn-register:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.registration-page .error-message {
    background: #fff5f5;
    border: 1px solid #fcc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    color: #c0392b;
}

.registration-page .error-message .error-item {
    padding: 4px 0;
    font-size: 0.9rem;
}

.registration-page .success-message {
    background: #f0f8f0;
    border: 1px solid #b8d9b8;
    border-radius: 12px;
    padding: 20px;
    color: var(--green-primary);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
}

.registration-page .back-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 500;
}

.registration-page .back-link:hover {
    text-decoration: underline;
}

/* Парольные требования */
.registration-page .password-requirements {
    background: #FAF8F5;
    border-radius: 12px;
    padding: 12px 20px;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #4A5E48;
}

.registration-page .password-requirements li {
    list-style: disc;
    margin-left: 20px;
    padding: 2px 0;
}

/* Адаптив */
@media (max-width: 768px) {
    .registration-page .register-card {
        padding: 20px;
        border-radius: 20px;
    }
    
    .registration-page .register-title {
        font-size: 1.4rem;
    }
    
    .registration-page .checkbox-group {
        flex-direction: column;
    }
    
    .registration-page .checkbox-group input[type="checkbox"] {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .registration-page .register-card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .registration-page .register-title {
        font-size: 1.2rem;
    }
    
    .registration-page .form-control {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}