* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --primary-green: #82b817;
    --primary-green-hover: #73a313;
    --dark-green: #5c8310;
    --dark-green-text: #50730d;
    --footer-bg: #4b6b0c;
    --text-dark: #333333;
    --text-light: #ffffff;
}

body {
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.75;
    overflow-x: hidden;
    font-size: 17px;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 0;
    height: 4px;
    background-color: var(--primary-green);
    box-shadow: 0 1px 5px rgba(92, 131, 16, 0.35);
    pointer-events: none;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background-color: var(--dark-green);
    color: var(--text-light);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background-color: var(--primary-green-hover);
    outline: 3px solid rgba(130, 184, 23, 0.35);
    outline-offset: 3px;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: transparent;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3.5px solid var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: bold;
    color: var(--primary-green);
    background-color: rgba(255, 255, 255, 0.9);
    animation: logo-circle-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes logo-circle-in {
    from {
        opacity: 0;
        transform: scale(0.65) rotate(-30deg);
        box-shadow: 0 0 0 rgba(130, 184, 23, 0);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
        box-shadow: 0 0 18px rgba(130, 184, 23, 0.22);
    }
}

.logo-container:hover .logo-circle {
    transform: rotate(8deg) scale(1.06);
    box-shadow: 0 0 24px rgba(130, 184, 23, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-green);
    letter-spacing: 1.5px;
    line-height: 1;
    animation: logo-text-in 0.6s ease-out 0.35s both;
}

.logo-subtitle {
    font-size: 16px;
    color: var(--primary-green);
    letter-spacing: 1.2px;
    margin-top: 4px;
    animation: logo-text-in 0.6s ease-out 0.5s both;
}

@keyframes logo-text-in {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a {
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    animation: nav-reveal 0.5s ease-out both;
    position: relative;
    overflow: hidden;
}

@keyframes nav-reveal {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes nav-shine {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(120%);
    }
}

@keyframes phone-pulse {
    0%, 70%, 100% {
        transform: scale(1) rotate(0);
    }
    75% {
        transform: scale(1.15) rotate(-8deg);
    }
    82% {
        transform: scale(1.15) rotate(8deg);
    }
}

nav a:nth-child(2) {
    animation-delay: 0.1s;
}

nav a:nth-child(3) {
    animation-delay: 0.2s;
}

nav a:hover {
    transform: translateY(-3px);
}

nav a.nav-home::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28), transparent 70%);
    transform: translateX(-120%);
    animation: nav-shine 3.5s ease-in-out 1.2s infinite;
    pointer-events: none;
}

nav a.phone-btn svg {
    animation: phone-pulse 3.5s ease-in-out 1.8s infinite;
}

nav a.nav-home {
    background-color: var(--primary-green);
    color: var(--text-light);
}

nav a.nav-home:hover {
    background-color: var(--primary-green-hover);
}

nav a.nav-link {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    isolation: isolate;
    transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

nav a.nav-link::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background-color: var(--primary-green);
    transform: translateX(-101%);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

nav a.nav-link::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: -35%;
    width: 18%;
    background-color: rgba(255, 255, 255, 0.45);
    transform: skewX(-20deg) translateX(-180px);
    transition: transform 0.5s ease;
}

nav a.nav-link:hover {
    background-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(92, 131, 16, 0.28);
}

nav a.nav-link:hover::before {
    transform: translateX(0);
}

nav a.nav-link:hover::after {
    transform: skewX(-20deg) translateX(330px);
}

nav a.phone-btn {
    background-color: var(--primary-green);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

nav a.phone-btn:hover {
    background-color: var(--primary-green-hover);
}

.hero {
    position: relative;
    min-height: 520px;
    background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), 
                url('MG4.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 120px 80px 100px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 34px;
    background-color: #ffffff;
}

.hero-text {
    max-width: 700px;
    text-align: left;
    margin-top: 40px;
}

.hero-text h1 {
    color: var(--dark-green-text);
    font-size: 60px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-text p {
    color: #111111;
    font-size: 21px;
    line-height: 1.7;
    font-weight: 600;
}

.intro-banner {
    position: relative;
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 70px 20px 100px;
    margin-top: 0;
    text-align: center;
    transform: none;
    clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-banner h2 {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 35px;
    text-transform: uppercase;
}

.intro-banner p {
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 18px;
    font-weight: 400;
    text-align: left;
}

.direction-section {
    position: relative;
    background-color: #ffffff;
    padding: 50px 20px 90px;
    margin-top: 0;
    text-align: center;
    transform: none;
}

.direction-section h2 {
    color: var(--dark-green-text);
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 460px;
    margin: 0 auto;
}

.profile-img {
    width: min(380px, 86vw);
    height: min(390px, 88vw);
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
    margin: 10px 0 30px;
    transform: none;
}

.profile-info h3 {
    color: var(--dark-green-text);
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 6px;
}

.profile-info p {
    color: #444444;
    font-size: 18px;
}

.services-section {
    position: relative;
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 85px 20px 130px;
    margin-top: 0;
    text-align: center;
    transform: none;
    clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
}

.services-section h2 {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 55px;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 10px;
}

@keyframes service-reveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    text-decoration: none;
    animation: service-reveal 0.7s ease-out both;
    transition: transform 0.25s ease;
}

.service-card:nth-child(2) {
    animation-delay: 0.15s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover img {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.service-card h4 {
    width: 100%;
    font-size: 19px;
    font-weight: bold;
    line-height: 1.4;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 60px 50px 25px;
    margin-top: 0;
}

.footer-content {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-address {
    font-size: 15px;
    line-height: 1.6;
}

.footer-address strong {
    font-size: 17px;
    display: block;
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        position: relative;
        background-color: #ffffff;
    }

    .hero {
        padding: 40px 20px 80px;
        justify-content: center;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card img,
    nav a,
    nav a.nav-home::after,
    nav a.nav-link::before,
    nav a.nav-link::after,
    nav a.phone-btn svg,
    .logo-circle,
    .logo-title,
    .logo-subtitle {
        animation: none;
        transition: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .back-to-top {
        transition: none;
    }

    .service-card:hover,
    .service-card:hover img,
    nav a:hover,
    nav a.nav-link:hover::before,
    nav a.nav-link:hover::after {
        transform: none;
    }

    .logo-container:hover .logo-circle {
        transform: none;
    }
}
