/* =====================================================================
   StatusCase Partner (partner.statuscase.ua) — page-specific styles.
   Loaded AFTER styles.css (the copied base brand system) and only adds
   what the partner page needs on top: hero sizing, model steps,
   product cards, invest preset chips, included grid, why cards,
   compact footer. Palette stays strictly white/red/blue/navy/graphite.
   ===================================================================== */

/* ------------------------------ Hero ------------------------------ */
/* The K20 photo is a tall vertical shot — cap it tighter than the B2C
   automat hero so the text column keeps the visual weight. */
.hero__media img { max-width: 340px; }
.hero .eyebrow { margin-bottom: 14px; }

@media (min-width: 860px) {
  .hero__media img { max-width: 400px; }
}

/* Hero hook badge — same visual language as B2C (.hook-badge) but neutral
   copy, no red/green inset needed since it's a single short phrase. */
.hero .hook-badge { margin-bottom: 16px; }

/* Trust row: 4 items on the partner hero (vs 3 base rule in styles.css) */
.hero__trust { flex-wrap: wrap; row-gap: 6px; }

/* ------------- #model — extra note under the 3 steps -------------- */
.model-launch-note {
  max-width: 720px; margin: 14px auto 0; text-align: center;
  font-size: 14px; line-height: 1.55; color: var(--sc-muted);
}

/* ---------------------- #model — як працює ------------------------ */
/* Numbered step cards (light-background sibling of the B2C hook steps):
   red / blue / navy badges, white cards. */
.model-steps {
  list-style: none; margin: 0 auto; padding: 0; max-width: 960px;
  display: grid; gap: 12px;
}
.model-steps li {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius); padding: 16px 18px;
  font-weight: 700; font-size: 15.5px; line-height: 1.4; color: var(--sc-ink);
}
.model-steps b {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; font-weight: 900; color: #fff;
}
.model-steps li:nth-child(1) b { background: var(--sc-red); }
.model-steps li:nth-child(2) b { background: var(--sc-blue); }
.model-steps li:nth-child(3) b { background: var(--sc-navy); }
.model-note {
  max-width: 640px; margin: 20px auto 0; text-align: center;
  font-size: 14.5px; color: var(--sc-muted);
}

@media (min-width: 860px) {
  .model-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .model-steps li {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 22px 22px 24px;
  }
  .model-note { margin-top: 26px; }
}

/* ------------------- #products — три формати ---------------------- */
.products-grid { display: grid; gap: 16px; max-width: 1180px; margin: 0 auto; }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 2px solid var(--sc-line);
  border-radius: var(--sc-radius); box-shadow: var(--sc-shadow);
}
.product-card__photo {
  margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sc-cloud);
}
.product-card__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
}
.product-card__body {
  flex: 1; display: flex; flex-direction: column; gap: 9px;
  padding: 18px 20px 22px;
}
.product-card__top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px 14px; flex-wrap: wrap;
}
.product-card__top h3 { font-size: 21px; color: var(--sc-ink); }
.product-card__price { font-size: 24px; font-weight: 900; color: var(--sc-navy); white-space: nowrap; }
/* "комплектація і ціна уточнюються" flag on the big automat */
.product-card__flag {
  margin: 0; align-self: flex-start;
  background: rgba(39, 170, 225, .14); color: var(--sc-navy);
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
}
.product-card__sub { margin: 0; font-size: 14px; font-weight: 600; color: var(--sc-muted); }
.product-card__list { list-style: none; margin: 5px 0 0; padding: 0; display: grid; gap: 7px; }
.product-card__list li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.45; color: var(--sc-ink);
}
/* Blue check mark — same colour-vision-safe mark as the main landing */
.product-card__list li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%; background: var(--sc-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.products-note {
  max-width: 660px; margin: 18px auto 0; text-align: center;
  font-size: 13.5px; color: var(--sc-muted);
}

@media (min-width: 860px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .product-card__body { padding: 22px 24px 26px; }
  .products-note { margin-top: 26px; }
}

/* Framed callout line right under the products note */
.products-frame {
  max-width: 660px; margin: 16px auto 0; text-align: center;
  font-size: 15px; font-weight: 700; color: var(--sc-navy);
  background: rgba(39, 170, 225, .1); border: 1px solid rgba(39, 170, 225, .3);
  border-radius: var(--sc-radius-sm); padding: 14px 18px;
}

/* ------------- China vs StatusCase comparison table ---------------- */
.compare-wrap { max-width: 900px; margin: 34px auto 0; }
.compare-wrap h3 {
  text-align: center; font-size: clamp(20px, 4.5vw, 26px);
  color: var(--sc-ink); margin-bottom: 16px;
}
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%; min-width: 560px; border-collapse: collapse;
  background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 12px 16px; text-align: left; font-size: 13.5px; line-height: 1.45;
  border-bottom: 1px solid var(--sc-line); vertical-align: top;
}
.compare-table thead th {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  color: #fff; background: var(--sc-navy);
}
.compare-table thead th:first-child { background: var(--sc-navy); }
.compare-table tbody th {
  font-weight: 700; color: var(--sc-ink); background: var(--sc-cloud); white-space: nowrap;
}
.compare-table tbody td:nth-child(2) { color: var(--sc-muted); }
.compare-table tbody td:nth-child(3) { color: var(--sc-ink); font-weight: 600; }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-note {
  max-width: 700px; margin: 14px auto 0; text-align: center;
  font-size: 13.5px; color: var(--sc-muted);
}

