/* Стили для страницы контактов */

/* Hero секция */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Секция контактов */
.contacts-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Контактная информация */
.contact-info .section-title,
.contact-form-wrapper .section-title {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.info-content p {
    color: var(--medium-gray);
    line-height: 1.5;
}

.info-content a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-color);
}

.info-note {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* График работы */
.schedule-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
}

.schedule-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
}

.schedule-card h3 i {
    color: var(--primary-color);
}

.schedule-list {
    list-style: none;
    padding: 0;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list li span:first-child {
    color: var(--dark-color);
    font-weight: 500;
}

.schedule-list li span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* Форма обратной связи */
.contact-form-wrapper {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-label .required {
    color: var(--danger-color);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--dark-color);
    background: var(--bg-white);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.form-control.error {
    border-color: var(--danger-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232D4A3E' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

/* Стили для неактивной формы */
.contact-form input:disabled,
.contact-form select:disabled,
.contact-form textarea:disabled {
    background: #f5f5f5;
    opacity: 0.7;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Сообщение об успехе */
.success-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--success-color), #34a853);
    color: white;
    border-radius: 1rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-message p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.success-message .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.success-message .btn-outline:hover {
    background: white;
    color: var(--success-color);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Сообщение об авторизации */
.auth-message {
    margin-top: 30px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.auth-message i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.auth-message span {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.95;
}

.auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.auth-link {
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.auth-link:hover {
    background: white;
    color: #667eea;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.auth-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Отделы */
.departments-section {
    padding: 4rem 0;
    background: var(--gradient-subtle);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.department-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.1);
}

.department-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.department-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.department-card p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.department-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.department-contacts a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.department-contacts a:hover {
    color: var(--primary-dark);
}

/* Карта */
.map-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.map-container {
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.section-title.text-center {
    text-align: center;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

