/* Novinky (list + article) and the two home blocks (3 latest articles, social strip). Variant a | b = cfg newsVariant. */
.nw-eyebrow { margin: 0 0 8px; color: var(--pink); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* Card (list, "more", home a) */
.nw-card { min-width: 0; }
.nw-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.nw-card__link:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 102, 179, .16); }
.nw-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.nw-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.nw-card__link:hover .nw-card__img img { transform: scale(1.04); }
.nw-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.nw-card__meta { color: var(--muted); font-size: 14px; margin: 0; }
.nw-card__title { font-size: 21px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.nw-card__perex { color: var(--muted); font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card__more { margin-top: auto; color: var(--pink); font-weight: 700; }

/* Home block, shared head */
.nw-home { max-width: var(--container); margin: 0 auto 80px; padding: 0 var(--gutter); }
.nw-home__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 24px; margin-bottom: 28px; }
.nw-home__head .nw-eyebrow { grid-column: 1 / -1; }
.nw-home__head h2 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; color: var(--blue); }
.nw-home__all { color: var(--pink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nw-home__all:hover { color: var(--pink-hover); }

/* Home a: 3 cards side by side, full width */
.nw-home--a .nw-home__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Home b: stacked rows, image left, on a soft band */
.nw-home--b { max-width: none; padding: 64px var(--gutter); background: var(--bg-soft); }
.nw-home--b .nw-home__head, .nw-home--b .nw-home__list { max-width: 1100px; margin-left: auto; margin-right: auto; }
.nw-home--b .nw-home__list { display: flex; flex-direction: column; gap: 16px; }
.nw-home--b .nw-card__link { flex-direction: row; align-items: stretch; box-shadow: none; border: 1px solid var(--line); }
.nw-home--b .nw-card__img { flex: 0 0 34%; aspect-ratio: auto; min-height: 190px; }
.nw-home--b .nw-card__body { justify-content: center; padding: 24px 32px; }
.nw-home--b .nw-card__perex { -webkit-line-clamp: 2; }
.nw-home--b .nw-card__more { margin-top: 4px; }

/* Social strip, shared */
.nw-social { max-width: var(--container); margin: 0 auto 80px; padding: 0 var(--gutter); }
.nw-social__head h2 { margin: 0 0 10px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; color: var(--blue); }
.nw-social__lead { margin: 0 0 20px; color: var(--muted); font-size: 18px; max-width: 560px; }
.nw-social__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.nw-social__btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #fff; }
.nw-social__btn svg { width: 20px; height: 20px; }
.nw-social__btn--instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF); }
.nw-social__btn--facebook { background: #1877F2; }
.nw-social__btn:hover { filter: brightness(1.08); }
.nw-social__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.nw-post { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.nw-post img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.nw-post:hover img { transform: scale(1.04); }
.nw-post__badge { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.nw-post__badge svg { width: 20px; height: 20px; }

/* Social a: centered head above a 4-column grid */
.nw-social--a .nw-social__head { text-align: center; margin-bottom: 32px; }
.nw-social--a .nw-social__lead { margin-left: auto; margin-right: auto; }
.nw-social--a .nw-social__btns { justify-content: center; }

/* Social b: blue band, head left, posts right */
.nw-social--b { max-width: none; padding: 64px var(--gutter); background: var(--blue); color: #fff; display: grid; grid-template-columns: minmax(260px, 1fr) 2.4fr; gap: 40px; align-items: center; }
.nw-social--b .nw-eyebrow { color: #FFC2DF; }
.nw-social--b .nw-social__head h2 { color: #fff; }
.nw-social--b .nw-social__lead { color: rgba(255, 255, 255, .85); }
.nw-social--b .nw-social__btn--instagram, .nw-social--b .nw-social__btn--facebook { background: #fff; color: var(--blue); }
.nw-social--b .nw-social__btn--instagram svg { color: #DD2A7B; }
.nw-social--b .nw-social__btn--facebook svg { color: #1877F2; }
.nw-social--b .nw-post { box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }

/* List page */
.nw-list { max-width: var(--container); margin: 0 auto; padding: 48px var(--gutter) 64px; }
.nw-list__head { margin-bottom: 32px; }
.nw-list__head h1 { margin: 0 0 10px; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.1; color: var(--blue); }
.nw-list__lead { margin: 0; color: var(--muted); font-size: 19px; }
.nw-lead__link { display: grid; grid-template-columns: 1.35fr 1fr; color: inherit; text-decoration: none; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 28px; }
.nw-lead__img { display: block; min-height: 340px; }
.nw-lead__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-lead__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px; }
.nw-lead__title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-weight: 800; color: var(--ink); }
.nw-lead__link:hover .nw-lead__title { color: var(--blue); }
.nw-list__grid, .nw-more__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Article */
.nw-art { padding: 40px var(--gutter) 24px; }
.nw-art__head, .nw-art__body { max-width: 780px; margin: 0 auto; }
.nw-art__crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.nw-art__crumbs a { color: var(--blue); text-decoration: none; }
.nw-art__head h1 { margin: 8px 0 16px; font-size: clamp(32px, 4vw, 52px); line-height: 1.12; color: var(--blue); }
.nw-art__perex { font-size: 21px; line-height: 1.55; color: var(--muted); margin: 0 0 28px; }
.nw-art__hero { max-width: 1100px; margin: 0 auto 36px; }
.nw-art__hero img, .nw-art__inline img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.nw-art__body { font-size: 18px; line-height: 1.7; }
.nw-art__body h2 { margin: 40px 0 12px; font-size: 28px; line-height: 1.25; color: var(--ink); }
.nw-art__body p { margin: 0 0 16px; }
.nw-art__body ul { margin: 0 0 18px; padding-left: 22px; }
.nw-art__body li { margin-bottom: 8px; }
.nw-art__body a { color: var(--blue); }
.nw-art__inline { margin: 28px 0; }
.nw-art__quote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--pink); }
.nw-art__quote p { margin: 0; font-size: 24px; line-height: 1.45; font-weight: 700; color: var(--blue); }
.nw-art__take { margin: 40px 0 24px; padding: 28px 32px; background: var(--bg-soft); border-radius: var(--radius); }
.nw-art__take h2 { margin-top: 0; font-size: 22px; }
.nw-art__take ul { margin: 0; }
.nw-art__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 24px 0; padding: 26px 32px; background: var(--bg-pink); border-radius: var(--radius); }
.nw-art__cta p { margin: 0; flex: 1 1 320px; font-weight: 600; }
.nw-art__btn { display: inline-block; padding: 13px 26px; border-radius: 999px; background: var(--pink); color: #fff !important; font-weight: 700; text-decoration: none; }
.nw-art__btn:hover { background: var(--pink-hover); }
.nw-art__src { margin: 24px 0 8px; font-size: 15px; color: var(--muted); }
.nw-art__src summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.nw-art__src ol { margin: 12px 0 0; padding-left: 20px; }
.nw-art__src a { color: var(--muted); word-break: break-word; }
.nw-more { max-width: var(--container); margin: 32px auto 80px; padding: 0 var(--gutter); }
.nw-more h2 { margin: 0 0 24px; font-size: 32px; color: var(--blue); }
.nw-more__all { margin: 24px 0 0; text-align: center; }
.nw-more__all a { color: var(--pink); font-weight: 700; text-decoration: none; }

@media (max-width: 1000px) {
  .nw-home--a .nw-home__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .nw-home--a .nw-card { scroll-snap-align: start; }
  .nw-social__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .nw-social--b { grid-template-columns: 1fr; gap: 28px; }
  .nw-lead__link { grid-template-columns: 1fr; }
  .nw-lead__img { min-height: 0; aspect-ratio: 16 / 9; }
  .nw-lead__body { padding: 24px; }
}
@media (max-width: 640px) {
  .nw-home__head { grid-template-columns: 1fr; }
  .nw-home--b { padding: 44px var(--gutter); }
  .nw-home--b .nw-card__link { flex-direction: column; }
  .nw-home--b .nw-card__img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .nw-home--b .nw-card__body { padding: 18px 20px 20px; }
  .nw-social--b { padding: 44px var(--gutter); }
  .nw-art__body { font-size: 17px; }
  .nw-art__cta, .nw-art__take { padding: 22px; }
}
