/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #5a6c7d;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --spacing-unit: 1rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.75;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 17px;
    overflow-x: hidden;
    padding-top: 70px;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Nagłówki */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: var(--secondary-color);
}

/* Kontener */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Nawigacja - Desktop */
nav {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1.125rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
    transition: var(--transition);
}

nav.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.875rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    min-height: 100%;
}

nav .container > * {
    display: flex;
    align-items: center;
    align-content: center;
}

.logo {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    margin: 0;
    padding: 0.625rem 0;
    height: auto;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    margin: 0;
    height: auto;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--accent-color);
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-1px);
}

.nav-links a:hover::after {
    width: 70%;
}

.nav-links a.active {
    color: var(--accent-color);
    background: rgba(102, 126, 234, 0.12);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 70%;
}

@media (min-width: 769px) and (max-width: 1200px) {
    nav .container {
        gap: 1.5rem;
    }
    
    .nav-links {
        gap: 0.25rem;
    }
    
    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1201px) {
    nav .container {
        max-width: 1400px;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
    display: block;
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

/* Mobile Menu */
@media (max-width: 968px) {
    nav {
        position: fixed;
    }

    .menu-toggle {
        display: flex !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 3.5rem 1.5rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 0;
        z-index: 1001;
        overflow-y: auto;
        margin: 0;
        justify-content: flex-start;
    }

    .nav-links li:first-child {
        margin-top: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        margin: 0;
        padding: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        font-size: 1.1rem;
        border-radius: 0;
        margin: 0;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a.active {
        background: rgba(102, 126, 234, 0.15);
        padding-left: 1rem;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Desktop - скрыть иконку меню */
@media (min-width: 969px) {
    .menu-toggle {
        display: none !important;
    }
}

/* Overlay для мобильного меню */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Sekcje */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background: linear-gradient(to bottom, var(--light-bg) 0%, rgba(248, 249, 250, 0.5) 100%);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

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

/* Karty - metody i porady */
.card-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 768px) {
    .card-grid,
    .card-grid-2,
    .card-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .card-grid,
    .card-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 0.875rem;
    line-height: 1.8;
    font-size: clamp(1.0625rem, 2vw, 1.125rem);
    color: var(--text-color);
    font-weight: 400;
}

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

.card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(102, 126, 234, 0.05);
}

.card a:hover {
    color: var(--white);
    background: var(--gradient-1);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

/* Card as link */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link .card {
    cursor: pointer;
}

.card-link:hover .card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-link .card span {
    color: var(--accent-color);
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(102, 126, 234, 0.05);
}

.card-link:hover .card span {
    color: var(--white);
    background: var(--gradient-1);
    box-shadow: var(--shadow-sm);
}

/* Obrazy */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
    object-fit: cover;
}

img[data-src] {
    min-height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.image-container {
    margin: 2rem 0;
    text-align: center;
    width: 100%;
}

.image-container img {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .image-container img {
        max-width: 600px;
    }
}

/* Tekst */
p {
    margin-bottom: 1.25rem;
    line-height: 1.85;
    font-size: clamp(1.0625rem, 2vw, 1.125rem);
    color: var(--text-color);
    font-weight: 400;
}

ul, ol {
    margin-left: 1.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.8;
    padding-left: 0.5rem;
}

li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
    font-size: clamp(1.0625rem, 2vw, 1.125rem);
    position: relative;
    padding-left: 0.5rem;
    transition: var(--transition);
    cursor: default;
}

li::marker {
    color: var(--accent-color);
    font-weight: 600;
}

li:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    padding-left: 0.75rem;
}

ul li::before {
    content: '▸';
    position: absolute;
    left: -1.25rem;
    color: var(--accent-color);
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
    transform: translateX(-5px);
}

ul li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

ol li {
    counter-increment: list-counter;
}

ol {
    counter-reset: list-counter;
}

ol li::marker {
    font-weight: 600;
    color: var(--accent-color);
}

strong {
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact links */
.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: #6c7d8f;
    border-bottom-color: #6c7d8f;
    transform: translateY(-1px);
}

.email-link:hover {
    color: #5a6c7d;
    border-bottom-color: #5a6c7d;
}

.phone-link:hover {
    color: #6c7d8f;
    border-bottom-color: #6c7d8f;
}

/* Content Blocks */
.content-block {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.content-block:hover {
    box-shadow: var(--shadow-md);
}

.content-block p {
    line-height: 1.85;
    font-size: clamp(1.0625rem, 2vw, 1.125rem);
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.content-block h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* Stopka */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    width: 100%;
}

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

footer > div {
    width: 100%;
}

footer h4 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
}

footer p {
    margin-bottom: 0.75rem;
    opacity: 0.95;
    line-height: 1.75;
    font-size: 1rem;
    font-weight: 400;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.95;
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
}

footer a:hover {
    opacity: 1;
    transform: translateX(5px);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.85;
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    margin-right: 0;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* Formularz */
form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(90, 108, 125, 0.1);
}

form textarea {
    min-height: 150px;
    resize: vertical;
}

form input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.2rem;
    accent-color: var(--accent-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 0;
}

.checkbox-group label {
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.checkbox-group label a {
    display: none;
}

button[type="submit"] {
    background: var(--gradient-1);
    color: var(--white);
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.disclaimer p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-color);
}

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

.disclaimer strong {
    font-weight: 600;
    color: var(--primary-color);
}

/* Push notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--white);
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: none;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
    font-weight: 500;
}

.notification.show {
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsywność */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

@media (max-width: 968px) {
    body {
        padding-top: 60px;
    }

    .container {
        padding: 0 1.5rem;
    }

    nav {
        padding: 0.75rem 0;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .card-grid-2,
    .card-grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .card {
        padding: 1.75rem;
    }

    .content-block {
        padding: 1.75rem;
    }

    footer {
        padding: 2.5rem 0 1.25rem;
    }

    footer .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    footer h4 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1.25rem;
    }

    form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .card-grid-2,
    .card-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card {
        padding: 1.5rem;
    }

    .content-block {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    footer {
        padding: 2rem 0 1rem;
        margin-top: 3rem;
    }

    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    footer > div {
        text-align: center;
    }

    footer h4 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        font-weight: 600;
    }

    footer p {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
        line-height: 1.8;
        opacity: 0.95;
    }

    footer a {
        margin-right: 0;
        margin-bottom: 0.75rem;
        display: block;
        font-size: 1.05rem;
        font-weight: 400;
    }

    .footer-bottom {
        padding-top: 1.25rem;
        margin-top: 0.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .footer-links a {
        margin-bottom: 0.25rem;
    }

    .image-container {
        margin: 1.5rem 0;
    }

    .image-container img {
        border-radius: 8px;
    }

    .disclaimer {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 55px;
    }

    .container {
        padding: 0 1rem;
    }

    nav .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 2rem 0;
    }

    .card {
        padding: 1.25rem;
    }

    .content-block {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .card-grid {
        gap: 1rem;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    form input[type="text"],
    form input[type="email"],
    form textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    button[type="submit"] {
        width: 100%;
        padding: 0.875rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .checkbox-group label {
        font-size: 0.9rem;
    }

    footer {
        padding: 1.75rem 0 0.75rem;
        margin-top: 2.5rem;
    }

    footer .container {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    footer h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    footer p {
        font-size: 1rem;
        margin-bottom: 0.6rem;
        line-height: 1.8;
        opacity: 0.95;
    }

    footer a {
        font-size: 1rem;
        margin-bottom: 0.6rem;
        font-weight: 400;
    }

    .footer-bottom {
        padding-top: 1.25rem;
        margin-top: 0.75rem;
    }

    .footer-bottom p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .footer-links {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        font-size: 1rem;
        padding: 0.3rem 0.5rem;
        font-weight: 400;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        width: 85%;
        max-width: 280px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .card {
        padding: 1rem;
    }

    .content-block {
        padding: 1rem;
    }

    p {
        font-size: 0.95rem;
    }

    footer {
        padding: 1.5rem 0 0.5rem;
        margin-top: 2rem;
    }

    footer .container {
        gap: 1.5rem;
        margin-bottom: 1.25rem;
    }

    footer h4 {
        font-size: 1.15rem;
        margin-bottom: 0.875rem;
        font-weight: 600;
    }

    footer p {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.75;
        opacity: 0.95;
    }

    footer a {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        font-weight: 400;
    }

    .footer-bottom {
        padding-top: 1rem;
        margin-top: 0.5rem;
    }

    .footer-bottom p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-links {
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        font-size: 0.95rem;
        padding: 0.25rem 0.4rem;
        font-weight: 400;
    }
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 360px) {
    footer {
        padding: 1.25rem 0 0.5rem;
    }

    footer .container {
        gap: 1.25rem;
    }

    footer h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    footer p,
    footer a {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--primary-color);
}

}
