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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хедер */
header {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
}

/* Виджет секция */
.widget-section {
    margin-bottom: 40px;
    text-align: center;
}

.widget-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.widget-header p {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.fintarget-widget-container {
    min-height: 400px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.widget-info {
    color: #666;
    font-size: 0.75rem;
    margin-top: 12px;
    opacity: 0.7;
}

/* Шаги */
.step-card {
    margin-bottom: 32px;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #000;
}

.step-description {
    color: #444;
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.actions-list {
    margin: 16px 0;
}

.actions-list h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.actions-list ul {
    list-style: none;
}

.actions-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #333;
    font-size: 0.9375rem;
}

.actions-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
}

.actions-list a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.actions-list a:hover {
    border-bottom: 1px solid #0066cc;
}

/* Уведомления */
.note,
.warning {
    padding: 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    margin: 16px 0;
    line-height: 1.4;
}

.note {
    background: #f0f7ff;
    color: #0052cc;
    border-left: 3px solid #0052cc;
}

.warning {
    background: #fff8e6;
    color: #b35c00;
    border-left: 3px solid #ff9900;
}

/* Калькулятор */
.calculator-section {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 32px;
    margin: 40px 0;
}

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

.calculator-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.calculator-header p {
    color: #666;
    font-size: 0.875rem;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.input-with-slider {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-with-slider input[type="range"] {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.input-with-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.slider-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-value input[type="number"] {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9375rem;
    background: white;
    text-align: center;
}

.slider-value span {
    font-size: 0.875rem;
    color: #666;
}

.calculate-btn {
    background: #000;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    width: 100%;
}

.calculate-btn:hover {
    background: #333;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-card {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.result-card h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}

.result-label {
    font-size: 0.75rem;
    color: #666;
}

/* Примечания */
.notes-section {
    margin: 40px 0;
}

.notes-section h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #000;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.note-item {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 16px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.note-number {
    font-weight: 600;
    color: #000;
    margin-right: 4px;
}

/* Заключение */
.conclusion {
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 8px;
    padding: 24px;
    margin: 40px 0;
    text-align: center;
    font-size: 0.9375rem;
    color: #0052cc;
}

/* Футер */
footer {
    border-top: 1px solid #eaeaea;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.footer-section a {
    color: #0066cc;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #eaeaea;
    font-size: 0.75rem;
    color: #666;
}

.server-status {
    margin-top: 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    header {
        padding: 32px 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    .calculator-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .notes-grid {
        grid-template-columns: 1fr;
    }

    .calculator-section {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .step-header {
        align-items: flex-start;
    }

    .step-title {
        font-size: 1rem;
    }

    .calculator-section {
        padding: 20px;
    }

    .result-value {
        font-size: 1.25rem;
    }
}

/* Fallback для виджета */
.widget-fallback {
    padding: 40px 20px;
    text-align: center;
}

.widget-fallback h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

.widget-fallback p {
    color: #666;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.fallback-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    padding: 16px 20px;
    min-width: 100px;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}