/* calc.html — только эта страница. Цвета и шрифты из переменных style.css. */
.cl-work { padding-bottom: 24px; }
.cl-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; }

/* форма: столбик слева, на десктопе липкая */
.cl-form { grid-template-columns: 1fr; margin-top: 0; padding: 20px; gap: 10px; position: sticky; top: 16px; }
.cl-form__t { font-family: var(--font-head); font-size: 17px; font-weight: var(--w-bold, 700); padding: 2px 4px 0; }
.cl-form .hp-kind { padding: 0; }
.cl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-hint { padding: 4px 4px 0; font-size: 12px; color: var(--muted); }
.cl-size { margin: 4px 0 0; }
.cl-size .hp-size__row label { font-size: 12px; font-weight: var(--w-semi, 600); color: var(--muted); }
.cl-vol { position: relative; margin-top: 8px; font-size: 13px; color: var(--slate); }
.cl-tip { color: var(--coral-text); text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.cl-tip__t { left: 0; right: auto; }
.cl-tip:hover + .cl-tip__t, .cl-tip:focus + .cl-tip__t { opacity: 1; transform: none; }
.cl-places .hp-unit { margin-top: 10px; }
.cl-places .hp-unit input { width: 120px; }
.cl-go { width: 100%; height: 56px; margin-top: 4px; }
.cl-reset { justify-self: center; font-weight: 500; color: var(--muted); }

/* результаты */
.cl-res { min-width: 0; }
.cl-state { border-radius: 24px; background: linear-gradient(160deg, var(--cream), var(--soft)); padding: 20px; }
.cl-empty, .cl-msg { padding: 56px 40px; text-align: center; color: var(--slate); }
.cl-empty p:last-child, .cl-msg p { max-width: 460px; margin: 10px auto 0; line-height: 1.55; }
.cl-msg .wp-btn { margin-top: 20px; }
.cl-empty__art { display: grid; gap: 8px; width: 260px; margin: 0 auto 24px; }
.cl-empty__art span { height: 44px; border-radius: 12px; background: #fff; box-shadow: var(--sh-card); }
.cl-empty__art span:nth-child(2) { width: 85%; } .cl-empty__art span:nth-child(3) { width: 70%; }
.cl-load { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--slate); }
.cl-load .hp-dot { flex: none; }
.motion .cl-load .hp-dot { animation: dot 1s var(--ease-io) infinite alternate; }
.cl-skel .hp-row { background: #fff; height: 76px; }

.cl-head { display: grid; gap: 14px; margin-bottom: 16px; }
.cl-head__route { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 14px; color: var(--slate); }
.cl-head__route b { font-family: var(--font-head); font-size: 20px; color: var(--ink); }
.cl-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.cl-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.cl-seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: var(--w-semi, 600); color: var(--muted); cursor: pointer; transition: background-color .2s var(--ease-out), color .2s; }
.cl-seg button[aria-checked="true"] { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--peach-2); }
.cl-chips { display: flex; gap: 6px; }
.cl-chips button { height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--slate); cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.cl-chips button[aria-pressed="true"] { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--peach-2); }
.cl-warn { margin-bottom: 12px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: inset 3px 0 0 var(--coral-dot); font-size: 14px; color: var(--slate); }
.cl-list { display: grid; gap: 10px; }
.cl-card { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) 150px 100px auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: var(--sh-card); }
.cl-card[hidden] { display: none; }
.cl-card__logo { width: auto; max-width: 110px; }
.cl-card__t { font-weight: var(--w-semi, 600); color: var(--ink); }
.cl-card__how { font-size: 13px; color: var(--muted); }
.cl-card__when b { display: block; font-size: 15px; font-weight: var(--w-semi, 600); }
.cl-card__when small { font-size: 12px; color: var(--muted); }
.cl-card__price { font-size: 22px; font-weight: var(--w-bold, 700); text-align: right; font-variant-numeric: tabular-nums; }
.cl-card .hp-row__tags { top: -9px; left: 16px; right: auto; }
.cl-filter-empty { padding: 24px; text-align: center; color: var(--slate); }

