@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Manrope:wght@300;400;500;600;700&display=swap');

.kalkulator-page {
  --parch: #F7F3EE;
  --sand: #EDE4D8;
  --linen: #D9CBB8;
  --stone: #9C8B78;
  --bark: #5C4A38;
  --earth: #2E2018;
  --ink: #1A1208;
  --white: #fff;
  --moss: #5A6B4A;
  --moss-lt: #7C9463;
  --gold: #B98C3A;
  --ff-d: 'Fraunces', 'Georgia', serif;
  --ff-b: 'Manrope', system-ui, sans-serif;

  font-family: var(--ff-b);
  background: var(--earth);
  color: var(--earth);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 28px 14px 60px;
}

.kalkulator-page *,
.kalkulator-page *::before,
.kalkulator-page *::after {
  box-sizing: border-box;
}

.kalkulator-page .wrap {
  max-width: 640px;
  margin: 0 auto;
}

.kalkulator-page .head {
  text-align: center;
  margin-bottom: 28px;
  padding-top: 12px;
}

.kalkulator-page .head .brand {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 12px;
}

.kalkulator-page .head h1 {
  font-family: var(--ff-d);
  font-size: 38px;
  font-weight: 300;
  line-height: 1.05;
  color: var(--parch);
}

.kalkulator-page .head h1 em {
  font-style: italic;
  color: var(--linen);
}

.kalkulator-page .head p {
  font-size: 14px;
  font-weight: 300;
  color: var(--linen);
  opacity: .75;
  margin-top: 10px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.kalkulator-page .prog {
  display: flex;
  gap: 6px;
  margin: 0 auto 26px;
  max-width: 400px;
}

.kalkulator-page .prog .dot {
  flex: 1;
  height: 3px;
  background: var(--linen);
  border-radius: 2px;
  transition: .3s;
}

.kalkulator-page .prog .dot.on {
  background: var(--stone);
}

.kalkulator-page .panel {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 4px;
  padding: 32px 28px;
  box-shadow: 0 8px 30px rgba(46, 32, 24, .05);
}

.kalkulator-page .step {
  display: none;
}

.kalkulator-page .step.on {
  display: block;
  animation: kalkulatorFade .35s ease;
}

@keyframes kalkulatorFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.kalkulator-page .q {
  font-family: var(--ff-d);
  font-size: 26px;
  font-weight: 400;
  color: var(--earth);
  margin-bottom: 6px;
  line-height: 1.2;
}

.kalkulator-page .qsub {
  font-size: 13px;
  font-weight: 300;
  color: var(--bark);
  margin-bottom: 24px;
}

.kalkulator-page .choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kalkulator-page .choice {
  border: 1px solid var(--sand);
  border-radius: 4px;
  padding: 22px 18px;
  cursor: pointer;
  transition: .2s;
  text-align: center;
  background: var(--parch);
}

.kalkulator-page .choice:hover {
  border-color: var(--stone);
  background: var(--sand);
}

.kalkulator-page .choice.sel {
  border-color: var(--earth);
  border-width: 1.5px;
  background: var(--sand);
}

.kalkulator-page .choice .cic {
  margin: 0 auto 12px;
  color: var(--stone);
}

.kalkulator-page .choice .cname {
  font-family: var(--ff-d);
  font-size: 19px;
  font-weight: 500;
  color: var(--earth);
  margin-bottom: 4px;
}

.kalkulator-page .choice .cdesc {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--bark);
  line-height: 1.4;
}

.kalkulator-page .mats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kalkulator-page .mat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--sand);
  border-radius: 4px;
  padding: 16px 18px;
  cursor: pointer;
  transition: .2s;
  background: var(--parch);
}

.kalkulator-page .mat:hover {
  border-color: var(--stone);
  background: var(--sand);
}

.kalkulator-page .mat.sel {
  border-color: var(--earth);
  border-width: 1.5px;
  background: var(--sand);
}

.kalkulator-page .mat .mname {
  font-family: var(--ff-d);
  font-size: 19px;
  font-weight: 500;
  color: var(--earth);
}

.kalkulator-page .mat .mdesc {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--bark);
  margin-top: 2px;
}

.kalkulator-page .mat .mprice {
  font-size: 12px;
  font-weight: 500;
  color: var(--stone);
  text-align: right;
  flex-shrink: 0;
  margin-left: 14px;
}

.kalkulator-page .mat .mprice small {
  display: block;
  font-size: 10px;
  font-weight: 300;
  color: var(--bark);
}

.kalkulator-page .field {
  margin-bottom: 20px;
}

.kalkulator-page .field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--bark);
  margin-bottom: 8px;
}

.kalkulator-page .field label .hint {
  font-weight: 300;
  color: var(--stone);
  font-size: 11px;
}

.kalkulator-page .inrow {
  display: flex;
  gap: 12px;
}

.kalkulator-page .incol {
  flex: 1;
}

.kalkulator-page .inbox {
  position: relative;
}

