/* ==========================================================================
   АСК СИПДОМ (asksip.ru) — Интерактивный бриф и расчет стоимости
   Фирменные цвета: Оранжевый (#f07b00), Графит (#1e2329), Белый (#ffffff)
   Mobile-First адаптация: 360px - 430px (iPhone / Android) и Desktop
   ========================================================================== */

:root {
    --primary-orange: #f07b00;
    --primary-orange-hover: #d96f00;
    --primary-orange-light: #fff5eb;
    --primary-orange-border: #fbd6a6;
    
    --graphite-dark: #1e2329;
    --graphite-medium: #2d333b;
    --graphite-light: #444c56;
    
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-focus: #f07b00;
    
    --text-primary: #1e2329;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --success-green: #10b981;
    --success-bg: #ecfdf5;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-orange: 0 4px 14px 0 rgba(240, 123, 0, 0.35);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--graphite-dark);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.phone-link {
    color: var(--graphite-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--primary-orange);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    transition: var(--transition);
}

.social-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.social-icon:hover {
    background: var(--primary-orange-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.progress-wrapper {
    margin-top: 20px;
    margin-bottom: 24px;
}

.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.step-badge {
    background: var(--graphite-dark);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.section-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f07b00 0%, #ff9e3b 100%);
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* ==========================================================================
   QUIZ LAYOUT: MAIN + SIDEBAR
   ========================================================================== */

.quiz-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
    margin-bottom: 40px;
}

.quiz-main-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.question-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.q-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--graphite-dark);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.q-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   QUESTION BODY ELEMENTS & CARDS
   ========================================================================== */

.question-body {
    min-height: 240px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.quiz-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.quiz-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quiz-card.selected {
    border-color: var(--primary-orange);
    background-color: #fffaf5;
    box-shadow: 0 0 0 1px var(--primary-orange), var(--shadow-md);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    background: #f1f5f9;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.quiz-card:hover .card-img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(30, 35, 41, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: transparent;
    transition: var(--transition);
}

.quiz-card.selected .card-check-icon {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #ffffff;
}

.card-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--graphite-dark);
    margin-bottom: 4px;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    flex-grow: 1;
}

.card-pros {
    background: #f8fafc;
    border-left: 3px solid var(--primary-orange);
    padding: 6px 8px;
    font-size: 0.75rem;
    color: #334155;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 4px;
}

.card-price-badge {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-orange);
}

/* Multi-Choice Tip Alert */
.multi-choice-tip {
    background: var(--success-bg);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #065f46;
    font-weight: 600;
}

/* Range Slider Layout (Step 1) */
.range-step-container {
    padding: 12px 0 24px;
}

.range-display-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    background: #fffaf5;
    border: 2px solid var(--primary-orange-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.range-number-input {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--graphite-dark);
    width: 140px;
    text-align: right;
    border: none;
    background: transparent;
    outline: none;
}

.range-unit {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.range-slider-wrapper {
    margin-bottom: 28px;
    padding: 0 4px;
}

.custom-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.custom-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.range-minmax-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 6px;
}

/* Popular Preset Range Chips */
.preset-chips-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.preset-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.preset-chip {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.preset-chip:hover {
    border-color: var(--primary-orange);
    background: var(--primary-orange-light);
}

.preset-chip.active {
    background: var(--primary-orange-light);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    font-weight: 700;
}

.preset-chip-label {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Text / Wishes Step */
.wishes-textarea {
    width: 100%;
    min-height: 140px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    resize: vertical;
    transition: var(--transition);
    margin-bottom: 12px;
}

.wishes-textarea:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(240, 123, 0, 0.15);
}

/* Contact Form Step */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--graphite-dark);
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(240, 123, 0, 0.15);
}

.agreements-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary-orange);
}

.checkbox-label a {
    color: var(--primary-orange);
    text-decoration: underline;
}

/* ==========================================================================
   NAVIGATION CONTROLS
   ========================================================================== */

.nav-controls {
    display: flex;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.nav-spacer {
    flex-grow: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-orange);
    color: #ffffff;
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    background: var(--primary-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(240, 123, 0, 0.4);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--graphite-dark);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-reset-subtle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 8px;
}

.btn-reset-subtle:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: #fff5f5;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   AI CONSULTANT WIDGET
   ========================================================================== */

