/* Змінні */
:root {
    --primary-color: #140945;
    --secondary-color: #4f2a78;
    --secondary-color-mid: #74388d;
    --secondary-color-light: #59449f;
    --accent-color: #ffffff;
    --text-color: #ffffff;
    --light-text: #ffffff;
    --dark-bg: #140945;
    --light-bg: #f8f9fa;
    --glass-bg: rgba(118, 53, 147, 0.5);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --section-padding: 80px 0;
    --wave-color-1: rgba(116, 56, 141, 0.4);
    --wave-color-2: rgba(89, 68, 159, 0.3);
    --wave-color-3: rgba(138, 66, 173, 0.2);
    --wave-color-4: rgba(75, 0, 130, 0.25);
}

/* Загальні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark-bg) url('../images/low-poly-grid-haikei.svg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Альтернативний шлях до фонового зображення */
body.bg-fallback {
    background-image: url('/images/low-poly-grid-haikei.svg');
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Анімовані градієнтні хвилі */
.gradient-blob {
    display: none; /* Приховуємо, оскільки вони вже є у SVG */
}

/* Додаємо градієнтні хвилі */
.gradient-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0.2;
    border-radius: 45%;
    mix-blend-mode: soft-light;
    will-change: transform;
    transform: translateZ(0);
}

.wave-1 {
    background: radial-gradient(circle at center, var(--wave-color-1) 0%, transparent 70%);
    bottom: -100%;
    left: -50%;
    animation: wave 25s linear infinite, pulse 15s ease-in-out infinite;
}

.wave-2 {
    background: radial-gradient(circle at center, var(--wave-color-2) 0%, transparent 70%);
    bottom: -100%;
    right: -50%;
    animation: wave 20s linear infinite reverse, pulse 12s ease-in-out infinite 2s;
}

.wave-3 {
    background: radial-gradient(circle at center, var(--wave-color-3) 0%, transparent 70%);
    top: -100%;
    left: -50%;
    animation: wave 30s linear infinite, pulse 18s ease-in-out infinite 5s;
}

.wave-4 {
    background: radial-gradient(circle at center, var(--wave-color-4) 0%, transparent 70%);
    top: -100%;
    right: -50%;
    animation: wave 22s linear infinite reverse, pulse 20s ease-in-out infinite 8s;
}

@keyframes wave {
    0% {
        transform: rotate(0deg) translateZ(0);
    }
    100% {
        transform: rotate(360deg) translateZ(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1) translateZ(0);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05) translateZ(0);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -1;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--light-text);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

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

ul {
    list-style: none;
}

section {
    padding: var(--section-padding);
}

/* Скломорфізм */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px 0 var(--glass-shadow);
}

/* Кнопки */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #74388d, #59449f, #8a42ad);
    color: var(--light-text);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8a42ad, #74388d, #59449f);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Навігація */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(95, 60, 157, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(95, 60, 157, 0.95);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero секція */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 70px 0 30px;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    animation: fadeInDown 1s ease;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-section h1 {
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-section h1 span {
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-text {
    font-size: 1rem;
}

.hero-section .btn-primary {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

/* Про компанію */
.about-section {
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.about-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-mid));
    border-radius: var(--border-radius);
    padding: 30px;
    color: var(--light-text);
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    will-change: transform, opacity;
}

.about-card.animate {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.about-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 15px 35px 0 var(--glass-shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.about-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Чому саме ми */
.why-us-section {
    background: transparent;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-us-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-mid), var(--secondary-color-light));
    border-radius: var(--border-radius);
    padding: 30px;
    color: var(--light-text);
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border: 1px solid var(--accent-color);
    will-change: transform, opacity;
}

.why-us-card.animate {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.why-us-card:nth-child(1).animate {
    transition-delay: 0.1s;
}

.why-us-card:nth-child(2).animate {
    transition-delay: 0.3s;
}

.why-us-card:nth-child(3).animate {
    transition-delay: 0.5s;
}

.why-us-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 15px 35px 0 var(--glass-shadow);
}

