/*
Theme Name: Global Learn Center
Theme URI: https://globallearncenter.com/
Author: Global Learn Center
Description: Blockchain in the world: real uses outside finance and how regions regulate crypto-assets. Educational only.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: globallearncenter
*/

:root {
  --ocean: #1F5FA8;
  --ocean-2: #174c88;
  --navy: #0F2747;
  --navy-2: #1b3a63;
  --sky: #DCEBFA;
  --sky-2: #F4F9FE;
  --teal: #2A9D8F;
  --teal-2: #21806f;
  --grid: #E3EAF3;
  --paper: #ffffff;
  --text: #17263b;
  --muted: #52637a;
  --head: "Avenir Next", Avenir, "Century Gothic", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 8px;
  --cc-bg: #ffffff; --cc-fg: #17263b; --cc-btn-bg: #0F2747; --cc-btn-fg: #ffffff; --cc-focus: #2A9D8F;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.65 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.22; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); margin: .2em 0 .45em; }
h2 { font-size: clamp(1.4rem, 2.7vw, 1.9rem); margin: 1.7em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.3em 0 .4em; }
p { margin: 0 0 1em; }

.shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 840px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); font-size: .93rem; }
.small { font-size: 1rem; }

/* шапка */
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--grid); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.16rem; letter-spacing: .01em; }
.brand-sub { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-top: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { background: var(--sky); color: var(--ocean); }
.menu-toggle { display: none; background: var(--sky-2); border: 1px solid var(--grid); border-radius: 6px; padding: 8px 14px; font: 600 .95rem var(--sans); color: var(--navy); cursor: pointer; }
.infostrip { background: var(--sky); color: var(--navy-2); font-size: .8rem; padding: 5px 0; border-bottom: 1px solid var(--grid); }

/* кнопки */
.btn { display: inline-block; background: var(--ocean); color: #fff; border: 2px solid var(--ocean); padding: 11px 22px; border-radius: 6px; text-decoration: none; cursor: pointer; font: 700 1rem var(--sans); }
.btn:hover { background: var(--ocean-2); border-color: var(--ocean-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ocean); }
.btn-ghost:hover { background: var(--sky); color: var(--navy); border-color: var(--ocean); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sky); color: var(--navy); border-color: var(--sky); }

/* сетка меридианов и параллелей как фон */
.hero, .page-hero {
  background-color: var(--sky-2);
  background-image:
    radial-gradient(ellipse 70% 90% at 30% 40%, rgba(255,255,255,.95), rgba(255,255,255,.55) 60%, rgba(255,255,255,0) 100%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
}

/* hero */
.hero { padding: 48px 0 26px; border-bottom: 1px solid var(--grid); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-2); margin: 0; }
.lead { font-size: 1.13rem; color: #2a3d57; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 1em; }
.hero-note { font-size: .9rem; color: var(--muted); background: #fff; border: 1px solid var(--grid); border-left: 4px solid var(--teal); padding: 9px 12px; border-radius: 0 6px 6px 0; }
.hero-art img { border-radius: 50%; box-shadow: 0 18px 50px rgba(15,39,71,.14); aspect-ratio: 1 / 1; object-fit: cover; }
.hero-globe { width: 100%; max-width: 460px; margin: 0 auto; }
.hero-index { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-index li { background: #fff; border: 1px solid var(--grid); border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: var(--muted); }
.hero-index strong { color: var(--navy); font-family: var(--head); font-size: 1.1rem; margin-right: 3px; }

/* секции */
.section { padding: 40px 0 34px; }
.section h2 { margin-top: .2em; }
.section-sea { background: var(--sky-2); border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid);
  background-image: repeating-linear-gradient(0deg, transparent 0 63px, rgba(31,95,168,.06) 63px 64px); }
.kicker { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-2); margin: 0 0 .4em; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--teal); }
.section-lead { color: var(--muted); max-width: 760px; }

.uc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 18px; }
.uc-card { background: #fff; border: 1px solid var(--grid); border-radius: var(--r); padding: 18px 18px 8px; position: relative; transition: border-color .15s, box-shadow .15s; }
.uc-card:hover { border-color: var(--ocean); box-shadow: 0 8px 22px rgba(15,39,71,.08); }
.uc-card .ico, .uc-row .ico { width: 44px; height: 44px; }
.uc-card h3 { margin: .7em 0 .35em; font-size: 1.06rem; }
.uc-card h3 a { color: var(--navy); text-decoration: none; }
.uc-card h3 a::after { content: ""; position: absolute; inset: 0; }
.uc-card h3 a:hover { color: var(--ocean); }
.uc-card p { font-size: .93rem; color: var(--muted); }

.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 18px 0 22px; }
.region-card { background: #fff; border: 1px solid var(--grid); border-left: 5px solid var(--ocean); border-radius: 0 var(--r) var(--r) 0; padding: 16px 18px 6px; }
.region-card h3, .region-card h2 { margin: 0 0 .35em; font-size: 1.12rem; }
.region-card h3 a, .region-card h2 a { color: var(--navy); text-decoration: none; }
.region-card h3 a:hover, .region-card h2 a:hover { color: var(--ocean); text-decoration: underline; }
.region-card p { font-size: .93rem; }
.region-meta { color: var(--muted); }
.region-meta span { font-weight: 700; color: var(--teal-2); }
.mini-dl { margin: 0 0 10px; font-size: .88rem; }
.mini-dl div { padding: 6px 0; border-top: 1px dashed var(--grid); }
.mini-dl dt { font-weight: 700; color: var(--teal-2); }
.mini-dl dd { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.steps li { counter-increment: st; border-top: 3px solid var(--ocean); padding-top: 14px; }
.steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--head); font-weight: 700; font-size: 1.6rem; color: var(--teal); }
.steps h3 { margin: .2em 0 .35em; font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .94rem; }

.nochain { border: 2px dashed var(--teal); background: #f2faf8; border-radius: 12px; padding: 24px 26px 12px; }
.nochain h2 { margin: 0 0 .4em; }
.qlist { list-style: none; padding: 0; margin: 0 0 1em; }
.qlist li { position: relative; padding: 8px 0 8px 40px; border-bottom: 1px solid #d7ece8; }
.qlist li::before { content: "?"; position: absolute; left: 0; top: 7px; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--head); }

.faq details { border: 1px solid var(--grid); border-radius: var(--r); padding: 0 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; }
.faq details[open] summary { color: var(--ocean); }
.faq details p { margin: 0 0 14px; }

.contact-strip { background: var(--navy); color: #dbe7f5; padding: 30px 0 18px;
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(220,235,250,.07) 31px 32px); }
.contact-inner h2 { color: #fff; margin: 0 0 .4em; }
.contact-strip a { color: #fff; }

/* внутренние страницы */
.page-hero { padding: 24px 0 10px; border-bottom: 1px solid var(--grid); margin-bottom: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9db0c7; }
.crumbs a { color: var(--ocean); }
.meta { color: var(--muted); font-size: .92rem; }
.prose { max-width: 780px; padding-bottom: 20px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--grid); padding: 9px 11px; text-align: left; vertical-align: top; }
.prose th { background: var(--sky); color: var(--navy); }
.kv th { width: 34%; }
.note { background: var(--sky); border-left: 4px solid var(--ocean); padding: 11px 15px; border-radius: 0 6px 6px 0; }
.legal-note { font-size: .92rem; background: #fff8e6; border-left-color: #c98a00; }

.glance { background: var(--sky-2); border: 1px solid var(--grid); border-top: 4px solid var(--teal); border-radius: var(--r); padding: 14px 20px 6px; margin: 4px 0 22px; }
.glance-title { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-bottom: .5em; }
.glance-title .ico { width: 30px; height: 30px; }
.glance dl { margin: 0; }
.glance dl div { padding: 8px 0; border-top: 1px dashed var(--grid); }
.glance dt { font-weight: 700; color: var(--teal-2); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.glance dd { margin: .2em 0 0; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; }
.glance-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; display: table; }
.glance-table caption { text-align: left; font-family: var(--head); font-weight: 700; color: var(--navy); padding: 0 0 8px; font-size: 1.05rem; }
.glance-table th { width: 30%; background: var(--sky); color: var(--navy); }
.tried { border-left: 4px solid var(--ocean); padding-left: 18px; margin-top: 10px; }
.tried h2, .enough h2 { margin-top: 1.2em; }
.enough { background: #f2faf8; border: 1px solid #cfe9e4; border-radius: var(--r); padding: 2px 20px 8px; margin-top: 22px; }
.sources li { font-size: .94rem; }
.page-disclaimer { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--grid); padding-top: 12px; margin-top: 18px; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--grid); padding: 18px 0 30px; }
.pager a { font-weight: 600; text-decoration: none; }

/* список разборов */
.uc-list { list-style: none; padding: 0; margin: 0; counter-reset: uc; }
.uc-row { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--grid); }
.uc-row h2 { margin: 0 0 .3em; font-size: 1.3rem; }
.uc-row h2 a { color: var(--navy); text-decoration: none; }
.uc-row h2 a:hover { color: var(--ocean); text-decoration: underline; }
.uc-row p { margin-bottom: .5em; }
.uc-row .ico { width: 54px; height: 54px; }

.callout { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: var(--navy); color: #dbe7f5; border-radius: 12px; padding: 26px 28px; margin: 30px 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 47px, rgba(220,235,250,.07) 47px 48px); }
.callout h2 { color: #fff; margin: 0 0 .3em; font-size: 1.35rem; }
.callout p { margin: 0; }
.callout .btn { flex-shrink: 0; white-space: normal; text-align: center; }

/* карта */
.world-map { margin: 0 0 10px; }
.map-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--grid); border-radius: var(--r); background: var(--sky-2); }
.map-wrap svg { min-width: 640px; width: 100%; }
.world-map figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.world-map .grat { stroke: var(--grid); stroke-width: 1.2; }
.world-map .grat.eq { stroke: #b9cfe8; stroke-dasharray: 6 6; }
.world-map .land { fill: var(--sky); stroke: var(--ocean); stroke-width: 1.2; stroke-opacity: .45; stroke-linejoin: round; }
.world-map .leader { stroke: var(--navy); stroke-width: 1.6; stroke-dasharray: 3 4; opacity: .7; }
.world-map .pin { fill: var(--teal); stroke: #fff; stroke-width: 3; }
.world-map .pin-ring { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-dasharray: 5 4; }
.world-map .pin-label { fill: #fff; stroke: var(--ocean); stroke-width: 1.5; }
.world-map .pin-text { font: 600 17px var(--sans); fill: var(--navy); }
.world-map .pin-link:hover .pin-label, .world-map .pin-link:focus .pin-label { fill: var(--sky); stroke-width: 2.5; }
.world-map .pin-link:focus { outline: none; }
.world-map .pin-link:focus-visible .pin-label { stroke: var(--teal); stroke-width: 3; }
.region-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.region-links a { display: flex; align-items: center; gap: 10px; border: 1px solid var(--grid); border-radius: var(--r); padding: 10px 14px; text-decoration: none; font-weight: 600; color: var(--navy); background: #fff; }
.region-links a:hover { border-color: var(--ocean); background: var(--sky-2); }
.region-links .ico { width: 28px; height: 28px; flex-shrink: 0; }
.compare { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.compare th, .compare td { border: 1px solid var(--grid); padding: 10px 12px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; }
.compare tbody th { background: var(--sky-2); }
.compare tbody tr:nth-child(even) td { background: #fbfdff; }

/* глоссарий */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.az a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border: 1px solid var(--grid); border-radius: 50%; text-decoration: none; font-weight: 700; color: var(--ocean); background: #fff; }
.az a:hover { background: var(--sky); }
.letter { border-bottom: 2px solid var(--sky); padding-bottom: 4px; color: var(--ocean); }
.glossary { margin: 0; }
.glossary div { padding: 11px 0; border-bottom: 1px solid var(--grid); scroll-margin-top: 110px; }
.glossary dt { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.06rem; }
.glossary dd { margin: .2em 0 0; }

/* подвал */
.site-footer { background: var(--navy); color: #c3d3e6; margin-top: 0; padding: 34px 0 18px; font-size: .93rem;
  background-image: repeating-linear-gradient(0deg, transparent 0 55px, rgba(220,235,250,.05) 55px 56px), repeating-linear-gradient(90deg, transparent 0 55px, rgba(220,235,250,.05) 55px 56px); }
.site-footer a { color: #eef4fb; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 26px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer-title { font-family: var(--head); color: #fff; font-weight: 700; margin-bottom: .5em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-disclaimer { border: 1px solid rgba(220,235,250,.22); border-radius: var(--r); padding: 14px 18px; margin: 24px 0 18px; background: rgba(255,255,255,.04); }
.footer-disclaimer p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 4px 0 14px; border-bottom: 1px solid rgba(220,235,250,.14); }
.legal-links a { text-decoration: none; font-weight: 600; }
.legal-links a:hover { text-decoration: underline; }
.copyright { margin: 14px 0 0; font-size: .84rem; color: #9fb4cc; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--grid); flex-direction: column; gap: 0; padding: 6px 16px 12px; box-shadow: 0 10px 20px rgba(15,39,71,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 6px; border-radius: 0; border-bottom: 1px solid var(--grid); }
  .menu-toggle { display: block; }
  .header-inner { position: relative; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 30px; }
  .steps, .footer-top { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; padding: 22px; }
  .nochain { padding: 18px 16px 8px; }
  .uc-row { grid-template-columns: 1fr; gap: 6px; }
  .brand-sub { display: none; }
  .infostrip { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .uc-card { transition: none; } }
