/* ========== ПЕРЕМЕННЫЕ ========== */
:root {
    --bg-dark: #05050a;
    --bg-card: rgba(10, 15, 30, 0.65);
    --glass-border: rgba(59, 130, 246, 0.3);
    --glass-border-hover: rgba(59, 130, 246, 0.7);
    --neon-blue: #3b82f6;
    --neon-cyan: #06b6d4;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --shadow-sm: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 25px 45px -12px rgba(0, 0, 0, 0.6);
    --shadow-neon: 0 0 12px rgba(59, 130, 246, 0.4);
    --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --border-radius-card: 32px;
    --border-radius-element: 28px;
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(ellipse at 20% 30%, #0a0a1a, #010105);
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Анимированные звёзды (дополнительный слой) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0));
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

canvas#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main, header, footer, section {
    position: relative;
    z-index: 2;
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    backdrop-filter: blur(16px);
    background: rgba(5, 5, 10, 0.6);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: padding 0.3s, background 0.3s, backdrop-filter 0.3s;
}
.navbar.scrolled {
    padding: 16px 48px;
    background: rgba(5, 5, 10, 0.9);
    backdrop-filter: blur(20px);
}
.logo {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    text-shadow: 0 0 8px rgba(59,130,246,0.3);
}
.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}
.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 6px var(--neon-blue);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
#theme-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
#theme-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
    border-color: var(--neon-blue);
    box-shadow: var(--shadow-neon);
}

/* ========== HERO ========== */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
}
.badge {
    background: rgba(59, 130, 246, 0.12);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    color: var(--neon-blue);
    letter-spacing: 0.3px;
}
.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}
.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.btn {
    padding: 12px 32px;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 1rem;
}
.btn.primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.5);
}
.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}
.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -8px rgba(59, 130, 246, 0.6);
}
.btn.primary:hover {
    box-shadow: 0 0 16px var(--neon-blue);
}

/* ========== СЕКЦИИ: ОБЩИЕ ========== */
section {
    margin: 8rem auto;
    padding: 0 24px;
    max-width: 1400px;
}
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-light), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    width: 100%;
}
h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    margin: 0.8rem auto 0;
    border-radius: 3px;
    box-shadow: 0 0 8px var(--neon-blue);
}

/* ========== СТАТИСТИКА ========== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 6rem auto;
}
.stat {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-card);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.stat:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-md), 0 0 15px rgba(59,130,246,0.2);
}
.stat h3 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}
.stat p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ========== СЕТКИ ========== */
.services-grid, .projects-grid, .microservices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.service-card, .project, .micro-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-card);
    padding: 2rem;
    transition: var(--transition);
}
.service-card:hover, .project:hover, .micro-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(59,130,246,0.2);
}
.service-card h3, .project h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.service-card p, .project p {
    color: var(--text-muted);
    line-height: 1.5;
}
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.skills span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1.5rem;
    border-radius: 60px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.skills span:hover {
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

/* ========== ГЕНЕРАТОР ПАРОЛЕЙ ========== */
.generator-wrapper {
    max-width: 750px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: 56px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.password-display {
    display: flex;
    gap: 1.2rem;
    margin: 2rem 0;
}
#generated-password {
    flex: 1;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    color: var(--neon-blue);
    font-family: 'Fira Mono', monospace;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.5px;
}
.copy-pwd-btn, .copy-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 40px;
    padding: 0 1.8rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.copy-pwd-btn:hover, .copy-btn:hover {
    transform: scale(0.98);
    filter: brightness(1.05);
    box-shadow: 0 0 10px #10b981;
}
.options {
    margin: 2rem 0;
}
.option-slider {
    margin-bottom: 1.8rem;
}
.option-slider label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}
#length-slider {
    width: 100%;
    cursor: pointer;
    background: var(--glass-border);
    height: 5px;
    border-radius: 5px;
    appearance: none;
}
#length-slider:focus {
    outline: none;
}
.option-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.generate-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 60px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--neon-blue);
}
.strength-meter {
    margin-top: 2rem;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.strength-bar {
    width: 0%;
    height: 100%;
    transition: width 0.3s;
}
.info {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========== МИКРОСЕРВИСЫ (КУРСЫ, ПОГОДА, СТАТУС, АНАЛИЗАТОР, ГЕНЕРАТОР ЧИСЕЛ) ========== */
.micro-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}
.micro-icon {
    font-size: 2.2rem;
}
.micro-title {
    font-size: 1.4rem;
    font-weight: 600;
}
.rate-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0.8rem 0;
    font-size: 1.1rem;
}
.weather-temp {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0.5rem 0;
}
.weather-selector {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.city-input, #city-select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 0.7rem 1rem;
    color: white;
    font-size: 0.9rem;
}
.city-btn {
    background: var(--neon-blue);
    border: none;
    border-radius: 40px;
    padding: 0.7rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}
