/* =====================================================
   style.css — طرح توجیهی اقامتگاه بومگردی ۱۴۰۵
   پالت رنگی اختصاصی بومگردی:
   قهوه‌ای خاکی + سبز جنگلی + طلایی گرم + کِرِم
   ===================================================== */

/* ---- متغیرها ---- */
:root {
  --eco-brown:      #5C4A2A;
  --eco-brown-2:    #7A6040;
  --eco-green:      #3D5A3E;
  --eco-green-2:    #2C3E2D;
  --eco-gold:       #A8864A;
  --eco-gold-light: #D4A853;
  --eco-cream:      #F5EED8;
  --eco-cream-dim:  #EDE4C8;
  --eco-text:       #2C1F0E;
  --eco-text-2:     #5C4A2A;
  --eco-border:     #DDD0B0;
  --eco-bg:         #FAF6ED;
  --eco-bg-2:       #F0E8D4;
  --radius:         12px;
  --radius-lg:      18px;
  --shadow:         0 2px 16px rgba(92,74,42,.10);
  --shadow-lg:      0 6px 32px rgba(92,74,42,.15);
  --transition:     .22s ease;
}

/* =====================================================
   ریست و پایه
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sw-scope {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--eco-text);
  background: #fff;
  direction: rtl;
}

.sw-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* =====================================================
   HERO
   ===================================================== */
.sw-hero {
  width: 100vw;
  position: relative;
  right: 50%;
  left: 50%;
  margin-right: -50vw;
  margin-left: -50vw;
  margin-bottom: 2.5rem;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(168,134,74,.055) 18px, rgba(168,134,74,.055) 19px),
    repeating-linear-gradient(-45deg, transparent, transparent 18px, rgba(168,134,74,.055) 18px, rgba(168,134,74,.055) 19px),
    linear-gradient(135deg, var(--eco-brown) 0%, #4A3820 30%, var(--eco-green) 65%, var(--eco-green-2) 100%);
  padding: 2.5rem 1.25rem 2.25rem;
  overflow: hidden;
}

.sw-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--eco-gold), var(--eco-gold-light), var(--eco-gold));
}

.sw-hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,134,74,.10) 0%, transparent 70%);
  pointer-events: none;
}

.sw-hero-card {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.sw-hero-card::before {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,134,74,.12) 0%, transparent 70%);
  pointer-events: none;
}

.sw-hero-inner { position: relative; z-index: 1; }

/* breadcrumb */
.sw-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  font-size: .78rem;
  color: rgba(245,238,216,.6);
  margin-bottom: 1.1rem;
}
.sw-crumb a { color: rgba(245,238,216,.7); text-decoration: none; transition: color var(--transition); }
.sw-crumb a:hover { color: var(--eco-gold-light); }
.sw-crumb span:last-child { color: var(--eco-cream); }

/* pill / badge */
.sw-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(168,134,74,.18);
  border: 1px solid rgba(168,134,74,.45);
  color: var(--eco-gold-light);
  font-size: .82rem;
  font-weight: 700;
  padding: .32rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(4px);
}

/* h1 */
.sw-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #FDFAF3;
  line-height: 1.45;
  margin-bottom: .7rem;
}
.sw-hero h1 em {
  font-style: normal;
  color: var(--eco-gold-light);
}

/* lead */
.sw-hero-lead {
  font-size: clamp(.9rem, 2.2vw, 1.04rem);
  color: rgba(245,238,216,.85);
  line-height: 2;
  margin-bottom: 1.5rem;
  max-width: 760px;
}
.sw-hero-lead b { color: var(--eco-gold-light); }

/* stats */
.sw-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.6rem;
}
.sw-hstat {
  flex: 1 1 160px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(168,134,74,.35);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform var(--transition), border-color var(--transition);
}
.sw-hstat:hover { transform: translateY(-2px); border-color: var(--eco-gold); }
.sw-hstat .v {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 900;
  color: var(--eco-gold-light);
  line-height: 1;
  display: block;
}
.sw-hstat .v small { font-size: .65em; }
.sw-hstat .l {
  font-size: .76rem;
  color: rgba(245,238,216,.65);
  margin-top: .3rem;
  display: block;
}

/* meta */
.sw-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  font-size: .81rem;
  color: rgba(245,238,216,.55);
  border-top: 1px solid rgba(245,238,216,.1);
  padding-top: .9rem;
}
.sw-hero-meta b { color: rgba(245,238,216,.85); }

