/* ========================================
   Калачинск Онлайн - CSS (FULL RELEASE)
   Файл: assets/css/new-design.css
   ======================================== */

:root {
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --secondary-color: #10B981;
    --text-dark: #1F2937;
    --text-body: #374151;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-light: #F3F4F6;
    --bg-page: #F0F2F5;
    --border-color: #E5E7EB;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
}

/* ========================================
   ГЛОБАЛЬНЫЙ СБРОС
   ======================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ========================================
   Layout & Common
   ======================================== */
.container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 2rem;
}

.white-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-dark);
}

.text-center {
    text-align: center;
    margin-top: 1.5rem;
}

/* Buttons Global */
.btn-blue {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}

.btn-blue:hover {
    background: var(--primary-hover);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    border: 1.5px solid var(--primary-color);
    transition: all 0.15s;
    cursor: pointer;
    line-height: 1.4;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.06);
    color: var(--primary-color);
}

/* ========================================
   Header & Navigation (1200x60)
   ======================================== */
.header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.header-inner {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    width: 1200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-left: 5px;
    padding-right: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    flex-shrink: 0;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 10px;
}

.logo-icon {
    width: 34px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-gray);
    border-radius: 8px;
    transition: all 0.15s;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.08);
}

.btn-add-org {
    width: 207px;
    height: 50px;
    border-radius: 7px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    box-sizing: border-box;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-add-org:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 20px;
    width: 420px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--border-color);
    pointer-events: none;
}

.nav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dropdown-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item {
    display: block;
    padding: 8px 0;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.dropdown-item:hover {
    color: var(--primary-color);
}

/* ========================================
   Hero Slider (1200x531)
   ======================================== */
.hero-slider {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.hero-slider-container {
    position: relative;
    width: 1200px;
    height: 531px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #E5E7EB;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    max-width: 550px;
    z-index: 3;
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    color: white !important;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-top: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    color: white !important;
}

.hero-search {
    background: white;
    padding: 0.375rem;
    border-radius: 50px;
    display: flex;
    gap: 0.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    margin: 0 auto 1rem;
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
    font-family: inherit;
    color: var(--text-dark);
}

.hero-search button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-search button:hover {
    background: var(--primary-hover);
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
}

.hero-slider-container:hover .slider-prev,
.hero-slider-container:hover .slider-next {
    opacity: 1;
}

.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

.slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   Categories Section — ТОЧНЫЕ РАЗМЕРЫ 120x119px
   ======================================== */
.categories-section {
    margin: 2rem auto;
    display: flex;
    justify-content: center;
}

.categories-section .container {
    padding: 0;
    width: auto;
    max-width: none;
}

/* Карточка-обертка категорий */
.categories-section .white-card {
    width: 1200px !important;
    min-width: 1200px !important;
    height: auto !important;
    min-height: 377px !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}

.section-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin: 0 !important;
}

.categories-count {
    color: #6b7280 !important;
    font-size: 14px !important;
}

/* СЕТКА: 8 колонок по 120px, центрировано, в одну строку */
.categories-grid {
    display: grid !important;
    grid-template-columns: repeat(8, 120px) !important;
    justify-content: center !important;
    align-content: center !important;
    gap: 28px !important;
    flex: 1 !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* КАТОЧКА КАТЕГОРИИ (Ссылка) */
.category-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-decoration: none !important;
    color: #1f2937 !important;
    transition: transform 0.2s ease !important;
    width: 120px !important;
}

.category-card:hover {
    transform: translateY(-3px) !important;
}

/* 🔹 БЛОК ИКОНКИ: СТРОГО 120×119px */
.category-icon {
    width: 120px !important;
    height: 119px !important;
    min-width: 120px !important;
    min-height: 119px !important;
    background: #f3f4f6 !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.category-icon i {
    font-size: 52px !important;
    color: var(--primary-color) !important;
    line-height: 1 !important;
}

.category-icon img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain !important;
}

/* 🔹 НАЗВАНИЕ: Под иконкой */
.category-name {
    font-weight: 600 !important;
    font-size: 13px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    width: 100% !important;
    max-width: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    color: #1f2937 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Кнопка "Показать все" */
.show-all-wrapper {
    text-align: center !important;
    padding-top: 24px !important;
    border-top: 1px solid #e5e7eb !important;
    margin-top: 24px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}

.btn-show-all {
    background: #f3f4f6 !important;
    border: none !important;
    color: #374151 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
    display: inline-block !important;
}

.btn-show-all:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
}

/* ========================================
   Все категории (разворачиваемый список)
   ======================================== */
.all-categories-list {
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e5e7eb !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.all-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px 24px !important;
    padding: 0 !important;
}

.category-list-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 12px !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    border: 1px solid #f3f4f6 !important;
}

.category-list-item:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    transform: translateX(4px) !important;
}

.category-list-item .cat-name {
    font-size: 14px !important;
    color: #374151 !important;
    font-weight: 500 !important;
}

