/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #156bc0;
    --primary-dark: #0f5599;
    --primary-light: #18c7e4;
    --secondary-color: #2c3e50;
    --text-color: #4a5568;
    --text-light: #6c757d;
    --bg-light: #fafcff;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 24px;
    --header-height: 80px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--secondary-color);
    line-height: 1.5;
    scroll-behavior: smooth;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 3px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 90px 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 107, 192, 0.2);
}

.btn-primary i {
    transition: transform 0.2s;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Кнопка для слайдера */
.btn-slider {
    background: var(--primary-color);
    color: white;
    padding: 14px 36px;
    font-size: 1.05rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-slider:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(21, 107, 192, 0.4);
}

.btn-slider:hover i {
    transform: translateX(5px);
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: var(--header-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
    transition: transform 0.2s;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.logo-text {
    line-height: 1.2;
}

.logo-text strong {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.logo-sub {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--secondary-color);
    border-radius: 2px;
    left: 0;
    transition: 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
}

.menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.nav-links-full {
    list-style: none;
    text-align: center;
    padding: 0;
}

.nav-links-full li {
    margin: 1.5rem 0;
}

.nav-links-full a {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-links-full a:hover,
.nav-links-full a.active {
    color: var(--primary-color);
}

/* Main content - відступ для фіксованого header */
.main-content {
    margin-top: var(--header-height);
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs-section {
    background: var(--bg-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.breadcrumbs-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
}

.breadcrumbs-item:not(:last-child):after {
    content: '›';
    margin-left: 8px;
    color: var(--primary-light);
    font-size: 1.1rem;
}

.breadcrumbs-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs-link i {
    font-size: 0.75rem;
    color: var(--primary-color);
}

.breadcrumbs-link:hover {
    color: var(--primary-color);
}

.breadcrumbs-current {
    color: var(--primary-color);
    font-weight: 500;
}

/* ============================================
   Hero Slider
   ============================================ */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.swiper-button-next, 
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background: rgba(21, 107, 192, 0.8);
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--primary-light);
    opacity: 1;
}

/* ============================================
   Direction Hero (для сторінок напрямків)
   ============================================ */
.direction-hero {
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 50px 0 60px;
    position: relative;
    overflow: hidden;
}

.direction-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(15deg);
}

.direction-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.direction-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.direction-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* ============================================
   Direction Detail (для сторінки напрямків)
   ============================================ */
.direction-detail {
    scroll-margin-top: 100px;
}

.direction-detail:nth-child(even) {
    background: var(--bg-light);
}

.direction-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

.direction-detail-info {
    flex: 1;
}

.direction-detail-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.direction-detail-info h2:after {
    width: 50px;
}

.direction-detail-info p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.direction-features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.direction-features-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.direction-features-list i {
    color: var(--primary-light);
    font-size: 1.2rem;
    width: 24px;
}

.direction-detail-image {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.direction-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.direction-detail-image:hover img {
    transform: scale(1.05);
}

/* ============================================
   Tech Specs
   ============================================ */
.tech-specs {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.tech-specs h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}

.spec-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 16px;
    transition: var(--transition);
}

.spec-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.spec-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.spec-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.spec-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
    font-weight: 700;
}

/* ============================================
   Directions Grid (головна сторінка)
   ============================================ */
.directions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.direction-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 280px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.direction-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.direction-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s ease;
}

.direction-card:hover .direction-icon {
    transform: scale(1.1) rotate(5deg);
}

.direction-features {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
}

.direction-features li {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.direction-features i {
    color: var(--primary-light);
    margin-right: 8px;
    width: 20px;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 16px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Advantages Grid
   ============================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.advantage {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.advantage:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    margin-bottom: 1rem;
}

.advantage-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(21, 107, 192, 0.1);
    padding: 1rem;
    border-radius: 60px;
    transition: var(--transition);
}

.advantage:hover .advantage-icon i {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ============================================
   Steps
   ============================================ */
.steps-section {
    background: var(--bg-light);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    min-width: 200px;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 1.5rem;
}

/* ============================================
   Process Steps (для сторінок напрямків)
   ============================================ */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.process-step:not(:last-child):after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.process-step .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-color);
    font-size: 0.85rem;
}

/* ============================================
   Projects Section
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-header-left {
    flex: 1;
}

.section-header-left h2 {
    margin-bottom: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 107, 192, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.project-img:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.project-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.project-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.project-gallery-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-gallery-btn:hover {
    background: var(--primary-color);
    color: white;
}

.projects-view-all-mobile {
    display: none;
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   Filter Buttons (для сторінки проєктів)
   ============================================ */
.filter-section {
    padding: 40px 0 30px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ============================================
   Page Header (для внутрішніх сторінок)
   ============================================ */
.page-header {
    padding: 60px 0 50px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: fit-content;
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.2s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.2rem;
}

/* ============================================
   Contact Section
   ============================================ */
#contact {
    background: var(--bg-light);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    background: var(--bg-white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.contact-details {
    margin: 1.5rem 0;
}

.contact-details p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-details i {
    width: 24px;
    color: var(--primary-color);
}

.contact-details a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(21, 107, 192, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-icons a:hover i {
    color: white;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 16px;
    color: var(--primary-color);
    font-size: 1rem;
    pointer-events: none;
}

.input-icon input,
.input-icon textarea {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
    font-size: 0.95rem;
}

.input-icon textarea {
    border-radius: 12px;
    resize: vertical;
    min-height: 100px;
}

.input-icon input:focus,
.input-icon textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 107, 192, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section h2:after {
    background: white;
    left: 50%;
    transform: translateX(-50%);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    text-align: center;
}

.footer-logo .logo-img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   Gallery Modal
   ============================================ */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.2s;
}

.gallery-close:hover {
    transform: scale(1.1);
    color: var(--primary-light);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-main {
    max-width: 90%;
    max-height: 70vh;
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-main img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    max-width: 90%;
    overflow-x: auto;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ============================================
   No Results Message
   ============================================ */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    grid-column: 1 / -1;
}

.no-results-message i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.no-results-message p {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* ============================================
   Animations
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    h2 {
        font-size: 2rem;
        text-align: center;
        display: block;
    }
    
    h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .section-subtitle {
        text-align: center;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .logo-text {
        display: none;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .direction-hero h1 {
        font-size: 2.2rem;
    }
    
    .direction-detail-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .direction-detail-info h2 {
        text-align: center;
    }
    
    .direction-detail-info h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .specs-grid {
        gap: 1rem;
    }
    
    .process-step:not(:last-child):after {
        display: none;
    }
    
    .faq-grid {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links-full a {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-slider {
        height: 80vh;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .direction-hero {
        padding: 40px 0;
    }
    
    .direction-hero h1 {
        font-size: 1.8rem;
    }
    
    .direction-hero p {
        font-size: 1rem;
    }
    
    .specs-grid {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .spec-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 0.8rem 1rem;
    }
    
    .spec-item i {
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-view-all-mobile {
        display: block;
    }
    
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-wrapper {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
    
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .filter-section {
        padding: 30px 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .hero-slider {
        height: 70vh;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .direction-hero h1 {
        font-size: 1.5rem;
    }
    
    .breadcrumbs-item {
        font-size: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .faq-question {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* Direction card button */
.direction-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.direction-card .direction-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.direction-btn {
    margin-top: auto;
    align-self: flex-start;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.direction-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.direction-btn i {
    transition: transform 0.2s;
}

.direction-btn:hover i {
    transform: translateX(4px);
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .direction-btn {
        width: 100%;
        justify-content: center;
    }
}