/* Страница «О нас» — двухколоночный макет: липкая навигация по разделам + карточки секций. */
html { scroll-behavior: smooth; }

/* убираем «карточную» обёртку main, чтобы секции лежали на фоне страницы */
main:has(> .about-page) { background: transparent; border: none; box-shadow: none; padding: 0; }

/* --about-top — отступ под липкую шапку сайта (masthead + mainnav), чтобы при переходе по якорю
   и при «прилипании» сайдбара заголовок «РАЗДЕЛЫ» и заголовки секций не уходили под шапку. */
.about-page { --about-dark: #36475a; --about-dark2: #2c3a49; --about-top: 120px; --about-ic: #4accd4; }

/* Заголовок страницы — как в дизайне (.page-head/.page-bar/.page-title) */
.about-page .about-h1 { display: flex; align-items: center; gap: 14px; margin: 18px 0 24px; }
.about-page .about-h1 .bar { width: 6px; height: 40px; border-radius: 3px; background: var(--cyan); }
.about-page .about-h1 h1 {
    font-family: "Kanyon", "Source Serif 4", serif; font-size: 40px; font-weight: 700;
    letter-spacing: .01em; text-transform: uppercase; color: #495568; margin: 0;
}

.about-page .about-grid { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 30px; align-items: start; }

/* ---- Левая навигация ---- */
.about-page .about-nav {
    position: sticky; top: var(--about-top); background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
/* «РАЗДЕЛЫ» — как в дизайне (.toc-head) */
.about-page .about-nav .nav-head {
    font-family: "Kanyon", "Source Serif 4", serif; font-size: 15px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; color: #495568;
    padding: 15px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line-2);
    display: flex; align-items: center; gap: 10px;
}
.about-page .about-nav .nav-head .bar { width: 5px; height: 22px; border-radius: 3px; background: var(--cyan); }
.about-page .about-nav nav { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.about-page .about-nav a {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
    color: var(--ink-soft); font-size: 14.5px; font-weight: 600; transition: background .15s, color .15s;
}
/* единый слот под иконку (16px значок + отступы) — чтобы текст был выровнен у всех пунктов */
.about-page .about-nav a svg {
    width: 19px; height: 19px; flex: none; padding: 6px; box-sizing: content-box;
    border-radius: 8px; color: var(--muted); transition: background .15s, color .15s;
}
.about-page .about-nav a:hover { background: var(--surface-2); }
/* активный пункт: тёмный скруглённый квадрат вокруг иконки + белый значок (как в дизайне) */
.about-page .about-nav a.active { background: var(--primary-tint); color: var(--primary-deep); }
.about-page .about-nav a.active svg { background: var(--primary); color: #fff; }

/* ---- Секции ---- */
.about-page .about-content { display: flex; flex-direction: column; gap: 22px; }
.about-page .about-sec { scroll-margin-top: var(--about-top); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.about-page .sec-head {
    display: flex; align-items: center; gap: 14px; padding: 28px 22px 28px 34px;
    background: linear-gradient(180deg, var(--about-dark), var(--about-dark2)); color: #fff;
}
.about-page .sec-head .sec-ic {
    width: 42px; height: 42px; flex: none; border-radius: 10px; background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center;
}
.about-page .sec-head .sec-ic svg { width: 26px; height: 26px; color: #8de3da; }
.about-page .sec-head h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: .01em; color: #fff; }
.about-page .sec-body { padding: 24px 26px; color: var(--ink-soft); line-height: 1.7; font-size: 15.5px; }
.about-page .sec-body p { margin: 0 0 14px; }
.about-page .sec-body p:last-child { margin-bottom: 0; }

/* ---- От первого лица ---- */
.about-page .person { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 26px; }
.about-page .person-photo {
    width: 210px; aspect-ratio: 3/3.4; border-radius: var(--radius-sm); overflow: hidden;
    background: #dfe5e8; display: grid; place-items: center;
}
.about-page .person-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-page .person-photo svg { width: 72px; height: 72px; color: #aeb9c0; stroke-width: 1.6; }
.about-page .person-cap { text-align: center; margin-top: 12px; }
.about-page .person-cap b { display: block; font-size: 15px; color: var(--ink); }
.about-page .person-cap span { font-size: 13px; color: var(--muted); }
.about-page .quote {
    border-left: 4px solid var(--cyan); padding: 4px 0 4px 16px; margin: 0 0 16px;
    font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 17px; color: var(--ink);
}

/* ---- История (таймлайн) — стиль скопирован из дизайна ---- */
.about-page .timeline { position: relative; padding-left: 26px; margin-top: 4px; }
.about-page .timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.about-page .tl-row { position: relative; padding-bottom: 18px; }
.about-page .tl-row:last-child { padding-bottom: 0; }
/* маркер: бирюзовый круг + белое кольцо + бирюзовая окружность (box-shadow) */
.about-page .tl-row::before { content: ""; position: absolute; left: -23px; top: 5px; width: 11px; height: 11px; border-radius: 50%;
    background: #4accd4; border: 2px solid #fff; box-shadow: 0 0 0 1px #4accd4; }
.about-page .tl-row b { font-family: "Source Serif 4", serif; font-size: 17px; color: var(--primary-deep); }
.about-page .tl-row p { font-size: 14px; color: var(--ink-soft); margin: 3px 0 0; }

/* ---- Сетка карточек (принципы / виды деятельности) ---- */
.about-page .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-page .card {
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--surface-2);
}
.about-page .card .c-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-tint);
    display: grid; place-items: center; margin-bottom: 10px; }
.about-page .card .c-ic svg { width: 22px; height: 22px; color: var(--primary); }
.about-page .card h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.about-page .card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Принципы: круглые бирюзовые иконки, значок+заголовок в одну строку, описание — ниже во всю ширину */
#principles .card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 20px 22px; }
#principles .card .c-ic { grid-column: 1; grid-row: 1; margin: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--about-ic); }
#principles .card .c-ic svg { width: 24px; height: 24px; color: #fff; }
#principles .card h3 { grid-column: 2; grid-row: 1; margin: 0; }
#principles .card p { grid-column: 1 / -1; grid-row: 2; margin: 12px 0 0; }

/* Виды деятельности: один столбец, светло-бирюзовые квадратные иконки, строки с разделителями */
.about-page .act-list { list-style: none; margin: 0; padding: 0; }
.about-page .act-item { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.about-page .act-item:first-child { border-top: none; padding-top: 2px; }
.about-page .act-item .c-ic { flex: none; width: 46px; height: 46px; border-radius: 12px;
    background: #dcf1f2; display: grid; place-items: center; }
.about-page .act-item .c-ic svg { width: 24px; height: 24px; color: var(--about-ic); }
.about-page .act-item h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.about-page .act-item p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---- Блоки определений (политика) ---- */
.about-page .def { margin: 0 0 14px; }
.about-page .def b { color: var(--ink); }

@media (max-width: 900px) {
    .about-page .about-grid { grid-template-columns: minmax(0, 1fr); }
    .about-page .about-nav { position: static; }
    .about-page .about-nav nav { flex-direction: row; flex-wrap: wrap; }
    .about-page .person { grid-template-columns: 1fr; }
    .about-page .person-photo { width: 180px; margin: 0 auto; }
    .about-page .cards { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .about-page .about-h1 h1 { font-size: 30px; }   /* как в дизайне на мобильном */
    .about-page .about-h1 .bar { height: 30px; }
}
