﻿:root {
    --color-primary: #c0004a;
    --color-primary-dark: #9e003d;
    --color-accent: #abce37;
    --color-primary-soft: #f9e8ef;
    --color-bg: #efeff4;
    --color-card: #ffffff;
    --color-text: #000000;
    --color-text-secondary: #8e8e93;
    --color-border: #c6c6c8;
    --radius: 12px;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
}

#app {
    min-height: 100vh;
    padding-bottom: 80px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-bottom: 0.5px solid var(--color-border);
}

.close-btn, .menu-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 17px;
    padding: 8px;
    cursor: pointer;
}

.header-title {
    text-align: center;
    flex: 1;
}

.title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.subtitle {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-bottom: 0.5px solid var(--color-border);
}

.brand-logo {
    width: 58px;
    height: 46px;
    object-fit: cover;
    object-position: left top;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 5px 14px rgba(192, 0, 74, 0.2);
}

.brand-copy {
    min-width: 0;
    flex: 1;
}

.brand-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

.brand-subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.notification-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.content {
    padding: 16px;
}

.welcome-card {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ea 100%);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.branded-welcome {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, var(--color-primary-soft) 100%);
    border: 1px solid rgba(192, 0, 74, 0.08);
}

.welcome-mark {
    position: absolute;
    right: 18px;
    top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 12px);
    gap: 5px;
    transform: rotate(-45deg);
    opacity: 0.95;
}

.welcome-mark span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
}

.welcome-mark span:last-child {
    background: var(--color-accent);
}

.greeting {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.next-step {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.action-card {
    background: var(--color-primary);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.action-card.pink {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 12px 28px rgba(192, 0, 74, 0.24);
}

.action-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.action-content p {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 16px 0;
    opacity: 0.95;
}

.btn-white {
    background: white;
    color: var(--color-primary);
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-white:active {
    transform: scale(0.98);
}

.character-img {
    width: 120px;
    height: 120px;
    margin-left: 16px;
    flex-shrink: 0;
}

.progress-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

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

.section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.progress-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.progress-badge {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: #f5f5f7;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    transition: width 0.3s;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
}

.step.active, .step.completed {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step.completed .step-number {
    background: #34C759;
    color: white;
}

.step.active .step-number {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.step-info {
    flex: 1;
}

.step-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
}

.step-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.link-red {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    display: inline-block;
}

.section-header {
    margin: 24px 0 12px 0;
}

.section-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.section-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.info-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s;
}

.info-card:active {
    transform: scale(0.98);
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

.arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--color-text-secondary);
    font-size: 20px;
}

.menu-list {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 0.5px solid var(--color-border);
    cursor: pointer;
    transition: background 0.1s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: #f5f5f7;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.menu-content {
    flex: 1;
}

.menu-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
}

.menu-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: white;
    border-top: 0.5px solid var(--color-border);
    padding-bottom: env(safe-area-inset-bottom);
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
}

.tab.active {
    color: var(--color-primary);
}

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

.tab-label {
    font-size: 10px;
    font-weight: 500;
}

.profile-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.profile-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.profile-username {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--color-border);
    font-size: 17px;
}

.profile-row:last-of-type {
    border-bottom: none;
}

.profile-value {
    font-weight: 600;
    text-align: right;
}

.profile-subtext {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: -8px;
    margin-bottom: 12px;
}

.balance-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.balance {
    font-size: 34px;
    font-weight: 700;
    margin: 8px 0;
}

.balance-info {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin: 0;
}

.readiness-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.readiness-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 12px 0;
}

.readiness-card p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin: 0 0 16px 0;
}

.btn-red {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.1s;
}

.btn-red:active {
    transform: scale(0.98);
}

.quality-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.quality-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 17px;
}

.quality-bar {
    color: var(--color-text-secondary);
}

.demo-notice {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.demo-notice h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 12px 0;
}

.demo-notice p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.demo-notice p:last-child {
    margin-bottom: 0;
}

.simulator-header {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.simulator-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0 12px 0;
    line-height: 1.2;
}

.simulator-header p {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 60%;
}

.truck-img {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 80px;
}

.search-box {
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: white;
    font-size: 17px;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--color-text-secondary);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-tab {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tab.active {
    background: var(--color-primary);
    color: white;
}

.shipments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipment-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.shipment-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.shipment-info {
    flex: 1;
}

.shipment-id {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.shipment-route {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.shipment-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.shipment-status.status-в-пути {
    background: #E3F2FD;
    color: #1976D2;
}

.shipment-status.status-на-терминале {
    background: #FFF3E0;
    color: #F57C00;
}

.shipment-status.status-ожидает-уточнения {
    background: #FFF9C4;
    color: #F57F17;
}

.shipment-status.status-готово-к-выдаче {
    background: #E8F5E9;
    color: #388E3C;
}

.chats-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 24px;
    margin-bottom: 16px;
    text-align: center;
}

.chats-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.chats-card p {
    font-size: 17px;
    color: var(--color-text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.robot-img {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    display: block;
}

.info-card-block {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.info-card-block h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.info-card-block p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Test Screens */
.test-container {
    padding-bottom: 100px;
}

.test-header-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.test-number {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.test-header-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.test-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: 0 0 16px 0;
}

.test-info {
    display: flex;
    gap: 16px;
    font-size: 15px;
}

.test-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
}

.test-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.test-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s;
    border: 2px solid transparent;
}

.test-card:active {
    transform: scale(0.98);
}

.test-card.completed {
    border-color: #34C759;
}

.test-card.in-progress {
    border-color: var(--color-primary);
}

.test-card-content {
    flex: 1;
}

.test-card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.test-card-meta {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.test-card-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.test-card-status.completed {
    background: #E8F5E9;
    color: #388E3C;
}

.test-card-status.in-progress {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.test-card-status.not-started {
    background: #f5f5f7;
    color: var(--color-text-secondary);
}

.test-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.test-card.completed .test-card-icon {
    background: #E8F5E9;
}

.question-container {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.question-number {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    background: #ebebed;
}

.option-btn.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.option-btn:active {
    transform: scale(0.98);
}

.test-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 0.5px solid var(--color-border);
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.progress-text {
    color: var(--color-text-secondary);
}

.timer {
    font-weight: 600;
    color: var(--color-text);
}

.mini-progress-bar {
    height: 4px;
    background: #f5f5f7;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.mini-progress-fill {
    height: 100%;
    background: var(--color-primary);
    transition: width 0.3s;
}

.test-nav-buttons {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    flex: 1;
    background: #f5f5f7;
    color: var(--color-text);
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    flex: 2;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.test-result-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 24px;
    margin-bottom: 16px;
    text-align: center;
}

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.result-icon.success {
    background: #E8F5E9;
}

.result-icon.fail {
    background: #FFEBEE;
}

.result-score {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.result-score.success {
    color: #388E3C;
}

.result-score.fail {
    color: #D32F2F;
}

.result-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.result-desc {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin: 0 0 24px 0;
}

.survey-form {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 17px;
    font-family: inherit;
    background: white;
}

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

.form-input::placeholder {
    color: var(--color-text-secondary);
}

.survey-submit-btn {
    width: 100%;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
}

.survey-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
