/* ==========================================================================
   Страница "О компании" (About Page — Figma Frame 8517 / Node 1:8379)
   ========================================================================== */

.km-about-page {
    width: 100%;
    background-color: #FFFFFF;
    position: relative;
    box-sizing: border-box;
}

.km-about-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 69px;
    padding-right: 69px;
    box-sizing: border-box;
    position: relative;
}

/* --------------------------------------------------------------------------
   1. Hero-шапка страницы (Frame 8540 / Node 1:8465)
   -------------------------------------------------------------------------- */
.km-about-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: #F3F3F3;
    min-height: 352px;
    padding: 79px 0 70px 0;
    margin-top: 0;
    margin-bottom: 80px;
    overflow: hidden;
    box-sizing: border-box;
}

.km-about-hero__bg-lines {
    position: absolute;
    right: 0;
    top: 0;
    width: 1621px;
    height: 352px;
    pointer-events: none;
    z-index: 1;
}

.km-about-hero__bg-lines img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: right top;
}

.km-about-hero__container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 69px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.km-about-hero__title-badge {
    display: inline-flex;
    align-items: center;
    background-color: #CD1719;
    height: 63px;
    padding: 0 35px 0 24px;
    clip-path: polygon(0 0, calc(100% - 35px) 0, 100% 35px, 100% 100%, 0 100%);
    margin-bottom: 24px;
}

.km-about-hero__title {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 62.4px;
    color: #FFFFFF;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0;
}

.km-about-hero__lead-wrp {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 997px;
    margin-left: 13px;
}

.km-about-hero__lead-badge {
    flex-shrink: 0;
    width: 40px;
    height: 29px;
    display: flex;
    align-items: center;
}

.km-about-hero__lead-badge svg {
    display: block;
    width: 40px;
    height: 4px;
}

.km-about-hero__lead-text {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28.8px;
    color: #2B2E31;
    max-width: 933px;
    margin: 0;
}

/* --------------------------------------------------------------------------
   2. Секция История (Frame 8542 / Node 1:8525)
   -------------------------------------------------------------------------- */
.km-about-history {
    display: flex;
    justify-content: space-between;
    gap: clamp(24px, 3.5vw, 64px);
    margin-bottom: 80px;
    align-items: flex-start;
}

.km-about-history__col-left {
    flex: 1 1 58%;
    max-width: 58%;
}

.km-about-history__col-right {
    flex: 1 1 38%;
    max-width: 38%;
    padding-top: 50px;
}

.km-about-history__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 44.2px;
    color: #2B2E31;
    margin: 0 0 16px 0;
}

.km-about-history__text {
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 28.8px;
    color: #2B2E31;
    margin: 0 0 24px 0;
}

.km-about-history__img-left {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.km-about-history__img-right {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 424px;
    object-fit: cover;
    display: block;
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   3. Сетка показателей (.km-about__stats)
   -------------------------------------------------------------------------- */
.km-about__stats--page {
    margin-top: 80px !important;
    margin-bottom: 120px !important;
}

/* --------------------------------------------------------------------------
   4. Секция История в датах (Frame 8250 / Node 1:8557)
   -------------------------------------------------------------------------- */
.km-about-timeline-section {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(35, 35, 35, 0.85) 0%, rgba(20, 20, 20, 0.90) 80%, rgba(10, 10, 10, 0.95) 100%), url('/local/assets/images/about-timeline-bg.webp') center/cover no-repeat;
    padding: 144px 0 120px 0;
    margin-bottom: 120px;
    color: #FFFFFF;
    overflow: hidden;
}

.km-about-timeline-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 69px;
    box-sizing: border-box;
    position: relative;
}

.km-about-timeline__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 42px;
}

.km-about-timeline__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 46px;
    line-height: 59.8px;
    color: #FFFFFF;
    margin: 0;
}

.km-about-timeline__nav {
    display: flex;
    gap: 12px;
}

.km-about-timeline__nav-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.km-about-timeline__nav-btn--next {
    background: #333333;
}

.km-about-timeline__nav-btn:hover {
    background: #CD1719;
}

.km-about-timeline__nav-btn svg path {
    fill: #FFFFFF;
}