.category-list-item:hover .cat-name {
    color: #2563eb !important;
}

.category-list-item .cat-count {
    font-size: 13px !important;
    color: #9ca3af !important;
    font-weight: 400 !important;
    background: white !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    min-width: 32px !important;
    text-align: center !important;
}

/* ========================================
   Companies Section (Card 388x445)
   ======================================== */
.companies-section {
    margin: 2.5rem auto;
}

.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-content: center;
}

.company-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    width: 388px;
    height: 445px;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
    border: 1px solid #f3f4f6;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: #E5E7EB;
}

.company-image-wrapper {
    width: 365px;
    height: 243px;
    margin: 12px auto 0;
    border-radius: 6px;
    overflow: hidden;
    background: #FFFFFF;
    position: relative;
}

.company-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.company-placeholder {
    background-color: #E8F0FE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 3rem;
}

.company-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-gray);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 2;
    border: 1px solid #F3F4F6;
}

.company-star {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    font-weight: bold;
}

.company-star.premium-star {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
}

.company-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-description {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.company-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.company-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.company-link:hover {
    color: var(--primary-hover);
}

.company-views {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ========================================
   Ad Banner (1200x260)
   ======================================== */
.ad-banner-section {
    margin: 2rem auto;
    display: flex;
    justify-content: center;
}

.ad-banner-full {
    width: 1200px;
    height: 260px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.banner-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    transition: opacity 1s ease-in-out !important;
    z-index: 1;
    border-radius: inherit;
}

.banner-slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

.banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
}

.ad-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-dots {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   News Section (Card 852x206)
   ======================================== */
.news-section {
    margin: 2.5rem auto;
}

.news-layout {
    display: grid;
    grid-template-columns: 852px 330px;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-card-horizontal {
    background: white;
    width: 852px;
    height: 206px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem 1rem 1rem;
    gap: 1.25rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #F3F4F6;
    transition: all 0.2s;
}

.news-card-horizontal:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: #E5E7EB;
    transform: translateY(-2px);
}

.news-card-image {
    width: 260px;
    height: 174px;
    background: #E8F0FE;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    flex: 1;
    height: 174px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-date {
    color: #9CA3AF;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.news-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.news-link:hover {
    color: var(--primary-color);
}

.news-views {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #9CA3AF;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-views svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* ========================================
   Afisha Block (330x644)
   ======================================== */
.sidebar-afisha-block {
    width: 330px;
    height: 644px;
    background: white;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #F3F4F6;
}

.afisha-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 5;
    pointer-events: none;
}

.afisha-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.afisha-slide.active {
    opacity: 1;
}

.afisha-slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    z-index: 3;
}

.afisha-title {
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.25rem;
}

.afisha-dots {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.afisha-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.afisha-dot.active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

.afisha-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #60A5FA);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.afisha-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.afisha-empty h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.afisha-empty p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ========================================
   Info Blocks (591x299 - Центрировано)
   ======================================== */
.info-sections {
    margin: 2.5rem auto;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
}

.info-grid-redesigned {
    display: flex;
    gap: 18px;
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.info-card {
    width: 591px;
    height: 299px;
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #F3F4F6;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.25;
    color: #1F2937;
}

.info-card p {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.45;
    margin: 0 0 1.25rem 0;
}

.info-card-work-simple p {
    max-width: 58%;
}

.work-illustration {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.info-card-about {
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
}

.info-card-about p {
    max-width: 65%;
}

.about-illustration {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 35%;
    max-width: 190px;
    height: auto;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.btn-work-primary,
.btn-info-outline {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: white;
    color: #3B82F6;
    border: 1.5px solid #DBEAFE;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    z-index: 2;
}

.btn-work-primary:hover,
.btn-info-outline:hover {
    border-color: #3B82F6;
    background: #EFF6FF;
    transform: translateY(-1px);
}

/* ========================================
   Company Detail Page Styles (VIP Layout)
   ======================================== */
.company-detail-section {
    margin: 2rem auto;
}

.company-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.company-hero-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.company-hero-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f3f4f6;
}

.hero-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-hero-header .company-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
}

.hero-tags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tag-pill {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    background: #f3f4f6;
    color: var(--text-gray);
    border-radius: 4px;
    font-weight: 500;
}

.badge-premium-small {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.meta-item i {
    margin-right: 0.25rem;
}

.company-slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    background: #E0E7FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-main-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slider-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.placeholder-slide {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    padding: 1rem;
    transition: color 0.2s;
}

.slider-arrow:hover {
    color: var(--primary-color);
}

.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }

.slider-zoom-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-gray);
    transition: all 0.2s;
}

.slider-zoom-btn:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.slider-thumbnails-strip {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    border-top: 1px solid #f3f4f6;
}

.thumb-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.thumb-link:hover {
    color: var(--primary-color);
}

.thumb-item {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #E0E7FF;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumb-item:hover, .thumb-item.active {
    border-color: var(--primary-color);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
}

.company-services-card {
    background-color: #BAE6FD;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
}

.company-services-card h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-item {
    background: white;
    color: var(--text-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border: none;
}

.tag-item:hover {
    transform: translateY(-2px);
}

.company-features-card {
    background-color: #C7D2FE;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
}

.company-features-card h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    background: #F9FAFB;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.feature-icon {
    font-size: 1.5rem;
    color: #FBBF24;
    margin-bottom: 0.75rem;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.company-phone-card {
    margin-bottom: 1rem;
}

.company-phone-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.phone-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #BFDBFE;
    color: var(--primary-color);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
}

.phone-btn i {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.phone-btn:hover {
    background: #EFF6FF;
    border-color: var(--primary-color);
}

.company-details-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.details-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.details-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-dark);
}

