/**
 * Kantor Tymicki Adam - Style CSS (Dark Theme) - Wersja z poprawioną tabelą
 * /public/assets/css/style-dark.css
 */

/* ===== ZMIENNE CSS ===== */
:root {
    --primary-green: #4CAF50;
    --primary-green-dark: #388E3C;
    --primary-green-light: #66BB6A;
    --dark-bg: #0a0a0a;
    --dark-bg-2: #1a1a1a;
    --dark-bg-3: #2a2a2a;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --text-dark: #666666;
    --border-color: #333333;
    --shadow: rgba(0, 0, 0, 0.5);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ===== HEADER ===== */
.header {
    background: var(--dark-bg-2);
    border-bottom: 3px solid var(--primary-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 30px;
    flex-wrap: wrap;
}

/* Logo */
.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-green);
    letter-spacing: 3px;
    line-height: 1;
}

.logo-subtext {
    font-size: 11px;
    color: var(--text-gray);
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--primary-green);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Header Phones */
.header-phones {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-link i {
    color: var(--primary-green);
    font-size: 16px;
}

.phone-link:hover {
    color: var(--primary-green);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--primary-green);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(76, 175, 80, 0.1) 0%, 
                rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 60px 20px;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.hero h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--primary-green);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-green-dark), #2E7D32);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

/* ===== TICKER ===== */
.ticker {
    background: var(--primary-green);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
}

.ticker-text {
    padding-right: 100px;
    font-weight: 700;
    color: var(--dark-bg);
    font-size: 14px;
    letter-spacing: 1px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== RATES SECTION ===== */
.rates-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.rates-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.rates-main {
    background: var(--dark-bg-2);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 30px var(--shadow);
}

.rates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.rates-header h3 {
    font-size: 2rem;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 15px;
}

.rates-header h3 i {
    font-size: 1.8rem;
}

.last-update {
    background: var(--dark-bg-3);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
}

.last-update span {
    display: block;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 13px;
    margin-top: 5px;
}

/* ===== TABELA KURSÓW ===== */
.rates-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    background: var(--dark-bg-3);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--dark-bg-3);
}

.rates-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.rates-table-wrapper::-webkit-scrollbar-track {
    background: var(--dark-bg-3);
}

.rates-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-light);
    min-width: 450px;
    table-layout: fixed;
}

.rates-table thead {
    background: var(--dark-bg);
}

.rates-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--primary-green);
    position: sticky;
    top: 0;
    background: var(--dark-bg);
    z-index: 1;
    vertical-align: middle;
}

.rates-table td {
    padding: 18px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    color: var(--text-light);
    vertical-align: middle;
}

.rates-table tbody tr {
    transition: background 0.3s ease;
}

.rates-table tbody tr:hover {
    background: var(--dark-bg-2);
}

.rates-table tbody tr:last-child td {
    border-bottom: none;
}

/* Szerokości kolumn na desktop - 5 kolumn */
.rates-table th:nth-child(1),
.rates-table td:nth-child(1) {
    width: 12%; /* Flaga */
    text-align: center;
}

.rates-table th:nth-child(2),
.rates-table td:nth-child(2) {
    width: 35%; /* Nazwa waluty */
    text-align: left;
}

.rates-table th:nth-child(3),
.rates-table td:nth-child(3) {
    width: 15%; /* Kod waluty */
    text-align: center;
}

.rates-table th:nth-child(4),
.rates-table td:nth-child(4) {
    width: 19%; /* Kupno */
    text-align: right;
}

.rates-table th:nth-child(5),
.rates-table td:nth-child(5) {
    width: 19%; /* Sprzedaż */
    text-align: right;
}

/* Stylowanie komórek */
.flag-cell {
    text-align: center;
}

.flag-cell img {
    width: 40px;
    height: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    display: block;
    margin: 0 auto;
}

.currency-name {
    font-weight: 500;
    color: var(--text-light);
    font-size: 15px;
    text-align: left;
}

.currency-code {
    font-weight: 700;
    color: var(--text-light);
    font-size: 16px;
    text-align: center;
}

.rate-buy,
.rate-sell {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-light);
    text-align: right;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
    font-style: italic;
}

.no-data i {
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-green);
    opacity: 0.5;
}

/* ===== SIDEBAR ===== */
.rates-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-box {
    background: var(--primary-green);
    color: var(--dark-bg);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3);
}

.info-box h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-box h4 i {
    font-size: 1.6rem;
}

.info-box p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 15px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box strong {
    font-weight: 700;
}

/* Calculator Box */
.calculator-box {
    background: var(--dark-bg-2);
    color: var(--text-light);
}

