/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #154381;
    --primary-hover: #0f3469;
    --secondary-color: #2980b9;
    --accent-color: #3498db;
    --light-blue: #eaf4f9;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --grey-light: #f8f9fa;
    --grey-medium: #dee2e6;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --shadow: 0 2px 10px rgba(21, 67, 129, 0.1);
    --shadow-hover: 0 5px 25px rgba(21, 67, 129, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
}

.animate-fade-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.animate-title {
    transform: translateY(20px);
    transition-delay: 0.1s;
}

.animate-on-scroll.animate-text {
    transform: translateY(25px);
    transition-delay: 0.3s;
}

.animate-on-scroll.animate-button {
    transform: translateY(30px);
    transition-delay: 0.5s;
}

.animate-on-scroll.animate-image {
    transform: translateY(20px) scale(0.95);
    transition-delay: 0.2s;
}

.animate-on-scroll.animate-left {
    transform: translateX(-30px);
    transition-delay: 0.2s;
}

.animate-on-scroll.animate-right {
    transform: translateX(30px);
    transition-delay: 0.2s;
}

.animate-on-scroll.animate-fade {
    opacity: 0;
    transition-delay: 0.1s;
}

.animate-on-scroll.animate-scale {
    transform: scale(0.9);
    transition-delay: 0.1s;
}

.animate-on-scroll.animate-stagger-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.animate-stagger-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.animate-stagger-3 {
    transition-delay: 0.3s;
}

.animate-on-scroll.animate-stagger-4 {
    transition-delay: 0.4s;
}

.animate-on-scroll.animate-stagger-5 {
    transition-delay: 0.5s;
}

.animate-on-scroll.animate-stagger-6 {
    transition-delay: 0.6s;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Reset transition delays after animation complete for faster hover effects */
.animate-on-scroll.animation-complete {
    transition-delay: 0s !important;
}

/* Pulse animation for CTA button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(21, 67, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(21, 67, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(21, 67, 129, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Roboto Condensed', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    line-height: 1;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Roboto Condensed', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-big {
    padding: 12px 24px;
    line-height: 1.2;
    width: 100%;
}

/* Ripple Effect Styles (оригинальные) */
.has-ripple {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0,0,0);
    -o-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}
.ripple {
    display: block;
    position: absolute;
    pointer-events: none;
    border-radius: 50%;

    -webkit-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);

    background: #fff;
    opacity: 1;
}
.ripple-animate {
    -webkit-animation: ripple;
    -o-animation: ripple;
    animation: ripple;
}
@-webkit-keyframes ripple {
    100% {
        opacity: 0;
        -webkit-transform: scale(2);
        transform: scale(2);
    }
}
@-o-keyframes ripple {
    100% {
        opacity: 0;
        -o-transform: scale(2);
        transform: scale(2);
    }
}
@keyframes ripple {
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/* Специальные стили для разных типов кнопок */
.btn-primary .ripple {
    background: rgba(255, 255, 255, 0.5);
}

.btn-secondary .ripple {
    background: rgba(21, 67, 129, 0.4);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title-projects {
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto 0;
}

/* Process arrows */
.process-arrow {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
    align-self: flex-start;
    margin-top: 35px;
    flex-shrink: 0;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; /* для правильного позиционирования мега-меню */
}


.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
}

.logo span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list > li {
    position: relative;
}

.nav-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-list a:hover {
    color: var(--primary-color);
}

/* Стрелки dropdown меню */
.has-megamenu > a::after,
.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='currentColor' d='M12 15l-4.243-4.243 1.415-1.414L12 12.172l2.828-2.829 1.415 1.414z'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

/* Стрелки submenu */
.has-submenu > a::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 0.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%237f8c8d' d='M12 15l-4.243-4.243 1.415-1.414L12 12.172l2.828-2.829 1.415 1.414z'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    transform: rotate(-90deg);
}

/* Megamenu */
.megamenu {
    position: fixed;
    top: 88px; /* высота header */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 40px);
    max-width: 1200px;
    background: var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.has-megamenu:hover .megamenu,
.megamenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Создаем невидимый мостик между меню и мега-меню */
.has-megamenu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 50px;
    background: transparent;
    z-index: 998;
}

.has-megamenu:hover::after {
    display: block;
}

.has-megamenu:hover > a::after {
    transform: rotate(180deg);
}

.megamenu-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 300px;
    gap: 2rem;
    padding: 2rem;
}

.megamenu-column h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.megamenu-column ul {
    list-style: none;
}

.megamenu-column li {
    margin-bottom: 0.5rem;
}

.megamenu-column a {
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0.3rem 0;
    transition: var(--transition);
    white-space: nowrap;
    width: fit-content;
    position: relative;
}

.megamenu-column a:hover {
    color: var(--primary-color);
}

