/* ===========================================================================
   social-soligorsk.by — social-services theme over UIkit 3
   Tokens from design/specs.md:
   blue #1F6FB2 / deep #144E80 / teal #3FB0A0 / care #E8915B
   surface #F3F6FA / ink #222831 / muted #6A7382 / border #DCE4ED
   Headings + body: PT Sans (full Cyrillic)
   =========================================================================== */
:root {
  --gr-green: #2E7D4F;
  --gr-green-deep: #1C5436;
  --gr-teal: #2A9D8F;
  --gr-sand: #D7B377;
  --gr-surface: #F5F8F2;
  --gr-card: #FFFFFF;
  --gr-ink: #23302A;
  --gr-muted: #6B7A70;
  --gr-border: #DCE6D8;
  --gr-radius: 12px;
  --gr-shadow: 0 4px 16px rgba(31,111,178,0.08);
  --gr-shadow-hover: 0 10px 28px rgba(31,111,178,0.15);
}
body { background: var(--gr-surface); color: var(--gr-ink); font-family: "PT Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: "Montserrat", system-ui, sans-serif; color: var(--gr-green-deep); font-weight: 700; line-height: 1.25; }

/* header */
.gr-header { position: sticky; top: 0; z-index: 60; background: var(--gr-green); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.gr-header__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.25rem; flex-wrap: wrap; }
.gr-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; max-width: 70%; }
.gr-brand__title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.05rem; color: #fff; }
.gr-brand__sub { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #cfe3f5; }
.gr-nav ul { display: flex; flex-wrap: wrap; gap: 0.15rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.gr-nav li { margin: 0; position: relative; }
.gr-nav a { display: block; padding: 0.4rem 0.7rem; border-radius: 6px; color: #eaf3fb; text-decoration: none; font-size: 0.9rem; font-weight: 700; transition: background .2s,color .2s; }
.gr-nav a:hover, .gr-nav a.active { background: rgba(255,255,255,0.15); color: #fff; }
.gr-nav .has-children > .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--gr-card); border: 1px solid var(--gr-border); border-radius: 8px; box-shadow: var(--gr-shadow); padding: 0.3rem; z-index: 70; flex-direction: column; }
.gr-nav .has-children:hover > .submenu, .gr-nav .has-children:focus-within > .submenu { display: flex; }
.gr-nav .submenu a { color: var(--gr-ink); white-space: normal; font-weight: 400; }
.gr-nav .submenu a:hover { background: #e8f1fa; color: var(--gr-green-deep); }
.gr-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; border-radius: 6px; padding: 0.25rem 0.6rem; font-size: 1.3rem; cursor: pointer; }
@media (max-width: 960px) {
  .gr-toggle { display: block; }
  .gr-nav { display: none; flex-basis: 100%; }
  #gr-nav-toggle:checked ~ .gr-nav { display: block; }
  .gr-nav ul { flex-direction: column; align-items: stretch; }
  .gr-nav .has-children > .submenu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .gr-brand { max-width: 100%; }
}

/* hero / callout */
.gr-hero { background: linear-gradient(120deg, var(--gr-green), var(--gr-green-deep)); color: #fff; border-radius: 0 0 18px 18px; padding: 2.5rem 1.5rem; text-align: center; margin-bottom: 2rem; }
.gr-hero h1 { color: #fff; font-size: clamp(1.6rem,3.5vw,2.5rem); margin: 0 0 0.6rem; }
.gr-hero p { color: #dce9f6; max-width: 62ch; margin: 0 auto; }
.gr-hero::after { content:""; display:block; width:90px; height:4px; background:var(--gr-sand); margin:1.1rem auto 0; border-radius:4px; }

/* layout */
.gr-wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.gr-cols { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .gr-cols { grid-template-columns: 1fr; } }
.gr-section-title { font-size: 1.6rem; margin: 0 0 1.1rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--gr-teal); display: inline-block; }

/* sidebar */
.gr-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.gr-panel { background: var(--gr-card); border: 1px solid var(--gr-border); border-radius: var(--gr-radius); box-shadow: var(--gr-shadow); padding: 1.1rem 1.25rem; }
.gr-panel h3 { font-size: 1.05rem; margin: 0 0 0.7rem; color: var(--gr-green-deep); }
.gr-panel ul { list-style: none; margin: 0; padding: 0; }
.gr-panel li { margin: 0 0 0.4rem; }
.gr-panel a { color: var(--gr-green-deep); text-decoration: none; font-weight: 700; }
.gr-panel a:hover { color: var(--gr-sand); text-decoration: underline; }

/* content */
.content-prose { max-width: 100%; }
.content-copy { margin: 0 0 1rem; }
.content-heading { margin: 1.5rem 0 0.7rem; }
.content-prose a, .content-copy a, .content-mini-card h3 a { color: var(--gr-green); text-decoration: underline; text-decoration-color: rgba(31,111,178,0.4); text-underline-offset: 2px; }
.content-prose a:hover, .content-copy a:hover { color: var(--gr-sand); }
.content-figure { margin: 1rem 0; }
.content-figure img, .content-gallery img { max-width: 100%; height: auto; border-radius: 8px; }
.content-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 0.7rem; margin: 1rem 0; }
.content-gallery__item { margin: 0; }
.content-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
figcaption { font-size: 0.8rem; color: var(--gr-muted); margin-top: 0.25rem; }
.content-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.content-table-wrap { overflow-x: auto; margin: 1rem 0; }
.content-table { width: 100%; border-collapse: collapse; background: var(--gr-card); }
.content-table td, .content-table th { padding: 0.45rem 0.6rem; border: 1px solid var(--gr-border); text-align: left; vertical-align: top; }
.content-table th { background: #e8f1fa; color: var(--gr-green-deep); }

/* cards */
.gr-card-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 1rem; }
.content-mini-card { background: var(--gr-card); border: 1px solid var(--gr-border); border-radius: var(--gr-radius); box-shadow: var(--gr-shadow); padding: 1rem 1.1rem; transition: transform .2s, box-shadow .2s; }
.content-mini-card:hover { transform: translateY(-2px); box-shadow: var(--gr-shadow-hover); }
.content-mini-card h3 { font-size: 1.02rem; margin: 0 0 0.3rem; }
.content-mini-card p { margin: 0; color: var(--gr-muted); font-size: 0.88rem; }

/* breadcrumbs */
.gr-breadcrumbs { margin: 0 0 1rem; font-size: 0.85rem; }
.gr-breadcrumbs ul { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.gr-breadcrumbs li::after { content: "›"; margin-left: 0.35rem; color: var(--gr-muted); }
.gr-breadcrumbs li:last-child::after { content: ""; }
.gr-breadcrumbs a { color: var(--gr-green); text-decoration: none; }

/* article */
.gr-article { background: var(--gr-card); border: 1px solid var(--gr-border); border-radius: var(--gr-radius); box-shadow: var(--gr-shadow); padding: 1.5rem 1.75rem; }
.gr-article__meta { color: var(--gr-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.gr-article__summary { border-left: 4px solid var(--gr-teal); background: var(--gr-surface); padding: 0.8rem 1.1rem; border-radius: 0 8px 8px 0; margin: 0 0 1.4rem; }
.gr-article__image { float: right; max-width: 40%; margin: 0 0 1rem 1.4rem; border-radius: 8px; }
@media (max-width: 600px) { .gr-article__image { float: none; max-width: 100%; margin: 0 0 1rem; } }
.gr-toc { background: var(--gr-surface); border: 1px solid var(--gr-border); border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 1.4rem; }
.gr-toc ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.gr-toc a { color: var(--gr-green); }

/* category grid */
.gr-cat-grid { display: grid; gap: 1.2rem; }
.gr-cat-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.gr-cat-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 800px) { .gr-cat-grid.cols-2, .gr-cat-grid.cols-3 { grid-template-columns: 1fr; } }
.gr-cat-card { display: flex; flex-direction: column; overflow: hidden; }
.gr-cat-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gr-cat-card__body { padding: 1rem 1.1rem; }
.gr-cat-card__body h3 a { color: var(--gr-green-deep); text-decoration: none; }
.gr-cat-card__body h3 a:hover { color: var(--gr-sand); }
.gr-readmore { display: inline-block; margin-top: 0.5rem; color: var(--gr-green); font-weight: 700; text-decoration: none; }
.gr-readmore:hover { text-decoration: underline; }

/* footer */
.gr-footer { background: var(--gr-green-deep); color: #cfdded; margin-top: 3rem; padding: 2.5rem 1.25rem; border-top: 4px solid var(--gr-teal); }
.gr-footer__inner { max-width: 1200px; margin: 0 auto; }
.gr-footer h2 { color: #fff; margin: 0 0 0.5rem; font-size: 1.2rem; }
.gr-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1rem 0; }
.gr-footer__links a { color: #cfe1f1; text-decoration: none; font-size: 0.88rem; }
.gr-footer__links a:hover { text-decoration: underline; color: #fff; }
.gr-footer__copy { color: #8fa6bd; font-size: 0.8rem; margin-top: 1rem; }