.city-btn:hover {
    background: var(--neon-purple);
    transform: translateY(-2px);
    box-shadow: 0 0 8px var(--neon-purple);
}
.status-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--glass-border);
}
.status-item span:first-child {
    color: var(--text-muted);
}
.status-item span:last-child {
    color: var(--neon-blue);
    font-weight: 500;
}
.status-update {
    margin-top: 1rem;
    font-size: 0.7rem;
    text-align: right;
    color: var(--text-muted);
}
#text-analyzer-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0.8rem;
    color: white;
    font-family: inherit;
    resize: vertical;
}
#text-analyzer-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
}
#text-analyzer-stats {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    color: var(--text-muted);
}
#random-number-result {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--neon-cyan);
    text-shadow: 0 0 6px var(--neon-cyan);
}

/* ========== ПОЧТА ========== */
.mail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.mail-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-card);
    padding: 2rem;
    transition: var(--transition);
}
.mail-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-sm);
}
.mail-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.8rem;
}
.mail-icon {
    font-size: 2rem;
}
.mail-title {
    font-size: 1.3rem;
    font-weight: 600;
}
.mail-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mail-form .form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
}
.mail-form .form-group input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
.mail-result {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
}
.mail-result.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.mail-result.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.mail-note {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}
.mail-info {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 28px;
    font-size: 0.85rem;
    border-left: 4px solid var(--neon-blue);
}

/* ========== СОКРАЩАТЕЛЬ ССЫЛОК ========== */
.shortener-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: 56px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
}
.url-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 60px;
    color: white;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.url-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.shorten-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 60px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.shorten-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--neon-blue);
}
.loading {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--neon-blue);
    display: none;
}
.result-box {
    margin-top: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 1.5rem;
    display: none;
}
#short-link {
    color: var(--neon-blue);
    word-break: break-all;
    font-size: 1.1rem;
}
#qrcode {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}
.security-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========== НОВОСТИ ========== */
.news-section {
    margin-top: 6rem;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.news-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}
.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-sm), 0 0 12px rgba(59,130,246,0.2);
}
.news-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.news-icon {
    font-size: 1.2rem;
}
.news-source {
    font-weight: 500;
    color: var(--neon-blue);
}
.news-date {
    margin-left: auto;
}
.news-card a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.news-card a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 4px var(--neon-blue);
}
.news-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== TOAST ========== */
#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827dd;
    backdrop-filter: blur(12px);
    color: white;
    padding: 12px 28px;
    border-radius: 60px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    pointer-events: none;
    font-size: 0.9rem;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}
#toast.show {
    opacity: 1;
}

/* ========== КНОПКА НАВЕРХ ========== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), 0 0 15px var(--neon-blue);
}

/* ========== ФУТЕР ========== */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
    font-size: 0.9rem;
}
.footer-links {
    margin-top: 1rem;
    font-size: 0.8rem;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    margin: 0 0.5rem;
}
.footer-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 6px var(--neon-blue);
}

/* ========== АНИМАЦИЯ ПОЯВЛЕНИЯ ========== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 992px) {
    section {
        margin: 6rem auto;
    }
    .stats {
        gap: 1.5rem;
    }
    .services-grid, .projects-grid, .microservices-grid {
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    .navbar.scrolled {
        padding: 0.8rem 1.5rem;
    }
    .nav-links {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero {
        min-height: 70vh;
        padding: 2rem 1rem;
    }
    section {
        margin: 4rem auto;
        padding: 0 1rem;
    }
    h2 {
        font-size: 1.9rem;
        margin-bottom: 2rem;
    }
    .stat h3 {
        font-size: 2.2rem;
    }
    .generator-wrapper, .shortener-wrapper {
        padding: 1.8rem;
    }
    .password-display {
        flex-direction: column;
    }
    .rate-value {
        font-size: 1.4rem;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .mail-grid {
        grid-template-columns: 1fr;
    }
    #toast {
        white-space: normal;
        text-align: center;
        max-width: 90%;
        padding: 10px 20px;
    }
    #back-to-top {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }
}
@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
    .btn {
        padding: 10px 24px;
    }
}

/* ========== КАЛЬКУЛЯТОРЫ ========== */
.calculator-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
}
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.calc-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.calc-group input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    color: white;
    font-size: 1rem;
}
.calc-group input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
}