:root {
    --project-blue: #2f63ad;
    --project-blue-dark: #244f8d;
    --project-pink: #ed008c;
    --project-red: #f21f2b;
    --project-green: #5d963a;
    --project-charcoal: #3b3b3b;
}

.utility-bar { background: #fff; }
.utility-bar__inner {
    min-height: 88px;
    display: grid;
    grid-template-columns: minmax(220px, 330px) 1fr minmax(180px, 330px);
    align-items: center;
    gap: 28px;
}
.brand { justify-self: center; }
.brand img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.site-search { width: 100%; height: 34px; border: 0; border-radius: 3px; background: #f2f2f2; }
.site-search input { padding: 0 12px; color: #63707b; font-size: .75rem; }
.site-search button { width: 38px; color: var(--project-blue); font-size: 1.2rem; }
.topbar__social { justify-self: end; display: flex; align-items: center; gap: 9px; color: var(--project-blue-dark); }
.topbar__social span { width: auto; height: auto; border: 0; border-radius: 0; color: inherit; font-size: 1rem; font-weight: 800; }
.topbar__meta { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; flex-wrap: nowrap; }
.topbar__account { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: nowrap; white-space: nowrap; }
.topbar__account a, .topbar__account button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 16px; border: 1px solid rgba(36, 79, 141, .18); border-radius: 999px; background: rgba(255,255,255,.94); color: var(--project-blue-dark); font-size: .72rem; font-weight: 700; letter-spacing: .01em; box-shadow: 0 4px 12px rgba(39, 56, 88, .06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.topbar__account a:hover, .topbar__account a:focus-visible, .topbar__account button:hover, .topbar__account button:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(39, 56, 88, .12); border-color: rgba(36, 79, 141, .28); }
.topbar__account-link--primary { background: linear-gradient(180deg, #f9a33d 0%, #e77a26 100%) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 10px 20px rgba(231, 122, 38, .25) !important; }
.topbar__account { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: nowrap; white-space: nowrap; }
.topbar__account a, .topbar__account button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 16px; border: 1px solid rgba(36, 79, 141, .15); border-radius: 999px; background: rgba(255,255,255,.9); color: var(--project-blue-dark); font-size: .72rem; font-weight: 700; letter-spacing: .01em; box-shadow: 0 4px 12px rgba(39, 56, 88, .06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.topbar__account a:hover, .topbar__account a:focus-visible, .topbar__account button:hover, .topbar__account button:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(39, 56, 88, .12); border-color: rgba(36, 79, 141, .28); }
.topbar__account-link--primary { background: linear-gradient(180deg, #f9a33d 0%, #e77a26 100%) !important; border-color: transparent !important; color: #fff !important; }
.daily-bar { color: #4d5863; background: #f3f5f7; border-top: 1px solid #e4e8eb; }
.daily-bar__inner { min-height: 48px; display: grid; grid-template-columns: .9fr 1.45fr 1.35fr 1.25fr; }
.daily-item { min-width: 0; display: flex; justify-content: center; flex-direction: column; padding: 6px 18px; border-left: 1px solid #dce1e5; line-height: 1.2; }
.daily-item:first-child { border-left: 0; }
.daily-item > span { overflow: hidden; color: #7b858e; font-size: .58rem; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.daily-item > strong { min-width: 0; overflow: hidden; color: var(--project-blue-dark); font-size: .68rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.daily-item--date { text-transform: capitalize; }
.daily-item--date > strong { color: var(--project-red); }
.daily-item--moon > strong > span { margin-right: 3px; font-size: .9rem; vertical-align: -1px; }
.main-nav { background: var(--project-blue); }
.main-nav__inner { width: min(calc(100% - 40px), 760px); min-height: 56px; display: grid; grid-template-columns: repeat(5, 1fr); }
.main-nav a { padding: 10px 8px; border: 0; color: #fff; font-size: .72rem; font-weight: 500; text-transform: none; }
.main-nav a:last-child { border: 0; background: transparent; }
.main-nav a:hover, .main-nav a:focus-visible { background: rgba(255, 255, 255, .14); }

.button {
    min-height: 36px;
    margin-top: 14px;
    padding: 7px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--project-blue);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
}
.button:hover, .button:focus-visible { border: 0; background: var(--project-blue-dark); }
.button--small { min-width: 132px; min-height: 34px; margin-top: 20px; }

.home-page .hero { padding: 0; background: #fff; }
.featured-carousel {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    color: #fff;
    background: #182635;
}
.featured-carousel__viewport { position: relative; min-height: 610px; }
.featured-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease, visibility 0s linear .65s;
}
.featured-carousel__slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition-delay: 0s; }
.featured-carousel__image { width: 100%; height: 100%; object-fit: cover; }
.featured-carousel__panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(47%, 720px);
    display: flex;
    align-items: center;
    background: rgba(17, 35, 53, .6);
    backdrop-filter: blur(3px);
}
.featured-carousel__content { width: min(580px, 100%); padding: 56px 68px; }
.featured-carousel__content > span { font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.featured-carousel__content h1 { display: -webkit-box; margin: 10px 0 18px; overflow: hidden; color: #fff; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: clamp(2rem, 3.2vw, 3.7rem); line-height: 1.08; }
.featured-carousel__content p { display: -webkit-box; max-width: 540px; margin: 0; overflow: hidden; color: #fff; -webkit-box-orient: vertical; -webkit-line-clamp: 4; font-size: .96rem; line-height: 1.62; }
.featured-carousel__content .button { border-color: #fff; background: var(--project-blue); }
.featured-carousel__content .button:hover, .featured-carousel__content .button:focus-visible { background: var(--project-blue-dark); }
.featured-carousel__controls { position: absolute; right: 24px; bottom: 22px; z-index: 3; display: flex; gap: 8px; }
.featured-carousel__controls button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    color: #fff;
    background: rgba(17, 35, 53, .66);
    cursor: pointer;
}
.featured-carousel__controls button:hover, .featured-carousel__controls button:focus-visible { color: var(--project-blue-dark); background: #fff; }
.featured-carousel__pagination { position: absolute; left: 50%; bottom: 28px; z-index: 3; display: flex; gap: 9px; transform: translateX(-50%); }
.featured-carousel__pagination button { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.featured-carousel__pagination button[aria-current="true"] { background: #fff; }
.home-page .hero-tools { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: none; color: #fff; }
.home-page .hero-tools a { min-height: 88px; align-items: center; padding: 16px 20px; border: 0; text-align: center; }
.home-page .hero-tools a:nth-child(1) { background: var(--project-blue); }
.home-page .hero-tools a:nth-child(2) { background: var(--project-red); }
.home-page .hero-tools a:nth-child(3) { background: var(--project-pink); }
.home-page .hero-tools a:nth-child(4) { background: var(--project-green); }
.home-page .hero-tools strong { font-family: var(--body-font); font-size: .95rem; font-weight: 500; }
.home-page .hero-tools span { font-size: .68rem; }

/* Dynamic online tools teaser on homepage */
.home-online-tools { background: #baff62; color: #142117; }
.home-online-tools__inner { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.55fr); gap: clamp(32px, 5vw, 74px); align-items: center; padding-block: clamp(38px, 5vw, 64px); }
.home-online-tools__intro { min-width: 0; }
.home-online-tools__badge { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 14px; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.home-online-tools h2 { margin: 20px 0 12px; color: #142117; font-family: var(--display-font); font-size: clamp(2rem, 3.4vw, 3.35rem); line-height: .98; text-transform: uppercase; }
.home-online-tools__intro p { max-width: 500px; margin: 0; color: rgba(20, 33, 23, .78); font-size: .9rem; line-height: 1.55; }
.home-online-tools__links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.home-online-tools__links a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 1.5px solid #142117; border-radius: 999px; color: #142117; background: transparent; font-family: var(--display-font); font-size: clamp(.92rem, 1.35vw, 1.18rem); line-height: 1; text-transform: uppercase; transition: color .18s ease, background .18s ease, transform .18s ease; }
.home-online-tools__links a:hover, .home-online-tools__links a:focus-visible { color: #fff; background: #142117; transform: translateY(-1px); outline: none; }
.home-online-tools__links .home-online-tools__more { font-weight: 800; }
.home-online-tools__links .home-online-tools__more span { margin-left: 8px; font-family: var(--body-font); }

.home-section { padding: 52px 0; background: #fff; }
.section-heading { min-height: 42px; margin-bottom: 24px; padding: 0; border: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading__title { min-width: 0; display: flex; align-items: baseline; gap: 18px; }
.section-heading h2 { flex: 0 0 auto; margin: 0; color: var(--project-pink); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; }
.section-heading__description { max-width: 820px; margin: 0; color: #6f7880; font-size: clamp(.78rem, 1vw, .92rem); font-weight: 400; line-height: 1.45; }
.section-heading > a { position: static; flex: 0 0 auto; padding: 7px 19px; border-radius: 999px; background: var(--project-blue); color: #fff; font-size: .72rem; font-weight: 600; }
.section-heading > a:hover, .section-heading > a:focus-visible { background: var(--project-blue-dark); }
.section-heading--light h2 { color: #fff; }
.section-heading--light .section-heading__description { color: rgba(255, 255, 255, .76); }

.events-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr); gap: 28px; align-items: stretch; }
.events-grid__tiles, .dark-grid__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.article-card { border: 0; box-shadow: none; }
.article-card__image { border-radius: 9px; }
.article-card__body { padding: 10px 0 0; }
.article-card h3 { margin: 5px 0 6px; color: var(--project-pink); font-family: var(--body-font); font-size: 1.12rem; line-height: 1.24; }
.article-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .76rem; line-height: 1.45; }
.article-card time { color: #4d5862; font-size: .62rem; }
.article-card--event-lead, .article-card--dark-lead { position: relative; min-height: 490px; overflow: hidden; border-radius: 12px; }
.article-card--event-lead .article-card__image, .article-card--dark-lead .article-card__image { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.article-card--event-lead .article-card__image img, .article-card--dark-lead .article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card--event-lead .article-card__body, .article-card--dark-lead .article-card__body {
    position: absolute;
    inset: auto 0 0;
    padding: 72px 24px 24px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .82));
}
.article-card--event-lead h3, .article-card--dark-lead h3 { color: #fff; font-size: 1.35rem; }
.article-card--event-lead p, .article-card--dark-lead p, .article-card--event-lead time, .article-card--dark-lead time { color: #fff; }
.article-card--event-tile .article-card__image, .article-card--dark-tile .article-card__image { aspect-ratio: 16 / 8.8; }

.home-section--dark { background: var(--project-charcoal); color: #fff; }
.dark-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 28px; align-items: stretch; }
.home-section--dark .article-card { color: #fff; background: transparent; }
.home-section--dark .article-card__image img { filter: grayscale(1); }
.home-section--dark .article-card h3, .home-section--dark .article-card p, .home-section--dark .article-card time { color: #fff; }

.product-section { overflow: hidden; padding-block: 42px; }
.product-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.product-section__heading h2 { margin: 0; color: var(--project-pink); font-size: clamp(1.5rem, 2.2vw, 2rem); }
.product-section__actions { display: flex; gap: 8px; }
.product-section__actions button { width: 36px; height: 36px; border: 1px solid #d5dae0; border-radius: 50%; color: var(--project-blue); background: #fff; cursor: pointer; }
.product-section__actions button:hover, .product-section__actions button:focus-visible { color: #fff; border-color: var(--project-blue); background: var(--project-blue); }
.product-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 26px; overflow-x: auto; padding: 3px 2px 16px; scroll-behavior: smooth; scrollbar-color: var(--project-blue) #e8ebee; }
.product-track.is-autoplaying { scroll-behavior: auto; }
.product-card { min-width: 0; }
.product-card a { display: flex; flex-direction: column; gap: 9px; text-align: center; }
.product-card__image { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #fff; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.product-card strong { min-height: 2.7em; color: #343e47; font-size: .8rem; font-weight: 500; line-height: 1.35; }
.product-card__price { color: var(--project-pink); font-size: .78rem; font-weight: 800; }
.product-empty { min-height: 150px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: #f5f6f7; color: var(--muted); }
.product-empty p { margin: 0; }
.product-empty a { color: var(--project-blue); font-weight: 700; }

.advice-section { padding-top: 38px; }
.advice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.article-card--advice { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 18px; align-items: start; background: #f7f7f7; border-radius: 12px; overflow: hidden; min-height: 140px; padding: 12px; box-sizing: border-box; }
.article-card--advice .article-card__image { min-height: 100%; aspect-ratio: 1 / 1; border-radius: 12px; margin: 0; display: block; overflow: hidden; align-self: stretch; }
.article-card--advice .article-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 12px; }
.article-card--advice .article-card__body { display: flex; flex-direction: column; justify-content: flex-start; padding: 4px 4px 4px 6px; gap: 8px; margin-left: 0; min-width: 0; }
.article-card--advice .article-card__body p { margin: 0; }
.article-card--advice .article-card__body h3 { color: #353f49; font-size: 1.05rem; font-weight: 500; line-height: 1.35; margin: 0; }
.article-card--advice .article-card__body > * { max-width: 100%; }

.cta-band { background: #fff; }
.cta-grid { display: grid; grid-template-columns: repeat(6, 1fr); min-height: 225px; }
.cta-grid__image { min-width: 0; overflow: hidden; }
.cta-grid__image img { width: 100%; height: 100%; object-fit: cover; }
.cta-grid__link { min-width: 0; display: flex; align-items: center; justify-content: center; padding: 22px; color: #fff; text-align: center; }
.cta-grid__link strong { font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 500; line-height: 1.2; }
.cta-grid > .cta-grid__link.cta-grid__link--red { background: var(--project-red); }
.cta-grid > .cta-grid__link.cta-grid__link--pink { background: var(--project-pink); }
.cta-grid > .cta-grid__link.cta-grid__link--blue { background: var(--project-blue); }

.closing-section { padding-block: 72px; }
.closing-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.closing-card { min-width: 0; display: flex; align-items: center; flex-direction: column; padding: 0 42px; text-align: center; }
.closing-card + .closing-card { border-left: 1px solid #90979e; }
.closing-card h2 { align-self: stretch; margin: 0 0 35px; color: var(--project-pink); font-size: 1.55rem; text-align: left; }
.closing-card > img { width: 225px; height: 225px; border: 9px solid #f0f2f3; border-radius: 50%; object-fit: cover; }
.closing-card--fun { align-items: stretch; }
.fun-content { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; min-height: 225px; text-align: left; }
.fun-content div { min-width: 0; }
.fun-content small { display: block; margin-bottom: 10px; color: var(--project-pink); font-weight: 800; }
.fun-content strong { display: block; padding: 22px; color: #fff; background: var(--project-charcoal); font-size: 1rem; line-height: 1.4; }
.fun-content p { margin: 0; color: #4b5660; font-size: .82rem; line-height: 1.55; }
.closing-card--fun .button { align-self: center; }

.site-footer { color: #fff; background: var(--project-blue); }
.site-footer__inner { min-height: 145px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .7rem; }
.site-footer p { margin: 0; font-size: .66rem; opacity: .9; }

@media (max-width: 1100px) {
    .utility-bar__inner { grid-template-columns: 240px 1fr 180px; gap: 16px; }
    .daily-item { padding-inline: 10px; }
    .events-grid, .dark-grid { grid-template-columns: 1fr; }
    .article-card--event-lead, .article-card--dark-lead { min-height: 430px; }
    .advice-grid { gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-grid__link strong { font-size: 1.25rem; }
    .closing-card { padding-inline: 24px; }
    .closing-card > img { width: 190px; height: 190px; }
}

@media (max-width: 780px) {
    .utility-bar__inner { min-height: 76px; grid-template-columns: 1fr auto; }
    .site-search, .topbar__social { display: none; }
    .brand { justify-self: start; }
    .brand img { width: 58px; height: 58px; }
    .menu-toggle { display: block; grid-column: 2; justify-self: end; margin: 0; color: var(--project-blue); }
    .daily-bar__inner { grid-template-columns: 1fr 1fr; }
    .daily-item { min-height: 46px; padding: 6px 10px; border-top: 1px solid #dce1e5; }
    .daily-item:nth-child(odd) { border-left: 0; }
    .daily-item:nth-child(-n+2) { border-top: 0; }
    .main-nav { display: none; }
    .main-nav--open { display: block; }
    .main-nav__inner { width: 100%; grid-template-columns: 1fr; }
    .main-nav a { min-height: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .featured-carousel, .featured-carousel__viewport { min-height: 650px; }
    .featured-carousel__panel { inset: auto 0 0; width: 100%; min-height: 56%; align-items: flex-end; background: rgba(17, 35, 53, .6); }
    .featured-carousel__content { width: 100%; padding: 36px 28px 82px; }
    .featured-carousel__content h1 { font-size: 2.2rem; }
    .featured-carousel__content p { -webkit-line-clamp: 3; }
    .featured-carousel__controls { right: 16px; bottom: 18px; }
    .featured-carousel__pagination { left: 18px; bottom: 32px; transform: none; }
    .home-page .hero-tools { grid-template-columns: 1fr 1fr; }
    .home-page .hero-tools a { min-height: 92px; }
    .home-section { padding-block: 44px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .section-heading__title { align-items: flex-start; flex-direction: column; gap: 7px; }
    .events-grid__tiles, .dark-grid__tiles { gap: 16px; }
    .article-card--event-lead, .article-card--dark-lead { min-height: 390px; }
    .article-card--event-tile .article-card__image, .article-card--dark-tile .article-card__image { aspect-ratio: 4 / 3; }
    .product-track { grid-auto-columns: minmax(180px, 68vw); }
    .advice-grid { grid-template-columns: 1fr; }
    .cta-grid { grid-template-columns: 1fr 1fr; }
    .cta-grid__image, .cta-grid__link { min-height: 180px; }
    .closing-grid { grid-template-columns: 1fr; gap: 46px; }
    .closing-card { padding: 0 12px 46px; }
    .closing-card + .closing-card { padding-top: 46px; border-top: 1px solid #c7ccd0; border-left: 0; }
    .closing-card h2 { text-align: center; }
    .fun-content { min-height: auto; }
    .site-footer__inner { min-height: 125px; }
}

@media (max-width: 480px) {
    .featured-carousel, .featured-carousel__viewport { min-height: 610px; }
    .featured-carousel__content { padding: 30px 22px 80px; }
    .featured-carousel__content h1 { font-size: 1.85rem; }
    .featured-carousel__content p { -webkit-line-clamp: 3; font-size: .88rem; }
    .featured-carousel__controls button { width: 36px; height: 36px; }
    .featured-carousel__pagination { max-width: 150px; flex-wrap: wrap; }
    .home-page .hero-tools a { min-height: 76px; }
    .events-grid__tiles, .dark-grid__tiles { grid-template-columns: 1fr; }
    .article-card--event-tile .article-card__image, .article-card--dark-tile .article-card__image { aspect-ratio: 16 / 9; }
    .article-card--advice { grid-template-columns: 1fr; }
    .article-card--advice .article-card__image { min-height: 210px; border-radius: 8px 8px 0 0; }
    .fun-content { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .featured-carousel__slide { transition: none; }
}
@media (max-width: 900px) {
    .home-online-tools__inner { grid-template-columns: 1fr; gap: 26px; }
    .home-online-tools__intro p { max-width: 720px; }
}

@media (max-width: 560px) {
    .home-online-tools__inner { padding-block: 34px; }
    .home-online-tools__links { gap: 9px; }
    .home-online-tools__links a { min-height: 42px; padding: 9px 17px; font-size: .9rem; }
}


/* Fix: keep text inside the content column in the "WWW warto wiedzieć więcej" cards */
.advice-grid { align-items: stretch; }
.article-card--advice {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: stretch;
    isolation: isolate;
}
.article-card--advice .article-card__image {
    grid-column: 1;
    grid-row: 1;
    width: 160px;
    max-width: 100%;
    min-width: 160px;
    align-self: stretch;
}
.article-card--advice .article-card__image img { display: block; }
.article-card--advice .article-card__body {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
.article-card--advice .article-card__body time,
.article-card--advice .article-card__body h3,
.article-card--advice .article-card__body p,
.article-card--advice .article-card__body .tag-list {
    max-width: 100%;
}
.article-card--advice .article-card__body h3 { overflow: hidden; }
.article-card--advice .article-card__body h3 a {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}
@media (max-width: 767px) {
    .article-card--advice .article-card__image {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        min-width: 0;
    }
    .article-card--advice .article-card__body {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Reels module */
.home-reels-band {
    margin-bottom: 52px;
    padding: 26px 0;
    border-top: 2px solid #7a8188;
    border-bottom: 2px solid #7a8188;
    background: #ededed;
}
.home-reels {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}
.home-reels__intro { padding-left: 0; }
.home-reels__intro h2 {
    margin: 0;
    color: var(--project-pink);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.1;
}
.home-reels__intro p { margin: 10px 0 0; color: #555d66; font-size: 1.05rem; }
.home-reels__track-wrap { min-width: 0; }
.home-reels__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 140px;
    gap: 14px;
    overflow-x: auto;
    padding: 3px 2px 8px;
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--project-blue) #dfe4e8;
}
.home-reel-card { position: relative; width: 140px; }
.home-reel-card__link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #d7dce1;
    aspect-ratio: 4 / 5;
}
.home-reel-card__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-reel-card__play,
.reel-gallery-card__play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color: #fff;
    background: rgba(29, 43, 61, .68);
    font-size: 1.15rem;
    box-shadow: 0 10px 22px rgba(17, 24, 39, .18);
}
.home-reels__actions { justify-self: end; }
.page-hero--reels,
.page-hero--reel-single {
    padding: 70px 0 80px;
    background: linear-gradient(180deg, #f4f6f8 0%, #ffffff 100%);
    color: var(--project-text);
}
.page-hero--reels .page-intro span,
.page-hero--reel-single .page-intro span { color: var(--project-pink); }
.page-hero--reels h1,
.page-hero--reel-single h1 { color: var(--project-text); }
.page-hero--reels p,
.page-hero--reel-single p { color: #4e5964; }
.reels-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}
.reel-gallery-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .08);
}
.reel-gallery-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: #dfe5ea;
}
.reel-gallery-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-gallery-card__meta { padding: 16px 16px 20px; }
.reel-gallery-card__meta small { color: #68727c; }
.reel-gallery-card__meta h2 { margin: 8px 0 0; font-size: 1.06rem; line-height: 1.4; }
.reel-gallery-card__meta h2 a { color: var(--project-text); }
.frontend-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}
.frontend-pagination a {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--project-text);
    box-shadow: 0 2px 8px rgba(17, 24, 39, .08);
}
.frontend-pagination a[aria-current="page"] { background: var(--project-blue); color: #fff; }
.reel-single { display: grid; gap: 24px; }
.reel-single__card {
    width: min(100%, 900px);
    margin: 0 auto;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, .08);
}
.reel-single__header { margin-bottom: 18px; }
.reel-single__header small { color: #68727c; }
.reel-single__header h1 { margin: 10px 0 0; font-size: clamp(2rem, 3vw, 2.7rem); }
.reel-single__player {
    width: min(100%, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    overflow: hidden;
    border-radius: 18px;
    background: #131922;
}
.reel-single__player video {
    width: 100%;
    height: auto;
    max-height: 82vh;
    display: block;
    background: #000;
    object-fit: contain;
}
.reel-single__player iframe {
    width: 100%;
    min-height: min(82vh, 860px);
    border: 0;
    background: #000;
}
.reel-single__player img {
    width: 100%;
    height: auto;
    max-height: 82vh;
    display: block;
    background: #000;
    object-fit: contain;
}
.reel-single__content {
    max-width: 740px;
    margin: 0 auto;
    color: #37414b;
    font-size: 1.06rem;
    line-height: 1.8;
}
@media (max-width: 1100px) {
    .home-reels { grid-template-columns: 1fr; }
    .home-reels__actions { justify-self: start; }
    .reels-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
    .home-reels-band { margin-bottom: 44px; }
}
@media (max-width: 720px) {
    .home-reels__track { grid-auto-columns: 140px; }
    .home-reel-card { width: 140px; }
    .reels-gallery { grid-template-columns: 1fr; }
    .reel-single__card { padding: 20px; }
}

.reel-single__source-link { margin-top: 22px !important; font-size: .92rem; }
.reel-single__source-link a { color: var(--project-blue); font-weight: 700; }
