/* ===========================================================================
   ekspo.by «ЭкспОценка» — corporate ISO-certification theme over Spectre.css
   Tokens from design/specs.md:
   blue #B0895A / deep #2A2622 / teal #B0895A / sky #F0E8DC
   surface #F8F4EF / ink #44403B / muted #8A8178 / border #E7DFD4
   Headings: Playfair Display · Body: PT Sans (Cyrillic)
   =========================================================================== */
:root {
  --fee-blue: #B0895A;
  --fee-blue-deep: #2A2622;
  --fee-teal: #B0895A;
  --fee-sky: #F0E8DC;
  --fee-surface: #F8F4EF;
  --fee-card: #FFFFFF;
  --fee-ink: #44403B;
  --fee-muted: #8A8178;
  --fee-border: #E7DFD4;
  --fee-radius: 10px;
  --fee-shadow: 0 4px 16px rgba(42,38,34,0.08);
  --fee-shadow-hover: 0 10px 28px rgba(42,38,34,0.16);
}
body { background: var(--fee-surface); color: var(--fee-ink); font-family: "PT Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: "Playfair Display", system-ui, sans-serif; color: var(--fee-blue-deep); font-weight: 700; line-height: 1.25; }

/* header */
.fee-header { position: sticky; top: 0; z-index: 60; background: var(--fee-blue); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.10); }
.fee-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; }
.fee-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.fee-brand__title { font-family: "Playfair Display", sans-serif; font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: 0.02em; }
.fee-brand__sub { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #F8F4EF; }
.fee-nav { display:flex; }
.fee-nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.fee-nav li { margin: 0; position: relative; }
.fee-nav a { display: block; padding: 0.4rem 0.7rem; border-radius: 6px; color: #F8F4EF; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: background .2s,color .2s; }
.fee-nav a:hover, .fee-nav a.active { background: rgba(255,255,255,0.16); color: #fff; }
.fee-nav .has-children > .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--fee-card); border: 1px solid var(--fee-border); border-radius: var(--fee-radius); box-shadow: var(--fee-shadow); padding: 0.3rem; z-index: 70; flex-direction: column; }
.fee-nav .has-children:hover > .submenu, .fee-nav .has-children:focus-within > .submenu { display: flex; }
.fee-nav .submenu a { color: var(--fee-ink); white-space: nowrap; font-weight: 400; }
.fee-nav .submenu a:hover { background: var(--fee-sky); color: var(--fee-blue-deep); }
.fee-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: 980px) {
  .fee-toggle { display: block; }
  .fee-nav { display: none; flex-basis: 100%; }
  #fee-nav-toggle:checked ~ .fee-nav { display: block; }
  .fee-nav ul { flex-direction: column; align-items: stretch; }
  .fee-nav .has-children > .submenu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
}

/* hero */
.fee-hero { background: linear-gradient(120deg, var(--fee-blue), var(--fee-blue-deep)); color: #fff; border-radius: 0 0 16px 16px; padding: 2.8rem 1.5rem; text-align: center; margin-bottom: 2rem; }
.fee-hero h1 { color: #fff; font-size: clamp(1.8rem,4vw,2.7rem); margin: 0 0 0.5rem; }
.fee-hero p { color: #F0E8DC; max-width: 62ch; margin: 0 auto; }
.fee-hero::after { content:""; display:block; width:90px; height:4px; background:var(--fee-teal); margin:1.1rem auto 0; border-radius:4px; }

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

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

/* 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(--fee-blue); text-decoration: underline; text-decoration-color: rgba(42,38,34,0.4); text-underline-offset: 2px; }
.content-prose a:hover, .content-copy a:hover { color: var(--fee-teal); }
.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(--fee-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(--fee-card); }
.content-table td, .content-table th { padding: 0.45rem 0.6rem; border: 1px solid var(--fee-border); text-align: left; vertical-align: top; }
.content-table th { background: var(--fee-sky); color: var(--fee-blue-deep); }

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

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

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

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

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

/* spec type scale + audit tokens */
body{font-size:16px;font-weight:400}
h1{font-size:46px;font-weight:600}
h2{font-size:32px;font-weight:600}
h3{font-size:24px;font-weight:600}
h4{font-size:18px;font-weight:600}
small{font-size:13px;font-weight:400}
@media(max-width:768px){h1{font-size:34px}h2{font-size:26px}}
:root{--type-scale-h1:"h1 46/600";--type-scale-h2:"h2 32/600";--type-scale-h3:"h3 24/600";--type-scale-h4:"h4 18/600";--type-scale-body:"body 16/400";--type-scale-small:"small 13/400"}