.ai-widget {
    margin-top: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ai-avatar {
    font-size: 1.6rem;
    background: #ffffff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.ai-info {
    display: flex;
    flex-direction: column;
}

.ai-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--graphite-dark);
}

.ai-status {
    font-size: 0.75rem;
    color: var(--success-green);
    font-weight: 600;
}

.ai-body {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 14px;
    background: #ffffff;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-orange);
}

.ai-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ai-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--graphite-dark);
    cursor: pointer;
    transition: var(--transition);
}

.ai-chip:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background: var(--primary-orange-light);
}

.ai-input-row {
    display: flex;
    gap: 8px;
}

.ai-input {
    flex-grow: 1;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.ai-input:focus {
    border-color: var(--primary-orange);
}

.btn-ai-send {
    height: 42px;
    padding: 0 18px;
    background: var(--graphite-dark);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-ai-send:hover {
    background: #000000;
}

/* ==========================================================================
   SIDEBAR: REALTIME ESTIMATE TICKET
   ========================================================================== */

.quiz-sidebar {
    position: relative;
}

.sticky-estimate-card {
    position: sticky;
    top: 80px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.estimate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ticket-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.live-pulse {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success-green);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.estimate-price-box {
    background: #fffaf5;
    border: 1px solid var(--primary-orange-border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.price-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.price-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-orange);
    letter-spacing: -0.02em;
}

.price-sqm {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 2px;
}

.estimate-spec-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.s-label {
    color: var(--text-secondary);
}

.s-val {
    font-weight: 700;
    color: var(--graphite-dark);
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.estimate-stages-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.stage-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 4px;
}

.stage-mini-title {
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
}

.stage-mini-price {
    font-weight: 700;
    color: var(--graphite-dark);
}

.sidebar-help-box {
    text-align: center;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 12px;
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.btn-call-sidebar {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--graphite-dark);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-call-sidebar:hover {
    background: #000000;
}

/* ==========================================================================
   SUCCESS MODAL
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-window {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: #fffaf5;
    border-bottom: 1px solid var(--primary-orange-border);
    padding: 24px;
    text-align: center;
}

.modal-icon {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--graphite-dark);
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-body {
    padding: 24px;
}

.success-ticket {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.st-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.highlight-orange {
    color: var(--primary-orange);
    font-size: 1.15rem;
}

.modal-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: center;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: 40px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-col a {
    color: var(--primary-orange);
    text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile 360px - 768px)
   ========================================================================== */

@media (max-width: 900px) {
    .quiz-layout {
        grid-template-columns: 1fr;
    }

    .quiz-sidebar {
        order: 2;
    }

    .sticky-estimate-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-contacts {
        width: 100%;
        justify-content: space-between;
    }

    .phone-group {
        align-items: flex-start;
    }

    .quiz-main-card {
        padding: 18px 14px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-img-wrapper {
        height: 160px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .ai-input-row {
        flex-direction: column;
    }

    .btn-ai-send {
        width: 100%;
        min-height: 44px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==========================================================================
   PASSPORT SCREEN STYLES (Production Grade)
   ========================================================================== */

.passport-screen {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 32px 28px;
    margin-bottom: 30px;
    animation: fadeIn 0.3s ease;
}

@media (max-width: 640px) {
    .passport-screen {
        padding: 20px 14px;
        border-radius: var(--radius-md);
    }
}

.passport-badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.passport-seal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.passport-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

@media (max-width: 640px) {
    .passport-title {
        font-size: 20px;
    }
}

.passport-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* HERO MOODBOARD */
.passport-hero {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    background: #000;
}

.passport-hero-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

@media (max-width: 640px) {
    .passport-hero-img {
        height: 200px;
    }
}

.passport-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 18, 22, 0.92) 15%, transparent 100%);
    padding: 20px 24px;
    color: #fff;
}

@media (max-width: 640px) {
    .passport-hero-overlay {
        padding: 14px 16px;
    }
}

.passport-hero-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-orange);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.passport-hero-name {
    font-size: 22px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .passport-hero-name {
        font-size: 18px;
    }
}

/* SPECS GRID */
.passport-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.p-spec-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.p-spec-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.p-spec-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 3px;
}

/* DOWNLOAD PORTAL */
.passport-download-portal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 720px) {
    .passport-download-portal {
        grid-template-columns: 1fr;
    }
}

.dl-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.dl-card:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-md);
}

