/* =========================================================
   MAVERICK CSS
   =========================================================
   MAPA SEKCJI / POWIĄZANIE Z PLIKAMI PHP

   01. ROOT / RESET / GLOBAL
       -> wszystkie pliki

   02. LAYOUT OGÓLNY
       -> wszystkie pliki

   03. HEADER / NAV / LANGUAGE SWITCHER
       -> includes/layout_start.php
       -> wszystkie podstrony

   04. FLASH / ALERTY
       -> formularze, contact.php, vacancies.php

   05. HERO / PAGE HERO
       -> index.php
       -> about.php
       -> services.php
       -> training.php
       -> contact.php
       -> vacancies.php
       -> posts.php

   06. BUTTONS / BADGES / LISTY / POWSZECHNE KOMPONENTY
       -> wszystkie pliki

   07. KARTY / GRIDY / SEKCJE TREŚCI
       -> index.php
       -> services.php
       -> training.php
       -> posts.php
       -> vacancies.php

   08. ARTICLE / POST / CONTENT
       -> post.php
       -> posts.php
       -> podstrony usług i szkoleń

   09. SIDEBAR / SPLIT LAYOUT / PANELS
       -> about.php
       -> contact.php
       -> services/*
       -> training/*
       -> post.php
       -> vacancies.php

   10. FORMULARZE
       -> contact.php
       -> vacancies.php
       -> admin/*

   11. TABELA / LISTY DANYCH
       -> admin/*
       -> vacancies.php
       -> ewentualne listy ofert / wpisów

   12. FOOTER
       -> includes/layout_end.php

   13. RTL
       -> ar.php / język arabski

   14. RESPONSIVE
       -> desktop / tablet / mobile
   ========================================================= */


/* =========================================================
   01. ROOT / RESET / GLOBAL
   Odpowiada za:
   - wszystkie pliki
   - zmienne kolorów, spacing, fonty, reset
   ========================================================= */

:root {
    --bg: #0b1220;
    --surface: #111a2b;
    --surface-soft: #172338;
    --surface-strong: #1d2c46;
    --text: #edf2ff;
    --muted: #b8c1d9;
    --accent: #d0a74e;
    --accent-strong: #f0c264;
    --border: rgba(255, 255, 255, 0.1);
    --success: #1f8f66;
    --danger: #aa4253;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    --radius: 18px;
    --radius-sm: 12px;
    --container: min(1180px, calc(100% - 32px));
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #0b1220 0%, #0f1830 100%);
    color: var(--text);
    font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    min-height: 60vh;
}

.container {
    width: var(--container);
    margin: 0 auto;
}


/* =========================================================
   02. LAYOUT OGÓLNY
   Odpowiada za:
   - podstawowe sekcje i spacing na wszystkich stronach
   ========================================================= */

.section {
    padding: 28px 0 68px;
}

.section-header {
    margin-bottom: 22px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 2vw, 2.35rem);
    margin: 0 0 8px;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    max-width: 74ch;
}

.grid {
    display: grid;
    gap: 20px;
}

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

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

.split-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    align-items: start;
}


/* =========================================================
   03. HEADER / NAV / LANGUAGE SWITCHER
   Odpowiada za:
   - includes/layout_start.php
   - logo, menu, dropdown języków
   - wszystkie strony
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 14, 25, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 14px 0;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: white;
    border-radius: 14px;
    padding: 6px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand strong {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
}

.site-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--muted);
    transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.language-switcher {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.language-toggle:hover,
.language-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.08);
}

/* ważne: brak szczeliny między przyciskiem a dropdownem */
.language-menu {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(9, 16, 30, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    z-index: 200;
}

/* niewidzialny mostek pod przyciskiem */
.language-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 12px;
}

.language-switcher:hover .language-menu,
.language-switcher:focus-within .language-menu,
.language-switcher.is-open .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    transition: var(--transition);
}

.language-option:hover,
.language-option.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.language-flag {
    width: 22px;
    text-align: center;
    flex: 0 0 22px;
}

.language-caret {
    font-size: 12px;
    opacity: 0.85;
    transition: transform 160ms ease;
}

.language-switcher.is-open .language-caret,
.language-toggle[aria-expanded="true"] .language-caret {
    transform: rotate(180deg);
}

.menu-toggle {
    display: none;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 1.1rem;
    cursor: pointer;
}


/* =========================================================
   04. FLASH / ALERTY
   Odpowiada za:
   - komunikaty po formularzach
   - contact.php
   - vacancies.php
   - ewentualnie admin/*
   ========================================================= */

