/* Company Section Wrapper (Shared Background) */
.company-section-wrapper {
    position: relative;
    background-color: #fff;
    padding-top: 100px;
    padding-bottom: 100px;
    overflow: hidden; /* Prevent horizontal scroll */
    z-index: 1;
    /* Wrapper sets base context */
}

@media (max-width: 1024px) {
    .company-section-wrapper {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .company-bg-1 {
        width: 420px;
        transform: translate(-170px, -300px) scaleX(-1);
        opacity: 0.15;
    }

    .company-bg-2 {
        width: 640px;
        right: -160px;
        opacity: 0.15;
    }
}

@media (max-width: 768px) {
    .company-section-wrapper {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .company-bg-1 {
        width: 340px;
        transform: translate(-190px, -260px) scaleX(-1);
        opacity: 0.12;
    }

    .company-bg-2 {
        width: 520px;
        right: -220px;
        opacity: 0.12;
    }
}

@media (max-width: 480px) {
    .company-section-wrapper {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .company-bg-1,
    .company-bg-2 {
        opacity: 0.1;
    }
}

.company-bg-element {
    position: absolute;
    /* Layering: Gradient (-2) < Image (-1) < Content (Auto/0+) */
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.company-bg-element img {
    width: 100%;
    height: auto;
    display: block;
}

.company-bg-1 {
    top: 0;
    left: 0;
    width: 520px;
    /* Reduced size as requested */
    margin: 0;
    padding: 0;
    line-height: 0;
    /* Removing line-height space for images */
    transform: translate(-150px, -320px) scaleX(-1);
    /* User suspects padding in image, let's pull it in a bit to be sure it touches corner */
}

.company-bg-2 {
    top: 50%;
    right: -100px;
    width: 800px;
    transform: translateY(-22%);
}


/* Stats Section */
.company-stats-section {
    position: relative;
    /* Removed z-index: 5 to share stacking context with wrapper elements */
    margin-bottom: 150px;
    background: transparent;
    /* Transparent to let images show */
    overflow: hidden; /* Prevent horizontal scroll */
}

@media (max-width: 1024px) {
    .company-stats-section {
        margin-bottom: 110px;
    }
}

@media (max-width: 768px) {
    .company-stats-section {
        margin-bottom: 80px;
    }

    .company-stats-section::before {
        top: 140px;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .company-stats-section {
        margin-bottom: 64px;
    }

    .company-stats-section::before {
        top: 120px;
    }
}

/* Background gradient strip behind cards via pseudo-element */
.company-stats-section::before {
    content: '';
    position: absolute;
    top: 180px;
    /* Offset from top */
    left: 0;
    right: 0;
    height: 300px;
    /* Fixed height roughly matching cards */
    background: linear-gradient(180deg, #FFFFFF 0%, #EDEDED 50%, #FFFFFF 100%);
    z-index: -2;
    /* Lowest layer, behind images */
}


/* Gradient Text Class */
.text-gradient {
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    /* Ensure padding for descenders */
    padding-bottom: 0.1em;
}

.stats-main-title {
    font-size: 42px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px auto;
    font-weight: 500;
    line-height: 1.25;
}

@media (max-width: 768px) {
    .stats-main-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .stats-main-title {
        font-size: 24px;
        margin-bottom: 30px;
        padding: 0 16px;
    }
}

.stats-main-title {
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    padding-bottom: 5px;
    /* Prevent cut-off */
}


.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    /* Constrain width to make cards narrower */
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
}

.stat-card {
    background: #FFFFFF;
    /* Solid white */
    border: 1px solid #F2F2F2;
    /* Subtle border to define edge against white bg */
    border-radius: 20px;
    padding: 24px;
    /* Reduced padding from 30px */
    overflow: hidden;
}

.stat-number {
    font-size: 42px;
    /* Reduced from 48px */
    font-weight: 600;
    color: #13519C;
    /* Adjusted to #13519C */
    margin-bottom: 16px;
    /* Reduced margin */
    padding-bottom: 16px;
    /* Reduced padding */
    line-height: 1;
    border-bottom: 1px solid #E4E4E4;
    display: block;
    /* Ensure border spans full width if needed, or inline-block if text width */
    width: 100%;
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 36px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    /* Changed to 500 as requested */
    color: #000;
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 14px;
    /* Reduced from 15px */
    color: #666;
    line-height: 1.4;
}


/* About Section */
.company-about-section {
    position: relative;
    z-index: 5;
    overflow: hidden; /* Prevent horizontal scroll */
}

.about-page-about {
    padding: 88px 0 104px;
}

.about-history-section {
    padding: 80px 0 120px;
}

.about-history-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-history-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.about-history-title {
    margin: 0;
}

.about-history-title {
    font-size: 40px;
    font-weight: 500;
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.about-history-timeline {
    margin-top: 0;
}

.about-history-timeline-top {
    display: flex;
    align-items: center;
    gap: 0;
}

.about-history-year {
    font-size: 13px;
    font-weight: 500;
    color: #13519C;
}

.about-history-line-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
}

.about-history-line-base {
    width: 100%;
    height: 2px;
    background: #D0DDFF;
    border-radius: 999px;
}

.about-history-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.about-history-years {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.about-history-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.history-nav-btn:hover {
    background: #F5F9FF;
}

.about-history-main {
    margin-top: 40px;
}

.history-slide-grid {
    display: grid;
    grid-template-columns: clamp(240px, 19vw, 320px) minmax(0, 1fr) max-content;
    gap: 48px;
    align-items: center;
}

.history-slide-text {
    display: flex;
    justify-content: center;
}

.history-image-card {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

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

.history-slide-text p {
    font-size: 15px;
    line-height: 1.6;
    color: #1F1F1F;
    font-weight: 500;
    max-width: 520px;
    margin: 0;
}

.history-slide-year {
    text-align: right;
}

.history-year-big {
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 600;
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 1024px) {
    .about-history-section {
        padding: 72px 0 96px;
    }

    .history-nav-btn {
        width: 44px;
        height: 44px;
    }

    .history-slide-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "year year"
            "image text";
        gap: 28px;
        align-items: start;
    }

    .history-slide-image {
        grid-area: image;
    }

    .history-slide-text {
        grid-area: text;
        justify-content: flex-start;
    }

    .history-slide-year {
        grid-area: year;
        text-align: right;
    }
}

@media (max-width: 768px) {
    .about-history-section {
        padding: 60px 0 80px;
    }

    .about-history-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .about-history-controls {
        align-self: flex-end;
    }

    .history-slide-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "year"
            "image"
            "text";
        gap: 20px;
    }

    .history-slide-year {
        text-align: left;
    }

    .history-year-big {
        font-size: 44px;
        white-space: normal;
    }

    .history-image-card {
        aspect-ratio: 16 / 10;
    }

    .history-slide-text p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .about-history-main {
        margin-top: 28px;
    }

    .history-nav-btn:focus-visible {
        outline: 2px solid #13519C;
        outline-offset: 3px;
    }
}

.history-nav-btn.swiper-button-disabled,
.history-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.about-story-section {
    background: #193B7B;
    color: #FFFFFF;
    padding-top: 120px;
    padding-bottom: 140px;
    padding-left: 0;
    padding-right: 0;
}

.about-story-section .container {
    padding-left: calc(clamp(24px, 6vw, 40px) + env(safe-area-inset-left, 0px));
    padding-right: calc(clamp(24px, 6vw, 40px) + env(safe-area-inset-right, 0px));
}

.about-team-section {
    background: linear-gradient(180deg, #193B7B 0%, #202020 100%);
    color: #FFFFFF;
    padding: 120px 0 140px;
}

.about-story-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-story-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: translateY(2px);
}

.about-story-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #FFFFFF 5.65%, #C8DBFF 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.about-story-text {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.about-team-header {
    max-width: 720px;
}

.about-team-title {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #FFFFFF 5.65%, #C8DBFF 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.about-team-text {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.about-team-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .about-team-section {
        padding: 96px 0 112px;
    }

    .about-team-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .about-team-section {
        padding: 72px 0 88px;
    }

    .about-team-title {
        font-size: 32px;
    }

    .about-team-text {
        font-size: 14px;
    }

    .about-team-list {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
    }

    .team-hover-photo {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .about-team-section {
        padding: 60px 0 72px;
    }

    .about-team-title {
        font-size: 26px;
    }

    .about-team-section .production-card .prod-card-hover {
        padding: 18px 16px 18px;
    }
}

.team-card {
    border-radius: 24px;
    overflow: hidden;
}

.team-card-sub {
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

.team-card-position {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 6px;
    color: #193B7B;
}

.team-card-desc {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
    color: #898989;
}

.team-card-desc p {
    margin: 0 0 6px;
}

.team-card-desc p:last-child {
    margin-bottom: 0;
}

.about-eco-section {
    background-color: #202020;
    color: #FFFFFF;
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}

.about-eco-section .container {
    position: relative;
    z-index: 2;
}

.about-eco-header {
    max-width: 1060px;
    margin: 0 auto 48px;
    text-align: center;
}

.about-eco-title {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 16px;
}

.about-eco-text {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 500;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.about-eco-cert-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.about-eco-cert {
    flex: 0 0 auto;
}

.about-eco-section .ecology-bg-crest {
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    background-position: center calc(100% + 600px);
    background-image: url('../assets/images/bg-eco-crest-about.png');
    background-size: clamp(900px, 88vw, 1400px) auto;
    background-repeat: no-repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.about-eco-section .ecology-certificates {
    max-width: 1060px;
    margin: 0 auto;
}

.about-eco-section .ecology-slider {
    padding: 0 0 20px;
}

.about-eco-section .cert-image-wrapper {
    height: clamp(220px, 58vw, 320px);
    padding: 12px;
}

.about-eco-cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.about-eco-cert-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    opacity: 0.92;
    text-align: center;
    max-width: 260px;
}

@media (max-width: 1200px) {
    .about-eco-section {
        padding: 80px 0 96px;
    }

    .about-eco-header {
        margin-bottom: 40px;
    }

    .about-eco-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .about-eco-section {
        padding: 72px 0 88px;
    }

    .about-eco-header {
        margin-bottom: 32px;
    }

    .about-eco-title {
        font-size: 32px;
    }

    .about-eco-text {
        font-size: 14px;
    }

    .about-eco-section .ecology-bg-crest {
        opacity: 0.22;
        background-position: center calc(100% + 420px);
        background-size: clamp(760px, 110vw, 1200px) auto;
    }

    .about-eco-cert-title {
        font-size: 13px;
        max-width: 210px;
    }
}

@media (max-width: 480px) {
    .about-eco-section {
        padding: 60px 0 72px;
    }

    .about-eco-header {
        margin-bottom: 28px;
    }

    .about-eco-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .about-eco-text {
        font-size: 14px;
    }

    .about-eco-cert-title {
        max-width: 240px;
    }
}

.quality-page-main {
    background: transparent;
}

.quality-hero {
    position: relative;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    color: #ffffff;
}

.quality-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        linear-gradient(180deg, rgba(29, 100, 233, 0.5) 0%, rgba(24, 90, 191, 0) 25%, rgba(22, 87, 180, 0) 75%, rgba(19, 81, 156, 0.5) 100%);
}

.quality-hero .container {
    position: relative;
    z-index: 1;
}

.quality-hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}

.quality-hero-title {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 600;
    margin: 0 auto 16px;
    background:
        linear-gradient(0deg, #FFFFFF, #FFFFFF),
        linear-gradient(180deg, #FFFFFF 5.65%, #C8DBFF 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.quality-hero-desc {
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto 0;
}

.quality-hero-cards {
    margin-top: 72px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 24px;
}

.quality-hero-card {
    min-width: 260px;
    max-width: 300px;
    padding: 16px 18px 14px;
    border-radius: 24px;
    background: #FFFFFF1A;
    border: 1px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(180deg, rgba(207, 207, 207, 0.3) 0%, rgba(207, 207, 207, 0.1) 100%), 
        linear-gradient(180deg, rgba(207, 207, 207, 0.3) 0%, rgba(207, 207, 207, 0.1) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-align: left;
}

.quality-hero-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.quality-hero-card-icon img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.quality-hero-card-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.quality-hero-card-body {
    padding-top: 10px;
    border-top: 1px solid #FFFFFF33;
}

.quality-hero-card-text {
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.9;
}

.quality-lab-section {
    padding: 110px 0 140px;
    background: #FFFFFF;
}

.quality-lab-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.quality-lab-title {
    font-size: 36px;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.quality-lab-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #0F172A;
    max-width: 560px;
    font-weight: 300;
    margin-bottom: 28px;
}

.quality-lab-desc p:last-child {
    margin-bottom: 0;
}

.quality-lab-desc strong,
.quality-lab-desc b {
    font-weight: 500;
}

.quality-lab-params {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.quality-lab-param {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.quality-lab-param-index {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #E0EBFF;
    color: #13519C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
}

.quality-lab-param-text {
    font-size: 15px;
    color: #898989;
    font-weight: 300;
}

.quality-lab-image-wrap {
    justify-self: stretch;
}

.quality-lab-image-inner {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    height: 100%;
}

.quality-lab-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quality-lab-image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29, 100, 233, 0) 50%, rgba(29, 100, 233, 0.6) 100%);
}

@media (max-width: 1024px) {
    .quality-lab-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .quality-lab-section {
        padding: 90px 0 110px;
    }
}

.quality-steps-section {
    padding: 90px 0 120px;
    background: #F5F9FF;
    position: relative;
    z-index: 1;
}

.quality-steps-section.quality-steps-scroll-enabled {
    z-index: 100;
    isolation: isolate;
}

.quality-steps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.quality-steps-title {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.quality-steps-nav {
    display: flex;
    gap: 12px;
}

.quality-steps-arrow {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #F5F9FF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quality-steps-arrow svg {
    display: block;
}

.quality-steps-arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.quality-steps-slider-wrap {
    padding: 18px 0 28px;
}

.quality-steps-scroll-wrap {
    padding: 18px 0 28px;
}

.quality-steps-scroll-viewport {
    height: auto;
    overflow: visible;
}

.quality-steps-scroll-track {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 768px) {
    .quality-steps-header {
        margin-bottom: clamp(16px, 2vw, 22px);
    }

    .quality-steps-section {
        --quality-steps-viewport-pad: clamp(18px, 2.2vw, 28px);
        padding-bottom: 0;
        min-height: calc(100vh - var(--site-header-offset, 72px) - var(--admin-bar-offset, 0px));
        display: flex;
        padding-top: clamp(28px, 4vw, 60px);
    }

    .quality-steps-section.quality-steps-scroll-enabled {
        height: calc(100vh - var(--site-header-offset, 72px) - var(--admin-bar-offset, 0px));
        min-height: 0;
        padding-bottom: clamp(18px, 3vw, 34px);
        box-sizing: border-box;
    }

    .quality-steps-section .container {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .quality-steps-scroll-wrap {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding-top: 0;
        padding-bottom: 0;
        min-height: 0;
    }

    .quality-steps-scroll-viewport {
        flex: 1;
        height: auto;
        min-height: 0;
        overflow: hidden;
        position: relative;
        border-radius: 24px;
        background: #F5F9FF;
    }

    .quality-steps-scroll-track {
        will-change: transform;
        position: relative;
        height: 100%;
    }

    .quality-steps-page {
        position: absolute;
        inset: var(--quality-steps-viewport-pad) 0 calc(var(--quality-steps-viewport-pad) + clamp(24px, 3vw, 44px)) 0;
        display: flex;
        align-items: stretch;
        will-change: transform, opacity;
    }

    .quality-steps-page-inner {
        width: 100%;
        height: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 32px;
        align-content: stretch;
    }

    .quality-steps-page-inner > .quality-step-card:only-child {
        grid-column: 1 / -1;
    }

    .quality-steps-page-inner > .quality-step-card {
        height: 100%;
    }

    .quality-steps-section.quality-steps-scroll-enabled .quality-step-card {
        height: 100%;
        min-height: 0;
    }

    .quality-steps-section.quality-steps-scroll-enabled .quality-step-slide {
        height: 100%;
    }
}

@media (max-width: 1199px) {
    .quality-steps-page-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.quality-step-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.quality-step-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: flex-start;
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    padding: 28px 28px 32px;
    box-shadow: none;
    height: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.quality-step-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: 100%;
}

.quality-step-title {
    font-size: 22px;
    font-weight: 600;
    color: #1D3B7B;
    font-family: var(--font-main);
}

.quality-step-text {
    font-size: 18px;
    color: #0F172A;
    font-weight: 500;
    line-height: 1.6;
    max-width: 560px;
    font-family: var(--font-main);
}

.quality-step-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: auto;
}

.quality-step-btn-main,
.quality-step-btn-icon-only {
    border-radius: 999px;
    border: none;
    background: #FFFD00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.quality-step-btn-main {
    padding: 12px 24px;
}

.quality-step-btn-text {
    font-size: 14px;
    font-weight: 500;
    color: #13519C;
}

.quality-step-btn-icon-only {
    width: 44px;
    height: 44px;
    border-left: none;
}

.quality-step-btn-icon-only svg {
    display: block;
    transition: transform 0.25s ease;
}

.quality-step-actions:hover .quality-step-btn-icon-only svg,
.quality-step-btn-main:hover + .quality-step-btn-icon-only svg,
.quality-step-btn-icon-only:hover svg {
    transform: rotate(-45deg);
}

.quality-methods-section {
    padding: 110px 0 140px;
    background: #FFFFFF;
}

.quality-methods-header {
    text-align: left;
    margin-bottom: 32px;
}

.quality-methods-title {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.quality-methods-slider-wrap {
    position: relative;
}

.quality-methods-slide {
    height: auto;
}

.quality-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 26px;
}

.quality-method-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.quality-method-bg {
    position: absolute;
    inset: 0;
}

.quality-method-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quality-method-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.72) 100%);
    pointer-events: none;
}

.quality-method-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29, 100, 233, 0) 50%, rgba(29, 100, 233, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.quality-method-card:hover .quality-method-overlay::after {
    opacity: 1;
}

.quality-method-inner {
    position: relative;
    z-index: 1;
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: auto;
}

.quality-method-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.quality-method-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.quality-method-title {
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.quality-method-subtitle {
    font-size: 14px;
    font-weight: 300;
    color: #E5E7EB;
}

.quality-methods-nav {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.quality-methods-arrow {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #F5F9FF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quality-methods-arrow svg {
    display: block;
}

@media (max-width: 1024px) {
    .quality-methods-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .quality-methods-section {
        padding: 72px 0 96px;
    }

    .quality-methods-grid {
        grid-template-columns: 1fr;
    }
}

.quality-step-image-wrap {
    justify-self: stretch;
}

@media (min-width: 768px) {
    .quality-step-image-wrap {
        height: 100%;
        min-height: 0;
    }
}

.quality-step-image-inner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    height: auto;
}

@media (min-width: 768px) {
    .quality-step-card {
        align-items: stretch;
    }

    .quality-step-image-inner {
        aspect-ratio: auto;
        height: 100%;
        min-height: 0;
    }
}

.quality-step-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quality-step-image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29, 100, 233, 0) 40%, rgba(29, 100, 233, 0.7) 100%);
}

.quality-process-section {
    padding: 96px 0 110px;
    background: #F5F9FF;
}

.quality-process-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.quality-process-media {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 18px;
}

.quality-process-media-main {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 500px;
}

.quality-process-media-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quality-process-media-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29, 100, 233, 0) 50%, rgba(29, 100, 233, 0.8) 100%);
}