.calculator {
    margin-top: 15px;
}

.calculator-row {
    margin-bottom: 15px;
}

.calculator-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-green);
    font-size: 14px;
}

.calculator-row input,
.calculator-row select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--dark-bg-3);
    color: var(--text-light);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.calculator-row input:focus,
.calculator-row select:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.calculator-row input::placeholder {
    color: var(--text-gray);
}

.calculator-row select option {
    background: var(--dark-bg-3);
    color: var(--text-light);
}

.calculator-result {
    margin-top: 20px;
    padding: 20px 15px;
    background: var(--primary-green);
    color: var(--dark-bg);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.calculator-result .result-amount {
    font-size: 18px;
    font-weight: 700;
}

.calculator-result .result-amount strong {
    font-size: 20px;
    color: var(--dark-bg);
}

.calculator-result .result-rate {
    font-size: 13px;
    opacity: 0.8;
}

.calculator-note {
    margin-top: 15px;
    padding: 10px;
    background: var(--dark-bg-3);
    border-radius: 6px;
    text-align: center;
}

.calculator-note small {
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.4;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--dark-bg-2);
    padding: 0;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.contact-map {
    position: relative;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: block;
    filter: grayscale(100%) invert(92%) contrast(90%);
}

.map-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-green);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.map-logo-content {
    font-size: 18px;
    font-weight: 900;
    color: var(--dark-bg);
    text-align: center;
    line-height: 1.3;
    letter-spacing: 2px;
}

.contact-info {
    background: var(--primary-green);
    color: var(--dark-bg);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
}

.contact-phones {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 35px 0;
    line-height: 1.4;
}

.contact-phones a {
    color: var(--dark-bg);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-phones a:hover {
    opacity: 0.8;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    font-size: 2rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.review-card {
    background: var(--dark-bg-2);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-green);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.review-header strong {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-green);
    opacity: 0.2;
    line-height: 0.6;
    font-family: Georgia, serif;
}

.review-card p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 15px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 80px 0;
    background: var(--dark-bg-2);
}

.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--dark-bg-3);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.2);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark-bg-3);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--dark-bg-2);
}

.faq-question:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: 5px;
}

.faq-question h4 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-green);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 15px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-bg-2);
    padding: 60px 0 0;
    border-top: 3px solid var(--primary-green);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-item {
    text-align: center;
}

.footer-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

.footer-icon i {
    font-size: 2rem;
    color: var(--dark-bg);
}

.footer-item h4 {
    margin-bottom: 15px;
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-item p,
.footer-item a {
    color: var(--text-gray);
    text-decoration: none;
    line-height: 1.8;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-item a:hover {
    color: var(--primary-green);
}

.footer-item small {
    font-size: 13px;
    color: var(--text-dark);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-green);
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 14px;
}

.website-credits {
    text-align: right;
}

.website-credits p {
    font-size: 12px;
    color: var(--text-dark);
}

.website-credits a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.website-credits a:hover {
    color: var(--primary-green);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--primary-green-dark), #2E7D32);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.5);
}

