:root {
    --color-bg: #ffffff;
    --color-accent: #0054a3;
    --color-accent-light: #0077e0;
    --color-gradient-start: #0054a3;
    --color-gradient-end: #00a8ff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-on-dark: #ffffff;
    --color-footer-bg: #0054a3;
    --border-radius: 8px;
    --font-main: "Inter", sans-serif;
    --font-secondary: "Open Sans", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .nav-link, .cta-button {
    font-family: var(--font-main);
    font-weight: 600;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 50px 0;
}

.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-radius: 12px;
    padding: 0 25px;
    margin: 0 auto;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: auto;
}

.logo-img {
    height: auto;
    width: auto;
    max-height: 50px;
    max-width: 180px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-accent);
    background-color: rgba(0, 84, 163, 0.05);
}

.nav-link.active {
    color: white;
    background-color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-accent);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hero {
    background: url('/files/backgrounds/sevastopol.jpg') center/cover no-repeat;
    background-attachment: fixed;
    background-position: center center;
    color: var(--color-text-on-dark);
    text-align: center;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-content {
    /* background: #0064ff1c;
    backdrop-filter: blur(8px); */
    /* -webkit-backdrop-filter: blur(8px); */
    border-radius: 16px;
    /* padding: 50px 40px; */
    max-width: 800px;
    margin: 0 auto;
    /* border: 1px solid rgba(255, 255, 255, 0.15); */
}

.hero .cta-button.primary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-accent);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero .cta-button.primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.hero-note {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero .fa-arrow-down {
    font-size: 1.5rem;
    margin-top: 30px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.cta-button {
    display: inline-block;
    background-color: var(--color-bg);
    color: var(--color-accent);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: var(--color-accent);
    color: var(--color-text-on-dark);
    transform: translateY(-2px);
}

.cta-button.primary {
    background-color: var(--color-accent);
    color: var(--color-text-on-dark);
}

.cta-button.primary:hover {
    background-color: var(--color-accent-light);
}

.about-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    color: var(--color-text-light);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.task-card {
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.task-banner {
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.task-details {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-top: 15px;
}

.more-services {
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 10px;
}

.faq-question {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    color: var(--color-text-light);
}

.faq-answer.active {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.contact-section {
    text-align: center;
}

.contact-desc {
    margin-bottom: 2.5rem;
    color: var(--color-text-light);
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: #f0f8ff;
    border-color: var(--color-accent);
}

.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-on-dark);
}

.footer-main {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer .logo-img {
    height: auto;
    width: auto;
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.footer-contacts p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contacts a {
    color: var(--color-text-on-dark);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-contacts a:hover {
    opacity: 0.8;
}

.footer-social h4 {
    margin-bottom: 20px;
    color: var(--color-text-on-dark);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-on-dark);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.social-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.map-placeholder {
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-left: 20px;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 100px;
        gap: 20px;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .nav-list.active {
        left: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 80%;
        text-align: center;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-radius: 30px;
        background: rgba(0, 84, 163, 0.05);
    }
    
    .nav-link.active {
        background: var(--color-accent);
        color: white;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .header .logo-img {
        max-height: 40px;
        max-width: 150px;
    }
    
    .header {
        top: 15px;
        width: calc(100% - 30px);
        padding: 0 20px;
        border-radius: 10px;
    }
    
    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 30px 20px;
        margin: 0 15px;
        backdrop-filter: blur(6px);
    }
    
    .hero .container {
        padding: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero .fa-arrow-down {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .footer .logo-img {
        max-height: 50px;
        max-width: 160px;
    }
    
    .nav-list {
        padding-top: 90px;
    }
}

@media (max-width: 480px) {
    .header {
        top: 10px;
        width: calc(100% - 20px);
        padding: 0 15px;
    }
    
    .header .logo-img {
        max-height: 35px;
        max-width: 120px;
    }
    
    .hero {
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .hero-content {
        padding: 25px 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .footer .logo-img {
        max-height: 45px;
        max-width: 140px;
    }
    
    .nav-list {
        padding-top: 80px;
    }
    
    .nav-link {
        width: 85%;
        padding: 12px 18px;
        font-size: 1rem;
    }
}