/* --- Специфичные стили для CalcSpace Studio Order --- */

/* Шапка страницы */
.page-header { margin-bottom: 48px; max-width: 800px; }
.breadcrumbs {
    display: flex; align-items: center; gap: 8px; font-size: 14px;
    color: var(--text-secondary); margin-bottom: 16px;
}
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--text-primary); }
.sep { opacity: 0.5; }

.page-header h1 {
    font-size: 40px; font-weight: 800; margin-bottom: 16px;
    letter-spacing: -0.03em; line-height: 1.1; color: var(--text-primary);
}
.page-header .subtitle { font-size: 18px; color: var(--text-secondary); line-height: 1.6; }

/* Центровка */
.center-text { text-align: center; margin: 0 auto 48px auto; }
.justify-center { justify-content: center; }

/* Основная сетка */
.order-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1.5fr 1fr; gap: 60px; } }

.calc-section { display: flex; flex-direction: column; gap: 32px; }

/* --- КАЛЬКУЛЯТОР --- */
.price-calculator { padding: 32px; }

.calc-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #E5E7EB;
}

/* FIX: Блок с верхней ценой */
.live-price {
    display: flex; 
    align-items: baseline; 
    white-space: nowrap; /* Запрещаем перенос (~ отдельно от цифр) */
    flex-shrink: 0;      /* Запрещаем сжатие блока */
}

.price-label { font-size: 14px; color: var(--text-secondary); margin-right: 8px; }
.price-value { font-size: 28px; font-weight: 800; color: var(--accent-blue); }

.form-group { margin-bottom: 24px; }
.group-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 12px; }

.label-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.range-val { font-weight: 700; color: var(--accent-blue); }
.range-wrapper { padding: 0 4px; }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%;
    background: var(--accent-blue); cursor: pointer; margin-top: -10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); border: 2px solid #fff;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px; cursor: pointer; background: #E5E7EB; border-radius: 2px;
}
.range-steps {
    display: flex; justify-content: space-between; margin-top: 12px;
    font-size: 11px; color: var(--text-secondary);
}

.segment-control { display: flex; background: #F3F4F6; padding: 4px; border-radius: 12px; gap: 4px; }
.segment-item { flex: 1; cursor: pointer; position: relative; }
.segment-item input { display: none; }
.segment-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 12px 4px; border-radius: 8px;
    transition: all 0.2s; height: 100%;
}
.segment-box span { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.segment-box small { font-size: 10px; color: var(--text-secondary); }
.segment-item input:checked + .segment-box {
    background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.05); color: var(--accent-blue);
}

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { cursor: pointer; position: relative; }
.radio-card input { display: none; }
.card-inner {
    border: 1px solid #E5E7EB; border-radius: 12px; padding: 16px;
    display: flex; flex-direction: column; transition: all 0.2s; background: #fff; height: 100%;
}
.card-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.card-sub { font-size: 11px; color: var(--text-secondary); }
.radio-card input:checked + .card-inner {
    border-color: var(--accent-blue); background: #EFF6FF; box-shadow: 0 0 0 1px var(--accent-blue);
}

.checkbox-button { cursor: pointer; display: block; }
.checkbox-button input { display: none; }
.check-content {
    display: flex; align-items: center; gap: 16px; border: 1px solid #E5E7EB; padding: 16px; border-radius: 12px; transition: all 0.2s; background: #fff;
}
.check-icon {
    width: 40px; height: 40px; border-radius: 8px; background: #F3F4F6; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.2s; flex-shrink: 0;
}
.check-text { flex-grow: 1; display: flex; flex-direction: column; }
.check-text strong { font-size: 14px; }
.check-text span { font-size: 12px; color: var(--text-secondary); }

/* FIX: Цена в чекбоксе (запрет переноса) */
.check-price {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap; /* Весь текст в одну строку */
    flex-shrink: 0;      /* Запрещаем сжатие */
    margin-left: 8px;
}