.quality-process-media-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 500px;
}

.quality-process-media-small {
    border-radius: 24px;
    overflow: hidden;
    flex: 0 0 48%;
}

.quality-process-media-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quality-process-content {
    max-width: 520px;
}

.quality-process-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #0C3C75;
    color: #0C3C75;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
}

.quality-process-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 14px;
}

.quality-process-text {
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
    color: #0F172A;
    margin-bottom: 20px;
}

.quality-process-text p {
    margin: 0 0 8px;
}

.quality-process-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quality-process-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.quality-process-list-index {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #E5EDFF;
    color: #13519C;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quality-process-list-text {
    font-size: 14px;
    line-height: 1.5;
    color: #898989;
    font-weight: 300;
}

@media (max-width: 1200px) {
    .quality-process-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .quality-process-media {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .quality-process-section {
        padding: 72px 0 96px;
    }

    .quality-process-media {
        grid-template-columns: 1fr;
    }

    .quality-process-media-side {
        flex-direction: row;
    }

    .quality-process-media-main {
        height: 260px;
    }

    .quality-process-media-small {
        height: 125px;
    }
}

.quality-process-text b,
.quality-process-text strong {
    font-weight: 500;
}

@media (max-width: 1024px) {
    .quality-step-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quality-steps-section {
        padding: 64px 0 84px;
    }

    .quality-steps-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .quality-steps-slider-wrap {
        padding: 26px 18px 34px;
    }
}

@media (max-width: 768px) {
    .quality-hero {
        min-height: 320px;
        padding: 80px 0 40px;
    }

    .quality-hero-cards {
        margin-top: 40px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .quality-hero-card {
        width: 100%;
        max-width: 100%;
        padding: 14px 16px 12px;
    }

    .quality-hero-card-body {
        padding-top: 8px;
    }
}

.about-team-section .prod-card-title-lg {
    margin: 0 0 8px;
}

.about-team-section .team-card-position {
    margin-bottom: 8px;
}

.team-hover-photo {
    width: 100%;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 16px;
}

.team-hover-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.team-hover-body {
    padding: 18px 4px 4px;
}

.about-team-section .production-card .prod-card-hover {
    background: #ffffff;
    padding: 20px 20px 22px;
    box-sizing: border-box;
}

.story-card {
    padding: 14px 18px;
    border-radius: 20px;
    background: #FFFFFF1A;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid transparent;
    border-image-slice: 1;
    border-image-source: linear-gradient(180deg, rgba(207, 207, 207, 0.3) 0%, rgba(207, 207, 207, 0.1) 100%), linear-gradient(180deg, rgba(207, 207, 207, 0.3) 0%, rgba(207, 207, 207, 0.1) 100%);
    max-width: 280px;
    box-sizing: border-box;
    color: #FFFFFF;
}

.story-card-index {
    font-size: 32px;
    font-weight: 500;
    opacity: 0.2;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFFFFF33;
}

.story-card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
}

.story-card-text {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
}

.story-card-text p {
    margin: 0 0 8px;
}

.story-card-text p:last-child {
    margin-bottom: 0;
}

.story-card-text strong,
.story-card-text b {
    font-weight: 800;
}

.about-story-block-header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.about-story-block-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-story-block-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: translateY(2px);
}