/* =====================================================
   LAYOUT: دو ستونه
   ===================================================== */
.sw-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* ---- SIDEBAR ---- */
.sw-aside {
  flex: 0 0 290px;
  width: 290px;
}
.sw-sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--eco-gold) transparent;
}

/* ---- ARTICLE ---- */
.sw-article {
  flex: 1 1 0;
  min-width: 0;
}

/* =====================================================
   باکس‌های سایدبار
   ===================================================== */
/* ---- SIDEBAR ---- */
.sw-aside {
  flex: 0 0 290px;
  width: 290px;
  /* این دو خط اضافه می‌شن */
  align-self: flex-start;   /* ارتفاع aside به محتوای خودش محدود بشه */
  position: sticky;         /* خود aside رو sticky کن، نه فقط داخلش */
  top: 80px;                /* فاصله از بالای صفحه */
}

.sw-sticky {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--eco-gold) transparent;
  /* position: sticky و top رو از اینجا حذف کن */
}

/* TOC links */
.sw-toc-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .4rem;
  font-size: .8rem;
  color: var(--eco-brown);
  text-decoration: none;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
}
.sw-toc-link:hover { background: var(--eco-bg); color: var(--eco-gold); }
.sw-toc-link .n {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eco-bg-2);
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 800;
  color: var(--eco-gold);
}

/* باکس اطلاعات فایل */
.sw-file-info { gap: 0; }
.sw-fi-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .3rem;
  border-bottom: 1px solid var(--eco-bg-2);
  font-size: .8rem;
}
.sw-fi-row:last-of-type { border-bottom: none; }
.sw-fi-icon { font-size: .95rem; flex-shrink: 0; }
.sw-fi-label { flex: 1; color: var(--eco-brown); opacity: .8; }
.sw-fi-val { font-weight: 700; color: var(--eco-green); white-space: nowrap; font-size: .79rem; }
.sw-fi-btn {
  display: block;
  margin: .6rem 0 .2rem;
  padding: .65rem .8rem;
  background: linear-gradient(135deg, var(--eco-gold), var(--eco-gold-light));
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  text-align: center;
  border-radius: 9px;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}
.sw-fi-btn:hover { opacity: .9; transform: translateY(-1px); }

/* مشاوره سایدبار */
.sw-side-cta {
  background: linear-gradient(135deg, var(--eco-green), var(--eco-green-2));
  border-radius: var(--radius);
  padding: 1rem 1rem .85rem;
  color: var(--eco-cream);
  box-shadow: var(--shadow);
}
.sw-side-cta h4 {
  font-size: .9rem;
  font-weight: 800;
  color: var(--eco-gold-light);
  margin-bottom: .3rem;
}
.sw-side-cta p {
  font-size: .76rem;
  color: rgba(245,238,216,.72);
  line-height: 1.6;
  margin-bottom: .65rem;
}
.sw-side-cta .phone {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin-bottom: .6rem;
  letter-spacing: .02em;
}
.sw-side-cta .btnrow { display: flex; gap: .5rem; }
.sw-side-cta .mini {
  flex: 1;
  padding: .5rem .4rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: var(--eco-gold);
  color: #fff;
  transition: opacity var(--transition);
}
.sw-side-cta .mini.wa { background: #25D366; }
.sw-side-cta .mini:hover { opacity: .88; }

/* =====================================================
   ARTICLE محتوا
   ===================================================== */
.sw-sec { margin-bottom: 2.25rem; }

.sw-sec h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 900;
  color: var(--eco-brown);
  margin-bottom: 1rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--eco-bg-2);
  position: relative;
}
.sw-sec h2::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0;
  width: 52px; height: 2px;
  background: var(--eco-gold);
  border-radius: 2px;
}

.sw-sec h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--eco-green);
  margin: 1.3rem 0 .65rem;
}

.sw-sec p { margin-bottom: .85rem; color: var(--eco-text); line-height: 1.9; }

/* lead بزرگ */
.sw-lead {
  font-size: 1.06rem;
  line-height: 2;
  color: var(--eco-text);
  font-weight: 500;
}

/* تصاویر */
.sw-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
  display: block;
}