.why-us-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Як ми працюємо */
.process-section {
    background: transparent;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-number {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    z-index: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.timeline-content {
    width: calc(50% - 50px);
    padding: 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-mid), var(--secondary-color-light));
    border-radius: var(--border-radius);
    color: var(--light-text);
    position: relative;
    z-index: 1;
    border: 1px solid var(--accent-color);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50px;
    margin-left: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    text-align: left;
}

/* Наші послуги */
.services-section {
    background: transparent;
}

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

.service-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-mid), var(--secondary-color-light));
    border-radius: var(--border-radius);
    padding: 30px;
    color: var(--light-text);
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border: 1px solid var(--accent-color);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1).animate { transition-delay: 0.1s; }
.service-card:nth-child(2).animate { transition-delay: 0.2s; }
.service-card:nth-child(3).animate { transition-delay: 0.3s; }
.service-card:nth-child(4).animate { transition-delay: 0.4s; }
.service-card:nth-child(5).animate { transition-delay: 0.5s; }
.service-card:nth-child(6).animate { transition-delay: 0.6s; }

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px 0 var(--glass-shadow);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Які вакансії ми закриваємо */
.vacancies-section {
    background: transparent;
}

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

.accordion-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-mid), var(--secondary-color-light));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--light-text);
    position: relative;
    z-index: 1;
}

.accordion-header h3 {
    margin: 0;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.accordion-content {
    background: rgba(118, 53, 147, 0.3);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-content ul {
    padding: 20px;
    color: var(--light-text);
}

.accordion-content li {
    margin-bottom: 10px;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
}

.accordion-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* Наша команда */
.team-section {
    background: transparent;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-mid), var(--secondary-color-light));
    border-radius: var(--border-radius);
    padding: 30px;
    color: var(--light-text);
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border: 1px solid var(--accent-color);
}

.team-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.team-card:nth-child(1).animate { transition-delay: 0.1s; }
.team-card:nth-child(2).animate { transition-delay: 0.3s; }
.team-card:nth-child(3).animate { transition-delay: 0.5s; }

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px 0 var(--glass-shadow);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--accent-color);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card .position {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--accent-color);
}

.team-card blockquote {
    font-style: italic;
    margin-top: 20px;
    padding: 10px;
    border-left: 3px solid var(--accent-color);
    text-align: left;
}

/* Відгуки клієнтів */
.testimonials-section {
    background: transparent;
}

