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

:root {
    /* Colors */
    --primary: #2ECC71;
    --primary-dark: #27AE60;
    --primary-light: #58D68D;
    --secondary: #34495E;
    --accent: #3498DB;
    --dark: #2C3E50;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --gray: #95A5A6;
    --gray-light: #ECF0F1;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    
    /* Spacing - Mobile First */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: #FFFFFF;
    overflow-x: hidden;
}

/* Increase spacing for larger screens */
@media (min-width: 769px) {
    :root {
        --spacing-md: 2rem;
        --spacing-lg: 4rem;
        --spacing-xl: 6rem;
    }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 769px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}

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

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

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

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

@media (min-width: 769px) {
    .btn-large {
        padding: 1.125rem 2.5rem;
        font-size: 1.125rem;
    }
}

.btn-block {
    width: 100%;
}

/* Navigation - PIK Style (Card Design) */
.navbar-pik {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    padding: 1rem;
    background: transparent;
}

.navbar-pik__card {
    max-width: 1600px;
    margin: 0 auto;
    background: rgba(246, 246, 246, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 70px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-pik__card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

/* Transparent navbar at top */
.navbar-pik.at-top .navbar-pik__card {
    background: rgba(246, 246, 246, 0.5);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* Solid navbar on scroll */
.navbar-pik.scrolled .navbar-pik__card {
    background: rgba(246, 246, 246, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.navbar-pik__logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-pik__logo img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.navbar-pik__logo:hover img {
    transform: scale(1.05);
}

.navbar-pik__logo--text {
    font-size: 32px;
    font-weight: 800;
    color: #2ECC71;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition);
    font-family: 'Space Grotesk', sans-serif;
}

.navbar-pik__logo--text:hover {
    transform: scale(1.05);
    color: #27AE60;
}

.navbar-pik__menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition);
    gap: 5px;
    padding: 0;
}

.navbar-pik__menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.navbar-pik__menu-btn:active {
    transform: scale(0.95);
}

.navbar-pik__menu-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 3px;
}

.navbar-pik__menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-pik__menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.navbar-pik__menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Side Menu - PIK Style (Full Screen) */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
}

.side-menu.active {
    pointer-events: auto;
    opacity: 1;
}

.side-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.side-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #FFFFFF;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding-top: 110px;
}

.side-menu.active .side-menu__panel {
    opacity: 1;
    transform: scale(1);
}

.side-menu__header {
    display: none;
}

.side-menu__logo img {
    height: 40px;
    width: auto;
}

.side-menu__close {
    display: none;
}

.side-menu__top-links {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.side-menu__top-link {
    font-size: 0.9rem;
    color: #666;
    transition: var(--transition);
}

.side-menu__top-link:hover {
    color: var(--primary);
}

.side-menu__nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.side-menu__section {
    border-bottom: 1px solid #f0f0f0;
}

.side-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--dark);
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.side-menu__link:hover {
    background: #f8f8f8;
    color: var(--primary);
}

.side-menu__link svg {
    transition: var(--transition);
    flex-shrink: 0;
}

.side-menu__link:hover svg {
    transform: translateX(4px);
}

.side-menu__link--expandable svg {
    transition: transform 0.3s ease;
}

.side-menu__link--expandable.active svg {
    transform: rotate(90deg);
}

.side-menu__submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f8f8;
}

.side-menu__submenu.active {
    max-height: 600px;
}

.side-menu__submenu a {
    display: block;
    padding: 0.9rem 1.5rem 0.9rem 2.5rem;
    font-size: 0.95rem;
    color: #666;
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
}

.side-menu__submenu a:hover {
    background: #fff;
    color: var(--primary);
    padding-left: 3rem;
}

