/*
Theme Styles
*/

:root {
    --color-primary: #FF5A00;
    /* Vibrant Orange */
    --color-secondary: #00877A;
    --color-bg-gray: #E0E6EA;
    /* Footer/Backgrounds */
    --font-main: 'Exo 2.0', sans-serif;
    --container-width: 1440px;
    /* Reset to 1440px as per new request */
    --border-radius: 0px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: #fff;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
    /* Removing padding to let Swiper and Grid be exactly 1420px */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-green {
    background: #87d448;
    color: #fff;
    padding: 10px 45px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
}

.btn-green:hover {
    background: #76ba3d;
    transform: translateY(-2px);
}

.btn-primary:hover {
    background: #e04e00;
    transform: translateY(-2px);
}

/* HEADER */
.site-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: #fff;
    /* White background for header */
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

/* Custom logo styling to mimic 'ArtBioTech' text from image if no img */
.site-branding span {
    color: var(--color-primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 1.375rem;
    /* 22px in rem */
    color: #333;
    position: relative;
    /* For Pseudo-element underline */
    padding-bottom: 5px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* HEADER RIGHT SECTION */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-search .search-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9ab4bd;
    display: flex;
    align-items: center;
}

.header-search .search-btn:hover {
    color: var(--color-primary);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.4;
}

.contact-phone {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.contact-email {
    font-size: 16px;
    color: #666;
}

.static-menu {
    gap: 25px !important;
}

.static-menu a {
    font-size: 1.375rem !important;
    font-weight: 500 !important;
}

/* HERO SECTION SLIDER */
.hero-section-slider {
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
    background: #fff;
}

.hero-section-slider .swiper-slide {
    height: 500px;
    display: flex;
    align-items: center;
    padding: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: #fff;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    padding-left: 0rem;
    /* Aligned to container */
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero-title span {
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-image-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* SWIPER PAGINATION CUSTOM */
.hero-pagination-container {
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    background: #fff;
}

.hero-pagination-container .swiper-pagination {
    position: static !important;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-pagination-container .swiper-pagination-bullet {
    width: 22px;
    height: 22px;
    background: transparent;
    border: 2px solid #9ab4bd;
    /* Footer-like color */
    opacity: 1;
    margin: 0 !important;
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-pagination-container .swiper-pagination-bullet::after {
    content: '';
    width: 0;
    height: 0;
    background: var(--color-primary);
    border-radius: 50%;
    transition: 0.3s;
}

.hero-pagination-container .swiper-pagination-bullet-active::after {
    width: 12px;
    height: 12px;
}

.hero-section-slider-wrapper .swiper-button-next,
.hero-section-slider-wrapper .swiper-button-prev {
    display: none !important;
}

/* Gray-blue separator bar */
.section-separator {
    width: 100vw;
    /* Full viewport width */
    height: 3.125rem;
    /* 50px */
    background-color: #9ab4bd;
    margin-left: calc(-50vw + 50%);
    /* Break out of container */
    margin-right: calc(-50vw + 50%);
    margin-bottom: 0;
    /* No gap, grid handles spacing */
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Inner shadow */
}

.gray-frame {
    background-color: #e0e0e0 !important;
    min-height: 200px;
    /* Default min height for grid items */
}


/* WIREFRAME MODE STYLES */
/* Validating requests: "all sections starting from banner should be simple blocks with outline and dimensions" */
.hero-section,
.bento-grid,
.grid-card {
    position: relative;
    background: #fff;
    /* Reset backgrounds to white for wireframe look */
}



/* Override specifics for wireframe clarity */
.grid-card {
    border-radius: 0;
    box-shadow: none;
}

/* BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 0.625rem;
    /* 10px */
    margin-top: 3.125rem;
    /* 50px in rem */
    margin-bottom: 5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1420px;
    width: 100%;
    background: #fff;
    /* White background */
}

.grid-card {
    /* border: 1px solid #000; */
    /* padding: 1.875rem; */
    background: #e0e0e0;
    min-width: 0;
    /* Critical for Swiper */
    box-sizing: border-box;
    /* Ensure padding doesn't break width */
    border-radius: 1.25rem;
}

/* Left Column Card */
.card-1 {
    height: auto;
    min-height: 56.56rem;
    /* 905px */
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
    /* Light background for empty areas */
}

.info-plate-orange {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    font-weight: 500;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 160px;
    /* Compact size like in prototype */
    position: relative;
    z-index: 5;
}

.info-plate-content {
    text-align: left;
}

/* Video Background Styles */
.card-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.video-preview.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-video-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    /* Сменим на 2rem как на макете обычно, пользователь уточнит если надо именно 21.5 */
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-video-btn:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
}

.play-video-btn svg {
    color: #000;
    width: 1.5rem;
    height: 1.5rem;
}

.play-video-btn.hidden {
    display: none;
}

#video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    /* Space for orange plate */
    z-index: 1;
    display: flex;
    align-items: flex-end;
    /* Align video to bottom */
}

#video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    /* Fill width, show bottom portion with figure */
}

.card-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keep cover for background videos in cards 3 and 6 */
}


/* Row 2 */
/* DESKTOP GRID DEFINITION */
.grid-right-column {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 0.625rem !important;
    /* 10px in REM */
}

/* Row 1: Small Left, Big Right */
.card-2 {
    grid-column: 1 / 2;
    /* Span 1 column */
    grid-row: 1;
    height: 18.4375rem;
    background-size: cover;
    background-position: center;
}

.card-3 {
    grid-column: 2 / 4;
    /* Span 2 columns */
    grid-row: 1;
    height: 18.4375rem;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-3-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-catalog {
    min-width: 12rem;
    font-size: 1.25rem;
}

/* Row 2: Full Width */
.card-4 {
    grid-column: 1 / 4;
    /* Span 3 columns (Full width) */
    grid-row: 2;
    width: 100%;
    height: 18.4375rem;
}

/* Row 3: Big Slider Left, Small Right (Vice Versa) */
.card-5 {
    grid-column: 1 / 3;
    /* Span 2 columns (Left) */
    grid-row: 3;
    width: 100%;
    height: 18.4375rem;
    min-width: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    background-color: #9ab4bd !important;
    color: #fff;
    border-radius: 1.25rem;
}

.card-5 .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Центрируем весь блок текста */
    padding: 0 2rem 2.3rem;
}

.slide-content {
    text-align: left;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
    line-height: 1.1;
}

.slide-text {
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0;
    color: #fff;
}

/* White Navigation Arrows */
.card-5 .swiper-button-next,
.card-5 .swiper-button-prev {
    color: #fff !important;
}

.card-5 .swiper-button-next::after,
.card-5 .swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: bold;
}


.card-6 {
    grid-column: 3 / 4;
    /* Span 1 column (Right) */
    grid-row: 3;
    width: 100%;
    height: 18.4375rem;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-6-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(154, 180, 189, 0.7);
    /* Цвет #9ab4bd с прозрачностью */
    z-index: 2;
}

.card-6-content {
    position: relative;
    z-index: 5;
}

.feedback-btn {
    width: 8rem;
    height: 8rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    line-height: 1.2;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feedback-btn:hover {
    transform: scale(1.05);
}

.pulse-circles .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    opacity: 0;
    animation: pulse 3s infinite;
}

.pulse-circles .circle:nth-child(2) {
    animation-delay: 1s;
}

.pulse-circles .circle:nth-child(3) {
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 160%;
        height: 160%;
        opacity: 0;
    }
}