.megamenu-banner {
    background: var(--light-blue);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.megamenu-banner h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.megamenu-banner p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Dropdown menu */
.dropdown {
    position: fixed;
    top: 0; /* будет установлено через JS */
    left: 0; /* будет установлено через JS */
    min-width: 200px;
    background: var(--white);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.has-dropdown:hover > .dropdown,
.dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Создаем невидимый мостик между меню и дропдауном */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 50px;
    background: transparent;
    z-index: 998;
}

.has-dropdown:hover::after {
    display: block;
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown li {
    position: relative;
    white-space: nowrap;
}

.dropdown a {
    padding: 0.8rem 1.2rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--grey-medium);
    font-size: 0.95rem;
    display: block;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.dropdown a:hover {
    background: var(--light-blue);
    color: var(--primary-color);
}

.dropdown li:last-child > a {
    border-bottom: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.dropdown li:first-child > a {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Submenu */
.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: var(--white);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.has-submenu:hover > .submenu,
.submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.has-submenu:hover > a::after {
    transform: rotate(90deg);
}

.submenu a {
    padding: 0.8rem 1.2rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--grey-medium);
    font-size: 0.9rem;
}

.submenu a:hover {
    background: var(--light-blue);
    color: var(--primary-color);
}

.submenu li:first-child > a {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.submenu li:last-child > a {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.submenu li:last-child a {
    border-bottom: none;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-contacts-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}


.phone a, .email a{
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    text-decoration: none;
    color: var(--primary-color);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    position: relative;
}

.underline_animation {
    position: relative;
}

.underline_animation::after{
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: var(--transition);
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
}

.underline_animation:hover::after{
    width: 100%;
}





.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 10000;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Блокировка скролла при открытом мобильном меню */
body.mobile-menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
}

.hero-slider .swiper-slide {
    /*height: 600px;*/
    height: calc(100vh - 88px);
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 67, 129, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero .swiper-button-prev,
.hero .swiper-button-next {
    color: var(--white);
}



.hero .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
    margin: 0 4px !important;
}

.hero .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    border-color: var(--white) !important;
    transform: scale(1.2);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--grey-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    list-style: none;
    margin: 2rem 0;
}

.about-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-light);
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}



/* Стили для figure и подписи к изображению */
.about-image figure {
    margin: 0;
}

.about-image figure img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
}

figcaption {
    margin-top: 0.8rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    font-style: italic;
}

figcaption strong {
    color: var(--text-dark);
    font-weight: 600;
    font-style: normal;
}

/* Services Section */
.services {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
    text-align: center;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: var(--grey-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
}

.project-images {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-slider {
    height: 100%;
    position: relative;
}

.project-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Улучшенная пагинация для проектов */
.project-slider .swiper-pagination {
    bottom: 15px !important;
    position: absolute;
    z-index: 10;
}

.project-slider .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
    margin: 0 4px !important;
}

.project-slider .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    border-color: var(--white) !important;
    transform: scale(1.2);
}

/* Навигационные стрелки для проектов */
.project-slider .swiper-button-next,
.project-slider .swiper-button-prev {
    width: 35px !important;
    height: 35px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    color: var(--primary-color) !important;
}

.project-slider .swiper-button-next:after,
.project-slider .swiper-button-prev:after {
    font-size: 14px !important;
    font-weight: bold;
}

.project-images:hover .swiper-button-next,
.project-images:hover .swiper-button-prev {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
}

.project-slider .swiper-button-next:hover,
.project-slider .swiper-button-prev:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    transform: scale(1.1) !important;
}

.project-slider .swiper-button-next {
    right: 10px !important;
}

