/* Уроки теории 01Географии: общий вид для всех классов. */
.gl-lesson { --gl-inset: clamp(24px, 4vw, 40px); --g8: #0b6e64; --gl-2: #0f8f7a; --gl-soft: #e6f6f2; --gl-line: #d5e8e4; --gl-ink: #1a2150; color: var(--gl-ink); font-size: 17px; line-height: 1.65; }
.gl-lesson [hidden] { display: none !important; }
.gl-hero { position: relative; padding: 30px var(--gl-inset) 24px; color: #fff; background: radial-gradient(900px 300px at 100% 0, rgba(92, 193, 250, .45), transparent 70%), linear-gradient(120deg, #141c4f 0%, #27307f 50%, #0f8f7a 100%); overflow: hidden; }
.gl-hero::after { content: attr(data-n); position: absolute; right: 22px; bottom: -46px; font-size: 190px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .09); pointer-events: none; }
.gl-over { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.gl-hero h2 { position: relative; z-index: 1; margin: 14px 0 10px; font-size: clamp(24px, 4vw, 32px); line-height: 1.2; color: #fff; }
.gl-hook { position: relative; z-index: 1; margin: 0 0 18px; max-width: 700px; font-size: 19px; line-height: 1.5; color: #e9f1ff; }
.gl-hero nav { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.gl-hero nav button { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.gl-hero nav button:hover, .gl-hero nav button:focus-visible { background: #fff; color: #141c4f; outline: none; }
.gl-main { margin: 24px var(--gl-inset) 8px; padding: 18px 20px; border-radius: 16px; background: var(--gl-soft); border-left: 5px solid var(--gl-2); scroll-margin-top: 90px; }
.gl-main p { margin: 8px 0 0; font-size: 18px; font-weight: 500; }
.gl-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--g8); }
.gl-block { padding: 24px var(--gl-inset) 4px; scroll-margin-top: 90px; }
.gl-block h3 { margin: 0 0 12px; font-size: 20px; color: #141c4f; }
.gl-block h4 { margin: 0 0 6px; font-size: 16px; color: #141c4f; }
.gl-block > p { margin: 0 0 12px; }
.gl-lesson i { color: #23408f; }
.gl-sign { padding: 0 5px; border-radius: 5px; background: #ffe08a; color: #5a3d00; font-weight: 800; font-style: normal; }
.gl-lesson .gl-flow { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.gl-lesson .gl-flow li { position: relative; flex: 1 1 130px; margin: 0; padding: 12px 14px; border: 1px solid var(--gl-line); border-radius: 12px; background: #f6fbfa; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.gl-flow li span { display: block; margin-bottom: 4px; color: var(--gl-2); font-size: 20px; font-weight: 800; }
.gl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-bottom: 12px; }
.gl-cards article { padding: 14px 16px; border-radius: 14px; background: #f5f8ff; border: 1px solid #e1e9f6; }
.gl-cards article p { margin: 0; font-size: 15.5px; line-height: 1.45; }
.gl-eg { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed #cdd8ee; color: #23408f; font-style: italic; }
.gl-vs { margin-bottom: 12px; border: 1px solid #e1e9f6; border-radius: 14px; overflow: hidden; }
.gl-vs-head, .gl-vs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gl-vs-head b { padding: 10px 14px; background: #141c4f; color: #fff; font-size: 14px; }
.gl-vs-head b + b { background: #0b6e64; }
.gl-vs-row > div { padding: 10px 14px; border-top: 1px solid #edf2f9; font-size: 15.5px; line-height: 1.45; }
.gl-vs-row > div + div { border-left: 1px solid #edf2f9; background: #f6fbfa; }
.gl-ex { margin: 0 0 12px !important; padding: 0 !important; list-style: none; display: grid; gap: 8px; }
.gl-ex li { margin: 0 !important; padding: 10px 14px; border-radius: 12px; background: #fff8e8; box-shadow: inset 0 0 0 1px #f6e2b3; font-size: 16px; }
.gl-table-wrap { margin-bottom: 12px; overflow-x: auto; }
.gl-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e1e9f6; border-radius: 14px; overflow: hidden; font-size: 15.5px; line-height: 1.42; }
.gl-table th { padding: 10px 13px; background: #141c4f; color: #fff; text-align: left; font-size: 13px; font-weight: 600; }
.gl-table td { padding: 10px 13px; border-top: 1px solid #edf2f9; vertical-align: top; }
.gl-table tbody tr:nth-child(even) td { background: #f7f9fe; }
.gl-table td:first-child { font-weight: 700; color: #141c4f; }
/* Подчёркивание членов предложения, как в тетради. */
.gl-m { text-decoration: none; padding-bottom: 3px; }
.gl-m-s { border-bottom: 2px solid #1a2150; }
.gl-m-p { border-bottom: 5px double #1a2150; }
.gl-m-d { border-bottom: 2px dashed #b3541e; }
.gl-m-a { text-decoration: underline wavy #0b6e64; text-underline-offset: 4px; }
.gl-m-c { border-bottom: 2px dotted #6a4dff; background-image: linear-gradient(90deg, #6a4dff 55%, transparent 0); background-size: 12px 2px; background-repeat: repeat-x; background-position: 0 100%; border-bottom-color: transparent; }
.gl-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px var(--gl-inset); font-size: 13.5px; color: #4a5378; }
.gl-steps-box { margin: 20px var(--gl-inset) 8px; padding: 18px 20px 8px; border-radius: 16px; background: #eef4ff; }
.gl-steps { margin: 0 !important; padding: 0 !important; list-style: none; counter-reset: g8; }
.gl-steps li { counter-increment: g8; position: relative; margin: 0 !important; padding: 3px 0 14px 44px; }
.gl-steps li::before { content: counter(g8); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #2f8bff, #0052d6); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.gl-traps { display: grid; gap: 10px; }
.gl-trap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.gl-trap p { margin: 0; }
.gl-bad, .gl-good { display: flex; gap: 9px; align-items: flex-start; padding: 10px 13px; border-radius: 12px; }
.gl-bad { background: #fdece9; color: #a33; }
.gl-good { background: #e5f7ef; color: #0b6b47; font-weight: 600; }
.gl-bad > span:first-child, .gl-good > span:first-child { flex: none; width: 21px; height: 21px; margin-top: 2px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.gl-bad > span:first-child { background: #d64533; } .gl-good > span:first-child { background: #17a673; }
.gl-bad i, .gl-good i { color: inherit; }
.gl-why { grid-column: 1 / -1; padding: 0 4px 4px; font-size: 14.5px; color: #5e6b85; }
.gl-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 24px var(--gl-inset) 8px; }
.gl-trick, .gl-fact { padding: 16px 18px; border-radius: 16px; }
.gl-trick { color: #fff; background: linear-gradient(135deg, #6a4dff, #3c2bbd); }
.gl-trick i, .gl-trick b { color: #fff; }
.gl-fact { background: #fff3df; color: #5a3d00; box-shadow: inset 0 0 0 1px #fbe0ad; }
.gl-fact i { color: inherit; }
.gl-trick > b, .gl-fact > b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.gl-trick p, .gl-fact p { margin: 4px 0 0; font-size: 16px; line-height: 1.5; }
.gl-note { color: #6d7693; font-size: 15px; }
.gl-quiz { display: grid; gap: 8px; margin-bottom: 10px; }
.gl-quiz details { border: 1px solid #dfe6f4; border-radius: 12px; background: #fff; }
.gl-quiz summary { padding: 12px 16px; cursor: pointer; font-weight: 600; }
.gl-quiz summary:focus-visible, .gl-lesson a:focus-visible { outline: 3px solid #397edf; outline-offset: 3px; }
.gl-quiz details[open] { background: #f6fbfa; border-color: var(--gl-line); }
.gl-quiz details > p, .gl-quiz details > article { margin: 0; padding: 0 16px 14px; }
.gl-graph { margin-top: 12px; padding-top: 20px; border-top: 1px solid #e6edf8; }
.gl-graph-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 16px; }
.gl-links { display: flex; flex-direction: column; gap: 8px; }
.gl-links a { padding: 9px 13px; border-radius: 10px; background: #f1f4fd; color: #141c4f; text-decoration: none; font-weight: 600; font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
.gl-links a:hover { background: #dfe8ff; }
.gl-links small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6d7693; }
.gl-links p { margin: 0; color: #6d7693; }
.gl-source { margin: 24px var(--gl-inset) 0; padding: 14px 0 6px; border-top: 1px solid #e6edf8; font-size: 13px; line-height: 1.5; color: #625b72; }
@media (max-width: 640px) {
  .gl-lesson { --gl-inset: 18px; }
  .gl-hero { padding: 24px var(--gl-inset); } .gl-hook { font-size: 17px; }
  .gl-hero nav { flex-wrap: wrap; } .gl-hero nav button { min-height: 44px; white-space: normal; }
  .gl-main, .gl-steps-box, .gl-pair, .gl-source, .gl-legend { margin-left: var(--gl-inset); margin-right: var(--gl-inset); }
  .gl-block { padding: 24px var(--gl-inset) 4px; }
  .gl-block.gl-steps-box { padding: 18px 16px 8px; }
  .gl-pair, .gl-trap, .gl-graph-cols { grid-template-columns: 1fr; }
  .gl-vs-head { display: none; } .gl-vs-row { grid-template-columns: 1fr; }
  .gl-vs-row > div + div { border-left: 0; } .gl-vs-row > div:empty { display: none; }
  .gl-vs-row > div::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: #7a88a4; text-transform: uppercase; }
  .gl-table, .gl-table tbody, .gl-table tr, .gl-table td { display: block; border: 0; } .gl-table thead { display: none; }
  .gl-table tr { margin-bottom: 10px; padding: 8px 2px; border-radius: 12px; background: #f7f9fe; box-shadow: inset 0 0 0 1px #e6edf8; }
  .gl-table tbody tr:nth-child(even) td { background: transparent; } .gl-table td { padding: 5px 13px; }
  .gl-table td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: #7a88a4; text-transform: uppercase; }
}
@media print { .gl-hero nav { display: none !important; } .gl-quiz details > * { display: block !important; } .gl-pair, .gl-trap, .gl-graph-cols { display: block; } }

/* Не наследуем отступы обычных списков и не даём содержимому расширять сетку. */
.gl-lesson { overflow-wrap: anywhere; }
.gl-lesson [id] { scroll-margin-top: 100px; }
.gl-lesson h3, .gl-lesson h4 { line-height: 1.4; }
.gl-cards > *, .gl-trap > *, .gl-pair > *, .gl-graph-cols > *, .gl-bad > span, .gl-good > span { min-width: 0; }
.gl-table { table-layout: fixed; }
.gl-lesson .gl-flow li { min-width: 0; }
.gl-quiz details > .worked-example { margin: 0; box-shadow: none; border: 0; }
.gl-case { margin: 14px 26px 6px; padding: 18px 20px 10px; border-radius: 16px; background: #fff8e8; box-shadow: inset 0 0 0 1px #f6e2b3; }
.gl-case .overline { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #8a5a00; }
.gl-case h3 { margin: 6px 0 10px; font-size: 18px; }
.gl-case ol { margin: 0 0 8px; padding-left: 22px; }
.gl-hero { background: radial-gradient(900px 300px at 100% 0, rgba(92, 193, 250, .45), transparent 70%), linear-gradient(120deg, #0e2a47 0%, #14506b 50%, #0f8f7a 100%); }
@media (max-width: 640px) { .gl-case { margin-left: 16px; margin-right: 16px; } }
