* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #263646;
    --secondary-color: #1e88e5;
    --accent-color: #f5a623;
    --green-color: #3d7a42;
    --dark-color: #1c2733;
    --light-color: #f1f5f9;
    --surface-color: #ffffff;
    --gray-color: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 16px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
    --brand-gradient: linear-gradient(90deg, var(--green-color), var(--accent-color), var(--secondary-color));
    --bg: #f4f5f1;
    --ink: #111a24;
    --muted: #5b6676;
    --radius-lg: 24px;
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -14px rgba(15, 23, 42, 0.14);
    --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

section[id],
.panel[id],
footer[id] {
    scroll-margin-top: 120px;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--dark-color);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: var(--brand-gradient);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    height: 77px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ---------- Sections ---------- */

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--surface-color);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-color);
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-gradient);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.2rem + 2vw, 2.9rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--ink);
    text-wrap: balance;
}

.section-lead {
    margin-top: 0.75rem;
    max-width: 56ch;
    color: var(--muted);
    font-size: 1.02rem;
}

.head-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}

.head-link:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.today {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.today:empty {
    display: none;
}

.today::first-letter {
    text-transform: uppercase;
}

.news-show-more,
.tenders-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--ink);
    font: 600 0.9rem/1 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.news-show-more:hover,
.tenders-show-more:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* ---------- Hero / news ---------- */

.hero {
    padding: 2.5rem 0 3.5rem;
}

.news-content {
    --hero-h: 400px;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.slider {
    position: relative;
    height: var(--hero-h);
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    background: var(--ink);
    box-shadow: var(--shadow-card);
}

.slider-wrapper {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img,
.slide .news-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 7s linear;
}

.slide.active img,
.slide.active .news-cover {
    transform: scale(1);
}

.slide-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 5rem 2.5rem 4.75rem;
    color: #fff;
    background: linear-gradient(to top, rgba(10, 16, 28, 0.94) 0%, rgba(10, 16, 28, 0.6) 45%, transparent 100%);
}

.slide-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.slide-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
}

.slide-content .date {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 600;
}

.slide-content h3 {
    max-width: 22ch;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1rem + 1.4vw, 2.3rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.slide-content p {
    max-width: 60ch;
    font-size: 1rem;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-btn {
    position: absolute;
    bottom: 1.75rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.slider-btn:hover {
    background: #fff;
    color: var(--ink);
}

.slider-btn .icon {
    width: 20px;
    height: 20px;
}

.slider-btn.prev {
    right: calc(2.5rem + 52px);
}

.slider-btn.next {
    right: 2.5rem;
}

.slider-dots {
    position: absolute;
    left: 2.5rem;
    bottom: 2.4rem;
    z-index: 10;
    display: flex;
    gap: 0.4rem;
}

.dot {
    position: relative;
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
    cursor: pointer;
    transition: width 0.3s var(--ease);
}

.dot.active {
    width: 56px;
}

.dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}

.dot.active::after {
    animation: dot-progress var(--slide-interval, 6s) linear forwards;
}

@keyframes dot-progress {
    to { transform: scaleX(1); }
}

.news-aside {
    display: flex;
    flex-direction: column;
    height: var(--hero-h);
    min-height: 0;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    box-shadow: var(--shadow-card);
}

.aside-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.aside-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5484d;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);
}

.news-list::-webkit-scrollbar {
    width: 6px;
}

.news-list::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: var(--border-color);
}

.news-tile {
    position: relative;
    display: grid;
    gap: 0.35rem;
    margin: 0 -0.75rem;
    padding: 0.95rem 0.75rem;
    border-radius: 14px;
    transition: background 0.2s;
}

.news-tile + .news-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 1px;
    background: var(--border-color);
}

.news-tile:hover {
    background: var(--bg);
}

.news-tile-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.category {
    --chip: var(--green-color);
    display: inline-flex;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--chip) 12%, transparent);
    color: var(--chip);
    font-size: 0.7rem;
    font-weight: 700;
}

