* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
    overflow-x: hidden;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

header {
    background-color: #0F1F37 !important;
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(92, 170, 71, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s ease;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 5px;
}
.logo-icon img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.logo-text {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 18px;
}
.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}
.lang-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.flag-icon {
    font-size: 20px;
    line-height: 1;
}
nav ul {
    display: flex;
}
nav ul li {
    margin-left: 30px;
}
nav ul li a {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}
nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #5caa47;
    transition: width 0.3s ease;
}
nav ul li a:hover {
    color: #5caa47;
}
nav ul li a:hover:after {
    width: 100%;
}

.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.55), rgba(10, 25, 47, 0.55)), url('images/drone.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    display: flex;
    align-items: stretch;
    text-align: center;
    color: white;
    margin-top: 80px;
    border-bottom: 3px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Place the title at the top and the subtitle at the bottom, preserving sizes */
.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding-top: 24px;
    padding-bottom: 12px;
    gap: 8px;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.hero p {
    font-size: 24px;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.btn {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px 35px;
    border: 2px solid #5caa47;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(92, 170, 71, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}
.btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 15px rgba(92, 170, 71, 0.6);
    transform: translateY(-3px);
}
.btn:hover:before {
    left: 100%;
}

.services {
    padding: 100px 0;
    background-color: #1e3a5f;
    position: relative;
    border-top: 1px solid rgba(92, 170, 71, 0.3);
    border-bottom: 1px solid rgba(92, 170, 71, 0.3);
}
.services h2, .expertise h2, .about h2, .contact h2, .cooperation h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.cooperation .container, .about .container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.services .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.services-intro {
    max-width: 1000px;
    margin: 0 auto 28px;
}
.services-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
}
.service-card {
    background: rgba(10, 25, 47, 0.85);
    border: 1px solid rgba(92, 170, 71, 0.35);
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    border-color: rgba(92, 170, 71, 0.6);
}
.service-card h3 {
    margin: 0 0 10px;
}
.service-card p {
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 1.6;
}
.service-card p:last-of-type { margin-bottom: 0; }

@media (min-width: 900px) {
    .services-cards { grid-template-columns: 1fr; }
    .service-card--full { grid-column: 1 / -1; }
}
.services h2:after, .expertise h2:after, .about h2:after, .contact h2:after, .cooperation h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #5caa47, #0a192f, #5caa47);
}
.services-text p {
    margin: 0 0 16px;
}
.services-text h3 {
    font-size: 34px;
    margin: 28px 0 12px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.25;
}
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}
.services-grid .service-item {
    width: 100%;
    max-width: 350px;
}
.service-item {
    background-color: rgba(10, 25, 47, 0.8);
    padding: 30px;
    border: 1px solid rgba(92, 170, 71, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.service-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: #5caa47;
    transition: height 0.4s ease;
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(92, 170, 71, 0.2);
    border-color: rgba(92, 170, 71, 0.6);
}
.service-item:hover:before {
    height: 100%;
}
.service-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.cooperation {
    padding: 100px 0;
    background-color: #1e3a5f;
    color: white;
    position: relative;
    overflow: hidden;
    border-top: 4px solid rgba(92, 170, 71, 0.8);
    border-bottom: 1px solid rgba(92, 170, 71, 0.3);
}
.partners-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 30px;
    margin-top: 50px;
    width: 100%;
}
.partner-item {
    text-align: center;
    flex: 1;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
.partner-item img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 30px;
}
.partner-item p {
    font-size: 14px;
    line-height: 1.4;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
}

.expertise {
    padding: 100px 0;
    background: linear-gradient(rgba(31, 60, 95, 0.95), rgba(31, 60, 95, 0.95)), url('images/drone-expertise.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

.expertise-content {
    max-width: 800px;
    margin: 0 auto;
}
.expertise h2 {
    text-align: left;
    margin-bottom: 30px;
}
.expertise ul {
    margin-bottom: 40px;
    padding-left: 20px;
    list-style-type: none;
}
.expertise ul li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
    transition: transform 0.3s ease;
}
.expertise ul li:before {
    content: '⬢';
    position: absolute;
    left: 0;
    font-size: 16px;
    color: #5caa47;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}
.expertise ul li:hover {
    transform: translateX(5px);
}
.expertise ul li:hover:before {
    color: white;
    transform: rotate(90deg);
}

.about {
    padding: 80px 0;
    background-color: #1F3C5F;
    position: relative;
    z-index: 1;
}
.about:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="1" height="1" fill="rgba(92, 170, 71, 0.03)"/></svg>');
    z-index: -1;
}
.drone-show-link {
    color: #3a7bd5;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted #3a7bd5;
    transition: all 0.3s ease;
}
.drone-show-link:hover {
    color: #1a5dc8;
    border-bottom: 1px solid #1a5dc8;
}
.about p {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 18px;
}

.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a192f 0%, #172a45 50%, #0f2546 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* decorative overlay removed for a clean gradient background */
.contact .container {
    position: relative;
    z-index: 1;
}
.contact-info {
    max-width: 600px;
    margin: 0 auto;
}
.contact-info p {
    margin: 20px 0;
    font-size: 28px;
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: #0F1D34;
    border: none;
    transition: all 0.3s ease;
}
.contact-info .linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #0F1D34;
    transition: all 0.3s ease;
}
.contact-info .linkedin img {
    height: 55px;
}
.contact-info p:hover {
    background-color: #0F1D34;
    transform: none;
    box-shadow: none;
}
.email, .phone, .cvr {
    font-weight: 400;
    color: white;
}

footer {
    background-color: #0F1F37;
    color: white;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(92, 170, 71, 0.3);
    position: relative;
    overflow: hidden;
}
footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(92, 170, 71, 0.05) 0%, transparent 70%);
    z-index: 0;
}
footer .container {
    background-color: #0F1F34;
    position: relative;
    z-index: 1;
}
footer .logo {
    justify-content: center;
    margin-bottom: 10px;
}

footer .cvr {
    margin-top: 2px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ffffff;
    opacity: 1;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
        padding: 0 15px;
    }
    
    .hero p {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .services h2, .expertise h2, .about h2, .contact h2 {
        font-size: 26px;
    }
    
    .service-item {
        padding: 15px;
    }
    
    .service-item h3 {
        font-size: 18px;
    }
    
    nav {
        flex-direction: row;
        gap: 10px;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 16px;
    }
    
    .flag-icon {
        font-size: 18px;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #0F1F37;
        padding: 20px;
        z-index: 1000;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
    }
    
    /* Оптимизация секции партнеров */
    .partners-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .partner-item {
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .partner-item p {
        height: auto;
        margin-bottom: 10px;
    }
    
    /* Оптимизация контактной информации */
    .contact-info p {
        font-size: 20px;
        padding: 8px 15px;
        width: 90%;
        max-width: 300px;
    }
    
    /* Уменьшение отступов в секциях */
    .expertise, .about, .contact {
        padding: 60px 0;
    }
    
    /* Оптимизация для очень маленьких экранов */
    .container {
        width: 95%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-icon img {
        height: 30px;
    }
    
    .services h2, .expertise h2, .about h2, .contact h2 {
        font-size: 22px;
    }
    
    .partner-item img {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }

    /* Make hero subtitle more compact on very small screens */
    .hero p {
        font-size: 14px;
        line-height: 1.4;
    }
}
