:root {
    --primary: #2E7D32;
    --primary-600: #25672A;
    --accent: #00BFA6;
    --dark: #0F172A;
    --muted: #64748B;
    --bg: #0B1220;
    --card: #111827;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

html,
body {
    height: 100%
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #e5e7eb;
    background: linear-gradient(180deg, #0a0f1d 0%, #0b1220 100%);
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none
}

a:hover {
    opacity: .9
}

/* Top bar */
.topbar {
    font-size: .925rem;
    background: rgba(17, 24, 39, .7);
    backdrop-filter: saturate(160%) blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* Navbar */
.navbar {
    --bs-navbar-padding-y: .6rem;
    background: rgba(10, 15, 29, .55);
    backdrop-filter: blur(8px);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.brand-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #43A047);
    mask: url('../img/logo.svg') no-repeat center / contain;
    -webkit-mask: url('../img/logo.svg') no-repeat center / contain;
    border-radius: 6px;
}

/* Hero */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background:
        radial-gradient(800px 500px at 10% 10%, rgba(46, 125, 50, .12), transparent 60%),
        radial-gradient(800px 600px at 90% 20%, rgba(0, 191, 166, .12), transparent 60%),
        linear-gradient(180deg, rgba(10, 15, 29, .0), rgba(10, 15, 29, .6) 70%),
        url('../img/hero-bg.jpg') center/cover no-repeat;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 12, 22, .7) 0%, rgba(11, 18, 32, .9) 100%);
}

.hero .content {
    position: relative;
    z-index: 2;
}

.badge-soft {
    background: rgba(46, 125, 50, .15);
    color: #b9f6ca;
    border: 1px solid rgba(46, 125, 50, .3);
    padding: .45rem .7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 18px 0;
    letter-spacing: .2px;
}

.hero p.lead {
    color: #cbd5e1;
    font-size: clamp(1rem, 1.1vw, 1.2rem);
}

.cta-group .btn {
    padding: .9rem 1.3rem;
    border-radius: 12px;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    border: 0;
}

.btn-primary:hover {
    filter: brightness(1.05)
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, .25);
    color: #e5e7eb
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff
}

/* Tiles */
.tiles {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(12, 1fr);
}

.tile {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    height: 100%;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.tile:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25)
}

.tile .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(46, 125, 50, .2), rgba(0, 191, 166, .18));
    color: #e8f5e9;
    margin-bottom: 10px;
}

.mute {
    color: var(--muted)
}

.section-title h2 {
    font-weight: 800;
    letter-spacing: .2px;
    margin-bottom: 6px;
}

.section-title p {
    color: #cbd5e1
}

/* Section spacings */
section {
    padding: 60px 0
}

@media (min-width: 992px) {
    section {
        padding: 50px 0
    }
}

/* Services grid */
.service-card {
    overflow: hidden;
    padding: 0;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.service-card .body {
    padding: 18px
}

.chip {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #d1d5db;
    font-size: .85rem;
    border: 1px solid rgba(255, 255, 255, .08)
}

/* Pricing */
.price {
    font-weight: 800;
    font-size: 1.8rem;
}

.card-accent {
    border-color: rgba(0, 191, 166, .4);
    box-shadow: 0 0 0 1px rgba(0, 191, 166, .25) inset;
}

/* Steps */
.step {
    position: relative;
    padding-left: 54px;
}

.step .num {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(46, 125, 50, .25), rgba(0, 191, 166, .25));
    display: grid;
    place-items: center;
    font-weight: 800;
}

/* Testimonials */
.review-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(0, 191, 166, 0.5);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 191, 166, 0.8);
    box-shadow: 0 10px 30px rgba(0, 191, 166, 0.15);
}

.review-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(46, 125, 50, 0.1), transparent 70%);
    pointer-events: none;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 191, 166, 0.3);
}