.dl-card-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--primary-orange-light);
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.dl-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.dl-card-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 16px;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action-pdf {
    background: var(--primary-orange);
    color: #ffffff;
}

.btn-action-pdf:hover {
    background: var(--primary-orange-hover);
}

.btn-action-web {
    background: var(--graphite-dark);
    color: #ffffff;
}

.btn-action-web:hover {
    background: #000000;
}

/* RE-RUN & CONTACT BAR */
.passport-bottom-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-reset-survey {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 25px;
    border: 1.5px dashed var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-survey:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: #fff5f5;
}

.btn-contact-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 25px;
    border: 1px solid var(--primary-orange);
    background: var(--primary-orange-light);
    color: var(--primary-orange);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-contact-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 25px;
    background: #f0fdf4;
    border: 1px solid #10b981;
    color: #065f46;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.wishes-textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: var(--transition);
}

.wishes-textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(240, 123, 0, 0.15);
}


/* ==========================================================================
   FLAGSHIP PORTAL STYLES (2026 EDITION)
   ========================================================================== */

/* Top Announcement Bar */
.top-announcement-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.top-bar-link:hover {
    color: #ff9e3b;
    text-decoration: underline;
}

.bar-separator {
    color: #334155;
}

.top-bar-geo {
    color: #cbd5e1;
}

/* Sticky Header Enhancements */
.sticky-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--graphite-dark);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary-orange);
    background: var(--primary-orange-light);
}

.nav-item-highlight {
    color: var(--primary-orange);
    background: var(--primary-orange-light);
}

.highlight-star {
    font-size: 0.8rem;
    color: var(--primary-orange);
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-header-cta {
    background: linear-gradient(135deg, #f07b00 0%, #ff8c1a 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(240, 123, 0, 0.25);
    transition: var(--transition);
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(240, 123, 0, 0.35);
}

.mobile-burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-burger-btn span {
    width: 100%;
    height: 2.5px;
    background-color: var(--graphite-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Drawer */
.mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--primary-orange);
    padding: 20px 16px;
    z-index: 999;
}

.mobile-menu-drawer.active {
    display: block;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.mob-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--graphite-dark);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
}

.mob-link-accent {
    background: var(--primary-orange-light);
    color: var(--primary-orange);
    border-left: 4px solid var(--primary-orange);
}

/* HERO SECTION */
.hero-section {
    padding: 60px 0 50px;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--graphite-dark);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-orange);
}

.hero-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.18;
    color: #0f172a;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #f07b00 0%, #ff8c1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.12rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f07b00 0%, #ff8c1a 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(240, 123, 0, 0.35);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(240, 123, 0, 0.45);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--graphite-dark);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid #cbd5e1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.metric-card {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.metric-unit {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-orange);
}

.metric-label {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.3;
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    border: 4px solid #ffffff;
}

.hero-main-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.hero-glass-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tag-top {
    top: 20px;
    left: 20px;
}

.tag-bottom {
    bottom: 20px;
    right: 20px;
}

.tag-icon {
    font-size: 1.5rem;
}

.tag-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