.project-slider .swiper-button-prev {
    left: 10px !important;
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.project-info-bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.project-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.project-date svg {
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}


.projects-more {
    text-align: center;
}

.project-link{
    width: 100%;
}

/* News and Articles Section */
.news-articles {
    padding: 5rem 0;
    background: var(--grey-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-date svg {
    color: var(--primary-color);
}

.news-author {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-author svg {
    color: var(--primary-color);
}

.news-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.news-tags .tag {
    background: var(--light-blue);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-content h3 a.news-title {
    color: var(--text-dark);
    text-decoration: none;
}

.news-content h3 a.news-title:hover {
    color: var(--primary-color);
}

.news-preview {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    text-overflow: ellipsis;
    margin-top: auto;
}

.news-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 10px 16px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.news-link:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Stats Section */
.stats {
    padding: 5rem 0;
    background: var(--white);
    color: var(--text-dark);
}

.stats .section-title {
    color: var(--primary-color);
}

.stats .section-title::after {
    background: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number,
.stat-number-complex {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
    overflow: hidden;
    height: 4rem;
}

.stat-number-complex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.digit {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    overflow: hidden;
    height: 4rem;
    display: inline-block;
    position: relative;
}

.separator {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.4;
}

/* Барабанная анимация для цифр */
.digit-roller {
    display: inline-block;
    overflow: hidden;
    height: 4rem;
    position: relative;
}

.digit-numbers {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
}

.digit-numbers div {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Work Process Section */
.work-process {
    padding: 5rem 0;
    background: var(--white);
}

.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.process-timeline-second {
    margin-bottom: 0;
}

.process-item {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.process-item:hover .process-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.process-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Certificates Section */
.certificates {
    padding: 5rem 0;
    background: var(--grey-light);
}

.certificates-slider .swiper-slide {
    height: 500px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grey-light);
}

.certificates-slider .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.certificates-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.certificates-slider img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Partners Section */
.partners {
    padding: 5rem 0;
}

.partners-slider .swiper-slide {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-slider img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.partners-slider img:hover {
    filter: grayscale(0%);
}

/* Contact Form Section */
.contact-form {
    padding: 5rem 0;
    background: var(--light-blue);
}

.form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.form-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-benefits {
    list-style: none;
    margin: 2rem 0;
}

.form-benefits li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-light);
}

.form-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.contact-form-main {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--grey-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

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

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

.form-privacy {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
}

.form-privacy a {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer h4 {
    margin-bottom: 1rem;
    color: var(--white);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.contact-item strong {
    color: var(--white);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}



.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p{
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    scrollbar-gutter: stable;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prevent layout shift when hiding scrollbar */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.large {
    max-width: 800px;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-form .form-group {
    margin-bottom: 1rem;
}

.modal-text h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.modal-text ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.modal-text li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .process-item {
        max-width: 300px;
    }
    
    /* Responsive для новой компоновки project2.html на планшетах */
    .project-services-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Скрываем десктопное меню на мобильных */
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-contacts .btn {
        display: none;
    }

    /* Скрываем номер телефона в шапке на мобильных */
    .header-contacts .phone {
        display: none;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Адаптивные стили для подписи к изображению */
    figcaption {
        margin-top: 0.6rem;
        font-size: 0.85rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 180px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
        gap: 1.5rem;
    }

    .process-arrow {
        display: none;
    }

    .process-item {
        max-width: 100%;
    }

    .form-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .phone {
        font-size: 1rem;
    }

    .header {
        padding: 0.5rem 0;
    }


    .hero-slider .swiper-slide {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 150px;
    }
}

/* Swiper Custom Styles */
/* Общие стили для стрелок - скрыты по умолчанию */
.swiper-button-prev,
.swiper-button-next {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Для hero слайдера */
.hero .swiper-button-prev,
.hero .swiper-button-next {
    color: var(--white);
}

.hero:hover .swiper-button-prev,
.hero:hover .swiper-button-next {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Показываем кнопки навигации при наведении на другие слайдеры */
.certificates:hover .swiper-button-prev,
.certificates:hover .swiper-button-next,
.partners:hover .swiper-button-prev,
.partners:hover .swiper-button-next {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Fancybox Custom Styles */
.fancybox__container {
    --fancybox-bg: rgba(21, 67, 129, 0.9);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top: 2px solid transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
} 

/* Additional smooth animations and improvements */
.process-item {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

/* Animation delays removed to prevent hover effect conflicts */ 

/* Map Section */
.map-section {
    padding: 0;
    background: var(--white);
}

.map-header {
    padding: 3rem 0 2rem;
    text-align: center;
}

.map-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.yandex-map {
    width: 100%;
    height: 500px;
    border: none;
}

/* Map info panel */
.map-info-panel {
    position: absolute;
    left: 55%;
    top: 50%;
    transform: translateY(-55%);
    z-index: 2000;
    width: 380px;
    max-width: 90vw;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 20px 24px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .28s ease;
}

.map-info-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%);
}

/* Состояние скрытия при смене объекта */
.map-info-panel.leaving {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-45%);
}

.map-info-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #111827;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.map-info-close:hover {
    background: #e5e7eb;
}

.map-info-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 28px;
    line-height: 1.3;
}

.map-info-date {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
}

.map-info-works {
    margin-top: 8px;
    margin-bottom: 12px;
    color: #111827;
    font-size: 15px;
    line-height: 1.5;
}

.map-info-works ul {
    padding-left: 18px;
    margin: 0;
}

.map-info-works li {
    margin: 4px 0;
}

.map-info-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Image inside map info panel */
.map-info-image {
    width: 100%;
    height: 160px;
    margin: 6px 0 14px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.map-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .map-info-panel {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -55%);
        width: 92vw;
        max-width: 92vw;
    }
    .map-info-panel.active {
        transform: translate(-50%, -50%);
    }
    .map-info-panel.leaving {
        transform: translate(-50%, -45%);
    }
}

@media (max-width: 768px) {
    .yandex-map {
        height: 400px;
    }
    
    .map-header {
        padding: 2rem 0 1rem;
    }
    
    .map-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
} 

@media (max-width: 768px) {
    .certificates-slider .swiper-slide {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .certificates-slider .swiper-slide {
        height: 350px;
    }
}

/* Project Detail Page Styles */
.breadcrumbs {
    background: var(--grey-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--grey-medium);
}

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

.breadcrumb-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-list a:hover {
    color: var(--secondary-color);
}

.breadcrumb-list span {
    color: var(--text-light);
}

/* Project Hero */
.project-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
}

/* Project Hero с фоновой картинкой */
.project-hero-with-image {
    background-size: cover;
    background-position: center -100px; /* Отрицательное смещение для покрытия верхней части */
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden; /* Скрываем части изображения, выходящие за границы */
}

/* Паралакс эффект для фонового изображения */
.project-hero-with-image.parallax-enabled {
    will-change: background-position; /* Оптимизация для плавной анимации фона */
}

/* Затемнение для фоновой картинки */
.project-hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 67, 129, 0.7); /* Темно-синее затемнение в соответствии с основным цветом */
    z-index: 1;
}

.project-hero-with-image .container {
    position: relative;
    z-index: 2;
}

.project-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-hero-info h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.project-detail-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-align: center;
}

.project-detail-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.project-detail-category,
.project-detail-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.project-detail-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.project-detail-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

/* Project Gallery */
.project-gallery {
    padding: 4rem 0;
    background: var(--white);
}

.project-detail-slider {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.project-detail-slider .swiper-slide {
    position: relative;
}

.project-detail-slider .swiper-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.project-detail-slider .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
}

.project-detail-slider .slide-caption h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.project-detail-slider .slide-caption p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.project-detail-slider .swiper-pagination {
    bottom: 20px;
}

.project-detail-slider .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
    margin: 0 4px !important;
}

.project-detail-slider .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    border-color: var(--white) !important;
    transform: scale(1.2);
}

.project-detail-slider .swiper-button-next,
.project-detail-slider .swiper-button-prev {
    color: var(--white) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    transform: scale(0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.project-detail-slider:hover .swiper-button-next,
.project-detail-slider:hover .swiper-button-prev {
    opacity: 1 !important;
    transform: scale(1) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.project-detail-slider .swiper-button-next:hover,
.project-detail-slider .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.1) !important;
}

.project-detail-slider .swiper-button-next:after,
.project-detail-slider .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold !important;
}

/* Project Details */
.project-details {
    padding: 4rem 0;
    background: var(--grey-light);
}

.project-details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.project-description h2,
.project-services h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.project-description h3 {
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
}

.project-specs {
    list-style: none;
    margin-top: 1rem;
}

.project-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--grey-medium);
    display: flex;
    justify-content: space-between;
}

.project-specs li:last-child {
    border-bottom: none;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.service-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.service-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* Project Detail Services Grid */
.project-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-service-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.project-service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.project-service-item:hover .project-service-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.project-service-item:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Project Timeline Section */
.project-timeline {
    padding: 5rem 0 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 120px;
    z-index: 2;
}

/* Динамические линии timeline создаются через JavaScript */
.timeline-line {
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    left: 30px;
    z-index: 1;
    height: 0;
    transition: height 1.0s ease-out; /* Увеличиваем время и меняем easing для плавности */
    transform-origin: top;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    position: absolute;
    left: -20px;
    top: 0;
    width: 100px;
    height: 100px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 3; /* Кружки должны быть выше линий */
}

.timeline-month {
    font-size: 0.9rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.timeline-year {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.2;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.timeline-works {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.timeline-works li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.timeline-works li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Responsive Design для Timeline */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 100px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-date {
        left: -30px;
        width: 80px;
        height: 80px;
    }
    
    .timeline-month {
        font-size: 0.8rem;
    }
    
    .timeline-year {
        font-size: 0.7rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    .timeline-works {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        padding-left: 90px;
    }
    
    .timeline-line {
        left: 15px;
    }
    
    .timeline-date {
        left: -25px;
        width: 70px;
        height: 70px;
    }
    
    .timeline-month {
        font-size: 0.75rem;
    }
    
    .timeline-year {
        font-size: 0.65rem;
    }
}

.project-service-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.project-service-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Project Results */
.project-results {
    padding: 4rem 0;
    background: var(--white);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.result-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--light-blue);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.result-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.result-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Project Main Content (новая компоновка для project2.html) */
.project-main-content-top{
    margin-bottom: 2rem;
}
.project-main-content {
    padding: 4rem 0;
    background: var(--white);
}

.project-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.project-main-gallery {
    /* Стили для левой части со слайдером */
    flex-shrink: 0; /* Предотвращаем сжатие */
    max-height: 450px; /* Ограничиваем максимальную высоту */
    min-height: 400px; /* Минимальная высота */
    aspect-ratio: 16/10; /* Фиксированные пропорции */
    align-self: start; /* Выравнивание по верху в grid */
}

.project-main-gallery .project-detail-slider {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    height: 400px; /* Фиксированная высота */
    width: 100%;
}

.project-main-gallery .project-detail-slider .swiper-wrapper {
    height: 400px; /* Фиксированная высота для wrapper */
}

.project-main-gallery .project-detail-slider .swiper-slide {
    height: 400px; /* Фиксированная высота для слайдов */
    overflow: hidden;
}

.project-main-gallery .project-detail-slider .swiper-slide img {
    width: 100%;
    height: 400px; /* Уменьшенная высота для компактности */
    object-fit: cover;
    display: block;
}

/* Стили для подписей в компактном слайдере */
.project-main-gallery .project-detail-slider .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 1.5rem 1rem 1rem; /* Уменьшенные отступы для компактности */
}

.project-main-gallery .project-detail-slider .slide-caption h4 {
    color: var(--white);
    margin-bottom: 0.3rem; /* Уменьшенный отступ */
    font-size: 1.1rem; /* Чуть меньший размер */
    font-weight: 600;
}

.project-main-gallery .project-detail-slider .slide-caption p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 0.9rem; /* Уменьшенный размер текста */
    line-height: 1.3;
}

.project-main-description {
    padding-left: 1rem;
}

.project-main-description h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.project-main-description h3 {
    color: var(--text-dark);
    margin: 0 0 1rem;
    font-size: 1.3rem;
}

.project-main-description p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-main-description .project-specs {
    list-style: none;
    margin-top: 1rem;
}

.project-main-description .project-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--grey-medium);
    display: flex;
    justify-content: space-between;
}

.project-main-description .project-specs li:last-child {
    border-bottom: none;
}

/* Project Services V2 (4 карточки в ряд) */
.project-services-v2 {
    padding: 4rem 0;
    background: var(--grey-light);
}

.project-services-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-service-item-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-height: 280px; /* Обеспечиваем одинаковую высоту карточек */
}

.project-service-item-v2:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.project-service-item-v2 .project-service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.project-service-item-v2:hover .project-service-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.project-service-item-v2 .project-service-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.project-service-item-v2 .project-service-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-service-item-v2:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Responsive Design for Project Page */
@media (max-width: 768px) {
    .project-hero-info h1 {
        font-size: 2rem;
    }
    
    .project-detail-subtitle {
        font-size: 1rem;
    }
    
    .project-detail-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-details-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .project-detail-slider .swiper-slide img {
        height: 300px;
    }
    
    .project-detail-slider .swiper-button-next,
    .project-detail-slider .swiper-button-prev {
        opacity: 1 !important;
        transform: scale(1) !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon {
        align-self: center;
    }
    
    .project-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Responsive для новой компоновки project2.html */
    .project-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-main-description {
        padding-left: 0;
    }
    
    .project-main-gallery {
        max-height: 350px; /* Уменьшаем на мобильных */
    }
    
    .project-main-gallery .project-detail-slider {
        height: 300px; /* Уменьшенная высота на мобильных */
    }
    
    .project-main-gallery .project-detail-slider .swiper-wrapper {
        height: 300px;
    }
    
    .project-main-gallery .project-detail-slider .swiper-slide {
        height: 300px;
    }
    
    .project-main-gallery .project-detail-slider .swiper-slide img {
        height: 300px;
    }
    
    .project-services-grid-v2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-service-item-v2 {
        min-height: auto;
        padding: 1.5rem 1rem;
    }
    
    .project-service-item {
        padding: 1.5rem 1rem;
    }
    
    .project-service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .project-hero {
        padding: 2rem 0;
    }
    
    .project-hero-info h1 {
        font-size: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-number {
        font-size: 2rem;
    }
    
    .project-detail-slider .swiper-slide img {
        height: 250px;
    }
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scroll-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   New Mobile Menu Styles
   ========================================================================== */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Container */
.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    padding: 1.5rem;
    box-shadow: inset 0 -1px 0 0 var(--grey-medium);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    contain: layout style;
}

.mobile-menu-logo h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
}

.mobile-menu-logo span {
    color: var(--text-light);
    font-size: 0.85rem;
    display: block;
    line-height: 1;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.mobile-menu-close:hover {
    color: var(--primary-color);
    background: var(--light-blue);
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    contain: layout style;
    will-change: scroll-position;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list > li {
    box-shadow: inset 0 -1px 0 0 var(--grey-medium);
}

.mobile-menu-list > li:last-child {
    box-shadow: none;
}

/* Simple Menu Links */
.mobile-menu-list > li > a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    line-height: 1.1;
    min-height: 48px;
    box-sizing: border-box;
}

.mobile-menu-list > li > a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Dropdown */
.mobile-menu-dropdown {
    position: relative;
}

/* Активные dropdown сохраняют box-shadow от родительского li */

.mobile-menu-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1.1;
    min-height: 48px;
    box-sizing: border-box;
}

.mobile-menu-trigger:hover {
    color: var(--primary-color);
}

.mobile-menu-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-dropdown.active > .mobile-menu-trigger .mobile-menu-arrow {
    transform: rotate(180deg);
}

/* Mobile Submenus */
.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 
        inset 0 1px 0 0 var(--grey-medium),
        inset 0 -1px 0 0 var(--grey-medium);
    will-change: max-height;
    contain: layout;
}

.mobile-menu-dropdown.active > .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu li {
    box-shadow: inset 0 -1px 0 0 var(--grey-medium);
}

.mobile-submenu li:last-child {
    box-shadow: none;
}

/* Первый уровень подменю */
.mobile-submenu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 2.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    line-height: 1.1;
    min-height: 40px;
    box-sizing: border-box;
}

