/* /platform/ — продаюча сторінка. Базові токени, кнопки, мітки, фрагменти — з platform.css;
   тут — нові блоки: телефон із вітриною магазину, вкладки, кроки, порівняння, питання. */

.sec-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.sec-head > p:not(.label) {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--dim);
}

section.steps,
section.showcase,
section.sales,
section.compare,
section.why,
section.faq {
  padding: clamp(72px, 9vw, 128px) 0;
  border-top: 1px solid var(--line-soft);
}

section.alt {
  background: rgb(255 255 255 / 0.015);
}

/* ── Перший екран ────────────────────────────────────────────────── */
.hero-shop .hero-in {
  align-items: center;
}

@media (min-width: 980px) {
  .hero-shop .hero-in {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero-shop h1 {
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 36px;
}

.hero-stage .phone {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Картки заходять на телефон лише на ширину його рамки й відступу — кнопки розмірів вільні */
.stage-cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  width: 270px;
  flex-shrink: 0;
  margin-left: -24px;
  padding: 24px 0 48px;
}

.stage-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 980px) and (max-width: 1240px) {
  .stage-cards {
    width: 220px;
  }
}

@media (max-width: 979px) {
  .hero-stage {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 0;
  }
  .stage-cards {
    width: min(100%, 360px);
    margin-left: 0;
    padding: 0;
  }
  .stage-stat {
    display: none;
  }
  .stage-hint {
    position: static;
  }
}

/* ── Телефон і вітрина ───────────────────────────────────────────── */
.phone {
  width: 300px;
  height: 610px;
  padding: 10px;
  border: 1px solid #2c2c2c;
  border-radius: 44px;
  background: #101010;
  box-shadow: 0 50px 90px -30px rgb(0 0 0 / 0.95), 0 0 0 1px rgb(var(--accent-rgb) / 0.08), inset 0 0 0 1px #1d1d1d;
}

.phone-sm {
  width: 290px;
  height: 590px;
  margin: 0 auto;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: #fafaf8;
  color: #141414;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.4;
}

.sf {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 18px 10px;
  border-bottom: 1px solid #ececea;
  background: #fff;
}

.sf-logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.sf-icons {
  display: flex;
  gap: 12px;
  color: #444;
}

.sf-icons svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-cart {
  position: relative;
}

.sf-cart b {
  position: absolute;
  top: -6px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  background: #141414;
  color: #fff;
  font-size: 9px;
}

.sf-body {
  flex: 1;
  overflow: hidden;
  padding: 14px 16px;
}

.sf-img {
  display: grid;
  place-items: center;
  height: 190px;
  border-radius: 14px;
  background: #ecebe7;
}

.sf-img svg {
  width: 78%;
}

.sf-img.sm {
  height: 92px;
  border-radius: 10px;
}

.sf-name {
  margin: 12px 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.sf-sub {
  color: #777;
  font-size: 12px;
}

.sf-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.sf-price s {
  color: #999;
  font-size: 13px;
  font-weight: 400;
}

.sf-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #777;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sf-label button {
  border: 0;
  background: none;
  color: #141414;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.sf-sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.sf-size {
  height: 34px;
  border: 1px solid #dcdcd8;
  border-radius: 8px;
  background: #fff;
  color: #141414;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sf-size:hover {
  border-color: #141414;
}

.sf-size.is-on {
  border-color: #141414;
  background: #141414;
  color: #fff;
}

.sf-size.is-out {
  border-style: dashed;
  color: #bbb;
  text-decoration: line-through;
  cursor: not-allowed;
}

.sf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  background: #141414;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sf-btn[disabled] {
  background: #c9c9c5;
  cursor: default;
}

.sf-btn.ghost {
  border: 1px solid #dcdcd8;
  background: #fff;
  color: #141414;
}

.sf-btn.ok {
  background: #1e7a46;
}

.sf-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #555;
  font-size: 11.5px;
}

.sf-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-h {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.sf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.sf-chip {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #dcdcd8;
  border-radius: 14px;
  background: #fff;
  color: #141414;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sf-chip.is-on {
  border-color: #141414;
  background: #141414;
  color: #fff;
}

.sf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sf-card .sf-name {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.25;
}

.sf-card .sf-price {
  margin: 2px 0 0;
  font-size: 13px;
}

.sf-card .sf-sub {
  font-size: 10.5px;
}

.sf-empty {
  padding: 30px 0;
  color: #888;
  text-align: center;
}

.sf-field {
  margin-bottom: 10px;
}

.sf-field label,
.sf-field > span {
  display: block;
  margin-bottom: 5px;
  color: #777;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sf-input {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dcdcd8;
  border-radius: 10px;
  background: #fff;
  font-weight: 500;
}

.sf-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  text-transform: uppercase;
}