.about-story-block-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.1;
    background: linear-gradient(180deg, #FFFFFF 5.65%, #C8DBFF 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.about-story-block-text {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

/* New row-based layout */
.about-story-row {
    margin-top: 80px;
}

.about-story-row-1 {
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
    align-items: flex-start;
    gap: 48px;
}

.about-story-top {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: flex-start;
    gap: 16px;
}

.about-story-top-media-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.about-story-top-media {
    aspect-ratio: 3 / 4;
    width: 283px;
    max-width: 283px;
    margin-left: 24px;
    transform: translateX(-40px);
    opacity: 0.2;
}

.about-story-top-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-card-main {
    position: relative;
    max-width: 280px;
    z-index: 2;
}

.about-story-row-2 {
    display: grid;
    grid-template-columns: minmax(0, 0.25fr) minmax(0, 0.5fr) minmax(0, 0.25fr);
    align-items: flex-start;
    gap: 40px;
}

.story-card-col-left .story-card {
    margin-top: -30px;
}

.story-card-col-right .story-card {
    margin-top: 30px;
}

.about-story-col-center-text {
    text-align: left;
}

.about-story-block-center .about-story-block-header {
    justify-content: flex-start;
}

.about-story-row-3 {
    display: grid;
    grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
    align-items: center;
    gap: 48px;
}

.about-story-image-vertical {
    aspect-ratio: 3 / 4;
    max-width: 320px;
    margin: 40px auto 0;
}

.about-story-image-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.2;
}