.review-text {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for review text */
.review-text::-webkit-scrollbar {
    width: 4px;
}

.review-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.review-text::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.review-text:hover::-webkit-scrollbar-thumb {
    background-color: var(--accent);
}

/* Rating Stars */
.rating-stars i.active {
    font-weight: 900 !important;
    color: #ffc107;
}

.rating-stars i:hover {
    transform: scale(1.2);
}


.review-footer {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* FAQ */
.accordion-button {
    background: transparent;
    color: #e5e7eb;
    font-weight: 600;
}

.accordion-item {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, .04);
    color: #fff;
}

.accordion-body {
    color: #d1d5db
}

/* Glass Panel */
.glass-panel {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Floating Form */
.form-floating>.form-control,
.form-floating>.form-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
}

.form-floating>.form-control:focus,
.form-floating>.form-select:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 191, 166, 0.1);
    color: #fff;
}

.form-floating>label {
    color: rgba(255, 255, 255, 0.5);
    background: transparent !important;
    padding-left: 1rem;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    color: var(--accent);
    opacity: 1;
    background: transparent !important;
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
    backdrop-filter: none;
}

.form-floating>.form-control:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(17, 24, 39, 0.8) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}


.form-floating>label::after {
    background-color: transparent !important;
}

/* Fix for dropdown options visibility on Windows/Light theme browsers */
.form-floating>.form-select option {
    background-color: var(--card);
    color: #fff;
}

/* Success Message */
.success-message {
    animation: fadeIn 0.5s ease-out;
}

.glow-icon {
    filter: drop-shadow(0 0 15px rgba(37, 211, 102, 0.4));
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(46, 125, 50, .2), rgba(0, 191, 166, .2));
    color: #b9f6ca;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}



/* Social Buttons */
.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.25rem;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    color: #fff;
    transform: translateY(-3px);
}

.social-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.social-btn.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.social-btn.vk:hover {
    background: #0077FF;
    border-color: #0077FF;
}

/* Footer */
footer {
    background: rgba(10, 15, 29, .5);
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 30px 0;
    color: #9CA3AF;
}

/* Avatar Upload */
.avatar-upload-box {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    overflow: hidden;
}

.cursor-pointer:hover .avatar-upload-box {
    border-color: var(--accent);
    background: rgba(37, 211, 102, 0.1);
}

.cursor-pointer {
    cursor: pointer;
}

/* Modal Styling */
.modal-backdrop.show {
    backdrop-filter: blur(5px);
    opacity: 0.8 !important;
    background-color: rgba(10, 15, 29, 0.9) !important;
}

.modal-content.glass-panel {
    background: rgba(17, 24, 39, 0.85);
    /* Slightly more opaque for modal */
}

/* Responsive grid helpers */
.col-12x {
    grid-column: span 12
}

.col-6x {
    grid-column: span 6
}

.col-4x {
    grid-column: span 4
}

.col-3x {
    grid-column: span 3
}

@media (max-width: 1199.98px) {
    .col-3x {
        grid-column: span 4
    }
}

@media (max-width: 991.98px) {
    .col-4x {
        grid-column: span 6
    }

    .col-3x {
        grid-column: span 6
    }
}

@media (max-width: 575.98px) {

    .col-6x,
    .col-4x,
    .col-3x {
        grid-column: span 12
    }

    .tiles {
        gap: 15px;
    }
}

/* Mobile Tweaks */
@media (max-width: 575.98px) {
    section {
        padding: 40px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p.lead {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .map {
        min-height: 250px;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-group .btn {
        width: 100%;
    }
}

/* Back to top */
#toTop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    background: rgba(46, 125, 50, .9);
    color: #fff;
    border: 0;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

#toTop.show {
    display: flex
}

/* Utilities */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
    margin: 30px 0
}

/* Custom Checkbox Style */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

/* Service Image Overlay */
.service-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Remove overlay on hover (Desktop) */
@media (hover: hover) {
    .service-card:hover .service-img::after {
        opacity: 0;
    }
}

/* Remove overlay via JS class (Mobile) */
.service-img.reveal::after {
    opacity: 0;
}