/* --- EMA Website Styles --- */

:root {
    --primary-color: #4d7cff;
    --base-bg: #0f172a;
    --content-bg: rgba(15, 23, 42, 0.85);
    --light-bg: #1e293b;
    --text-color: #cbd5e1;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--base-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Animated Background --- */
.page-background {
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: fixed;
    inset: 0;
    z-index: -2;
}
.page-overlay {
    background-color: rgba(15, 23, 42, 0.8);
    position: fixed;
    inset: 0;
    z-index: -1;
}
.page-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 8s infinite linear;
    z-index: 1;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- General --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #fff;
    font-weight: 900;
    margin-bottom: 1rem;
}

h1 { font-size: 3.2rem; line-height: 1.15; }
h2 { font-size: 2.2rem; text-align: center; }
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Header --- */
.header {
    background-color: var(--content-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-bg);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { display: flex; align-items: center; }
.logo img { height: 50px; margin-right: 15px; }
.logo span { font-size: 1.5rem; font-weight: 700; color: #fff; }
.header-contact a { font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none; }
.header-contact span { display: block; font-size: 0.9rem; text-align: right; }

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 120px 0;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
}
.hero-container { display: flex; justify-content: space-between; align-items: center; gap: 40px; position: relative; z-index: 3; }
.hero-content { flex: 1; }
.hero-content h1 { text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.hero-content p { font-size: 1.1rem; color: #e2e8f0; max-width: 600px; }

/* --- Form --- */
.form-container {
    flex-basis: 400px;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #334155;
}
.form-container h3 { text-align: center; font-size: 1.8rem; }
.form-container p { text-align: center; font-size: 0.9rem; margin-bottom: 20px; }
#contact-form input, #contact-form textarea {
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #334155;
    background-color: var(--base-bg); color: var(--text-color); border-radius: 4px; font-size: 1rem;
}
#contact-form input:focus, #contact-form textarea:focus {
    outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(77, 124, 255, 0.3);
}
#contact-form textarea { height: 100px; resize: vertical; }
#contact-form button {
    width: 100%; padding: 15px; border: none; background-color: var(--primary-color);
    color: #fff; font-size: 1.1rem; font-weight: 700; border-radius: 4px;
    cursor: pointer; transition: background-color 0.3s;
}
#contact-form button:hover { background-color: #3a69e8; }
.form-agreement { font-size: 0.75rem; text-align: center; margin-top: 10px; opacity: 0.7; }
#form-status { margin-top: 15px; text-align: center; font-weight: bold; }

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
    background-color: var(--content-bg);
    border-top: 1px solid var(--light-bg);
}
.content-section:first-of-type { border-top: none; }
.content-section h2 { margin-bottom: 50px; }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- Features Section --- */
.features { display: flex; gap: 30px; text-align: center; margin-top: 40px; }
.feature-item { flex: 1; padding: 20px; background: rgba(30, 41, 59, 0.7); border-radius: 8px; }
.feature-item h3 { color: var(--primary-color); }


/* --- !!! ÈÑÏÐÀÂËÅÍÍÛÉ ÁËÎÊ ÄËß ÓÑËÓÃ !!! --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px 40px;
}
.services-grid ul { 
    list-style-type: none; 
}
.services-grid ul li {
    padding: 10px 0;
    border-bottom: 1px solid #334155;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}
.services-grid ul li:hover { 
    color: #fff; 
}

.service-icon {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    margin-right: 12px;
    flex-shrink: 0;
    transition: fill 0.3s;
}

.services-grid ul li:hover .service-icon { 
    fill: #fff; 
}
/* --- !!! ÊÎÍÅÖ ÈÑÏÐÀÂËÅÍÍÎÃÎ ÁËÎÊÀ !!! --- */


/* --- Details Section --- */
.details-list {
    list-style: none; max-width: 800px; margin: 0 auto;
    background: rgba(30, 41, 59, 0.7); padding: 30px; border-radius: 8px;
}
.details-list li { padding: 10px 0; border-bottom: 1px solid #334155; display: flex; justify-content: space-between; }
.details-list li:last-child { border-bottom: none; }
.details-list li strong { color: #fff; }

/* --- Footer --- */
.footer {
    padding: 50px 0;
    background-color: rgba(12, 18, 33, 0.8);
    border-top: 1px solid var(--light-bg);
}
.footer-content { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 15px; color: #fff; }
.footer-col p { margin-bottom: 5px; font-size: 0.9rem; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; }
    .form-container { width: 100%; max-width: 500px; }
    .hero { min-height: auto; padding: 80px 0; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .header { height: auto; }
    .header-container { flex-direction: column; padding: 15px 0; }
    .header-contact { margin-top: 15px; text-align: center; }
    .header-contact span { text-align: center; }
    .features, .footer-content { flex-direction: column; text-align: center; }
    .services-grid { grid-template-columns: 1fr; }
    .details-list li { flex-direction: column; align-items: center; text-align: center; gap: 5px; }
}