/* ===== ОБЩИЕ СТИЛИ И HERO (ДЕСКТОП) ===== */
.hero {
    overflow: hidden;
}

.about-content > section:not(.about-awards) {
    padding: 76px 0;
    color: var(--white);
    background: transparent;
}

.about-content > .hero {
    padding-top: 0px;
}

.about-hero__tags {
    font-weight: 500;
    font-size: 24px;
    line-height: 1.3;
    color: var(--Text-Light-Blue);
    margin: 0 0 36px;
}

.about-hero__main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--Text-Light-Blue);
}

.about-hero__title {
    font-weight: 500;
    font-size: 56px;
    line-height: 1.1;
    max-width: 900px;
    margin: 0;
    padding: 0;
}

.about-hero__title-accent {
    color: var(--cyan);
}

.about-hero__meta {
    width: 231px;
    min-width: 120px;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.about-hero__meta-accent { 
    color: var(--Text-Light-Blue);
}

.about-hero__meta p {
    margin: 0;
}

.about-hero__bottom {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 16px;
    padding-top: 36px;
    align-items: start;
}

.about-hero__company {
    font-weight: 500;
    font-size: 24px;
    line-height: 1.3;
    color: var(--cyan);
    margin: 0;
    align-self: start;
}

.about-hero__description {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
}

.about-hero__description p {
    margin: 0 0 16px;
}

.about-hero__description p:last-child {
    margin-bottom: 0;
}

/* БЛОК СТАТИСТИКА (ДЕСКТОП) */
.about-stats__grid {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.about-stats__grid .stat {
    min-height: 103px;
    padding: 0;
    flex: 0 0 auto;
}

.about-stats__grid .stat:first-child {
    text-align: left;
}

.about-stats__grid .stat:last-child {
    text-align: right;
}

.about-stats .stat strong {
    display: block;
    color: var(--cyan);
    padding-bottom: 8px;
    font-size: 56px;
    line-height: 1;
}

.about-stats .stat span {
    display: block;
    padding-top: 6px;
    color: var(--muted-light);
    font-size: 18px;
    font-weight: 400;
}

/* ЯКОРНОЕ МЕНЮ (ДЕСКТОП) */
.about-nav {
    padding: 76px 0 0 0;
}

.about-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-nav__list li {
    display: inline-flex;
    align-items: center;
}

.about-nav__list li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 16px;
    margin: 0 16px;
    background: linear-gradient(90deg, rgba(85, 236, 238, .24) 0%, rgba(85, 236, 238, .16) 100%);
}

.about-nav__list a {
    display: inline-block;
    color: var(--white);
    font-family: "Inter Tight", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.about-nav__list a:hover,
.about-nav__list a:focus-visible {
    color: var(--cyan);
}

.about-nav__list a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
    border-radius: 2px;
}

/* НАШИ ПРИНЦИПЫ (ДЕСКТОП) */
.about-principles {
    padding: 70px 0;
    scroll-margin-top: 88px;
}

.about-principles__heading {
    max-width: 920px;
    margin-bottom: 40px;
}

.about-principles__heading h2 {
    margin: 0;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
}

.about-principles__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.about-mission {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-card);
}

.about-mission__label {
    margin: 0;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.3;
    color: var(--cyan);
}

.about-mission__quote {
    margin: 0;
    max-width: 580px;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.5;
    color: var(--white);
}

.about-mission__quote .color-cyan {
    color: var(--cyan);
}

.about-mission__foot {
    margin-top: auto;
    padding-top: 30px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    color: var(--muted-light);
    text-transform: uppercase;
}

.about-values__title {
    margin: 0 0 18px;
    font-weight: 700;
    font-size: 23px;
    line-height: 1.5;
    color: var(--white);
}

.about-values__list {
    display: grid;
    gap: 0;
}

.value {
    border-bottom: 1px solid;
    border-image-source: linear-gradient(90deg, rgba(85, 236, 238, .24) 0%, rgba(85, 236, 238, .16) 100%);
    border-image-slice: 1;
}

.value summary {
    list-style: none;
    padding: 17px 0;
    display: flex;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--white);
}

.value summary::-webkit-details-marker {
    display: none;
}

.value summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    margin-left: auto;
    color: var(--cyan);
    transition: color .2s ease;
}

.value[open] summary::after {
    content: '−';
}

.value summary:hover::after {
    color: var(--cyan);
}

.value p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--white);
    margin: 0 20px 20px 0;
}

.about-principles__grid-vision h3 {
    font-size: 32px;
    font-weight: 500;
    color: var(--cyan);
    padding: 76px 0 16px 0;
    margin: 0;
    line-height: 130%;
}