.about-story-col-text-right {
    text-align: left;
}

.about-story-block-right .about-story-block-header {
    justify-content: flex-start;
}

@media (max-width: 1024px) {
    .about-story-section {
        padding-top: 96px;
        padding-bottom: 112px;
    }

    .about-story-row {
        margin-top: 56px;
    }

    .about-story-row-1 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-story-top-media-wrap {
        flex-direction: column;
    }

    .story-card,
    .story-card-main {
        max-width: none;
        width: 100%;
    }

    .about-story-top-media {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-top: 16px;
        transform: none;
        aspect-ratio: 16 / 10;
        opacity: 0.16;
    }

    .about-story-row-2 {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "left"
            "right";
        gap: 24px;
    }

    .story-card-col-left {
        grid-area: left;
    }

    .about-story-col-center-text {
        grid-area: text;
        min-width: 0;
    }

    .story-card-col-right {
        grid-area: right;
    }

    .story-card-col-left .story-card,
    .story-card-col-right .story-card {
        margin-top: 0;
    }

    .about-story-row-3 {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "image";
        gap: 24px;
        align-items: start;
    }

    .about-story-col-text-right {
        grid-area: text;
    }

    .about-story-col-image-left {
        grid-area: image;
    }

    .about-story-image-vertical {
        max-width: none;
        aspect-ratio: 16 / 10;
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    .about-story-section {
        padding-top: 72px;
        padding-bottom: 88px;
    }

    .about-story-row {
        margin-top: 40px;
    }

    .about-story-row:first-child {
        margin-top: 0;
    }

    .about-story-icon {
        width: 34px;
        height: 34px;
    }

    .about-story-title {
        font-size: 32px;
    }

    .about-story-text[data-readmore="1"]:not(.is-expanded) {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 7;
        overflow: hidden;
    }

    .about-story-readmore-btn {
        display: inline-flex;
        margin-top: 10px;
        background: transparent;
        border: none;
        padding: 0;
        color: #C8DBFF;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .about-story-readmore-btn:focus-visible {
        outline: 2px solid #C8DBFF;
        outline-offset: 3px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .about-story-section {
        padding-top: 60px;
        padding-bottom: 72px;
    }

    .about-story-title {
        font-size: 26px;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.section-tag {
    display: inline-block;
    border: 1px solid #13519C;
    color: #13519C;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-weight: 500;
}

.company-about-section .section-tag {
    padding: 5px 14px;
    font-size: 11px;
    margin-bottom: 18px;
}

.about-section-title {
    font-size: 42px;
    margin-bottom: 30px;
    line-height: 1.1;
    font-weight: 500;

    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Applying to h2 directly if class not added in template but style override */
.company-about-section h2.section-title {
    font-size: 38px;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 500;
    display: block;
    /* Ensure block for gradient */

    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    padding-bottom: 5px;
    /* Prevent cut-off */
}


.about-description {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
    /* Regular text 300 */
}

.about-description strong,
.about-description b {
    font-weight: 500;
    /* Bold text 500 */
}

.about-description p {
    margin-bottom: 20px;
}

/* About Actions */
.about-actions {
    display: flex;
    align-items: center;
    gap: 0;
    /* Stick together */
}

.about-actions-link {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.about-actions-link .btn-about-wide,
.about-actions-link .btn-primary-arrow {
    pointer-events: none;
}

.about-actions-link:hover .btn-about-wide {
    background: #0f3b75;
    color: #fff;
    opacity: 1;
}

.about-actions-link:hover .btn-primary-arrow {
    background: #0f3b75;
}

.btn-about-wide {
    padding: 16px 40px;
    border-radius: 12px;
    margin-right: 4px;
    /* Very small gap */

    background: #13519C;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    box-shadow: none !important;
    text-decoration: none;
    display: inline-flex;
    /* Ensure flex behavior */
    align-items: center;
    justify-content: center;
    border: none;
}

/* Explicit hover state without opacity/visibility changes */
.btn-about-wide:hover {
    background: #0f3b75;
    /* Simple color darken */
    color: #fff;
    opacity: 1;
}

.btn-primary-arrow {
    width: 56px;
    height: 54px;
    /* Adjust to match button height (roughly 16*2 padding + lineheight? ) */
    /* Let's measure: 16px padding top/bottom + 19px text (approx) approx 51-54px total. */
    background: #13519C;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed transition/transform */
}

/* Simple hover for arrow */
.btn-primary-arrow:hover {
    background: #0f3b75;
}


/* About Images Grid - 3 Images */
.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-images-col-left {
    display: flex;
    flex-direction: column;
}

.about-images-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-img-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.about-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Left main image takes full height */
.about-images-col-left .about-img-card {
    height: 100%;
    border-radius: 24px;
}

/* Right column images take half height each approx, or flexibility */
.about-images-col-right .about-img-card {
    flex: 0 0 48%;
    /* Две карточки занимают чуть меньше полной высоты колонки */
    border-radius: 24px;
}


/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-main-title {
        font-size: 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-images {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .about-images-col-left, 
    .about-images-col-right {
        width: 100%;
        display: block; /* Reset flex column */
    }

    .about-img-card {
        height: auto !important;
        aspect-ratio: 16/10; /* Maintain consistent aspect ratio */
        margin-bottom: 20px;
    }
    
    .about-images-col-right .about-img-card:last-child {
        margin-bottom: 0;
    }

    .about-img-card img {
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .about-page-about {
        padding: 60px 0 72px;
    }

    .company-about-section h2.section-title {
        font-size: 32px;
    }

    .about-description {
        margin-bottom: 28px;
    }

    .about-actions-link {
        width: 100%;
        justify-content: space-between;
    }

    .btn-about-wide {
        flex: 1 1 auto;
        padding: 14px 20px;
    }

    .btn-primary-arrow {
        width: 52px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .about-page-about {
        padding: 52px 0 64px;
    }

    .company-about-section h2.section-title {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .company-about-section .section-tag {
        margin-bottom: 14px;
    }

    .about-grid {
        gap: 28px;
    }
}