.mobile-submenu a:hover {
    color: var(--primary-color);
}

/* Первый уровень подменю - triggers */
.mobile-submenu .mobile-menu-trigger {
    padding: 0.8rem 2.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.1;
    min-height: 40px;
    box-sizing: border-box;
}

.mobile-submenu .mobile-menu-trigger:hover {
    color: var(--primary-color);
}

/* Второй уровень подменю (вложенные) */
.mobile-submenu .mobile-submenu a {
    padding-left: 4rem;
    font-size: 0.9rem;
}

.mobile-submenu .mobile-submenu .mobile-menu-trigger {
    padding-left: 4rem;
    font-size: 0.9rem;
}

/* Третий уровень подменю (если нужен) */
.mobile-submenu .mobile-submenu .mobile-submenu a {
    padding-left: 5.5rem;
    font-size: 0.85rem;
}

.mobile-submenu .mobile-submenu .mobile-submenu .mobile-menu-trigger {
    padding-left: 5.5rem;
    font-size: 0.85rem;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 0 var(--grey-medium);
    flex-shrink: 0;
    contain: layout style;
}

.mobile-menu-contact {
    margin-bottom: 1rem;
}

.mobile-menu-phone {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    justify-content: center;
}

.mobile-menu-phone:hover {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-menu-phone svg {
    flex-shrink: 0;
}

.btn-mobile-cta {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Mobile Menu Responsive */
@media (max-width: 480px) {
    .mobile-menu-container {
        max-width: 100%;
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none;
    }
}

/* ===== СТАТЬИ И БЛОГ ===== */

/* Основной контейнер страницы статьи */
.article-page {
    padding: 2rem 0 4rem;
    background: var(--white);
}

/* Заголовочная часть статьи */
.article-header {
    margin-bottom: 3rem;
    text-align: left;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-date,
.article-author,
.article-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date svg,
.article-author svg,
.article-time svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.article-tags .tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--light-blue);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.article-tags .tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Изображение статьи */
.article-image {
    margin-bottom: 3rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--grey-light);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

.article-image img {

    display: block;
}

/* Основное содержимое статьи */
.article-content {
    width: 100%;
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.article-text > p,
.article-text > h2,
.article-text > h3,
.article-text > h4,
.article-text > ul,
.article-text > ol {
    max-width: 800px;
}

.article-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 1.5rem;
    font-family: var(--font-heading);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
}

.article-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    font-family: var(--font-heading);
}

.article-text h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1.5rem 0 0.8rem;
    font-family: var(--font-heading);
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text ul,
.article-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-text li {
    margin-bottom: 0.8rem;
}

.article-text li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Выделенные блоки в статье */
.article-highlight {
    background: linear-gradient(135deg, var(--light-blue), rgba(52, 152, 219, 0.1));
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.article-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px 0 0 2px;
}

.article-highlight h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    margin-top: 0;
}

