/* Стилі для сторінки партнерів */
.partners-section {
    padding: 60px 0;
    background-color: #f6f7f9;
}

.page-title-section {
    padding: 135px 0 60px 0;
    background-color: #fff;
    text-align: center;
}

.page-title-section h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 48px;
    margin-bottom: 20px;
    color: #333;
}

.page-title-section p {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Стилі для заголовка сторінки партнерів */
.partners-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 48px;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
    padding-top: 75px; /* Додаємо відступ від хедера */
}

/* Стилі для сітки партнерів */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

/* Стилі для фільтрів */
.partners-filters {
    margin-bottom: 40px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f5f5f5;
}

.filter-btn.active {
    border-color: #4caf50;
    background-color: #4caf50;
    color: #fff;
}

.filter-sort select, 
.filter-search input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #333;
}

.filter-search {
    width: 70%;
}

.filter-sort {
    width: 28%;
}

.filter-results {
    width: 28%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 12px;
}

.results-count {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #666;
}

/* Стилі для слайдерів діапазону */
.filter-sliders {
    display: flex;
    gap: 20px;
}

.filter-range {
    flex: 1;
}

.range-container {
    padding: 5px 0;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #666;
}

.range-inputs {
    position: relative;
    height: 6px;
}

.range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: transparent;
    pointer-events: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4caf50;
    cursor: pointer;
    pointer-events: auto;
    margin-top: -6px;
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4caf50;
    cursor: pointer;
    pointer-events: auto;
}

.range-inputs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

/* Стилі для списку партнерів */
.partners-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #666;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.error-message {
    text-align: center;
    color: #f44336;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    padding: 20px;
}

/* Стилі для картки партнера */
.partner-card {
    width: 276px;
    height: 389px;
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
}

.partner-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    width: 100%;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    width: 100%;
}

.partner-logo img {
    height: 40px;
    object-fit: contain;
    background-color: transparent;
}

.top-offer-badge {
    display: none;
}

.partner-info {
    flex-grow: 1;
    margin-top: -25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.info-label {
    color: #777;
    font-size: 14px;
}

.info-value {
    color: #222;
    font-weight: bold;
    font-size: 14px;
    text-align: right;
}

.approval-rate {
    color: #31B44C;
}

.details-button {
    display: block;
    width: 236px;
    height: 52px;
    padding: 0;
    background-color: #F5F5F5;
    color: #222;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    margin-top: auto;
    margin-bottom: 15px;
    transition: background-color 0.2s ease;
    line-height: 52px;
    margin-left: auto;
    margin-right: auto;
}

.details-button:hover {
    background-color: #E8E8E8;
}

/* Стилі для розділу "Станьте партнером" */
.become-partner {
    padding: 80px 0;
    background-color: #fff;
}

.become-partner-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.become-partner-content {
    flex: 1;
}

.become-partner-content h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.become-partner-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #666;
}

.become-partner-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.become-partner-image img {
    max-width: 100%;
    border-radius: 12px;
}

/* Стилі для FAQ розділу */
.faq-section {
    padding: 80px 0;
    background-color: #f6f7f9;
    position: relative;
}

.faq-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.faq-images {
    position: relative;
}

.faq-image-right {
    position: absolute;
    top: -200px;
    right: 0;
    max-width: 35%;
}

.faq-image-bottom {
    width: 100%;
}

/* Адаптивність */
@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-search, .filter-sort, .filter-results {
        width: 100%;
    }
    
    .filter-sliders {
        flex-direction: column;
    }
    
    .become-partner-wrapper {
        flex-direction: column;
    }
    
    .partners-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .faq-image-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 576px) {
    .page-title-section h1 {
        font-size: 32px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .partners-list {
        grid-template-columns: 1fr;
    }
    
    .partner-card {
        width: 100%;
        max-width: 300px;
    }
} 