.flash {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.flash-success {
    background: rgba(31, 143, 102, 0.16);
}

.flash-error {
    background: rgba(170, 66, 83, 0.16);
}


/* =========================================================
   05. HERO / PAGE HERO
   Odpowiada za:
   - index.php
   - strony z nagłówkiem sekcji
   ========================================================= */

.hero,
.page-hero {
    padding: 72px 0 28px;
}

.hero-grid,
.page-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.surface-card,
.glass-card {
    background: linear-gradient(180deg, rgba(18, 28, 46, 0.92) 0%, rgba(12, 19, 33, 0.96) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 38px;
}

.eyebrow {
    display: inline-flex;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(208, 167, 78, 0.14);
    color: var(--accent-strong);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.55rem);
    line-height: 1.08;
    margin: 0 0 18px;
    max-width: 12ch;
}

.hero p.lead,
.page-hero p.lead {
    font-size: 1.06rem;
    color: var(--muted);
    margin: 0 0 22px;
    max-width: 62ch;
}

.hero-side {
    display: grid;
    gap: 18px;
}

.hero-image {
    overflow: hidden;
    min-height: 320px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* wariant home: zamiast zdjęcia pokazujemy logo */
.hero-image-logo {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(18, 28, 46, 0.92) 0%, rgba(12, 19, 33, 0.96) 100%);
    padding: 32px;
}

.hero-image-logo img {
    width: min(100%, 420px);
    height: auto;
    object-fit: contain;
}

/* tekst pod logo / pod prawą kolumną */
.hero-message-card {
    padding: 28px;
}

.hero-message-text {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text);
}

/* opcjonalny wariant brand block, jeśli kiedyś wrócisz do logo + tekstu obok */
.hero-copy-home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.hero-brand-block {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-brand-logo {
    width: 180px;
    max-width: 32%;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.hero-brand-text {
    min-width: 0;
}

.hero-brand-text h1 {
    margin: 0 0 12px;
    max-width: none;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.hero-brand-lead {
    margin: 0;
    font-size: 1.15rem;
    color: var(--muted);
}

.hero-brand-panel {
    padding: 28px;
}

.hero-brand-panel-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-brand-panel-logo {
    width: 150px;
    max-width: 34%;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.hero-brand-panel-text {
    min-width: 0;
}

.hero-brand-panel-text h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.6vw, 2.4rem);
    line-height: 1.1;
    color: var(--text);
}

.hero-brand-panel-text p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.5;
}


/* =========================================================
   06. BUTTONS / BADGES / LISTY / KOMPONENTY BAZOWE
   Odpowiada za:
   - wszystkie pliki
   - przyciski, badge, listy, copy bloki
   ========================================================= */

.button-row,
.inline-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--accent);
    color: #181410;
    font-weight: 700;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
    background: var(--accent-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

.badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge.status-published {
    color: #d5fbe9;
    background: rgba(31, 143, 102, 0.18);
}

.badge.status-draft {
    color: #f8e4ad;
    background: rgba(208, 167, 78, 0.17);
}

.badge.status-archived {
    color: #d4d9ee;
    background: rgba(100, 114, 147, 0.2);
}

.copy-block {
    display: grid;
    gap: 16px;
}

.copy-block p {
    margin: 0;
    color: var(--muted);
}

.list-card {
    padding: 24px;
}

.clean-list,
.meta-list,
.footer-links,
.feature-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.clean-list li,
.feature-list li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.clean-list li:last-child,
.feature-list li:last-child {
    border-bottom: 0;
}

.clean-list li::before,
.feature-list li::before {
    content: "•";
    color: var(--accent-strong);
    font-weight: 900;
}

.kicker {
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 800;
}

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

.note {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(208, 167, 78, 0.3);
    background: rgba(208, 167, 78, 0.08);
    color: #f6e1b0;
}


/* =========================================================
   07. KARTY / GRIDY / SEKCJE TREŚCI
   Odpowiada za:
   - index.php
   - services.php
   - training.php
   - posts.php
   - vacancies.php
   ========================================================= */

.card {
    background: linear-gradient(180deg, rgba(19, 31, 50, 0.96) 0%, rgba(13, 20, 34, 0.96) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-body {
    padding: 22px;
}

.card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h3,
.card h4 {
    margin: 0 0 10px;
    font-size: 1.18rem;
}

.card p {
    margin: 0 0 18px;
    color: var(--muted);
}


/* =========================================================
   08. ARTICLE / POST / CONTENT
   Odpowiada za:
   - post.php
   - posts.php
   - podstrony usług i szkoleń
   ========================================================= */

.article {
    padding: 34px;
}

.article h1 {
    margin-top: 0;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.1;
}

.article-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article p {
    color: var(--muted);
    margin: 0 0 18px;
}


/* =========================================================
   09. SIDEBAR / PANELS / DODATKOWE BLOKI
   Odpowiada za:
   - about.php
   - contact.php
   - services/*
   - training/*
   - post.php
   - vacancies.php
   ========================================================= */

.side-panel {
    padding: 24px;
}

.side-panel h3 {
    margin-top: 0;
}


/* =========================================================
   10. FORMULARZE
   Odpowiada za:
   - contact.php
   - vacancies.php
   - admin/*
   ========================================================= */

.form-card {
    padding: 26px;
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input[type="checkbox"] {
    width: 18px;
    min-height: auto;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-weight: 400;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 22px;
}


/* =========================================================
   11. TABELA / LISTY DANYCH
   Odpowiada za:
   - admin/*
   - vacancies.php
   - listy wpisów / ofert / danych
   ========================================================= */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* =========================================================
   12. FOOTER
   Odpowiada za:
   - includes/layout_end.php
   - wszystkie strony
   ========================================================= */

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    background: rgba(8, 13, 23, 0.88);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 22px;
    padding: 34px 0 20px;
}

.footer-links li {
    margin-bottom: 10px;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.footer-legal {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-legal a:hover {
    color: var(--text);
}
/* =========================================================
   12A. HOME / CORE AREAS INLINE
   Odpowiada za:
   - index.php
   - sekcję Core areas w stylu ikonowym
   ========================================================= */

.core-areas-section {
    padding-top: 36px;
    padding-bottom: 56px;
}

.core-areas-header {
    text-align: center;
    margin-bottom: 34px;
}

.core-areas-header p {
    margin-left: auto;
    margin-right: auto;
}

.core-areas-inline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.core-area-item {
    min-width: 0;
}

.core-area-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 8px 4px;
}

.core-area-icon {
    width: 240px;
    height: 150px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex: 0 0 auto;
}

.core-area-icon img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
}

.core-area-item h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
}

.core-area-item p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.core-area-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--text);
    transition: var(--transition);
}