.testimonials-carousel {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-mid), var(--secondary-color-light));
    border-radius: var(--border-radius);
    padding: 40px 30px;
    color: var(--light-text);
    position: relative;
    z-index: 1;
    min-width: 100%;
    min-height: 400px;
    box-sizing: border-box;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.testimonial-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px 0 var(--glass-shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.testimonial-card:nth-child(1).animate { transition-delay: 0.1s; }
.testimonial-card:nth-child(2).animate { transition-delay: 0.2s; }
.testimonial-card:nth-child(3).animate { transition-delay: 0.3s; }

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-card::after {
    content: '\f10e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.testimonial-content {
    margin-bottom: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-author {
    position: relative;
    padding-top: 20px;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.testimonial-author h4 {
    margin-bottom: 5px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.carousel-control {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 10px;
    transition: var(--transition);
}

.carousel-control:hover {
    background: var(--primary-color-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Контактна форма */
.contact-section {
    background: transparent;
    padding-top: 60px;
}

.contact-intro {
    text-align: center;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    color: var(--light-text);
    animation: fadeIn 1s ease;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: span 2;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--light-text);
    font-size: 1rem;
}

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

.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(118, 53, 147, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--light-text);
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 35px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 5px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff6b6b;
}

.social-links {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.social-links h3 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 2.5rem;
    color: var(--light-text);
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.social-icon {
    flex: 1;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-mid), var(--secondary-color-light));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--light-text);
    transition: var(--transition);
    padding: 0 20px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.social-icon i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: linear-gradient(135deg, #8a42ad, #74388d, #59449f);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Футер */
footer {
    background: rgba(20, 9, 69, 0.95);
    padding: 40px 0;
    color: var(--light-text);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-social {
    margin: 20px 0;
    display: flex;
    gap: 15px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-mid), var(--secondary-color-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--light-text);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #8a42ad, #74388d, #59449f);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Анімації */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Стилі для повідомлення про успішну відправку */
.message-popup {
    animation: fadeInDown 0.5s ease;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
    width: auto;
}

/* Адаптивність */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-grid,
    .services-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(95, 60, 157, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-number {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-right: 0;
        text-align: left;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 80px 0 40px;
        min-height: 100vh;
    }
    
    .contact-section {
        padding-top: var(--section-padding);
    }
    
    .hero-logo {
        width: 120px;
        height: 120px;
        margin: 0 auto 20px;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .social-icons {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-icon {
        width: 100%;
        justify-content: center;
    }
    
    .testimonial-card {
        min-height: 350px;
        padding: 30px 20px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .testimonial-card::before,
    .testimonial-card::after {
        font-size: 1.5rem;
    }
    
    .social-links h3 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .social-icon {
        height: 60px;
        justify-content: center;
    }
    
    .ticker-wrapper {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .ticker {
        padding: 10px 0;
    }
    
    .ticker-item {
        padding: 0 15px;
        font-size: 0.9rem;
    }
    
    .ticker-wrapper::before,
    .ticker-wrapper::after {
        width: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-grid,
    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card.featured {
        transform: scale(1);
    }
    
    .hero-section {
        padding: 70px 0 30px;
        min-height: auto;
    }
    
    .hero-logo {
        width: 100px;
        height: 100px;
        margin: 0 auto 15px;
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .stats {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-text {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .social-links h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .social-icon {
        height: 60px;
        font-size: 0.9rem;
    }
    
    .social-icon i {
        font-size: 1.1rem;
    }
    
    .testimonial-card {
        min-height: 300px;
        padding: 25px 15px;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .testimonial-author h4 {
        font-size: 1.1rem;
    }
    
    .testimonial-author p {
        font-size: 0.85rem;
    }
    
    .testimonial-card::before,
    .testimonial-card::after {
        font-size: 1.2rem;
    }
    
    .footer-social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .ticker-wrapper {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .ticker {
        padding: 8px 0;
    }
    
    .ticker-item {
        padding: 0 10px;
        font-size: 0.8rem;
    }
    
    .ticker-wrapper::before,
    .ticker-wrapper::after {
        width: 20px;
    }
}

/* Кнопки швидкої навігації */
.quick-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.quick-nav-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quick-nav-btn::before {
    content: none;
}

.quick-nav-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background: var(--primary-color-light);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.quick-nav-btn.to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.quick-nav-btn.to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Стилі для телефонного інпута */
.iti {
    width: 100%;
    display: block;
}

.iti__flag-container {
    z-index: 10;
}

.iti__country-list {
    background-color: rgba(118, 53, 147, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--light-text);
    max-height: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.iti__country {
    padding: 8px 10px;
    transition: var(--transition);
}

.iti__country:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.iti__country.iti__active {
    background-color: rgba(255, 255, 255, 0.2);
}

.iti__country-name, 
.iti__dial-code {
    color: var(--light-text);
}

.iti__selected-flag {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px 0 0 5px;
}

/* Бігуча стрічка з вакансіями */
.ticker-wrapper {
    width: 100vw;
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color-mid), var(--primary-color));
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
}

.ticker-wrapper::before,
.ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
}

.ticker-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.ticker-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--primary-color), transparent);
}

.ticker {
    display: flex;
    white-space: nowrap;
    padding: 12px 0;
    position: relative;
    flex: 1;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
    color: var(--light-text);
    font-weight: 500;
    position: relative;
}

.ticker-item::after {
    content: '•';
    position: absolute;
    right: 0;
    color: rgba(255, 255, 255, 0.5);
}

.ticker-item:last-child::after {
    content: '';
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Адаптивність для бігучої стрічки */
@media (max-width: 768px) {
    .ticker-wrapper {
        margin-top: 80px;
        margin-bottom: 80px;
    }
    
    .ticker {
        padding: 10px 0;
    }
    
    .ticker-item {
        padding: 0 15px;
        font-size: 0.9rem;
    }
    
    .ticker-wrapper::before,
    .ticker-wrapper::after {
        width: 30px;
    }
}

@media (max-width: 576px) {
    .ticker-wrapper {
        margin-top: 60px;
        margin-bottom: 60px;
    }
    
    .ticker {
        padding: 8px 0;
    }
    
    .ticker-item {
        padding: 0 10px;
        font-size: 0.8rem;
    }
    
    .ticker-wrapper::before,
    .ticker-wrapper::after {
        width: 20px;
    }
}

/* Анімовані картки переваг */
.advantages-cards {
    position: relative;
    width: 100%;
    height: 350px;
    margin: 0 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.advantage-card {
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    backdrop-filter: blur(5px);
    will-change: transform, opacity;
}

.advantage-card.animate {
    opacity: 1;
    animation: card-breathing 4s infinite ease-in-out;
    transform: translateZ(0);
}

@keyframes card-breathing {
    0%, 100% {
        transform: scale(1) translateZ(0);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.03) translateZ(0);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }
}

/* Нове розташування карток */
/* Ліва сторона */
.advantage-card:nth-child(2) { /* Експертиза */
    top: 10%;
    left: 15%;
}

.advantage-card:nth-child(5) { /* Міжнародний */
    bottom: 15%;
    left: 15%;
}

/* Центр */
.advantage-card:nth-child(4) { /* 15+ років */
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
}

/* Права сторона */
.advantage-card:nth-child(3) { /* 98% */
    top: 15%;
    right: 5%;
}

.advantage-card:nth-child(1) { /* 500+ */
    bottom: 10%;
    right: 35%;
}

.advantage-card .icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: inline-block;
}

.advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.advantage-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    z-index: -1;
}

/* Анімовані лінії з'єднання */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.connection-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    height: 2px;
    animation: pulse-line 3s infinite ease-in-out;
}

/* Оновлені лінії з'єднання для нового розташування */
.connection-line:nth-child(1) {
    width: 30%;
    top: 25%;
    left: 25%;
    transform: rotate(25deg);
    animation-delay: 0.5s;
}

.connection-line:nth-child(2) {
    width: 30%;
    top: 30%;
    right: 25%;
    transform: rotate(-25deg);
    animation-delay: 1s;
}

.connection-line:nth-child(3) {
    width: 25%;
    bottom: 35%;
    left: 30%;
    transform: rotate(-20deg);
    animation-delay: 1.5s;
}

.connection-line:nth-child(4) {
    width: 25%;
    bottom: 30%;
    right: 30%;
    transform: rotate(20deg);
    animation-delay: 2s;
}

@keyframes pulse-line {
    0%, 100% {
        opacity: 0.2;
        box-shadow: 0 0 5px var(--accent-color);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 15px var(--accent-color);
    }
}

/* Адаптивність для анімованих карток */
@media (max-width: 992px) {
    .advantages-cards {
        height: 400px;
    }
    
    .advantage-card {
        width: 160px;
    }
    
    .advantage-card:nth-child(1) {
        top: 5%;
        left: 2%;
    }
    
    .advantage-card:nth-child(2) {
        top: 5%;
        right: 2%;
    }
    
    .advantage-card:nth-child(3) {
        bottom: 5%;
        left: 5%;
    }
    
    .advantage-card:nth-child(4) {
        bottom: 5%;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .advantages-cards {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 20px 0 30px;
    }
    
    .advantage-card {
        position: relative;
        width: 80%;
        max-width: 250px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 5px 0;
        opacity: 1;
        animation: card-breathing-mobile 4s infinite ease-in-out;
    }
    
    @keyframes card-breathing-mobile {
        0%, 100% {
            transform: scale(1) !important;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        50% {
            transform: scale(1.03) !important;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        }
    }
    
    .connection-lines {
        display: none;
    }
} 