/* ================================================================
   sveden.ks1c.ru — стиль раздела «Сведения об ОО»
   ИП Перевертайло М.Л. (бренд FINFED)
   Брендирование под основной сайт ks1c.ru:
   — шрифт Gilroy (фолбэк системные)
   — фиолетовый акцент #8C52FF
   — жёлтый акцент #FCE48A
   — pill-кнопки, скруглённые карточки
   Совместимо с роботом АИС «Мониторинг» Рособрнадзора.
   Микроразметка itemprop сохранена.
   ================================================================ */

/* ---------- Шрифт Gilroy через Tilda CDN (шрифт основного сайта) ---------- */
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Gilroy-Regular'), local('Gilroy'),
         url('https://static.tildacdn.com/tild3837-3733-4036-b964-616266653935/Gilroy-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Gilroy-Medium'),
         url('https://static.tildacdn.com/tild3530-6262-4133-b561-393634393464/Gilroy-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Gilroy-Semibold'),
         url('https://static.tildacdn.com/tild3338-3631-4636-a230-643663616236/Gilroy-Semibold.woff2') format('woff2');
}
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Gilroy-Bold'),
         url('https://static.tildacdn.com/tild6262-6232-4831-a431-323462626437/Gilroy-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local('Gilroy-ExtraBold'),
         url('https://static.tildacdn.com/tild6536-6633-4538-a236-636635373963/Gilroy-Extrabold.woff2') format('woff2');
}

/* ---------- Дизайн-токены (брендбук FINFED) ---------- */
:root {
    --c-violet:        #8C52FF;
    --c-violet-soft:   #B89BFF;
    --c-violet-50:     #F2EDFF;
    --c-yellow:        #FCE48A;
    --c-yellow-deep:   #F8D24F;

    --c-text:          #1A1A1A;
    --c-text-2:        #555;
    --c-text-3:        #888;
    --c-bg:            #FFFFFF;
    --c-bg-soft:       #F7F7FA;
    --c-bg-card:       #FAFAFB;
    --c-border:        #E8E8EC;
    --c-border-strong: #D5D5DC;

    --c-link:          var(--c-violet);
    --c-link-hover:    #7038F0;

    --c-ok:    #1A8754;
    --c-warn:  #B8860B;

    --ff-base: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --fs-base: 16px;
    --lh-base: 1.55;

    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  20px;
    --r-pill: 999px;

    --max-w: 1280px;
    --pad-x: 24px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--ff-base);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-link-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--c-violet); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--c-yellow); color: var(--c-text); }

h1, h2, h3, h4, h5 { font-family: var(--ff-base); font-weight: 700; line-height: 1.2; margin: 0 0 .5em 0; color: var(--c-text); }
h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 19px; font-weight: 600; margin-top: 1.4em; }
h4 { font-size: 16px; font-weight: 600; }
p  { margin: 0 0 1em 0; }
ul, ol { margin: 0 0 1em 0; padding-left: 1.4em; }
li { margin-bottom: .35em; }

.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--c-violet); color: #fff;
    padding: 8px 16px; border-radius: 0 0 8px 0;
    font-weight: 600; z-index: 1000;
}
.skip-link:focus { top: 0; outline: none; color: #fff; text-decoration: none; }

/* ============================================================
   ШАПКА — точная копия с tilda /menu (rec510183354)
   ============================================================ */
.header {
    background: #ffffff;
    border-bottom: 1px solid #ececec;
    width: 100%;
}
.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 54px;
    padding: 0 24px;
    display: flex; align-items: center; gap: 32px;
}
.header__brand {
    display: flex; align-items: center; gap: 0;
    text-decoration: none !important; color: inherit;
    flex-shrink: 0; flex-direction: column;
    align-items: flex-start;
}
.header__brand:hover { text-decoration: none !important; }
.header__logo-img {
    width: 115px; height: 38px;
    object-fit: contain;
    display: block;
}
.header__brand-tagline {
    font-size: 12px; color: #505050;
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.2;
}