.kalkulator-page .inbox input {
  width: 100%;
  background: var(--parch);
  border: 1px solid var(--sand);
  border-radius: 4px;
  padding: 14px 44px 14px 16px;
  font-family: var(--ff-b);
  font-size: 18px;
  color: var(--earth);
  outline: none;
  transition: .2s;
}

.kalkulator-page .inbox input:focus {
  border-color: var(--stone);
  background: var(--white);
}

.kalkulator-page .inbox .unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--stone);
  pointer-events: none;
}

.kalkulator-page .note {
  font-size: 12px;
  font-weight: 300;
  color: var(--bark);
  background: var(--sand);
  border-radius: 4px;
  padding: 12px 14px;
  margin-top: 6px;
  line-height: 1.5;
}

.kalkulator-page .note strong {
  color: var(--earth);
  font-weight: 500;
}

.kalkulator-page .btns {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.kalkulator-page .btn {
  flex: 1;
  padding: 15px;
  border-radius: 4px;
  font-family: var(--ff-b);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kalkulator-page .btn-primary {
  background: var(--earth);
  color: var(--parch);
}

.kalkulator-page .btn-primary:hover {
  background: var(--bark);
  color: var(--parch);
}

.kalkulator-page .btn-primary:disabled {
  background: var(--linen);
  color: var(--white);
  cursor: not-allowed;
}

.kalkulator-page .btn-ghost {
  background: transparent;
  border: 1px solid var(--sand);
  color: var(--bark);
  flex: 0 0 auto;
  padding: 15px 22px;
}

.kalkulator-page .btn-ghost:hover {
  border-color: var(--stone);
  color: var(--earth);
}

.kalkulator-page .result-hero {
  text-align: center;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--sand);
  margin-bottom: 24px;
}

.kalkulator-page .result-hero .rlabel {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
}

.kalkulator-page .result-hero .rnum {
  font-family: var(--ff-d);
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  color: var(--earth);
}

.kalkulator-page .result-hero .rnum span {
  font-size: 26px;
  color: var(--stone);
}

.kalkulator-page .result-hero .rprod {
  font-size: 14px;
  color: var(--bark);
  margin-top: 8px;
  font-weight: 300;
}

.kalkulator-page .breakdown {
  margin-bottom: 24px;
}

.kalkulator-page .brow {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--sand);
  font-size: 13px;
}

.kalkulator-page .brow .bk {
  color: var(--bark);
  font-weight: 300;
}

.kalkulator-page .brow .bv {
  color: var(--earth);
  font-weight: 500;
}

.kalkulator-page .brow.total {
  border-bottom: none;
  padding-top: 16px;
}

.kalkulator-page .brow.total .bk {
  font-family: var(--ff-d);
  font-size: 18px;
  color: var(--earth);
  font-weight: 500;
}

.kalkulator-page .brow.total .bv {
  font-family: var(--ff-d);
  font-size: 24px;
  color: var(--earth);
}

.kalkulator-page .cost-note {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--bark);
  text-align: center;
  margin: 18px 0 24px;
  font-style: italic;
}

.kalkulator-page .cost-note strong {
  font-weight: 600;
  color: var(--earth);
  font-style: normal;
}

.kalkulator-page .cta-box {
  background: var(--sand);
  border-radius: 4px;
  padding: 24px 22px;
  text-align: center;
}

.kalkulator-page .cta-box h3 {
  font-family: var(--ff-d);
  font-size: 22px;
  font-weight: 400;
  color: var(--earth);
  margin-bottom: 8px;
}

.kalkulator-page .cta-box p {
  font-size: 13px;
  font-weight: 300;
  color: var(--bark);
  margin-bottom: 18px;
  line-height: 1.6;
}

.kalkulator-page .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kalkulator-page .cta-actions .btn {
  width: 100%;
}

.kalkulator-page .btn-viber {
  background: var(--moss);
  color: var(--parch);
}

.kalkulator-page .btn-viber:hover {
  background: var(--moss-lt);
  color: var(--parch);
}

.kalkulator-page .restart {
  text-align: center;
  margin-top: 20px;
}

.kalkulator-page .restart button {
  background: none;
  border: none;
  font-family: var(--ff-b);
  font-size: 12px;
  color: var(--stone);
  cursor: pointer;
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kalkulator-page .restart button:hover {
  color: var(--earth);
}

.kalkulator-page .disc {
  font-size: 11px;
  font-weight: 300;
  color: var(--linen);
  opacity: .65;
  text-align: center;
  margin-top: 24px;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 520px) {
  .kalkulator-page .head h1 { font-size: 30px; }
  .kalkulator-page .choices { grid-template-columns: 1fr; }
  .kalkulator-page .q { font-size: 22px; }
  .kalkulator-page .result-hero .rnum { font-size: 52px; }
  .kalkulator-page .inrow { flex-direction: column; }
  .kalkulator-page .panel { padding: 24px 18px; }
}
