/* ==========================================================================
   FitLean — mockup stylesheet
   Design tokens lifted from fitlean-final.svg
   ========================================================================== */

:root{
  --green-900:#0C2B1C;
  --green-700:#1E4535;
  --green-600:#3F5D50;
  --sage:#6D8074;
  --sage-dark:#59714C;
  --mint:#ABD89D;
  --rose:#CC8A82;
  --rose-light:#F0A2A2;
  --cream:#F5F2EC;
  --card:#EFEFEF;
  --muted:#999999;
  --orange:#E39A67;
  --orange-bright:#FF9043;
  --purple:#7E36FF;
  --purple-light:#9F69FF;
  --blue:#0357FF;

  --container:1280px;
  --nav-width:1373px;
  --r-pill:999px;
  --r-card:18px;
  --r-lg:28px;

  --shadow-card:0 4px 24px rgba(12,43,28,.06);
  --shadow-float:0 10px 30px rgba(12,43,28,.10);
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Vazirmatn,"Segoe UI",Tahoma,sans-serif;
  color:var(--green-900);
  background:#fff;
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
ul{margin:0;padding:0;list-style:none}

.container{max-width:var(--container);margin-inline:auto;padding-inline:24px}
.section{padding-block:72px}

.num{font-variant-numeric:tabular-nums}

/* --------------------------------------------------------------- header -- */

.topband{
  background:linear-gradient(90deg,#D7C3A6 0%,#C6BE9B 42%,#93A47D 100%);
  padding-block:34px;
}

.nav{
  max-width:var(--nav-width);
  margin-inline:auto;
  padding:0 20px;
  height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:var(--green-900);
  border-radius:var(--r-pill);
  color:#fff;
}

.nav__logo{width:150px;color:#fff;flex:0 0 auto}
.nav__logo svg{width:100%;height:auto;display:block}

.nav__links{display:flex;align-items:center;gap:34px;font-size:15px}
.nav__links a{opacity:.92;transition:opacity .18s}
.nav__links a:hover{opacity:1}

.nav__drop{display:inline-flex;align-items:center;gap:7px}
.nav__drop svg{width:14px;height:14px;opacity:.85}

.btn-consult{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--rose-light);
  color:var(--green-900);
  padding:13px 26px;
  border-radius:var(--r-pill);
  font-size:15px;font-weight:500;
  transition:filter .18s,transform .18s;
}
.btn-consult:hover{filter:brightness(1.05);transform:translateY(-1px)}
.btn-consult svg{width:19px;height:19px}

.nav__burger{display:none;width:44px;height:44px;align-items:center;justify-content:center}
.nav__burger span{display:block;width:22px;height:2px;background:#fff;position:relative}
.nav__burger span::before,.nav__burger span::after{
  content:"";position:absolute;left:0;width:22px;height:2px;background:#fff}
.nav__burger span::before{top:-7px}
.nav__burger span::after{top:7px}

/* ----------------------------------------------------------------- hero -- */

.hero{position:relative;height:718px;overflow:hidden}
.hero__img{width:100%;height:100%;object-fit:cover;object-position:center 38%}
.hero__inner{
  position:absolute;inset:0;
  max-width:var(--container);margin-inline:auto;padding-inline:24px;
  display:flex;align-items:center;
}
.hero__title{
  margin:0;
  font-size:56px;line-height:1.55;font-weight:800;
  color:#fff;
  text-shadow:0 2px 22px rgba(0,0,0,.28);
}

/* ------------------------------------------------------------- headings -- */

.sec-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:34px}
.sec-head h2{margin:0;font-size:30px;font-weight:800}

.link-more{display:inline-flex;align-items:center;gap:8px;color:var(--sage-dark);font-size:15px}
.link-more:hover{color:var(--green-900)}
.link-more svg{width:15px;height:15px}

/* --------------------------------------------------------- product rail -- */

.rail{display:flex;gap:22px;overflow-x:auto;scroll-snap-type:x mandatory;
  scroll-behavior:smooth;padding-bottom:8px;scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}

.p-card{
  flex:0 0 302px;scroll-snap-align:start;
  background:var(--card);
  border-radius:var(--r-card);
  padding:16px;
  position:relative;
  display:flex;flex-direction:column;
  transition:transform .22s,box-shadow .22s;
}
.p-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-card)}

.p-card__badge{
  position:absolute;top:14px;inset-inline-start:14px;
  font-size:11px;padding:5px 11px;border-radius:var(--r-pill);
  color:#fff;background:var(--sage);
}
.p-card__badge--sale{background:#C0392B}

.p-card__media{height:250px;display:grid;place-items:center;padding:12px}
.p-card__media img{max-height:100%;width:auto;object-fit:contain}

.p-card__cat{font-size:12px;color:var(--muted);margin:6px 0 2px}
.p-card__name{font-size:17px;font-weight:700;margin:0 0 16px}

.p-card__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}
.p-card__price{font-size:15px;font-weight:600;white-space:nowrap}

.btn-sm{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--sage);color:#fff;
  padding:9px 15px;border-radius:10px;font-size:13px;
  white-space:nowrap;
  transition:background .18s;
}
.btn-sm:hover{background:var(--sage-dark)}
.btn-sm svg{width:16px;height:16px}

