@font-face { font-family: 'Ploni'; src: url('fonts/ploni-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('fonts/ploni-medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('fonts/ploni-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('fonts/ploni-black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --brand: #690021; --brand-soft: #F6E8EC;
  --accent: #F68B29; --accent-soft: #FEF1E4;
  --bg: #FAF7F5; --card: #FFFFFF; --ink: #24161A; --muted: #6E6266; --line: #E9E1E3;
  --ok: #1E7A46; --err: #B3261E;
  --radius: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 17px/1.55 'Ploni', system-ui, sans-serif; }
h1, h2 { margin: 0; font-weight: 900; line-height: 1.15; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--brand); }
[hidden] { display: none !important; }

.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 56px; }

.hero { text-align: center; padding: 12px 0 22px; }
.logo { height: 64px; display: block; margin: 0 auto 14px; }
.kicker { display: inline-block; background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 16px; font-weight: 700; font-size: 15px; }
.hero h1 { color: var(--brand); font-size: clamp(34px, 9vw, 52px); margin: 12px 0 6px; letter-spacing: -.5px; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 0; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; text-align: center; }
.fact b { display: block; color: var(--brand); font-size: 18px; }
.fact small { color: var(--muted); font-size: 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: 0 4px 18px rgba(105, 0, 33, .06); }
.card h2 { font-size: 22px; color: var(--brand); margin-bottom: 4px; }
.card .sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.group { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.group-title { font-weight: 700; color: var(--brand); margin: 0 0 12px; font-size: 16px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-weight: 700; font-size: 15px; }
.field label i { color: var(--accent); font-style: normal; }
.field input[type=text], .field input[type=tel], .field input[type=date] {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field.bad input { border-color: var(--err); }
.field .hint { color: var(--muted); font-size: 13px; }
.field .msg { color: var(--err); font-size: 13px; display: none; }
.field.bad .msg { display: block; }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; }
.sizes span { display: grid; place-items: center; min-width: 52px; height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; cursor: pointer; background: #fff; }
.sizes input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.sizes input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-soft); }
.field.bad .sizes span { border-color: var(--err); }

.drop { display: flex; align-items: center; gap: 14px; border: 1.5px dashed #D9C9CE; border-radius: 14px; padding: 14px; background: var(--bg); cursor: pointer; }
.drop:hover { border-color: var(--brand); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--brand-soft) center/cover no-repeat; flex: none; display: grid; place-items: center; color: var(--brand); font-size: 26px; }
.drop .txt { min-width: 0; }
.drop .txt b { display: block; }
.drop .txt small { color: var(--muted); overflow-wrap: anywhere; }
.drop button { margin-inline-start: auto; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; }

.total { display: flex; align-items: center; justify-content: space-between; background: var(--accent-soft); border-radius: 14px; padding: 14px 16px; margin: 20px 0 14px; font-weight: 700; }
.total b { font-size: 24px; color: var(--brand); }
.btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; font-size: 18px; min-height: 54px; padding: 0 18px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #540019; }
.btn:disabled { opacity: .7; cursor: wait; }
.secure { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 15px; }
.alert.err { background: #FCEBEA; color: var(--err); }
.alert.warn { background: var(--accent-soft); color: #7A3E06; }
.alert .btn { margin-top: 10px; min-height: 44px; font-size: 16px; }

.spin { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: s .8s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }

.foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

.result { text-align: center; margin-top: 40px; }
.result h1 { color: var(--brand); font-size: 30px; margin-bottom: 12px; }
.result.ok h1 { color: var(--ok); }
.result .big { font-size: 19px; font-weight: 700; }
.result .muted { color: var(--muted); font-size: 14px; }

@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 20px 16px; }
  .fact b { font-size: 16px; }
}
