:root {
    --bg-color: #0d1a11; /* Very dark green/brown */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --accent-color: #7cb342; /* Light summer green */
    --accent-glow: rgba(124, 179, 66, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Animated Background --- */
#beams-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    filter: blur(14px);
    will-change: transform;
}

.bg-blobs {
    display: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: move 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #558b2f; /* Darker olive green */
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #9ccc65; /* Bright warm green */
    top: 50%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.1); }
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    min-height: 100vh;
    padding-top: 200px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

header,
section,
footer {
    position: relative;
    z-index: 1;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

a.logo {
    color: var(--text-primary);
    text-decoration: none;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    text-decoration: none;
}

.brand-logo img {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(124, 179, 66, 0.45);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* --- Glass Morphism Cards --- */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition);
}

.reveal-item {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1), transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.glass-card:hover {
    background: var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- Typo --- */
h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-top: 6rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-secondary);
    max-width: 600px;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px var(--accent-glow);
}

/* --- Audience Section --- */
.audience-section {
    margin: 2rem 0 4rem;
    width: 100%;
}

.audience-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.audience-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.audience-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 120px;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.audience-item:hover .icon-circle {
    background-color: rgba(124, 179, 66, 0.1);
    border-color: rgba(124, 179, 66, 0.3);
    transform: translateY(-5px);
}

.audience-item span {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

/* --- Projects Section --- */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Порядок прикладів: будівництво, СТО, ресторан, юридична компанія, перукарня. */
.project-card:nth-child(1) { order: 1; }
.project-card:nth-child(5) { order: 2; }
.project-card:nth-child(6) { order: 3; }
.project-card:nth-child(7) { order: 4; }
.project-card:nth-child(4) { order: 5; }
.project-card:nth-child(2) { order: 6; }
.project-card:nth-child(3) { order: 7; }

.project-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.25rem;
}


.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.badge {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    background: rgba(124, 179, 66, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 100px;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.project-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    padding: 0.5rem 1.1rem;
    background: rgba(124, 179, 66, 0.12);
    border: 1px solid rgba(124, 179, 66, 0.4);
    color: var(--accent-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.project-card:hover .project-view-btn,
.project-view-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(124, 179, 66, 0.35);
}

/* --- Why Choose Us Section --- */
.why-us-section {
    padding-top: 1.5rem;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.why-us-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), transparent);
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: var(--transition);
}

.why-us-card:hover::before {
    opacity: 1;
}

.why-us-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(124, 179, 66, 0.2);
}

.why-us-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(124, 179, 66, 0.1);
    border: 1px solid rgba(124, 179, 66, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.why-us-card:hover .why-us-icon {
    background: rgba(124, 179, 66, 0.2);
    border-color: rgba(124, 179, 66, 0.5);
    box-shadow: 0 0 20px rgba(124, 179, 66, 0.2);
}

.why-us-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.why-us-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.why-us-highlight {
    color: var(--accent-color);
    font-weight: 700;
}

/* --- Pricing Section --- */
.pricing-section {
    padding-top: 1.5rem;
}

.pricing-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-card {
    position: relative;
    max-width: 440px;
    width: 100%;
    text-align: center;
    padding: 2.5rem 2rem;
    border-color: rgba(124, 179, 66, 0.3);
    box-shadow: 0 0 40px rgba(124, 179, 66, 0.08);
}

.pricing-badge {
    display: inline-block;
    padding: 5px 16px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.pricing-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pricing-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.pricing-sep {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin: 0 0.1rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    text-align: center;
}

/* --- Footer --- */
footer {
    padding: 80px 0 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

footer h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.btn-telegram {
    background: #7cb342;
    box-shadow: 0 10px 20px rgba(124, 179, 66, 0.3);
}

.btn-telegram:hover {
    box-shadow: 0 15px 30px rgba(124, 179, 66, 0.5);
}

/* --- Booking Form Section --- */
.booking-section {
    padding-top: 0;
}

.booking-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-area {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    position: relative;
}

.contact-links {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.contact-links-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.contact-links-text p {
    color: var(--text-secondary);
}

.contact-links-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.privacy-link {
    position: absolute;
    right: 0;
    bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-decoration: none;
    transition: var(--transition);
}

.privacy-link:hover,
.privacy-link:focus-visible {
    color: var(--accent-color);
    text-decoration: underline;
    outline: none;
}

.privacy-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 7rem;
    padding-bottom: 3rem;
}

.privacy-card {
    max-width: 760px;
    width: 100%;
}

.privacy-card h1 {
    margin-top: 2rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
}

.privacy-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.privacy-back {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.threads-link {
    display: inline-block;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.threads-link:hover,
.threads-link:focus-visible {
    color: var(--accent-color);
    text-decoration: underline;
    outline: none;
}

@media (max-width: 640px) {
    .subtitle {
        font-size: 1.05rem;
        line-height: 1.4;
        max-width: 22rem;
    }

    .contact-links {
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .contact-links-actions {
        justify-content: center;
    }

    .privacy-link {
        position: static;
        display: block;
        width: fit-content;
        margin: 0.75rem auto 0;
    }
}

.booking-card {
    max-width: 600px;
    width: 100%;
    padding: 3rem 2.5rem;
    position: relative;
    border-color: rgba(124, 179, 66, 0.25);
    box-shadow: 0 0 40px rgba(124, 179, 66, 0.05);
}

.form-group {
    margin-bottom: 1.8rem;
    text-align: left;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(124, 179, 66, 0.25);
}

/* Error states */
.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
    border-color: #ff5252;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.2);
}

.form-group.has-error .form-label {
    color: #ff5252;
}

.form-consent {
    margin: 0.25rem 0 0;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
    cursor: pointer;
}

.form-checkbox {
    accent-color: var(--accent-color);
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin-top: 0.12rem;
}

.consent-label a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-group.has-error .consent-label {
    color: #ff8a80;
}

.form-consent .error-message {
    position: static;
    display: block;
    margin: 0.35rem 0 0 1.65rem;
}

.error-message {
    position: absolute;
    bottom: -1.3rem;
    left: 0.2rem;
    font-size: 0.78rem;
    color: #ff5252;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-5px);
    transition: var(--transition);
    pointer-events: none;
}

.form-group.has-error .error-message {
    opacity: 1;
    transform: translateY(0);
}

.booking-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- Success State --- */
.booking-success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    animation: fadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(124, 179, 66, 0.1);
    border: 2px solid var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    box-shadow: 0 0 30px rgba(124, 179, 66, 0.3);
    margin-bottom: 0.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.booking-success h3 {
    font-size: 1.8rem;
    font-weight: 800;
}

.booking-success p {
    color: var(--text-secondary);
    max-width: 420px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.btn-reset {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-reset:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Shake animation for input errors */
.shake {
    animation: shakeKeyframe 0.5s ease-in-out;
}

@keyframes shakeKeyframe {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #beams-canvas {
        filter: none;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