/* Шкала дат */
.km-about-timeline__scale-wrp {
    position: relative;
    margin-bottom: 64px;
    padding-top: 10px;
    width: 100%;
}

.km-timeline-thumbs {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.km-about-timeline__scale-line {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(228, 228, 228, 0.3);
    z-index: 1;
}

.km-timeline-thumbs .swiper-wrapper {
    position: relative;
    z-index: 2;
}

.km-about-timeline__date-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
}

.km-about-timeline__pin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1px solid rgba(43, 46, 49, 0.24);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.km-about-timeline__date-badge {
    width: 150px;
    height: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #A1A1A1;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    line-height: 22.4px;
    color: #FFFFFF;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.km-about-timeline__date-item.is-active .km-about-timeline__pin {
    background-color: #FFFFFF;
    border: 2px solid #CD1719;
    box-shadow: 0 0 0 5px rgba(247, 58, 58, 0.16);
}

.km-about-timeline__date-item.is-active .km-about-timeline__date-badge {
    background-color: #CD1719;
    border-color: #CD1719;
}

.km-about-timeline__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(24px, 3.5vw, 64px);
}

.km-about-timeline__info {
    flex: 1 1 40%;
    max-width: 40%;
}

.km-about-timeline__event-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 44.2px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 0 24px 0;
}

.km-about-timeline__event-text {
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 28.8px;
    color: #FFFFFF;
}

.km-about-timeline__event-text p {
    margin: 0 0 16px 0;
}

.km-about-timeline__media {
    flex: 1 1 56%;
    max-width: 56%;
    height: auto;
}

.km-about-timeline__img {
    width: 100%;
    height: auto;
    max-height: 623px;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   5. Секция Миссия компании (Frame 8548 / Node 1:8585)
   -------------------------------------------------------------------------- */
.km-about-mission-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(24px, 3.5vw, 80px);
    margin-bottom: 120px;
}

.km-about-mission__left {
    flex: 1 1 54%;
    max-width: 54%;
}

.km-about-mission__title {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 46px;
    line-height: 59.8px;
    color: #2B2E31;
    margin: 0 0 24px 0;
}

.km-about-mission__text {
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 28.8px;
    color: #2B2E31;
    margin: 0 0 40px 0;
}

.km-about-mission__quote-card {
    position: relative;
    background-color: #CD1719;
    padding: 32px;
    box-sizing: border-box;
    clip-path: polygon(35px 0, 100% 0, 100% calc(100% - 35px), calc(100% - 35px) 100%, 0 100%, 0 35px);
    max-width: 582px;
    width: 100%;
}

.km-about-mission__quote-text {
    font-family: 'Geologica', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: 18px;
    line-height: 25.2px;
    color: #FFFFFF;
    margin: 0 0 24px 0;
}

.km-about-mission__author {
    display: flex;
    flex-direction: column;
}

.km-about-mission__author-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.km-about-mission__author-role {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.km-about-mission__quote-icon {
    position: absolute;
    right: 32px;
    bottom: 32px;
    width: 91px;
    height: 59px;
    pointer-events: none;
}

.km-about-mission__right {
    flex: 1 1 42%;
    max-width: 42%;
    height: auto;
    max-height: 726px;
}

.km-about-mission__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   5.1 Информационный блок качества каталога (Frame 8209 / Node 1:8767)
   -------------------------------------------------------------------------- */
.km-catalog-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 72px;
    margin-bottom: 40px;
    gap: 40px;
    width: 100%;
}

.km-catalog-info__content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    max-width: 992px;
}

.km-catalog-info__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.km-catalog-info__icon svg,
.km-catalog-info__icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.km-catalog-info__text {
    font-family: 'Geologica', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 28.8px;
    color: #2B2E31;
    margin: 0;
    max-width: 746px;
}

.km-catalog-info__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 269px;
    height: 56px;
    background-color: #F3F3F3;
    color: #000000;
    font-family: 'Geologica', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    border: none;
    flex-shrink: 0;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    transition: all 0.3s ease;
}

.km-catalog-info__btn:hover {
    background-color: #CD1719 !important;
    color: #FFFFFF !important;
}

