:root {
    --bg-main: #0c120f;
    --bg-dark: #121a16;
    --brand-green: #103e2c;
    --accent-green: #21c063;
    
    --text-dark: #161717;
    --text-light: #fffff7;
    --text-muted: rgba(255, 255, 247, 0.6);
    --text-muted-dark: rgba(255, 255, 247, 0.6);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-light);
}

.why-us .section-title {
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-accent {
    background-color: var(--accent-green);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(33, 192, 99, 0.3);
}

.btn-accent:hover {
    background-color: #1eb05a;
    box-shadow: 0 6px 20px rgba(33, 192, 99, 0.4);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(12, 18, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    color: var(--text-light);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--accent-green);
    font-size: 2rem;
}

.nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-light);
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-icon {
    color: var(--text-light);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--accent-green);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(22, 23, 23, 0.6), rgba(16, 62, 44, 0.7)), url('../img/head_fon.png') center top/cover no-repeat;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: var(--text-light);
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.services {
    padding: 120px 0;
    background-color: var(--bg-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(33, 192, 99, 0.03);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid rgba(33, 192, 99, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(33, 192, 99, 0.3);
    background-color: rgba(33, 192, 99, 0.05);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--accent-green);
    margin-bottom: 24px;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.service-desc {
    color: var(--text-muted);
}

/* Why Us */
.why-us {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0f0c 0%, var(--bg-dark) 100%);
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(16, 62, 44, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-green);
    box-shadow: 0 0 20px rgba(16, 62, 44, 0.2);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.reviews-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.reviews-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 5px;
    scroll-behavior: smooth;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 100%;
    max-width: 450px;
    background: rgba(33, 192, 99, 0.05);
    border: 1px solid rgba(33, 192, 99, 0.1);
    border-radius: 20px;
    padding: 30px;
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .review-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (min-width: 1024px) {
    .review-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(33, 192, 99, 0.3);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-green);
}

.review-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-rating {
    color: #ffb400;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    gap: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
}

.slider-btn {
    background: var(--bg-card);
    border: 1px solid rgba(33, 192, 99, 0.2);
    color: var(--accent-green);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--accent-green);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }
    .reviews {
        padding: 60px 0;
    }
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background-color: var(--bg-main);
}

.cta-box {
    background: linear-gradient(135deg, var(--brand-green) 0%, #0c2b1e 100%);
    border-radius: 20px;
    padding: 50px;
    color: var(--text-light);
    box-shadow: 0 20px 50px rgba(16, 62, 44, 0.25);
    display: flex;
    align-items: center;
    gap: 50px;
}

.cta-image {
    flex: 0 0 350px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cta-content {
    flex: 1;
    text-align: left;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-desc {
    font-size: 1.125rem;
    margin-bottom: 40px;
    color: var(--text-muted);
    max-width: 600px;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    padding: 60px 0 30px;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.copyright {
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-green);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }
.reveal.delay-400 { transition-delay: 0.4s; }

/* Modal Window */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 23, 23, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-container {
    margin: auto;
    padding: 40px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.modal-content {
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.close-modal:hover {
    color: var(--bg-dark);
    background: var(--accent-green);
}

.modal-title {
    color: var(--text-light);
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(33, 192, 99, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.form-group input[type="file"] {
    padding: 10px;
    color: var(--text-muted);
}

.form-group input[type="file"]::file-selector-button {
    background-color: var(--brand-green);
    color: var(--text-light);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: var(--accent-green);
    color: var(--bg-dark);
}

.mobile-socials {
    display: none;
}

/* Contact Method Group */
.contact-method-group {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: 8px;
}

.contact-method-option {
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.contact-method-option input[type="radio"] {
    display: none;
}

.method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.method-btn i {
    font-size: 1.2rem;
}

.contact-method-option input[type="radio"]:checked + .method-btn {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background-color: rgba(33, 192, 99, 0.05);
}

.contact-method-option:hover .method-btn {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.contact-method-option input[type="radio"]:checked:hover + .method-btn {
    border-color: var(--accent-green);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        padding-bottom: 80px;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .mobile-socials {
        display: flex;
        gap: 24px;
        margin-top: 40px;
    }

    .mobile-socials .social-icon {
        font-size: 2rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .header-actions {
        display: none; 
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .services {
        padding: 80px 0;
    }

    .why-us {
        padding: 80px 0;
    }

    .cta-section {
        padding: 80px 0;
    }

    .cta-box {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
    }

    .cta-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-content {
        text-align: center;
    }

    .cta-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Modal Mobile Optimization */
    .modal-container {
        padding: 20px 10px;
        align-items: flex-start; /* To avoid cut off at the top on small screens */
    }

    .modal-content {
        padding: 30px 20px 24px;
        border-radius: 12px;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        margin-top: 5px;
    }

    .close-modal {
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 24px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea,
    .form-group input[type="file"] {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .form-group textarea {
        height: 100px;
    }

    /* Адаптація фону шапки для мобільних пристроїв */
    .hero {
        background-position: 75% center !important;
    }
}