/* Product & Tags row */
.card-product {
    background: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-tags {
    background: url('assets/molecules.png') no-repeat center/cover, #cad8de;
    position: relative;
}

/* Stats Row (Card 4) */
.card-4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FEF9F7 !important;
    /* Очень светлый тёплый оттенок как на макете */
    padding: 3rem 2rem;
    text-align: center;
}

.stats-wrapper {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 2.5rem;
}

.stat-item {
    flex: 1;
}

.stat-item strong {
    font-size: 3.5rem;
    /* Large numbers */
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1;
}

.stat-item span {
    display: block;
    font-size: 1.125rem;
    color: #333;
    margin-top: 0.5rem;
    font-weight: 600;
}

.stats-description {
    max-width: 800px;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-primary);
    /* Red/Orange text as on prototype */
    font-weight: 500;
    margin: 0;
}

/* Bottom row: Reliability & feedback */
.card-reliability {
    background: #9ab4bd;
    color: #fff;
    display: flex;
    align-items: center;
}

.card-feedback {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: bold;
}

/* Responsive Media Query */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
    }

    /* Forced Layout Reset */
    .grid-right-column {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(3, 1fr) !important;
        gap: 0.625rem !important;
    }

    .hero-section-slider .swiper-slide {
        height: 18.75rem !important;
        /* 300px */
    }

    .card-intro-girl.card-1 {
        min-height: 31.25rem;
        /* 500px */
        height: auto;
    }

    /* Stack everything */
    .card-2,
    .card-3,
    .card-4,
    .card-5,
    .card-6 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-tags {
        background: url('assets/molecules.png') no-repeat center/cover, #cad8de;
        position: relative;
    }

    /* Stats Row */
    .card-stats {
        grid-column: span 2;
        background: #fff5f0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 40px;
        text-align: center;
    }

    .stat-item strong {
        display: block;
        font-size: 36px;
        color: var(--color-primary);
        font-weight: 800;
    }

    .stat-item span {
        font-size: 14px;
        color: #666;
    }

    .stats-desc {
        grid-column: span 2;
        text-align: center;
        font-size: 14px;
        color: #888;
        margin-top: -10px;
        padding-bottom: 20px;
    }

    /* Bottom row: Reliability & feedback */
    .card-reliability {
        background: #9ab4bd;
        color: #fff;
        display: flex;
        align-items: center;
    }

    .card-feedback {
        background: #fff;
        border: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feedback-circle {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 2px solid var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-primary);
        font-weight: bold;
    }

    /* Responsive Media Query */
    @media (max-width: 1024px) {
        .bento-grid {
            grid-template-columns: 1fr;
            margin-bottom: 3rem;
        }

        .grid-right-column {
            display: flex;
            /* Use flex for column stacking */
            flex-direction: column;
            gap: 1rem;
        }

        .hero-section-slider .swiper-slide {
            height: 18.75rem !important;
            /* 300px */
        }

        .card-intro-girl.card-1 {
            min-height: 31.25rem;
            /* 500px */
            height: auto;
        }

        /* Stack everything */
        .card-2,
        .card-3,
        .card-4,
        .card-5,
        .card-6 {
            width: 100% !important;
            grid-column: auto !important;
            grid-row: auto !important;
            min-height: 18.75rem;
            /* 300px min height for blocks */
        }
    }
}

