/* Гормолзавод брендбугы (2026): түстер мен үлестер ТЗ 3.3 бойынша */
:root {
  --cream: #FCF8F3;   /* негізгі 35% */
  --sky: #A4CFFF;     /* негізгі 30% */
  --blue: #0861C6;    /* акцент 10% */
  --white: #FFFDFC;   /* акцент 10% */
  --red: #F84764;     /* қосымша 5% */
  --yellow: #FFF176;  /* қосымша 5% */
  --navy: #1D3484;    /* қосымша 5% */
  --smoke: #B8742F;   /* ыс белгісі, тек кішкене белгілерде */
  --ink: #1D3484;
  --muted: #5B6B8F;
  --line: #D9E3F2;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 16px/1.5 "Open Sans", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2 { font-weight: 800; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 6vw, 46px); }
h2 { font-size: 22px; margin-top: 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--white); border-bottom: 1px solid var(--line);
}
.brand img { height: 46px; width: auto; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  font: 700 13px "Open Sans", sans-serif; padding: 7px 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.lang button.on { background: var(--blue); color: #fff; }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; }
.screen.narrow { max-width: 480px; margin: 0 auto; padding-top: 20px; }

/* hero */
.hero { display: grid; gap: 20px; padding-top: 20px; align-items: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr 0.9fr; gap: 40px; padding-top: 40px; } }
.tag {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--smoke); border: 1px solid var(--smoke); border-radius: 999px; padding: 3px 10px;
}
.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-img img { max-height: min(72vh, 640px); border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--sky); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border-radius: 12px; font: 700 16px "Open Sans", sans-serif; text-decoration: none; cursor: pointer; border: 1px solid var(--blue);
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:active { background: var(--navy); }
.btn.ghost { background: var(--white); color: var(--blue); }
.btn.wide { width: 100%; margin: 8px 0 16px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { background: none; border: 0; color: var(--muted); font: 600 14px "Open Sans", sans-serif; cursor: pointer; text-decoration: underline; }

.block { margin-top: 44px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.num {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky); color: var(--navy); font-weight: 800;
}

.ladder { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
@media (min-width: 820px) { [data-screen="home"] .ladder { grid-template-columns: repeat(4, 1fr); } }
.ladder li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.ladder .lv { font-weight: 800; color: var(--blue); font-size: 15px; }
.ladder .pz { font-weight: 600; margin-top: 2px; }
.ladder .ds { color: var(--muted); font-size: 14px; margin-top: 2px; }
.ladder li.got { border-color: var(--blue); background: #EEF5FF; }
.ladder li.got .lv::after { content: " ✓"; }

.about { background: var(--sky); border-radius: var(--radius); padding: 22px; }
.about p { margin: 0; color: var(--navy); }

/* forms */
form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
form label > span { display: block; margin-bottom: 6px; }
input, select {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #BFD0EA; border-radius: 12px;
  background: var(--white); color: var(--ink); font: 400 17px "Open Sans", sans-serif;
}
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.code-input { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.code-input.big { font-size: 26px; text-align: center; min-height: 64px; }
.hint { display: block; font-weight: 400; color: var(--muted); margin-top: 6px; font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 22px; min-height: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--blue); }
.err { color: #C21F3D; background: #FFF0F2; border: 1px solid #FFC9D2; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.back { display: inline-block; margin-bottom: 14px; text-decoration: none; font-weight: 600; font-size: 14px; }

/* cabinet */
.hello { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hello h1 { font-size: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 12px 0; }
.count { display: flex; align-items: baseline; gap: 8px; }
.count b { font-size: 44px; color: var(--blue); line-height: 1; }
.bar { height: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; margin: 14px 0 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .5s ease; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.history code { font: 700 15px "Open Sans", sans-serif; letter-spacing: .08em; }
.done-title { font-weight: 800; font-size: 20px; color: var(--blue); }
.rules li { margin-bottom: 10px; }

.foot {
  max-width: 1080px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--line);
}