/* оформление */
.cl-co { scroll-margin-top: 16px; }
.cl-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; counter-reset: st; }
.cl-steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: var(--w-semi, 600); color: var(--muted); transition: background-color .3s, color .3s; }
.cl-steps li::before { content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; font-size: 12px; }
.cl-steps li.is-done { color: var(--slate); }
.cl-steps li.is-done::before { content: "✓"; background: var(--coral-dot); color: #fff; }
.cl-steps li[aria-current="step"] { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--peach-2); }
.cl-co__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.cl-co__form { padding: 28px; border-radius: 22px; background: #fff; box-shadow: var(--sh-card), 0 0 0 1px var(--line); }
.cl-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.cl-step legend { margin-bottom: 18px; padding: 0; }
.cl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.cl-f--wide { grid-column: 1 / -1; }
.cl-f label, .cl-f__l { display: block; margin-bottom: 6px; font-size: 13px; font-weight: var(--w-semi, 600); color: var(--slate); }
.cl-f input { width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--soft); padding: 0 14px; font-size: 16px; color: var(--ink); transition: background-color .2s, box-shadow .2s; }
.cl-f input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--coral-head); }
.cl-f input[aria-invalid="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--err); }
.cl-f small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.cl-f small a, .cl-check a, .cl-done a:not(.wp-btn) { color: var(--coral-text); }
.cl-check { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.cl-check input { width: 20px; height: 20px; accent-color: var(--coral-dot); }
.cl-paynote { margin-top: 18px; font-size: 13px; color: var(--muted); }
.cl-co__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line); }
.cl-co__nav .wp-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.cl-sum { position: sticky; top: 16px; display: grid; gap: 4px; padding: 24px; border-radius: 22px; background: linear-gradient(160deg, var(--cream), var(--peach)); color: var(--slate); font-size: 14px; }
.cl-sum__t { font-size: 13px; font-weight: var(--w-semi, 600); color: var(--muted); }
.cl-sum__logo { height: 18px; width: auto; justify-self: start; margin: 8px 0 4px; }
.cl-sum__price { margin: 8px 0; font-size: 30px; font-weight: var(--w-price, 700); color: var(--ink); }
.cl-sum .wp-tlink { justify-self: start; }

/* готово */
.cl-done__card { max-width: 760px; padding: 48px; border-radius: 28px; background: linear-gradient(160deg, var(--cream), var(--peach)); }
.cl-done__ok { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; }
.cl-done__ok svg { width: 28px; height: 28px; }
.cl-done h2:focus { outline: none; }
.cl-next { margin: 24px 0; display: grid; gap: 12px; counter-reset: nx; }
.cl-next li { counter-increment: nx; position: relative; padding-left: 40px; color: var(--slate); line-height: 1.55; }
.cl-next li::before { content: counter(nx); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; font-size: 13px; font-weight: var(--w-bold, 700); color: var(--ink); }
.cl-next b { color: var(--ink); font-weight: var(--w-semi, 600); }
.cl-done__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cl-done__btns .wp-btn--ghost { background: #fff; }
.cl-done__guest { margin-top: 20px; font-size: 14px; color: var(--slate); }

@media (max-width: 1180px) {
  .cl-grid { grid-template-columns: 380px minmax(0, 1fr); }
  .cl-card { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "logo info price" "logo when btn"; row-gap: 8px; }
  .cl-card__logo { grid-area: logo; } .cl-card__info { grid-area: info; } .cl-card__when { grid-area: when; } .cl-card__price { grid-area: price; } .cl-card .wp-btn { grid-area: btn; }
}
@media (max-width: 980px) {
  .cl-grid, .cl-co__grid { grid-template-columns: 1fr; }
  .cl-form, .cl-sum { position: static; }
  .cl-sum { order: -1; }
}
@media (max-width: 620px) {
  .cl-form { padding: 14px; }
  .cl-state { padding: 12px; border-radius: 20px; }
  .cl-empty, .cl-msg { padding: 36px 16px; }
  .cl-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo price" "info info" "when btn"; padding: 16px; gap: 6px 12px; }
  .cl-card .wp-btn { justify-self: end; }
  .cl-tools { flex-direction: column; }
  .cl-chips button { height: 36px; }
  .cl-co__form { padding: 18px 14px; }
  .cl-fields { grid-template-columns: 1fr; }
  .cl-co__nav { flex-direction: column-reverse; }
  .cl-co__nav .wp-btn { width: 100%; }
  .cl-done__card { padding: 28px 18px; }
}