.side-menu__contact {
    padding: 1.5rem;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.side-menu__contact h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.side-menu__phone {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.side-menu__phone:hover {
    color: var(--primary);
}

.side-menu__contact .btn {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.side-menu__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.side-menu__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--dark);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.side-menu__social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 110px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: 
        linear-gradient(135deg, rgba(46, 204, 113, 0.9) 0%, rgba(52, 73, 94, 0.95) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* Mobile optimization for hero image */
@media (max-width: 768px) {
    .hero-main-image {
        object-position: 60% center;
    }
}

/* Prevent breaking long words on mobile */
@media (max-width: 768px) {
    .hero-title {
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

.spark-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

@media (min-width: 769px) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.4);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm);
}

@media (min-width: 769px) {
    .hero-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    font-size: clamp(1.8rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
    letter-spacing: -0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: manual;
}

.hero-title .highlight {
    color: #2ECC71;
    display: inline-block;
}

/* Responsive line break for title */
.hero-title-break {
    display: none;
}

@media (min-width: 769px) {
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 5rem);
        line-height: 1.1;
    }
    
    .hero-title-break {
        display: block;
        content: "";
    }
    
    .hero-title-break::before {
        content: "\A";
        white-space: pre;
    }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    color: var(--white);
    max-width: 100%;
    word-wrap: break-word;
}

@media (min-width: 769px) {
    .hero-subtitle {
        font-size: clamp(1rem, 2vw, 1.25rem);
    }
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.hero-buttons .btn {
    flex: 1;
    min-width: 200px;
}

@media (min-width: 769px) {
    .hero-buttons .btn {
        flex: 0 1 auto;
    }
}

.hero-features {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    opacity: 0.9;
    font-size: 0.85rem;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.8),
        0 1px 3px rgba(0, 0, 0, 1);
    z-index: 10;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--white);
    border-radius: 12px;
    position: relative;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.2);
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header--left {
    text-align: left;
}

.section-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Carousel Section (PIK Style) */
.hero-carousel {
    position: relative;
    padding-top: 100px;
    padding-bottom: 2rem;
    background: #FFFFFF;
    overflow-x: clip;
    overflow-y: visible;
}

@media (max-width: 768px) {
    .hero-carousel {
        padding-top: 96px;
    }
}

/* News Section */
.news-section {
    padding: var(--spacing-xl) 0;
    background: #FFFFFF;
    overflow: hidden;
}

.news-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
}

.news-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1rem;
    margin: 0 calc(-1 * var(--spacing-sm));
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

@media (min-width: 769px) {
    .news-track {
        margin: 0 calc(-1 * var(--spacing-md));
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

.news-track::-webkit-scrollbar { display: none; }
.news-track { scrollbar-width: none; -ms-overflow-style: none; }

.news-card {
    flex: 0 0 160px;
    background: #FFFFFF;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    height: 170px;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 769px) {
    .news-card { 
        flex: 0 0 190px;
        height: 190px;
    }
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.news-title {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    padding: 0.5rem 0.65rem;
    font-size: 0.5rem;
    font-weight: 600;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--dark);
    line-height: 1.2;
}

@media (min-width: 769px) {
    .news-title {
        font-size: 0.56rem;
        padding: 0.6rem 0.75rem;
    }
}

/* Document Cards */
.news-card--document {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.news-card--document:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
}

.news-card--document img {
    display: none;
}

.document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.news-card--document:hover .document-icon {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.news-card--document .news-title {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0 1rem;
    text-align: center;
    font-size: 0.65rem;
    line-height: 1.3;
    color: var(--dark);
}

@media (min-width: 769px) {
    .document-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 0.75rem;
    }

    .news-card--document .news-title {
        font-size: 0.75rem;
        padding: 0 1.25rem;
    }
}


/* Page Header Section */
.page-header-section {
    padding: calc(100px + 2rem) 0 2rem 0;
    background: #FFFFFF;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #F5F5F5;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.back-button:hover {
    background: #E8E8E8;
    transform: translateX(-4px);
}

.back-button svg {
    transition: var(--transition);
}

.back-button:hover svg {
    transform: translateX(-4px);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    font-family: var(--font-heading);
}

@media (max-width: 768px) {
    .page-header-section {
        padding: calc(80px + 1.5rem) 0 1.5rem 0;
    }

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

    .back-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Projects All Page */
.projects-all-page {
    padding-top: 0;
}

.projects-all-page .city-projects-header {
    margin-bottom: 2rem;
}

/* City Projects Section - PIK Style */
.city-projects-section {
    padding: var(--spacing-xl) 0;
    background: #FFFFFF;
}

.city-projects-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 769px) {
    .city-projects-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.city-projects-title-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    position: relative;
}

.city-projects-main-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.city-projects-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-decoration: none;
}

.filter-btn:hover {
    background: var(--light);
    border-color: var(--dark);
}

.filter-btn:active {
    transform: scale(0.98);
}

.filter-btn svg {
    flex-shrink: 0;
}

.city-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    position: relative;
}

