.contacts-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.contacts-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}

.contacts-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: -0.02em;
    position: relative;
}

.contacts-header h1::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #007bff;
}

.contacts-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    overflow: hidden;
    display: flex;
    min-height: 600px;
}

/* Контактная информация */
.contacts-info {
    width: 45%;
    padding: 2.5rem;
    background: #f8f9fa;
    border-right: 4px solid #007bff;
}

.contacts-info h2 {
    color: #1a202c;
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #dee2e6;
    text-align: center;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Блоки контактов */
.contact-block {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-block-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-block-title i {
    color: #007bff;
}

.contact-block-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fafbfc;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.contact-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    background: #fff;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: #0056b3;
    transform: scale(1.05);
}

.contact-content {
    flex: 1;
    min-width: 0;
}

.contact-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    display: block;
}

.contact-value {
    color: #4a5568;
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
    white-space: pre-line;
}

.contact-value a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Отсутствие контактной информации */
.no-contact-info {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.no-contact-info p {
    margin: 0;
    font-size: 1.1rem;
}

/* Форма обратной связи */
.contact-form-section {
    width: 55%;
    padding: 2.5rem;
    background: #fff;
}

.contact-form-section h2 {
    color: #1a202c;
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #007bff;
    width: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.required {
    color: #e53e3e;
}

.contact-form-submit {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.contact-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.contact-form-submit:active {
    transform: translateY(0);
}

.contact-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 1rem;
    color: #1565c0;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-note i {
    color: #1976d2;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Стили для разных блоков контактов */
.contact-block.main-contacts {
    border-left-color: #28a745;
}

.contact-block.main-contacts .contact-block-title i {
    color: #28a745;
}

.contact-block.editorial {
    border-left-color: #f39c12;
}

.contact-block.editorial .contact-block-title i {
    color: #f39c12;
}

.contact-block.support {
    border-left-color: #dc3545;
}

.contact-block.support .contact-block-title i {
    color: #dc3545;
}

.contact-block.additional {
    border-left-color: #6f42c1;
}

.contact-block.additional .contact-block-title i {
    color: #6f42c1;
}

/* Стили для разных типов контактов */
.contact-item.email .contact-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.contact-item.phone .contact-icon {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.contact-item.address .contact-icon {
    background: linear-gradient(135deg, #fd7e14, #f39c12);
}

.contact-item.website .contact-icon {
    background: linear-gradient(135deg, #6f42c1, #9f7aea);
}

.contact-item.office_hours .contact-icon {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

.contact-item.publisher .contact-icon {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.contact-item.fax .contact-icon {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.contact-item.editor_chief .contact-icon,
.contact-item.editor_email .contact-icon {
    background: linear-gradient(135deg, #f39c12, #fd7e14);
}

.contact-item.submissions .contact-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.contact-item.support .contact-icon {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-block {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-block:nth-child(1) { animation-delay: 0.1s; }
.contact-block:nth-child(2) { animation-delay: 0.2s; }
.contact-block:nth-child(3) { animation-delay: 0.3s; }
.contact-block:nth-child(4) { animation-delay: 0.4s; }

/* Адаптивность */
@media (max-width: 768px) {
    .contacts-page {
        padding: 1.5rem 0.5rem;
    }
    
    .contacts-header {
        margin-bottom: 2.5rem;
    }
    
    .contacts-header h1 {
        font-size: 2rem;
    }
    
    .contacts-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .contacts-info {
        width: 100%;
        border-right: none;
        border-bottom: 4px solid #007bff;
    }
    
    .contact-form-section {
        width: 100%;
        padding: 2rem;
    }
    
    .contact-block {
        padding: 1.25rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contacts-page {
        padding: 1rem 0.25rem;
    }
    
    .contacts-header h1 {
        font-size: 1.7rem;
    }
    
    .contacts-info,
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .contact-block {
        padding: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem;
    }
    
    .contact-icon {
        align-self: center;
        margin-top: 0;
    }
    
    .contact-form-submit {
        padding: 0.875rem 1.5rem;
    }
}

.auth-required-message {
    text-align: center;
    padding: 3rem 2rem;
}

.auth-notice {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 2rem;
}

.auth-notice h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.auth-notice p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-buttons .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
}

.auth-buttons .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
    border: none;
}

.form-note-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    border-color: #f39c12 !important;
    color: #856404 !important;
}

.form-note-warning i {
    color: #f39c12 !important;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .auth-buttons {
        flex-direction: column;
    }
    
    .auth-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}