/* ============================================
   AGENCIES PAGE
   ============================================ */

:root {
    --st-primary: #0D6EFD;
    --st-primary-dark: #0B2545;
    --st-primary-light: #DCEEFF;
    --st-primary-medium: #4D9FFF;
    --st-primary-gradient: linear-gradient(135deg, #0D6EFD 0%, #4D9FFF 100%);
    --st-white: #FFFFFF;
    --st-gray-bg: #F8FAFC;
    --st-text-main: #1F2937;
    --st-text-muted: #6B7280;
    --st-border: #E5E7EB;
    --st-blue-light: #E8F1FF;
    --st-blue-lighter: #F0F6FF;
    --st-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --st-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --st-shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --st-shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
}

/* ===== ШИРОКИЙ КОНТЕЙНЕР ===== */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

@media (max-width: 1200px) {
    .container-wide {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .container-wide {
        padding: 0 15px;
    }
}

/* ===== HERO ===== */
.agencies-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
}

.agencies-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.agencies-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(11, 37, 69, 0.95) 0%,
        rgba(11, 37, 69, 0.8) 50%,
        rgba(11, 37, 69, 0.5) 100%
    );
}

.agencies-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.breadcrumbs a:hover {
    color: var(--st-primary-medium);
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--st-primary-medium);
    font-weight: 600;
    font-size: 14px;
}

.agencies-hero-content h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.agencies-hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Статистика в hero */
.agencies-hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-family: 'Exo 2', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.hero-stat .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ЗАГОЛОВКИ СЕКЦИЙ ===== */
.section-header-center {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--st-blue-light);
    color: var(--st-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--st-primary-light);
}

.section-header-center h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--st-primary-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-header-center h2 .text-blue {
    color: var(--st-primary);
}

.section-header-center p {
    font-size: 18px;
    color: var(--st-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.agencies-benefits-section {
    padding: 80px 0;
    background: var(--st-white);
}

.agencies-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    background: var(--st-gray-bg);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--st-border);
}

.benefit-item:hover {
    background: #fff;
    transform: translateY(-8px);
    box-shadow: var(--st-shadow-lg);
    border-color: var(--st-primary);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--st-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: all 0.3s;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-item h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 18px;
    color: var(--st-primary-dark);
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 14px;
    color: var(--st-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ===== ДОКУМЕНТЫ ===== */
.agencies-documents-section {
    padding: 80px 0;
    background: var(--st-gray-bg);
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--st-shadow-md);
    border: 1px solid var(--st-border);
    transition: all 0.3s;
}

.document-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--st-shadow-lg);
    border-color: var(--st-primary);
}

.doc-number {
    width: 50px;
    height: 50px;
    background: var(--st-primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.doc-content {
    flex: 1;
}

.doc-content h4 {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--st-primary-dark);
    margin-bottom: 5px;
}

.doc-content p {
    font-size: 14px;
    color: var(--st-text-muted);
    margin: 0;
}

.btn-download {
    background: var(--st-blue-light);
    color: var(--st-primary);
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-download:hover {
    background: var(--st-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Дополнительные документы */
.additional-docs {
    background: var(--st-blue-lighter);
    border: 1px solid var(--st-blue-light);
    border-radius: 20px;
    padding: 30px;
}

.additional-docs h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 18px;
    color: var(--st-primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.additional-docs h3 i {
    color: var(--st-primary);
}

.additional-docs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.additional-docs ul li {
    margin-bottom: 12px;
}

.additional-docs ul a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--st-text-main);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.additional-docs ul a:hover {
    color: var(--st-primary);
    padding-left: 5px;
}

.additional-docs ul a i {
    color: var(--st-primary);
}

/* ===== ФОРМА СОТРУДНИЧЕСТВА ===== */
.agencies-form-section {
    padding: 80px 0;
    background: var(--st-white);
}

.agencies-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background: var(--st-gray-bg);
    border-radius: 30px;
    padding: 50px;
    border: 1px solid var(--st-border);
}

/* Левая часть */
.agencies-form-info {
    display: flex;
    flex-direction: column;
}

.agencies-form-info h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--st-primary-dark);
    margin-bottom: 15px;
}

.agencies-form-info h2 .text-blue {
    color: var(--st-primary);
}

.agencies-form-info > p {
    font-size: 16px;
    color: var(--st-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.agencies-advantages-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.agencies-advantages-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--st-text-main);
    font-weight: 500;
}

.agencies-advantages-list li:not(:last-child) {
    border-bottom: 1px solid var(--st-border);
}

.agencies-advantages-list li i {
    color: var(--st-primary);
    font-size: 18px;
}

/* Контакты */
.agencies-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid var(--st-border);
}

.contact-info-item i {
    font-size: 20px;
    color: var(--st-primary);
    margin-top: 3px;
}

.contact-info-item div {
    flex: 1;
}

.contact-info-item span {
    display: block;
    font-size: 12px;
    color: var(--st-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.contact-info-item a,
.contact-info-item p {
    font-size: 15px;
    color: var(--st-text-main);
    text-decoration: none;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.contact-info-item a:hover {
    color: var(--st-primary);
}

/* Правая часть - Форма */
.agencies-form {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--st-shadow-xl);
}

.agencies-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.agencies-form-header .form-icon {
    width: 70px;
    height: 70px;
    background: var(--st-primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.agencies-form-header h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--st-primary-dark);
    margin-bottom: 10px;
}

.agencies-form-header p {
    font-size: 14px;
    color: var(--st-text-muted);
    margin: 0;
}

.partner-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--st-text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--st-border);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--st-gray-bg);
    transition: all 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--st-primary);
    background: #fff;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.1);
}

.form-group.full-width {
    width: 100%;
}

.partner-form .btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 15px;
    margin-top: 5px;
}

.form-note {
    font-size: 12px;
    color: var(--st-text-muted);
    text-align: center;
    margin: 10px 0 0;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1200px) {
    .agencies-form-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .agencies-hero {
        min-height: 350px;
        padding: 40px 0;
    }
    
    .agencies-hero-content h1 {
        font-size: 36px;
    }
    
    .agencies-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header-center h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .agencies-hero-content h1 {
        font-size: 28px;
    }
    
    .agencies-hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .agencies-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    .agencies-form-wrapper {
        padding: 30px 20px;
    }
    
    .agencies-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .agencies-hero-content h1 {
        font-size: 24px;
    }
    
    .section-header-center h2 {
        font-size: 28px;
    }
    
    .agencies-form-info h2 {
        font-size: 28px;
    }
}