html {
    scroll-padding-top: 80px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
}

.main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%; 
    padding: 0 20px; 
    max-width: 1200px;
    margin: auto;
}

.logo img {
    max-height: 42px; 
    width: auto;
    display: block;
}

.hamburger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
    margin-left: auto;
    padding: 10px 0 10px 15px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #1a365d;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    list-style: none;
    position: absolute;
    top: 100%;
    left: -100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    text-align: center;
    transition: 0.4s ease;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 30px 0;
}

.nav-links.active {
    left: 0;
}

.nav-links li {
    margin: 20px 0;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #2b6cb0;
}

.btn-small {
    background: #2b6cb0;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(43, 108, 176, 0.2);
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: #1e4e8c;
    box-shadow: 0 6px 12px rgba(43, 108, 176, 0.3);
    transform: translateY(-2px);
}

.hero {
    position: relative;
    background: linear-gradient(rgba(15, 30, 55, 0.75), rgba(26, 65, 105, 0.65)), url('panorama.webp');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 65vh; 
    padding: 20px 0 12vh 0; 
}

.hero-main-text, 
.hero-subtitle,
.hero-description {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 5px 15px rgba(0, 0, 0, 0.7);
}

.hero-main-text {
    font-size: clamp(1.8rem, 7vw, 4.5rem) !important; 
    line-height: 1.2 !important; 
    margin-bottom: 20px !important;
    font-weight: 700;
}

.hero-subtitle.highlight {
    font-size: clamp(1.3rem, 5vw, 3rem) !important;
    margin-bottom: 30px !important;
    color: #63b3ed;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.8rem) !important;
    max-width: 85vw !important;
    line-height: 1.7;
    font-weight: 500;
    margin: 0 auto;
}

.hero-main-text br,
.hero-description br {
    display: none;
}

.services-overlap {
    position: relative;
    z-index: 10;
    margin-top: -10vh; 
    padding-bottom: 60px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.service-card {
    position: relative;
    cursor: pointer;
    background: #ffffff;
    padding: 40px 30px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
}

.card-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.card-icon svg {
    color: #1a365d;
    transition: transform 0.3s ease;
}

.service-card h2 {
    color: #1a365d;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #475569; 
    font-size: 0.95rem;
}

.card-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: left;
    margin-top: 0;
}

.card-details p {
    font-size: 1rem;
    color: #1a365d;
    margin-bottom: 10px;
    margin-top: 15px;
}

.card-details ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #475569; 
}

.card-details li {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f4f7f6;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    display: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    line-height: 1;
}

.service-card:hover {
    border-bottom: 4px solid #2b6cb0;
}

.service-card:hover .card-icon svg {
    transform: scale(1.1);
    color: #2b6cb0;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #1a365d;
}

.service-card.expanded {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 20;
    cursor: default;
    border-bottom: 4px solid #2b6cb0;
}

.service-card.expanded .card-details {
    max-height: 400px;
    opacity: 1;
    margin-top: 20px;
}

.service-card.expanded .close-btn {
    display: block;
}

.about {
    background: #f8fafc; 
    padding: 80px 0;
    text-align: center;
}

.about h2 {
    color: #1a365d;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.benefit-item,
.benefit-item-center {
    display: flex;
    align-items: center;
    width: 100%;
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: left;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #eff6ff;
    color: #2b6cb0;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-text {
    font-size: 1.05rem;
    color: #334155;
    font-weight: 600;
}

.contact {
    background: #1a365d;
    color: #ffffff;
    padding: 80px 0px;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-text {
    text-align: center;
}

.contact-text h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.highlight-contact {
    font-size: 1.5rem;
    color: #63b3ed;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text p {
    font-size: 1.1rem;
    color: #cbd5e1;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px 30px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

a.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px); 
    border-color: #63b3ed;
}

.contact-icon {
    font-size: 2.5rem;
    margin-right: 25px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-info span {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info strong {
    font-size: 1.3rem;
    font-weight: 700;
}

footer {
    text-align: center;
    padding: 20px;
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.9rem;
}

.classic-link {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.classic-link:hover {
    color: #63b3ed;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
    
    .header-container {
        width: 85%; 
        padding: 0;
        justify-content: space-between; 
    }
    
    .logo img {
        max-height: 55px; 
    }
    
    .nav-links {
        position: static;
        flex-direction: row;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        width: auto;
    }

    .nav-links li {
        margin: 0;
        padding: 0 15px;
    }

    .nav-links a:not(.btn-small)::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        display: block;
        margin-top: 4px;
        right: 0;
        background: #2b6cb0;
        transition: width 0.3s ease, left 0.3s ease;
    }

    .nav-links a:not(.btn-small):hover::after {
        width: 100%;
        left: 0;
    }

    .hero {
        min-height: 85vh; 
        padding-bottom: 16vh; 
    }
    
    .hero-main-text br,
    .hero-description br {
        display: inline;
    }

    .services-overlap {
        margin-top: -14vh;
    }

    .services-grid {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .service-card {
        width: 33%;
        min-height: 350px;
    }

    .service-card.expanded:hover {
        transform: translateY(-12px) scale(1.04);
        box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    }
    
    .benefits-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .benefit-item {
        width: calc(50% - 10px);
    }

    .benefit-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        border-color: #63b3ed;
    }

    .benefit-item-center {
        width: calc(60% - 10px);
    }

    .contact-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
    }

    .contact-text {
        flex: 1;
        text-align: left;
    }

    .contact-details {
        flex: 1;
    }

    a.contact-item:hover {
        transform: translateX(10px); 
    }
}