* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ==================== ЦВЕТОВАЯ ПАЛИТРА ==================== */
/* Основной бирюзовый: #1a7a8a */
/* Тёмный бирюзовый: #0d5c6b */
/* Светлый бирюзовый: #4ecdc4 */
/* Золотой акцент: #d4a574 */
/* Тёмный золотой: #b8935a */

/* ==================== ЛЕНДИНГ (index.html) ==================== */

.landing-page {
    position: relative;
    min-height: 100vh;
}

/* ФОНОВОЕ ИЗОБРАЖЕНИЕ */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* ВОДЯНОЙ ЗНАК AI */
.ai-watermark {
    position: fixed;
    bottom: 100px;
    right: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    z-index: 1000;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);
}

.landing-content {
    max-width: 800px;
    text-align: center;
}

.landing-content h1 {
    font-size: 42px;
    color: #1a7a8a;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.landing-content h2 {
    font-size: 24px;
    color: #0d5c6b;
    margin-bottom: 40px;
    font-weight: 600;
}

.intro-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: left;
    border-left: 5px solid #d4a574;
}

.intro-section h3 {
    color: #1a7a8a;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.intro-section p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.intro-section .highlight {
    background: linear-gradient(135deg, #fff8e7 0%, #ffe8c4 100%);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #d4a574;
    color: #5a4a3a;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #4ecdc4;
    transition: transform 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.benefit-item h4 {
    color: #1a7a8a;
    margin-bottom: 8px;
    font-weight: 600;
}

.benefit-item p {
    color: #666;
    font-size: 14px;
}

.cta-button-large {
    display: inline-block;
    background: linear-gradient(135deg, #d4a574 0%, #b8935a 100%);
    color: white;
    text-decoration: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
    border: 2px solid transparent;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.5);
    background: linear-gradient(135deg, #b8935a 0%, #d4a574 100%);
}

/* ==================== КАЛЬКУЛЯТОР (calculator.html) ==================== */

.calculator-page {
    background: linear-gradient(135deg, #1a7a8a 0%, #4ecdc4 100%);
    min-height: 100vh;
    padding-bottom: 40px;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link {
    color: #1a7a8a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #d4a574;
}

.nav-title {
    font-weight: bold;
    color: #1a7a8a;
    font-size: 18px;
}

.calculator-wrapper {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.calculator-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 800px;
    width: 100%;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
}

.calculator-header h1 {
    font-size: 32px;
    color: #1a7a8a;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.subtitle {
    color: #0d5c6b;
    font-size: 16px;
    font-weight: 500;
}

.inputs {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #1a7a8a;
}

.input-group input[type="number"] {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 8px;
    transition: border-color 0.3s;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #4ecdc4;
}

.input-group input[type="range"] {
    width: 100%;
    accent-color: #1a7a8a;
    cursor: pointer;
}

.input-group small {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

.results {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #4ecdc4;
}

.result-card.main {
    background: linear-gradient(135deg, #1a7a8a 0%, #4ecdc4 100%);
    color: white;
    border-left: none;
}

.result-card.main .value {
    font-size: 28px;
    color: white;
    font-weight: 700;
}

.result-card.passive {
    background: linear-gradient(135deg, #fff8e7 0%, #ffe8c4 100%);
    border-left: 4px solid #d4a574;
}

.result-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.label {
    font-size: 14px;
    color: #666;
}

.value {
    font-size: 20px;
    font-weight: bold;
    color: #1a7a8a;
}

.value.profit {
    color: #d4a574;
    font-weight: 700;
}

/* ГРАФИК */
.chart-container {
    margin: 30px 0;
}

.chart-container h3 {
    margin-bottom: 15px;
    color: #1a7a8a;
    font-weight: 600;
}

.chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 250px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    gap: 4px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 40px;
}

.bar-stack {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.bar-invested {
    background: linear-gradient(180deg, #1a7a8a 0%, #4ecdc4 100%);
}

.bar-profit {
    background: linear-gradient(180deg, #d4a574 0%, #b8935a 100%);
}

.bar-label {
    font-size: 10px;
    color: #666;
    margin-top: 5px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 13px;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}

.legend-color.invested { 
    background: linear-gradient(135deg, #1a7a8a 0%, #4ecdc4 100%);
}
.legend-color.profit { 
    background: linear-gradient(135deg, #d4a574 0%, #b8935a 100%);
}

/* ПАРТНЁРСКИЙ БЛОК */
.affiliate-block {
    background: linear-gradient(135deg, #fff8e7 0%, #ffe8c4 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
    border: 2px solid #d4a574;
}

.affiliate-block h3 {
    margin-bottom: 10px;
    color: #1a7a8a;
    font-weight: 600;
}

.affiliate-block p {
    margin-bottom: 15px;
    color: #555;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #d4a574 0%, #b8935a 100%);
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.5);
    background: linear-gradient(135deg, #b8935a 0%, #d4a574 100%);
}

.affiliate-block small {
    display: block;
    margin-top: 10px;
    color: #888;
    font-size: 11px;
}

/* РЕКЛАМНЫЙ БЛОК */
.ad-container {
    margin: 30px 0;
    text-align: center;
}

.yandex-ad-block {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #4ecdc4;
}

.ad-placeholder {
    color: #888;
    font-size: 14px;
}

/* ДИСКЛЕЙМЕР */
.disclaimer-footer {
    background: rgba(13, 92, 107, 0.9);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d4a574;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 600px) {
    .landing-content h1 { font-size: 32px; }
    .landing-content h2 { font-size: 18px; }
    .calculator-header h1 { font-size: 24px; }
    .result-row { grid-template-columns: 1fr; }
    .result-card.main .value { font-size: 22px; }
    .chart { height: 200px; }
    .cta-button-large { padding: 15px 30px; font-size: 16px; }
    .navbar { flex-direction: column; gap: 10px; }
}