/* Semilio — шапка, заклик і підвал для звітів і презентацій у /cases/.
   Ізольовані класи .sml-*, щоб стилі самих звітів їх не ламали. Генерує _build/cases_chrome.php. */
@font-face { font-family: 'Nunito Variable'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/fonts/nunito-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito Variable'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/fonts/nunito-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Nunito Variable'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/fonts/nunito-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Caveat Variable'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/fonts/caveat-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Caveat Variable'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/fonts/caveat-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Caveat Variable'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/fonts/caveat-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

.sml {
  --forest: #1C4A3C; --sage: #7C9A74; --paper: #FDF8EF; --tint: #EEF0E2; --coral: #F4694D; --sun: #FDBE66; --sun-soft: #FEE8C4;
  --rust: #B04E2D; --ink: #17231E; --muted: #56655D; --line: rgba(28, 74, 60, .16);
  --f-main: 'Nunito Variable', Nunito, ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --f-hand: 'Caveat Variable', Caveat, 'Segoe Print', cursive;
  --brush-l: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 36 54%22 preserveAspectRatio=%22none%22%3E%3Cfilter id=%22f%22 x=%22-10%25%22 y=%22-10%25%22 width=%22120%25%22 height=%22120%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.32%22 numOctaves=%222%22 seed=%224%22/%3E%3CfeDisplacementMap in=%22SourceGraphic%22 scale=%221.8%22 xChannelSelector=%22R%22 yChannelSelector=%22G%22/%3E%3CfeGaussianBlur stdDeviation=%22.8%22/%3E%3C/filter%3E%3Cpath filter=%22url(%23f)%22 d=%22M36.00,5.20 L23.00,4.87 L19.33,5.50 L15.84,6.29 L12.77,8.16 L9.86,10.14 L6.60,12.67 L4.57,16.22 L3.12,19.62 L2.78,23.15 L2.42,27.17 L2.56,30.80 L2.70,34.70 L4.32,37.98 L6.92,41.26 L9.52,43.75 L12.56,45.88 L15.87,47.92 L19.26,48.73 L23.00,48.92 L36.00,49.00Z%22/%3E%3C/svg%3E");
  --brush-m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 54%22 preserveAspectRatio=%22none%22%3E%3Cfilter id=%22f%22 x=%22-10%25%22 y=%22-10%25%22 width=%22120%25%22 height=%22120%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.32%22 numOctaves=%222%22 seed=%224%22/%3E%3CfeDisplacementMap in=%22SourceGraphic%22 scale=%221.8%22 xChannelSelector=%22R%22 yChannelSelector=%22G%22/%3E%3CfeGaussianBlur stdDeviation=%22.8%22/%3E%3C/filter%3E%3Cpath filter=%22url(%23f)%22 d=%22M-2.00,5.87 L2.08,5.84 L6.16,5.60 L10.24,5.16 L14.32,5.62 L18.40,5.52 L22.48,5.10 L26.56,4.97 L30.64,4.76 L34.72,5.08 L38.80,5.42 L42.88,5.31 L46.96,5.00 L51.04,4.57 L55.12,4.63 L59.20,4.90 L63.28,4.29 L67.36,4.16 L71.44,3.99 L75.52,4.46 L79.60,4.82 L83.68,4.68 L87.76,4.63 L91.84,4.87 L95.92,4.97 L100.00,5.29 L104.08,5.45 L108.16,5.00 L112.24,5.12 L116.32,5.39 L120.40,5.45 L124.48,5.12 L128.56,5.27 L132.64,5.17 L136.72,5.47 L140.80,5.63 L144.88,5.88 L148.96,5.27 L153.04,5.08 L157.12,4.74 L161.20,4.99 L165.28,4.42 L169.36,4.20 L173.44,4.38 L177.52,4.41 L181.60,4.76 L185.68,4.73 L189.76,4.52 L193.84,4.74 L197.92,4.53 L202.00,5.03 L202.00,49.91 L197.92,49.40 L193.84,49.65 L189.76,49.17 L185.68,49.16 L181.60,49.05 L177.52,49.13 L173.44,49.05 L169.36,48.92 L165.28,49.41 L161.20,49.34 L157.12,49.05 L153.04,48.85 L148.96,48.57 L144.88,48.82 L140.80,48.54 L136.72,48.37 L132.64,47.80 L128.56,48.26 L124.48,48.72 L120.40,49.00 L116.32,48.68 L112.24,48.80 L108.16,49.24 L104.08,49.48 L100.00,49.41 L95.92,49.38 L91.84,49.16 L87.76,48.92 L83.68,49.16 L79.60,49.35 L75.52,49.66 L71.44,49.63 L67.36,49.64 L63.28,49.97 L59.20,49.91 L55.12,49.27 L51.04,49.21 L46.96,48.60 L42.88,48.52 L38.80,48.41 L34.72,48.56 L30.64,48.05 L26.56,48.32 L22.48,48.45 L18.40,48.61 L14.32,48.87 L10.24,48.66 L6.16,48.88 L2.08,49.00 L-2.00,48.95Z%22/%3E%3C/svg%3E");
  --brush-r: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 34 54%22 preserveAspectRatio=%22none%22%3E%3Cfilter id=%22f%22 x=%22-10%25%22 y=%22-10%25%22 width=%22120%25%22 height=%22120%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.32%22 numOctaves=%222%22 seed=%224%22/%3E%3CfeDisplacementMap in=%22SourceGraphic%22 scale=%221.8%22 xChannelSelector=%22R%22 yChannelSelector=%22G%22/%3E%3CfeGaussianBlur stdDeviation=%22.8%22/%3E%3C/filter%3E%3Cpath filter=%22url(%23f)%22 d=%22M0.00,5.10 L10.00,4.80 L17.00,4.50 L23.00,3.40 L28.50,1.60 L31.80,1.00 L29.80,3.20 L27.00,7.20 L28.40,12.00 L29.20,18.00 L28.60,25.00 L29.40,32.00 L28.30,38.50 L26.40,43.50 L22.80,47.40 L17.00,49.40 L8.00,49.20 L0.00,49.00Z%22/%3E%3C/svg%3E");
  --wash: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22220%22 height=%2260%22%3E%3Cfilter id=%22w%22 x=%220%22 y=%220%22 width=%22100%25%22 height=%22100%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.008 .05%22 numOctaves=%223%22 seed=%228%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix values=%220 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 .7 0 -.33%22/%3E%3C/filter%3E%3Cfilter id=%22k%22 x=%220%22 y=%220%22 width=%22100%25%22 height=%22100%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.015 .09%22 numOctaves=%223%22 seed=%2221%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix values=%220 0 0 0 0  0 0 0 0 0  0 0 0 0 0  .7 0 0 0 -.33%22/%3E%3C/filter%3E%3Crect width=%22220%22 height=%2260%22 filter=%22url(%23w)%22/%3E%3Crect width=%22220%22 height=%2260%22 filter=%22url(%23k)%22/%3E%3C/svg%3E");
  --sprig: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 32 24%22%3E%3Cpath d=%22M2.5 21.5C9 18 18 11 29.5 2.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.3%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M6.25 19.28Q8.56 21.60 13.59 20.26Q9.08 17.64 6.25 19.28ZM9.02 17.46Q11.80 15.41 11.16 9.96Q7.75 14.26 9.02 17.46ZM12.53 15.02Q15.02 17.27 20.11 15.62Q15.35 13.18 12.53 15.02ZM15.77 12.68Q18.33 10.64 17.54 5.49Q14.45 9.69 15.77 12.68ZM19.82 9.69Q22.02 11.61 26.41 10.09Q22.24 8.05 19.82 9.69ZM22.90 7.40Q25.03 5.68 24.33 1.37Q21.77 4.91 22.90 7.40ZM26.12 5.00Q27.73 6.40 30.92 5.28Q27.88 3.81 26.12 5.00ZM26.30 5.10Q30.70 4.10 30.90 1.10Q27.10 1.30 26.30 5.10Z%22/%3E%3C/svg%3E");
  --brush-mask: var(--brush-l) left center / 36px 100% no-repeat, var(--brush-m) center / calc(100% - 50px) 100% no-repeat, var(--brush-r) right center / 34px 100% no-repeat;
  display: block; position: relative; box-sizing: border-box; margin: 0; padding: 0; border: 0; width: 100%; max-width: none; float: none;
  font: 500 16px/1.5 var(--f-main); color: var(--ink); text-align: left; letter-spacing: normal; text-transform: none;
  -webkit-font-smoothing: antialiased;
}
.sml *, .sml *::before, .sml *::after { box-sizing: border-box; }
.sml a { color: inherit; text-decoration: none; background: none; border: 0; }
.sml ul, .sml li, .sml p { margin: 0; padding: 0; list-style: none; border: 0; background: none; }
.sml img { display: block; max-width: 100%; height: auto; border: 0; box-shadow: none; margin: 0; }
.sml-in { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sml-l { display: none !important; }
html[lang="uk"] .sml-l-uk, html[lang="en"] .sml-l-en, html[lang="es"] .sml-l-es, html[lang="ru"] .sml-l-ru { display: block !important; }

/* Шапка */
.sml-top { z-index: 90; background: var(--paper); border-bottom: 1.5px solid var(--line); }
.sml-top .sml-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.sml-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.sml-brand img { width: 44px; height: auto; }
.sml-bt { display: flex; flex-direction: column; line-height: 1; }
.sml-bn { font-weight: 900; font-size: 24px; color: var(--forest); letter-spacing: -.01em; }
.sml-bs { margin-top: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sml .sml-mt { position: absolute !important; left: 0 !important; top: 0 !important; opacity: 0 !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; clip-path: inset(50%) !important; pointer-events: none; }
.sml .sml-burger { padding: 0; background: none; font: inherit; } .sml-burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--forest); color: var(--forest); cursor: pointer; place-items: center; }
.sml-burger svg { width: 22px; height: 22px; }
.sml-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.sml-list { display: flex; align-items: center; gap: 4px; }
.sml-item { position: relative; }
.sml-item > a { display: block; padding: 10px 12px; font-weight: 700; font-size: 16px; color: var(--ink); border-radius: 12px; white-space: nowrap; }
.sml-item > a:hover { color: var(--forest); text-decoration: underline wavy var(--coral); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.sml-has > a::after { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sml-sub { display: none; position: absolute; top: 100%; left: 0; z-index: 95; min-width: 230px; padding: 10px !important; background: #FFFCF6 !important;
  border: 1.5px solid var(--line) !important; border-radius: 18px; box-shadow: 0 18px 36px -18px rgba(28, 74, 60, .35); }
.sml-has:hover .sml-sub, .sml-has:focus-within .sml-sub { display: block; }
.sml-sub a { display: block; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.sml-sub a:hover { background: var(--tint); color: var(--forest); }

/* Кнопка — мазок пензля, як на сайті */
.sml-btn { position: relative; isolation: isolate; z-index: 0; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: 11px 24px 12px 22px; font: 800 13px/1.2 var(--f-main); letter-spacing: .09em; text-transform: uppercase;
  color: var(--paper) !important; white-space: nowrap; transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.sml-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--wash) 0 0 / 220px 60px repeat, var(--rust);
  box-shadow: inset 0 0 11px rgba(0, 0, 0, .32); -webkit-mask: var(--brush-mask); mask: var(--brush-mask); }
.sml-btn::after { content: ''; flex: none; width: 23px; height: 21px; margin: -5px -7px 5px 0; background: url(/img/ui/ic-tea.webp?v=2) center bottom / contain no-repeat; }
.sml-btn:hover { transform: translateY(-2px); }
.sml-btn-lg { min-height: 54px; padding: 15px 34px 16px 30px; font-size: 14.5px; }

/* Заклик перед підвалом */
.sml-cta { background: var(--tint); padding: clamp(40px, 6vw, 72px) 0; text-align: center; }
.sml-cta .sml-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sml-ct { font: 900 clamp(24px, 3vw, 34px)/1.15 var(--f-main); color: var(--forest); text-wrap: balance; }
.sml-cs { font: 700 clamp(22px, 2.2vw, 27px)/1.1 var(--f-hand); color: var(--forest); }
.sml-cta .sml-btn { margin-top: 14px; }

/* Підвал */
.sml-foot { background: var(--forest); color: rgba(253, 248, 239, .82); padding: 48px 0 26px; font-size: 15px; }
.sml-fg { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 28px; }
.sml-foot .sml-bn { color: var(--paper); }
.sml-foot .sml-bs { color: rgba(253, 248, 239, .7); }
.sml-foot .sml-brand img { filter: brightness(0) invert(1); opacity: .95; }
.sml-tag { margin-top: 14px !important; font: 700 21px/1.2 var(--f-hand); color: var(--sun-soft); }
.sml-fh { margin-bottom: 12px !important; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-soft); }
.sml-foot li { margin: 0 0 7px !important; }
.sml-foot a:hover { color: var(--paper); text-decoration: underline; }
.sml-fb { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(253, 248, 239, .16); font-size: 13.5px; color: rgba(253, 248, 239, .6); }

@media (max-width: 1080px) {
  .sml-burger { display: grid; }
  .sml-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 95; flex-direction: column; align-items: stretch; gap: 14px; margin: 0;
    padding: 12px clamp(16px, 4vw, 40px) 22px; background: var(--paper); border-bottom: 1.5px solid var(--line); box-shadow: 0 18px 30px -20px rgba(28, 74, 60, .4); }
  .sml-mt:checked ~ .sml-nav { display: flex; }
  .sml-list { flex-direction: column; align-items: stretch; gap: 0; }
  .sml-item { border-bottom: 1.5px dashed var(--line); }
  .sml-item > a { padding: 14px 2px; font-size: 19px; font-weight: 800; }
  .sml-has > a::after { display: none; }
  .sml-sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; min-width: 0; padding: 0 0 10px !important; background: none !important; border: 0 !important; box-shadow: none; }
  .sml-sub a { padding: 7px 2px; font-size: 15.5px; white-space: normal; }
  .sml-nav .sml-btn { width: 100%; min-height: 52px; }
  .sml-fg { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sml-top .sml-in { min-height: 66px; }
  .sml-bn { font-size: 21px; }
  .sml-brand img { width: 38px; }
  .sml-sub { grid-template-columns: minmax(0, 1fr); }
  .sml-fg { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sml-btn { white-space: normal; text-align: center; }
}
@media print { .sml-top, .sml-cta { display: none !important; } }
