/* ========================================
   Company Page Specific Styles
   assets/css/company.css
   ======================================== */

/* Сетка страницы */
.company-page-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 24px;
    margin-bottom: 4rem;
}
.company-main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Главный белый блок (Слайдер) */
.main-card-block {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #F3F4F6;
    overflow: hidden;
}

/* Заголовок и мета */
.card-header-section {
    padding: 1.5rem 1.5rem 1rem;
}
.company-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1F2937;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}
.header-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-tags {
    display: flex;
    gap: 8px;
}
.cat-tag {
    background: #F3F4F6;
    color: #4B5563;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}
.meta-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #9CA3AF;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.meta-item i {
    font-size: 1rem;
}

/* Разделитель */
.card-divider {
    height: 1px;
    background: #F3F4F6;
    margin: 0 1.5rem;
}

/* Слайдер */
.slider-area {
    padding: 1.5rem;
}
.main-photo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #E6F0FA;
    border-radius: 8px;
    overflow: hidden;
}
.main-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s;
    z-index: 10;
}
.slider-arrow:hover { color: #1F2937; }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

.slider-zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 10;
}
.slider-zoom-btn:hover { color: #1F2937; transform: scale(1.05); }

.thumbnails-section {
    padding: 0 1.5rem 1.5rem;
}
.all-photos-link {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1F2937;
    text-decoration: none;
    margin-bottom: 1rem;
}
.all-photos-link:hover { color: var(--primary-color); }
.thumbnails-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.thumb-item {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    background: #E6F0FA;
}
.thumb-item.active { border-color: var(--primary-color); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

/* Информационные блоки */
.info-block {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}
.block-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.block-icon { color: #FDB931; font-size: 1rem; }
.text-center { text-align: center; }

.description-block p { line-height: 1.6; color: var(--text-body); margin: 0; }

/* Контакты */
.contact-phone-block .phone-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-phone {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; background: #E6F7FF; color: var(--primary-color);
    border-radius: 20px; text-decoration: none; font-weight: 500; font-size: 0.95rem;
    transition: background 0.2s;
}
.btn-phone:hover { background: #BAE7FF; }

.contact-details-block .contact-detail-row {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; font-size: 0.95rem;
}
.contact-detail-row:last-child { margin-bottom: 0; }
.detail-icon { color: var(--primary-color); margin-top: 3px; width: 16px; text-align: center; }
.detail-label { color: var(--text-gray); min-width: 90px; font-size: 0.9rem; margin-top: 2px; }
.detail-link { color: var(--primary-color); text-decoration: none; word-break: break-all; }

.social-icons { display: flex; gap: 8px; }
.social-icon {
    width: 32px; height: 32px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: white; text-decoration: none;
    font-size: 1rem; transition: opacity 0.2s;
}
.social-icon:hover { opacity: 0.8; }
.social-icon.vk { background: #0077FF; }
.social-icon.tg { background: #24A1DE; }
.social-icon.ok { background: #EE8208; }

.additional-link-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.additional-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Отзывы */
.reviews-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.rating-summary { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.stars { color: #FDB931; letter-spacing: 2px; font-size: 1.1rem; }
.rating-score { font-weight: bold; color: var(--text-dark); }
.rating-count { color: var(--text-gray); font-size: 0.85rem; }
.btn-rate { background: white; border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--text-dark); transition: all 0.2s; }
.btn-rate:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* Карта */
.map-container { border-radius: 8px; overflow: hidden; height: 400px; background: #f0f0f0; }

/* Блок Поделиться */
.share-content { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.short-link-wrapper { flex-grow: 1; }
.short-link-input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border-color);
    border-radius: 8px; font-size: 0.9rem; background: #F9FAFB; color: var(--text-body);
    outline: none;
}
.share-socials { display: flex; gap: 8px; }
.share-icon {
    width: 36px; height: 36px; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; color: white; text-decoration: none;
    font-size: 1.1rem; transition: transform 0.2s;
}
.share-icon:hover { transform: translateY(-2px); }
.share-icon.tg { background: #24A1DE; }
.share-icon.vk { background: #0077FF; }
.share-icon.ok { background: #EE8208; }

/* Вакансии */
.jobs-block .job-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}
.jobs-block .job-item:last-child { margin-bottom: 0; }
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}
.job-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}
.job-salary {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}
.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}
.job-meta i { margin-right: 4px; }
.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-apply {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-apply:hover { background: var(--primary-hover); }
.job-views {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Форма обратной связи */
.feedback-subtitle { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.5; }
.feedback-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.feedback-form input, .feedback-form textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border-color);
    border-radius: 8px; font-family: inherit; font-size: 0.95rem;
    transition: border-color 0.2s;
}
.feedback-form input:focus, .feedback-form textarea:focus {
    border-color: var(--primary-color); outline: none;
}
.feedback-form textarea { margin-bottom: 1.5rem; resize: vertical; }
.btn-submit-feedback {
    background: var(--primary-color); color: white; border: none;
    padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer;
    transition: background 0.2s;
}
.btn-submit-feedback:hover { background: var(--primary-hover); }

/* Сайдбар (Афиша 330x644) */
.company-sidebar { 
    position: sticky; 
    top: 100px; 
    align-self: start; 
}

.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;
}

.banner-link {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
}

.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;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .company-page-layout { grid-template-columns: 1fr; }
    .company-sidebar { 
        position: static; 
        max-width: 330px; 
        margin: 0 auto; 
    }
}
@media (max-width: 768px) {
    .feedback-form .form-row { grid-template-columns: 1fr; }
    .company-title { font-size: 1.5rem; }
    .header-bottom-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .main-photo-wrapper { aspect-ratio: 4/3; }
    .share-content { flex-direction: column; align-items: stretch; }
    .share-socials { justify-content: center; margin-top: 10px; }
    .slider-arrow { width: 36px; height: 36px; }
    .job-header { flex-direction: column; gap: 0.5rem; }
}