@font-face {
    font-family: "e-Ukraine";
    src: url('fonts/e-Ukraine-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Базові змінні Google */
:root {
    --g-blue: #4285F4;
    --g-blue-dark: #1a73e8;
    --g-red: #EA4335;
    --g-yellow: #FBBC05;
    --g-green: #34A853;
    --text-dark: #202124;
    --text-gray: #5f6368;
    --bg-light: #f8f9fa;
    --border-gray: #dadce0;
    --font-heading: 'Google Sans', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

/* Навігація */
.top-nav {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-gray);
    background: #fff;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-left {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.logo {
    height: 24px;
    margin-right: 10px;
}

.h1-header {
    font-family: "e-Ukraine", sans-serif;
    font-size: clamp(16px, 2vw, 18px); /* Адаптивний логотип */
    color: #1a2335;
    margin: 0;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

.nav-links a.active {
    color: var(--g-blue-dark);
    border-bottom: 2px solid var(--g-blue-dark);
    padding-bottom: 14px;
}

/* Кнопки */
.btn-blue {
    display: inline-block;
    background-color: var(--g-blue-dark);
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-blue:hover {
    background-color: #174ea6;
}

.btn-light {
    background-color: #e8f0fe;
    color: var(--g-blue-dark);
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
}

/* Hero Section */
.hero-dark {
    background-color: #000;
    color: #fff;
    padding: 120px 5%;
    display: flex;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    max-width: 500px;
}

/* АДАПТИВНИЙ ГОЛОВНИЙ ЗАГОЛОВОК (від 36px на мобільних до 52px на ПК) */
.hero-text h1 {
    font-size: clamp(36px, 6vw, 52px);
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Імітація графіки в Hero */
.hero-visual {
    position: relative;
    width: 400px;
    height: 300px;
}

.shape-group {
    position: relative;
    width: 100%;
    height: 100%;
    animation: heroGroupFloat 12s ease-in-out infinite;
}

.pill-blue {
    position: absolute;
    width: 140px;
    height: 60px;
    background: var(--g-blue);
    border-radius: 30px;
    top: 40px;
    left: 20px;
    transform: rotate(-15deg);
    animation: pillDrift 5.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
}

.cross-red {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--g-red);
    clip-path: polygon(33% 0, 66% 0, 66% 33%, 100% 33%, 100% 66%, 66% 66%, 66% 100%, 33% 100%, 33% 66%, 0 66%, 0 33%, 33% 33%);
    top: 80px;
    right: 60px;
    transform: rotate(15deg);
    animation: crossSpinFloat 6.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
}

.circle-yellow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--g-yellow);
    border-radius: 50%;
    bottom: 50px;
    left: 100px;
    animation: circlePulseHop 4.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
}

@keyframes heroGroupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pillDrift {
    0%, 100% { transform: translate(0, 0) rotate(-15deg) scale(1); }
    35% { transform: translate(14px, -10px) rotate(-10deg) scale(1.04); }
    70% { transform: translate(-6px, 8px) rotate(-18deg) scale(0.98); }
}

@keyframes crossSpinFloat {
    0%, 100% { transform: translate(0, 0) rotate(15deg) scale(1); }
    30% { transform: translate(-10px, -8px) rotate(28deg) scale(1.05); }
    65% { transform: translate(8px, 10px) rotate(6deg) scale(0.96); }
}

@keyframes circlePulseHop {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(10px, -14px) scale(1.08); }
    75% { transform: translate(-8px, 6px) scale(0.95); }
}

/* --- Глобальні Анімації Появи --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.fade-up.visible {
    animation: fadeUpAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shape-group, .pill-blue, .cross-red, .circle-yellow { animation: none; }
}

/* --- Інтерактивна Роадмапа (Timeline) --- */
.timeline-section {
    padding: 100px 5%;
    background-color: var(--bg-light);
    overflow: hidden;
}

.timeline-header {
    text-align: center;
    margin-bottom: 80px;
}

/* АДАПТИВНИЙ ЗАГОЛОВОК РОАДМАПИ */
.timeline-header h2 {
    font-size: clamp(28px, 5vw, 40px);
    margin-bottom: 10px;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Центральна дорога */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    background: linear-gradient(to bottom, var(--g-blue), var(--g-red), var(--g-yellow), var(--g-green));
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

/* Круглі вузли на дорозі (Роки) */
.timeline-node {
    position: absolute;
    top: 20px;
    width: 84px;
    height: 84px;
    background: #fff;
    border: 4px solid var(--g-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(12px, 2vw, 14px); /* Адаптивний текст всередині кіл */
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    padding: 0 6px;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.timeline-node.node-green {
    background: var(--g-green);
    color: white;
    border-color: var(--g-green);
}

.node-subtitle {
    position: absolute;
    top: 110px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background-color: var(--bg-light);
    padding: 2px 8px;
    border-radius: 12px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-item.left .timeline-node { right: -42px; }
.timeline-item.right .timeline-node { left: -42px; }
.timeline-item.left .node-subtitle { right: -42px; transform: translateX(50%); }
.timeline-item.right .node-subtitle { left: -42px; transform: translateX(-50%); }

.timeline-item:nth-child(2) .timeline-node { border-color: var(--g-blue); }
.timeline-item:nth-child(3) .timeline-node { border-color: var(--g-red); }
.timeline-item:nth-child(4) .timeline-node { border-color: var(--g-yellow); }
.timeline-item:nth-child(5) .timeline-node { border-color: var(--g-green); }
.timeline-item:nth-child(6) .timeline-node { border-color: var(--g-blue); }

.timeline-item:hover .timeline-content {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: transparent;
}
.timeline-item:hover .timeline-node {
    transform: scale(1.2);
    color: #fff;
}

.timeline-item:nth-child(2):hover .timeline-node { background: var(--g-blue); box-shadow: 0 0 20px rgba(66, 133, 244, 0.4); }
.timeline-item:nth-child(3):hover .timeline-node { background: var(--g-red); box-shadow: 0 0 20px rgba(234, 67, 53, 0.4); }
.timeline-item:nth-child(4):hover .timeline-node { background: var(--g-yellow); box-shadow: 0 0 20px rgba(251, 188, 5, 0.5); color: var(--text-dark); }
.timeline-item:nth-child(5):hover .timeline-node { background: var(--g-green); box-shadow: 0 0 20px rgba(52, 168, 83, 0.4); }
.timeline-item:nth-child(6):hover .timeline-node { background: var(--g-blue); box-shadow: 0 0 20px rgba(66, 133, 244, 0.4); }
.timeline-item:nth-child(7):hover .timeline-node { background: #2b8b45; box-shadow: 0 0 25px rgba(52, 168, 83, 0.6); }

.timeline-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid var(--border-gray);
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0.8;
}

/* АДАПТИВНІ ЗАГОЛОВКИ КАРТОК РОАДМАПИ */
.timeline-content h3 {
    font-size: clamp(20px, 3.5vw, 24px);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.timeline-content p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.hover-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1; opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-item:hover .hover-shapes { opacity: 1; }
.h-shape { position: absolute; transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }

.h-pill-blue { width: 80px; height: 30px; background: var(--g-blue); border-radius: 15px; top: -40px; right: 10%; transform: rotate(0deg); }
.timeline-item:hover .h-pill-blue { top: 20px; transform: rotate(-25deg); }
.h-cross-red { width: 60px; height: 60px; background: var(--g-red); clip-path: polygon(33% 0, 66% 0, 66% 33%, 100% 33%, 100% 66%, 66% 66%, 66% 100%, 33% 100%, 33% 66%, 0 66%, 0 33%, 33% 33%); bottom: -60px; left: 10%; transform: rotate(0deg) scale(0.5); }
.timeline-item:hover .h-cross-red { bottom: 20px; transform: rotate(45deg) scale(1); }
.h-circle-yellow { width: 50px; height: 50px; background: var(--g-yellow); border-radius: 50%; top: 50%; right: -50px; transform: translateY(-50%) scale(0); }
.timeline-item:hover .h-circle-yellow { right: 20px; transform: translateY(-50%) scale(1); }

/* --- Feature Banner & Інші Блоки --- */
.feature-banner {
    background-color: var(--bg-light);
    padding: 80px 5%;
}

.feature-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-image { flex: 1; }

.server-mockup {
    width: 100%;
    height: 300px;
    background: #202124;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.server-mockup::after {
    content: ''; position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    background: repeating-linear-gradient(0deg, transparent, transparent 10px, #3c4043 10px, #3c4043 12px);
}

.feature-text { flex: 1; }

/* АДАПТИВНІ ЗАГОЛОВКИ БАНЕРІВ */
.feature-text h2 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 400;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.momentum-section {
    padding: 100px 5% 0;
    text-align: center;
    background-color: #fff;
}

.momentum-text {
    max-width: 700px;
    margin: 0 auto 60px;
}

/* АДАПТИВНИЙ ЗАГОЛОВОК ФІНАЛУ */
.momentum-text h2 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 400;
    margin-bottom: 20px;
}

.momentum-text p {
    font-size: clamp(16px, 3vw, 18px); /* Адаптивний текст-опис */
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter {
    background-color: var(--bg-light);
    padding: 60px 5%;
    display: flex;
    justify-content: center;
}

.newsletter-box {
    background: #f1f3f4;
    border-radius: 24px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nl-text h3 {
    font-size: clamp(20px, 4vw, 24px); /* Адаптивний текст */
    font-weight: 400;
    margin-bottom: 8px;
}

.nl-text p {
    color: var(--text-gray);
    font-size: 14px;
}

/* =========================================
   НОВІ СЕКЦІЇ (СЕРВІСИ ТА ТЕХНОЛОГІЇ)
========================================= */

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(28px, 5vw, 36px); /* Адаптивний заголовок */
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-title p {
    font-size: clamp(15px, 3vw, 18px); /* Адаптивний опис */
    color: var(--text-gray);
}

.services-section {
    padding: 100px 5%;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }

.border-blue { border-top: 4px solid var(--g-blue); }
.border-red { border-top: 4px solid var(--g-red); }
.border-yellow { border-top: 4px solid var(--g-yellow); }

.service-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}

.bg-light-blue { background-color: #e8f0fe; }
.bg-light-red { background-color: #fce8e6; }
.bg-light-yellow { background-color: #fef7e0; }

.service-card h3 {
    font-size: clamp(20px, 3.5vw, 22px); /* Адаптивний заголовок картки */
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray); line-height: 1.6; margin-bottom: 20px; flex-grow: 1;
}

.service-link { text-decoration: none; font-weight: 500; font-size: 15px; }
.blue-text { color: var(--g-blue-dark); }
.red-text { color: #d93025; }
.yellow-text { color: #ea8600; }
.service-link:hover { text-decoration: underline; }

.tech-section { padding: 100px 5%; background-color: var(--bg-light); }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; max-width: 1000px; margin: 0 auto;
}

.tech-item {
    background: #fff; border: 1px solid var(--border-gray);
    padding: 24px; border-radius: 12px; text-align: left;
}

.tech-item h4 {
    font-size: clamp(16px, 3vw, 18px); /* Адаптивний заголовок */
    margin-bottom: 8px; color: var(--text-dark);
}

.tech-item p { font-size: 14px; color: var(--text-gray); line-height: 1.5; }

/* --- Футер --- */
.site-footer {
    background: #fff; border-top: 1px solid var(--border-gray); padding: 40px 5% 20px;
}

.footer-content {
    max-width: 1200px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-gray); padding-bottom: 30px; margin-bottom: 20px;
}

.footer-logo { display: flex; align-items: center; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-gray); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text-dark); }
.footer-bottom { text-align: center; color: var(--text-gray); font-size: 12px; }

/* Плавний скрол */
html { scroll-behavior: smooth; }

/* =========================================
   МОБІЛЬНИЙ АПОКАЛІПСИС ВІДМІНЕНО (ФІКСИ)
========================================= */

@media (max-width: 900px) {
    .hero-container, .feature-container, .newsletter-box {
        flex-direction: column; text-align: center;
    }
    .hero-visual {
        margin-top: 40px; width: 100%; height: 250px; transform: scale(0.8);
    }
    .nl-text { margin-bottom: 20px; }
}

@media (max-width: 768px) {
    .top-nav { padding: 15px; }
    .nav-left { flex-direction: column; gap: 15px; width: 100%; }
    .header-left { margin-right: 0; justify-content: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

    /* Оскільки ми використовуємо clamp() для шрифтів, нам більше не потрібно 
       штучно зменшувати заголовки тут — браузер робить це автоматично! */
       
    .hero-dark { padding: 60px 5%; }
    .services-section, .tech-section, .momentum-section, .feature-banner, .newsletter, .timeline-section {
        padding: 60px 5%;
    }

    .timeline-line { left: 50px; }
    .timeline-item { width: 100%; padding-left: 110px; padding-right: 0; }
    .timeline-item.left, .timeline-item.right { left: 0; text-align: left; }
    
    .timeline-item.left .timeline-node, 
    .timeline-item.right .timeline-node { left: 8px; right: auto; }
    
    .timeline-item.left .node-subtitle, 
    .timeline-item.right .node-subtitle { left: 50px; right: auto; transform: translateX(-50%); }
    
    .timeline-content { transform: scale(1); opacity: 1; padding: 20px; }

    .services-grid, .tech-grid { grid-template-columns: 1fr; }

    .footer-content { flex-direction: column; gap: 20px; }
}