/* ========================================
   UNIFIED ABOUT US PAGE STYLES - BSL PRO
   Matching design system from service pages
   ======================================== */

/* GENERAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.text-center {
    text-align: center !important;
}

/* CONTAINER */
.t-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ROW & COLUMN SYSTEM */
.t-row {
    display: flex;
    margin: 0 -20px;
    flex-wrap: wrap;
}

.t-col {
    padding: 0 20px;
    flex: 1;
}

.t-col_6 {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

/* CLEAN CLASSES SUPPORT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.row {
    display: flex;
    margin: 0 -20px;
    flex-wrap: wrap;
}

.col {
    padding: 0 20px;
    flex: 1;
}

.col-6 {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.col-center {
    margin: 0 auto;
}

/* SECTION CLASSES */
.overview-section,
.team-section,
.gallery-section,
.services-overview-section,
.cta-section {
    display: block;
    width: 100%;
}

/* ==============================================
   COMPANY OVERVIEW SECTION
   ============================================== */

.company-overview {
    position: relative;
}

.overview-content {
    padding-right: 2rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a4870;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.overview-description {
    margin-bottom: 2.5rem;
}

.overview-description p {
    color: #556b7d;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.philosophy-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid #34465a;
    position: relative;
}

.philosophy-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #304658;
    margin-bottom: 1rem;
}

.philosophy-box p {
    color: #556b7d;
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}

.overview-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.overview-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.overview-image:hover .about-img {
    transform: scale(1.03);
}

/* ==============================================
   STATS SECTION
   ============================================== */

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

.stat-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}



.stat-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #34465a 0%, #4a6477 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #34465a 0%, #4a6477 100%);

}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #304658;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-text {
    color: #556b7d;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* ==============================================
   SERVICES OVERVIEW SECTION
   ============================================== */

.services-overview-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.service-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #34465a 0%, #4a6477 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #304658;
    line-height: 1.4;
    margin: 0;
}

/* ==============================================
   TEAM SECTION
   ============================================== */

.team-section {
    padding: 90px 0;
    background: #ffffff;
}

.team-header {
    text-align: center;
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid #34465a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover .team-photo {
    border-color: #34465a;
    box-shadow: 0 8px 20px rgba(241, 196, 15, 0.3);
    transform: scale(1.05);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .team-photo img {
    transform: scale(1.1);
}

.team-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #304658;
    margin-bottom: 0.5rem;
}