/* باکس کارت */
.sw-card {
  background: var(--eco-bg);
  border: 1.5px solid var(--eco-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* mark */
.sw-mark {
  background: linear-gradient(120deg, rgba(168,134,74,.18), rgba(168,134,74,.08));
  border-bottom: 2px solid var(--eco-gold);
  padding: .05rem .35rem;
  border-radius: 4px;
  font-weight: 700;
  color: var(--eco-brown);
}

/* لیست */
.sw-list { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.sw-list li {
  padding: .42rem 0;
  border-bottom: 1px solid var(--eco-bg-2);
  font-size: .92rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.sw-list li:last-child { border-bottom: none; }
.sw-list li::before {
  content: '🌿';
  flex-shrink: 0;
  font-size: .8rem;
  margin-top: .2rem;
}

/* نوت */
.sw-note {
  display: flex;
  gap: .75rem;
  padding: .9rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  font-size: .88rem;
  line-height: 1.75;
}
.sw-note .em { font-size: 1.2rem; flex-shrink: 0; }
.sw-note.tip {
  background: rgba(61,90,62,.07);
  border-right: 3px solid var(--eco-green);
}
.sw-note.warn {
  background: rgba(168,134,74,.10);
  border-right: 3px solid var(--eco-gold);
}

/* quote */
.sw-quote {
  border-right: 4px solid var(--eco-gold);
  background: var(--eco-bg);
  padding: .9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--eco-brown);
  margin: 1rem 0;
  font-size: .93rem;
  line-height: 1.8;
}

/* گرید */
.sw-grid { display: grid; gap: 1rem; margin: 1rem 0; }
.sw-g2 { grid-template-columns: repeat(2, 1fr); }

/* feat card */
.sw-feat {
  background: var(--eco-bg);
  border: 1.5px solid var(--eco-border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.sw-feat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sw-feat.row { display: flex; gap: .75rem; align-items: flex-start; }
.sw-feat h4 {
  font-size: .88rem;
  font-weight: 800;
  color: var(--eco-brown);
  margin-bottom: .3rem;
}
.sw-feat p { font-size: .82rem; color: var(--eco-text-2); margin: 0; line-height: 1.65; }
.sw-ico {
  width: 36px; height: 36px;
  min-width: 36px;
  border-radius: 9px;
  background: rgba(61,90,62,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.sw-ico.amber { background: rgba(168,134,74,.14); }

/* جدول */
.sw-table-wrap { overflow-x: auto; margin: 1rem 0; border-radius: var(--radius); border: 1.5px solid var(--eco-border); }
.sw-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sw-table th {
  background: linear-gradient(135deg, var(--eco-brown), var(--eco-green));
  color: var(--eco-cream);
  font-weight: 800;
  padding: .7rem .9rem;
  text-align: right;
}
.sw-table td {
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--eco-bg-2);
  color: var(--eco-text);
}
.sw-table tr:last-child td { border-bottom: none; }
.sw-table tr:hover td { background: var(--eco-bg); }
.sw-table tr.hi td {
  background: rgba(61,90,62,.07);
  font-weight: 700;
  color: var(--eco-green);
}
.sw-table-note { font-size: .78rem; color: var(--eco-text-2); opacity: .7; margin-top: .4rem; }

/* steps */
.sw-steps { display: flex; flex-direction: column; gap: 0; margin: 1rem 0; }
.sw-step {
  display: flex;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--eco-bg-2);
  align-items: flex-start;
}
.sw-step:last-child { border-bottom: none; }
.sw-step .num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--eco-gold), var(--eco-gold-light));
  color: #fff;
  font-weight: 900;
  font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
}
.sw-step h4 { font-size: .9rem; font-weight: 800; color: var(--eco-brown); margin-bottom: .25rem; }
.sw-step p { font-size: .85rem; color: var(--eco-text-2); margin: 0; line-height: 1.7; }

/* pros/cons */
.sw-pc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.sw-pc-col {
  border-radius: var(--radius);
  padding: 1rem;
}
.sw-pc-col.pros {
  background: rgba(61,90,62,.07);
  border: 1.5px solid rgba(61,90,62,.2);
}
.sw-pc-col.cons {
  background: rgba(168,134,74,.08);
  border: 1.5px solid rgba(168,134,74,.25);
}
.sw-pc-col h4 {
  font-size: .88rem;
  font-weight: 800;
  margin-bottom: .6rem;
  color: var(--eco-brown);
}
.sw-pc-col ul { list-style: none; padding: 0; margin: 0; }
.sw-pc-col ul li {
  font-size: .82rem;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  color: var(--eco-text);
  display: flex; gap: .4rem; align-items: flex-start;
}
.sw-pc-col ul li:last-child { border-bottom: none; }
.sw-pc-col.pros ul li::before { content: '✓'; color: var(--eco-green); font-weight: 900; flex-shrink: 0; }
.sw-pc-col.cons ul li::before { content: '!'; color: var(--eco-gold); font-weight: 900; flex-shrink: 0; }

/* phone inline */
.sw-phone-inline {
  color: var(--eco-gold);
  font-weight: 700;
  text-decoration: none;
  direction: ltr;
  display: inline-block;
}
.sw-phone-inline:hover { text-decoration: underline; }

/* =====================================================
   BUY BOX
   ===================================================== */
.sw-buy {
  background: linear-gradient(135deg, var(--eco-brown), #4A3820 40%, var(--eco-green));
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--eco-cream);
  box-shadow: var(--shadow-lg);
}
.sw-buy-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.sw-buy-badge {
  display: inline-block;
  background: rgba(168,134,74,.3);
  border: 1px solid rgba(168,134,74,.5);
  color: var(--eco-gold-light);
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .8rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.sw-buy h2 {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  border: none !important;
  margin-bottom: .6rem !important;
  padding: 0 !important;
}
.sw-buy h2::after { display: none !important; }
.sw-buy p { font-size: .88rem; color: rgba(245,238,216,.8); margin-bottom: 1rem; }
.sw-buy-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-bottom: 1rem;
}
.sw-buy-price .num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--eco-gold-light);
}
.sw-buy-price .u { font-size: .88rem; color: rgba(245,238,216,.65); }
.sw-buy .sw-list li::before { content: '✓'; color: var(--eco-gold-light); }
.sw-buy .sw-list li { color: rgba(245,238,216,.85); border-color: rgba(245,238,216,.1); }
.sw-buy-doc {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sw-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(168,134,74,.35);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  min-width: 140px;
}
.sw-doc .big { font-size: 2.5rem; }
.sw-doc strong { font-size: .88rem; color: #fff; }
.sw-doc .pdf { font-size: .75rem; color: rgba(245,238,216,.6); }

/* دکمه‌ها */
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  background: var(--eco-green);
  color: #fff;
}
.sw-btn:hover { opacity: .88; transform: translateY(-1px); }
.sw-btn.yellow { background: linear-gradient(135deg, var(--eco-gold), var(--eco-gold-light)); }
.sw-btn.navy { background: linear-gradient(135deg, #0a2647, #12345f); }
.sw-btn.lg { font-size: 1rem; padding: .9rem 2rem; }

/* =====================================================
   RATING
   ===================================================== */
.sw-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--eco-bg);
  border: 1.5px solid var(--eco-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.sw-rating .score {
  font-size: 2rem;
  font-weight: 900;
  color: var(--eco-gold);
  line-height: 1;
}
.sw-rating .stars { font-size: 1.2rem; color: var(--eco-gold); letter-spacing: .05em; }
.sw-rating .votes { font-size: .78rem; color: var(--eco-text-2); opacity: .75; margin-top: .2rem; }

/* =====================================================
   CONTACT
   ===================================================== */
.sw-contact {
  background: linear-gradient(135deg, var(--eco-green), var(--eco-green-2));
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--eco-cream);
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-lg);
}
.sw-contact h2 { color: var(--eco-gold-light); border: none !important; padding: 0 !important; margin-bottom: .6rem !important; }
.sw-contact h2::after { display: none !important; }
.sw-contact p { font-size: .9rem; color: rgba(245,238,216,.8); margin-bottom: 1rem; }
.sw-contact .big-phone {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: .03em;
}
.sw-contact .btns { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sw-author-line { font-size: .82rem; color: rgba(245,238,216,.65); margin: 0; }

/* =====================================================
   CTA BANNER
   ===================================================== */
.sw-cta-banner {
  background: linear-gradient(135deg, var(--eco-brown), var(--eco-green));
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--eco-cream);
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-lg);
}
.sw-cta-banner h3 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--eco-gold-light);
  margin-bottom: .6rem;
}
.sw-cta-banner p { font-size: .88rem; color: rgba(245,238,216,.78); margin-bottom: 1rem; }