.tag-text span {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* SECTION HEADERS (COMMON) */
.section-header {
    margin-bottom: 40px;
}

.section-tag-badge {
    display: inline-block;
    background: var(--primary-orange-light);
    color: var(--primary-orange);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.section-heading {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-subheading {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CALCULATOR SECTION */
.calculator-section {
    padding: 70px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* CATALOG SECTION */
.section-catalog {
    padding: 80px 0;
    background: #f8fafc;
}

.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.filter-tab {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.filter-tab.active {
    background: var(--graphite-dark);
    color: #ffffff;
    border-color: var(--graphite-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.project-img-box {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.06);
}

.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.project-badge.badge-accent {
    background: var(--primary-orange);
}

.project-badge.badge-gold {
    background: #d97706;
}

.project-floors-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--graphite-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.project-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.project-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.project-area {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.project-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 14px;
    flex-grow: 1;
}

.project-specs-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.spec-chip {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.project-pricing-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-tier {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #64748b;
}

.price-tier.highlight-tier {
    font-size: 0.9rem;
    color: #0f172a;
    border-top: 1px dashed #cbd5e1;
    padding-top: 4px;
    margin-top: 2px;
}

.price-tier.highlight-tier strong {
    color: var(--primary-orange);
}

.project-actions {
    margin-top: auto;
}

.btn-project-calc {
    width: 100%;
    background: linear-gradient(135deg, #f07b00 0%, #ff8c1a 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(240, 123, 0, 0.25);
    transition: var(--transition);
}

.btn-project-calc:hover {
    box-shadow: 0 6px 18px rgba(240, 123, 0, 0.35);
    transform: translateY(-2px);
}

/* TECHNOLOGIES SECTION */
.section-technologies {
    padding: 80px 0;
    background: #ffffff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tech-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.tech-card-featured {
    border: 2px solid var(--primary-orange);
    box-shadow: 0 8px 24px rgba(240, 123, 0, 0.15);
}

.tech-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.tech-icon {
    font-size: 2rem;
}

.tech-badge {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

.tech-card-featured .tech-badge {
    background: var(--primary-orange);
    color: #ffffff;
}

.tech-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.tech-lead {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 18px;
}

.tech-image-preview {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.tech-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tech-features-list li {
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.tech-features-list li span {
    color: #10b981;
    font-weight: 700;
}

.tech-cost-badge {
    background: #f8fafc;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
}

/* ADVANTAGES SECTION */
.section-advantages {
    padding: 80px 0;
    background: #0f172a;
    color: #ffffff;
}

.section-advantages .section-heading {
    color: #ffffff;
}

.section-advantages .section-subheading {
    color: #94a3b8;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.adv-card {
    background: linear-gradient(145deg, rgba(23, 27, 33, 0.85) 0%, rgba(15, 18, 22, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.adv-card:hover {
    background: linear-gradient(145deg, rgba(28, 33, 41, 0.95) 0%, rgba(18, 22, 28, 1) 100%);
    border-color: rgba(255, 107, 0, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 107, 0, 0.15);
}

.adv-card:hover::before {
    opacity: 1;
}

.adv-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.adv-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff7a18;
    transition: all 0.3s ease;
}

.adv-card:hover .adv-icon-box {
    background: var(--primary-orange);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(255, 107, 0, 0.4);
}

.adv-num {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.adv-card:hover .adv-num {
    color: #ff7a18;
}

.adv-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.35;
}

.adv-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* PRICING SECTION */
.section-pricing {
    padding: 80px 0;
    background: #f8fafc;
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-card-featured {
    border: 2px solid var(--primary-orange);
    box-shadow: 0 12px 32px rgba(240, 123, 0, 0.18);
    transform: scale(1.02);
}

.pricing-card-featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.featured-ribbon {
    background: var(--primary-orange);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    padding: 6px;
    letter-spacing: 0.05em;
}

.pricing-card-header {
    padding: 28px 24px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.pack-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pricing-card-featured .pack-badge {
    background: var(--primary-orange-light);
    color: var(--primary-orange);
}

.pack-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.pack-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
}

.pricing-card-featured .pack-price {
    color: var(--primary-orange);
}

.p-from {
    font-size: 1.1rem;
    font-weight: 500;
    color: #64748b;
}

.p-curr {
    font-size: 1.05rem;
    font-weight: 600;
    color: #64748b;
}

.pack-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pack-summary {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 20px;
}

.pack-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    flex-grow: 1;
}

.pack-checklist li {
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.pack-checklist li span {
    color: #10b981;
    font-weight: 700;
}

.btn-pack-outline {
    display: block;
    text-align: center;
    background: transparent;
    border: 2px solid #cbd5e1;
    color: var(--graphite-dark);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.btn-pack-outline:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background: var(--primary-orange-light);
}

/* TIMELINE STAGES */
.section-stages {
    padding: 80px 0;
    background: #ffffff;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.timeline-step {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.timeline-step:hover {
    background: #ffffff;
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 14px;
    flex-grow: 1;
}

.step-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    background: #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

/* PORTFOLIO SECTION */
.section-portfolio {
    padding: 80px 0;
    background: #f8fafc;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.port-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.port-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.port-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.port-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.port-geo {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 4px;
}

.port-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.port-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}

/* CONTACTS SECTION */
.section-contacts {
    padding: 80px 0;
    background: #0f172a;
    color: #ffffff;
}

.contacts-wrapper-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contacts-left-info .contacts-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 14px;
}

.contacts-subtext {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.c-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.c-icon {
    font-size: 1.5rem;
}

.c-text strong {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.c-text span, .c-phone, .c-mail {
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.c-phone:hover, .c-mail:hover {
    color: var(--primary-orange);
}

.contacts-socials-row {
    display: flex;
    gap: 14px;
}

.btn-vk, .btn-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
}

.btn-vk { background: #0077ff; }
.btn-tg { background: #229ed9; }

/* FAST LEAD CARD */
.fast-lead-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    color: var(--graphite-dark);
}

.lead-form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.lead-form-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 24px;
}

.lead-form .form-group {
    margin-bottom: 16px;
}

.lead-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(240, 123, 0, 0.2);
}

.btn-full-width {
    width: 100%;
    display: block;
    text-align: center;
}

.form-privacy-note {
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 10px;
    line-height: 1.3;
}

/* FOOTER */
.site-footer {
    background: #090d16;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 0 30px;
    color: #94a3b8;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 16px 0;
    max-width: 380px;
}

.footer-copy {
    font-size: 0.8rem;
    color: #64748b;
}

.footer-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links, .footer-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a, .footer-contacts a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover, .footer-contacts a:hover {
    color: var(--primary-orange);
}

.footer-contacts li {
    font-size: 0.88rem;
    color: #cbd5e1;
}

/* MOBILE STICKY BAR */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 14px;
    z-index: 1000;
    gap: 10px;
}

.mob-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.mob-bar-call {
    background: #334155;
    color: #ffffff;
    flex: 1;
}

.mob-bar-calc {
    background: linear-gradient(135deg, #f07b00 0%, #ff8c1a 100%);
    color: #ffffff;
    flex: 2;
}

.mob-bar-tg {
    background: #229ed9;
    color: #ffffff;
    flex: 1;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (DESKTOP TO MOBILE)
   ========================================================================== */

@media (max-width: 1100px) {
    .desktop-nav { display: none; }
    .mobile-burger-btn { display: flex; }
    .hero-container { grid-template-columns: 1fr; gap: 30px; }
    .hero-main-img { height: 360px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-cards-grid { grid-template-columns: 1fr; }
    .pricing-card-featured { transform: none; }
    .pricing-card-featured:hover { transform: translateY(-5px); }
    .timeline-grid { grid-template-columns: repeat(3, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .contacts-wrapper-box { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-announcement-bar { display: none; }
    .header-contacts { display: none; }
    .mobile-sticky-bar { display: flex; }
    body { padding-bottom: 60px; }
    
    .hero-title { font-size: 2.1rem; }
    .hero-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: 1fr; }
    .fast-lead-card { padding: 24px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.85rem; }
    .advantages-grid { grid-template-columns: 1fr; }
    .timeline-grid { grid-template-columns: 1fr; }
}


/* Header Polish */
.phone-link {
    white-space: nowrap !important;
}
.desktop-nav {
    gap: 12px !important;
}
.header-container {
    max-width: 1320px !important;
}
.tech-features-list li {
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

/* ==========================================================================
   SMOOTH SCROLLING & HEADER ANCHOR OFFSETS
   ========================================================================== */
html {
    scroll-behavior: smooth !important;
}

section[id],
#calculator,
#projects,
#technologies,
#advantages,
#pricing,
#stages,
#portfolio,
#contacts {
    scroll-margin-top: 85px !important;
}

/* ==========================================================================
   FLOATING AI CONSULTANT WIDGET (SITE-WIDE)
   ========================================================================== */
.floating-ai-widget {
    position: relative;
    z-index: 99990;
}

.floating-ai-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a18 0%, #e05d00 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(255, 122, 24, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99998;
}

.floating-ai-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 122, 24, 0.6);
}

.btn-avatar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.floating-ai-btn .icon-chat-close {
    display: none;
}

.floating-ai-btn.active .icon-chat-bubble {
    display: none;
}

.floating-ai-btn.active .icon-chat-close {
    display: block;
    animation: rotateIn 0.25s ease;
}

@keyframes rotateIn {
    from { transform: rotate(-90deg) scale(0.6); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
}

.online-indicator-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.btn-tooltip-badge {
    position: absolute;
    right: 74px;
    background: #1e2530;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.25s ease;
}

.floating-ai-btn:hover .btn-tooltip-badge {
    opacity: 1;
    transform: translateX(0);
}

/* Floating Chat Panel */
.floating-ai-panel {
    position: fixed;
    bottom: 104px;
    right: 28px;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 125px);
    background: #161a22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 107, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.96);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999;
}

.floating-ai-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.panel-header {
    background: #202632;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 122, 24, 0.18);
    border: 1px solid rgba(255, 122, 24, 0.35);
    color: #ff7a18;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-meta {
    display: flex;
    flex-direction: column;
}

.panel-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
}

.panel-live-pill {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.panel-subtitle {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}

.panel-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.panel-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Chat Messages */
.panel-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #141820;
    scroll-behavior: smooth;
}

.chat-msg {
    display: flex;
    gap: 10px;
    max-width: 90%;
    animation: fadeInMsg 0.25s ease;
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.msg-assistant {
    align-self: flex-start;
}

.chat-msg.msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 122, 24, 0.15);
    color: #ff7a18;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-msg.msg-assistant .msg-content {
    background: #202632;
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border-radius: 14px 14px 14px 4px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.chat-msg.msg-assistant .msg-content p {
    margin: 0 0 6px 0;
}

.chat-msg.msg-assistant .msg-content p:last-child {
    margin-bottom: 0;
}

.chat-msg.msg-assistant .msg-content strong {
    color: #ffffff;
}

.chat-msg.msg-user .msg-content {
    background: linear-gradient(135deg, #ff7a18 0%, #e05d00 100%);
    color: #ffffff;
    border-radius: 14px 14px 4px 14px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 4px 12px rgba(255, 122, 24, 0.3);
}

/* Typing Indicator */
.msg-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px !important;
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff7a18;
    animation: typingBlink 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBlink {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* Chips Bar */
.panel-chips-bar {
    padding: 10px 14px;
    background: #191e27;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.panel-chips-bar::-webkit-scrollbar {
    display: none;
}

.floating-chip {
    background: rgba(255, 122, 24, 0.1);
    border: 1px solid rgba(255, 122, 24, 0.25);
    color: #ff9d47;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.floating-chip:hover {
    background: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-orange);
    transform: translateY(-1px);
}

/* Input Area */
.panel-input-area {
    padding: 12px 14px;
    background: #161a22;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-input-area input {
    flex: 1;
    background: #202632;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.2s ease;
}

.panel-input-area input:focus {
    border-color: var(--primary-orange);
}

.panel-input-area input::placeholder {
    color: #64748b;
}

.panel-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-orange);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.panel-send-btn:hover {
    background: var(--primary-orange-hover);
    transform: scale(1.06);
}

.panel-footer-note {
    font-size: 10.5px;
    color: #64748b;
    text-align: center;
    padding: 4px 14px 8px;
    background: #161a22;
}

/* Mobile Adjustments for Floating Chat */
@media (max-width: 768px) {
    .floating-ai-btn {
        bottom: 74px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
    
    .floating-ai-panel {
        right: 12px;
        bottom: 138px;
        width: calc(100vw - 24px);
        height: calc(100vh - 160px);
        max-height: 520px;
    }
}

/* ==========================================================================
   AI CHAT THREADS & INSTANT FEEDBACK ENHANCEMENTS (2026 UPDATE)
   ========================================================================== */
.ai-thread-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-query-badge-wrap {
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 0.82rem;
    display: flex;
    align-items: baseline;
    gap: 6px;
    border-left: 3px solid #94a3b8;
}

.ai-query-badge-label {
    font-weight: 700;
    color: #334155;
    flex-shrink: 0;
}

.ai-query-badge-text {
    font-style: italic;
    color: #0f172a;
    word-break: break-word;
}

.ai-thinking-state {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.84rem;
    padding: 8px 4px;
}

.ai-thinking-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-orange);
    animation: thinkingPulse 1.2s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes thinkingPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

.ai-answer-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-answer-meta {
    margin-bottom: 4px;
}

.ai-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.ai-type-pill.pill-ai {
    background: rgba(255, 122, 24, 0.12);
    color: #d95a00;
    border: 1px solid rgba(255, 122, 24, 0.25);
}

.ai-type-pill.pill-kb {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.ai-answer-text {
    color: #334155;
    line-height: 1.5;
}

.btn-ai-send.loading,
.floating-ai-send.loading {
    opacity: 0.65;
    pointer-events: none;
    cursor: wait;
}

/* Floating Chat Metadata Badges */
.chat-meta-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    width: fit-content;
}

.chat-meta-badge.ai-badge {
    background: rgba(255, 122, 24, 0.2);
    color: #ff9d54;
    border: 1px solid rgba(255, 122, 24, 0.35);
}

.chat-meta-badge.kb-badge {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

