/* =====================================================================
   فام مارکت — صفحه نخست: هیرو و پلکان قیمت، اسلایدر، مشوق‌ها، سطوح، اقساط
   ===================================================================== */

/* هیرو */
.hero { position: relative; padding-block: 44px 72px; background:
  radial-gradient(900px 420px at 85% -10%, rgba(209, 157, 54, .12), transparent 60%),
  linear-gradient(180deg, #fff 0%, var(--bg) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero__title { display: grid; font-size: clamp(38px, 5.4vw, 70px); font-weight: 900; line-height: 1.18; color: var(--navy-900); }
.hero__title span:last-child { color: var(--navy-600); }
.hero__lead { margin-top: 20px; font-size: 16.5px; color: var(--ink-2); line-height: 2.05; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: #fff; color: var(--gold-600); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.hero__facts span { display: grid; line-height: 1.5; }
.hero__facts b { font-size: 15px; font-weight: 900; color: var(--navy-900); }
.hero__facts small { font-size: 12px; color: var(--ink-3); }

.hero__visual { position: relative; padding-bottom: 36px; }
.hero__photo { border-radius: 36px; overflow: hidden; aspect-ratio: 1 / .96; width: 82%; margin-right: auto; background: var(--well); box-shadow: var(--sh-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* پلکان قیمت */
.ladder { position: absolute; bottom: 0; right: 0; width: min(420px, 78%); background: #fff; border-radius: 26px; box-shadow: var(--sh-3); padding: 18px; border: 1px solid var(--line); }
.ladder__head { display: flex; align-items: center; gap: 12px; }
.ladder__thumb { width: 46px; height: 46px; border-radius: 13px; overflow: hidden; flex: none; background: var(--well); }
.ladder__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ladder__head b { display: block; font-size: 16px; font-weight: 900; color: var(--navy-900); }
.ladder__head small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.ladder__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: end; height: 150px; margin-top: 16px; }
.ladder__step { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; cursor: pointer; }
.ladder__bar { align-self: end; position: relative; height: var(--h); border-radius: 12px 12px 6px 6px; background: var(--navy-50); border: 1px solid var(--navy-100); transition: background .25s, height .35s var(--ease), border-color .25s; display: flex; justify-content: center; }
.ladder__bar em { position: absolute; top: 6px; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--navy-600); white-space: nowrap; }
.ladder__step.is-in .ladder__bar { background: var(--navy-100); border-color: var(--navy-200); }
.ladder__step.is-on .ladder__bar { background: var(--navy-700); border-color: var(--navy-700); box-shadow: 0 10px 20px -10px rgba(28, 57, 84, .8); }
.ladder__step.is-on .ladder__bar::before { content: ''; position: absolute; top: -1px; right: -1px; left: -1px; height: 6px; border-radius: 12px 12px 0 0; background: var(--gold-500); }
.ladder__step.is-on .ladder__bar em { color: #fff; top: 12px; }
.ladder__step:hover:not(.is-on) .ladder__bar { border-color: var(--navy-300); }
.ladder__qty { display: grid; text-align: center; line-height: 1.35; }
.ladder__qty b { font-size: 12px; font-weight: 800; }
.ladder__qty small { font-size: 10.5px; color: var(--ink-3); }
.ladder__step.is-on .ladder__qty b { color: var(--navy-700); }
.ladder__range { width: 100%; margin-top: 10px; appearance: none; background: transparent; height: 24px; }
.ladder__range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--navy-50); border: 1px solid var(--navy-100); }
.ladder__range::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-500); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(19, 38, 58, .35); margin-top: -9px; cursor: grab; }
.ladder__range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--navy-50); }
.ladder__range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--gold-500); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(19, 38, 58, .35); }
.ladder__out { display: grid; gap: 10px; margin-top: 6px; }
.ladder__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.ladder__price small { width: 100%; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.ladder__price b { font-size: 30px; font-weight: 900; color: var(--navy-900); line-height: 1.1; }
.ladder__price > span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.ladder__price.is-locked b .price__blur { font-size: 30px; }
.ladder__save { margin-right: auto; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--green-700); background: var(--green-50); border-radius: 8px; padding: 0 8px; line-height: 26px; }
.ladder__save .ic { width: 15px; height: 15px; }
.ladder__stack { display: grid; gap: 4px; }
.ladder__stack li { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); padding: 0 4px; }
.ladder__stack b { color: var(--gold-700); font-weight: 800; }
.ladder__total { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 8px 4px 0; border-top: 1px dashed var(--line); color: var(--ink-2); }
.ladder__total b { font-size: 15px; color: var(--navy-900); font-weight: 900; }
.ladder__note { display: flex; gap: 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }
.ladder__note .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--gold-600); }

/* دسته‌ها */
.sec--cats { padding-top: 16px; }
.cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.cat { display: grid; justify-items: center; gap: 4px; text-align: center; }
.cat__img { width: 100%; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--well); margin-bottom: 6px; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat__img { transform: translateY(-3px); box-shadow: var(--sh-2); }
.cat b { font-size: 14px; font-weight: 800; }
.cat small { font-size: 12px; color: var(--ink-3); }

