ekomat-mobilnoe-prilozhenie/web/style.css

107 lines
7.6 KiB
CSS

:root {
color-scheme: light;
font-family: "Avenir Next", Avenir, system-ui, sans-serif;
color: #17362d;
background: #f5f6f0;
font-synthesis: none;
--green: #1b523e;
--green-dark: #103c2d;
--muted: #4f665a;
--line: #dfe6db;
--white: #fff;
}
* { box-sizing: border-box }
body { margin: 0 }
button, input, select, textarea { font: inherit }
button { cursor: pointer }
button:disabled { cursor: wait }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent }
:focus-visible { outline: 3px solid #50892d; outline-offset: 3px }
a { color: var(--green); font-weight: 650 }
h1, h2, h3, p { margin: 0 }
h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); letter-spacing: -.055em; line-height: 1.04 }
h2 { font-size: 1.15rem; letter-spacing: -.025em }
h3 { font-size: 1rem }
p { color: var(--muted); line-height: 1.5 }
small { color: var(--muted) }
.header { background: #f5f6f0; border-bottom: 1px solid var(--line) }
.header-inner { max-width: 960px; min-height: 68px; margin: auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.2rem; font-weight: 800; color: var(--green-dark); padding: 0; border: 0; background: transparent; letter-spacing: -.04em }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px 12px 12px 4px; color: #e8f4bd; background: var(--green-dark); font-size: 1.55rem; font-weight: 850; line-height: 1 }
.header-actions { display: flex; align-items: center; gap: 12px }
.demo { color: #385740; font-size: .75rem; font-weight: 700 }
.header select { width: auto; padding: 8px; min-height: 38px; font-size: .8rem; background: #fff }
.content { display: grid; gap: 18px; width: min(960px, 100%); margin: auto; padding: 20px 20px 112px }
.demo-info { font-size: .8rem }
.hero { isolation: isolate; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: center; padding: clamp(24px, 5vw, 48px); background: #dce9cd; border-radius: 26px }
.hero::after { content: ""; position: absolute; z-index: -1; right: -150px; bottom: -255px; width: 480px; height: 480px; border: 28px solid #c8dcb8; border-radius: 48% 52% 62% 38%; transform: rotate(-24deg); box-shadow: 0 0 0 26px #d2e2c2 }
.hero p { max-width: 440px; margin-top: 12px }
.hero .button { margin-top: 18px }
.balance-card { display: grid; gap: 8px; background: var(--green-dark); color: #f4f8e9; border-radius: 19px; padding: 19px 22px; align-content: center; min-height: 112px }
.balance-card p, .balance-card small { margin: 0; color: #d2e7d6 }
.balance-card strong { font-size: clamp(2rem, 7vw, 3.45rem); line-height: 1; letter-spacing: -.06em }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.action-card { border: 1px solid var(--line); background: #fff; padding: 15px; color: inherit; text-align: left; border-radius: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px }
.action-card:hover, .button.secondary:hover { background: #f1f7eb }
.action-card strong, .action-card small { display: block }
.action-card small { margin-top: 3px; font-size: .77rem; line-height: 1.35 }
.action-icon { display: grid; place-items: center; width: 43px; height: 43px; color: #245041; background: #e2efcf; font-size: 1.45rem; border-radius: 14px }
.shop .action-icon { background: #e2f0ed }
.arrow { color: var(--green); font-weight: 750 }
.panel, .machine { border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: 19px }
.panel { display: grid; gap: 13px; justify-items: start; align-content: start }
.panel > p, .panel > form, .panel > .ledger, .panel > .machine { width: 100% }
.narrow { width: min(100%, 530px); justify-self: center }
.machine { min-width: 0; display: grid; align-items: center; grid-template-columns: auto 1fr auto; column-gap: 12px; row-gap: 7px }
.machine p { font-size: .86rem }
.machine-marker { display: grid; place-items: center; width: 42px; height: 42px; background: #eaf1e5; color: #326044; border-radius: 13px; font-size: 1.65rem }
.route { grid-column: 2; font-size: .8rem }
.pill { display: inline-flex; align-items: center; border-radius: 999px; background: #edece6; color: #535348; padding: 5px 9px; font-size: .76rem; font-weight: 700 }
.pill.available, .pill.completed, .pill.resolved { background: #e7f3df; color: #28533d }
.pill.ready, .pill.reconciliation, .pill.busy { background: #fff0c5; color: #604108 }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: 11px; padding: 10px 15px; color: var(--green); background: transparent; font-weight: 700; text-align: center }
.button.primary { background: var(--green); color: white }
.button.primary:hover { background: var(--green-dark) }
.button.secondary { border-color: #a9bbaa; background: #f7faf4 }
.button.subtle { padding-inline: 5px }
.button-row { display: flex; flex-wrap: wrap; gap: 8px }
.button:disabled { opacity: .6 }
.field, form { display: grid; width: 100%; gap: 7px }
form { gap: 12px; justify-items: start }
.field { font-weight: 650 }
input, select, textarea { width: 100%; padding: 10px 12px; min-height: 43px; border: 1px solid #b8c6bc; border-radius: 10px; color: #162f27; background: white }
.check { display: flex; gap: 8px; align-items: center }
.check input { min-height: 20px; height: 20px; width: 20px; accent-color: var(--green) }
video { display: block; width: 100%; background: #22352e; border-radius: 12px }
video[hidden] { display: none }
.demo-code { background: #e9f0df; padding: 12px; border-radius: 10px }
.notice { color: #732f24; background: #fff0e9; border: 1px solid #efd4c8; border-radius: 12px; padding: 8px 13px }
.notice button { margin-left: 10px }
.value, .metric strong { font-size: 1.5rem }
.ledger { list-style: none; padding: 0; margin: 0 }
.ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line) }
.ledger li:last-child { border-bottom: 0 }
.ledger small, .ledger strong { display: block }
.ledger small { margin: 3px 0 }
.ledger summary, details { font-size: .8rem; overflow-wrap: anywhere }
.amount, .positive { font-weight: 750; white-space: nowrap }
.positive { color: #28734d }
.ticket { width: 100%; border-bottom: 1px solid var(--line); padding-bottom: 10px }
.ticket p { overflow-wrap: anywhere }
.bottom-nav { position: fixed; z-index: 2; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(560px, calc(100% - 24px)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 5px; border: 1px solid #d8e0d6; border-radius: 16px; background: #fff; box-shadow: 0 6px 32px #163d2b19 }
.bottom-nav button { border: 0; min-height: 52px; border-radius: 11px; padding: 5px 2px; font-size: .75rem; background: transparent; color: #385649; font-weight: 700 }
.bottom-nav button span { display: block; font-size: 1.15rem; line-height: 1.2 }
.bottom-nav button[aria-current] { background: #e5eedc; color: var(--green-dark) }
@media (max-width: 575px) {
.content { padding-inline: 14px; gap: 13px }
.header-inner { padding-inline: 14px; min-height: 58px }
.header-actions { gap: 7px }
.hero { grid-template-columns: 1fr; gap: 16px; padding: 21px; border-radius: 20px }
.hero p { font-size: .9rem }
.balance-card { min-height: 92px; padding: 14px 16px }
.action-card { grid-template-columns: 1fr auto; padding: 12px; gap: 7px }
.action-card span:nth-child(2) { grid-column: 1 / -1 }
.arrow { grid-column: 2; grid-row: 1 }
.panel, .machine { padding: 13px }
}