/* informatikaplus.ru — самостоятельная дизайн-система. Все стили локальные. */
:root{--site-accent:#4763c1;--site-bg:#f3f6fc;--site-ink:#192e57;--site-tint:#e3ebff;--site-font:system-ui,-apple-system,'Segoe UI',Arial,sans-serif}
body{background-color:var(--site-bg);font-family:var(--site-font);color:var(--site-ink)}
body a:focus-visible,body button:focus-visible,body input:focus-visible{outline:3px solid var(--site-accent);outline-offset:3px}
body h1{text-wrap:balance}
body h2,body h3{text-wrap:pretty}
body .site-insight{padding:clamp(18px,2.8vw,32px);margin:20px 0 25px;min-width:0;max-width:600px;box-shadow:0 6px 18px #12261909;background:#ffffffef;color:var(--site-ink)}
body .site-insight-label{font:700 12px/1.5 system-ui,Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--site-accent);margin:0 0 12px}
body .site-insight p{font-size:clamp(15px,1.45vw,18px);line-height:1.58;margin:0 0 12px;max-width:62ch}
body .site-insight a{font-weight:750;color:var(--site-accent);text-decoration-thickness:2px;text-underline-offset:4px}
body .site-home-hero{padding:clamp(22px,4vw,48px);margin:0 0 36px}
body .site-home-hero h1{max-width:27ch}
body .site-home-hero .site-insight{margin-bottom:0}
body .site-home .hero .container{max-width:1120px}
body .site-home .hero .site-insight{margin-top:25px}
body .card,body .tile{transition:transform .2s ease,box-shadow .2s ease}
body .card:hover,body .tile:hover{transform:translateY(-3px)}
body .card:focus-within,body .tile:focus-within{outline:2px solid var(--site-accent);outline-offset:2px}
body .article-copy table,body .content table,body .article table{display:block;max-width:100%;overflow-x:auto}
@media(max-width:820px){body .cards,body .grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .site-insight{max-width:100%}}
@media(max-width:610px){body .cards,body .grid{grid-template-columns:1fr}body .site-home-hero{padding:24px}body .site-insight{padding:19px}body .cards .card:nth-child(n){transform:none}}
body{background:#f4f8fe;color:#182943}.hero{background:radial-gradient(circle at right,#3658af,#172c59 70%);color:#fff}.hero .lead{color:#e0e9fc}.hero h1{font-family:ui-monospace,Consolas,monospace;font-weight:750;max-width:16ch}.card{border-radius:7px;border:1px solid #97ade0;box-shadow:6px 6px 0 #dce4fa}.card::before{content:'01';font:700 15px ui-monospace,monospace;letter-spacing:4px;color:#4b66b7}.site-insight{border-radius:5px;background:#eaf0ff;border-left:5px solid #536bcb}

/* Editorial study block v2: inherits each site’s palette */
.site-guide{margin:2rem 0;padding:1.25rem 1.5rem;border:1px solid var(--line,#dce4e8);border-radius:15px;background:var(--soft,#f7fafb);overflow-wrap:anywhere}.site-guide h2{margin:.3rem 0 1rem}.site-guide h3{margin:1.1rem 0 .4rem}.site-guide p{margin:.5rem 0;line-height:1.65}.subject-deepening,.official-check{background:transparent}.site-guide pre{overflow-x:auto;white-space:pre-wrap}@media(max-width:600px){.site-guide{padding:1rem;margin:1.5rem 0}}

/* Editorial topic guide v3 */
.study-guide{margin:1.5rem 0;padding:clamp(1rem,2.5vw,1.8rem);border:1px solid var(--line,#dedede);border-radius:16px;background:var(--soft,#fbfaf7)}.study-guide h2{margin:1rem 0}.study-guide .topic-explanation{border-top:1px solid rgba(60,70,70,.18);padding:1.1rem 0}.study-guide .topic-explanation h3{margin:0 0 .6rem;font-size:1.12rem;line-height:1.45}.study-guide .topic-explanation p{margin:.6rem 0;line-height:1.7}.study-guide .topic-explanation>a{display:inline-block;margin-top:.25rem;font-size:.92rem;text-underline-offset:3px}.study-guide h3 a{text-decoration:none;color:inherit}.study-guide h3 a:hover{text-decoration:underline}@media(max-width:700px){.study-guide{padding:1rem}.study-guide .topic-explanation{padding:.85rem 0}}

.chapter-practice{margin-top:1.2rem;padding:1rem;border-left:3px solid var(--accent,var(--c,#3b70a8));background:rgba(255,255,255,.5);border-radius:0 8px 8px 0}.chapter-practice details{margin-top:.5rem}.chapter-practice summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}.study-guide .topic-explanation:empty{display:none}

.intro-fact-guide{padding:clamp(1rem,2.7vw,1.8rem);margin:1rem 0 1.5rem;border:1px solid rgba(60,70,70,.15);border-radius:16px;background:var(--soft,#f8f9fa)}.intro-fact-guide h2{margin:1rem 0 .4rem}.intro-fact-guide p{line-height:1.7;margin:0 0 1rem}

/* Subject lessons, 2026-11-25 */
.lesson{font-size:1rem;line-height:1.7}.lesson h2{margin-top:1.8rem}.lesson-table{max-width:100%;overflow-x:auto;margin:1.1rem 0}.lesson-table table{width:100%;border-collapse:collapse;font-size:1rem}.lesson-table th,.lesson-table td{padding:.7rem;border:1px solid #bcc7d4;text-align:left;vertical-align:top}.lesson-table th{background:#eef3f8;color:#152b44}.lesson-practice{margin:1.6rem 0;padding:1.1rem;border-left:4px solid var(--accent,#315aa2);background:#f4f7fb;color:#172b45}.lesson-practice h2{margin-top:0}.lesson details summary{cursor:pointer;font-weight:650;padding:.6rem 0}.lesson pre{overflow-x:auto;padding:1rem;background:#112640;color:#f7fbff;border-radius:.5rem;font-size:1rem}.lesson code{overflow-wrap:anywhere}.lesson pre code{overflow-wrap:normal}.reference-note{font-size:.92rem;color:#3a4f65}.geometry-figure{max-width:460px;margin:1.2rem auto}.geometry-figure svg{width:100%;height:auto}.geometry-figure figcaption{font-size:.92rem}.lesson a{text-underline-offset:.15em}


/* Subject tools, 2026-11-25 */
.subject-tool{border:1px solid #bdcddd;padding:1.2rem;border-radius:.7rem;background:#f5f8fc;color:#142f48;margin:1.2rem 0}.tool-fields{display:grid;gap:.6rem;margin-bottom:1rem;max-width:38rem}.tool-fields input,.tool-fields select{font:inherit;min-height:44px;padding:.55rem;border:1px solid #738aa0;border-radius:.35rem;width:100%;box-sizing:border-box}.tool-fields label{font-weight:650}.subject-tool button{font:inherit;min-height:44px;padding:.65rem 1rem;border-radius:.35rem;margin:.25rem .25rem .25rem 0;cursor:pointer}.tool-result{white-space:pre-line;border-left:4px solid var(--accent,#315b88);padding:1rem;min-height:3rem;background:#f3f7fa;color:#172e44}.tool-result[data-status="error"]{border-color:#b33838;background:#fff3f3;color:#8b2020}.tool-question{font-size:1.2rem;font-weight:650}.tool-answer{padding:1rem;background:white;border:1px solid #bdcddd}.coordinate-figure{max-width:600px;margin:1.5rem 0}.coordinate-figure svg{width:100%;height:auto}.coordinate-figure figcaption{font-size:.9rem}.subject-tool :focus-visible{outline:3px solid #b65800;outline-offset:3px}






/* Final tool viewport refinement */
.article-body{min-width:0}.article-body .table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.article-body .exam-task-queue table{min-width:42rem;table-layout:auto}.article-body .exam-task-queue th,.article-body .exam-task-queue td{overflow-wrap:normal;word-break:normal}.article-body .table-scroll:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:650px){body.tool-page .hero{padding-block:1.5rem}body.tool-page h1{font-size:clamp(1.7rem,7vw,2.15rem);line-height:1.15}body.tool-page .hero .lead{font-size:1.075rem;line-height:1.6}}
