
:root {
    /* Градиентная палитра 2026 */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #6366f1 100%);
    --gradient-energy: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #dc2626 100%);
    
    /* Цвета */
    --indigo-500: #6366f1;
    --purple-500: #8b5cf6;
    --pink-500: #ec4899;
    --cyan-400: #22d3ee;
    --blue-400: #3b82f6;
    --teal-400: #14b8a6;
    
    /* Фоновые оттенки */
    --bg-dark: #0f0f1b;
    --bg-card: #1a1e26;
    --bg-input: #0d1117;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: var(--bg-dark);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* Анимированный фоновый градиент */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(99, 102, 241, 0.03) 25%,
        transparent 50%,
        rgba(236, 72, 153, 0.03) 75%,
        transparent 100%
    );
    background-size: 400% 400%;
    animation: bgGradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes bgGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.input-select {
    width: 100%;
    background: rgba(13, 17, 23, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 16px 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(139,92,246,0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}
.result-card .result-label {
    font-size: 0.8rem;
}
.input-select:focus {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), inset 0 2px 12px rgba(139, 92, 246, 0.2);
}

.input-select option {
    background: #1a1e26;
    color: white;
}

.wrapper {
   max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 120px);
}

/* ---------- СТЕКЛЯННЫЕ КАРТОЧКИ, ОБЩИЕ ЭФФЕКТЫ ---------- */
.glass-card {
    background: rgba(26, 30, 38, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(99, 102, 241, 0.08),
        inset 0 0 20px rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(99, 102, 241, 0.15),
        inset 0 0 25px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ---------- ЗАГОЛОВОК САЙТА ---------- */
.hero {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.08; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.12; }
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h1 span {
    display: inline-block;
}

.hero .sub {
    font-size: 1.15rem;
    color: #a0a8c0;
    font-weight: 500;
    background: linear-gradient(90deg, #a0a8c0 0%, #8b5cf6 50%, #a0a8c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: subGradientShift 6s ease infinite;
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
}

.hero .sub::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

@keyframes subGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- ФОРМА / СЕТКА ПОЛЕЙ ---------- */
.calculator {
    background: rgba(18, 22, 32, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 36px;
    padding: 45px 40px;
    margin-bottom: 35px;
    box-shadow: 
        0 30px 50px -15px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.calculator::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
    z-index: -1;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
    margin-bottom: 35px;
}

.input-group {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    position: relative;
}

.input-icon {
    width: 52px;
    height: 52px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    font-size: 2rem;
    border: 2px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.input-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.input-group:focus-within .input-icon {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

.input-group:focus-within .input-icon::before {
    opacity: 0.15;
}

.input-field {
    flex: 1;
}

.input-field label {
    display: block;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #b8c0d4;
    margin-bottom: 8px;
    margin-left: 10px;
    background: linear-gradient(90deg, #b8c0d4 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: labelGradientShift 8s ease infinite;
}

@keyframes labelGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.input-field input {
    width: 100%;
    background: rgba(13, 17, 23, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 16px 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 2px 12px rgba(0, 0, 0, 0.6),
        0 0 0 0 rgba(139, 92, 246, 0.3);
    position: relative;
}

.input-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.input-field input:focus {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 
        0 0 0 4px rgba(139, 92, 246, 0.15),
        inset 0 2px 12px rgba(139, 92, 246, 0.2);
    background: rgba(18, 22, 32, 0.9);
}

.input-field input.input-error {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(255, 60, 60, 0.05);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-field input.input-error:focus {
    box-shadow: 
        0 0 0 4px rgba(239, 68, 68, 0.2),
        inset 0 2px 12px rgba(239, 68, 68, 0.1);
}

.error-message {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f87171;
    margin-top: 8px;
    min-height: 20px;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
    background: linear-gradient(90deg, #f87171 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Пятое поле (объём флакона) на всю ширину */
.form-grid .input-group:last-child {
    grid-column: span 2;
}

/* ---------- КНОПКА РАССЧИТАТЬ (НЕОН, ГРАДИЕНТ, АНИМАЦИЯ) ---------- */
.btn-calc {
    background: var(--gradient-primary);
    border: none;
    border-radius: 60px;
    padding: 22px 40px;
    width: 100%;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-shadow: 
        0 0 30px rgba(99, 102, 241, 0.6),
        0 10px 25px rgba(0, 0, 0, 0.7),
        inset 0 -3px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: buttonGradientShift 3s ease infinite;
}

@keyframes buttonGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-calc::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-calc .emoji-large {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    position: relative;
    z-index: 2;
}

.btn-calc span {
    position: relative;
    z-index: 2;
}

.btn-calc:hover {
    transform: scale(1.03);
    box-shadow: 
        0 0 50px rgba(99, 102, 241, 0.8),
        0 15px 35px rgba(0, 0, 0, 0.8),
        inset 0 -3px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-calc:hover::before {
    left: 100%;
}

.btn-calc:active {
    transform: scale(0.98);
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.7);
}

/* ---------- БЛОК РЕЗУЛЬТАТОВ (исправлено - полностью скрыт до нажатия) ---------- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 30px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-grid.hidden {
    display: none;
}

.results-grid.visible {
    display: grid;
    animation: resultsReveal 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes resultsReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-card {
    background: rgba(22, 28, 38, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    padding: 32px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 
        0 15px 35px -8px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(139, 92, 246, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(20px);
}

.result-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 20px 45px -10px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(139, 92, 246, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    transform: translateY(-8px) scale(1.02);
    background: rgba(28, 36, 48, 0.85);
}

.result-card:hover::before {
    opacity: 0.08;
}

.result-card:nth-child(1)::before {
    background: var(--gradient-primary);
}

.result-card:nth-child(2)::before {
    background: var(--gradient-secondary);
}

.result-card:nth-child(3)::before {
    background: var(--gradient-accent);
}

.result-card:nth-child(4)::before {
    background: var(--gradient-energy);
}

.result-emoji {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 
        0 0 15px rgba(99, 102, 241, 0.6),
        0 0 30px rgba(139, 92, 246, 0.4);
    position: relative;
    z-index: 2;
}

.result-label {
    font-size: 0.88rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #a8b0c8;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #a8b0c8 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.result-value {
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: valueGradientShift 5s ease infinite;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

@keyframes valueGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.result-value::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    opacity: 0.6;
    z-index: -1;
}

.result-unit {
    font-size: 0.95rem;
    color: #98a0b8;
    font-weight: 600;
    position: relative;
    z-index: 2;
}


.navbar {
    width: 100%;
    background: transparent;
    position: relative;
    z-index: 1000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(145deg, #ff3c3c, #00e0b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* Кнопка гамбургера (скрыта на десктопе) */
.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1100;
}

.navbar-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.navbar-toggle span:nth-child(1) { top: 0; }
.navbar-toggle span:nth-child(2) { top: 10px; }
.navbar-toggle span:nth-child(3) { top: 20px; }

/* Анимация при открытом меню */
.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Меню навигации */
.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(145deg, #ff3c3c, #00e0b8);
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: white;
}

.navbar-link:hover::after {
    width: 100%;
}

/* Выпадающие меню (десктоп) */
.navbar-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: default;
}

/* Стрелка у пунктов с подменю */
.dropdown-toggle::after {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.navbar-dropdown:hover .dropdown-toggle::after,
.navbar-dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Само выпадающее меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(26, 30, 38, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.navbar-dropdown:hover .dropdown-menu,
.navbar-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Пункты подменю */
.dropdown-item {
    display: block;
    padding: 0.7rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(255, 60, 60, 0.1);
    color: white;
    padding-left: 2rem;
}

/* Убираем подчёркивание у ссылок подменю */
.dropdown-item::after {
    display: none;
}

footer {
    text-align: center;
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media screen and (max-width: 900px) {
    header {
        position: relative;
        padding: 1rem 0;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(18, 22, 28, 0.98);
        backdrop-filter: blur(10px);
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1050;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-link {
        display: block;
        margin: 0 0 1rem 0;
        padding: 0.7rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        white-space: normal;
    }

    .navbar-link::after {
        display: none; /* убираем подчёркивание на мобильных */
    }

    /* Выпадающие меню на мобильных */
    .navbar-dropdown {
        margin-bottom: 1rem;
        width: 100%;
    }

    .dropdown-toggle {
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0.7rem 0;
        margin: 0;
    }

    .dropdown-toggle::after {
        float: right;
        margin-right: 0.5rem;
        line-height: 1.5;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        display: none;
        margin-top: 0.5rem;
    }

    .navbar-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 0.6rem 1rem;
        color: rgba(255, 255, 255, 0.7);
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        font-size: 0.95rem;
    }

    .dropdown-item:hover,
    .dropdown-item.active {
        background: rgba(255, 60, 60, 0.15);
        padding-left: 1.5rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .form-grid .input-group:last-child {
        grid-column: span 1;
    }
    .hero h1 {
        font-size: 2.6rem;
    }
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calculator {
        padding: 35px 25px;
    }
}

@media screen and (max-width: 600px) {
    body { padding: 15px; }
    .calculator { padding: 30px 20px; border-radius: 28px; }
    .hero h1 { 
        font-size: 2.2rem;
        line-height: 1.2;
    }
    .hero .sub { font-size: 1rem; }
    .btn-calc { 
        font-size: 1.5rem; 
        padding: 18px;
        flex-direction: column;
        gap: 10px;
    }
    .btn-calc .emoji-large { font-size: 1.8rem; }
    .results-grid { grid-template-columns: 1fr; }
    .input-group { 
        flex-direction: column; 
        align-items: stretch;
    }
    .input-icon { 
        width: 48px; 
        height: 48px; 
        font-size: 1.8rem;
        margin-left: 4px;
    }
    .result-value { font-size: 2.3rem; }
    .result-emoji { font-size: 2.6rem; }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .navbar-menu {
        width: 100%;
        right: -100%;
    }
}