:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --bg: #0f0f1a;
    --surface: #1a1a2e;
    --surface-light: #252542;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--surface);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Navigation */
.nav-tabs {
    display: flex;
    background: var(--surface);
    padding: 4px;
    gap: 4px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-tab.active {
    background: var(--surface-light);
    color: var(--text);
}

.nav-tab:active {
    transform: scale(0.98);
}

.tab-icon {
    font-size: 16px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Services Grid */
.services-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.service-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:active {
    transform: scale(0.99);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.service-icon {
    font-size: 40px;
}

.service-badge {
    background: var(--surface-light);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-badge.hot {
    background: var(--gradient-3);
    color: white;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feature {
    background: var(--surface-light);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.service-price {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-order {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-order:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Consultation CTA */
.consult-cta {
    background: var(--gradient-2);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}

.consult-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.consult-icon {
    font-size: 40px;
}

.consult-text h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.consult-text p {
    font-size: 14px;
    opacity: 0.9;
}

.btn-consult {
    width: 100%;
    background: white;
    color: var(--bg);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-consult:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Calculator */
.calc-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border);
}

.calc-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.calc-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--surface-light);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-option.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.calc-option:active {
    transform: scale(0.95);
}

.option-icon {
    font-size: 24px;
}

.option-text {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.option-price {
    font-size: 11px;
    color: var(--text-muted);
}

/* Checkboxes */
.calc-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-checkbox:active {
    transform: scale(0.99);
}

.calc-checkbox input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.calc-checkbox input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.calc-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.checkbox-name {
    font-size: 14px;
    font-weight: 600;
}

.checkbox-price {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
}

/* Total */
.calc-total {
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid var(--primary);
    text-align: center;
}

.total-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.total-price {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.total-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btn-calc-order {
    width: 100%;
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-calc-order:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    width: 100%;
    max-width: 480px;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: var(--surface-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:active {
    background: var(--primary);
    transform: scale(0.9);
}

.modal-body {
    padding: 20px;
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-summary {
    background: var(--surface-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.btn-submit {
    width: 100%;
    background: var(--gradient-2);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}