.strichka { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 15px; }
.zapys { position: relative; min-width: 0; overflow-wrap: anywhere; }
.zapys-obraz { display: block; background: #00b39c; }
.zapys-obraz img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zapys-nazva { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.zapys-nazva a { color: #2c2f34; }
.zapys-nazva a:hover { color: #00b39c; }
.zapys-data { margin: 0 0 3px; font-size: 12px; line-height: 21px; color: #666; }
.zapys-vyrizka { margin: 8px 0 0; font-size: 14px; line-height: 22px; color: #555; }
.zapys .plashka { position: absolute; top: 10px; left: 10px; z-index: 2; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.strichka-holovna .zapys:nth-of-type(-n+5) { grid-column: span 3; order: 0; height: 155px; overflow: hidden; background: #00b39c; }
.strichka-holovna .zapys:nth-of-type(-n+5) .zapys-obraz { position: absolute; inset: 0; }
.strichka-holovna .zapys:nth-of-type(-n+5) .zapys-obraz::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .12)); }
.strichka-holovna .zapys:nth-of-type(-n+5) .zapys-tekst { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 10px; }
.strichka-holovna .zapys:nth-of-type(-n+5) .zapys-nazva { font-size: 14px; line-height: 19.6px; }
.strichka-holovna .zapys:nth-of-type(-n+5) .zapys-nazva a { color: #fff; }
.strichka-holovna .zapys:nth-of-type(-n+5) .zapys-data, .strichka-holovna .zapys:nth-of-type(-n+5) .zapys-vyrizka { display: none; }
.strichka-holovna { position: relative; isolation: isolate; padding-bottom: 55px; }
.strichka-holovna::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 170px; bottom: 0; background: #f8f8f8; box-shadow: 0 0 0 100vmax #f8f8f8; clip-path: inset(0 -100vmax); }
.strichka-holovna:not(:has(.zapys:nth-of-type(6)))::before { display: none; }
.strichka-nazva { grid-column: 1 / -1; order: 1; display: flex; align-items: center; gap: 30px; margin: 0; padding: 70px 0 35px; font-size: 50px; line-height: 70px; font-weight: 700; text-align: center; }
.strichka-nazva::before, .strichka-nazva::after { content: ""; flex: 1 1 0; height: 1px; background: #e2e2e2; }
.strichka-holovna:not(:has(.zapys:nth-of-type(6))) > .strichka-nazva { display: none; }
.strichka-holovna .zapys:nth-of-type(n+6) { grid-column: span 5; order: 2; }
.strichka-holovna .zapys:nth-of-type(n+6) .zapys-obraz { position: relative; aspect-ratio: 368 / 208; margin-bottom: 10px; }
.strichka-holovna .zapys:nth-of-type(n+6) .zapys-obraz img { position: absolute; inset: 0; }
.strichka-holovna .zapys:nth-of-type(n+6) .zapys-vyrizka { display: none; }
.strichka-holovna .porozhnio { grid-column: 1 / -1; order: 3; }

.strichka-rubryka { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 30px; }
.strichka-rubryka .zapys { min-height: 300px; overflow: hidden; background: #00b39c; color: #fff; }
.strichka-rubryka .zapys-obraz { position: absolute; inset: 0; }
.strichka-rubryka .zapys-obraz::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, .15)); }
.strichka-rubryka .plashka { display: none; }
.strichka-rubryka .zapys-tekst { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 25px; }
.strichka-rubryka .zapys-data { color: #ddd; font-size: 13px; }
.strichka-rubryka .zapys-nazva { font-size: 24px; line-height: 32px; }
.strichka-rubryka .zapys-nazva a, .strichka-rubryka .zapys-vyrizka { color: #fff; }
.strichka-rubryka .zapys-vyrizka { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strichka-rubryka .zapys:last-child:nth-child(odd) { grid-column: 1 / -1; }

.strichka-poshuk { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 4%; margin-bottom: 30px; }
.strichka-poshuk .zapys { background: #fff; border: 1px solid #eaeaea; border-radius: 2px; }
.strichka-poshuk .zapys-obraz { position: relative; aspect-ratio: 16 / 9; }
.strichka-poshuk .zapys-obraz img { position: absolute; inset: 0; }
.strichka-poshuk .zapys-tekst { padding: 20px 30px 25px; }
.strichka-poshuk .zapys-nazva { font-size: 24px; line-height: 33px; }

@media (max-width: 991px) {
  .smuha-kolonka { display: block; }
  .smuha-kolonka .osnova { padding: 0 15px; }
  .bichna { padding: 15px 15px 0; }
  .strichka-holovna { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strichka-holovna .zapys:nth-of-type(-n+5) { grid-column: span 1; height: 180px; }
  .strichka-holovna .zapys:nth-of-type(5) { grid-column: 1 / -1; }
  .strichka-holovna .zapys:nth-of-type(n+6) { grid-column: span 1; }
  .strichka-holovna::before { top: 585px; }
  .strichka-nazva { font-size: 35px; line-height: 50px; padding-top: 55px; }
  .pidbirky { grid-template-columns: 1fr; }

  .holova-smuha { height: auto; min-height: 54px; padding: 0 15px; }
  .lohotyp { order: 2; margin: 0 auto; }
  .lohotyp-obraz { width: 160px; height: 26px; object-position: center; }
  .lohotyp-nazva { font-size: 20px; line-height: 26px; }
  .knopka-menu.ye-zhyva { order: 1; position: relative; z-index: 70; display: flex; align-items: center; width: 42px; height: 54px; padding: 0; border: 0; background: transparent; color: #2c2f34; cursor: pointer; }
  .knopka-menu[aria-expanded="true"] { color: #fff; }
  .smuzhky { position: relative; display: block; width: 22px; height: 2px; background: currentColor; }
  .smuzhky::before, .smuzhky::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
  .smuzhky::before { top: -7px; }
  .smuzhky::after { top: 7px; }
  .knopka-poshuk.ye-zhyva { order: 3; height: 54px; }
  .holovne-menu { order: 4; flex: 1 0 100%; display: block; padding: 0; background: #1f2024; }
  .holovne-menu.ye-zghornuto { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; flex: none; width: min(390px, 100%); padding-top: 50px; overflow-y: auto; visibility: hidden; transform: translateX(-100%); }
  .holovne-menu.ye-zghornuto.ye-vidkryta { visibility: visible; transform: none; transition: transform .25s; }
  .menu { display: block; }
  .menu a { padding: 13px 20px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .menu a.ye-rozdil { box-shadow: none; color: #00e0c4; }
  .pidmenu { display: block; position: static; min-width: 0; background: rgba(255, 255, 255, .05); border: 0; box-shadow: none; }
  .pidmenu a { padding-left: 38px; }
  .panel-poshuku-smuha { padding: 12px 15px; }
}

@media (max-width: 599px) {
  .strichka-holovna { grid-template-columns: minmax(0, 1fr); }
  .strichka-holovna .zapys:nth-of-type(-n+5), .strichka-holovna .zapys:nth-of-type(5), .strichka-holovna .zapys:nth-of-type(n+6) { grid-column: 1 / -1; }
  .strichka-holovna .zapys:nth-of-type(-n+5) .zapys-nazva { font-size: 16px; line-height: 22px; }
  .strichka-rubryka, .strichka-poshuk { grid-template-columns: minmax(0, 1fr); }
  .strichka-rubryka .zapys:last-child:nth-child(odd) { grid-column: auto; }
  .strichka-poshuk { gap: 20px; }
  .kartka, .vidzhet, .pidbirka { padding: 20px; }
  .zaholovok-rubryky { font-size: 30px; line-height: 40px; }
  .stattia-nazva { font-size: 28px; line-height: 38px; }
  .tekst h2 { font-size: 25px; line-height: 34px; }
  .strichka-poshuk .zapys-tekst { padding: 15px 20px 20px; }
  .zbii-kod { font-size: 100px; line-height: 140px; }
  .strichka-holovna::before { top: 975px; }
}
