:root {
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --primary-color: #06c;
    --secondary-color: #004de3;
    --navbar-height: 44px;
    --hover-color: rgba(0, 0, 0, 0.04);
    --dropdown-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Стили для логотипа */
.logo-image {
    height: 15px; /* Регулируйте по необходимости */
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.8;
}

.nav-logo a {
    padding: 0 15px 0 0 !important;
    display: flex;
    align-items: center;
    height: 100%;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-weight: 400;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== НАВИГАЦИЯ (обновленная) ========== */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: var(--navbar-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* max-width: 980px; */
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
}

.nav-links, .auth-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links li, .auth-links li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links a, .auth-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.3s;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a:hover, .auth-links a:hover {
    color: var(--primary-color);
    background-color: var(--hover-color);
}

.nav-links a i, .auth-links a i {
    margin-right: 6px;
    font-size: 14px;
}

/* Логотип */
.nav-logo a {
    padding: 0 15px 0 0 !important;
    font-size: 18px;
}

/* Выпадающее меню */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 180px;
    box-shadow: var(--dropdown-shadow);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001;
}

.dropdown-content a {
    padding: 10px 16px;
    height: auto;
    font-size: 12px;
    color: var(--text-color) !important;
    justify-content: flex-start;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-btn::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 4px;
    font-size: 10px;
}

/* Блок авторизации */
.auth-links {
    margin-left: auto;
}

.auth-links a {
    padding: 0 12px;
}

/* ========== ОСНОВНОЙ КОНТЕНТ (сохранен ваш стиль) ========== */
.content {
    flex: 1;
    padding: 40px 20px;
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero p {
    font-size: 28px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #86868b;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: scale(1.02);
}

.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
    max-width: 300px;
}

.feature-item h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 18px;
    color: #86868b;
}

/* ========== ФУТЕР (сохранен ваш стиль) ========== */
.footer {
    background-color: #f5f5f7;
    color: #86868b;
    padding: 20px 0;
    font-size: 12px;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    padding: 0 22px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-links a, .auth-links a {
        padding: 0 8px;
        font-size: 11px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 20px;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-content {
        left: 0;
        transform: none;
    }
}

/* ========== АНИМАЦИИ (сохранены ваши) ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero, .features {
    animation: fadeIn 0.8s ease-out forwards;
}

.features {
    animation-delay: 0.3s;
}


/* Calculator Styles */
.calculator-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-header h1 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.calculator-header p {
    color: #86868b;
    font-size: 16px;
}

.calculator-actions {
    display: flex;
    justify-content: center; /* Выравнивание по горизонтали */
    align-items: center; /* Выравнивание по вертикали */
    margin: 30px 0; /* Отступы сверху и снизу */
    width: 100%; /* Занимает всю ширину */
}

.create-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Добавляем центрирование содержимого */
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    margin: 0;
    gap: 10px;
}

.create-btn i {
    margin-right: 5px;
    font-size: 18px;
}

.create-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.calculator-placeholder {
    text-align: center;
    padding: 40px 0;
}

.empty-state {
    max-width: 300px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.calculator-placeholder p {
    color: #86868b;
    font-size: 16px;
}


/* Calculation Detail Styles */
.calculation-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.meta-item i {
    font-size: 12px;
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 18px;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
}


.calculation-inputs {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}


.save-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.save-btn i {
    margin-right: 5px;
}


.suggestions {
    border: 1px solid #ccc;
    border-top: none;
    max-height: 150px;
    overflow-y: auto;
    background: white;
    position: absolute;
    width: 100%;
    z-index: 999;
    display: none;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

.form-group {
    position: relative;
}