.scroll-top.visible {
    display: flex;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.btn:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-green);
    color: var(--dark-bg);
    padding: 8px;
    text-decoration: none;
    border-radius: 3px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* TABLET */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-map iframe {
        min-height: 400px;
    }
    
    /* Tabela - rozmiary tablet */
    .rates-table {
        min-width: 400px;
    }
    
    .rates-table th,
    .rates-table td {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .rates-table th {
        font-size: 11px;
    }
    
    .flag-cell img {
        width: 32px;
        height: 24px;
    }
    
    .currency-name {
        font-size: 14px;
    }
    
    .currency-code {
        font-size: 15px;
    }
    
    .rate-buy,
    .rate-sell {
        font-size: 15px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header-content {
        justify-content: space-between;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 4;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
    }
    
    .header-phones {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hero */
    .hero {
        min-height: 60vh;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-banner-bg img {
        object-position: center top;
    }
    
    /* Rates */
    .rates-section {
        padding: 50px 0;
    }
    
    .rates-main {
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .rates-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 25px;
        gap: 15px;
    }
    
    .rates-header h3 {
        font-size: 1.6rem;
    }
    
    .last-update {
        padding: 10px 15px;
        font-size: 11px;
        width: 100%;
        text-align: left;
    }
    
    .last-update span {
        font-size: 12px;
    }
    
    /* Tabela mobile - ukrywamy kolumnę WALUTA (2. kolumna) */
    .rates-table {
        min-width: 280px;
        font-size: 13px;
    }
    
    .rates-table th,
    .rates-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .rates-table th {
        font-size: 10px;
        letter-spacing: 0.8px;
    }
    
    /* Ukrywamy kolumnę WALUTA (druga kolumna) */
    .rates-table th:nth-child(2),
    .rates-table td:nth-child(2) {
        display: none;
    }
    
    /* Nowe szerokości dla pozostałych 4 kolumn */
    .rates-table th:nth-child(1),
    .rates-table td:nth-child(1) {
        width: 18%; /* Flaga */
        text-align: center;
    }
    
    .rates-table th:nth-child(3),
    .rates-table td:nth-child(3) {
        width: 22%; /* Symbol */
        text-align: center;
    }
    
    .rates-table th:nth-child(4),
    .rates-table td:nth-child(4) {
        width: 30%; /* Kupno */
        text-align: center;
    }
    
    .rates-table th:nth-child(5),
    .rates-table td:nth-child(5) {
        width: 30%; /* Sprzedaż */
        text-align: center;
    }
    
    .flag-cell img {
        width: 26px;
        height: 18px;
    }
    
    .currency-code {
        font-size: 14px;
        text-align: center;
    }
    
    .rate-buy,
    .rate-sell {
        font-size: 14px;
        text-align: center;
    }
    
    /* Calculator */
    .calculator-row input,
    .calculator-row select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .calculator-result {
        padding: 15px 10px;
        min-height: 50px;
    }
    
    .calculator-result .result-amount {
        font-size: 16px;
    }
    
    .calculator-result .result-amount strong {
        font-size: 18px;
    }
    
    .calculator-result .result-rate {
        font-size: 12px;
    }
    
    /* Contact */
    .contact-info {
        padding: 40px 30px;
    }
    
    .contact-phones {
        font-size: 2rem;
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .website-credits {
        text-align: center;
        order: 3;
    }
    
    /* FAQ */
    .faq-section {
        padding: 50px 0;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h4 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
        letter-spacing: 2px;
    }
    
    .logo-subtext {
        font-size: 9px;
        letter-spacing: 1px;
    }
    
    /* Hero */
    .hero {
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 30px 15px;
    }
    
    .hero h1 {
        margin-bottom: 15px;
    }
    
    .hero h2 {
        margin-bottom: 15px;
    }
    
    .hero p {
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Rates */
    .rates-main {
        padding: 20px 10px;
        border-radius: 10px;
        margin: 0 5px;
    }
    
    .rates-header h3 {
        font-size: 1.4rem;
        gap: 10px;
    }
    
    .rates-header h3 i {
        font-size: 1.4rem;
    }
    
    .last-update {
        padding: 8px 12px;
        font-size: 10px;
    }
    
    .last-update span {
        font-size: 11px;
    }
    
    /* Bardzo kompaktowa tabela */
    .rates-table {
        min-width: 240px;
        font-size: 12px;
    }
    
    .rates-table th,
    .rates-table td {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .rates-table th {
        font-size: 9px;
        letter-spacing: 0.3px;
        padding: 12px 6px;
    }
    
    /* Ukrywamy kolumnę WALUTA również na małych ekranach */
    .rates-table th:nth-child(2),
    .rates-table td:nth-child(2) {
        display: none;
    }
    
    /* Szerokości dla małych ekranów */
    .rates-table th:nth-child(1),
    .rates-table td:nth-child(1) {
        width: 16%; /* Flaga */
    }
    
    .rates-table th:nth-child(3),
    .rates-table td:nth-child(3) {
        width: 20%; /* Symbol */
    }
    
    .rates-table th:nth-child(4),
    .rates-table td:nth-child(4) {
        width: 32%; /* Kupno */
    }
    
    .rates-table th:nth-child(5),
    .rates-table td:nth-child(5) {
        width: 32%; /* Sprzedaż */
    }
    
    .flag-cell img {
        width: 22px;
        height: 15px;
    }
    
    .currency-code {
        font-size: 13px;
    }
    
    .rate-buy,
    .rate-sell {
        font-size: 13px;
    }
    
    /* Calculator */
    .calculator-row {
        margin-bottom: 12px;
    }
    
    .calculator-row input,
    .calculator-row select {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .calculator-result {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .calculator-result .result-amount {
        font-size: 15px;
    }
    
    .calculator-result .result-amount strong {
        font-size: 16px;
    }
    
    /* FAQ */
    .faq-question {
        padding: 12px 15px;
    }
    
    .faq-question h4 {
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 12px 15px;
        max-height: 250px;
    }
}

/* VERY SMALL SCREENS */
@media (max-width: 360px) {
    .rates-main {
        padding: 15px 8px;
        margin: 0 2px;
    }
    
    /* Ultra kompaktowa tabela */
    .rates-table {
        min-width: 220px;
        font-size: 11px;
    }
    
    .rates-table th,
    .rates-table td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .rates-table th {
        font-size: 8px;
        padding: 10px 4px;
    }
    
    /* Ukrywamy kolumnę WALUTA również na bardzo małych ekranach */
    .rates-table th:nth-child(2),
    .rates-table td:nth-child(2) {
        display: none;
    }
    
    /* Szerokości dla bardzo małych ekranów */
    .rates-table th:nth-child(1),
    .rates-table td:nth-child(1) {
        width: 14%; /* Flaga */
    }
    
    .rates-table th:nth-child(3),
    .rates-table td:nth-child(3) {
        width: 18%; /* Symbol */
    }
    
    .rates-table th:nth-child(4),
    .rates-table td:nth-child(4) {
        width: 34%; /* Kupno */
    }
    
    .rates-table th:nth-child(5),
    .rates-table td:nth-child(5) {
        width: 34%; /* Sprzedaż */
    }
    
    .flag-cell img {
        width: 20px;
        height: 13px;
    }
    
    .currency-code {
        font-size: 12px;
    }
    
    .rate-buy,
    .rate-sell {
        font-size: 12px;
    }
}rates-layout {
        grid-template-columns: 1fr;
    }
/* ===== UKRYWANIE SIDEBAR NA MOBILE ===== */

/* MOBILE */
@media (max-width: 768px) {
    /* Ukrywamy cały sidebar na mobile */
    .rates-sidebar {
        display: none;
    }
    
    /* Tabela kursów zajmuje całą szerokość */
    .rates-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Zwiększamy padding głównej sekcji bez sidebar */
    .rates-main {
        padding: 30px 20px;
    }
}
/* ===== MNIEJSZY LICZNIK ODWIEDZIN ===== */
.visit-counter {
    background: var(--dark-bg-3);
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.counter-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.counter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--dark-bg-2);
    border-radius: 6px;
    border-left: 3px solid var(--primary-green);
    transition: transform 0.2s ease;
    min-width: 130px;
}

.counter-item:hover {
    transform: translateY(-2px);
}

.counter-item i {
    font-size: 1.2rem;
    color: var(--primary-green);
    opacity: 0.7;
}

.counter-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.counter-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
}

.counter-label {
    font-size: 9px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .visit-counter {
        padding: 10px 0;
    }
    
    .counter-stats {
        gap: 15px;
    }
    
    .counter-item {
        min-width: 110px;
        padding: 6px 12px;
        gap: 6px;
    }
    
    .counter-number {
        font-size: 1rem;
    }
    
    .counter-label {
        font-size: 8px;
    }
    
    .counter-item i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .counter-stats {
        gap: 10px;
        justify-content: space-around;
    }
    
    .counter-item {
        min-width: 100px;
        padding: 5px 10px;
    }
    
    .counter-number {
        font-size: 0.9rem;
    }
    
    .counter-label {
        font-size: 7px;
    }
}
.phone-link-secondary {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 15px;
}

.phone-link-secondary:hover {
    color: #4CAF50;
}

.phone-secondary {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-left: 15px;
}

.phone-secondary:hover {
    color: #4CAF50;
}
/* ===================================
   STYLE DLA SEKCJI KONTAKTOWEJ
   =================================== */

/* Header - telefony jednakowe */
.header-phones {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-phones .phone-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-phones .phone-link:hover {
    color: #4CAF50;
}

.header-phones .phone-link i {
    margin-right: 5px;
}

/* Sekcja kontaktowa - nowy layout */
.contact-info {
    padding: 40px;
    text-align: center;
}

.contact-info-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-phones-large {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.phone-number-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.phone-number-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
}

.phone-number-main i {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.contact-info-note {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ffffff;
    border-right: 4px solid #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Responsywność */
@media (max-width: 768px) {
    .header-phones {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-phones .phone-link {
        font-size: 0.9rem;
    }
    
    .contact-info {
        padding: 30px 20px;
    }
    
    .contact-info-subtitle {
        font-size: 0.9rem;
    }
    
    .contact-info-title {
        font-size: 1.1rem;
    }
    
    .phone-number-main {
        font-size: 1.5rem;
        padding: 15px 25px;
        letter-spacing: 1px;
    }
    
    .phone-number-main i {
        font-size: 1.3rem;
    }
    
    .contact-info-note {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .phone-number-main {
        font-size: 1.3rem;
        padding: 12px 20px;
        gap: 10px;
    }
    
    .phone-number-main i {
        font-size: 1.1rem;
    }
}