.about-principles__grid-vision p {
    padding: 0;
    margin: 0;
    font-size: 19px;
    line-height: 1.5;
}

/* ИСТОРИЯ КОМПАНИИ (ДЕСКТОП) */

/* Прячем мобильную версию по умолчанию (на десктопе) */
.history-mobile {
    display: none;
}

.about-history {
    padding: 76px 0;
    color: var(--white);
    scroll-margin-top: 88px;
}

.about-history__heading {
    max-width: 920px;
    margin-bottom: 40px;
}

.about-history__heading h2 {
    margin: 0;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.1;
}

.about-history__heading h2 .color-cyan {
    color: var(--cyan);
}

.about-history__heading p {
    margin: 16px 0 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    color: var(--muted-light, #7c8a93);
}

.history-slider {
    position: relative;
}

.history-slider__viewport {
    overflow: hidden;
}

.history-slider__track {
    position: relative;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0;
}

.history-slider__track::-webkit-scrollbar {
    display: none;
}

.history-slider__year {
    flex: 0 0 auto;
    flex-basis: calc((100% - 5 * 16px) / 6);
    min-width: 100px;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0 0 46px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: var(--muted, #667078);
    cursor: pointer;
    position: relative;
    transition: color .2s ease;
    text-align: left;
}

.history-slider__year::before {
    content: "";
    position: absolute;
    left: 0;
    right: -16px;
    bottom: 8px;
    height: 1px;
    background: rgba(37, 76, 83, 1);
    z-index: 1;
}

.history-slider__year:last-child::before {
    right: 0;
}

.history-slider__year::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: rgba(37, 76, 83, 1);
    transition: background .2s ease, box-shadow .2s ease;
    z-index: 2;
}

.history-slider__year:hover,
.history-slider__year:focus-visible {
    color: var(--white);
}

.history-slider__year:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
    border-radius: 4px;
}

.history-slider__year.is-active {
    color: var(--cyan);
}

.history-slider__year.is-active::after,
.history-slider__year:hover::after {
    background: rgba(83, 234, 236, 1);
    box-shadow: 0px 0px 8px 0px rgba(83, 234, 236, 0.6);
}

.history-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 48px;
    align-items: start;
    padding-top: 40px;
}

.history-panel__year {
    font-weight: 500;
    font-size: 150px;
    line-height: 1.1;
    color: var(--cyan);
}

.history-panel__title {
    margin: 0 0 16px;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.3;
    color: var(--cyan);
}

.history-panel__text {
    margin: 0;
    font-size: 19px;
    line-height: 1.5;
    color: var(--white);
}

.history-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

.history-controls__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(var(--scrollbar-rgb), .25);
    background: linear-gradient(106.47deg, rgba(var(--scrollbar-rgb), 0.1) 0%, rgba(60, 152, 157, 0.1) 100%);
    color: var(--cyan);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

.history-controls__btn:hover:not(:disabled) {
    border-color: rgba(85, 236, 238, .6);
    color: #55ECEE;
}

.history-controls__btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

.history-controls__btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* СТИЛИ ДЛЯ МОБИЛЬНОГО АККАРДИОНА БАЗОВЫЕ */
/* Убираем стандартный треугольник у details */
.history-mobile__summary {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}
.history-mobile__summary::-webkit-details-marker {
    display: none;
}

/* Квадратик с номером (01, 02...) */
.history-mobile__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(var(--cyan-rgb), .08); /* темно-бирюзовый фон */
    color: var(--cyan);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 500;
}

/* Год */
.history-mobile__year {
    color: var(--white);
    font-size: 20px;
    font-weight: 500;
}

/* Контент внутри (заголовок и текст) */
.history-mobile__content {
    padding-left: 72px; /* Отступ, чтобы выровнять по году */
}

/* Активный год в мобильной версии (когда открыт) */
.history-mobile__item[open] .history-mobile__num {
    box-shadow: 0 0 15px rgba(var(--cyan-rgb), 0.3); /* Свечение вокруг квадратика */
    border: 1px solid rgba(var(--cyan-rgb), 0.1);
}

.history-mobile__title {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
}

.history-mobile__text {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

/* НАШ ПОДХОД (ДЕСКТОП) */
.about-approach {
    padding: 70px 0;
    scroll-margin-top: 88px;
}

.about-approach__heading {
    max-width: 920px;
    margin-bottom: 40px;
}

.about-approach__heading h2 {
    margin: 0;
    color: var(--white);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
}

/* ВОТ ЗДЕСЬ ВЕРНУЛИ 3 КОЛОНКИ И GAP 16 */
.about-approach__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.about-approach-card {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(to top right, var(--surface-card) 0%, var(--surface-muted) 100%);
    transition: border-color .25s ease, background .25s ease;
}

.about-approach-card:hover {
    border-color: rgba(var(--cyan-rgb), .44);
    background: var(--card-hover);
}

.about-approach-card__icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    margin-bottom: 40px;
    border-radius: 8px;
    background: rgba(var(--cyan-rgb), .08);
}

