/* static/css/style.css */
:root {
    --of-primary: #6366f1;
    --of-primary-hover: #4f46e5;
    --of-dark: #0f172a;
    --of-gray: #475569;
    --of-bg: #f8fafc;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--of-dark);
    background-color: var(--of-bg);
}

/* Стили для кода */
pre.code-block {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

code {
    font-family: 'Fira Code', Consolas, monospace;
}

/* Элементы инструкции */
.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--of-primary);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-title {
    margin: 0;
    font-weight: 700;
    color: var(--of-dark);
}

.info-box {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    color: #1e3a8a;
}

.warning-box {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    color: #92400e;
}

/* Стили для скриншотов */
.guide-img {
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.highlight-text {
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    color: #dc2626;
}

/* Премиум-блок для предложения "Под ключ" */
.premium-block {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.premium-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.premium-block h2 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.premium-block p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
}

.premium-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.premium-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.premium-feature-card h4 {
    color: #818cf8;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-feature-card p {
    font-size: 0.95rem;
    margin: 0;
    color: #94a3b8;
}

.divider-text {
    text-align: center;
    position: relative;
    margin: 3rem 0;
}

.divider-text::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 2px dashed #cbd5e1;
    z-index: -1;
}

.divider-text span {
    background: var(--of-bg);
    padding: 0 20px;
    color: var(--of-gray);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (ЛЕНДИНГА) --- */

.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.feature-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--of-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.integration-split {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.integration-col {
    padding: 3rem;
}

.integration-col-gray {
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
}

.accordion-button:not(.collapsed) {
    background-color: #eff6ff;
    color: var(--of-primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* --- Стили для интерактивного калькулятора --- */
.calculator-box {
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 20px; 
    padding: 2rem; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}
.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #334155;
    outline: none;
    margin: 1.5rem 0;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
    transition: transform 0.1s;
}
.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.calc-value-box {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid #6366f1;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.calc-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-top: 0.5rem;
}

.contact-box {
    background: linear-gradient(135deg, var(--of-primary) 0%, #312e81 100%);
    border-radius: 16px;
    padding: 50px 30px;
    color: white;
    text-align: center;
}
