/* Contact Page Styles */

/* Hero Section */
.hero-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-contact h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Info Grid */
.contact-info {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007AFF, #5856D6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

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

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.contact-card p {
    font-size: 1.1rem;
    color: #424245;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-note {
    font-size: 0.9rem;
    color: #86868b;
    font-style: italic;
    margin-top: 0.5rem;
    display: block;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.form-header p {
    font-size: 1.1rem;
    color: #86868b;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007AFF, #5856D6, #AF52DE);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid #e5e5e7;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    position: relative;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a1a1a6;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12), 0 8px 25px rgba(0, 122, 255, 0.08);
    transform: translateY(-2px);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: #c7c7cc;
    transform: translateY(-2px);
}

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

.form-hint {
    display: block;
    font-size: 0.875rem;
    color: #86868b;
    margin-top: 0.5rem;
    font-style: italic;
}

.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: rgba(0, 122, 255, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #007AFF;
    transform: scale(1.2);
}

.checkmark {
    display: none;
}

.checkbox-label a {
    color: #007AFF;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 50%, #AF52DE 100%);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    margin: 2rem auto 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.25);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.35);
}

.submit-btn:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 3rem;
}

.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.map-placeholder {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
    padding: 2rem;
}

.map-icon {
    margin-bottom: 1rem;
}

.map-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.map-content p {
    color: #86868b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.map-link {
    display: inline-block;
    background: #007AFF;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.directions {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.directions h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

.direction-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.direction-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.direction-item strong {
    display: block;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.direction-item p {
    color: #86868b;
    line-height: 1.5;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border-left: 4px solid #007AFF;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #424245;
    line-height: 1.6;
    margin: 0;
}

/* Social Section */
.social-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.social-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.social-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.15);
    padding: 1.25rem 2.5rem;
    border-radius: 60px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.4);
}

.social-link.vk {
    background: linear-gradient(135deg, rgba(70, 128, 194, 0.2), rgba(70, 128, 194, 0.1));
}

.social-link.vk:hover {
    background: linear-gradient(135deg, #4680C2, #5a9bd4);
    box-shadow: 0 15px 35px rgba(70, 128, 194, 0.4);
}

.social-link.telegram {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(0, 136, 204, 0.1));
}

.social-link.telegram:hover {
    background: linear-gradient(135deg, #0088cc, #229ED9);
    box-shadow: 0 15px 35px rgba(0, 136, 204, 0.4);
}

.social-link svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: rotate(5deg) scale(1.1);
}

/* Responsive Design */
/* Large tablets */
@media (max-width: 1024px) {
    .hero-contact {
        padding: 100px 0 70px;
    }
    
    .hero-contact h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .contact-info {
        padding: 60px 0;
    }
    
    .contact-grid {
        gap: 1.8rem;
        margin-top: 2.5rem;
    }
    
    .contact-card {
        padding: 2.2rem 1.8rem;
    }
    
    .contact-form {
        padding: 2.5rem 2rem;
    }
    
    .map-container {
        gap: 2.5rem;
    }
    
    .faq-grid {
        gap: 1.8rem;
    }
}

/* Tablets and mobile landscape */
@media (max-width: 768px) {
    .hero-contact {
        padding: 80px 0 50px;
    }
    
    .hero-contact h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .contact-info {
        padding: 50px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
        padding: 1rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .hero-contact {
        padding: 60px 0 40px;
    }
    
    .hero-contact h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 1rem;
    }
    
    .contact-info {
        padding: 40px 0;
    }
    
    .contact-grid {
        gap: 1.2rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
    
    .contact-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .contact-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
        border-radius: 12px;
        margin: 0 1rem;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .btn-submit {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        border-radius: 8px;
    }
    
    .map-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .directions {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .directions h3 {
        font-size: 1.2rem;
    }
    
    .faq-grid {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .faq-item {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .social-links {
        gap: 0.8rem;
        padding: 0 1rem;
    }
    
    .social-link {
        width: 180px;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-contact {
        padding: 50px 0 30px;
    }
    
    .hero-contact h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 0.8rem;
    }
    
    .contact-grid {
        padding: 0 0.8rem;
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.2rem 0.8rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-card h3 {
        font-size: 1rem;
    }
    
    .contact-card p {
        font-size: 0.85rem;
    }
    
    .contact-form {
        padding: 1.2rem 0.8rem;
        margin: 0 0.8rem;
    }
    
    .contact-form h2 {
        font-size: 1.3rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 9px 10px;
        font-size: 0.85rem;
    }
    
    .btn-submit {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .map-container {
        padding: 0 0.8rem;
    }
    
    .directions {
        padding: 1.2rem;
    }
    
    .directions h3 {
        font-size: 1.1rem;
    }
    
    .faq-grid {
        padding: 0 0.8rem;
    }
    
    .faq-item {
        padding: 1.2rem;
    }
    
    .faq-question {
        font-size: 0.95rem;
    }
    
    .faq-answer {
        font-size: 0.85rem;
    }
    
    .social-links {
        padding: 0 0.8rem;
    }
    
    .social-link {
        width: 160px;
        padding: 0.7rem;
        font-size: 0.85rem;
    }
}

/* Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.cart-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

.cart-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cart-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.cart-modal-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-total {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    text-align: center;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cart-actions .btn {
    flex: 1;
    max-width: 200px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .cart-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-actions .btn {
        max-width: none;
    }
}