/* FOOTER */
.site-footer {
    background: #9ab4bd;
    color: #fff;
    padding: 2rem 0;
    font-size: 1rem;
    min-height: auto;
    max-height: 18.75rem;
    /* 300px в rem */
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.site-footer .container {
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.footer-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    max-height: 6rem;
    height: 6rem;
    width: auto;
}

.footer-company p {
    margin: 0.25rem 0;
    line-height: 1.5;
    font-size: 1.125rem;
    margin-left: 6.4rem;
}

.footer-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-contacts h4 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
}

.contacts-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.5rem 3rem;
}

.contact-row {
    display: contents;
}

.contact-row .email {
    font-weight: 400;
    font-size: 1.125rem;
    text-align: left;
}

.contact-row .department {
    text-align: left;
    font-weight: 600;
    font-size: 1.125rem;
}

.phone-line {
    margin: 0.75rem 0 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
}

.phone-row {
    grid-column: 1;
    display: block;
}

.phone-row .phone {
    display: block;
    padding-top: 1.75rem;
    font-size: 1.45rem;
    font-weight: 700;
}

.footer-contacts a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-contacts a:hover {
    opacity: 0.8;
}

/* Footer Bottom on White Background */
.footer-bottom-white {
    background: #fff;
    padding: 1.8rem;
    /* Generous padding */
    border-top: 1px solid #f0f0f0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    /* 18px */
    color: #666;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #9ab4bd;
    /* Theme blue-gray */
    text-decoration: underline;
    /* Underlined as per prototype */
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
    color: #9ab4bd;
}

.footer-copyright {
    color: #9ab4bd;
    /* Theme blue-gray */
}

.footer-copyright p {
    margin: 0;
}

/* Footer Disclaimer */
.footer-disclaimer {
    margin-top: 2rem;
    /* More space */
    padding-top: 0;
    border-top: none;
    /* Removed border as requested */
    font-size: 1rem;
    /* 16px */
    color: #9ab4bd;
    /* Theme blue-gray */
    line-height: 1.8;
    text-align: center;
}

.footer-disclaimer p {
    margin: 0.1rem;
    color: #9ab4bd;
    /* Theme blue-gray for all paragraphs */
}

.footer-disclaimer p:first-child {
    font-weight: 500;
    color: #9ab4bd;
    font-size: 2rem;
    /* 32px - Large header disclaimer */
}