/* Предметная тема */
:root { --pine:#16305f; --pine-2:#16305f; --forest:#245fc2; --brand:#245fc2; --brand-2:#245fc2; --mint-glow:#cfe3ff; --mint:#e6eefc; --mint-2:#d9e2ec; --ink:#16305f; --grad:linear-gradient(135deg,#245fc2,#16305f); --band:linear-gradient(100deg,#16305f,#245fc2); --home:radial-gradient(800px 500px at 85% 0%, #e5864255, transparent 65%),linear-gradient(145deg,#16305f,#245fc2); }
body.is-home::before { background:var(--home); }
.home-logo .word b { color:#fff; }
.tile.senior,.tile.junior { background:#245fc2; }
.tile.exam.ege,.tile.exam.oge { background:#e58642; }
.side-card { background:linear-gradient(165deg,#16305f,#245fc2); }

/* Readable author lessons and separate official excerpts. */
.gx-sec>p{line-height:1.85;margin:16px 0;color:var(--ink-soft)}
.gx-sec li{line-height:1.8;margin:8px 0}
.study-worked{background:var(--mint);border-left:4px solid var(--brand)}
.study-worked h3{font-size:21px;line-height:1.5}
.study-pitfall{padding:16px 18px;background:var(--mint);border-left:3px solid var(--brand);border-radius:10px;line-height:1.8;margin:16px 0}
.study-origin{padding:22px 28px;color:var(--muted);font-size:13px;border-top:1px solid var(--line);line-height:1.7}
.source-doc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.source-doc-grid h3{font-size:21px;line-height:1.4}
.study-source-search{display:grid;gap:8px;margin-top:20px;font-weight:700}
.study-source-search input{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;width:100%}
.study-source-group{padding:18px 0;border-bottom:1px solid var(--line);line-height:1.8}
.study-source-group summary{cursor:pointer;font-weight:700;line-height:1.6}
.study-source-group p{margin:16px 0}.study-source-group small{display:block}
.home-page .tile{grid-column:span 3}.home-page .tile.exam{grid-column:span 6}
@media(max-width:720px){.source-doc-grid{grid-template-columns:1fr}.home-page .tile,.home-page .tile.senior:nth-child(n){grid-column:span 6}.home-logo{gap:10px}.home-logo img{width:58px}.home-logo .word{font-size:clamp(25px,6.6vw,43px);letter-spacing:-1px}.study-worked h3{font-size:18px}}

.home-page .tile.senior:not(.prep){grid-column:span 4}.home-page .tile.prep{grid-column:span 3;background:#16305f}.home-page .tile.prep b{font-size:38px}@media(max-width:720px){.home-page .tile.senior:not(.prep),.home-page .tile.prep{grid-column:span 6}}

.workshop-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}
.workshop-fields label{display:grid;gap:8px;font-weight:700;font-size:14px}
.workshop-fields input{padding:13px;border:1px solid var(--line);border-radius:10px;font:inherit;color:var(--ink);width:100%;background:#fff}
.model-result{padding:20px;border-radius:12px;background:var(--mint);margin:20px 0;line-height:1.8}
.model-result>b{font-size:26px}.model-result ol{padding-left:22px}
.coordinate-grid{width:100%;max-width:550px;height:auto;display:block;margin:20px auto;color:var(--ink)}
.workshop-options{display:grid;gap:10px;border:0;padding:0;margin:20px 0}
.workshop-options label{display:flex;align-items:baseline;gap:10px;line-height:1.6;padding:12px;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.workshop-options input{accent-color:var(--brand);flex:none}
@media(max-width:600px){.workshop-fields{grid-template-columns:1fr}.model-result{padding:16px}}

.gx-hero::after{content:'§'}

.home-page .tile.senior.prep:nth-child(n){grid-column:span 3}@media(max-width:720px){.home-page .tile.senior.prep:nth-child(n){grid-column:span 6}}

.atlas-dark .graph-panel .btn:not(.primary){color:#352b77;background:#fff}.atlas-dark .graph-panel .btn.primary{color:#fff}

/* Пять классов в ряд, экзамены — второй ряд. */
@media(min-width:721px){.home-page .tiles{grid-template-columns:repeat(10,minmax(0,1fr))}.home-page .tile.senior:not(.prep){grid-column:span 2}.home-page .tile.exam{grid-column:span 5}}

/* Главная: карточки рядами 3 + 3 + 2 (классы и лаборатория, затем ОГЭ и ЕГЭ) */
.home-cards .tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:18px}
.home-cards .tile,.home-cards .tile:nth-child(n){grid-column:span 2!important;min-height:170px}
.home-cards .tile.exam,.home-cards .tile.exam:nth-child(n){grid-column:span 3!important}
.home-cards .tile.tool{background:#101f55;border-color:rgba(255,255,255,.18)}
.home-cards .tile.tool:hover{background:#18307a}
.home-cards .tile.tool svg{width:50px;height:50px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-bottom:8px}
.home-cards .tile.tool span{font-size:19px;font-weight:700}
@media(max-width:720px){.home-cards .tiles{gap:10px}.home-cards .tile,.home-cards .tile:nth-child(n){min-height:118px;padding:16px 6px 26px}.home-cards .tile b{font-size:34px}.home-cards .tile span{font-size:13px}.home-cards .tile .count{display:none}.home-cards .tile small{font-size:10.5px;bottom:9px}.home-cards .tile.tool svg{width:32px;height:32px}.home-cards .tile.tool span{font-size:13px}}