@media (min-width: 640px) {
  .compare-table th, .compare-table td { font-size: 14.5px; padding: 14px 20px; }
}

/* ------------------- #quiz — підбір апарата ------------------------ */
.quiz-wrap {
  max-width: 720px; margin: 0 auto; background: #fff;
  border: 1px solid var(--sc-line); border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow); padding: 26px 20px 28px;
}
.quiz-progress {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 13px; font-weight: 700; color: var(--sc-muted);
}
.quiz-progress__bar {
  flex: 1; height: 6px; border-radius: 999px; background: var(--sc-line); overflow: hidden;
}
.quiz-progress__fill {
  height: 100%; background: var(--sc-blue); border-radius: 999px;
  transition: width .25s ease;
}
.quiz-step { display: none; }
.quiz-step.is-active { display: block; }
.quiz-step h3 {
  font-size: clamp(18px, 4.5vw, 22px); color: var(--sc-ink); margin-bottom: 16px;
  text-align: center;
}
.quiz-options { display: grid; gap: 10px; }
.quiz-opt {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font-family: inherit; background: #fff; border: 2px solid var(--sc-line);
  border-radius: var(--sc-radius-sm); padding: 14px 18px;
  font-size: 15px; font-weight: 700; color: var(--sc-ink);
  transition: border-color .15s ease, background .15s ease;
}
.quiz-opt:hover { border-color: var(--sc-blue); background: rgba(39,170,225,.06); }
.quiz-opt:active { border-color: var(--sc-navy); }
.quiz-back {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--sc-muted);
  padding: 6px 2px;
}
.quiz-back:hover { color: var(--sc-navy); }

.quiz-result { text-align: center; }
.quiz-result__card {
  background: var(--sc-cloud); border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm); padding: 22px 20px; margin-bottom: 16px;
}
.quiz-result__title { font-size: clamp(19px, 5vw, 24px); color: var(--sc-navy); margin-bottom: 8px; }
.quiz-result__title b { color: var(--sc-red); }
.quiz-result__why { font-size: 14.5px; color: var(--sc-muted); line-height: 1.5; margin: 0; }
.quiz-result__actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center;
}
.quiz-retry {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 700; color: var(--sc-muted); text-decoration: underline;
  padding: 8px 4px;
}
.quiz-retry:hover { color: var(--sc-navy); }

/* --------------------- #calc — окупність -------------------------- */
.calc-wrap { max-width: 940px; margin: 0 auto; }

/* Margin-per-case anchor line above the mode tabs */
.calc-anchor {
  max-width: 720px; margin: 0 auto 18px; text-align: center;
  font-size: 15px; line-height: 1.55; color: var(--sc-ink);
}
.calc-anchor b { color: var(--sc-navy); }

/* Machine mode tabs above the calculator (K20 / big automat).
   Switching resets the calculator fields to that mode's defaults. */
.calc-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.calc-mode {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 18px;
  font-family: inherit; font-size: 14.5px; font-weight: 800; line-height: 1.2;
  color: var(--sc-navy); background: #fff; border: 2px solid var(--sc-line);
  border-radius: 999px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.calc-mode:hover { border-color: var(--sc-blue); }
.calc-mode.is-active { background: var(--sc-navy); border-color: var(--sc-navy); color: #fff; }

/* Small profit clarifier in the results column ("з урахуванням оренди") */
.calc__results .lbl-note {
  display: block; margin-top: 2px;
  font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .6);
}
/* Safety net: the hidden attribute must always win over display rules
   (used by the rent field and the profit note when switching modes). */
[hidden] { display: none !important; }

/* CTA link under the calculator results */
.calc__cta {
  display: block; text-align: center; margin-top: 18px;
  font-size: 15px; font-weight: 800; color: var(--sc-red); text-decoration: none;
}
.calc__cta:hover { text-decoration: underline; }

/* ----------------- Фінмодель — compact plate ----------------------- */
.finmodel {
  max-width: 720px; margin: 34px auto 0; background: var(--sc-navy);
  border-radius: var(--sc-radius); padding: 26px 24px; color: #fff;
  box-shadow: var(--sc-shadow);
}
.finmodel h3 { font-size: clamp(18px, 4.5vw, 22px); color: #fff; margin-bottom: 8px; }
.finmodel p { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.82); margin: 0 0 18px; }
.finmodel-form { display: flex; flex-wrap: wrap; gap: 10px; }
.finmodel-form input[type="text"] {
  flex: 1 1 220px; min-width: 0; padding: 13px 16px; border-radius: var(--sc-radius-sm);
  border: 2px solid transparent; font-family: inherit; font-size: 15px;
}
.finmodel-form button {
  flex: 0 0 auto; white-space: nowrap;
}
.finmodel-msg {
  margin-top: 12px; font-size: 14px; font-weight: 700; color: #fff; display: none;
}
.finmodel-msg.show { display: block; }

/* ------------------ #included — що входить у старт ----------------- */
.included-grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: 980px;
  display: grid; gap: 12px;
}
.included-grid li {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid var(--sc-line); border-radius: 14px;
  padding: 14px 16px;
  font-size: 14.5px; font-weight: 700; color: var(--sc-ink); line-height: 1.35;
}
.inc-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(39, 170, 225, .14); color: var(--sc-navy);
  display: grid; place-items: center;
}