.category[data-cat="samorzad"] { --chip: var(--primary-color); }
.category[data-cat="sport"] { --chip: var(--secondary-color); }
.category[data-cat="kultura"] { --chip: #8e4ec6; }
.category[data-cat="edukacja"] { --chip: #0d8a8a; }
.category[data-cat="inwestycje"] { --chip: #b8730a; }

.news-date {
    color: var(--muted);
    font-size: 0.78rem;
}

.news-headline {
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s;
}

.news-headline::after {
    content: '';
    position: absolute;
    inset: 0;
}

.news-tile:hover .news-headline {
    color: var(--secondary-color);
}

/* ---------- Tenders ---------- */

.head-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tabs {
    display: flex;
    gap: 0.4rem;
    padding: 0.35rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: 1 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.tab .icon {
    width: 18px;
    height: 18px;
}

.tab:hover {
    color: var(--ink);
}

.tab[aria-selected="true"] {
    background: var(--ink);
    color: #fff;
}

.tab:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.tab-count {
    min-width: 1.6rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tab-count:empty {
    display: none;
}

.tab[aria-selected="true"] .tab-count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.tab-panel-sub {
    margin-bottom: 0.9rem;
}

.panel {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg);
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.panel-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--secondary-color);
    color: #fff;
}

.panel-icon--green {
    background: var(--green-color);
}

.panel-icon .icon {
    width: 22px;
    height: 22px;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.panel-sub {
    color: var(--muted);
    font-size: 0.85rem;
}

.tenders-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tender-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 3.5rem 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}

.tender-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111a24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: background-color 0.2s, transform 0.2s var(--ease);
}

.tender-card:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: var(--shadow-card);
}

.tender-card:hover::after {
    background-color: var(--accent-color);
    transform: rotate(45deg);
}

.tender-card:hover .tender-title {
    color: var(--secondary-color);
}

.tender-card-hidden {
    display: none;
}

.tender-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.tender-date {
    order: -1;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 600;
}

.tender-value {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tender-number {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
}

.tender-title {
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.tenders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tenders-grid > .no-tenders {
    grid-column: 1 / -1;
}

.tenders-show-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.tenders-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1rem;
}

.tenders-loading p {
    color: var(--muted);
    font-size: 0.95rem;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tenders-error {
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid #f5c2c4;
    background: #fff1f1;
    color: #b4232a;
    font-size: 0.9rem;
}

.tenders-error p + p {
    margin-top: 0.4rem;
}

.no-tenders {
    padding: 2.5rem 1rem;
    border-radius: 16px;
    border: 1px dashed var(--border-color);
    color: var(--muted);
    text-align: center;
}

/* ---------- Companies ---------- */

.companies-content {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 1.5rem;
}

.companies-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.company-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.company-item:hover {
    border-color: transparent;
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.company-item.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.company-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--avatar, var(--green-color));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.company-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.company-name {
    font-weight: 700;
    line-height: 1.3;
}

.company-address {
    color: var(--muted);
    font-size: 0.85rem;
}

.company-item.active .company-address {
    color: rgba(255, 255, 255, 0.65);
}

.company-category {
    flex-shrink: 0;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.company-item.active .company-category {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.company-cta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1.1rem;
    border-radius: 18px;
    border: 1.5px dashed color-mix(in srgb, var(--green-color) 45%, transparent);
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.company-cta strong {
    color: var(--green-color);
    font-size: 0.95rem;
}

.company-cta:hover {
    background: color-mix(in srgb, var(--green-color) 8%, transparent);
}

.map-container {
    min-height: 480px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

#map {
    width: 100%;
    height: 100%;
    min-height: 480px;
    z-index: 1;
}

#map .leaflet-tile-pane {
    filter: saturate(0.7) contrast(1.03);
}

.map-marker-pin {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50% 50% 50% 0;
    border: 2px solid var(--green-color);
    background: #fff;
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.35);
    transform: rotate(-45deg);
    transition: background 0.2s, border-color 0.2s;
}

.map-marker-pin i {
    font-style: normal;
    font-size: 1.1rem;
    transform: rotate(45deg);
}

.map-marker.active .map-marker-pin {
    background: var(--accent-color);
    border-color: var(--ink);
}

.leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: var(--shadow-card);
}

.leaflet-popup-content {
    font-family: 'Inter', sans-serif;
}

/* ---------- Finance ---------- */

.finance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.finance-card {
    position: relative;
    display: block;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: zoom-in;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.finance-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s var(--ease);
}

.finance-card::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111a24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M9 21H3v-6'/%3E%3Cpath d='M21 3l-7 7'/%3E%3Cpath d='M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s var(--ease);
}

.finance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -22px rgba(15, 23, 42, 0.4);
}

.finance-card:hover img {
    transform: scale(1.03);
}

.finance-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* ---------- Info / bento ---------- */

.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.info-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    box-shadow: var(--shadow-card);
}

.card-title {
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.info-card--dark {
    position: relative;
    overflow: hidden;
    border-color: transparent;
    background: var(--dark-color);
    color: #fff;
}

.info-card--dark::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 80%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 122, 66, 0.55), transparent 65%);
    pointer-events: none;
}

.info-card--dark > * {
    position: relative;
}

.info-card--dark .card-title {
    color: #fff;
}

