:root {
    /* Random Palette: Cyber Slate */
    --primary-color: #1e293b;
    /* Slate 800 */
    --secondary-color: #334155;
    /* Slate 700 */
    --accent-color: #84cc16;
    /* Lime 500 - Fresh tech look */
    --text-color: #f8fafc;
    --text-dark: #0f172a;
    --bg-light: #f1f5f9;
    --bg-dark: #0f172a;

    --font-main: 'Space Grotesk', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--secondary-color);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a[href^="mailto:"],
.modal-content a {
    color: var(--accent-color);
    text-decoration: underline;
    display: inline-block;
}

a[href^="mailto:"]:hover,
.modal-content a:hover {
    color: #65a30d;
    transform: translateY(-2px);
    text-decoration-color: #65a30d;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

.btn--primary:hover {
    background-color: #65a30d;
    transform: translateY(-2px);
}

.btn--outline {
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn--outline:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.logo:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav__link {
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--accent-color);
}

/* Burger */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger:hover span {
    background-color: var(--accent-color);
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('img/hero-bg.jpg');
    /* Office abstract */
    background-size: cover;
    background-position: center;
    color: var(--text-color);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: default;
}

.badge:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Features */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.feature-card__icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Services (Masonry-ish Grid) */
.services {
    background-color: var(--bg-light);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: 20px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-item--large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-item--large {
    grid-column: span 1;
    background: var(--accent-color);
    color: var(--bg-dark);
}

@media(min-width: 768px) {
    .service-item--large {
        grid-column: span 2;
    }
}

.text-link {
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.text-link:hover {
    color: #65a30d;
    transform: translateY(-2px);
    text-decoration-color: #65a30d;
}

/* Reviews */
.reviews__wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.reviews__wrapper::-webkit-scrollbar {
    height: 8px;
}

.reviews__wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.reviews__wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.review-card {
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

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

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-color: #ddd;
}

.stars {
    color: #fbbf24;
}

/* Contact */
.contact {
    background-color: white;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact__info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact__info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1);
}

.form-group input:hover {
    border-color: var(--accent-color);
}

.form-message {
    margin-top: 15px;
    font-weight: 600;
    min-height: 24px;
}

.btn--full {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 60px 0 20px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.logo--footer {
    color: white;
    margin-bottom: 15px;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.logo--footer:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    transition: var(--transition);
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Components: Modals */
.btn--small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 15px;
    padding: 30px;
    position: absolute;
    display: none;
    flex-direction: column;
}

.modal.active {
    display: flex;
}

.modal-content {
    overflow-y: auto;
    padding-right: 10px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    transform: translateY(-2px) rotate(90deg);
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        transition: 0.3s;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .nav__link {
        font-size: 1.1rem;
        padding: 10px 20px;
        display: block;
    }

    .burger {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 2rem;
    }

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

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

/* Mobile Responsive (до 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header__container {
        height: 60px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo svg {
        width: 32px;
        height: 32px;
    }

    .nav {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .nav__link {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        height: 100vh;
        min-height: 600px;
    }

    .hero__content {
        max-width: 100%;
        padding: 0 15px;
    }

    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-bottom: 15px;
    }

    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

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

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section__title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    /* Features */
    .features__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px;
    }

    .feature-card__icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    /* Services */
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-item {
        padding: 30px;
        min-height: 200px;
    }

    .service-item--large {
        grid-column: span 1;
    }

    /* Reviews */
    .review-card {
        min-width: 280px;
        padding: 20px;
    }

    /* Contact */
    .contact__grid {
        gap: 30px;
    }

    .contact__info h3 {
        font-size: 1.25rem;
    }

    .contact__info p {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer__col {
        text-align: center;
    }

    .footer__col p[style] {
        white-space: normal !important;
        word-break: break-word;
    }

    /* Modal */
    .modal {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.25rem;
    }
}

/* Small Mobile (до 480px) */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 20px;
    }

    .service-item {
        padding: 25px;
        min-height: 180px;
    }

    .review-card {
        min-width: 260px;
        padding: 18px;
    }

    .contact__info h3 {
        font-size: 1.1rem;
    }

    .form-group input {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Large Desktop (більше 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero__title {
        font-size: 4rem;
    }

    .hero__subtitle {
        font-size: 1.3rem;
    }
}