.sf-opts {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sf-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #dcdcd8;
  border-radius: 10px;
  background: #fff;
  color: #141414;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sf-opt small {
  color: #888;
}

.sf-opt.is-on {
  border-color: #141414;
  box-shadow: inset 0 0 0 1px #141414;
}

.sf-sum {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #ececea;
  font-weight: 700;
}

.sf-range {
  width: 100%;
  accent-color: #141414;
}

.sf-result {
  margin: 14px 0 4px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ececea;
  text-align: center;
}

.sf-result b {
  display: block;
  font-size: 40px;
  line-height: 1.1;
}

.sf-ok {
  color: #1e7a46;
  font-weight: 600;
}

.sf-warn {
  color: #a0522d;
  font-weight: 600;
}

.sf-banner {
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #141414;
  color: #fff;
}

.sf-banner small {
  display: block;
  color: #bbb;
}

.sf-google {
  padding: 4px 0;
}

.sf-google .u {
  color: #1e6b3a;
  font-size: 11px;
}

.sf-google .t {
  margin: 2px 0;
  color: #1a3fa6;
  font-size: 15px;
  line-height: 1.3;
}

.sf-google .d {
  color: #555;
  font-size: 12px;
}

.sf-google .r {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  color: #555;
  font-size: 11.5px;
}

.sf-google + .sf-google {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ececea;
}

.sf-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 1px solid #dcdcd8;
  border-radius: 20px;
  background: #fff;
  color: #333;
}

/* ── Факти ───────────────────────────────────────────────────────── */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.facts-in {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 18px;
  border-left: 1px solid var(--line);
}

.fact:nth-child(odd) {
  border-left: 0;
}

.fact b {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.fact span {
  color: var(--dim);
  font-size: 14px;
}

@media (min-width: 900px) {
  .facts-in {
    grid-template-columns: repeat(4, 1fr);
  }
  .fact:nth-child(odd) {
    border-left: 1px solid var(--line);
  }
  .fact:first-child {
    border-left: 0;
  }
}

@media (max-width: 899px) {
  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ── Кроки ───────────────────────────────────────────────────────── */
.step-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .step-list {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
  }
  .step-list li:nth-child(1) {
    min-height: 220px;
  }
  .step-list li:nth-child(2) {
    min-height: 260px;
  }
  .step-list li:nth-child(3) {
    min-height: 300px;
  }
  .step-list li:nth-child(4) {
    min-height: 340px;
    border-color: rgb(var(--accent-rgb) / 0.5);
  }
}

.step-list li {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.step-n {
  margin-bottom: auto;
  padding-bottom: 28px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.step-list p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 14px;
}

/* ── Вкладки й панелі ────────────────────────────────────────────── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.tabs button {
  padding: 10px 16px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.tabs button:first-child {
  border-left: 0;
}

.tabs button:hover {
  color: var(--text);
}

.tabs button.is-active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

@media (max-width: 640px) {
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
  }
  .tabs button {
    flex-shrink: 0;
  }
}

.panel {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
  }
  .panel-static {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.panel-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.panel-copy > p:not(.label) {
  max-width: 460px;
  margin: 0;
  color: var(--dim);
}

.panel-static .panel-copy > p:not(.label) {
  margin-top: 22px;
}

.ticks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 17px;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.panel-frag {
  position: relative;
}

.panel-frag::before {
  content: '';
  position: absolute;
  inset: 5% 10%;
  background: radial-gradient(ellipse at center, rgb(var(--accent-rgb) / 0.16), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.fade-in {
  animation: fade-in 0.28s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ── Канали ──────────────────────────────────────────────────────── */
.sales-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 900px) {
  .sales-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 56px;
  }
}

.chan-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.chan {
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chan h3 {
  font-size: 14px;
}

.chan p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 14px;
}