.info-card--wide {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.villages-title {
    margin: 1.75rem 0 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.villages {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.villages li {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    transition: background 0.2s, border-color 0.2s;
}

.villages li:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.villages strong {
    color: #fff;
    font-weight: 600;
}

.villages span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}

.villages span::before {
    content: '+ ';
    color: var(--accent-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.stat-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
}

.stat-icon .icon {
    width: 22px;
    height: 22px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.air-card iframe {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

/* ---------- Footer ---------- */

footer {
    position: relative;
    padding: 4.5rem 0 2rem;
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.72);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.footer-brand span {
    color: var(--accent-color);
}

.footer-about {
    max-width: 40ch;
    margin: 0.75rem 0 1.25rem;
    font-size: 0.95rem;
}

.footer-heading {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-heading + .footer-about {
    margin-top: 0;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}

.footer-mail:hover {
    background: var(--accent-color);
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ---------- Legal ---------- */

.legal {
    max-width: 78ch;
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
}

.legal h2 {
    margin: 2.25rem 0 0.75rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.legal p,
.legal ul {
    margin-bottom: 1rem;
}

.legal ul {
    padding-left: 1.25rem;
}

.legal li {
    margin-bottom: 0.4rem;
}

.legal a {
    color: var(--secondary-color);
}

/* ---------- News: shared ---------- */

[hidden] {
    display: none !important;
}

nav a[aria-current="page"]::after {
    width: 100%;
}

.category[data-cat="spolecznosc"] { --chip: #d6409f; }
.category[data-cat="solectwa"] { --chip: var(--green-color); }

.head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.aside-all-link {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.aside-all-link:hover {
    text-decoration: underline;
}

.slide-link {
    color: inherit;
    text-decoration: none;
}

.slide-link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.slide-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.news-media {
    --media: var(--green-color);
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--media) 85%, #000), color-mix(in srgb, var(--media) 55%, #fff));
}

.news-media[data-cat="kultura"] { --media: #8e4ec6; }
.news-media[data-cat="edukacja"] { --media: #0d8a8a; }
.news-media[data-cat="sport"] { --media: var(--secondary-color); }
.news-media[data-cat="spolecznosc"] { --media: #d6409f; }
.news-media[data-cat="samorzad"] { --media: var(--primary-color); }
.news-media[data-cat="inwestycje"] { --media: #b8730a; }

.news-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s var(--ease);
}

.news-card:hover .news-cover {
    transform: scale(1.04);
}

.slide-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.slide-media .news-media-fallback {
    display: none;
}

.slide .slide-media img,
.slide .slide-media .news-cover {
    transition: transform 7s linear;
}

.news-media-fallback {
    position: absolute;
    inset: auto 1rem 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.news-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.news-state {
    padding: 3rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
    background: var(--surface-color);
    color: var(--muted);
    text-align: center;
}

.news-state strong {
    color: var(--ink);
}

.news-state p + p {
    margin-top: 0.4rem;
}

.news-state .head-link {
    margin-top: 1rem;
}

.news-state--error {
    border: 1px solid #f5c2c4;
    background: #fff1f1;
    color: #b4232a;
}

/* ---------- News: cards ---------- */

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 24px 40px -24px rgba(15, 23, 42, 0.35);
}

.news-card:hover .news-media img {
    transform: scale(1.04);
}

.news-card:focus-within {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.1rem 1.25rem 1.25rem;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.news-card-title a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.news-card:hover .news-card-title {
    color: var(--secondary-color);
}

.news-card-summary {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-source {
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
}

/* ---------- News: archive ---------- */

.archive-toolbar {
    position: sticky;
    top: 108px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
}

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-chip {
    --chip: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--ink);
    font: 600 0.88rem/1 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.filter-chip[data-cat="kultura"] { --chip: #8e4ec6; }
.filter-chip[data-cat="edukacja"] { --chip: #0d8a8a; }
.filter-chip[data-cat="sport"] { --chip: var(--secondary-color); }
.filter-chip[data-cat="spolecznosc"] { --chip: #d6409f; }
.filter-chip[data-cat="solectwa"] { --chip: var(--green-color); }

.filter-chip span {
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-size: 0.72rem;
}

.filter-chip:hover {
    border-color: var(--chip);
}

.filter-chip[aria-pressed="true"] {
    background: var(--chip);
    border-color: var(--chip);
    color: #fff;
}

.filter-chip[aria-pressed="true"] span {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.archive-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 1 300px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg);
    color: var(--muted);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.archive-search:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-color) 18%, transparent);
}

.archive-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 500 0.92rem 'Inter', sans-serif;
    outline: none;
}

.archive-group + .archive-group {
    margin-top: 2.5rem;
}

.archive-month {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.archive-month::first-letter {
    text-transform: uppercase;
}

.archive-month::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* ---------- News: article ---------- */

.article {
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.article-head {
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
    z-index: 2;
}

.article-title {
    margin: 0.9rem 0 0.75rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.article-byline {
    color: var(--muted);
}

.article-byline a {
    color: var(--ink);
    font-weight: 600;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 2.5rem;
}

.article-figure .news-media {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.article-lead {
    max-width: 68ch;
    margin: 2rem 0;
    color: var(--ink);
    font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
    line-height: 1.65;
}

.article-source-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.75);
}

.article-source-box p {
    flex: 1 1 260px;
    font-size: 0.95rem;
}

.article-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.article-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5);
}

.article-subtitle {
    margin-bottom: 0.9rem;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-also {
    margin-top: 2rem;
}

.article-also ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-also a {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.article-also a:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.article-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pager-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pager-link--next {
    grid-column: 2;
    text-align: right;
}

.pager-link span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.pager-link strong {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pager-link:hover {
    border-color: transparent;
    box-shadow: var(--shadow-card);
}

.pager-link:hover strong {
    color: var(--secondary-color);
}

.article-aside {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aside-card {
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg);
    color: var(--ink);
    font: 600 0.9rem 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.share-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.aside-cat-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.aside-cat-link:hover {
    text-decoration: underline;
}

[data-page="article"] main {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-aside {
        position: static;
    }

    .share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .share-btn {
        width: auto;
    }
}

@media (max-width: 768px) {
    .archive-toolbar {
        position: static;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .archive-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }

    .filter-chip {
        flex-shrink: 0;
    }

    .archive-search {
        flex: 1 1 100%;
        background: var(--surface-color);
    }

    .article-pager {
        grid-template-columns: 1fr;
    }

    .pager-link--next {
        grid-column: auto;
    }
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */

@keyframes reveal {
    from { opacity: 0; translate: 0 28px; }
    to { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 22%;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .slide img,
    .slide.active img,
    .slide .news-cover,
    .slide.active .news-cover {
        transform: none;
        transition: none;
    }

    .live-dot {
        animation: none;
    }
}

/* ---------- Important phones ---------- */

.phones-section {
    padding: 0 0 4rem;
}

.phones-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.phone-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    box-shadow: var(--shadow-card);
}

.phone-card--health {
    border-color: color-mix(in srgb, #e5484d 35%, var(--border-color));
    background: linear-gradient(160deg, color-mix(in srgb, #e5484d 7%, #fff), var(--surface-color) 60%);
}

.phone-card--health .panel-head {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.panel-icon--red {
    flex-shrink: 0;
    background: #e5484d;
}

.phone-hours {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    list-style: none;
}

.phone-hours li {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border-color);
    color: var(--ink);
    font-size: 0.85rem;
}

.phone-place {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.phone-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    background: #e5484d;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.phone-cta:hover {
    background: #c93a3f;
    transform: translateY(-1px);
}

.phone-cta .icon {
    width: 22px;
    height: 22px;
}

.phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.phone-card .card-title + .phone-row {
    border-top: 0;
    padding-top: 0;
}

.phone-row span {
    display: flex;
    flex-direction: column;
    font-size: 0.92rem;
    font-weight: 500;
}

.phone-row small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
}

.phone-row strong {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.phone-row:hover {
    color: var(--secondary-color);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .news-content {
        --hero-h: 360px;
        grid-template-columns: 1fr;
    }

    .news-aside {
        height: auto;
        max-height: 380px;
    }

    .companies-content {
        grid-template-columns: 340px minmax(0, 1fr);
    }

    .finance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .air-card,
    .info-card--wide {
        grid-column: 1 / -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .tenders-grid,
    .companies-content {
        grid-template-columns: 1fr;
    }

    .map-container,
    #map {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    header .container {
        justify-content: space-between;
        flex-wrap: wrap;
        max-width: 100%;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        top: 30px;
        right: 20px;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        align-items: center;
    }

    .logo img {
        max-width: 75%;
        height: auto;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero {
        padding: 2rem 0 3rem;
    }

    .section-head {
        margin-bottom: 1.5rem;
    }

    .news-content {
        --hero-h: 300px;
    }

    .slider {
        border-radius: 20px;
    }

    .slide-content {
        padding: 4rem 1.25rem 4.25rem;
    }

    .slide-content p {
        display: none;
    }

    .slider-dots {
        left: 1.25rem;
        bottom: 2.2rem;
    }

    .slider-btn {
        bottom: 1.4rem;
        width: 40px;
        height: 40px;
    }

    .slider-btn.prev {
        right: calc(1.25rem + 48px);
    }

    .slider-btn.next {
        right: 1.25rem;
    }

    .news-aside,
    .panel,
    .info-card {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .bento,
    .phones-grid {
        grid-template-columns: 1fr;
    }

    .phones-section {
        padding-bottom: 3rem;
    }

    .phone-card {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .finance-grid {
        grid-template-columns: 1fr;
    }

    .company-category {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