/* اسلایدر */
.slider { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--navy-900); }
.slider__track { display: flex; transition: transform .7s var(--ease); touch-action: pan-y; user-select: none; }
.slider__track img { -webkit-user-drag: none; pointer-events: none; }
.slide { position: relative; flex: 0 0 100%; min-height: 300px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.slide__img { position: absolute; inset: 0; }
.slide__img img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(13, 30, 48, .94) 0%, rgba(13, 30, 48, .78) 38%, rgba(13, 30, 48, .08) 72%); }
.slide--coffee::after { background: linear-gradient(to left, rgba(38, 22, 12, .94) 0%, rgba(38, 22, 12, .72) 40%, rgba(38, 22, 12, .05) 75%); }
.slide__txt { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: start; padding: 40px 48px; max-width: 560px; }
.slide__txt b { font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; line-height: 1.45; color: #fff; }
.slide__txt > span { font-size: 15px; opacity: .88; line-height: 1.9; }
.slide__txt em { font-style: normal; margin-top: 8px; }
.slider__ui { position: absolute; left: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.slider__dots { display: flex; gap: 4px; padding: 0 6px; }
.slider__dots button { width: 24px; height: 24px; display: grid; place-items: center; }
.slider__dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .3s var(--ease), background .3s; }
.slider__dots .is-on i { width: 22px; background: var(--gold-400); }

/* مشوق‌ها */
.perks { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 32px; border-radius: var(--r-xl); background: var(--gold-50); border: 1px solid var(--gold-100); }
.perks__intro h2 { font-size: 26px; font-weight: 900; color: var(--navy-900); line-height: 1.5; }
.perks__intro p { margin: 10px 0 18px; color: var(--ink-2); font-size: 14.5px; line-height: 2; }
.perks__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.perk { display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid rgba(209, 157, 54, .22); }
.perk__ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-700); margin-bottom: 4px; }
.perk__num { font-size: 26px; font-weight: 900; color: var(--navy-800); line-height: 1.3; }
.perk h3 { font-size: 15px; }
.perk p { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.perk__you { display: flex; align-items: center; gap: 5px; margin-top: 6px; padding: 6px 8px; border-radius: 10px; background: var(--navy-50); color: var(--navy-700); font-size: 12px; font-weight: 700; line-height: 1.6; }
.perk__you .ic { width: 15px; height: 15px; flex: none; }

/* نوار متمایز سبدها */
.sec--band { background: #fff; border-block: 1px solid var(--line); }

/* پلکان سطوح */
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.stair { position: relative; display: grid; gap: 14px; padding: 20px 18px calc(20px + var(--i) * 30px); border-radius: 22px; background: #fff; border: 1px solid var(--line); transition: box-shadow .25s; overflow: visible; }
.stair::before { content: ''; position: absolute; top: 0; right: 18px; left: 18px; height: 4px; border-radius: 0 0 4px 4px; background: var(--lv); }
.stair:hover { box-shadow: var(--sh-2); }
.stair.is-current { border-color: var(--lv); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lv) 18%, transparent), var(--sh-2); }
.stair__you { position: absolute; top: -13px; left: 16px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--lv); color: #fff; font-size: 11.5px; font-weight: 800; }
.stair__you .ic { width: 14px; height: 14px; }
.stair__head { display: grid; gap: 2px; }
.stair__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--lvt); color: var(--lv); margin-bottom: 8px; }
.stair__ic .ic { width: 24px; height: 24px; }
.stair h3 { font-size: 19px; font-weight: 900; }
.stair__head small { font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.stair__list { display: grid; gap: 7px; font-size: 13px; }
.stair__list > div { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 7px; border-bottom: 1px dashed var(--line); }
.stair__list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.stair__list dt { color: var(--ink-2); }
.stair__list dd { font-weight: 800; color: var(--navy-900); }
.stair__step { position: absolute; bottom: 8px; right: 8px; left: 8px; height: calc(var(--i) * 30px - 6px); border-radius: 14px; background: repeating-linear-gradient(-45deg, var(--lvt) 0 7px, transparent 7px 14px); border: 1px dashed color-mix(in srgb, var(--lv) 30%, transparent); }
.stair[style*="--i:0"] .stair__step { display: none; }

/* اقساط */
.instsec { display: grid; grid-template-columns: 1fr 460px; gap: 48px; align-items: center; }
.instsec__copy h2, .instsec__copy h1 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 900; color: var(--navy-900); line-height: 1.5; }
.instsec__copy > p { margin-top: 12px; color: var(--ink-2); line-height: 2.05; max-width: 56ch; }
.instsec__plans { display: grid; gap: 10px; margin: 22px 0; }
.instsec__plans li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.instsec__plans .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--navy-50); color: var(--navy-700); }
.instsec__plans span { display: grid; line-height: 1.6; }
.instsec__plans b { font-size: 14.5px; }
.instsec__plans small { font-size: 12.5px; color: var(--ink-3); }
.instsec--page { padding-block: 16px 8px; }