.rail-ctl{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:26px}
.rail-ctl__btns{display:flex;gap:10px}
.rail-ctl button{
  width:40px;height:40px;border-radius:50%;
  border:1px solid #D8D8D8;display:grid;place-items:center;
  transition:background .18s,border-color .18s;
}
.rail-ctl button:hover{background:var(--card);border-color:#BFBFBF}
.rail-ctl button svg{width:16px;height:16px}
.rail-ctl button[disabled]{opacity:.35;cursor:default}

.rail-bar{flex:1;max-width:350px;height:3px;background:#DCDCDC;border-radius:2px;overflow:hidden}
.rail-bar i{display:block;height:100%;background:var(--green-900);border-radius:2px;
  transition:width .2s,margin .2s}

/* ------------------------------------------------------------- variety -- */

.variety{text-align:center}
.variety__title{
  display:flex;align-items:center;justify-content:center;gap:22px;
  font-size:30px;font-weight:800;margin:0 0 18px;
}
.variety__title::before,.variety__title::after{
  content:"";height:2px;width:200px;border-radius:2px;
}
.variety__title::before{background:linear-gradient(90deg,transparent,var(--sage-dark))}
.variety__title::after{background:linear-gradient(90deg,var(--sage-dark),transparent)}

.variety__lead{margin:0 auto 44px;max-width:760px;font-size:18px;color:#2A2A2A}

.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;text-align:right}

.cat{
  border-radius:var(--r-lg);
  overflow:hidden;
  color:#fff;
  display:flex;flex-direction:column;
  min-height:490px;
  transition:transform .22s,box-shadow .22s;
}
.cat:hover{transform:translateY(-5px);box-shadow:var(--shadow-float)}
.cat--blue{background:linear-gradient(180deg,#0357FF 0%,#1E6BFF 100%)}
.cat--orange{background:linear-gradient(180deg,#E89A5F 0%,#EFA470 100%)}
.cat--grey{background:var(--card);color:var(--green-900)}

.cat__body{padding:30px 26px 6px;text-align:center}
.cat__body h3{margin:0 0 10px;font-size:22px;font-weight:800}
.cat__body p{margin:0 0 20px;font-size:14px;opacity:.95;line-height:1.85}

.cat__btn{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.22);
  padding:10px 20px;border-radius:var(--r-pill);font-size:14px;
  transition:background .18s;
}
.cat__btn:hover{background:rgba(255,255,255,.34)}
.cat--grey .cat__btn{background:rgba(12,43,28,.08)}
.cat--grey .cat__btn:hover{background:rgba(12,43,28,.14)}
.cat__btn svg{width:14px;height:14px}

.cat__media{margin-top:auto}
.cat__media img{width:100%;height:285px;object-fit:cover;object-position:center bottom}

/* --------------------------------------------------------------- brand -- */

.brand{
  background:linear-gradient(180deg,#F7F3ED 0%,#EBD7D2 45%,#CC8A82 100%);
  overflow:hidden;
}
.brand__grid{
  display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;
  max-width:var(--container);margin-inline:auto;padding-inline:24px;
  min-height:600px;
}
.brand__figure{position:relative;align-self:end}
.brand__figure img{width:100%;max-width:430px;display:block}

.chip{
  position:absolute;
  display:inline-flex;align-items:center;gap:9px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.9);
  padding:10px 16px;border-radius:16px;
  font-size:14px;font-weight:500;color:var(--green-900);
  box-shadow:var(--shadow-card);
  white-space:nowrap;
}
.chip svg{width:19px;height:19px}
.chip--1{top:26%;inset-inline-end:2%}
.chip--2{top:53%;inset-inline-start:6%}
.chip--3{top:74%;inset-inline-end:14%}

.brand__text{padding-block:90px}
.brand__text h2{margin:0 0 6px;font-size:52px;font-weight:800;color:var(--green-600)}
.brand__text .sub{margin:0 0 22px;font-size:22px;color:var(--sage-dark)}
.brand__text p{margin:0;font-size:18px;color:#fff;line-height:2.1;max-width:640px}

/* ---------------------------------------------------------- testimonial -- */

.testi{background:#F1F1EE}
.testi__grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}

.testi__media{display:flex;align-items:center;justify-content:center;gap:16px}
.testi__media .side{width:110px;border-radius:16px;filter:grayscale(1);opacity:.85;
  aspect-ratio:110/260;object-fit:cover;object-position:28% center}
.testi__media .side:last-child{object-position:72% center}
.testi__mainwrap{position:relative}
.testi__media .main{width:330px;border-radius:22px}
.testi__mainwrap span{
  position:absolute;bottom:16px;inset-inline-end:20px;
  color:#fff;font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.4)}

.testi__quote{font-size:19px;font-weight:600;line-height:2.2;margin:0 0 22px}

.testi__person{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.testi__ava{width:34px;height:34px}
.testi__person b{font-size:16px;font-weight:700}

.tags{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.tag{background:#DFE5DC;color:var(--green-700);font-size:13px;padding:7px 14px;border-radius:9px}

.testi__note{
  border-inline-start:3px solid var(--orange);
  padding-inline-start:16px;
  font-size:14px;color:#6B6B6B;line-height:2;
}

/* --------------------------------------------------------------- steps -- */

.steps{text-align:center}
.steps__title{
  display:flex;align-items:center;justify-content:center;gap:16px;
  font-size:30px;font-weight:800;margin:0 0 16px}
.steps__title em{font-style:normal;color:var(--sage-dark)}
.steps__title svg{width:26px;height:26px;color:var(--mint)}
.steps__lead{margin:0 auto 40px;max-width:800px;font-size:18px}

.steps__rail{display:flex;gap:20px;overflow-x:auto;scrollbar-width:none;
  scroll-behavior:smooth;padding-bottom:8px;text-align:right}
.steps__rail::-webkit-scrollbar{display:none}

.step{
  flex:0 0 auto;border-radius:26px;position:relative;
  display:flex;align-items:stretch;padding:8px;
  transition:flex-basis .3s ease;
  cursor:pointer;
}
.step__img{width:250px;height:350px;object-fit:cover;flex:0 0 auto;border-radius:22px}
.step__num{
  position:absolute;bottom:22px;inset-inline-end:34px;
  font-size:64px;font-weight:800;color:rgba(255,255,255,.92);
  line-height:1;text-shadow:0 2px 14px rgba(0,0,0,.25);
}
.step--closed{flex:0 0 266px}
.step--open{flex:0 0 700px;gap:10px;align-items:center}
.step__body{display:none;flex:1;padding:24px 22px}
.step--open .step__body{display:block}
.step--open .step__num{display:none}
.step__body h3{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:21px;font-weight:800}
.step__body h3 svg{width:22px;height:22px}
.step__body p{margin:0;font-size:14px;line-height:2.05;color:#3A3A3A}

.step--blue{background:#E4EDFF}
.step--blue .step__body h3{color:var(--blue)}
.step--purple{background:#F0E7FF}
.step--purple .step__body h3{color:var(--purple)}
.step--orange{background:#FBE6D4}
.step--orange .step__body h3{color:#C9702F}
.step--green{background:#DFF3E0}
.step--green .step__body h3{color:var(--sage-dark)}

/* -------------------------------------------------------------- assess -- */

.assess{
  background:linear-gradient(100deg,#CDE9D2 0%,#BFC9F2 38%,#D9C7EC 62%,#F6D9C2 100%);
  padding-block:70px;
}
.assess__card{
  background:#fff;border-radius:40px;
  padding:56px 60px;
  display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;
  box-shadow:0 18px 50px rgba(12,43,28,.10);
}
.assess__card h2{margin:0 0 18px;font-size:32px;font-weight:800}
.assess__card h2 em{font-style:normal;color:#3FA34D}
.assess__card p{margin:0 0 28px;font-size:15px;line-height:2.1;color:#3A3A3A}

.btn-orange{
  display:inline-flex;align-items:center;
  background:var(--orange);color:#fff;
  padding:13px 30px;border-radius:12px;font-size:15px;
  transition:filter .18s,transform .18s;
}
.btn-orange:hover{filter:brightness(1.06);transform:translateY(-1px)}

/* ---------------------------------------------------------------- blog -- */

.blog__head h2{display:flex;align-items:center;gap:12px}
.blog__head h2 em{font-style:normal;color:var(--purple-light)}
.blog__head h2 svg{width:32px;height:32px;color:var(--purple)}

.btn-ghost{border:1px solid #D5D5D5;border-radius:10px;padding:9px 18px;font-size:14px;
  transition:background .18s}
.btn-ghost:hover{background:var(--card)}

.blog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.post img{width:100%;height:215px;object-fit:cover;border-radius:16px;margin-bottom:14px}
.post h3{margin:0 0 8px;font-size:17px;font-weight:700;line-height:1.7}
.post p{margin:0 0 12px;font-size:14px;color:#5A5A5A;line-height:1.95}
.post .tags{gap:7px;margin-bottom:12px}
.post .tag{background:#E8E8E8;color:#5A5A5A;font-size:11px;padding:4px 10px}
.post a.more{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:#4A4A4A}
.post:hover h3{color:var(--sage-dark)}
.post--featured h3,.post--featured a.more{color:var(--orange)}

/* ----------------------------------------------------------------- faq -- */

.faq{text-align:center}
.faq__img{width:300px;margin:0 auto 4px}
.faq__kicker{font-size:26px;font-weight:800;color:var(--sage-dark);margin:0 0 44px}

.acc{text-align:right;max-width:1180px;margin-inline:auto}
.acc__item{border-bottom:1px solid #E3E3E3}
.acc__q{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:22px 4px;font-size:18px;font-weight:700;text-align:right;
}
.acc__sign{width:22px;flex:0 0 22px;color:var(--orange-bright);font-size:24px;line-height:1}
.acc__a{max-height:0;overflow:hidden;transition:max-height .3s ease}
.acc__a p{margin:0 0 22px;font-size:15px;color:var(--muted);line-height:2.1}
.acc__item.is-open .acc__a{max-height:340px}

/* ----------------------------------------------------------- instagram -- */

.ig{background:var(--green-900);color:#fff;padding-block:56px}
.ig__grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}

.ig__profile{display:flex;align-items:flex-start;justify-content:flex-start;gap:46px}
.ig__id{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.ava{border-radius:50%;background:var(--rose);display:grid;place-items:center;flex:0 0 auto}
.ava img{width:72%;height:auto;filter:brightness(0) invert(1)}
.ig__ava{width:110px;height:110px;border:3px solid rgba(255,255,255,.55)}
.ig__id b{display:block;font-size:17px}
.ig__id span{font-size:13px;opacity:.85}

.ig__meta{display:flex;flex-direction:column;align-items:flex-start;gap:22px;padding-top:18px}
.ig__stats{display:flex;gap:44px}
.ig__stats div{text-align:center}
.ig__stats b{display:block;font-size:24px;font-weight:800}
.ig__stats span{font-size:14px;opacity:.85}

.btn-follow{background:#2E88F0;color:#fff;padding:11px 52px;border-radius:10px;
  font-size:18px;font-weight:700;transition:filter .18s}
.btn-follow:hover{filter:brightness(1.08)}

.ig__mosaic{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.ig__mosaic i{display:block;background:#E2E6DE;border-radius:10px;aspect-ratio:3/4}
.ig__mosaic i:nth-child(4n+2){margin-top:22px}
.ig__mosaic i:nth-child(4n+3){margin-top:10px}

/* -------------------------------------------------------------- footer -- */

.footer{
  background:var(--rose);color:#fff;padding-block:56px;
  border-top:3px solid;
  border-image:linear-gradient(90deg,#FFDD55,#FF543E 50%,#C837AB) 1;
}
.footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:36px}
.footer h4{margin:0 0 14px;font-size:17px;font-weight:700}
.footer li{margin-bottom:9px;font-size:14px;opacity:.92}
.footer li a:hover{text-decoration:underline}
.footer__brand h4{font-size:26px;font-weight:800;margin-bottom:6px}
.footer__brand p{margin:0 0 20px;font-size:14px;opacity:.92}

.social{display:flex;gap:12px;justify-content:flex-end}
.social a{width:34px;height:34px;border-radius:9px;background:#fff;display:grid;place-items:center;
  transition:transform .18s}
.social a:hover{transform:translateY(-2px)}
.social img{width:19px;height:19px}

/* --------------------------------------------------- bidi / flow order -- */
/* The Figma layout runs these rows left-to-right even though the page is RTL
   (figure left / copy right, blue category card first on the left, and the
   carousel controls at the far left). Flipping just the *placement* direction
   to LTR makes DOM order match the design's visual order; every child is set
   back to RTL so Persian text, alignment and logical insets stay correct. */
.cat-grid,
.brand__grid,
.testi__grid,
.assess__card,
.social,
.rail-ctl{direction:ltr}

.cat-grid>*,
.brand__grid>*,
.testi__grid>*,
.assess__card>*,
.social>*{direction:rtl}

/* progress thumb starts at the right and travels left, following the cards */
.rail-bar{direction:rtl}

/* ---------------------------------------------------------- responsive -- */

@media (max-width:1100px){
  .blog-grid{grid-template-columns:repeat(2,1fr)}
  .cat-grid{grid-template-columns:1fr;max-width:520px;margin-inline:auto}
  .brand__grid,.testi__grid,.assess__card,.ig__grid{grid-template-columns:1fr}
  .brand__text{padding-block:40px 70px}
  .assess__card{padding:38px}
  .hero__title{font-size:40px}
  .hero{height:560px}
  .ig__profile{align-items:center}
}

@media (max-width:760px){
  .section{padding-block:52px}
  .nav__links,.btn-consult{display:none}
  .nav__burger{display:flex}
  .nav{height:70px}
  .hero{height:440px}
  .hero__title{font-size:28px}
  .sec-head{flex-direction:column;align-items:flex-start;gap:12px}
  .sec-head h2,.variety__title,.steps__title{font-size:23px}
  .variety__title::before,.variety__title::after{width:44px}
  .blog-grid{grid-template-columns:1fr}
  .footer__grid{grid-template-columns:1fr 1fr}
  .step--open{flex-basis:300px;flex-direction:column}
  .step--open .step__img{width:100%;height:220px}
  .ig__mosaic{grid-template-columns:repeat(3,1fr)}
  .brand__text h2{font-size:36px}
  .testi__media .side{display:none}
}
