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

.ads-container {
    text-align: center;
    margin: 2rem auto;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-background);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ads-container ins {
    min-height: 90px;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --background-color: #f8fafc;
    --background-alt: #f1f5f9;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --success-light: #dcfce7;
    --error-color: #ef4444;
    --error-light: #fee2e2;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --info-color: #3b82f6;
    --info-light: #dbeafe;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #0f172a;
        --background-alt: #1e293b;
        --card-background: #1e293b;
        --text-color: #f1f5f9;
        --text-light: #94a3b8;
        --text-muted: #64748b;
        --border-color: #334155;
    }
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-alt);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

header {
    background: linear-gradient(135deg, var(--card-background) 0%, var(--background-alt) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo a:hover {
    transform: scale(1.02);
    text-decoration: none;
}

.logo img {
    transition: var(--transition);
}

.logo a:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.menu li {
    position: relative;
}

.menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 0.95rem;
    display: block;
}

.menu a:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
}

main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 50%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-xl);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.categories {
    margin-bottom: 3rem;
}

.categories h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

.categories h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #7c3aed);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.category-card h3 a {
    color: var(--text-color);
}

.category-card h3 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-card .count {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.popular-calculators {
    margin-bottom: 3rem;
}

.popular-calculators h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.calculator-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.calculator-link {
    display: inline-flex;
    align-items: left;
    justify-content: left;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    width: 245px;
    background: var(--card-background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.calculator-link .calculator-icon {
    font-size: 1.1rem;
}

.calculator-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.page-header {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.all-calculators h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.calculator-list-full {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.calculator-list-full li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--card-background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-weight: 500;
    color: var(--text-color);
}

.calculator-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    background: var(--info-light);
    color: var(--primary-color);
}

.calculator-list-full li a:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.calculator-list-full li a:hover .calculator-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.page-header {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: white;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
}

.calculator-page {
    max-width: 900px;
    margin: 0 auto;
}

.calculator-page h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    position: relative;
}

.calculator-page h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #7c3aed);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.calculator-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.calculator-form {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.calculator-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #7c3aed, var(--accent-color));
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input[type="range"] {
    padding: 0;
    border: none;
    background: transparent;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #6d28d9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--background-alt);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--primary-color);
}

.result {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--info-light), var(--success-light));
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--success-color);
    position: relative;
}

.result::before {
    content: ' Rezultat ';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success-color);
    margin-top: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-label {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 1rem;
}

.explanation {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.explanation h2,
.explanation h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.explanation h2::after,
.explanation h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.explanation ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.explanation li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.explanation pre {
    background: var(--background-alt);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.faq {
    margin-top: 2rem;
}

.faq h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.faq h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.faq-item {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.faq-item h4 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* .faq-item h4::before {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
} */

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

.breadcrumbs {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumbs span {
    color: var(--text-muted);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.related-calculators {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-calculators h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.related-calculators a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--background-alt);
    border-radius: var(--radius-md);
    margin: 0.25rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.related-calculators a:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer nav {
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

footer nav a {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

footer nav a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

footer p {
    color: rgba(255,255,255,0.6);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.content-page {
    min-height: calc(100vh - 200px);
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.content-page h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.content-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-page .last-update {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.h2-seo {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.h2-seo::before {
    content: '#';
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.calculator-page h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2rem 0 1rem;
}

@media (max-width: 1024px) {
    nav {
        padding: 1rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        position: relative;
    }
    
    .logo {
        z-index: 1001;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
    
    .logo img {
        height: 32px;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, var(--primary-color), #7c3aed);
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        z-index: 1001;
        transition: var(--transition);
        padding: 10px;
        box-shadow: var(--shadow-md);
    }
    
    .hamburger:hover {
        background: linear-gradient(135deg, var(--primary-dark), #6d28d9);
        transform: scale(1.05);
    }
    
    .hamburger span {
        display: block;
        width: 22px;
        height: 2.5px;
        background: white;
        margin: 3px 0;
        transition: var(--transition);
        border-radius: 2px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }
    
    .hamburger.active {
        background: var(--error-color);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--background-color) 0%, var(--background-alt) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
        padding-top: 90px;
    }
    
    .menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .menu.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), #7c3aed, var(--accent-color));
    }
    
    .menu li {
        width: 100%;
        max-width: 300px;
        text-align: center;
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .menu.active li:nth-child(4) { transition-delay: 0.2s; }
    .menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .menu.active li:nth-child(6) { transition-delay: 0.3s; }
    .menu.active li:nth-child(7) { transition-delay: 0.35s; }
    .menu.active li:nth-child(8) { transition-delay: 0.4s; }
    .menu.active li:nth-child(9) { transition-delay: 0.45s; }
    .menu.active li:nth-child(10) { transition-delay: 0.5s; }
    
    .menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        border-radius: var(--radius-lg);
        margin-bottom: 0.5rem;
        background: var(--card-background);
        border: 2px solid var(--border-color);
        box-shadow: var(--shadow);
    }
    
    .menu a:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-color);
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .calculator-form {
        padding: 1.5rem;
    }
    
    .calculator-page h1 {
        font-size: 1.75rem;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-list-full {
        grid-template-columns: 1fr;
    }
    
    .h2-seo {
        font-size: 1.4rem;
    }
    
    .page-header {
        padding: 1.5rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    footer {
        padding: 2rem 1rem;
    }
    
    footer nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    footer nav a {
        display: inline-block;
        padding: 0.5rem 1rem;
        border-radius: var(--radius-md);
        background: rgba(255,255,255,0.1);
    }
    
    footer nav a:hover {
        background: rgba(255,255,255,0.2);
        text-decoration: none;
    }
}

@media (max-width: 480px) {
    .menu {
        gap: 0.25rem;
    }
    
    .menu a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .logo a {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
    }
    
    .result {
        padding: 1.5rem 1rem;
    }
    
    .result-value {
        font-size: 1.75rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
