* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

main {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.section {
    margin-bottom: 2rem;
}

.section h2 {
    color: #34495e;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.section p {
    margin-bottom: 1rem;
}

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

.card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 1rem;
    color: #7f8c8d;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    margin: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.btn:hover {
    background: #2980b9;
}

/* Contact popup styles */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.contact-popup.active {
    display: flex;
}

.contact-popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close-popup {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.close-popup:hover {
    color: #e74c3c;
}

.contact-popup h2 {
    color: #2c3e50;
    margin-bottom: 24px;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.popup-field {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1.15rem;
    margin-bottom: 20px;
    background: #fff;
    color: #222;
    transition: border 0.2s;
    font-family: inherit;
}

.popup-field:focus {
    border: 2px solid #3498db;
    outline: none;
}

.contact-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.contact-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }

    .contact-popup-content {
        margin: 20px;
        width: calc(100% - 40px);
        padding: 20px;
    }
}