* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
    color: #0f172a;
    overscroll-behavior: none;
}

button,
input,
textarea,
select {
    font-size: 16px;
}

.hidden {
    display: none !important;
}

.app {
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fbfdff;
    padding: 18px 16px 96px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 32px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden; /* ВАЖНО — обрезает изображение */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f3ff;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ВАЖНО — обрезка без искажения */
}

.blue {
    color: #0C73FE;
}

.screen {
    display: none;
    animation: fadeIn 0.22s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    margin: 0;
    font-size: 36px;
    line-height: 0.95;
    letter-spacing: -1.5px;
    color: #101828;
}

.hero h1 span {
    display: block;
    color: #0C73FE;
}

.hero p {
    margin: 12px 0 18px;
    color: #6b7280;
    font-size: 16px;
}

.search-box {
    height: 56px;
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
    margin-bottom: 22px;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    background: transparent;
}

h2 {
    font-size: 18px;
    margin: 18px 0 12px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-card {
    border: none;
    background: white;
    border-radius: 22px;
    min-height: 112px;
    padding: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:active {
    transform: scale(0.96);
}

.category-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e8f3ff, #ffffff);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: inset 0 0 0 1px #e4efff;
}

.category-card span {
    font-size: 14px;
    color: #1f2937;
}

.how-card {
    margin-top: 18px;
    padding: 16px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.how-card h2 {
    margin-top: 0;
}

.steps {
    display: grid;
    grid-template-columns: 1fr 20px 1fr 20px 1fr;
    align-items: center;
    gap: 4px;
}

.steps div {
    text-align: center;
}

.steps b {
    width: 30px;
    height: 30px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #0C73FE;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.steps span {
    font-size: 12px;
    color: #4b5563;
}

.arrow {
    color: #94a3b8;
    font-size: 22px;
}

.main-button {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #178bff, #0f62fe);
    color: white;
    font-size: 17px;
    font-weight: 700;
    margin: 18px 0;
    box-shadow: 0 14px 30px rgba(15, 98, 254, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.main-button:active {
    transform: scale(0.97);
    box-shadow: 0 8px 20px rgba(15, 98, 254, 0.28);
}

.main-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.services-list,
.plans-list,
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card,
.plan-card,
.order-card {
    border: none;
    background: white;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.service-card:active,
.plan-card:active {
    transform: scale(0.98);
}

.plan-card.selected {
    border: 2px solid #0C73FE;
    background: linear-gradient(135deg, #f7fbff, #eef6ff);
    box-shadow: 0 14px 32px rgba(15, 98, 254, 0.18);
}

.service-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    background: #e8f3ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.service-card-top > div:last-child {
    min-width: 0;
    flex: 1;
}

.service-title {
    font-size: 17px;
    font-weight: 800;
}

.service-description {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

.back-btn {
    border: none;
    background: #eef5ff;
    color: #0C73FE;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
    cursor: pointer;
}

.muted {
    color: #6b7280;
    margin-top: -8px;
    margin-bottom: 18px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

input,
textarea {
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    padding: 16px;
    font-size: 16px;
    outline: none;
    background: white;
}

input:focus,
textarea:focus {
    border-color: #0C73FE;
    box-shadow: 0 0 0 3px rgba(12, 115, 254, 0.12);
}

textarea {
    min-height: 90px;
    resize: none;
}

.summary-card,
.payment-card {
    background: white;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.summary-card div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.summary-card div:last-child {
    border-bottom: none;
}

.summary-card span {
    color: #6b7280;
}

.payment-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-card span {
    color: #6b7280;
    font-size: 13px;
    margin-top: 8px;
}

.payment-card h2 {
    margin: 0;
}

.copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: #f5f9ff;
    border-radius: 16px;
    padding: 12px;
}

.copy-row button {
    border: none;
    background: #0C73FE;
    color: white;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
    cursor: pointer;
}

.info-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #eef8ff;
    color: #31577c;
    font-size: 14px;
}

.receipt-upload-card {
    margin-top: 16px;
    background: white;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.receipt-upload-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.receipt-upload-card p {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
}

.receipt-upload-label {
    width: 100%;
    height: 56px;
    border-radius: 18px;
    border: 1px dashed #0C73FE;
    background: #eef8ff;
    color: #0C73FE;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.receipt-upload-label input {
    display: none;
}

.receipt-file-name {
    margin-top: 10px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    word-break: break-word;
}

.support-button {
    display: block;
    text-align: center;
    padding: 16px;
    border-radius: 18px;
    background: #0C73FE;
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.bottom-nav {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 410px;
    width: calc(100% - 24px);
    height: 76px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5eaf3;
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
    z-index: 100;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

body.keyboard-open .bottom-nav,
.bottom-nav.bottom-nav-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(120px);
}

.nav-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 18px;
    padding: 7px 0;
    position: relative;
    overflow: hidden;
    transition:
        color 0.25s ease,
        transform 0.2s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.nav-btn span {
    font-size: 11px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #178bff, #0f62fe);
    opacity: 0;
    transform: scale(0.75);
    border-radius: 18px;
    transition:
        opacity 0.25s ease,
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.nav-btn.active {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(15, 98, 254, 0.32);
}

.nav-btn.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-btn.active span {
    color: white;
}

.nav-btn:active {
    transform: scale(0.94);
}

.nav-btn.active:active {
    transform: translateY(-3px) scale(0.94);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-yellow {
    background: #fff7df;
    color: #a16207;
}

.status-yellow::before {
    background: #facc15;
}

.status-blue {
    background: #eef5ff;
    color: #0C73FE;
}

.status-blue::before {
    background: #0C73FE;
}

.status-green {
    background: #eafaf1;
    color: #15803d;
}

.status-green::before {
    background: #22c55e;
}

.status-red {
    background: #fff1f2;
    color: #be123c;
}

.status-red::before {
    background: #ef4444;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.popular-card {
    border: none;
    background: white;
    border-radius: 22px;
    min-height: 112px;
    padding: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popular-card:active {
    transform: scale(0.96);
}

.popular-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e8f3ff, #ffffff);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: inset 0 0 0 1px #e4efff;
}

.popular-card span {
    font-size: 14px;
    color: #1f2937;
    text-align: center;
}

.custom-order-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(135deg, #eef8ff, #ffffff);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.custom-order-box h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.custom-order-box p {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
}

.secondary-button {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 18px;
    background: white;
    color: #0C73FE;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px #cfe6ff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-button:active {
    transform: scale(0.97);
}

.show-all-button {
    margin-top: 12px;
}

.travel-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f3f8ff, #ffffff);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.travel-box h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.travel-box p {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.travel-card {
    border: none;
    background: white;
    border-radius: 22px;
    min-height: 100px;
    padding: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.travel-card:active {
    transform: scale(0.96);
}

.travel-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e8f3ff, #ffffff);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: inset 0 0 0 1px #e4efff;
}

.travel-card span {
    font-size: 14px;
    color: #1f2937;
    text-align: center;
}

.plan-card h2 {
    margin-bottom: 4px;
}

