 :root {
     --bg: #fafaf8;
     --surface: #ffffff;
     --text-primary: #1a1c1b;
     --text-secondary: #4a504c;
     --text-muted: #7b817d;
     --line: #e9ece9;
     --accent: #3f5e4f;
     --accent-hover: #2e473b;
     --accent-light: #e3ede8;
     --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.02);
     --radius-lg: 28px;
     --radius-md: 18px;
     --radius-sm: 12px;
     --font: 'Inter', system-ui, -apple-system, sans-serif;
     --transition: 0.25s cubic-bezier(0.2, 0, 0, 1);
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }
ul {
  list-style-type: none;
  padding-left: 0;
}
li {
    display: list-item;
    unicode-bidi: isolate;
}
 html {
     scroll-behavior: smooth;
 }

 body {
     font-family: var(--font);
     background-color: var(--bg);
     color: var(--text-primary);
     line-height: 1.5;
     -webkit-font-smoothing: antialiased;
     letter-spacing: -0.01em;
 }

 img {
     max-width: 100%;
     display: block;
 }

 a {
     text-decoration: none;
     color: inherit;
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 24px;
 }

 .auth-block {
     display: flex;
     justify-content: flex-start;
     gap: 8px;
     flex-shrink: 0;
 }

 .auth-btn {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     padding: 8px 16px;
     border-radius: 40px;
     font-size: 0.9rem;
     font-weight: 500;
     line-height: 1;
     transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
     white-space: nowrap;
     cursor: pointer;
 }

 .auth-btn .auth-icon {
     flex-shrink: 0;
 }

 /* Стиль для кнопки "Войти" */
 .auth-login {
     color: var(--text-secondary, #4a504c);
     border: 1px solid var(--line, #e9ece9);
     background: transparent;
 }

 .auth-login:hover {
     background: var(--accent-light, #e3ede8);
     color: var(--accent, #3f5e4f);
     border-color: var(--accent, #3f5e4f);
 }

 /* Стиль для кнопки "Регистрация" */
 .auth-register {
     color: #ffffff;
     background: var(--accent, #3f5e4f);
     border: 1px solid var(--accent, #3f5e4f);
 }

 .auth-register:hover {
     background: var(--accent-hover, #2e473b);
     border-color: var(--accent-hover, #2e473b);
 }

 /* Адаптация для мобильных устройств */
 @media (max-width: 480px) {
     .auth-text {
         display: none;
         /* скрываем текст, оставляем только иконки */
     }

     .auth-btn {
         padding: 10px;
         /* увеличиваем область касания */
     }

     .auth-icon {
         width: 20px;
         height: 20px;
     }
 }

 /* ========== НАВИГАЦИЯ ========== */
 .navbar {
     position: sticky;
     top: 0;
     z-index: 50;
     background: rgba(250, 250, 248, 0.92);
     backdrop-filter: blur(10px);
     border-bottom: 1px solid transparent;
     transition: var(--transition);
     padding: 12px 0;
 }

 .navbar.scrolled {
     border-bottom-color: var(--line);
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
 }

 .nav-container {
     display: flex;
     flex-direction: column;
     gap: 12px;
     width: 100%;
 }

 .nav-top-row {
     position: relative;
     display: flex;
     align-items: center;
     justify-content: end;
     width: 100%;
 }

 .burger {
     display: none;
     flex-direction: column;
     gap: 5px;
     background: none;
     border: none;
     cursor: pointer;
     padding: 6px;
     z-index: 60;
     order: 1;
 }

 .burger span {
     display: block;
     width: 28px;
     height: 2px;
     background: var(--text-primary);
     border-radius: 2px;
     transition: transform var(--transition), opacity var(--transition);
 }

 .burger.active span:nth-child(1) {
     transform: translateY(7px) rotate(45deg);
 }

 .burger.active span:nth-child(2) {
     opacity: 0;
 }

 .burger.active span:nth-child(3) {
     transform: translateY(-7px) rotate(-45deg);
 }

 .logo {
     position: absolute;
     left: 50%;
     transform: translateX(-50%);
     display: flex;
     align-items: center;
     gap: 8px;
     transition: opacity var(--transition);
     order: 2;
     z-index: 1;
 }

 .logo img {
     height: 36px;
     width: auto;
     display: block;
     object-fit: contain;
     transition: height var(--transition);
 }

 .logo:hover {
     opacity: 0.85;
 }

 .nav-right {
     order: 3;
     display: flex;
     align-items: center;
 }

 .cta-button {
     background: var(--accent);
     color: white;
     padding: 10px 22px;
     border-radius: 40px;
     font-weight: 500;
     font-size: 0.9rem;
     transition: background var(--transition), transform var(--transition);
     display: inline-block;
     white-space: nowrap;
 }

 .cta-button:hover {
     background: var(--accent-hover);
     transform: translateY(-1px);
 }

 /* Рубрикатор веков */
 .nav-centuries-row {
     display: flex;
     justify-content: center;
     width: 100%;
     padding: 4px 0 0;
 }

 .nav-centuries {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 6px;
     background: transparent;
     border: none;
     padding: 0;
 }

 .nav-centuries a {
     font-size: 0.85rem;
     font-weight: 500;
     color: var(--text-secondary);
     padding: 6px 14px;
     border-radius: 20px;
     background: transparent;
     border: 1px solid var(--line);
     transition: background var(--transition), color var(--transition);
 }

 .nav-centuries a:hover {
     background: var(--accent);
     color: #fff;
     border-color: var(--accent);
 }

 /* ===== МЕНЮ ВО ВСЮ ШИРИНУ ШАПКИ ===== */
  .nav-bottom-row li.nav-item{
    list-style: none;}
 .nav-bottom-row {
     display: flex;
     justify-content: center;
     /* равномерно по центру */
     gap: 6px;
     flex-wrap: wrap;
     padding: 6px;
     background: var(--surface);
     border: 1px solid var(--line);
     border-radius: var(--radius-lg);
     width: 100%;
     /* растягиваем на всю ширину fit-content */
     margin: 0;
     /* убираем автоцентровку */
     transition: background var(--transition), border-color var(--transition);
 }

 .nav-bottom-row a {
     font-size: 0.9rem;
     font-weight: 500;
     color: var(--text-secondary);
     padding: 8px 16px;
     border-radius: 40px;
     background: transparent;
     transition: background var(--transition), color var(--transition);
     white-space: nowrap;
     position: relative;
 }

 .nav-bottom-row a:hover, .nav-bottom-row a.active  {
     background: var(--accent);
     color: #fff;
 }

 /* убираем подчёркивание, так как используем кнопки */
 .nav-bottom-row a::after {
     display: none;
 }

 /* ========== HERO-СЛАЙДЕР ========== */
 .hero-slider {
     position: relative;
     width: 100%;
     height: 50vh;
     min-height: 500px;
     max-height: 800px;
     overflow: hidden;
     background: #dfe7e3;
 }

 .hero-slider .slides-container {
     display: flex;
     height: 100%;
     transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
 }

 .hero-slider .slide {
     flex: 0 0 100%;
     height: 100%;
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
     background-size: cover;
     background-position: center;
     overflow: hidden;
 }

 .hero-slider .slide::after {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
     z-index: 1;
 }

 .hero-slider .slide-content {
     position: relative;
     z-index: 2;
     text-align: center;
     color: #fff;
     max-width: 800px;
     padding: 0 24px;
     opacity: 0;
     transform: translateY(20px);
     transition: opacity 0.5s ease, transform 0.5s ease;
 }

 .hero-slider .slide.active .slide-content {
     opacity: 1;
     transform: translateY(0);
 }

 .hero-slider .slide-tag {
     display: inline-block;
     background: var(--accent-light);
     color: var(--accent);
     padding: 6px 18px;
     border-radius: 50px;
     font-size: 0.8rem;
     font-weight: 600;
     letter-spacing: 0.5px;
     text-transform: uppercase;
     margin-bottom: 16px;
 }

 .hero-slider .slide-title {
     font-size: clamp(2.2rem, 5vw, 3.8rem);
     font-weight: 700;
     line-height: 1.1;
     letter-spacing: -0.03em;
     margin-bottom: 16px;
     color: #fff;
 }

 .hero-slider .slide-desc {
     font-size: 1.1rem;
     color: rgba(255, 255, 255, 0.9);
     margin-bottom: 24px;
     font-weight: 300;
     max-width: 600px;
     margin-left: auto;
     margin-right: auto;
 }

 .hero-slider .slide-actions {
     display: flex;
     gap: 12px;
     justify-content: center;
     flex-wrap: wrap;
 }

 .hero-slider .btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 12px 28px;
     border-radius: 50px;
     font-weight: 500;
     font-size: 0.95rem;
     transition: all var(--transition);
     cursor: pointer;
     border: none;
     white-space: nowrap;
 }

 .hero-slider .btn-primary {
     background: var(--accent);
     color: #fff;
 }

 .hero-slider .btn-primary:hover {
     background: var(--accent-hover);
     transform: translateY(-2px);
     box-shadow: 0 8px 20px rgba(61, 107, 88, 0.25);
 }

 .hero-slider .btn-outline {
     background: transparent;
     border: 1.5px solid rgba(255, 255, 255, 0.6);
     color: #fff;
 }

 .hero-slider .btn-outline:hover {
     background: rgba(255, 255, 255, 0.1);
     border-color: #fff;
 }

 .hero-slider .rating-stars {
     color: #f5a623;
     letter-spacing: 2px;
     font-size: 1rem;
     margin-right: 6px;
 }

 .hero-slider .rating-badge {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     background: rgba(255, 255, 255, 0.2);
     backdrop-filter: blur(4px);
     padding: 6px 14px;
     border-radius: 50px;
     font-size: 0.85rem;
     font-weight: 500;
     margin-top: 12px;
 }

 .hero-slider .slider-btn {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     width: 52px;
     height: 52px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.9);
     border: none;
     color: var(--text-primary);
     font-size: 1.8rem;
     line-height: 1;
     cursor: pointer;
     transition: all var(--transition);
     z-index: 10;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 }

 .hero-slider .slider-btn:hover {
     background: #fff;
     transform: translateY(-50%) scale(1.05);
 }

 .hero-slider .slider-btn.prev {
     left: 24px;
 }

 .hero-slider .slider-btn.next {
     right: 24px;
 }

 .hero-slider .dots-container {
     position: absolute;
     bottom: 24px;
     left: 50%;
     transform: translateX(-50%);
     display: flex;
     gap: 12px;
     z-index: 10;
 }

 .hero-slider .dot {
     width: 10px;
     height: 10px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.5);
     border: none;
     cursor: pointer;
     transition: background var(--transition), transform var(--transition);
 }

 .hero-slider .dot.active {
     background: #fff;
     transform: scale(1.4);
 }

 /* ========== СТАТИСТИКА ========== */
 .stats-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
     gap: 18px;
     margin: 56px 0 28px;
 }

 .stat-item {
     background: var(--surface);
     border-radius: var(--radius-md);
     padding: 24px 16px;
     text-align: center;
     box-shadow: var(--shadow-sm);
     border: 1px solid #f0f2f0;
     transition: transform var(--transition), box-shadow var(--transition);
 }

 .stat-item:hover {
     transform: translateY(-4px);
     box-shadow: 0 14px 28px rgba(0, 0, 0, 0.05);
 }

 .stat-number {
     font-size: 2.5rem;
     font-weight: 600;
     color: var(--accent);
     letter-spacing: -0.03em;
     line-height: 1.2;
 }

 .stat-label {
     color: var(--text-muted);
     font-size: 0.9rem;
     margin-top: 6px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     font-weight: 500;
 }

 /* ========== СЕКЦИИ ========== */
 .section-header {
     display: flex;
     align-items: baseline;
     justify-content: space-between;
     flex-wrap: wrap;
     gap: 16px;
     margin: 72px 0 32px;
 }

 .section-title {
     font-size: 2rem;
     font-weight: 550;
     letter-spacing: -0.02em;
 }

 .section-link {
     color: var(--accent);
     font-weight: 500;
     font-size: 0.95rem;
     border-bottom: 1.5px solid transparent;
     transition: border-color var(--transition);
 }

 .section-link:hover {
     border-color: var(--accent);
 }


 
 /* ========== БЛОГ ========== */
 .blog-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
     gap: 24px;
 }

 .blog-card {
     background: var(--surface);
     border-radius: var(--radius-lg);
     overflow: hidden;
     border: 1px solid #f0f2f0;
     transition: transform var(--transition), box-shadow var(--transition);
     display: flex;
     flex-direction: column;
 }

 .blog-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 20px 30px rgba(0, 0, 0, 0.06);
 }

 .blog-card img {
     width: 100%;
     height: 180px;
     object-fit: cover;
     background: #eaeceb;
 }

 .blog-info {
     padding: 20px 20px 24px;
     display: flex;
     flex-direction: column;
     gap: 8px;
     flex: 1;
 }

 .blog-date {
     font-size: 0.8rem;
     color: var(--text-muted);
 }

 .blog-title {
     font-weight: 600;
     font-size: 1.2rem;
     letter-spacing: -0.01em;
 }

 .blog-desc {
     color: var(--text-secondary);
     font-size: 0.9rem;
     font-weight: 300;
     flex: 1;
 }

 .blog-link {
     color: var(--accent);
     font-weight: 500;
     font-size: 0.9rem;
     margin-top: 8px;
     display: inline-block;
 }

 .blog-link:hover {
     text-decoration: underline;
 }

 /* ========== ПОПУЛЯРНЫЕ ТРОПЫ ========== */
 .trail-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
     gap: 24px;
 }

 .trail-card {
     background: var(--surface);
     border-radius: var(--radius-lg);
     overflow: hidden;
     border: 1px solid #f0f2f0;
     transition: transform var(--transition), box-shadow var(--transition);
     display: flex;
     flex-direction: column;
 }

 .trail-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 20px 30px rgba(0, 0, 0, 0.06);
 }

 .trail-card img {
     width: 100%;
     height: 200px;
     object-fit: cover;
     background: #eaeceb;
 }

 .trail-info {
     padding: 20px 20px 24px;
     display: flex;
     flex-direction: column;
     gap: 8px;
 }

 .trail-tag {
     font-size: 0.75rem;
     color: var(--text-muted);
     text-transform: uppercase;
     letter-spacing: 0.6px;
     font-weight: 500;
 }

 .trail-name {
     font-weight: 600;
     font-size: 1.2rem;
     letter-spacing: -0.01em;
 }

 .trail-meta {
     display: flex;
     gap: 16px;
     color: var(--text-secondary);
     font-size: 0.85rem;
     margin-top: 4px;
 }

 /* ========== О ПРОЕКТЕ ========== */
 .about-section {
     margin: 80px 0;
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 48px;
     align-items: center;
 }

 .about-text h2 {
     font-size: 2.4rem;
     font-weight: 550;
     letter-spacing: -0.03em;
     margin-bottom: 20px;
 }

 .about-text p {
     color: var(--text-secondary);
     font-size: 1.05rem;
     margin-bottom: 24px;
     font-weight: 300;
 }

 .about-image {
     background: #e4e9e6;
     border-radius: var(--radius-lg);
     height: 320px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: #6b7c72;
     font-size: 3.5rem;
     background-image: radial-gradient(circle at 20% 30%, #dbe4df 2px, transparent 2px), radial-gradient(circle at 80% 70%, #d0dbd5 2px, transparent 2px);
     background-size: 40px 40px;
 }

 /* ========== ПОДПИСКА ========== */
 .newsletter {
     background: #eef2ef;
     border-radius: var(--radius-lg);
     padding: 40px 48px;
     margin: 64px 0;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 24px;
     flex-wrap: wrap;
 }

 .newsletter h3 {
     font-size: 1.8rem;
     font-weight: 500;
     letter-spacing: -0.02em;
 }

 .newsletter p {
     color: var(--text-secondary);
     font-weight: 300;
 }

 .newsletter-form {
     display: flex;
     gap: 8px;
     flex-wrap: wrap;
 }

 .newsletter-input {
     padding: 12px 20px;
     border-radius: 40px;
     border: 1px solid #d0dad5;
     background: white;
     font-family: var(--font);
     font-size: 0.9rem;
     min-width: 240px;
     outline: none;
     transition: border-color var(--transition);
 }

 .newsletter-input:focus {
     border-color: var(--accent);
 }

 /* ========== ФУТЕР ========== */
 footer {
     border-top: 1px solid var(--line);
     padding: 36px 0;
     margin-top: 60px;
 }

 .footer-grid {
     display: flex;
     justify-content: space-between;
     flex-wrap: wrap;
     gap: 32px;
 }

 .footer-col p {
     color: var(--text-muted);
     font-size: 0.85rem;
     margin-top: 8px;
     max-width: 240px;
 }

 .footer-col a {
     display: block;
     color: var(--text-secondary);
     margin-bottom: 10px;
     font-size: 0.9rem;
     transition: color var(--transition);
 }

 .footer-col a:hover {
     color: var(--accent);
 }

 .footer-bottom {
     text-align: center;
     margin-top: 40px;
     font-size: 0.75rem;
     color: var(--text-muted);
 }

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

     .logo {
         left: 80px;
     }

     .logo img {
         height: 28px;

     }

     .burger {
         display: flex;
     }

     .nav-bottom-row {
         display: none;
         flex-direction: column;
         align-items: stretch;
         gap: 4px;
         padding: 12px;
         background: var(--surface);
         border: 1px solid var(--line);
         border-radius: var(--rius-sm);
         width: 100%;
         margin: 0;
     }

     .nav-bottom-row.active {
         display: flex;
     }

     .nav-bottom-row a {
         border-radius: var(--radius-sm);
         padding: 12px 16px;
         background: transparent;
         border: none;
         border-bottom: 1px solid var(--line);
         text-align: left;
         font-size: 1rem;
     }

     .nav-bottom-row a:last-child {
         border-bottom: none;
     }

     .nav-bottom-row a:hover {
         background: var(--accent-light);
         color: var(--accent);
     }

     .hero-slider {
         height: 70vh;
         min-height: 400px;
     }

     .hero-slider .slider-btn {
         width: 40px;
         height: 40px;
         font-size: 1.5rem;
     }

     .hero-slider .slider-btn.prev {
         left: 12px;
     }

     .hero-slider .slider-btn.next {
         right: 12px;
     }

     .hero-slider .slide-title {
         font-size: 2rem;
     }

     .hero-slider .slide-desc {
         font-size: 0.95rem;
     }

     .stats-grid {
         grid-template-columns: repeat(2, 1fr);
         gap: 12px;
     }

     .about-section {
         grid-template-columns: 1fr;
         gap: 28px;
     }

     .about-image {
         height: 220px;
         order: -1;
     }

     .newsletter {
         padding: 28px 24px;
         flex-direction: column;
         align-items: flex-start;
     }

     .newsletter-form {
         width: 100%;
     }

     .newsletter-input {
         flex: 1;
         min-width: 0;
     }

     .rating-item {
         flex-wrap: wrap;
     }

     .blog-grid,
     .trail-grid {
         grid-template-columns: 1fr;
     }

     .section-header {
         margin: 48px 0 24px;
     }
 }

 @media (max-width: 480px) {
     .logo img {
         height: 24px;
     }

     .nav-right .cta-button {
         padding: 8px 16px;
         font-size: 0.8rem;
     }

     .hero-slider .slide-title {
         font-size: 1.6rem;
     }

     .hero-slider .slide-desc {
         font-size: 0.85rem;
     }

     .stats-grid {
         grid-template-columns: 1fr 1fr;
     }
 }
 .action-menu {
    position: relative;
    display: inline-block;
}

.action-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line, #e9ece9);
    background: var(--surface, #ffffff);
    color: var(--text-secondary, #4a504c);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.action-menu-trigger:hover {
    background: var(--accent-light, #e3ede8);
    color: var(--accent, #3f5e4f);
    border-color: var(--accent, #3f5e4f);
}

.action-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e9ece9);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1000;
}

.action-menu.active .action-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary, #4a504c);
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.action-item:hover {
    background: var(--accent-light, #e3ede8);
    color: var(--accent, #3f5e4f);
}

.action-item svg {
    flex-shrink: 0;
}

.action-item-danger {
    color: #c0392b;
}

.action-item-danger:hover {
    background: #fdecea;
    color: #c0392b;
}

.action-divider {
    height: 1px;
    background: var(--line, #e9ece9);
    margin: 4px 0;
}

/* РњРѕР±РёР»СЊРЅР°СЏ Р°РґР°РїС‚Р°С†РёСЏ */
@media (max-width: 480px) {
    .action-menu-dropdown {
        min-width: 180px;
        right: 0;
        left: auto;
    }
}
 .auth-block { display: flex; align-items: center; }

        .cta-button {
            background: var(--accent);
            color: #fff;
            padding: 10px 22px;
            border-radius: 40px;
            font-weight: 500;
            font-size: 0.9rem;
            transition: background var(--transition), transform var(--transition);
            display: inline-block;
            white-space: nowrap;
        }
        .cta-button:hover { background: var(--accent-hover); transform: translateY(-1px); }

        .auth-link {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-secondary);
            padding: 8px 16px;
            border-radius: 40px;
            transition: background var(--transition), color var(--transition);
            white-space: nowrap;
        }
        .auth-link:hover { background: var(--accent-light); color: var(--accent); }
        .auth-link.primary { background: var(--accent); color: #fff; }
        .auth-link.primary:hover { background: var(--accent-hover); }

        /* Меню пользователя */
        .hidden { display: none !important; }
        .user-menu-wrapper { position: relative; display: inline-block; }
        .user-menu-trigger {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            border-radius: 40px;
            border: 1px solid var(--line);
            background: var(--surface);
            cursor: pointer;
            transition: border-color 0.25s ease, background 0.25s ease;
            white-space: nowrap;
        }
        .user-menu-trigger:hover {
            border-color: var(--accent);
            background: var(--accent-light);
        }
        .user-menu-trigger img{
            width: 32px;
            border-radius: 16px;
        }
        .user-avatar { color: var(--accent); flex-shrink: 0; }
        .user-name {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-primary);
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .chevron {
            color: var(--text-muted);
            transition: transform 0.25s ease;
        }
        .user-menu-wrapper.open .chevron { transform: rotate(180deg); }
        .user-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 220px;
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            box-shadow: 0 8px 24px rgba(0,0,0,0.08);
            padding: 6px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
            z-index: 1000;
        }
        .user-menu-wrapper.open .user-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .user-dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-secondary);
            transition: background 0.2s ease, color 0.2s ease;
            white-space: nowrap;
        }
        .user-dropdown-item:hover { background: var(--accent-light); color: var(--accent); }
        .user-dropdown-item svg { flex-shrink: 0; }
        .user-dropdown-item.danger { color: #c0392b; }
        .user-dropdown-item.danger:hover { background: #fdecea; color: #c0392b; }
        .user-dropdown-divider { height: 1px; background: var(--line); margin: 4px 0; }


       .menu-notices .nav-item-text{
        display: none;
       }
        a:hover{
            text-decoration: none;
        }
        .action-menu {
    position: relative;
    display: inline-block;
}

.action-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line, #e9ece9);
    background: var(--surface, #ffffff);
    color: var(--text-secondary, #4a504c);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.action-menu-trigger:hover {
    background: var(--accent-light, #e3ede8);
    color: var(--accent, #3f5e4f);
    border-color: var(--accent, #3f5e4f);
}

.action-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e9ece9);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1000;
}

.action-menu.active .action-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary, #4a504c);
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.action-item:hover {
    background: var(--accent-light, #e3ede8);
    color: var(--accent, #3f5e4f);
}

.action-item svg {
    flex-shrink: 0;
}

.action-item-danger {
    color: #c0392b;
}

.action-item-danger:hover {
    background: #fdecea;
    color: #c0392b;
}

.action-divider {
    height: 1px;
    background: var(--line, #e9ece9);
    margin: 4px 0;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .action-menu-dropdown {
        min-width: 180px;
        right: 0;
        left: auto;
    }
}
.no-gutters{
    float: right;
}
.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn-about {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.btn-about-primary {
    background: var(--accent, #3f5e4f);
    color: #fff;
    border-color: var(--accent, #3f5e4f);
}

.btn-about-primary:hover {
    background: var(--accent-hover, #2e473b);
    border-color: var(--accent-hover, #2e473b);
    transform: translateY(-2px);
}

.btn-about-outline {
    background: transparent;
    color: var(--accent, #3f5e4f);
    border-color: var(--accent, #3f5e4f);
}

.btn-about-outline:hover {
    background: var(--accent-light, #e3ede8);
    border-color: var(--accent, #3f5e4f);
    transform: translateY(-2px);
}

/* Адаптивность для кнопок */
@media (max-width: 480px) {
    .btn-about {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
}
 /* ========== РЕЙТИНГ ЛИЧНОСТЕЙ/СЕЛЕНИЙ ========== */
        .rating-tabs { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
        .rating-tab {
            padding: 8px 20px;
            border-radius: 40px;
            background: var(--surface);
            border: 1px solid var(--line);
            cursor: pointer;
            font-family: var(--font);
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-secondary);
            transition: all var(--transition);
        }
        .rating-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
        .rating-tab[data-target="settlements"].active { background: var(--accent-warm); border-color: var(--accent-warm); }
        .rating-list { display: flex; flex-direction: column; gap: 16px; }
        .rating-panel[hidden] { display: none; }
        .rating-item {
            display: flex;
            align-items: center;
            gap: 16px;
            background: var(--surface);
            border-radius: var(--radius-sm);
            padding: 16px 20px;
            border: 1px solid var(--line);
            transition: transform var(--transition), box-shadow var(--transition);
        }
        .rating-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
        .rating-portrait {
            position: relative;
            flex-shrink: 0;
            width: 64px;
            height: 80px;
            border-radius: var(--radius-sm);
            overflow: visible; /* чтобы булит выходил за край */
            background: var(--accent-light);
        }
        .rating-item:nth-child(2) .rating-portrait { width: 64px; height: 64px; }
        .rating-item:nth-child(3) .rating-portrait { width: 60px; height: 80px; }
        .rating-item:nth-child(4) .rating-portrait { width: 64px; height: 80px; }
        .rating-item:nth-child(5) .rating-portrait { width: 64px; height: 64px; }
        .rating-portrait img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: var(--radius-sm);
        }

        /* Булит места - верхний левый угол с выносом */
        .rating-badge {
            position: absolute;
            top: -8px;
            left: -8px;
            transform: none;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 700;
            border: 2px solid #fff;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            z-index: 5;
        }
        .rating-panel[data-type="persons"] .rating-badge {
            background: var(--accent);
        }
        .rating-panel[data-type="settlements"] .rating-badge {
            background: var(--accent-warm);
        }

        .rating-info { flex: 1; min-width: 0; }
        .rating-name { font-weight: 600; font-size: 1.1rem; }
        .rating-type { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.4px; }
        .rating-desc {
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 300;
            margin-top: 2px;
        }
        .rating-views { color: var(--text-secondary); font-size: 0.9rem; white-space: nowrap; }
        .rating-stars { color: var(--rating); letter-spacing: 2px; font-size: 0.9rem; }
