Files
BarevClub/apps/miniapp-client/src/app.css
T
2026-10-25 22:57:03 +04:00

1038 lines
19 KiB
CSS

.app {
max-width: 560px;
margin: 0 auto;
padding: 16px 16px calc(100px + env(safe-area-inset-bottom));
display: flex;
flex-direction: column;
gap: 12px;
}
.app--plain {
padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.tiles {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.tile {
min-height: 132px;
padding: 16px;
border-radius: 28px;
display: flex;
flex-direction: column;
justify-content: space-between;
text-decoration: none;
gap: 10px;
}
.tile__title {
font-family: var(--bc-font-head);
font-weight: 800;
font-size: 20px;
line-height: 1.05;
}
.order-row {
padding: 12px 14px;
border-radius: 20px;
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
min-height: 56px;
}
.order-row__main {
flex: 1;
min-width: 0;
}
.order-row__title {
font-weight: 600;
font-size: 14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.quick {
display: flex;
gap: 8px;
overflow-x: auto;
scrollbar-width: none;
margin: 0 -16px;
padding: 0 16px;
}
.quick::-webkit-scrollbar {
display: none;
}
.option-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 8px;
}
.option {
text-align: left;
padding: 14px 16px;
min-height: 72px;
border-radius: 22px;
border: 2px solid transparent;
background: var(--bc-surface);
cursor: pointer;
display: flex;
flex-direction: column;
gap: 4px;
}
.option[aria-pressed='true'] {
border-color: var(--bc-ink);
}
.days {
display: flex;
gap: 6px;
overflow-x: auto;
scrollbar-width: none;
margin: 0 -16px;
padding: 2px 16px;
}
.days::-webkit-scrollbar {
display: none;
}
.day {
flex: none;
width: 58px;
height: 68px;
border-radius: 20px;
border: 2px solid transparent;
background: var(--bc-surface);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
gap: 2px;
}
.day[aria-pressed='true'] {
background: var(--bc-dark);
color: #fff;
}
.day__num {
font-family: var(--bc-font-head);
font-weight: 700;
font-size: 20px;
line-height: 1;
}
.slots {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 6px;
}
.slot {
min-height: var(--bc-tap);
border-radius: var(--bc-pill);
border: 2px solid transparent;
background: var(--bc-surface);
font-weight: 600;
cursor: pointer;
}
.slot[aria-pressed='true'] {
background: var(--bc-dark);
color: #fff;
}
.price-lines {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 15px;
}
.price-lines .total {
font-family: var(--bc-font-head);
font-weight: 800;
font-size: 22px;
}
.sticky-cta {
position: sticky;
bottom: calc(12px + env(safe-area-inset-bottom));
z-index: 10;
}
.page-head {
display: flex;
align-items: center;
gap: 8px;
min-height: 44px;
}
.back {
width: 44px;
height: 44px;
border-radius: 50%;
border: none;
background: var(--bc-surface);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.club-card {
border-radius: 32px;
padding: 22px;
min-height: 190px;
display: flex;
flex-direction: column;
justify-content: space-between;
position: relative;
overflow: hidden;
}
.kv {
display: grid;
grid-template-columns: auto 1fr;
gap: 6px 14px;
font-size: 14px;
}
.kv dt {
color: var(--bc-ink-2);
}
.kv dd {
margin: 0;
font-weight: 500;
}
.photos {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 6px;
}
.photos img {
width: 100%;
aspect-ratio: 1;
object-fit: cover;
border-radius: 16px;
}
.extra-row {
display: flex;
align-items: center;
gap: 12px;
min-height: 60px;
padding: 6px 0;
border-bottom: 1px solid var(--bc-line);
}
.extra-row:last-child {
border-bottom: none;
}
.extra-toggle {
min-width: 96px;
height: var(--bc-tap);
padding: 0 16px;
border-radius: var(--bc-pill);
border: 2px solid var(--bc-ink);
background: transparent;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
}
.extra-toggle[aria-pressed='true'] {
background: var(--bc-ok);
border-color: var(--bc-ok);
color: #fff;
}
/* ═════════ выбор сценария ═════════ */
.seg {
min-height: 100dvh;
justify-content: center;
background: var(--bc-plum);
color: var(--bc-bg);
max-width: none;
}
.seg > * {
width: 100%;
max-width: 528px;
margin-left: auto;
margin-right: auto;
}
.seg__word {
font-family: var(--bc-font-head);
font-weight: 800;
font-style: italic;
font-size: clamp(88px, 28vw, 150px);
line-height: 0.85;
letter-spacing: -0.05em;
color: var(--bc-pink);
}
.seg__title {
margin: 18px 0 0;
font-family: var(--bc-font-head);
font-weight: 800;
font-size: 30px;
line-height: 1.05;
letter-spacing: -0.02em;
}
.seg__sub {
margin: 0 0 10px;
color: #e9c9d5;
}
.seg__choices {
display: flex;
flex-direction: column;
gap: 10px;
}
.seg__choice {
display: flex;
gap: 14px;
align-items: flex-start;
width: 100%;
padding: 18px;
border: 0;
border-radius: 24px;
background: var(--bc-pink);
color: var(--bc-plum);
font: inherit;
text-align: left;
cursor: pointer;
}
.seg__choice + .seg__choice {
background: var(--bc-perks);
}
.seg__choice > span {
display: flex;
flex-direction: column;
gap: 4px;
}
.seg__choice b {
font-family: var(--bc-font-head);
font-size: 20px;
}
.seg__choice svg {
flex: none;
margin-top: 2px;
}
/* ═════════ план переезда ═════════ */
.move-hero {
display: flex;
flex-direction: column;
gap: 6px;
padding: 22px 20px 20px;
border-radius: 32px;
background: var(--bc-plum);
color: var(--bc-bg);
}
.move-hero__label {
font-size: 14px;
font-weight: 600;
color: var(--bc-pink);
}
.move-hero__when {
font-family: var(--bc-font-head);
font-weight: 800;
font-style: italic;
font-size: 34px;
line-height: 1;
letter-spacing: -0.03em;
}
.move-hero__days {
font-size: 15px;
color: #e9c9d5;
}
.move-hero__bar {
height: 8px;
margin-top: 12px;
border-radius: 999px;
background: rgba(246, 195, 211, 0.22);
overflow: hidden;
}
.move-hero__bar span {
display: block;
height: 100%;
border-radius: inherit;
background: var(--bc-home);
transition: width 0.4s ease;
}
.move-hero__progress {
font-size: 14px;
color: #e9c9d5;
}
.move-steps {
position: relative;
margin: 0;
padding: 0;
list-style: none;
}
/* ось как в таймлайне на сайте */
.move-steps::before {
content: '';
position: absolute;
left: 10px;
top: 14px;
bottom: 14px;
width: 2px;
background: var(--bc-line);
}
.move-step {
position: relative;
display: grid;
grid-template-columns: 22px minmax(0, 1fr) auto;
gap: 12px;
align-items: start;
padding: 10px 0 12px;
}
.move-step__dot {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
margin-top: 1px;
border-radius: 50%;
border: 2px solid var(--bc-plum);
background: var(--bc-surface);
color: var(--bc-home-ink);
}
.move-step[data-status='IN_PROGRESS'] .move-step__dot {
border-color: var(--bc-accent);
background: var(--bc-accent);
box-shadow: 0 0 0 5px rgba(184, 35, 90, 0.15);
}
.move-step[data-status='DONE'] .move-step__dot {
border-color: var(--bc-home);
background: var(--bc-home);
}
.move-step__title {
font-weight: 600;
line-height: 1.3;
}
.move-step[data-status='DONE'] .move-step__title {
color: var(--bc-ink-2);
}
.move-step__note {
margin-top: 4px;
padding: 8px 10px;
border-radius: 12px;
background: var(--bc-bg);
font-size: 13px;
line-height: 1.4;
}
.move-step__status {
padding: 4px 10px;
border-radius: 999px;
background: var(--bc-bg);
font-size: 12px;
font-weight: 600;
white-space: nowrap;
}
.move-step[data-status='IN_PROGRESS'] .move-step__status {
background: var(--bc-pink);
color: var(--bc-plum);
}
.move-step[data-status='DONE'] .move-step__status {
background: var(--bc-home);
color: var(--bc-home-ink);
}
.move-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.move-action {
display: flex;
flex-direction: column;
gap: 4px;
min-height: 120px;
padding: 16px;
border: 0;
border-radius: 28px;
font: inherit;
text-align: left;
text-decoration: none;
cursor: pointer;
}
.move-action b {
margin-top: auto;
font-family: var(--bc-font-head);
font-size: 18px;
}
/* ═════════ конструктор переезда ═════════ */
.mf-choices {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.mf-choice,
.mf-package {
padding: 14px;
border: 2px solid var(--bc-line);
border-radius: 20px;
background: var(--bc-surface);
font: inherit;
font-weight: 600;
text-align: left;
color: var(--bc-ink);
cursor: pointer;
}
.mf-package {
display: flex;
flex-direction: column;
gap: 4px;
font-weight: 400;
}
.mf-package b {
font-size: 17px;
}
.mf-choice[aria-pressed='true'],
.mf-package[aria-pressed='true'] {
border-color: var(--bc-plum);
background: var(--bc-pink);
}
.mf-price {
font-family: var(--bc-font-head);
font-weight: 700;
color: var(--bc-plum);
white-space: nowrap;
}
.mf-row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 8px;
padding-top: 10px;
border-top: 1px solid var(--bc-line);
font-weight: 600;
}
.mf-seg {
display: inline-flex;
padding: 3px;
border-radius: 999px;
background: var(--bc-bg);
}
.mf-seg button {
min-height: 36px;
padding: 0 12px;
border: 0;
border-radius: 999px;
background: transparent;
font: inherit;
font-size: 14px;
font-weight: 600;
color: var(--bc-ink-2);
cursor: pointer;
}
.mf-seg button[aria-checked='true'] {
background: var(--bc-plum);
color: #fff;
}
.mf-budget {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
/* ═════════ документы ═════════ */
.docs {
margin: 0;
padding: 0;
list-style: none;
}
.doc {
display: flex;
gap: 12px;
align-items: flex-start;
width: 100%;
padding: 12px;
border: 0;
border-radius: 18px;
background: transparent;
font: inherit;
text-align: left;
color: var(--bc-ink);
cursor: pointer;
}
.doc > span:last-child {
display: flex;
flex-direction: column;
gap: 2px;
}
.doc:disabled {
cursor: default;
opacity: 0.6;
}
.doc__box {
flex: none;
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 8px;
border: 2px solid var(--bc-plum);
color: #fff;
}
.doc[aria-pressed='true'] .doc__box {
background: var(--bc-plum);
}
.doc[aria-pressed='true'] b {
text-decoration: line-through;
color: var(--bc-ink-3);
}
/* ═════════ подписка: клубные карты ═════════ */
.club {
display: flex;
flex-direction: column;
aspect-ratio: 1.586;
padding: 20px 22px;
border-radius: 22px;
border: 1.5px solid var(--bc-line);
background: var(--bc-surface);
color: var(--bc-plum);
}
.club[data-plan='plus'] {
border-color: var(--bc-pink);
background: var(--bc-pink);
}
.club[data-plan='elite'] {
border-color: var(--bc-perks);
background: var(--bc-perks);
}
.club__top {
display: flex;
justify-content: space-between;
font-size: 13px;
font-weight: 600;
}
.club__chip {
width: 42px;
height: 32px;
border-radius: 8px;
background: color-mix(in srgb, currentColor 14%, transparent);
border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent);
}
.club__name {
margin-top: auto;
font-family: var(--bc-font-head);
font-weight: 800;
font-style: italic;
font-size: 38px;
line-height: 1;
letter-spacing: -0.03em;
}
.club__price {
margin-top: 6px;
font-family: var(--bc-font-head);
font-weight: 600;
font-size: 18px;
}
.club-list {
display: flex;
flex-direction: column;
gap: 10px;
margin: 4px 0;
padding: 0 4px;
list-style: none;
}
.club-list li {
display: flex;
gap: 10px;
align-items: flex-start;
line-height: 1.4;
}
.club-list svg {
flex: none;
margin-top: 1px;
color: var(--bc-accent);
}
.club-state {
display: flex;
flex-direction: column;
gap: 4px;
padding: 14px 16px;
border-radius: 20px;
background: var(--bc-surface);
text-align: center;
}
.club-state span {
font-size: 14px;
color: var(--bc-ink-2);
}
/* ═════════ услуги, партнёры ═════════ */
.req-done {
display: inline-flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--bc-home);
color: var(--bc-home-ink);
}
.upsell {
display: flex;
flex-direction: column;
gap: 4px;
padding: 16px 18px;
border-radius: 24px;
background: var(--bc-perks);
color: var(--bc-plum);
text-decoration: none;
}
.upsell b {
font-family: var(--bc-font-head);
font-size: 18px;
}
.partners {
display: flex;
flex-direction: column;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.partner {
display: flex;
flex-direction: column;
gap: 4px;
padding: 16px 18px;
border-radius: 24px;
background: var(--bc-surface);
}
.partner__cat {
font-size: 12px;
font-weight: 600;
color: var(--bc-ink-3);
}
.partner__name {
font-family: var(--bc-font-head);
font-size: 18px;
}
.partner__offer {
align-self: flex-start;
padding: 4px 10px;
border-radius: 999px;
background: var(--bc-pink);
color: var(--bc-plum);
font-size: 14px;
font-weight: 600;
}
/* клубная карта с живым QR */
.card-qr {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
padding: 20px;
border-radius: 32px;
}
.card-qr__top {
display: flex;
justify-content: space-between;
align-items: baseline;
width: 100%;
font-size: 13px;
font-weight: 600;
}
.card-qr__top b {
font-family: var(--bc-font-head);
font-size: 18px;
}
.card-qr__code {
padding: 12px;
border-radius: 24px;
background: #fff;
line-height: 0;
}
.card-qr__meta {
display: flex;
justify-content: space-between;
width: 100%;
font-size: 13px;
opacity: 0.85;
}
.card-qr__meta .bc-num {
letter-spacing: 3px;
}
.offers {
display: flex;
flex-direction: column;
gap: 6px;
margin: 6px 0 0;
padding: 0;
list-style: none;
}
.offer {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 10px;
padding: 8px 12px;
border-radius: 14px;
background: var(--bc-pink);
color: var(--bc-plum);
font-weight: 600;
font-size: 14px;
}
.offer small {
font-weight: 500;
font-size: 12px;
white-space: nowrap;
opacity: 0.8;
}
.offer[data-eligible='false'],
.offer[data-used='true'] {
background: var(--bc-bg);
color: var(--bc-ink-3);
}
/* ───── чат с командой ───── */
.chat-screen {
max-width: 560px;
margin: 0 auto;
height: 100dvh;
display: flex;
flex-direction: column;
}
.chat-screen__head {
padding: 16px 16px 8px;
display: flex;
flex-direction: column;
gap: 10px;
}
.chat-switch {
display: flex;
padding: 4px;
gap: 4px;
border-radius: 999px;
background: var(--bc-surface);
}
.chat-switch button {
flex: 1;
height: 36px;
border: 0;
border-radius: 999px;
background: none;
font: inherit;
font-weight: 600;
font-size: 14px;
color: var(--bc-ink-2);
}
.chat-switch button[aria-pressed='true'] {
background: var(--bc-plum);
color: #f6e9dc;
}
.chat-upsell {
align-self: flex-start;
padding: 6px 12px;
border-radius: 999px;
background: var(--bc-pink);
color: var(--bc-plum);
font-weight: 600;
text-decoration: none;
}
.chat-list {
flex: 1;
overflow-y: auto;
padding: 8px 16px 16px;
display: flex;
flex-direction: column;
gap: 6px;
}
.chat-hint {
text-align: center;
margin: 4px 12px 8px;
}
.chat-day {
align-self: center;
margin: 10px 0 4px;
padding: 3px 12px;
border-radius: 999px;
background: var(--bc-surface);
font-size: 12px;
font-weight: 600;
color: var(--bc-ink-3);
}
.chat-msg {
align-self: flex-start;
max-width: 82%;
padding: 9px 13px 7px;
border-radius: 20px 20px 20px 6px;
background: var(--bc-surface);
line-height: 1.4;
overflow-wrap: anywhere;
}
.chat-msg--mine {
align-self: flex-end;
border-radius: 20px 20px 6px 20px;
background: var(--bc-plum);
color: #f6e9dc;
}
.chat-msg__who {
font-size: 12px;
font-weight: 700;
color: var(--bc-accent);
margin-bottom: 2px;
}
.chat-msg__text {
white-space: pre-wrap;
}
.chat-msg__time {
font-size: 11px;
opacity: 0.6;
text-align: right;
margin-top: 2px;
}
.chat-msg__img {
display: block;
max-width: 100%;
max-height: 260px;
border-radius: 14px;
margin: 2px -5px 6px;
}
.chat-msg__file {
display: block;
font-weight: 600;
color: inherit;
margin-bottom: 4px;
}
.chat-compose {
display: flex;
align-items: flex-end;
gap: 8px;
padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
background: var(--bc-bg);
}
.chat-compose__input {
flex: 1;
min-height: 44px;
max-height: 140px;
padding: 11px 16px;
border-radius: 22px;
border: 1.5px solid var(--bc-line);
background: var(--bc-surface);
font: inherit;
font-size: 16px;
resize: none;
field-sizing: content;
}
.chat-compose__input:focus {
outline: none;
border-color: var(--bc-accent);
}
.chat-compose__btn,
.chat-compose__send {
width: 44px;
height: 44px;
flex: none;
border-radius: 50%;
border: 0;
display: grid;
place-items: center;
background: var(--bc-surface);
color: var(--bc-ink);
}
.chat-compose__send {
background: var(--bc-accent);
color: #fff;
}
.chat-compose__send:disabled {
opacity: 0.4;
}
/* барики в форме заказа */
.points-toggle {
display: flex;
gap: 12px;
align-items: flex-start;
padding: 12px 14px;
border-radius: 18px;
background: var(--bc-perks, #f6e3b4);
cursor: pointer;
}
.points-toggle[data-off] {
opacity: 0.6;
cursor: default;
}
.points-toggle input {
width: 22px;
height: 22px;
margin-top: 1px;
accent-color: var(--bc-plum);
flex: none;
}
.points-toggle small {
display: block;
font-size: 13px;
opacity: 0.8;
margin-top: 2px;
}
/* ───── барики ───── */
.points-hero {
gap: 6px;
}
.points-hero__num {
font-family: var(--bc-font-head);
font-weight: 800;
font-size: 46px;
line-height: 1;
letter-spacing: -0.03em;
}
.points-hero__ghost {
color: #fff;
border-color: rgba(255, 255, 255, 0.5);
}
.points-rates {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.points-rates th,
.points-rates td {
padding: 6px 4px;
text-align: right;
}
.points-rates th:first-child,
.points-rates td:first-child {
text-align: left;
}
.points-rates th {
font-weight: 600;
opacity: 0.6;
}
.points-rates [data-on] {
font-weight: 800;
opacity: 1;
color: var(--bc-plum);
}
.points-dots {
display: flex;
gap: 8px;
}
.points-dots span {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--bc-bg);
border: 2px solid rgba(74, 16, 40, 0.15);
}
.points-dots span[data-mark] {
border-color: var(--bc-plum);
}
.points-dots span[data-on] {
background: var(--bc-plum);
border-color: var(--bc-plum);
}
.points-row {
display: flex;
gap: 12px;
align-items: center;
padding: 10px 4px;
border-bottom: 1px solid rgba(74, 16, 40, 0.08);
}
.points-row:last-child {
border-bottom: 0;
}
.points-plus {
color: var(--bc-home-ink, #2f5b1f);
white-space: nowrap;
}
.points-minus {
white-space: nowrap;
}