.header__nav {
    display: flex; align-items: center; gap: 28px;
    margin-left: 24px;
    flex-wrap: nowrap;
}
.header__nav a {
    color: #161618;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 0;
    text-decoration: none;
    transition: color .15s ease;
    white-space: nowrap;
}
.header__nav a:hover { color: #854ef1; text-decoration: none; }
.header__nav a.is-active { color: #854ef1; font-weight: 600; }

.header__right {
    display: flex; align-items: center; gap: 12px;
    margin-left: auto;
    flex-wrap: nowrap;
}

.header__phone {
    display: flex; flex-direction: column; align-items: flex-start;
    line-height: 1.2;
    color: #161618;
    font-size: 13px;
}
.header__phone a {
    color: #161618;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
}
.header__phone a:hover { color: #854ef1; }
.header__phone-sub {
    color: #161618;
    font-size: 11px;
    font-weight: 400;
    margin-top: 2px;
}

/* Pill-кнопка с обводкой («Написать нам») */
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 18px;
    height: 34px;
    border: 2px solid #854ef1;
    border-radius: 555px;
    color: #161618;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    background: #ffffff;
    transition: background-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn-outline:hover {
    background: #fce48a;
    color: #000;
    text-decoration: none;
}

/* Жёлтая pill («Консультация») */
.btn-yellow {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 18px;
    height: 34px;
    background: #fce48a;
    color: #161618;
    font-weight: 500; font-size: 13px;
    border-radius: 555px;
    text-decoration: none;
    border: none;
    transition: background-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn-yellow:hover {
    background: #000000;
    color: #ffffff;
    text-decoration: none;
}

/* Чёрная pill («Кабинет ученика») */
.btn-dark {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 18px;
    height: 34px;
    background: #161618;
    color: #ffffff !important;
    font-weight: 600; font-size: 14px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color .2s ease;
    white-space: nowrap;
}
.btn-dark:hover { background: #fce48a; color: #161618 !important; text-decoration: none; }

/* Адаптив шапки */
@media (max-width: 1100px) {
    .header__nav { gap: 18px; }
    .header__phone { display: none; }
}
@media (max-width: 900px) {
    .header__nav a:nth-child(n+3) { display: none; } /* оставляем только Каталог + Лицензия */
    .btn-outline { display: none; }
}
@media (max-width: 700px) {
    .header__inner { padding: 0 16px; gap: 12px; }
    .header__nav { display: none; }
    .header__brand-tagline { display: none; }
    .header__right { gap: 8px; }
}

/* ============================================================
   Хлебные крошки
   ============================================================ */
.section-banner {
    background: linear-gradient(90deg, #F2EDFF 0%, #FAF3FF 100%);
    border-bottom: 1px solid #E5DAF7;
}
.section-banner__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 12px var(--pad-x);
    display: flex; align-items: center; gap: 16px;
}
.section-banner__icon {
    font-size: 22px;
    flex-shrink: 0;
}
.section-banner__text {
    display: flex; flex-direction: column;
    line-height: 1.2;
}
.section-banner__text strong {
    font-size: 14px; font-weight: 700; color: var(--c-text);
}
.section-banner__text small {
    font-size: 12px; color: var(--c-text-3); font-weight: 400;
    margin-top: 2px;
}
.section-banner__back {
    margin-left: auto;
    color: #854ef1;
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 555px;
    border: 1px solid transparent;
    transition: all .15s ease;
    white-space: nowrap;
}
.section-banner__back:hover {
    background: #fff;
    border-color: #854ef1;
    text-decoration: none;
}
@media (max-width: 600px) {
    .section-banner__text small { display: none; }
    .section-banner__back { font-size: 12px; padding: 4px 10px; }
}
.breadcrumbs {
    max-width: var(--max-w); margin: 0 auto;
    padding: 14px var(--pad-x) 0;
    font-size: 13px; color: var(--c-text-3);
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--c-border-strong); }
.breadcrumbs a { color: var(--c-text-2); }
.breadcrumbs a:hover { color: var(--c-violet); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--c-text); font-weight: 500; }

/* ============================================================
   Лейаут
   ============================================================ */
.layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 18px var(--pad-x) 60px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
    position: sticky; top: 16px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 18px 16px;
}
.sidebar__title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--c-text-3);
    padding: 0 6px 12px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 8px;
}
.sidebar__list { list-style: none; padding: 0; margin: 0; }
.sidebar__list li { margin: 0; }
.sidebar__list a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--c-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    transition: background .12s, color .12s;
}
.sidebar__list a small {
    display: block;
    color: var(--c-text-3);
    font-weight: 400;
    font-size: 12px;
    margin-top: 2px;
}
.sidebar__list a:hover {
    background: var(--c-violet-50);
    color: var(--c-violet);
    text-decoration: none;
}
.sidebar__list a:hover small { color: var(--c-violet-soft); }
.sidebar__list a.is-active {
    background: var(--c-violet);
    color: #fff;
}
.sidebar__list a.is-active small { color: rgba(255,255,255,.85); }
@media (max-width: 900px) {
    .sidebar { position: static; margin-bottom: 24px; }
}