@media (min-width: 640px) {
  .included-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .included-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .included-grid li { padding: 18px; }
}

.included-cta { text-align: center; margin-top: 26px; }

/* -------------------- #split — Ми / Ти ------------------------------ */
.split-grid {
  display: grid; gap: 16px; max-width: 980px; margin: 0 auto;
}
.split-col {
  background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius);
  padding: 22px 22px 24px;
}
.split-col h3 { font-size: 18px; margin-bottom: 14px; }
.split-col--us { border-top: 4px solid var(--sc-blue); }
.split-col--you { border-top: 4px solid var(--sc-red); }
.split-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.split-col li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.45; color: var(--sc-ink);
}
.split-col li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%; background: var(--sc-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.split-col--you li::before { background: var(--sc-red); }
.split-note {
  max-width: 720px; margin: 20px auto 0; text-align: center;
  font-size: 14px; color: var(--sc-muted);
}

@media (min-width: 760px) {
  .split-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

/* -------------------- #why — чому це працює ----------------------- */
.why-grid { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; }
.why-card {
  background: #fff; border: 1px solid var(--sc-line);
  border-left: 4px solid var(--sc-blue);
  border-radius: var(--sc-radius); padding: 20px 22px;
}
.why-card:nth-child(1) { border-left-color: var(--sc-red); }
.why-card:nth-child(2) { border-left-color: var(--sc-blue); }
.why-card:nth-child(3) { border-left-color: var(--sc-navy); }
.why-card h3 { font-size: 17px; line-height: 1.3; color: var(--sc-navy); margin-bottom: 8px; }
.why-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--sc-ink); }

@media (min-width: 860px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .why-card { padding: 24px; }
}

/* ------------------------ #form — 2 steps -------------------------- */
.form-progress {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 13px; font-weight: 700; color: var(--sc-muted);
}
.form-progress__bar {
  flex: 1; height: 6px; border-radius: 999px; background: var(--sc-line); overflow: hidden;
}
.form-progress__fill {
  height: 100%; width: 50%; background: var(--sc-blue); border-radius: 999px;
  transition: width .25s ease;
}
.form-step { display: none; }
.form-step.is-active { display: block; }

.choice-group { margin: 6px 0 4px; }
.choice-group__label {
  display: block; font-size: 13.5px; font-weight: 700; color: var(--sc-ink); margin-bottom: 8px;
}
.choice-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-btn {
  flex: 1 1 auto; cursor: pointer; font-family: inherit;
  background: #fff; border: 2px solid var(--sc-line); border-radius: 999px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 700; color: var(--sc-ink);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.choice-btn:hover { border-color: var(--sc-blue); }
.choice-btn.is-selected { background: var(--sc-navy); border-color: var(--sc-navy); color: #fff; }

.form-step-actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.form-back {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 14.5px; font-weight: 700; color: var(--sc-muted); padding: 8px 4px;
}
.form-back:hover { color: var(--sc-navy); }

/* Telegram button next to the phone in contact-mini */
.contact-mini a.tg-link { color: var(--sc-blue); }
.contact-mini a.tg-link:hover { color: var(--sc-navy); }

/* ---------------------- Sticky mobile CTA bar ----------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--sc-line);
  box-shadow: 0 -8px 24px rgba(21,36,107,.12);
  transform: translateY(100%); transition: transform .2s ease;
}
.sticky-cta.show { display: flex; }
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta__cta {
  flex: 1; text-align: center; padding: 13px 16px; font-size: 15px;
}
.sticky-cta__call {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sc-navy); color: #fff;
}

@media (min-width: 860px) {
  .sticky-cta { display: none !important; }
}

/* ------------------------ Compact footer -------------------------- */
.pfooter { padding: 36px 0 22px; }
.pfooter-grid { display: grid; gap: 22px; justify-items: start; align-items: start; }
.pfooter-links { display: grid; gap: 4px; }
.pfooter-links a {
  display: inline-flex; align-items: center; padding: 4px 0;
  color: rgba(255, 255, 255, .92); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
}
.pfooter-links a:hover { color: #fff; text-decoration: underline; }

@media (min-width: 860px) {
  .pfooter-grid { grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
  .pfooter-links { justify-self: center; }
}
