.contacts-page {
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .contacts-page {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Improve touch targets */
    .contact-card {
        min-height: 60px; /* Minimum touch target size */
    }
    
    .contact-content a {
        padding: 5px 0; /* Larger touch area for links */
    }
    
    /* Better spacing for mobile */
    .contact-info-section {
        padding-top: 40px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #243674 0%, #1e2d5a 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Contact Information Section */
.contact-info-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    background: #243674;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-content h3 {
    color: #243674;
    margin-bottom: 10px;
    font-size: 1.3rem;
	font-weight: 400;
}

.contact-content p,
.contact-content a {
    color: #666;
    text-decoration: none;
    line-height: 1.6;
}

.contact-content a:hover {
    color: #243674;
}

.phone-card {
    grid-column: span 2;
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phone-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.phone-item a {
    color: #243674;
    font-weight: 500;
}

/* Map Section */
.map-section {
    padding: 40px 0;
    background: white;
}
.map-section h2 {
    text-align: center;
    color: #243674;
    margin-bottom: 40px;
   	font-size: 1.6rem;
    font-weight: 400;
}
.map-container {
    max-width: 1200px;
    margin: 0 auto;
}
.map {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Form Section */
.contact-info-section h1 {
    text-align: center;
    color: #243674;
    margin-bottom: 40px;
	font-size: 1.6rem;
    font-weight: 400;
}
.contact-form-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 32px auto;
    min-height: 340px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #222;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.contact-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
    /*ДОБАВЛЕНО hgpym*/
    background-image: url('images/contact-bg.jpg');
    background-repeat: no-repeat;
    background-size: 120%;
    background-position: 90% center;
}
/*
.contact-bg img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.85);
}
*/

.contact-flex {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-height: 340px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-left {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 0 32px 48px;
}

.contact-left-text {
    color: whitesmoke !important;
    font-size: 1.4rem;
    font-weight: 400;
    max-width: 420px;
    background: none;
    z-index: 2;
}

.contact-desc {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0;
}

.contact-right {
    flex: 1.2;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 48px 32px 0;
}

.contact-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(34,34,34,0.13);
    padding: 32px 28px 28px 28px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-title {
    color: #243674;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 12px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 1rem;
    color: #222;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #bdbdbd;
    border-radius: 0;
    font-size: 1rem;
    background: #eaf2fc;
    transition: border-color 0.2s;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom: 1.5px solid #243674;
    background: #fff;
}

.contact-submit {
    background: #dde5ef;
    color: #222;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.contact-submit:hover:not(:disabled) {
    background: #243674;
    color: #fff;
}

.contact-submit:disabled {
    background: #dde5ef;
    color: #222;
    cursor: not-allowed;
}

/* Privacy checkbox styles */
.contact-form label[for='privacy-check'],
.contact-form #privacy-check + a,
.contact-form label[style*='display: flex'] {
    font-size: 0.98rem;
    line-height: 1.4;
    gap: 8px;
    flex-direction: row;
    align-items: center;
    word-break: break-word;
}

.contact-form #privacy-check {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Hide Leaflet attribution and controls */
.leaflet-control-attribution {
    display: none !important;
}

.leaflet-control-zoom {
    display: none !important;
}

/* Hide any Ukraine-related elements */
.leaflet-control-attribution a[href*="ukraine"],
.leaflet-control-attribution a[href*="ua"],
.leaflet-control-attribution a[href*="ukr"] {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info-section,
    .map-section,
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .phone-card {
        grid-column: span 1;
    }
    
    .contact-card {
        padding: 25px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-content h3 {
        font-size: 1.2rem;
		font-weight: 400;
    }
    
    .phone-list {
        gap: 15px;
    }
    
    .phone-item {
        text-align: center;
    }
    
    .map-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .map-container {
        padding: 0 20px;
    }
    
    .map {
        height: 350px;
        border-radius: 15px;
    }
    
    .contact-form-section {
        border-radius: 0;
        margin: 0 0 24px 0;
    }
    
    .contact-flex {
        flex-direction: column;
        min-height: unset;
    }
    
    .contact-left, .contact-right {
        padding: 24px 16px;
        justify-content: center;
    }
    
    .contact-form {
        min-width: unset;
        max-width: 100%;
    }
    
    .contact-left-text {
        text-align: center;
        max-width: 100%;
    }
    
    .contact-desc {
        font-size: 1.1rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none; /* Remove default iOS styling */
    }
    
    .contact-submit {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-info-section,
    .map-section,
    .contact-form-section {
        padding: 40px 0;
    }
    
    .contact-grid {
        gap: 15px;
        padding: 0 15px;
    }
    
    .contact-card {
        padding: 20px;
        gap: 12px;
		display: inline-block;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-content h3 {
        font-size: 1.1rem;
		font-weight: 400;
    }
    
    .contact-content p,
    .contact-content a {
        font-size: 0.95rem;
    }
    
    .phone-label {
        font-size: 0.85rem;
    }
    
    .map-section h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .map-container {
        padding: 0 15px;
    }
    
    .map {
        height: 300px;
        border-radius: 12px;
    }
    
    .contact-form-section {
        border-radius: 0;
        margin: 0 0 24px 0;
    }
    
    .contact-left, .contact-right {
        padding: 16px 4px;
    }
    
    .contact-form {
        padding: 18px 8px 18px 8px;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-desc {
        font-size: 1rem;
        padding: 10px;
    }
    
    .contact-submit {
        opacity: 1 !important;
        transform: none !important;
        background: #243674 !important;
        color: #fff !important;
        width: 100%;
        margin-top: 18px;
        box-shadow: 0 2px 8px rgba(59,123,191,0.13);
        transition: none !important;
        display: block;
        text-align: center;
    }
    
    .contact-form label[for='privacy-check'],
    .contact-form #privacy-check + a,
    .contact-form label[style*='display: flex'] {
        font-size: 1.13rem !important;
        line-height: 1.4 !important;
        gap: 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        word-break: break-word !important;
    }
    
    .contact-form #privacy-check {
        width: 22px !important;
        height: 22px !important;
        margin-right: 10px !important;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .submit-button {
        padding: 10px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
}

@media (max-width: 360px) {
    .contact-grid {
        padding: 0 10px;
    }
    
    .contact-card {
        padding: 15px;
    }
    
    .map-container {
        padding: 0 10px;
    }
    
    .map {
        height: 250px;
    }
    
    .contact-left, .contact-right {
        padding: 12px 2px;
    }
    
    .contact-form {
        padding: 15px 6px 15px 6px;
    }
    
    .contact-title {
        font-size: 1.1rem;
    }
    
    .contact-desc {
        font-size: 0.95rem;
        padding: 8px;
    }
}