.article-highlight p {
    margin-bottom: 0;
    color: var(--text-dark);
}

/* Статистические данные */
.article-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--grey-light);
    border-radius: var(--border-radius-lg);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-weight: 500;
}

/* Области применения */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.application-item {
    background: var(--white);
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.application-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.application-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 0 0.8rem 0;
    font-weight: 600;
}

.application-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Call-to-action блоки */
.article-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
}

.article-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.article-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.article-cta .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* Похожие статьи */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--grey-medium);
}

.related-articles h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--font-heading);
}

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

.related-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--grey-medium);
}

.related-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-tags {
    margin-bottom: 1rem;
}

.related-tags .tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.related-content h3 {
    margin-bottom: 1rem;
}

.related-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    transition: var(--transition);
}

.related-content h3 a:hover {
    color: var(--primary-color);
}

.related-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Адаптивность для статей */
@media (max-width: 768px) {
    .article-page {
        padding: 1rem 0 2rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .article-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }

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

    .article-text h2 {
        font-size: 1.7rem;
        margin: 2rem 0 1rem;
    }

    .article-text h3 {
        font-size: 1.3rem;
    }

    .article-highlight {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .article-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 1.5rem;
    }

    .stat-item h4 {
        font-size: 2rem;
    }

    .article-cta {
        padding: 2rem;
    }

    .article-cta h3 {
        font-size: 1.5rem;
    }

    .application-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .article-subtitle {
        font-size: 1rem;
    }

    .article-text h2 {
        font-size: 1.5rem;
    }

    .article-text h3 {
        font-size: 1.2rem;
    }

    .stat-item h4 {
        font-size: 1.8rem;
    }

    .article-cta {
        padding: 1.5rem;
    }

    .article-cta h3 {
        font-size: 1.3rem;
    }

    .article-highlight {
        padding: 1rem;
    }
}

