* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #7c3aed;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 900px;
    line-height: 1.8;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

/* Services Section */
.services {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Fancy bullets for service lists */
.service-card ul {
    list-style: none;
    margin: 0.75rem 0 0.5rem 0;
    padding-left: 0;
    display: grid;
    gap: 0.5rem;
}

.service-card li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Clients Section */
.clients {
    background-color: var(--bg-light);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.client-item {
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.client-item:hover {
    transform: translateX(5px);
}

.client-item h3 {
    font-size: 1.0rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.client-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.clients-note {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* Solutions Section */
.solutions {
    background-color: var(--bg-white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.solution-card {
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.solution-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.solution-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Tech Stack Section */
.tech {
    background-color: var(--bg-light);
}

.tech-content {
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: var(--bg-white);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    font-size: 1.1rem;
    color: var(--text-dark);
}

.tech-item strong {
    color: var(--primary-color);
    display: inline-block;
    min-width: 160px;
}

/* Why Us Section */
.why-us {
    background-color: var(--bg-white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.why-us-item {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative; /* для бейджа з номером */
}

.why-us-item:hover {
    transform: translateY(-5px);
    background-color: #f0f9ff;
}

.why-us-item h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.why-us-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Нумерація плиток 1-2-3 у кутку */
.why-us-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.why-us-item:nth-child(1)::after { content: '1'; }
.why-us-item:nth-child(2)::after { content: '2'; }
.why-us-item:nth-child(3)::after { content: '3'; }

.why-us-footer {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    border-radius: 12px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 1rem;
    padding: 8px;
    border-radius: 50%;
    background: radial-gradient(120% 120% at 30% 30%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 55%, rgba(255,255,255,0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.footer-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-tagline {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--bg-white);
}

.footer-contact {
    list-style: none;
    color: #d1d5db;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

/* Icon-only contacts */
.contact-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 0.75rem;
    align-items: center;
}

.contact-icons .contact-item {
    margin: 0; /* override spacing for icon grid */
}

.contact-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.09);
}

.contact-icon-btn:focus-visible {
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35), 0 10px 22px rgba(0, 0, 0, 0.34);
}

/* Tooltip */
.contact-icon-btn::after {
    content: attr(data-title);
    position: absolute;
    bottom: 58px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(17, 24, 39, 0.95);
    color: #f3f4f6;
    font-size: 12px;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 5;
}

.contact-icon-btn::before {
    content: '';
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: rgba(17, 24, 39, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transform-origin: center;
    rotate: 45deg;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 4;
}

.contact-icon-btn:hover::after,
.contact-icon-btn:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.contact-icon-btn:hover::before,
.contact-icon-btn:focus-visible::before {
    opacity: 1;
}

/* Subtle brand color accents on hover */
.contact-email:hover .contact-icon { color: #f59e0b; }
.contact-telegram:hover .contact-icon { color: #229ED9; }
.contact-viber:hover .contact-icon { color: #7360F2; }
.contact-instagram:hover .contact-icon { color: #ef4444; }
.contact-youtube:hover .contact-icon { color: #ff0000; }
.contact-phone:hover .contact-icon { color: #10B981; }

@media (hover: none) {
    /* On touch devices, keep buttons large and avoid tooltip popups */
    .contact-icon-btn::after,
    .contact-icon-btn::before { display: none; }
}

.contact-icon path {
    fill: currentColor;
}

.footer-contact .contact-item:hover .contact-icon {
    color: var(--bg-white);
}

/* Brand hover accents */
.footer-contact .contact-item.contact-telegram:hover .contact-icon {
    color: #229ED9; /* Telegram */
}

.footer-contact .contact-item.contact-viber:hover .contact-icon {
    color: #7360F2; /* Viber */
}

.footer-contact .contact-item.contact-youtube:hover .contact-icon {
    color: #FF0033; /* YouTube */
}

.footer-contact a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 60px 0;
        margin-top: 70px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .services-grid,
    .clients-grid,
    .solutions-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .tech-item strong {
        display: block;
        margin-bottom: 0.5rem;
        min-width: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card,
    .solution-card,
    .why-us-item {
        padding: 1.5rem;
    }
}