.team-position {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #34465a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.team-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #0077b5;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.team-linkedin:hover {
    background: #005582;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.team-linkedin svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* ==============================================
   GALLERY SECTION
   ============================================== */

.gallery-section {
    padding: 90px 0;
    background: #ffffff;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}



.gallery-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #304658;
    font-size: 1.5rem;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* Special large items */
.gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item--tall {
    grid-row: span 2;
}

/* ==============================================
   CTA SECTION
   ============================================== */

.cta-content {
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    color: white !important;
}

.cta-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2.75rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

.cta-description {
    font-size: 1.1875rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.6 !important;
}

.cta-actions {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.cta-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1.125rem 2.5rem !important;
    border-radius: 0.75rem !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 1.0625rem !important;
    text-align: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cta-button.primary {
    background: #ffff !important;
    color: #34465a !important;
    box-shadow: 0 10px 25px rgb(217 217 217 / 40%) !important;
    border: none !important;
}

.cta-button.primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgb(217 217 217 / 40%); !important;
    background: #ffff !important;
}

.cta-button.secondary {
    background: transparent !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-3px) !important;
}

.btn-arrow {
    font-size: 1.5rem !important;
    transition: transform 0.3s ease !important;
}

.cta-button:hover .btn-arrow {
    transform: translateX(5px) !important;
}

/* ==============================================
   ANIMATION ON SCROLL
   ============================================== */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
[data-animate-delay="100"].animated {
    transition-delay: 0.1s;
}

[data-animate-delay="200"].animated {
    transition-delay: 0.2s;
}

[data-animate-delay="300"].animated {
    transition-delay: 0.3s;
}

[data-animate-delay="400"].animated {
    transition-delay: 0.4s;
}

[data-animate-delay="500"].animated {
    transition-delay: 0.5s;
}

[data-animate-delay="600"].animated {
    transition-delay: 0.6s;
}

[data-animate-delay="700"].animated {
    transition-delay: 0.7s;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

/* TABLET (1024px and below) */
@media (max-width: 1024px) {
    .t-col_6,
    .col-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .row {
        flex-direction: column;
    }

    .overview-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

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

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

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .gallery-item--large,
    .gallery-item--wide,
    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

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

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

/* MOBILE (768px and below) */
@media (max-width: 768px) {
    .container,
    .t-container {
        padding: 0 20px;
    }

    .row {
        margin: 0 -10px;
    }

    .col,
    .col-6 {
        padding: 0 10px;
    }

    .overview-section {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }

    .team-section {
        padding: 60px 0 !important;
    }

    .gallery-section {
        padding: 60px 0 !important;
    }

    .services-overview-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .cta-section {
        padding-top: 75px !important;
        padding-bottom: 80px !important;
    }

    .section-title {
        font-size: 1.75rem;
        text-align: center;
    }

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

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

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

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

    .team-photo {
        width: 160px;
        height: 160px;
    }

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

    .cta-section {
        padding-top: 75px !important;
        padding-bottom: 80px !important;
    }

    .cta-title {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .cta-description {
        font-size: 0.9375rem !important;
        margin-bottom: 1.5rem !important;
    }

    .cta-button {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }

    .philosophy-box {
        padding: 1.5rem;
    }
}

/* SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
    .container,
    .t-container {
        padding: 0 15px;
    }

    .overview-section {
        padding-top: 50px !important;
        padding-bottom: 30px !important;
    }

    .team-section {
        padding: 50px 0 !important;
    }

    .gallery-section {
        padding: 50px 0 !important;
    }

    .services-overview-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .cta-section {
        padding-top: 60px !important;
        padding-bottom: 65px !important;
    }

    .section-title {
        font-size: 28px!important;
    }

.overview-description {
    margin-bottom: 2.5rem;
    text-align: center;
}

    .overview-description p {
        font-size: 1rem;
    }

    .stat-item {
        padding: 2rem 1.5rem;
    }

    .stat-icon {
        width: 56px;
        height: 56px;
    }

    .stat-icon svg {
        width: 28px;
        height: 28px;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-text {
        font-size: 0.75rem !important;
    }

    #stats_section {
        padding: 45px 0 !important;
    }

    .service-icon {
        width: 52px;
        height: 52px;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .stat-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-text {
        font-size: 0.75rem !important;
    }

    #stats_section {
        padding: 45px 0 !important;
    }

    .service-title {
        font-size: 1rem;
    }

    .team-photo {
        width: 140px;
        height: 140px;
    }

    .team-name {
        font-size: 1.125rem;
    }

    .team-position {
        font-size: 0.875rem;
    }

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

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }
}

/* ==============================================
   LIGHTBOX
   ============================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-counter {
        bottom: 1rem;
        padding: 0.4rem 1.2rem;
        font-size: 0.75rem;
    }

    .lightbox-content {
        max-width: 95%;
    }
}

/* =======================================
   MOBILE GALLERY CAROUSEL FOR ABOUT PAGE
   Карусель с свайпом влево-вправо
   ======================================= */
@media (max-width: 768px) {
    /* Скрыть галерею по умолчанию, показать только обертку */
    .gallery-grid {
        display: block !important;
        position: relative;
        overflow: hidden;
        margin: 0 -20px;
        padding: 0 !important;
    }

    /* Контейнер для карусели */
    .gallery-carousel-wrapper {
        display: flex !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 20px;
        padding: 0 20px 20px 20px;
    }

    /* Скрыть скроллбар */
    .gallery-carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    /* Элементы галереи в карусели */
    .gallery-grid .gallery-item {
        flex: 0 0 90%;
        max-width: 90%;
        scroll-snap-align: center;
        margin: 0 !important;
        transform: scale(0.98);
        transition: transform 0.3s ease;
    }

    /* Активный элемент */
    .gallery-grid .gallery-item.active {
        transform: scale(1);
    }

    .gallery-grid .gallery-item {
        height: 300px !important;
        border-radius: 15px;
        overflow: hidden;
    }

    .gallery-grid .gallery-item img {
        height: 100%;
        object-fit: cover;
    }

    /* Индикаторы карусели */
    .gallery-indicators {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 30px;
        padding: 0 20px;
    }

    .gallery-indicator {
        width: 35px;
        height: 4px;
        background: rgba(48, 70, 88, 0.2);
        border-radius: 3px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        position: relative;
    }

    .gallery-indicator:hover {
        background: rgba(241, 196, 15, 0.5);
    }

    .gallery-indicator.active {
        background: #34465a;
        width: 50px;
        height: 4px;
        box-shadow: 0 2px 8px rgba(241, 196, 15, 0.4);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        margin: 0 -15px;
    }

    .gallery-carousel-wrapper {
        gap: 15px;
        padding: 0 15px 15px 15px;
    }

    .gallery-grid .gallery-item {
        flex: 0 0 85%;
        max-width: 85%;
        height: 250px !important;
    }

    .gallery-indicators {
        gap: 8px;
        margin-top: 20px;
    }

    .gallery-indicator {
        width: 30px;
        height: 3px;
    }

    .gallery-indicator.active {
        width: 45px;
    }
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