.checkbox-button input:checked + .check-content { border-color: var(--accent-blue); background: #EFF6FF; box-shadow: 0 0 0 1px var(--accent-blue); }
.checkbox-button input:checked + .check-content .check-icon { background: var(--accent-blue); color: #fff; }
.checkbox-button input:checked + .check-content .check-price { color: var(--accent-blue); }

/* --- Tech Benefits --- */
.tech-benefits { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .tech-benefits { grid-template-columns: 1fr 1fr; } }
.tech-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 20px; display: flex; align-items: flex-start; gap: 16px; transition: all 0.2s;
}
.tech-icon {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.icon-flash { background: #FEF3C7; color: #D97706; }
.icon-mobile { background: #EFF6FF; color: #2563EB; }
.icon-seo { background: #ECFDF5; color: #059669; }
.icon-cms { background: #F3E8FF; color: #7C3AED; }
.tech-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tech-info p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* --- Сайдбар Контактов --- */
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }
.contact-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 24px;
    padding: 32px; box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}
.contact-header { margin-bottom: 24px; text-align: center; }
.contact-header h2 { font-size: 22px; margin-bottom: 8px; color: var(--text-primary); }
.contact-header p { font-size: 14px; color: var(--text-secondary); }

.contact-option {
    display: flex; align-items: center; gap: 16px; padding: 16px;
    border-radius: 16px; text-decoration: none; transition: all 0.2s;
    border: 2px solid transparent; position: relative; overflow: hidden; margin-bottom: 12px;
}
.option-icon {
    width: 48px; height: 48px; border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    flex-shrink: 0;
    line-height: 1;
}
.option-icon svg { display: block; }

.option-info { flex-grow: 1; display: flex; flex-direction: column; }
.option-title { font-weight: 700; font-size: 16px; }
.option-arrow { font-weight: 600; font-size: 18px; opacity: 0; transform: translateX(-10px); transition: all 0.2s; }
.contact-option:hover .option-arrow { opacity: 1; transform: translateX(0); }

.contact-option.telegram { background: #229ED9; color: #fff; box-shadow: 0 8px 16px rgba(34, 158, 217, 0.2); }
.contact-option.telegram .option-icon { background: rgba(255,255,255,0.2); }
.contact-option.telegram:hover { background: #1A8LB8; transform: translateY(-2px); }

.contact-option.email { background: #F3F4F6; color: var(--text-primary); }
.contact-option.email .option-icon { background: #fff; color: var(--text-secondary); }
.contact-option.email:hover { background: #fff; border-color: #E5E7EB; box-shadow: 0 4px 20px rgba(0,0,0,0.03); transform: translateY(-2px); }

/* --- САЙДБАР: ФОРМА --- */
.sidebar-divider {
    text-align: center; margin: 24px 0 16px; position: relative;
}
.sidebar-divider span {
    font-size: 12px; color: var(--text-secondary); background: #fff; padding: 0 10px; position: relative; z-index: 1;
}
.sidebar-divider::before {
    content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #E5E7EB;
}

.sidebar-form { display: flex; flex-direction: column; gap: 10px; }
.sidebar-input {
    padding: 12px 14px; border: 1px solid #E5E7EB; border-radius: 10px;
    font-family: inherit; font-size: 14px; outline: none; background: #F9FAFB;
    width: 100%; box-sizing: border-box; transition: all 0.2s;
}
.sidebar-input:focus { border-color: var(--accent-blue); background: #fff; }
.sidebar-submit { margin-top: 4px; }

.sidebar-success {
    text-align: center; background: #ECFDF5; color: #065F46; 
    padding: 20px; border-radius: 12px; font-size: 14px;
}

/* Адаптив */
@media (max-width: 600px) {
    .order-grid { grid-template-columns: 1fr; }
    .tech-benefits { grid-template-columns: 1fr; }
    
    /* FIX: Уменьшаем внутренние отступы, чтобы контенту было свободнее */
    .price-calculator, .contact-card { padding: 20px; }
    .check-content { padding: 12px; gap: 12px; }
}