/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ЗАГЛАВНАЯ ЧАСТЬ ===== */
.page-header {
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    padding: 120px 0 120px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 194, 170, 0.3) 0%, rgba(32, 31, 30, 0.7) 100%),
                url('../../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.contacts-content {
    padding: 80px 0 60px;
}

/* ===== КОНТАКТНЫЕ КАРТОЧКИ ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 60px 0 80px;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: transform 0.4s;
}

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

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.contact-info {
    width: 100%;
}

.contact-item {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    color: #666;
    margin: 5px 0;
    font-size: 1rem;
}

.contact-link {
    color: #69a2e7;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    margin-top: 5px;
}

.contact-link:hover {
    color: #201f1e;
    text-decoration: underline;
}

/* ===== ФОРМА ОБРАТНОЙ СВЯЗИ ===== */
.form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px;
    border-radius: 20px;
    margin: 80px 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}

.form-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #e8e8e8;
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #dcc2aa;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.form-control::placeholder {
    color: #999;
}

.form-control.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.form-button {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 45px;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    color: white;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    display: none;
}

/* ===== КАРТА/ЛОКАЦИЯ ===== */
.map-section {
    margin: 80px 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.map-header {
    text-align: center;
    margin-bottom: 40px;
}

.map-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.map-header p {
    color: white;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.map-container {
    position: relative;
    min-height: 400px;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.map-container.loaded .map-loading {
    opacity: 0;
    pointer-events: none;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    padding-bottom: 56.25%;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.map-wrapper iframe:hover {
    filter: grayscale(0%);
}

.map-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #dcc2aa;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

/* ===== ЧАСЫ РАБОТЫ ===== */
.hours-section {
    background: linear-gradient(135deg, #fff9db 0%, #fff3cd 100%);
    padding: 50px;
    border-radius: 20px;
    margin: 80px 0;
    border-left: 5px solid #ffc107;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.1);
}

.hours-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hours-icon {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    opacity: 0.8;
}

.hours-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 1.1rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    color: #333;
    font-weight: 600;
}

.hours-list .time {
    color: #494948;
    font-weight: 600;
}

.hours-note {
    color: #666;
    font-style: italic;
    font-size: 1rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .contacts-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 2.8rem;
    }

    .contacts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .form-section, .hours-section {
        padding: 40px;
    }

    .form-header h2, .map-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 80px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .contacts-content {
        padding: 60px 0 40px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 40px 0 60px;
    }

    .contact-card {
        padding: 30px 25px;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .contact-card h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .form-section, .hours-section, .map-section {
        margin: 60px 0;
        padding: 30px;
    }

    .form-header h2, .map-header h2 {
        font-size: 1.8rem;
    }

    .form-header p, .map-header p {
        font-size: 1.1rem;
    }

    .form-control {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 16px 35px;
        font-size: 1rem;
        width: 100%;
    }

    .map-container {
        height: 300px;
    }

    .hours-section h3 {
        font-size: 1.7rem;
    }

    .hours-list li {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .contact-card {
        margin: 0 10px;
        border-radius: 15px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .form-header, .map-header {
        margin-bottom: 30px;
    }

    .hours-icon {
        font-size: 2.5rem;
    }

    .hours-section h3 {
        font-size: 1.5rem;
    }

    .hours-list li {
        font-size: 0.95rem;
        padding: 12px 0;
    }
}

@media (max-width: 400px) {
    .contacts-grid {
        margin: 30px -10px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .form-section, .hours-section {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .map-container {
        height: 250px;
        border-radius: 15px;
    }
}