/* =====================================================
   FAQ (ساخته‌شده توسط JS)
   ===================================================== */
.sw-faq-item {
  border: 1.5px solid var(--eco-border);
  border-radius: var(--radius);
  margin-bottom: .6rem;
  overflow: hidden;
  background: #fff;
}
.sw-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  color: var(--eco-brown);
  text-align: right;
  direction: rtl;
  transition: background var(--transition);
}
.sw-faq-q:hover { background: var(--eco-bg); }
.sw-faq-q .fq-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--eco-gold);
  transition: transform var(--transition);
}
.sw-faq-item.open .fq-arrow { transform: rotate(45deg); }
.sw-faq-a {
  display: none;
  padding: .75rem 1rem .9rem;
  font-size: .86rem;
  line-height: 1.8;
  color: var(--eco-text);
  border-top: 1px solid var(--eco-bg-2);
}
.sw-faq-item.open .sw-faq-a { display: block; }

/* =====================================================
   RELATED
   ===================================================== */
.sw-related { margin: 2rem 0; }
.sw-related h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--eco-brown);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--eco-bg-2);
}
.sw-rel-grid { display: flex; flex-direction: column; gap: .5rem; }
.sw-rel {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem 1rem;
  background: var(--eco-bg);
  border: 1.5px solid var(--eco-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.sw-rel:hover { transform: translateX(-3px); box-shadow: var(--shadow); }
.sw-rel .thumb { font-size: 1.4rem; flex-shrink: 0; }
.sw-rel span { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.sw-rel .cat { font-size: .72rem; color: var(--eco-gold); font-weight: 700; text-transform: uppercase; }
.sw-rel .name { font-size: .86rem; font-weight: 700; color: var(--eco-brown); }
.sw-rel .meta { font-size: .75rem; color: var(--eco-text-2); opacity: .7; }
.sw-rel .arrow { font-size: 1rem; color: var(--eco-gold); flex-shrink: 0; }

/* =====================================================
   FLOATING BUY BAR
   ===================================================== */
.sw-buybar {
  position: fixed;
  bottom: -100px;
  right: 0; left: 0;
  z-index: 999;
  transition: bottom .35s cubic-bezier(.34,1.2,.64,1);
  padding: 0 1rem .5rem;
  pointer-events: none;
}
.sw-buybar.visible {
  bottom: 0;
  pointer-events: all;
}
.sw-buybar-inner {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--eco-brown), var(--eco-green));
  border-radius: 14px 14px 0 0;
  padding: .85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 -4px 28px rgba(0,0,0,.22);
}
.sw-buybar-inner .txt { flex: 1; }
.sw-buybar-inner .t {
  font-size: .88rem;
  font-weight: 800;
  color: var(--eco-cream);
  line-height: 1.3;
}
.sw-buybar-inner .s {
  font-size: .73rem;
  color: rgba(245,238,216,.6);
  margin-top: .12rem;
}
.bb-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: .65rem 1.25rem;
  background: linear-gradient(135deg, var(--eco-gold), var(--eco-gold-light));
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  border-radius: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.bb-btn:hover { opacity: .9; transform: scale(1.02); }

/* =====================================================
   reveal animation
   ===================================================== */
.sw-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.sw-reveal.revealed {
  opacity: 1;
  transform: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
  .sw-layout { flex-direction: column; }
  .sw-aside {
    width: 100%;
    flex: none;
    position: static;
    top: auto;
  }
  .sw-sticky { position: static; max-height: none; }
  .sw-g2 { grid-template-columns: 1fr; }
  .sw-pc { grid-template-columns: 1fr; }
  .sw-buy-grid { grid-template-columns: 1fr; }
  .sw-buy-doc { display: none; }
}

@media (max-width: 640px) {
  .sw-wrap { padding: 0 .75rem 2rem; }
  .sw-hero { padding: 1.75rem .85rem 1.6rem; }
  .sw-hero-stats { gap: .55rem; }
  .sw-hstat { flex: 1 1 calc(50% - .55rem); padding: .7rem .6rem; }
  .sw-buybar-inner { flex-direction: column; align-items: stretch; gap: .6rem; }
  .bb-btn { text-align: center; }
  .sw-contact .btns { flex-direction: column; align-items: stretch; }
}

@media (max-width: 380px) {
  .sw-hstat { flex: 1 1 100%; }
}

.sw-box-body { display: none; }
.sw-box-body.open { display: block; }