.about-approach-card__icon img {
    width: 22px;
    height: 22px;
}

.about-approach-card h3 {
    margin: 0;
    color: var(--white);
    font-size: 24px;
    line-height: 1.3;
}

.about-approach-card > div > p {
    margin: 16px 0 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.about-approach-card__bottom {
    margin-top: auto;
    width: 100%;
}

.about-approach-card .about-approach-card__bottom > p {
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    text-transform: uppercase;
}

/* ОПЫТ РАБОТЫ (ДЕСКТОП) */
.about-experience {
    padding: 70px 0;
    scroll-margin-top: 88px;
}

.about-experience__heading {
    max-width: 1080px;
    margin-bottom: 40px;
}

.about-experience__heading h2 {
    margin: 0;
    color: var(--white);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
}

.about-experience__heading h2 span {
    color: var(--cyan);
}

.about-experience__card {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-card);
    opacity: 1;
}

.about-experience__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.about-experience__text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.about-experience__text p {
    margin: 0;
    color: var(--muted-light);
    font-size: 20px;
    line-height: 1.4;
}

.about-experience a.about-experience__btn {
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(var(--scrollbar-rgb), 1);
    background: rgba(var(--scrollbar-rgb), 0.1);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.about-experience a.about-experience__btn:hover,
.about-experience a.about-experience__btn:focus-visible {
    color: var(--bg);
    background: linear-gradient(93.25deg, #81FFFF 0%, #55ECEE 100%);
    box-shadow: 0 2px 30px 0 rgba(var(--scrollbar-rgb), 0.4);
}

/* СКРОЛЛ ЛОГОТИПОВ (ДЕСКТОП) */
.about-content > section.about-talking {
    padding: 0;
}

.about-talking__viewport {
    width: 100%;
    overflow: hidden;
}

.about-talking__track {
    display: flex;
    width: max-content;
    animation: about-talking-scroll 28s linear infinite;
    will-change: transform;
}

.about-talking__viewport:hover .about-talking__track {
    animation-play-state: paused;
}

.about-talking__group {
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
    padding-right: 16px;
}

.about-talking__card {
    position: relative;
    display: flex;
    width: 250px;
    height: 160px;
    flex: 0 0 250px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
    transition: border-color .25s ease, background .25s ease;
}

.about-talking__card:hover,
.about-talking__card:focus-visible {
    border-color: rgba(var(--cyan-rgb), .44);
    background: var(--card-hover);
}

.about-talking__card img {
    max-width: 72%;
    max-height: 66px;
}

.about-talking__card span {
    position: absolute;
    right: 16px;
    bottom: 15px;
    left: 16px;
    color: var(--white);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .about-talking__card span {
        opacity: 0;
        transition: opacity .25s ease;
    }

    .about-talking__card:hover span,
    .about-talking__card:focus-visible span {
        opacity: 1;
    }
}

@keyframes about-talking-scroll {
    to {
        transform: translateX(-25%);
    }
}


/* =======================================================
   ПЛАНШЕТЫ (max-width: 1024px)
   ======================================================= */
@media (max-width: 1024px) {
    .about-principles__heading h2 { font-size: 40px; }
    .about-history__heading h2 { font-size: 40px; }
    .about-approach__heading h2 { font-size: 40px; }
    .about-experience__heading h2 { font-size: 40px; }
    .about-content > section:not(.about-awards) {
        padding: 40px 0;
        color: var(--white);
        background: transparent;
    }    
    /* Hero */
    .about-hero__title { font-size: 44px; }
    .about-hero__main { gap: 20px; }
    .about-mission__quote { font-size: 20px; }
    .about-stats .stat span { font-size: 14px; line-height: 1.4; }
    .about-principles__grid-vision {
        grid-column: 1 / -1; /* Растягиваем на всю ширину (2 колонки) */
    }
    
    /* Чуть корректируем заголовок секции */
    .about-history {
        padding: 52px 0;
    }
    .about-history__heading {
        margin-bottom: 32px;
    }

    .history-panel__year { font-size: 90px; }

    .about-approach__grid {
        /* На планшете перестраиваем в 2 колонки */
        grid-template-columns: repeat(2, 1fr);
    }
    /* .about-approach__grid { grid-template-columns: repeat(3, 1fr); } - Убрал, так как наследуется из базы */
    .about-approach-card { min-height: 310px; padding: 28px; }

    /* Опыт работы */
    .about-experience { padding: 88px 0; }
}


/* =======================================================
   МОБИЛЬНЫЕ (max-width: 767px)
   ======================================================= */
@media (max-width: 767px) {
    /* Hero */
    .about-hero__main { grid-template-columns: 1fr; border-bottom: none; padding-bottom: 0; }
    .about-hero__title { font-size: 32px; padding: 0 0 32px 0; border-bottom: 1px solid var(--Text-Light-Blue); }
    .about-hero__meta { display: none; }
    .about-hero__bottom { grid-template-columns: 1fr; gap: 16px; padding: 32px 0 0 0; }
    .about-hero__description {font-size: 15px; line-height: 1.4; font-weight: 500;}
    /* Принципы в 1 колонку */
    .about-principles__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    /* Статистика в 2 колонки */
    .about-stats .stat strong { font-size: 32px; padding-bottom: 4px; font-weight: 500; }
    .about-stats .stat span { font-size: 14px; line-height: 1.4; }
    .about-stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24x;
    }
    .about-stats__grid .stat {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
        /* Статистика в 2 колонки */
    .about-stats__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .about-stats__grid .stat { min-height: auto; text-align: left; }
    .about-stats__grid .stat:first-child {
        text-align: left;
    }

    .about-stats__grid .stat:last-child {
        text-align: left;
    }

    /* История */
    /* Прячем десктопный слайдер */
    .history-desktop-only {
        display: none !important; 
    }
    /* Показываем мобильный аккордеон */
    .history-mobile {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Меню якорей (перенос) */
    .about-nav__list li + li::before { display: none; }
    .about-nav__list { gap: 12px; }

    /* Принципы */
    .about-principles__grid { gap: 32px; }
    .about-principles { padding: 52px 0; }
    .about-principles__heading {
        margin-bottom: 32px;
    }
    .about-principles__heading h2 { font-size: 28px; }
    .about-mission { padding: 16px; border-radius: 24px; gap: 20px; }
    .about-mission__label { font-size: 18px; line-height: 1.3; }
    .about-mission__quote { font-size: 26px; line-height: 1.3; }
    .about-values__title { font-size: 20px; line-height: 1.3; }
    .value summary { font-size: 18px; line-height: 1.3; }
    .value p { font-size: 15px; line-height: 1.4; margin: 0 20px 16px 0; }
    .about-mission__foot { font-size: 14px; }
    .about-principles__grid-vision h3 { padding-top: 32px; font-size: 24px; line-height: 1.3; }
    .about-principles__grid-vision p { font-size: 15px; line-height: 1.4; }


    /* История */
    .about-history { padding: 52px 0; }
    .about-history__heading h2 { font-size: 28px; line-height: 1.1; }
    .about-history__heading p { margin: 24px 0 0 0; font-size: 15px; line-height: 1.4;}
    .history-slider__track { gap: 20px; }
    .history-slider__year { font-size: 16px; min-width: 56px; }
    .history-panel__year { font-size: 72px; }
    .history-panel__title { font-size: 22px; }
    .history-panel__text { font-size: 16px; }
    .history-controls__btn { width: 48px; height: 48px; padding: 12px; }

    /* Подход (1 колонка) */
    .about-approach { padding: 52px 0; }
    .about-approach__heading { margin-bottom: 32px; }
    .about-approach__heading h2 { font-size: 28px; }
    .about-approach__grid { grid-template-columns: 1fr; }
    .about-approach-card { min-height: auto; padding: 16px; }
    .about-approach-card h3 { font-size: 20px; line-height: 1.3;}
    .about-approach-card__icon { margin-bottom: 32px; }

    /* Опыт работы (1 колонка) */
    .about-experience { padding: 52px 0; }
    .about-experience__heading h2 { font-size: 28px; line-height: 1.1; }
    .about-experience__card { padding: 16px; border-radius: 16px; gap: 16px; }
    .about-experience__image { border-radius: 12px; }
    .about-experience__text { grid-template-columns: 1fr; gap: 16px; font-size: 15px; line-height: 1.4; }
    .about-experience__text p { font-size: 14px; }
    .about-experience a.about-experience__btn  {
        width: 100%;
        max-width: 296px;
        background: var(--cyan);
        color: var(--bg);
        padding: 8px 12px;
        margin: 8px auto 0 auto;
        font-size: 13px;
        line-height: 1.4;
        display: flex;
        align-items: center;      /* Выравнивание по вертикали */
        justify-content: center;  /* Выравнивание по горизонтали */        
    }
}