/* ========================================
   RESET I PODSTAWY
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui,-apple-system,sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a3c31;
    background: #f5ece4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: url('images/obrazek.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: auto 100vh;
}

/* ========================================
   MIĘDZYNARODOWOŚĆ – RTL I BIDI
   ======================================== */
[lang="ar"],
[dir="rtl"] {
    direction: rtl;
    text-align: right;
    unicode-bidi: isolate;
}

[lang="zh"] {
    unicode-bidi: isolate;
}

/* ========================================
   SEKCJA HERO
   ======================================== */
.hero {
    min-height: auto;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(109, 76, 65, 0.2), rgba(139, 90, 43, 0.1));
    z-index: 1;
}

/* ========================================
   SIATKA FLAG
   ======================================== */
.flags-grid {
    display: grid;
     grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
	 margin: auto;
    width: 100%;
    padding: 1.5rem;
    background-color: transparent;
    position: relative;
    z-index: 2;
}

.flags-grid a {
    text-align: center;
}

.flag{
    width: clamp(40px, 6vw, 90px);
    border-radius:10px;
    border: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.flag:hover{
    transform: translateY(-6px) scale(1.08);
    box-shadow:0 12px 24px rgba(0,0,0,.25);
}
.flag:focus {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 16px 32px rgba(139, 90, 43, 0.5);
    border-color: #a1887f;
    outline: none;
}

/* ========================================
   MENU GÓRNE – LEKKIE, BRĄZOWE, Z CIENIEM
   ======================================== */
.top-menu {
    text-align: center;
    padding: 1rem 0;

}

.top-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-menu a {
    color: red;
    text-decoration: none;
    font-weight: bold;
	font-size: 2em;
    padding: 0.6rem 1.2rem;
    border-radius: 50%;
    background: rgba(139, 90, 43, 0.25);
    border: 1px solid rgba(139, 90, 43, 0.35);
    box-shadow: 0 4px 12px rgba(109, 76, 65, 0.35);
    transition: background .3s, color .3s, transform .2s, box-shadow .3s;
}

.top-menu a:hover,
.top-menu a:focus {
    background: #a97447;
    color: #fff;
    transform: translateY(-3px);


}
/* ========================================
   KOLUMNY TREŚCI
   ======================================== */
.columns-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.column {
    background: #fff8f0;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #d7ccc8;
    box-shadow: 0 4px 12px rgba(109, 76, 65, 0.15);
}

.column h2 {
    margin-bottom: 1rem;
  color: #5d4037;
  border-bottom: 2px solid #a1887f;
    padding-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* ========================================
   STOPKA
   ======================================== */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #4e342e;
    color: #ddd;
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 3px solid #8d6e63;
}

/* ========================================
   RESPONSYWNOŚĆ
   ======================================== */
@media (max-width: 480px) {
    .top-menu ul {
        flex-direction: column;
        gap: 0.6rem;
    }

    .top-menu a {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }

    .columns-container {
        padding: 1rem;
    }
}


/* ========================================
   DARK MODE
   ======================================== */
@media (prefers-color-scheme: dark) {
    body {
        background: #2b1e18;
        color: #e0d6cd;
    }
    .column {
        background-color: #3a2a22;
        border-color: #5d4037;
    }
    .seo-text {
        color: #d7ccc8;
    }
}

/* ========================================
   OPTYMALIZACJE WYDAJNOŚCI
   ======================================== */

a {
    -webkit-tap-highlight-color: transparent;
}