/* ===================================
   PROJECTS PAGE STYLES
   =================================== */

/* Projects Page Hero */
.projects-page-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.projects-page-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.projects-page-subtitle {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Main Layout */
.projects-page-main {
    padding: 3rem 0;
    background: var(--grey-light);
}

.projects-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.projects-content {
    min-width: 0; /* Для корректного переноса текста в grid элементах */
}

.projects-sidebar {
    top: 2rem;
}

/* Project Sections */
.project-sections {
    margin-bottom: 3rem;
}

.project-sections-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.project-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-section-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.project-section-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-section-card:hover::before {
    transform: scaleX(1);
}

.project-section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    margin-top: 2px; /* Выравнивание с первой строкой текста */
}

.project-section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Для корректного переноса текста */
}

.project-section-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-top: 0;
}

.project-section-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
}

.projects-count {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    align-self: flex-start;
    background: rgba(var(--secondary-color-rgb), 0.1);

    border-radius: 15px;
}

/* Projects List */
.projects-list {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.projects-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.projects-list-title {
    color: var(--primary-color);
    margin: 0;
}

.projects-sort {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.projects-sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    min-width: 200px;
    cursor: pointer;
}

.projects-sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Projects Grid (используем существующие стили) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Projects Grid для страницы проектов - 2 колонки */
.projects-list .projects-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Pagination */
.projects-pagination {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background: var(--white);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pagination-link:hover:not(.disabled) {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-dots {
    padding: 0.75rem 0.5rem;
    color: var(--text-light);
}

/* Projects Filter */
.projects-filter {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.filter-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
}

.filter-block {
    margin-bottom: 1.5rem;
}

.filter-block:last-child {
    margin-bottom: 0;
}

.filter-block-title {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.filter-block-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Filter Checkbox */
.filter-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0;
    line-height: 1.4;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.filter-checkbox-box {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.filter-checkbox input[type="checkbox"]:checked + .filter-checkbox-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-checkbox input[type="checkbox"]:checked + .filter-checkbox-box::after {
    content: '✓';
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.filter-checkbox-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    flex: 1;
}

.filter-checkbox:hover .filter-checkbox-box {
    border-color: var(--primary-color);
}

/* Filter Range */
.filter-range {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-range input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: var(--white);
    color: var(--text-dark);
}

.filter-range input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(21, 67, 129, 0.1);
}

.filter-range-separator {
    color: var(--text-light);
    font-weight: 500;
}

/* Filter Select */
.filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(21, 67, 129, 0.1);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.filter-apply {
    width: 100%;
}

.filter-reset {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

.filter-reset:hover {
    background: var(--grey-light);
    border-color: var(--text-light);
}

/* Mobile Adaptations */
@media (max-width: 1024px) {
    .projects-page-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-sidebar {
        position: static;
        order: -1;
    }
    
    .projects-filter {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .projects-page-hero-content h1 {
        font-size: 2rem;
    }
    
    .projects-page-subtitle {
        font-size: 1rem;
    }
    
    .project-sections-grid {
        grid-template-columns: 1fr;
    }
    
    .project-section-icon {
        width: 45px;
        height: 45px;
    }
    
    .projects-list {
        padding: 1.5rem;
    }
    
    .projects-list-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .projects-sort-select {
        min-width: auto;
    }
    
    /* Карточки проектов по 1 в ряд на планшетах */
    .projects-list .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .pagination-prev,
    .pagination-next {
        font-size: 0.8rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .projects-page-main {
        padding: 2rem 0;
    }
    
    .project-sections {
        margin-bottom: 2rem;
    }
    
    .project-section-card {
        padding: 1rem;
    }
    
    .project-section-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Карточки проектов остаются по 1 в ряд на мобильных */
    .projects-list .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pagination-numbers .pagination-link:not(.active) {
        display: none;
    }
    
    .pagination-numbers .pagination-link.active {
        display: flex;
    }
}

/* ===== CTA SECTIONS ===== */

/* Common CTA Section Styles */
.cta-section {
    padding: 4rem 0;
    position: relative;
}

/* CTA Section 1 - Quick Contact Form */
.cta-form-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, #f1f8fc 100%);
}

.cta-form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.cta-form-card:hover {
    transform: translateY(-5px);
}

.cta-form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-form-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-form-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-benefits {
    list-style: none;
}

.cta-benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.cta-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.cta-quick-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cta-form-row input {
    padding: 1rem;
    border: 2px solid var(--grey-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.cta-form-row input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 67, 129, 0.1);
}

.btn-cta {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* CTA Section 2 - Big Action Button */
.cta-banner-section {
    background: var(--primary-color);
    color: var(--white);
}

.cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-banner-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-stats {
    display: flex;
    gap: 2rem;
}

.cta-stat {
    text-align: center;
}

.cta-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.cta-stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-big-cta {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-big-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-big-cta svg {
    transition: var(--transition);
}

.btn-big-cta:hover svg {
    transform: translateX(5px);
}

/* CTA Section 3 - Dark Compact Form */
.cta-dark-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    position: relative;
}

.cta-dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(52, 73, 94, 0.85) 100%);
    z-index: 1;
}

.cta-dark-section .container {
    position: relative;
    z-index: 2;
}

.cta-dark-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-dark-card:hover {
    box-shadow: 0 15px 50px rgba(44, 62, 80, 0.4);
}

.cta-dark-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.cta-dark-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-dark-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-dark-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-dark-benefits {
    list-style: none;
}

.cta-dark-benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.cta-dark-benefits li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.cta-dark-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-dark-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cta-dark-form-row input {
    padding: 1rem;
    border: 2px solid var(--grey-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.cta-dark-form-row input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--white);
    border: none;
}

.btn-accent:hover {
    background: var(--secondary-color);
}

.btn-cta-dark {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-cta-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* CTA Section 4 - Interactive Banner */
.cta-interactive-section {
    background: var(--grey-light);
}

.cta-interactive-banner {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cta-interactive-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-interactive-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.cta-interactive-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.cta-interactive-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-interactive-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-features span {
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 500;
}

.cta-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-action {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    text-align: center;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-cta-pulse-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

.cta-interactive-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.cta-decoration-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    opacity: 0.1;
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.cta-decoration-circle:nth-child(1) {
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.cta-decoration-circle:nth-child(2) {
    top: 40px;
    right: 80px;
    width: 40px;
    height: 40px;
    animation-delay: 2s;
}

.cta-decoration-circle:nth-child(3) {
    top: 80px;
    right: 40px;
    width: 30px;
    height: 30px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design for CTA Sections */
@media (max-width: 992px) {
    .cta-form-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .cta-stats {
        justify-content: center;
    }
    
    .cta-dark-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-dark-form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-interactive-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cta-interactive-left {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 2.5rem 0;
    }
    
    .cta-form-card {
        padding: 2rem;
    }
    
    .cta-form-text h3 {
        font-size: 1.8rem;
    }
    
    .cta-form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-banner {
        padding: 1.5rem;
    }
    
    .cta-banner-content h3 {
        font-size: 2rem;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-dark-card {
        padding: 2rem;
    }
    
    .cta-dark-text h3 {
        font-size: 1.8rem;
    }
    
    .cta-dark-form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-interactive-banner {
        padding: 2rem;
    }
    
    .cta-interactive-text h3 {
        font-size: 1.8rem;
    }
    
    .cta-features {
        justify-content: center;
    }
    
    .btn-big-cta {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .cta-form-card {
        padding: 1.5rem;
    }
    
    .cta-form-text h3 {
        font-size: 1.5rem;
    }
    
    .cta-banner-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-dark-text h3 {
        font-size: 1.5rem;
    }
    
    .cta-dark-card {
        padding: 1.5rem;
    }
    
    .cta-interactive-text h3 {
        font-size: 1.5rem;
    }
    
    .btn-big-cta {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .cta-action-buttons {
        width: 100%;
    }
    
    .btn-action {
        width: 100%;
    }
}

/* =====================================================
   SEARCH STYLES
   ===================================================== */

/* Кнопка поиска в header */
.search-toggle-btn {
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.search-toggle-btn:hover {
    background: var(--light-blue);
    transform: scale(1.05);
}

.search-toggle-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(21, 67, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.search-toggle-btn:hover:before {
    width: 100px;
    height: 100px;
}

.search-toggle-btn svg {
    transition: var(--transition);
    z-index: 1;
    position: relative;
}

.search-toggle-btn:hover svg {
    transform: rotate(15deg);
}

/* Поисковый overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    min-height: 60vh;
    max-height: 80vh;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

/* Header поиска */
.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--grey-medium);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.search-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.search-close-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Форма поиска */
.search-form {
    padding: 2rem 2rem 1rem;
    overflow-y: auto;
}

.search-input-row {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--grey-medium);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    transition: var(--transition);
    background: var(--white);
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(21, 67, 129, 0.1);
    transform: scale(1.02);
}

.search-submit-btn {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-submit-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: scale(1.05);
}

.search-submit-btn:focus {
    outline: none;
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 3px rgba(21, 67, 129, 0.1);
}

.search-submit-btn:active {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: scale(0.98);
}

/* Поисковые подсказки */
.search-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.search-suggestions.hidden {
    display: none;
}

.search-suggestion-category h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Теги поиска */
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-tag {
    background: var(--light-blue);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.search-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 67, 129, 0.3);
}

/* Быстрые ссылки */
.search-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-quick-link {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--grey-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border: 1px solid transparent;
}

.search-quick-link:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.search-quick-link span {
    font-weight: 600;
    color: var(--primary-color);
}

.search-quick-link small {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Результаты поиска */
.search-results {
    padding: 0 2rem 1rem;
    max-height: 400px;
    overflow-y: auto;
}

/* Кастомный скроллбар для результатов поиска */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--grey-light);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.search-no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.search-no-results h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.search-no-results p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--grey-medium);
    transition: var(--transition);
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--grey-light);
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.search-result-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.search-result-path {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

/* Подсветка найденных терминов */
.search-results mark {
    background: rgba(21, 67, 129, 0.15);
    color: var(--primary-color);
    padding: 0.1em 0.2em;
    border-radius: 3px;
    font-weight: 600;
}

/* Анимация появления элементов */
.search-overlay.active .search-suggestion-category:nth-child(1) {
    animation: slideInLeft 0.6s ease 0.3s both;
}

.search-overlay.active .search-suggestion-category:nth-child(2) {
    animation: slideInRight 0.6s ease 0.4s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Пульсирующая анимация для кнопки поиска */
.search-toggle-btn.pulse {
    animation: searchPulse 2s infinite;
}

@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(21, 67, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(21, 67, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(21, 67, 129, 0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-container {
        min-height: 70vh;
        border-radius: 0;
    }
    
    .search-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .search-header h3 {
        font-size: 1.25rem;
    }
    
    .search-form {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .search-suggestions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .search-input-row {
        margin-bottom: 1rem;
        gap: 1rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .search-submit-btn {
        width: 3rem;
        height: 3rem;
    }
    
    .search-submit-btn svg {
        width: 18px;
        height: 18px;
    }

    .search-results {
        max-height: 300px;
    }

    /* Скрываем кнопку поиска на очень маленьких экранах */
    .search-toggle-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .search-results {
        max-height: 250px;
    }
    
    .search-tags {
        justify-content: center;
    }
    
    .search-tag {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
} 