.core-area-link:hover .core-area-more {
    color: var(--accent-strong);
    transform: translateX(2px);
}

.core-area-link:hover h3 {
    color: var(--accent-strong);
}

/* =========================================================
   13. RTL
   Odpowiada za:
   - język arabski
   - układ right-to-left
   ========================================================= */

.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .brand,
.rtl .button-row,
.rtl .badge-row,
.rtl .article-meta,
.rtl .footer-bottom,
.rtl .footer-legal,
.rtl .site-nav,
.rtl .language-switcher,
.rtl .checkbox-row {
    flex-direction: row-reverse;
}

.rtl th,
.rtl td {
    text-align: right;
}
/* =========================================================
   13A. SITE NOTICE POPUP
   Odpowiada za:
   - globalny popup informacyjny
   - komunikat o stronie w budowie
   ========================================================= */

.site-notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 8, 18, 0.72);
    backdrop-filter: blur(8px);
}

.site-notice-overlay.is-visible {
    display: flex;
}

.site-notice-modal {
    position: relative;
    width: min(680px, 100%);
    max-height: min(90vh, 900px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(18, 28, 46, 0.98) 0%, rgba(12, 19, 33, 0.98) 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.site-notice-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-notice-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.site-notice-content h2 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.site-notice-content p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: none;
}

.site-notice-badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(208, 167, 78, 0.14);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-notice-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

body.has-modal {
    overflow: hidden;
}

@media (max-width: 620px) {
    .site-notice-overlay {
        padding: 16px;
    }

    .site-notice-modal {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .site-notice-actions {
        flex-direction: column;
    }

    .site-notice-actions .btn,
    .site-notice-actions .btn-secondary {
        width: 100%;
    }
}

/* =========================================================
   14. RESPONSIVE
   Odpowiada za:
   - desktop / tablet / mobile
   - wszystkie strony
   ========================================================= */

@media (max-width: 1100px) {
    .header-inner {
        grid-template-columns: auto auto 1fr;
        grid-template-areas:
            "brand toggle languages"
            "nav nav nav";
    }

    .brand {
        grid-area: brand;
    }

    .menu-toggle {
        grid-area: toggle;
        justify-self: start;
        display: inline-flex;
    }

    .language-switcher {
        grid-area: languages;
    }

    .site-nav {
        grid-area: nav;
        justify-content: flex-start;
        display: none;
        padding-top: 8px;
        overflow-x: auto;
    }

    .site-nav.open {
        display: flex;
    }

    .hero-grid,
    .page-hero-grid,
    .split-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .core-areas-inline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 34px;
    }
}

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

    .filter-bar {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 620px) {
    .brand small {
        display: none;
    }

    .hero-copy,
    .list-card,
    .article,
    .form-card,
    .side-panel,
    .card-body {
        padding: 20px;
    }

    .hero,
    .page-hero {
        padding-top: 40px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .language-current {
        display: none;
    }

    .header-inner {
        grid-template-columns: 1fr auto auto;
        grid-template-areas:
            "brand languages toggle"
            "nav nav nav";
    }

    .language-menu {
        right: 0;
        min-width: 200px;
    }

    .core-areas-inline {
        grid-template-columns: 1fr;
    }

    .core-area-icon {
        width: 82px;
        height: 82px;
        margin-bottom: 16px;
    }

    .core-area-icon img {
        max-width: 74px;
        max-height: 74px;
    }
}