.city-selector:hover .city-selector__text {
    color: rgba(0, 0, 0, 0.6);
}

.city-selector__text {
    color: rgba(0, 0, 0, 0.4);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    transition: var(--transition);
}

.city-selector__arrow {
    transition: transform 0.3s ease;
    color: rgba(0, 0, 0, 0.4);
    width: clamp(14px, 2vw, 18px);
    height: clamp(14px, 2vw, 18px);
}

.city-selector.active .city-selector__arrow {
    transform: rotate(180deg);
}

.city-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

.city-dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.city-dropdown__item {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    text-align: left;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--dark);
    transition: var(--transition);
}

.city-dropdown__item:hover {
    background: var(--light);
    color: var(--primary);
}

.city-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
}

@media (min-width: 769px) {
    .city-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .city-projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.city-project-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
}

.city-project-card.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.city-project-card.hidden-initially {
    display: none;
}

@media (hover: hover) {
    .city-project-card:not(.hidden):hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    }
}

.city-project-image-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
}

.city-project-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.city-project-images img,
.city-project-images .placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.4s ease;
    pointer-events: none;
}

.city-project-images img.active,
.city-project-images .placeholder-image.active {
    opacity: 1;
    pointer-events: auto;
}

.city-project-images .placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.city-project-images .placeholder-image svg {
    color: #c0c0c0;
    opacity: 0.6;
}

.city-project-image-placeholder .city-project-dots {
    display: none;
}

@media (hover: hover) {
    .city-project-card:hover .city-project-images img.active {
        transform: scale(1.05);
    }
}

.city-project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(128, 128, 128, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #FFFFFF;
    z-index: 2;
}

.city-project-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.city-project-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .city-project-dots .dot:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }
}

.city-project-dots .dot.active {
    background: #FFFFFF;
    width: 24px;
    border-radius: 4px;
}

.city-project-info {
    padding: 1rem 0;
}

.city-project-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.3;
}

.city-project-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.metro-marker {
    color: #2ECC71;
    font-size: 1rem;
}

.metro-name {
    color: #666;
}

.walk-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
    margin-left: auto;
}

.walk-time svg {
    fill: #666;
}

.city-project-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

/* View All Button */
.city-projects-show-more {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.city-projects-show-more.hidden {
    display: none;
}

.btn-show-more-projects {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #F5F5F5;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-show-more-projects:hover {
    background: #E8E8E8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-show-more-projects:active {
    transform: translateY(0);
}

.btn-show-more-projects svg {
    transition: transform 0.3s ease;
}

.btn-show-more-projects:hover svg {
    transform: translateY(2px);
}

/* Mobile adaptations for City Projects */
@media (max-width: 768px) {
    .city-projects-main-title {
        font-size: 2rem;
    }
    
    .city-selector__text {
        font-size: 1.5rem;
    }
    
    .city-project-image-carousel {
        height: 300px;
    }
    
    .city-project-name {
        font-size: 1.25rem;
    }
    
    .city-project-price {
        font-size: 1.25rem;
    }
    
    .filter-btn {
        flex: 1;
        justify-content: center;
    }
    
    .btn-show-more-projects {
        width: 100%;
        max-width: 400px;
    }
    
    .city-project-dots .dot {
        width: 6px;
        height: 6px;
    }
    
    .city-project-dots .dot.active {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        padding-top: 84px;
    }
}

.hero-carousel__container {
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
}

.hero-carousel__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0.5rem;
}

.hero-carousel__track::-webkit-scrollbar {
    display: none;
}

