/*!
 * Partners Page Style v1.0
 * Стили для страницы партнеров в соответствии с main.css
 */

/* ===== HERO СЕКЦИЯ ===== */
.page-hero--center {
    position: relative;
    padding: 160px 0 100px;
    color: var(--white);
    margin-top: -80px;
    background: linear-gradient(135deg, rgba(30,43,60,0.95) 0%, rgba(42,125,225,0.85) 100%);
    text-align: center;
}

.page-hero--center .container {
    position: relative;
    z-index: 2;
}

.page-hero--center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/partners/partner-hero-bg.jpg') center/cover no-repeat;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

.page-hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.page-hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero--center .btn--primary {
    background: #FFD700;
    color: var(--dark);
    border: none;
    font-size: 1.125rem;
    padding: 16px 40px;
}

.page-hero--center .btn--primary:hover {
    background: #FFC800;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== ПРЕИМУЩЕСТВА ПАРТНЕРСТВА ===== */
.partner-benefits {
    padding: 80px 0;
    background: var(--white);
}

.section__title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark);
}

.section__title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

.benefits__grid--4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.benefit-card__icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
}

.benefit-card p {
    color: var(--secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    flex-grow: 1;
}

/* ===== МОДЕЛИ СОТРУДНИЧЕСТВА ===== */
.bg-light {
    background: var(--light);
}

.partner-models {
    padding: 80px 0;
}

.models__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.model-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.model-card--popular {
    border: 2px solid #FFD700;
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.model-card--popular:hover {
    transform: scale(1.02) translateY(-10px);
}

.model-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: var(--dark);
    padding: 5px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.model-card__header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray);
}

.model-card__header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.model-card__price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.model-card__price:before {
    content: '💰 ';
    font-size: 1.5rem;
    margin-right: 5px;
}

.model-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.model-card__features li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: var(--dark);
    font-size: 1rem;
    border-bottom: 1px dashed var(--gray);
}

.model-card__features li:last-child {
    border-bottom: none;
}

.model-card__features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.btn--outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== КАК СТАТЬ ПАРТНЕРОМ ===== */
.how-to-partner {
    padding: 80px 0;
    background: var(--white);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--gray));
    z-index: 1;
}

.step__number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.step__content {
    flex: 1;
    padding-top: 5px;
}

.step__content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.step__content p {
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== СЕКЦИЯ С ФОРМОЙ ===== */
.partner-form {
    padding: 80px 0;
    background: var(--light);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 50px;
}

.form-container__title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.form-container__subtitle {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form__group {
    margin-bottom: 20px;
}

.form__group--full {
    grid-column: span 2;
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--secondary);
    justify-content: center;
}

.form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 2px solid var(--gray);
    border-radius: 4px;
}

.form .btn--large {
    width: 100%;
    padding: 16px;
    font-size: 1.125rem;
    margin-top: 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form .btn--large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты 1024px */
@media (max-width: 1024px) {
    .benefits__grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .models__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .model-card--popular {
        transform: none;
    }
    
    .model-card--popular:hover {
        transform: translateY(-10px);
    }
}

/* Мобильные 768px */
@media (max-width: 768px) {
    .page-hero--center {
        padding: 140px 0 60px;
    }
    
    .page-hero__title {
        font-size: 2.5rem;
    }
    
    .page-hero__subtitle {
        font-size: 1.125rem;
        padding: 0 20px;
    }
    
    .benefits__grid--4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 30px;
    }
    
    .models__grid {
        gap: 20px;
    }
    
    .model-card {
        padding: 30px 25px;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .step:not(:last-child)::after {
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 30px;
        top: 60px;
        bottom: auto;
    }
    
    .step__number {
        margin-bottom: 10px;
    }
    
    .form__grid {
        grid-template-columns: 1fr;
    }
    
    .form__group--full {
        grid-column: span 1;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-container__title {
        font-size: 1.75rem;
    }
}

/* Мобильные 480px */
@media (max-width: 480px) {
    .page-hero--center {
        padding: 120px 0 40px;
    }
    
    .page-hero__title {
        font-size: 2rem;
    }
    
    .page-hero__subtitle {
        font-size: 1rem;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .section__title:after {
        width: 60px;
    }
    
    .benefit-card {
        padding: 25px;
    }
    
    .benefit-card__icon {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .benefit-card h3 {
        font-size: 1.25rem;
    }
    
    .model-card__header h3 {
        font-size: 1.3rem;
    }
    
    .model-card__price {
        font-size: 1.75rem;
    }
    
    .step__number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .step__content h3 {
        font-size: 1.25rem;
    }
    
    .form__checkbox {
        font-size: 0.875rem;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card,
.model-card,
.step {
    animation: fadeInUp 0.5s ease forwards;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }
.benefit-card:nth-child(7) { animation-delay: 0.7s; }
.benefit-card:nth-child(8) { animation-delay: 0.8s; }