/* ============================================================
   Main
   ============================================================ */
.main { min-width: 0; }
.main__header { margin-bottom: 28px; }
.main__kicker {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--c-violet);
    margin-bottom: 10px;
}
.main__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
}
.main__lead {
    font-size: 17px; color: var(--c-text-2);
    margin-bottom: 24px;
    max-width: 70ch;
    line-height: 1.55;
}

/* ============================================================
   Таблицы
   ============================================================ */
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.table {
    width: 100%; border-collapse: collapse; font-size: 14.5px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--c-border);
}
.table tr:last-child th, .table tr:last-child td { border-bottom: none; }
.table th {
    font-weight: 600;
    color: var(--c-text-2);
    background: var(--c-bg-soft);
}
.table--key th { width: 40%; min-width: 240px; font-weight: 600; }
.table--key td { font-weight: 500; color: var(--c-text); }
.table--data thead th {
    background: var(--c-text);
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid var(--c-text);
}
.table--data tbody tr:hover { background: var(--c-violet-50); }

/* ============================================================
   Карточки
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 18px 18px 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover {
    border-color: var(--c-violet-soft);
    box-shadow: 0 6px 20px rgba(140, 82, 255, 0.08);
}
.card__title { font-size: 16px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.card__title a { color: var(--c-text); }
.card__title a:hover { color: var(--c-violet); text-decoration: none; }
.card__meta { font-size: 13px; color: var(--c-text-3); margin: 0 0 8px; }
.card__body { font-size: 14px; color: var(--c-text-2); }

/* ============================================================
   Информационные блоки
   ============================================================ */
.info-box {
    background: var(--c-violet-50);
    border-left: 4px solid var(--c-violet);
    padding: 14px 18px;
    border-radius: 0 var(--r-md) var(--r-md) 0;
    margin: 16px 0;
    font-size: 14.5px;
    color: var(--c-text);
}
.info-box--warn {
    background: #FFF8E1;
    border-left-color: #F39C12;
}
.info-box--note {
    background: var(--c-bg-soft);
    border-left-color: var(--c-text-3);
    color: var(--c-text-2);
}
.info-box strong { color: var(--c-text); }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 12px; font-weight: 600;
    background: var(--c-violet-50);
    color: var(--c-violet);
    margin-right: 4px;
}
.badge--ok { background: #E8F5EE; color: var(--c-ok); }
.badge--yellow { background: var(--c-yellow); color: var(--c-text); }
.badge--dark { background: var(--c-text); color: #fff; }

.doc-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: var(--c-bg-soft);
    color: var(--c-text);
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--c-border);
    transition: all .15s ease;
}
.doc-link::before { content: "📄"; font-size: 14px; }
.doc-link:hover {
    background: var(--c-violet-50);
    border-color: var(--c-violet-soft);
    color: var(--c-violet);
    text-decoration: none;
}