.calc { background: var(--navy-900); color: #fff; border-radius: var(--r-xl); padding: 24px; box-shadow: var(--sh-3); position: relative; overflow: hidden; }
.calc::before { content: ''; position: absolute; top: -80px; left: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(209, 157, 54, .25), transparent 70%); }
.calc__head { position: relative; display: grid; gap: 2px; }
.calc__head b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.calc__head b .ic { color: var(--gold-400); }
.calc__head small { font-size: 12.5px; opacity: .7; }
.calc__amount { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.calc__amount > span { width: 100%; font-size: 12.5px; opacity: .7; }
.calc__amount output { font-size: 30px; font-weight: 900; }
.calc__amount small { font-size: 13px; opacity: .7; }
.calc__range { width: 100%; appearance: none; background: transparent; height: 28px; margin-top: 6px; position: relative; }
.calc__range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .15); }
.calc__range::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-500); border: 4px solid var(--navy-900); box-shadow: 0 0 0 2px var(--gold-500); margin-top: -8px; cursor: grab; }
.calc__range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .15); }
.calc__range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--gold-500); border: 3px solid var(--navy-900); }
.calc__scale { display: flex; justify-content: space-between; font-size: 11.5px; opacity: .6; }
.calc__plans { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.calc__plans button { height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .85); transition: .15s; }
.calc__plans button:hover { background: rgba(255, 255, 255, .12); }
.calc__plans button.is-on { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.calc__out { position: relative; margin-top: 16px; display: grid; gap: 12px; }
.calc__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.calc__big small { width: 100%; font-size: 12.5px; opacity: .75; }
.calc__big b { font-size: 28px; font-weight: 900; color: var(--gold-400); }
.calc__big span { font-size: 13px; opacity: .7; }
.calc__rows { display: grid; gap: 8px; font-size: 13px; }
.calc__rows li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.calc__rows li:last-child { border: 0; padding: 0; }
.calc__rows span { opacity: .75; }
.calc__rows b { text-align: left; }
.calc__warn, .calc__hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: rgba(224, 182, 88, .14); color: var(--gold-200); line-height: 1.7; }
.calc__warn .ic, .calc__hint .ic { width: 16px; height: 16px; flex: none; }

/* مراحل */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: flow; position: relative; }
.flow li { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.flow li > .ic { width: 28px; height: 28px; color: var(--navy-600); }
.flow__n { position: absolute; top: 16px; left: 18px; font-size: 40px; font-weight: 900; line-height: 1; color: var(--navy-50); -webkit-text-stroke: 1px var(--navy-100); }
.flow h3 { font-size: 16px; }
.flow p { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.flow li:not(:last-child)::after { content: ''; position: absolute; top: 36px; left: -12px; width: 10px; height: 10px; border-top: 2px solid var(--navy-200); border-left: 2px solid var(--navy-200); transform: rotate(-45deg); z-index: 1; }

/* بخش‌های مخاطب */
.segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.seg-card { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 3.6; border-radius: 24px; overflow: hidden; color: #fff; background: var(--navy-800); }
.seg-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.seg-card:hover img { transform: scale(1.05); }
.seg-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 30, 48, .95) 8%, rgba(13, 30, 48, .35) 50%, transparent 75%); }
.seg-card__txt { position: relative; z-index: 1; display: grid; gap: 6px; padding: 20px; }
.seg-card__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-500); color: var(--navy-950); margin-bottom: 4px; }
.seg-card b { font-size: 17px; color: #fff; }
.seg-card small { font-size: 13px; line-height: 1.85; opacity: .85; }

/* مشاوره */
.consult { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 36px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); }
.consult__copy h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; color: var(--navy-900); line-height: 1.5; }
.consult__copy > p { margin-top: 12px; color: var(--ink-2); line-height: 2.05; }
.consult__list { display: grid; gap: 12px; margin-top: 24px; }
.consult__list li { display: flex; align-items: center; gap: 12px; }
.consult__list .ic { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--gold-50); color: var(--gold-700); }
.consult__list span { display: grid; line-height: 1.6; }
.consult__list small { font-size: 12.5px; color: var(--ink-3); }
.consult__list a, .consult__list b { font-size: 16px; font-weight: 800; color: var(--navy-900); }
.consult__form { padding: 24px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 24px 8px; }
.done__ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); animation: pop .5s var(--ease); }
.done__ic .ic { width: 36px; height: 36px; }
.done h3 { font-size: 19px; }
.done p { color: var(--ink-2); line-height: 2; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* برندها */
.brands { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; padding: 22px 28px; border-radius: 22px; border: 1px dashed var(--navy-200); }
.brands__label { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-left: 8px; }
.brands__item { font-size: 18px; font-weight: 900; color: var(--navy-300); transition: color .2s; }
.brands__item:hover { color: var(--navy-700); }