.km-catalog-info__btn:hover svg path {
    fill: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   6. Секция Декларации (Licenses / Node 1:8772)
   -------------------------------------------------------------------------- */
.km-about-licenses-section {
    margin-top: 80px;
    margin-bottom: 120px;
    width: 100%;
}

.km-about-licenses__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.km-about-licenses__title {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 46px;
    line-height: 59.8px;
    color: #2B2E31;
    margin: 0;
    text-transform: uppercase;
}

.km-about-licenses__nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.km-about-licenses__nav-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(32, 32, 32, 0.16);
    cursor: pointer;
    transition: all 0.3s ease;
}

.km-about-licenses__nav-btn:hover {
    background: #CD1719;
    border-color: #CD1719;
}

.km-about-licenses__nav-btn:hover svg path {
    fill: #FFFFFF;
}

.km-licenses-slider {
    width: 100%;
    overflow: hidden;
}

.km-license-slide {
    width: 352px !important;
    flex: 0 0 352px !important;
    height: 440px;
    display: flex;
    box-sizing: border-box;
}

.km-license-card {
    position: relative;
    width: 352px;
    height: 440px;
    background-color: #F7F7F7;
    border: 1px solid #E4E4E4;
    padding: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.km-license-card__bg-lines {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 352px;
    height: 440px;
    pointer-events: none;
    z-index: 1;
}

.km-license-card__bg-lines img,
.km-license-card__bg-lines svg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.km-license-card__title {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #2B2E31;
    margin: 0;
    position: relative;
    z-index: 2;
    text-transform: none;
}

.km-license-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.km-license-card__size {
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 22.4px;
    color: #2B2E31;
}

.km-license-card__btn {
    width: 82px;
    height: 82px;
    background-color: #E2E2E2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    margin-right: -32px;
    margin-bottom: -32px;
}

.km-license-card:hover {
    border-color: #CD1719;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.km-license-card:hover .km-license-card__btn {
    background-color: #CD1719;
}

.km-license-card:hover .km-license-card__btn svg path {
    stroke: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1560px) {
    .km-about-history {
        gap: 40px;
    }
    .km-about-stats {
        gap: 24px;
    }
    .km-about-stat__num {
        font-size: 72px;
        line-height: 90px;
    }
    .km-about-mission__right {
        flex: 0 0 500px;
        max-width: 500px;
    }
}

@media (max-width: 1024px) {
    .km-about-history {
        flex-direction: column;
    }
    .km-about-history__col-left,
    .km-about-history__col-right {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .km-about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .km-about-timeline__content {
        flex-direction: column;
    }
    .km-about-timeline__info,
    .km-about-timeline__media {
        max-width: 100%;
    }
    .km-about-mission-section {
        flex-direction: column;
    }
    .km-about-mission__right {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .km-about-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .km-about-hero {
        padding: 40px 0 40px 0;
        margin-bottom: 40px;
        min-height: auto;
    }
    .km-about-hero__container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .km-about-hero__title-badge {
        height: auto;
        padding: 8px 24px 8px 16px;
        margin-bottom: 16px;
    }
    .km-about-hero__title {
        font-size: 26px;
        line-height: 34px;
    }
    .km-about-hero__lead-wrp {
        margin-left: 0;
    }
    .km-about-history__img-left,
    .km-about-history__img-right {
        height: 280px;
    }
    .km-about-stats {
        grid-template-columns: 1fr;
    }
    .km-about-timeline-section {
        padding: 60px 0 60px 0;
        margin-bottom: 60px;
    }
    .km-about-timeline__title,
    .km-about-mission__title,
    .km-about-licenses__title {
        font-size: 32px;
        line-height: 42px;
    }
}

@media (max-width: 480px) {
    .km-about-container,
    .km-about-hero__container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .km-about-hero__title {
        font-size: 22px;
        line-height: 28px;
    }
    .km-about-history__title,
    .km-about-timeline__title,
    .km-about-mission__title,
    .km-about-licenses__title {
        font-size: 24px;
        line-height: 30px;
    }
    .km-about-history__img-left,
    .km-about-history__img-right {
        height: 220px;
    }
}