/* ============================================================
   ПОДВАЛ (FINFED-стиль)
   ============================================================ */
.footer {
    background: var(--c-bg-soft);
    border-top: 1px solid var(--c-border);
    margin-top: 60px;
    padding: 50px var(--pad-x) 24px;
}
.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 36px;
}
@media (max-width: 900px) {
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
    .footer__inner { grid-template-columns: 1fr; }
}

.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__logo {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--c-violet);
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: .03em;
    color: var(--c-text);
    line-height: 1;
    align-self: flex-start;
}
.footer__tagline { font-size: 13px; color: var(--c-text-3); margin-top: -8px; }

.footer__social { display: flex; gap: 10px; margin: 4px 0 8px; }
.footer__social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-text);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background .15s ease;
}
.footer__social a:hover { background: var(--c-violet); text-decoration: none; }
.footer__social svg { width: 16px; height: 16px; fill: #fff; }

.footer__contact { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.footer__contact a { color: var(--c-text); font-weight: 600; }
.footer__contact a:hover { color: var(--c-violet); }
.footer__contact-sub { color: var(--c-text-3); font-size: 13px; }

.footer__col h4 {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--c-text-3);
    margin: 0 0 14px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin: 8px 0; line-height: 1.4; }
.footer__col a { color: var(--c-text); font-size: 14px; font-weight: 500; }
.footer__col a:hover { color: var(--c-violet); text-decoration: none; }

.footer__license {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    font-size: 12px;
    color: var(--c-text-2);
    line-height: 1.4;
}
.footer__license strong { color: var(--c-text); }
.footer__license a { color: var(--c-violet); }

.footer__bottom {
    max-width: var(--max-w);
    margin: 36px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--c-border);
    display: flex; flex-wrap: wrap; gap: 14px 24px;
    justify-content: space-between;
    font-size: 12px; color: var(--c-text-3);
}
.footer__bottom a { color: var(--c-text-3); }
.footer__bottom a:hover { color: var(--c-violet); }

/* ============================================================
   Утилиты
   ============================================================ */
.muted { color: var(--c-text-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ============================================================
   Версия для слабовидящих
   ============================================================ */
body[data-accessibility="large"] {
    font-size: 20px;
}
body[data-accessibility="large"] .main__title { font-size: 36px; }
body[data-accessibility="large"] h2 { font-size: 28px; }
body[data-accessibility="large"] h3 { font-size: 22px; }
body[data-accessibility="large"] .table { font-size: 17px; }
body[data-accessibility="large"] .sidebar__list a { font-size: 17px; }

body[data-accessibility="inverted"] {
    background: #000 !important;
    color: #fff !important;
    font-size: 20px;
}
body[data-accessibility="inverted"] * {
    color: #fff !important;
    background-color: transparent !important;
    border-color: #555 !important;
}
body[data-accessibility="inverted"] a,
body[data-accessibility="inverted"] a * {
    color: #FCE48A !important;
}
body[data-accessibility="inverted"] .header,
body[data-accessibility="inverted"] .footer,
body[data-accessibility="inverted"] .sidebar,
body[data-accessibility="inverted"] .table,
body[data-accessibility="inverted"] .info-box {
    background: #111 !important;
}
body[data-accessibility="inverted"] img,
body[data-accessibility="inverted"] svg {
    filter: invert(1) hue-rotate(180deg);
}

/* ============================================================
   Печать
   ============================================================ */
@media print {
    .header, .footer, .sidebar, .breadcrumbs { display: none !important; }
    .layout { display: block; padding: 0; }
    body { background: #fff; color: #000; font-size: 12pt; }
    a { color: #000; text-decoration: underline; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