.details-body {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-icon {
    margin-top: 0.2rem;
    width: 16px;
    text-align: center;
}

.details-extra {
    padding: 1.25rem 1.5rem;
    background: #F9FAFB;
}

.extra-item {
    margin-bottom: 1rem;
}

.extra-item:last-child {
    margin-bottom: 0;
}

.extra-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.extra-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

.extra-link:hover {
    text-decoration: underline;
}

.social-icons-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon.tg { background: #229ED9; }
.social-icon.vk { background: #0077FF; }
.social-icon.ok { background: #EE8208; }
.social-icon.wa { background: #25D366; }

.details-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.more-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.more-link:hover {
    text-decoration: underline;
}

.company-description-card, .company-map-card, .company-reviews-card {
    margin-bottom: 1.5rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.contact-row i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.contact-row a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-row a:hover {
    text-decoration: underline;
}

.map-placeholder {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.review-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-stars {
    color: #FBBF24;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.company-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-ad-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.ad-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.full-width-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.similar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.similar-list li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.similar-list li:last-child {
    border-bottom: none;
}

.similar-list a {
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: color 0.2s;
    display: block;
}

.similar-list a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-page);
    padding-top: 3rem;
    padding-bottom: 2rem;
    margin-top: 2rem;
    color: var(--text-dark);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-left-block {
    width: 25%;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.btn-add-org-footer {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

.btn-add-org-footer:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.footer-right-block {
    display: flex;
    gap: 3rem;
}

.footer-col-links {
    min-width: 140px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-divider {
    height: 1px;
    background: #E5E7EB;
    margin-bottom: 1.5rem;
}

.footer-bottom-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contacts-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.footer-copyright-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.made-with-text .heart {
    color: #EF4444;
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   Admin Gallery Styles
   ======================================== */
.existing-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
    min-height: 120px;
}

.photo-item-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.btn-delete-photo {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

/* ========================================
   Responsive Fixes
   ======================================== */
@media (max-width: 1260px) {
    .header-inner,
    .hero-slider-container,
    .ad-banner-full,
    .news-card-horizontal {
        width: 100% !important;
        max-width: 1200px !important;
    }
    
    /* Адаптивность категорий */
    .categories-section .white-card {
        width: 100% !important;
        min-width: auto !important;
        height: auto !important;
        min-height: 377px !important;
        padding: 24px !important;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1rem;
    }
    
    .category-card {
        width: 100% !important;
        min-width: auto !important;
    }
    
    .category-icon {
        width: 100% !important;
        height: 120px !important;
    }
    
    /* Адаптивность списка всех категорий */
    .all-categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-afisha-block {
        width: 100%;
        height: 400px;
    }
    
    .btn-add-org {
        width: auto;
        padding: 0 16px;
    }
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .all-categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .categories-columns-full {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .company-card {
        width: 100%;
        height: auto;
        min-height: 445px;
    }
    
    .info-grid-redesigned {
        grid-template-columns: 1fr;
    }
    
    .company-layout {
        grid-template-columns: 1fr;
    }
    
    .company-sidebar {
        position: static;
    }
    
    .footer-right-block {
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 12px;
    }
    
    .hero-slider-container {
        height: 320px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }
    
    .all-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px 16px !important;
    }
    
    .category-card {
        padding: 1rem 0.5rem;
        min-height: 120px;
    }
    
    .category-icon {
        max-width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .category-icon i {
        font-size: 1.75rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    .category-list-item {
        padding: 8px 10px !important;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .work-bottom-row {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .work-text-left {
        width: 100%;
        margin-top: 1rem;
    }
    
    .work-image-right {
        width: 80%;
    }
    
    .company-hero-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .company-slider-wrapper {
        height: 250px;
    }
    
    .slider-arrow {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-left-block {
        width: 100%;
        text-align: center;
    }
    
    .footer-right-block {
        width: 100%;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    
    .footer-contacts-row, .footer-copyright-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .ad-banner-full {
        height: 180px;
    }
    
    .sidebar-afisha-block {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr !important;
    }
    
    .all-categories-grid {
        grid-template-columns: 1fr !important;
    }
    
    .categories-columns-full {
        grid-template-columns: 1fr;
    }
    
    .footer-right-block {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-slider-container {
        height: 250px;
    }
}