/* ── Порівняння ──────────────────────────────────────────────────── */
.cmp {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.cmp-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.cmp-row:first-child {
  border-top: 0;
}

.cmp-row span {
  padding: 16px 18px;
  font-size: 15px;
}

.cmp-row span:first-child {
  color: var(--dim);
}

.cmp-row span:nth-child(2) {
  color: var(--dim);
  border-left: 1px solid var(--line);
}

.cmp-row span:nth-child(3) {
  border-left: 1px solid rgb(var(--accent-rgb) / 0.4);
  background: rgb(var(--accent-rgb) / 0.07);
}

.cmp-h span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cmp-h span:nth-child(3) {
  color: var(--text);
}

@media (max-width: 640px) {
  .cmp-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .cmp-row span:first-child {
    grid-column: 1 / -1;
    padding-bottom: 0;
    color: var(--text);
    font-weight: 600;
  }
  .cmp-row span:nth-child(2) {
    border-left: 0;
  }
  .cmp-h span:first-child {
    display: none;
  }
  .cmp-row span {
    font-size: 14px;
  }
}

/* ── Чому ми ─────────────────────────────────────────────────────── */
.why-grid {
  margin-top: 0;
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-top: 0;
  }
  .why-grid::before,
  .why-grid .sol::before {
    display: none;
  }
  .why-grid .sol:nth-child(2) {
    margin-top: 0;
  }
  .why-grid .sol:nth-child(even) {
    transform: translateY(40px);
  }
}

/* ── Питання ─────────────────────────────────────────────────────── */
.faq-in {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .faq-in {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 22px;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 600px;
  margin: 0;
  padding: 0 0 22px;
  color: var(--dim);
}

/* ── Тости ───────────────────────────────────────────────────────── */
.toast-zone {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: 360px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.9);
  animation: fade-in 0.2s ease-out;
}

/* Фрагменти адмінки на всю ширину колонки */
.panel-frag .fcard,
.sales-grid .fcard {
  width: 100%;
}

.chart-card svg {
  display: block;
  width: 100%;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.kpi-row > div {
  padding: 12px 16px;
  border-left: 1px solid var(--line);
}

.kpi-row > div:first-child {
  border-left: 0;
}

.kpi-row small {
  display: block;
  color: var(--dim);
  font-size: 11.5px;
}

.kpi-row b {
  font-size: 18px;
  font-weight: 600;
}

.mini-orders .pb-list-row {
  padding: 10px 14px;
}

.mini-orders .pb-list-row.is-new {
  animation: pb-flash 1.6s ease-out;
}

.ws-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.ws-row:first-child {
  border-top: 0;
}

.ws-run {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}

.ws-run span {
  min-width: 26px;
  padding: 2px 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 10.5px;
  text-align: center;
}

.ws-run span b {
  display: block;
  font-size: 11px;
}

.phone-screen svg.si {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-result svg.si {
  width: 36px;
  height: 36px;
  color: #1e7a46;
}

.sf-mt {
  margin-top: 14px;
}

.sf-pt {
  padding-top: 40px;
}

.sf-line {
  margin-bottom: 12px;
}

.sf-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.sf-btn.ghost svg.si {
  width: 15px;
  height: 15px;
}

@media (max-width: 560px) {
  .pb-frag .pb-step:not(.is-current) {
    gap: 0;
    font-size: 0;
  }
  .pb-frag .pb-step-line {
    margin: 0 4px;
    min-width: 6px;
  }
  .pb-frag .pb-stepper {
    gap: 2px;
  }
  .pb-frag .pb-stepper button {
    width: 18px;
    height: 18px;
  }
  .pb-frag .pb-stepper b {
    min-width: 12px;
    font-size: 14px;
  }
  .pb-frag .pb-size-edit {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .pb-frag .pb-size-cell {
    padding: 6px 2px;
  }
  .pb-frag .fcard-head .pb-mono {
    display: none;
  }
  .pb-frag .fcard-body {
    padding: 12px;
  }
  .kpi-row > div {
    padding: 10px;
  }
  .kpi-row b {
    font-size: 14px;
  }
  .ws-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ws-row > b {
    grid-column: 1 / -1;
    text-align: right;
  }
}

.ho-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.sf-opt {
  padding: 7px 12px;
}

.sf-field {
  margin-bottom: 8px;
}

.sf-thumb {
  width: 46px;
  height: 46px;
}

.sf-line .sf-name {
  margin: 0;
  font-size: 13px;
}

.sf-img.sf-thumb {
  height: 46px;
  border-radius: 8px;
}