/* Отключаем прокрутку на ПК - показываем все 3 слайда */
@media (min-width: 1200px) {
    .hero-carousel__track {
        overflow-x: visible;
        justify-content: center;
    }
}

/* Адаптация отступов под navbar на мобильных */
@media (max-width: 480px) {
    .hero-carousel__track {
        padding: 1rem 0.5rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero-carousel__track {
        padding: 1rem 0.75rem;
    }
}

@media (min-width: 769px) {
    .hero-carousel__track {
        padding: 1rem;
    }
}

.hero-carousel__slide {
    flex: 0 0 calc(100% - 1rem);
}

@media (min-width: 769px) {
    .hero-carousel__slide {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 1200px) {
    .hero-carousel__slide {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

.hero-carousel__card {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: #FFFFFF;
}

@media (max-width: 768px) {
    .hero-carousel__card {
        height: 500px;
        border-radius: 20px;
    }
}

@media (min-width: 1200px) {
    .hero-carousel__card {
        height: 450px;
        border-radius: 20px;
    }
}

.hero-carousel__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: #FFFFFF;
}

.hero-carousel__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-carousel__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-carousel__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 3;
    color: white;
}

@media (max-width: 768px) {
    .hero-carousel__content {
        padding: 2rem;
    }
}

@media (min-width: 1200px) {
    .hero-carousel__content {
        padding: 2rem;
    }
}

.hero-carousel__title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    font-family: var(--font-heading);
}

/* Уменьшаем текст для ПК версии */
@media (min-width: 1200px) {
    .hero-carousel__title {
        font-size: 1.5rem;
        font-weight: 500;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
}

.hero-carousel__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem 2rem;
    margin-top: 1rem;
}

.hero-carousel__percent {
    font-size: 4rem;
    font-weight: 700;
    color: white;
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text {
    max-width: 600px;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
}

.about-benefits {
    margin: var(--spacing-lg) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.benefit-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.benefit-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
}

.benefit-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.benefit-content p {
    color: var(--gray);
    margin: 0;
}

.about-visual {
    display: none;
}

@media (min-width: 969px) {
    .about-visual {
        display: block;
    }
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.3), rgba(39, 174, 96, 0.4));
    pointer-events: none;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.card-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Services Section */
.services-section {
    padding: var(--spacing-xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: #FFFFFF;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--gray);
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    gap: 0.75rem;
}

/* Projects Section */
.projects-section {
    padding: var(--spacing-xl) 0;
    background: #FFFFFF;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.project-featured {
    grid-row: 1 / 3;
}

.project-image {
    aspect-ratio: 1;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6)),
                      url('image/nerzhavei2.png');
    background-size: cover;
    background-position: center;
}

.project-featured .project-image {
    aspect-ratio: auto;
    height: 100%;
}

.project-image-2 {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6)),
                      url('image/barricade1.png');
    background-size: cover;
    background-position: center;
}

.project-image-3 {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6)),
                      url('image/leroymerlin3.png');
    background-size: cover;
    background-position: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    opacity: 1;
    transition: var(--transition);
}

@media (min-width: 769px) {
    .project-overlay {
        padding: var(--spacing-lg);
    }
}

/* Desktop hover effect */
@media (min-width: 769px) {
    .project-overlay {
        opacity: 0;
    }
    
    .project-card:hover .project-overlay {
        opacity: 1;
    }
}

.project-category {
    display: inline-block;
    background: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

@media (min-width: 769px) {
    .project-category {
        padding: 0.375rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 1px;
        margin-bottom: var(--spacing-sm);
    }
}

.project-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

@media (min-width: 769px) {
    .project-name {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-sm);
    }
}

.project-excerpt {
    display: none;
}

@media (min-width: 769px) {
    .project-excerpt {
        display: block;
        font-size: 1rem;
        opacity: 0.9;
        margin-bottom: var(--spacing-md);
        line-height: 1.5;
    }
}

