/* Главная страница - стили */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Montserrat', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    color: #333;
    line-height: 1.5;
    background-color: #f5f5f5;
}

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

/* Main Header */
.main-header {
    background-color: #3D6C9D;
    padding: 20px 0 40px;
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 22px;
    text-decoration: none;
    white-space: nowrap;
}

.logo i {
    font-size: 24px;
}

.logo img {
    height: 67px;
}

/* Hero Section */
.hero-section {
    color: white;
    padding: 40px 0;
    background-color: #3D6C9D;
}

.hero-section .container {
    position: relative;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 25px;
}

/* Main Search Container */
.main-search-container {
    display: flex;
    max-width: 1000px;
    background-color: white;
    border-radius: 12px;
    overflow: visible;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    position: relative;
}

.main-search-input-group {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.main-search-icon {
    color: #3D6C9D;
    margin-right: 12px;
    font-size: 18px;
}

.main-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 18px 0;
    font-size: 16px;
    outline: none;
    color: #333;
}

.main-search-input::placeholder {
    color: #999;
}

.main-location-selector {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    position: relative;
    min-width: 180px;
}

.main-location-icon {
    color: #3D6C9D;
    margin-right: 10px;
    font-size: 16px;
}

.main-location-input {
    border: none;
    background: transparent;
    padding: 18px 0;
    font-size: 16px;
    outline: none;
    color: #333;
    flex: 1;
    min-width: 150px;
}

.main-location-input::placeholder {
    color: #999;
}

.main-location-input:focus {
    cursor: text;
}

.main-search-button {
    background-color: #F67C24;
    color: white;
    border: none;
    padding: 0 35px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    border-radius: 0 12px 12px 0;
}

.main-search-button:hover {
    background-color: #1a6ec0;
}

/* Location Dropdown */
.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.location-dropdown.active {
    display: block;
}

.location-dropdown .city-option {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.location-dropdown .city-option:last-child {
    border-bottom: none;
}

.location-dropdown .city-option:hover {
    background-color: #f5f5f5;
    color: #2688eb;
}

.location-dropdown .city-option.all-cities {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
    border-bottom: 1px solid #bbdefb;
}

.location-dropdown .city-option.all-cities:hover {
    background-color: #bbdefb;
    color: #1565c0;
}

/* City Autocomplete - удалено, используется .location-dropdown */

/* Content Divider */
.content-divider {
    height: 30px;
    background-color: #f5f5f5;
    margin: 0;
    border: none;
}

/* Direct Employer Vacancies Section */
.direct-vacancies-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.direct-vacancies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.direct-vacancy-card {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.direct-vacancy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dv-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.dv-logo {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.dv-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dv-logo.has-logo {
    background-color: #ffdd2d;
    border-color: #ffdd2d;
}

.dv-logo-initial {
    color: #333;
    font-weight: 700;
    font-size: 20px;
}

.dv-city {
    font-size: 12px;
    color: #777;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.dv-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.direct-vacancy-card:hover .dv-title {
    color: #2688eb;
}

.dv-salary {
    font-size: 16px;
    font-weight: 700;
    color: #F67C24;
    margin-bottom: 10px;
}

.dv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 13px;
    color: #777;
    margin-top: auto;
    align-items: center;
}

.dv-date {
    margin-left: auto;
    font-size: 13px;
    color: #777;
    white-space: nowrap;
}

.dv-format {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.dv-format--office {
    background-color: #e3f2fd;
    color: #1565c0;
}

.dv-format--remote {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.dv-format--hybrid {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.dv-format--travel {
    background-color: #fff3e0;
    color: #e65100;
}

.dv-format--shift {
    background-color: #fce4ec;
    color: #c62828;
}

/* Services Section */
.services-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background-color: #2688eb;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.service-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Categories Section */
.categories-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all-link {
    color: #2688eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title-row .section-title {
    margin-bottom: 0;
}

.section-more-link {
    color: #2688eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.section-more-link:hover {
    text-decoration: underline;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.category-item:hover {
    background-color: #2688eb;
    color: white;
    transform: translateY(-2px);
}

.category-icon {
    margin-right: 12px;
    font-size: 18px;
    color: #2688eb;
}

.category-item:hover .category-icon {
    color: white;
}

.category-name {
    font-weight: 500;
    font-size: 15px;
}

.category-hidden {
    display: none;
}

.categories-show-more {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 8px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 8px;
    color: #2688eb;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.categories-show-more:hover {
    background-color: #2688eb;
    color: white;
    border-color: #2688eb;
}

.categories-show-more.hidden {
    display: none;
}

/* Tips Section */
.tips-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tip-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-category {
    display: inline-block;
    background-color: #e6f2ff;
    color: #2688eb;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.tip-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.tip-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.tip-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Collections Section */
.collections-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.collection-item {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
}

.collection-item--1 {
    background-image: url('/images/public/jobun-podborki-1.png');
    background-position-x: right -25px;
}

.collection-item--2 {
    background-image: url('/images/public/jobun-podborki-2.png');
    background-position-x: right -25px;
}

.collection-item--3 {
    background-image: url('/images/public/jobun-podborki-3.png');
    background-position-x: right 7px;
}

.collection-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.collection-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-right: 10px;
}

.collection-tag {
    display: inline-block;
    background-color: #e6f2ff;
    color: #2688eb;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.collection-tag:hover {
    background-color: #2688eb;
    color: white;
}

/* Locations Section */
.locations-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.location-item:hover {
    background-color: #2688eb;
    color: white;
}

.location-name {
    font-weight: 500;
    font-size: 15px;
}

.location-count {
    font-size: 14px;
    color: #777;
}

.location-item:hover .location-count {
    color: rgba(255, 255, 255, 0.9);
}

/* Popular Cities */
.popular-cities {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popular-cities-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.city-link-large {
    display: block;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.city-link-large:hover {
    background-color: #2688eb;
    color: white;
}

.city-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.city-vacancy-count {
    font-size: 14px;
    color: #777;
}

.city-link-large:hover .city-vacancy-count {
    color: rgba(255, 255, 255, 0.8);
}

/* SEO Block */
.seo-block {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.seo-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.seo-text {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.seo-text:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero-section {
        padding-left: 0;
    }

    .services-grid,
    .categories-grid,
    .tips-grid,
    .collections-grid,
    .locations-grid,
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .direct-vacancies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#draggableJobun {
        position: absolute;
        top: -90px;
        right: 35px;
        cursor: move;
        z-index: 1000;
        max-width: 250px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    #draggableJobun {
        max-width: 150px;
        top: 30px;
    }

    .main-search-container {
        flex-direction: column;
        border-radius: 12px;
        overflow: visible;
    }

    .main-search-input-group,
    .main-location-selector {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 15px;
        min-width: auto;
        width: 100%;
    }

    .main-search-button {
        padding: 15px;
        border-radius: 0 0 12px 12px;
    }

    .services-grid,
    .categories-grid,
    .tips-grid,
    .collections-grid,
    .locations-grid,
    .cities-grid,
    .direct-vacancies-grid {
        grid-template-columns: 1fr;
    }

    .main-header {
        padding: 20px 0 30px;
    }
    
   .main-location-input {
         padding: 15px 0;
   }
   
  .collection-item--1 {
      background-image: none;
  }

  .collection-item--2 {
      background-image: none;
  }

  .collection-item--3 {
      background-image: none;
  }

}