.project-stats {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

@media (min-width: 769px) {
    .project-stats {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
}

.project-stats .stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (min-width: 769px) {
    .stat-value {
        font-size: 1.5rem;
    }
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

@media (min-width: 769px) {
    .stat-label {
        font-size: 0.875rem;
    }
}

/* Geography Section */
.geography-section {
    padding: var(--spacing-xl) 0;
    background: #FFFFFF;
}

/* Map Wrapper - Full Width */
.geography-map-wrapper {
    margin-bottom: var(--spacing-xl);
}

.map-container {
    position: relative;
    background: linear-gradient(135deg, var(--light) 0%, var(--gray-light) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Cities Grid - Below Map */
.geography-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.geography-item {
    background: var(--light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    cursor: pointer;
    position: relative;
}

.geography-item::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.geography-item:hover {
    border-left-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--gray-light);
}

.geography-item:hover::after {
    opacity: 1;
    right: 1.5rem;
}

.geography-item:active {
    transform: translateY(-2px);
}

/* Hidden items on mobile */
@media (max-width: 768px) {
    .geography-item--hidden-mobile {
        display: none;
        opacity: 0;
        transform: translateY(20px);
    }

    .geography-item--hidden-mobile.show {
        display: block;
        animation: fadeInUp 0.5s ease forwards;
    }
}

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

.geography-city {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.city-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.geography-city h4 {
    margin: 0;
    color: var(--dark);
    font-size: 1.125rem;
}

.geography-clients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.client-badge {
    display: inline-block;
    background: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.client-badge:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.map-overlay {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.map-stats {
    display: flex;
    gap: var(--spacing-md);
}

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

.map-stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.map-stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yandex-map {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-md);
    z-index: 1;
}

/* Yandex Maps balloon customization */
.ymaps-2-1-79-balloon {
    border-radius: var(--radius-md);
}

.ymaps-2-1-79-balloon__content {
    padding: 0;
}

/* Yandex Maps uses inline styles in balloonContent */

/* Geography Show More Button */
.geography-show-more {
    display: none;
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .geography-show-more {
        display: block;
    }

    .geography-show-more.hidden {
        display: none;
    }
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #F5F5F5;
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-show-more:hover {
    background: #E8E8E8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-show-more:active {
    transform: translateY(0);
}

.btn-show-more svg {
    transition: transform 0.3s ease;
}

.btn-show-more:hover svg {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .btn-show-more {
        width: 100%;
        max-width: 400px;
    }
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

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

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Contacts Section */
.contacts-section {
    padding: var(--spacing-xl) 0;
    background: #FFFFFF;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Contact Form */
.contact-form {
    background: #FFFFFF;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    margin-bottom: 0.5rem;
}

.contact-form > p {
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: #FFFFFF;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

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

.form-privacy {
    font-size: 0.875rem;
    color: var(--gray);
    text-align: center;
    margin-top: var(--spacing-sm);
}

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

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.footer > .container {
    position: relative;
    z-index: 10;
}

/* Construction Cranes Animation */
#outerCraneContainer {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    box-shadow: inset 0 -60px 0 -30px var(--primary);
    pointer-events: none;
    opacity: 0.15;
}

.buildings {
    height: 85px;
    width: 100%;
    left: 0;
    position: absolute;
    bottom: 0;
}

.buildings div {
    height: inherit;
    width: 42px;
    background: var(--primary);
    position: absolute;
    bottom: 10%;
}

.buildings div:after {
    content: '';
    width: 80%;
    height: 60%;
    left: 10%;
    bottom: 30%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAFElEQVQImWP4////fwYYIJKDEwAAfPsP8eFXG40AAAAASUVORK5CYII=') repeat;
    position: absolute;
}

.buildings div:nth-of-type(1) {
    width: 42px;
    height: 21px;
    right: 37%;
    bottom: 18%;
}

.buildings div:nth-of-type(1):after {
    bottom: 11%;
}

.buildings div:nth-of-type(2) {
    width: 48px;
    height: 28px;
    right: 30%;
    bottom: 35%;
    transform: rotate(180deg);
}

.buildings div:nth-of-type(2):after {
    width: 60%;
    left: 11%;
}

.buildings div:nth-of-type(3) {
    width: 24px;
    height: 38px;
    left: 40%;
    bottom: 35%;
}

.buildings div:nth-of-type(3):after {
    bottom: 0;
    width: 20%;
    height: 85%;
    left: 70%;
}

.buildings div:nth-of-type(4) {
    width: 85px;
    height: 21px;
    left: 24%;
    bottom: 20%;
}

.buildings div:nth-of-type(4):after {
    background: none;
}

.buildings div:nth-of-type(5) {
    width: 62px;
    height: 68px;
    left: 47%;
    bottom: 10%;
}

.buildings div:nth-of-type(5):after {
    bottom: 0;
    width: 40%;
    height: 85%;
    left: 20%;
}

.crane, .buildings {
    position: absolute;
    bottom: 0;
}

.crane div {
    border-radius: 2px;
    position: absolute;
}

.crane .line {
    border: none;
    background: var(--primary);
    outline: 1px solid transparent;
    z-index: 0;
}

.crane .lineOne {
    width: 60%;
    left: 11%;
    top: 0;
}

.crane .lineTwo {
    width: 19%;
    right: 8%;
    top: 0;
}

.crane .line.lineThree {
    height: 30%;
    top: 22%;
    left: 9%;
}

.crane .line.lineThree:after {
    content: '';
    position: absolute;
    height: 0.2em;
    width: 9000%;
    background: var(--primary-light);
    display: block;
    bottom: 0;
    left: -4500%;
    border: solid 1px var(--primary);
}

.craneTwo .line.lineThree:after {
    height: 0.1em;
}

.craneThree .line.lineThree:after {
    height: 0.05em;
}

.stand {
    height: 100%;
    width: 5%;
    right: 25%;
    z-index: 1;
    background: linear-gradient(to top, var(--primary), var(--primary-light));
}

.craneTwo .stand {
    background: linear-gradient(to top, var(--primary), #47d989);
}

.craneThree .stand {
    background: linear-gradient(to top, var(--primary), #3bbd74);
}

.weight {
    height: 20%;
    width: 8%;
    right: 4%;
    top: 12%;
    z-index: 2;
    background: #47d989;
}

.craneTwo .weight {
    background: #3bbd74;
}

.craneThree .weight {
    background: #37b06f;
}

.cabin {
    height: 9%;
    width: 12%;
    right: 24%;
    top: 20%;
    z-index: 2;
    background: #47d989;
}

.cabin:after {
    content: '';
    position: absolute;
    height: 10%;
    width: 100%;
    background: white;
    display: block;
    top: 60%;
    left: 0;
}

.craneTwo .cabin {
    background: #3bbd74;
}

.craneThree .cabin {
    background: #37b06f;
}

.arm {
    height: 7%;
    width: 100%;
    top: 15%;
    z-index: 3;
    background: #47d989;
}

.craneTwo .arm {
    background: #3bbd74;
}

.craneThree .arm {
    background: #37b06f;
}

.crane div.arm {
    border-top-left-radius: 10px;
}

.craneOne {
    width: 260px;
    height: 170px;
    left: 20%;
}

.craneOne div {
    border: solid 1px var(--primary);
}

.craneOne .line {
    height: 1px;
}

.craneOne .lineThree {
    width: 1px;
}

.craneTwo {
    width: 200px;
    height: 130px;
    transform: scaleX(-1);
    left: 40%;
    z-index: -1;
}

.craneTwo div {
    border: solid 1px var(--primary);
}

.craneTwo .line {
    height: 0.77px;
}

.craneTwo .lineThree {
    width: 0.71px;
    animation-delay: 3s;
}

.craneTwo .cabin, 
.craneTwo .arm, 
.craneTwo .weight {
    animation-delay: 3s;
}

.craneThree {
    width: 130px;
    height: 85px;
    left: 60%;
    z-index: -1;
}

.craneThree div {
    border: solid 1px var(--primary);
}

.craneThree .line {
    height: 0.5px;
}

.craneThree .lineThree {
    width: 0.5px;
    animation-delay: 1.5s;
}

.craneThree .cabin, 
.craneThree .arm, 
.craneThree .weight {
    animation-delay: 1.5s;
}

.crane {
    perspective: 600px;
}

.lineOne {
    transform-origin: right 0;
    animation: moveLineOne 12s infinite alternate;
}

.lineTwo {
    transform-origin: top left;
    animation: moveLineTwo 12s infinite alternate;
}

.lineThree {
    transform-origin: right center;
    animation: moveLineThree 12s ease-in-out infinite alternate;
}

.cabin, .arm {
    transform-origin: 80% center;
    animation: moveCrane 12s infinite alternate;
}

.weight {
    transform-origin: 0 center;
    animation: moveWeight 12s infinite alternate;
}

@keyframes moveCrane {
    0%, 20% {
        transform: rotateY(0);
    }
    70%, 100% {
        transform: rotateY(45deg);
    }
}

@keyframes moveWeight {
    0%, 20% {
        transform: rotateY(0) translateX(0);
    }
    70%, 100% {
        transform: rotateY(45deg) translateX(-50%);
    }
}

@keyframes moveLineOne {
    0%, 20% {
        transform: rotateY(0) rotateZ(-10deg);
    }
    70%, 100% {
        transform: rotateY(45deg) rotateZ(-10deg);
    }
}

@keyframes moveLineTwo {
    0%, 20% {
        transform: rotateY(0) rotateZ(29deg);
    }
    70%, 100% {
        transform: rotateY(15deg) rotateZ(29deg);
    }
}

@keyframes moveLineThree {
    0% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(2500%, -18%);
    }
    60% {
        transform: translate(11000%, -25%);
    }
    70% {
        transform: translate(9100%, -25%);
        height: 30%;
    }
    90%, 100% {
        transform: translate(9100%, -15%);
        height: 80%;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 10;
}

.footer-logo {
    height: 100px;
    margin-bottom: var(--spacing-sm);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-links li:not(:has(a)) {
    color: rgba(255, 255, 255, 0.7);
}

/* Copyright Bar */
.copyright-bar {
    background: #1a252f;
    padding: 1rem 0;
    text-align: center;
}

.copyright-bar p {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 400;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #FFFFFF;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

.modal-content h3 {
    margin-bottom: 0.5rem;
}

.modal-content > p {
    color: var(--gray);
    margin-bottom: var(--spacing-md);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition: var(--transition-slow);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Mobile First Responsive Design */

/* Base styles are for mobile devices */
/* Mobile adjustments for PIK navbar */
@media (max-width: 768px) {
    .navbar-pik {
        padding: 0.75rem;
    }
    
    .navbar-pik__card {
        border-radius: 16px;
        padding: 0 1rem;
        height: 64px;
    }
    
    .navbar-pik__logo img {
        height: 48px;
    }

    .navbar-pik__logo--text {
        font-size: 24px;
    }
    
    .navbar-pik__menu-btn {
        width: 44px;
        height: 44px;
    }
    
    .side-menu__panel {
        padding-top: 96px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar-pik {
        padding: 0.5rem;
    }
    
    .navbar-pik__card {
        border-radius: 14px;
        height: 60px;
    }
    
    .navbar-pik__logo img {
        height: 42px;
    }

    .navbar-pik__logo--text {
        font-size: 20px;
    }
    
    .side-menu__panel {
        padding-top: 84px;
    }
}

/* Mobile layouts */
.hero {
    min-height: 90vh;
}

.hero-buttons,
.hero-features,
.cta-actions {
    flex-direction: column;
    align-items: center;
}

.about-content,
.contacts-grid,
.projects-grid {
    grid-template-columns: 1fr;
}

.project-featured {
    grid-row: auto;
}

.yandex-map {
    height: 300px;
}

.geography-cities-grid {
    grid-template-columns: 1fr;
}

.map-overlay {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: var(--spacing-sm);
}

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

/* Yandex Maps markers are styled via API */

#outerCraneContainer {
    opacity: 0.05;
}

.buildings {
    height: 40px;
}

.buildings div {
    width: 20px;
}

.crane {
    display: none;
}

.craneOne {
    display: block;
}

/* Small tablets and large phones: 481px and up */
@media (min-width: 481px) {
    .hero {
        min-height: 100vh;
    }

    .yandex-map {
        height: 400px;
    }

    .map-stat-number {
        font-size: 2.5rem;
    }

    #outerCraneContainer {
        opacity: 0.08;
    }

    .buildings {
        height: 60px;
    }

    .buildings div {
        width: 30px;
    }
}

/* Tablets: 769px and up */
@media (min-width: 769px) {
    /* PIK navbar is same on all screen sizes */

    .hero-buttons,
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-features {
        flex-direction: row;
    }

    .yandex-map {
        height: 500px;
    }

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

    .map-overlay {
        position: absolute;
        top: var(--spacing-md);
        right: var(--spacing-md);
        margin-bottom: 0;
    }

    #outerCraneContainer {
        opacity: 0.15;
    }

    .buildings {
        height: 85px;
    }

    .buildings div {
        width: 42px;
    }

    .crane {
        display: block;
    }
}

/* Desktop: 1025px and up */
@media (min-width: 1025px) {
    .about-content,
    .contacts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-featured {
        grid-row: 1 / 3;
    }

    .yandex-map {
        height: 600px;
    }

    .geography-cities-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* ============================================
   MESSENGER BOTTOM BAR (Navbar Style)
   ============================================ */

.messenger-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 1rem 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.messenger-sheet.hidden {
    transform: translateY(100%);
}

/* Container - центрирует контент */
.messenger-sheet__container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Третья волна для более богатого эффекта */
.messenger-sheet.pulse .messenger-sheet__container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    animation: waveRipple 4s cubic-bezier(0.4, 0, 0.2, 1) infinite 1s;
    z-index: -1;
}

/* Card - зелёная плашка */
.messenger-sheet__card {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 -8px 32px rgba(46, 204, 113, 0.4);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.messenger-sheet__card:hover {
    box-shadow: 0 -10px 40px rgba(46, 204, 113, 0.5);
    transform: translateY(-2px);
}

/* Красивые волны с свечением */
.messenger-sheet__card::before,
.messenger-sheet__card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.messenger-sheet.pulse .messenger-sheet__card::before {
    animation: waveRipple 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.messenger-sheet.pulse .messenger-sheet__card::after {
    animation: waveRipple 4s cubic-bezier(0.4, 0, 0.2, 1) infinite 2s;
}

@keyframes waveRipple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    10% {
        opacity: 0.8;
    }
    40% {
        width: 140%;
        height: 180%;
        opacity: 0.4;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }
    100% {
        width: 160%;
        height: 220%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}


/* Link - кликабельный текст */
.messenger-sheet__link {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    text-decoration: none;
    flex-grow: 1;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.messenger-sheet__link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.messenger-sheet__link:active {
    transform: scale(0.98);
}

/* Close button */
.messenger-sheet__close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.messenger-sheet__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.messenger-sheet__close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Скрыта по умолчанию - появится при скролле */
.messenger-sheet {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.messenger-sheet.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .messenger-sheet {
        padding: 0 0.75rem 0.75rem;
    }
    
    .messenger-sheet__card {
        border-radius: 18px;
    }
    
    .messenger-sheet__card::before,
    .messenger-sheet__card::after {
        border-radius: 18px;
    }
    
    .messenger-sheet.pulse .messenger-sheet__container::before {
        border-radius: 18px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .messenger-sheet {
        padding: 0 0.5rem 0.5rem;
    }
    
    .messenger-sheet__card {
        border-radius: 16px;
        padding: 11px 18px;
        gap: 12px;
    }
    
    .messenger-sheet__card::before,
    .messenger-sheet__card::after {
        border-radius: 16px;
    }
    
    .messenger-sheet.pulse .messenger-sheet__container::before {
        border-radius: 16px;
    }
    
    .messenger-sheet__link {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .messenger-sheet__close {
        width: 30px;
        height: 30px;
        font-size: 22px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .messenger-sheet__card {
        padding: 10px 16px;
    }
    
    .messenger-sheet__link {
        font-size: 15px;
    }
}
